/* ============================================================
   G GALLERY — PRODUCTION STYLESHEET
   トーン：Lemaire / A.P.C. 系のミニマル・エディトリアル
   配色：生成り基調 × チャコール（純黒は避ける）
   タイポ：Archivo（欧文）× Zen Kaku Gothic New（和文）和欧混植
   ============================================================ */

:root {
  /* 配色 */
  --bg:        #F4F1EA;   /* 生成りベース */
  --bg-alt:    #EAE5DB;   /* やや沈めた生成り（FOOTER等） */
  --ink:       #211E1A;   /* 温かみのあるチャコール */
  --ink-2:     #4A453E;   /* 副次テキスト */
  --muted:     #8C857A;   /* 弱めテキスト */
  --line:      rgba(33,30,26,0.16);
  --line-soft: rgba(33,30,26,0.09);
  --ph:        #E3DCCE;   /* 画像プレースホルダー */
  --invert-bg: #211E1A;   /* APPLY 反転バンド */
  --invert-ink:#F4F1EA;

  /* 体裁 */
  --maxw: 1180px;
  --gutter: clamp(22px, 5vw, 64px);
  --sec-pad: clamp(78px, 11vh, 156px);

  /* タイポ */
  --sans: 'Archivo', 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont,
          "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---------- 固定ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,241,234,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(244,241,234,0.92);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 15px;
}
.global-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 28px;
}
.global-nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  position: relative;
  padding-bottom: 2px;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.global-nav a:hover::after { transform: scaleX(1); }

.btn-apply {
  border: 1px solid var(--ink);
  padding: 9px 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.btn-apply:hover { background: var(--ink); color: var(--bg); }

/* ---------- セクション共通 ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sec-pad) var(--gutter);
}
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

/* HERO / APPLY は中央寄せコンテナの外に出して全幅に
   （main が全幅なので max-width 解除で足りる。100vw ハックは使わない） */
.section.apply { max-width: none; margin: 0; }

/* ---------- タイポ階層 ---------- */
.overline {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-headline {
  font-family: var(--sans);
  font-size: clamp(32px, 6vw, 66px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.jp-headline {
  font-size: clamp(21px, 3vw, 31px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.en-statement {
  font-size: clamp(28px, 4.8vw, 56px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.12;
}
.jp-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.block-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-weight: 500;
}

/* コンテンツ未確定のプレースホルダー文（控えめに） */
.placeholder-text { color: var(--muted); font-style: italic; }

/* ---------- 画像プレースホルダー ---------- */
.ph {
  position: relative;
  background: var(--ph);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  padding: 1em;
  text-align: center;
}
/* 実写真：プレースホルダー枠いっぱいに cover で表示 */
.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-img--contain { object-fit: contain; }
.ph-fullbleed { width: 100%; height: clamp(440px, 84vh, 880px); }
.ph-portrait  { aspect-ratio: 3/4; }
.ph-square    { aspect-ratio: 1/1; }
.ph-4x5       { aspect-ratio: 4/5; }
.ph-floorplan { width: 100%; aspect-ratio: 16 / 9; margin-top: clamp(28px, 4vw, 48px); background: #fff; }
.ph-map       { width: 100%; min-height: 320px; height: 100%; }
.map-embed    { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- HERO（写真に白抜きコピーをオーバーレイ） ---------- */
.hero {
  position: relative;
  width: 100%;
  height: clamp(520px, 86vh, 920px);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* 可読性のための微グラデーション（下を少し暗く） */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(26,23,20,0.72) 0%, rgba(26,23,20,0.32) 38%, rgba(26,23,20,0) 66%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 76px);
  color: #fff;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  margin-bottom: 20px;
}
.hero .hero-headline {
  color: #fff;
  text-shadow: 0 1px 26px rgba(0,0,0,0.30);
}
.hero-desc {
  margin-top: 20px;
  max-width: 36em;
  color: rgba(255,255,255,0.92);
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: 0.04em;
  line-height: 1.75;
}

/* ---------- SPACE（クリーンな空間：全幅2枚のエディトリアル配置） ---------- */
.space-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  margin-bottom: clamp(44px, 6vw, 72px);
}
/* 2枚とも同じ高さ（16:7）で統一（KEN指示 2026-06-10：画像の高さを揃える） */
.space-gallery .ph { aspect-ratio: 16 / 7; }
.spec-block { margin-top: 8px; }

.spec-table, .price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th, .price-table th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  width: 42%;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  letter-spacing: 0.03em;
}
.spec-table td, .price-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--ink);
}

/* ---------- INTENT ---------- */
.intent { text-align: left; }
.intent-body { margin-top: 30px; max-width: 640px; color: var(--ink-2); }

/* ---------- PROGRAM ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}

/* ---------- RENTAL ---------- */
.price-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.price-table th { width: 64%; }
.price-table td { text-align: right; font-variant-numeric: tabular-nums; }
.price-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- TERMS ---------- */
.terms-list {
  max-width: 760px;
  border-top: 1px solid var(--line-soft);
}
.terms-item {
  display: flex;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.terms-num {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  padding-top: 5px;
  flex: 0 0 auto;
  min-width: 22px;
}
.terms-item p { color: var(--ink-2); }
.terms-foot {
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- APPLY（反転バンド・全幅） ---------- */
.apply {
  background: var(--invert-bg);
  color: var(--invert-ink);
  text-align: center;
  padding: clamp(96px, 14vh, 168px) 0;
}
.apply-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.apply-headline {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.apply-sub {
  margin-top: 18px;
  color: rgba(244,241,234,0.66);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.btn-apply-large {
  display: inline-block;
  margin-top: 40px;
  background: var(--invert-ink);
  color: var(--ink);
  padding: 17px 64px;
  font-size: 13px;
  letter-spacing: 0.2em;
  transition: opacity .25s ease, transform .25s ease;
}
.btn-apply-large:hover { opacity: 0.84; transform: translateY(-1px); }

/* ---------- APPLY 自作フォーム（反転バンド上・生成り文字） ---------- */
.apply-form {
  max-width: 720px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 28px);
}
.af-row { display: flex; flex-direction: column; gap: 9px; }
.af-row--full { grid-column: 1 / -1; }
.af-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,241,234,0.62);
}
.af-req { color: rgba(244,241,234,0.9); }
.af-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244,241,234,0.28);
  color: var(--invert-ink);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 10px 2px;
  transition: border-color .25s ease;
}
.af-input::placeholder { color: rgba(244,241,234,0.34); }
.af-input:focus {
  outline: none;
  border-bottom-color: rgba(244,241,234,0.85);
}
.af-textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.af-radios { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 2px; }
.af-radio {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--invert-ink); letter-spacing: 0.02em; cursor: pointer;
}
.af-radio input { accent-color: var(--invert-ink); width: 16px; height: 16px; }
.af-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.af-error {
  grid-column: 1 / -1;
  min-height: 1.2em; margin: 2px 0 0;
  font-size: 13px; color: #E5A3A3; letter-spacing: 0.03em;
}
.af-submit {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 8px;
  border: 0; cursor: pointer;
  font-family: inherit;
}
.af-submit:disabled { opacity: 0.5; cursor: default; transform: none; }
.af-note {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 4px;
  font-size: 12px; color: rgba(244,241,234,0.5); letter-spacing: 0.04em;
}
.apply-done { max-width: 560px; margin: clamp(40px,6vw,64px) auto 0; }
.apply-done-title { font-size: clamp(22px,3vw,30px); font-weight: 500; letter-spacing: 0.02em; }
.apply-done-text { margin-top: 16px; color: rgba(244,241,234,0.7); font-size: 15px; line-height: 1.8; }
@media (max-width: 600px) {
  .apply-form { grid-template-columns: 1fr; }
}

/* ---------- SCHEDULE（空き状況カレンダー：予約可能=強調 / 予定あり=×） ---------- */
.avail-legend {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin-bottom: 22px;
  font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em;
}
.avail-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.avail-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; font-size: 12px;
}
.avail-chip--free { background: var(--ink); color: var(--bg); border-radius: 50%; }
.avail-chip--busy { color: var(--muted); }

/* 横スライド：左右ボタン＋スナップするトラックで最大6ヶ月分 */
.availability { position: relative; }
.avail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * clamp(24px, 3vw, 44px)) / 3);
  gap: clamp(24px, 3vw, 44px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.avail-track::-webkit-scrollbar { display: none; }
.avail-month { scroll-snap-align: start; min-width: 0; }
.avail-nav {
  position: absolute; top: 40%; transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.avail-nav:hover { background: var(--ink); color: var(--bg); }
.avail-nav:disabled { opacity: 0; pointer-events: none; }
.avail-nav--prev { left: -8px; }
.avail-nav--next { right: -8px; }
.avail-month { width: 100%; }
.avail-month-title {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  margin-bottom: 12px; color: var(--ink);
}
.avail-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.avail-table th {
  font-size: 10px; font-weight: 400; color: var(--muted);
  padding: 4px 0; text-align: center; letter-spacing: 0.08em;
}
.avail-table td { padding: 2px; text-align: center; }
.avail-day {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1/1; max-width: 40px;
  font-size: 12.5px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.avail-day--free {
  background: var(--ink); color: var(--bg);
  border-radius: 50%;
  font-weight: 500;
  transition: opacity .2s ease, transform .2s ease;
}
a.avail-day--free:hover { opacity: 0.78; transform: scale(1.06); }
.avail-day--busy { color: var(--muted); }
.avail-day--past { color: var(--line); }
.schedule-loading, .schedule-error {
  font-size: 13px; color: var(--muted); letter-spacing: 0.04em;
  grid-column: 1 / -1;
}
.schedule-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .avail-track { grid-auto-columns: 100%; gap: 24px; }
  .avail-day { max-width: 44px; font-size: 13px; }
  .avail-nav--prev { left: -4px; }
  .avail-nav--next { right: -4px; }
}

/* ---------- ACCESS ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
}
.address { font-size: 16px; margin-bottom: 26px; letter-spacing: 0.04em; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  padding: clamp(48px, 7vw, 80px) var(--gutter) 36px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand { font-weight: 600; letter-spacing: 0.22em; margin-bottom: 12px; }
.footer-addr { font-size: 13px; color: var(--muted); letter-spacing: 0.03em; }
.footer-link { font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .25s ease; }
.footer-link:hover { opacity: 0.6; }
.footer-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.footer-col .placeholder-text { font-size: 13px; }
.footer-apply {
  border: 1px solid var(--ink);
  padding: 9px 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  transition: background .25s ease, color .25s ease;
  display: inline-block;
}
.footer-apply:hover { background: var(--ink); color: var(--bg); }
.footer-copy {
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 64px) auto 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  body { line-height: 1.75; }
  .global-nav { display: none; }
  .space-gallery { grid-template-columns: 1fr; }
  .space-gallery .ph, .space-gallery .ph:first-child { aspect-ratio: 16 / 10; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; gap: 40px; }
  .access-grid { grid-template-columns: 1fr; }
  .ph-map { min-height: 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}

@media (max-width: 540px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .spec-table th, .price-table th { width: 50%; }
}


/* ---------- FURNITURE（貸出什器・2026-06-15 追加） ---------- */
.furniture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 32px);
}
.furn-item { margin: 0; }
.furn-ph { aspect-ratio: 1 / 1; }
.furn-cap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.furn-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.furn-spec {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.furniture-note {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .furniture-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 540px) {
  .furniture-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}


/* ---------- 平面図ダウンロード（2026-06-15 追加） ---------- */
.floorplan-dl { margin-top: 18px; }
.floorplan-dl a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.floorplan-dl a:hover { color: var(--muted); border-color: var(--muted); }

/* ---------- FAQ（2026-06-15 追加） ---------- */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: clamp(18px, 2.4vw, 24px) 44px clamp(18px, 2.4vw, 24px) 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 44px clamp(20px, 2.6vw, 28px) 0; }
.faq-a p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}


/* SCHEDULE CTA（2026-06-15：カレンダー閲覧専用化／申込はAPPLYへ一本化） */
.schedule-cta { margin-top: clamp(20px, 3vw, 30px); }
.schedule-cta a {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.schedule-cta a:hover { color: var(--muted); border-color: var(--muted); }


/* WebP用 picture（2026-06-15：レイアウト不変のため contents） */
picture { display: contents; }
