@charset "UTF-8";
/* 物件詳細（projects/物件名/）：物件ヘッダー／メインビジュアル／物件概要／ギャラリー／一覧へ戻る */

/* =========================================
   物件ヘッダー
========================================= */
/* 物件詳細の本文幅：共通の 1280px より狭い 1140px（文章ページと同じ）。メイン画像・ギャラリー入口の 75% もこの幅が基準 */
.pj-head .container, .pj-visual .container, .pj-info .container, .pj-gallery .container, .pj-footer-nav .container { max-width: 1140px; }
.pj-head { padding: calc(88px + 3.5vh) 0 0; }

.pj-crumb { margin-bottom: 34px; }
.pj-crumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; font-size: 11.5px; letter-spacing: 0.1em; color: var(--color-gray); }
.pj-crumb li { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.pj-crumb li + li::before { content:""; flex: none; width: 14px; height: 1px; margin: 0 12px; background: var(--color-line-strong); }
.pj-crumb a { transition: color .4s var(--ease-expo); }
.pj-crumb a:hover { color: var(--color-text); }
.pj-crumb__en { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.pj-crumb [aria-current] { color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-head__inner {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 26px 40px; flex-wrap: wrap;
  padding-bottom: 30px; border-bottom: 1px solid var(--color-line);
}
.pj-head__main { min-width: 0; }
.pj-head__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* ステータス：受付中は --available を併記（ゴールド）、受付終了はグレー、空なら非表示 */
.pj-head__status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em;
  padding: 8px 20px; border-radius: 40px;
  background: var(--color-sub); color: var(--color-text);
}
.pj-head__status::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.pj-head__status--available {
  background: var(--gold); color: var(--color-on-accent);
  box-shadow: 0 6px 18px -8px rgba(var(--rgb-ink),0.45);
}
.pj-head__status:empty { display: none; }
.pj-head__tag {
  display: inline-flex; align-items: center;
  font-size: 11.5px; letter-spacing: 0.1em; padding: 7px 15px;
  border: 1px solid var(--color-line-strong); border-radius: 40px; color: var(--color-gray);
}
.pj-head__tag--build,
.pj-head__tag--asset,
.pj-head__tag--area { color: var(--color-text); border-color: rgba(var(--rgb-fg), 0.5); font-weight: 500; }
.pj-head__name { font-family: var(--font-serif); font-size: clamp(28px,3.6vw,44px); line-height: 1.3; }
.pj-head__en { font-family: var(--font-en); font-style: italic; font-size: clamp(14px,1.4vw,17px); letter-spacing: 0.06em; margin-top: 10px; color: var(--color-gray); }

/* LP ボタン（LP がある物件のみ） */
.pj-head__lp { flex: none; padding-bottom: 4px; }
.pj-head__lp .btn-round { min-width: 0; padding: 15px 30px; font-size: 13px; gap: 12px; }

/* =========================================
   メインビジュアル（横構図 3:2 ／ 縦構図は --portrait を併記）
   横構図：箱を 3:2 に固定し、写真で埋める（多少の切り取りあり）
   縦構図：箱の比率を固定せず、写真そのものの比率で表示する
   　　　　（高さ 100vh・横幅 100% を上限に縮むだけで、切り取られない）
========================================= */
.pj-visual { padding-top: 5vh; }
.pj-visual__media { overflow: hidden; aspect-ratio: 3/2; background: var(--color-cream); }
.pj-visual__media img { width: 100%; height: 100%; object-fit: cover; }
/* 横構図は、パソコンでは本文幅の 75% で中央に置く（縦構図は対象外） */
@media screen and (min-width: 901px) {
  .pj-visual__media:not(.pj-visual__media--portrait) { width: 75%; margin-inline: auto; }
}
.pj-visual__media--portrait { aspect-ratio: auto; background: none; }
.pj-visual__media--portrait img {
  display: block; margin: 0 auto;      /* 画像の幅が足りないときは中央に */
  width: auto; height: auto;           /* 共通CSSの 100% 指定を打ち消し、写真の比率に任せる */
  max-width: 100%; max-height: 100vh;  /* この範囲に収まるよう比率を保って縮む */
}

/* =========================================
   物件概要（説明文 .pj-info__lead ＋ 表 .pj-spec）
   説明文が無いときは表が中央に寄る（表の幅は max-width: 640px）
========================================= */
.pj-info { padding: 9vh 0 8vh; }
.pj-info__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8%; align-items: start; }
.pj-info__lead h2 { font-family: var(--font-serif); font-size: clamp(22px,2.8vw,36px); line-height: 1.7; margin-bottom: 30px; }
.pj-info__lead p { font-size: 15px; color: var(--color-gray); line-height: 2.2; }
.pj-spec { display: grid; grid-template-columns: 130px 1fr; }
.pj-spec dt { font-family: var(--font-serif); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--color-text); padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.pj-spec dd { font-size: 14px; line-height: 1.8; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.pj-spec dt:first-of-type, .pj-spec dd:first-of-type { border-top: 1px solid var(--color-line); }

.pj-info__grid > :only-child { grid-column: 1 / -1; }
.pj-spec:only-child { width: 100%; max-width: 640px; margin-inline: auto; }
.pj-info__lead:only-child { max-width: 46em; margin-inline: auto; }
.pj-info__grid:has(> .pj-info__lead:not(:has(*))) { grid-template-columns: minmax(0, 1fr); }
.pj-info__grid:has(> .pj-info__lead:not(:has(*))) > .pj-info__lead { display: none; }
.pj-info__grid:has(> .pj-info__lead:not(:has(*))) > .pj-spec { width: 100%; max-width: 640px; margin-inline: auto; }

/* 注意書き（計画中・建設中の物件に js/project.js が自動で表示。表の下とギャラリーの下） */
.pj-note,
.pj-spec[data-note]::after { font-size: 12.5px; line-height: 1.8; letter-spacing: 0.04em; color: var(--color-gray); }
.pj-spec[data-note]::after { content: attr(data-note); grid-column: 1 / -1; margin-top: 18px; }
.pj-note { margin-top: 14px; }

/* =========================================
   ギャラリー（写真ボタン → ポップアップ）
========================================= */
.pj-gallery { padding: 2vh 0 2vh; }
.gal-cap { margin-top: 13px; font-size: 12.5px; letter-spacing: 0.08em; color: var(--color-gray); }
.gal-count { font-family: var(--font-en); font-size: 13.5px; letter-spacing: 0.12em; color: var(--color-gray); }

.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; pointer-events: auto; z-index: 3;
  background: rgba(var(--rgb-light),0.94); border: 1px solid rgba(var(--rgb-fg),0.12);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px -12px rgba(var(--rgb-ink),0.5);
  transition: background-color .4s var(--ease-expo), border-color .4s var(--ease-expo), opacity .3s;
}
.gal-arrow svg { width: 19px; height: 19px; stroke: var(--color-on-light); fill: none; stroke-width: 1.4; transition: stroke .4s; }
.gal-arrow:hover { background: var(--color-text); border-color: var(--color-text); }
.gal-arrow:hover svg { stroke: var(--color-invert-text); }
.gal-arrow:disabled { opacity: 0.25; pointer-events: none; }

.gal-cover { margin-bottom: 8vh; }
.gal-cover__btn {
  position: relative; display: block; width: 100%; overflow: hidden;
  aspect-ratio: 21/9;
  background-size: cover; background-position: center; background-color: var(--color-cream);
}
/* ギャラリーの入口（ボタン）も、パソコンでは本文幅の 75% で中央に置く。下の注意書きはボタンの左端にそろえる */
@media screen and (min-width: 901px) {
  .gal-cover__btn { width: 75%; margin-inline: auto; }
  .pj-gallery .pj-note { width: 75%; margin-inline: auto; }
}
.gal-cover__veil { position: absolute; inset: 0; background: rgba(var(--rgb-ink),0.48); transition: background-color .5s var(--ease-expo); }
.gal-cover__btn:hover .gal-cover__veil { background: rgba(var(--rgb-ink),0.6); }
.gal-cover__label {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--color-on-dark);
}
.gal-cover__label .en { position: relative; padding-bottom: 12px; padding-left: 0.28em; font-family: var(--font-en); font-size: clamp(24px,3.2vw,38px); letter-spacing: 0.28em; text-transform: uppercase; }
.gal-cover__label .en::after { content:""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 44px; height: 1px; background: currentColor; opacity: 0.7; transition: width .5s var(--ease-expo); }
.gal-cover__btn:hover .gal-cover__label .en::after { width: 76px; }
.gal-cover__label .jp { font-size: 12.5px; letter-spacing: 0.22em; opacity: 0.85; }
.gal-cover__label .num { font-family: var(--font-en); font-size: 12.5px; letter-spacing: 0.14em; opacity: 0.7; }

/* ポップアップ */
.gbox {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: flex-start; justify-content: center;
  visibility: hidden; padding: 2vh max(5vw, 112px); overflow-y: auto;  /* 左右は矢印（外側 66px＋46px）が画面に入る幅を確保 */
}
.gbox.is-open { visibility: visible; }
.gbox__bg { position: absolute; inset: 0; background: rgba(var(--rgb-ink),0.92); opacity: 0; }
/* 写真の大きさ＝「幅 1180px」「画面の幅」「高さが画面の 82%」のいちばん小さいもの。
   高さを画面の割合で決めているので、ブラウザの表示倍率を変えても写真の見た目の大きさは変わらない
   （以前は「画面の高さ − 170px」で決めていたため、Windows で表示を 75% に縮小すると写真が逆に大きくなっていた）。
   margin: auto は上下中央寄せ。画面が極端に低いときは上寄せになり、スクロールで下まで見られる */
.gbox__inner { position: relative; z-index: 2; margin: auto; padding-top: 52px; width: min(1180px, 100%, calc(82vh * 16 / 9), calc((96vh - 92px) * 16 / 9)); width: min(1180px, 100%, calc(82dvh * 16 / 9), calc((96dvh - 92px) * 16 / 9)); opacity: 0; transform: translateY(30px); }
.gbox__frame { position: relative; overflow: hidden; aspect-ratio: 16/9; background: rgba(var(--rgb-light),0.04); }
.gbox__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease-power); }
.gbox__slide img { width: 100%; height: 100%; object-fit: contain; }
.gbox__slide.is-active { opacity: 1; }
.gbox__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; color: rgba(var(--rgb-light),0.85); }
.gbox__foot .gal-cap { margin-top: 0; color: rgba(var(--rgb-light),0.75); }
.gbox__foot .gal-count { color: rgba(var(--rgb-light),0.65); }
.gbox__close {
  position: absolute; top: 0; right: -6px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; color: rgba(var(--rgb-light),0.85);
  transition: background-color .35s var(--ease-expo), color .35s var(--ease-expo);
}
.gbox__close:hover { background: rgba(var(--rgb-light),0.14); color: var(--color-on-dark); }
.gbox .gal-arrow { background: rgba(var(--rgb-light),0.1); border-color: rgba(var(--rgb-light),0.28); box-shadow: none; }
.gbox .gal-arrow svg { stroke: rgba(var(--rgb-light),0.9); }
.gbox .gal-arrow:hover { background: rgba(var(--rgb-light),0.92); border-color: transparent; }
.gbox .gal-arrow:hover svg { stroke: var(--color-dark); }
.gbox .gal-arrow { top: calc(50% + 6px); }  /* 上余白 52px と下の文字行 40px の差を補正して、写真の高さの中央に */
.gbox .gal-arrow--prev { left: -66px; }
.gbox .gal-arrow--next { right: -66px; }

/* =========================================
   一覧へ戻る
========================================= */
.pj-footer-nav { border-top: 1px solid var(--color-line); margin-top: 8vh; }
.pj-footer-nav__inner { display: flex; justify-content: space-between; align-items: center; padding: 6vh 0; }
.pj-back { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; }
.pj-back::before { content:""; width: 26px; height: 1px; background: currentColor; transition: width .4s var(--ease-expo); }
.pj-back:hover::before { width: 40px; }

@media screen and (max-width: 1100px) {
  .pj-info__grid { grid-template-columns: 1fr; gap: 44px; }
  .gbox { padding-inline: 5vw; }  /* 矢印は写真の内側に置くので、左右の余白は 5vw で足りる */
  .gbox .gal-arrow--prev { left: 12px; }
  .gbox .gal-arrow--next { right: 12px; }
}

@media screen and (max-width: 900px) {
  .pj-head { padding-top: calc(76px + 2vh); }
  .pj-crumb { margin-bottom: 24px; }
  .pj-crumb ol { font-size: 11px; }
  .pj-crumb li + li::before { width: 10px; margin: 0 9px; }
  .pj-crumb__en { font-size: 12px; }
  .pj-head__inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 22px; }
  .pj-head__tags { gap: 8px; margin-bottom: 14px; }
  .pj-head__status { font-size: 13px; padding: 8px 20px; }
  .pj-head__tag { font-size: 11.5px; padding: 6px 14px; }
  .pj-head__name { font-size: clamp(24px, 6.6vw, 34px); }
  .pj-head__en { font-size: 13px; margin-top: 6px; }
  .pj-head__lp { width: 100%; padding-bottom: 0; }
  .pj-head__lp .btn-round { width: 100%; padding: 15px 20px; }

  .pj-visual { padding-top: 3.5vh; }

  .pj-info { padding: 3vh 0; }
  .pj-info__grid { gap: 36px; }
  .pj-spec { grid-template-columns: 92px 1fr; }
  .pj-spec dt, .pj-spec dd { padding: 15px 0; font-size: 13px; }  /* 上下の線は PC と同じ（項目名と内容の両方に引く）。ここで片方だけ消さないこと */

  .pj-gallery { padding: 2vh 0 0vh; }
  .gal-arrow { width: 40px; height: 40px; }

  .gal-cover { margin-bottom: 0; }
  .gal-cover__btn { aspect-ratio: 16/10; }
  .gbox { padding: 3vh 4vw; }
  .gbox__close { top: 4px; right: 0; }
  .gbox__inner { padding-top: 48px; width: min(100%, calc(78vh * 4 / 3), calc((94vh - 88px) * 4 / 3)); width: min(100%, calc(78dvh * 4 / 3), calc((94dvh - 88px) * 4 / 3)); }
  .gbox__frame { aspect-ratio: 4/3; }

  .pj-footer-nav__inner { padding: 5vh 0; }
}

