/* CHOKO flower shop（津）1ページ。スマホを先に書き、PC は min-width: 900px の1段だけ。 */

:root {
  --gold: #B8A07A;        /* シャンパンゴールド。罫線・ロゴ・24px以上の飾り文字だけ（白地 2.5:1 なので小さい字に使わない） */
  --gold-deep: #7A6646;   /* 小さい金色の字・塗りボタンの地（白地 5.5:1／白文字 5.5:1） */
  --white: #FFFFFF;       /* 基本の地 */
  --greige: #CFC6BA;      /* 罫線・枠 */
  --greige-pale: #F1EDE7; /* 交互の節の地 */
  --ink: #4A4541;         /* 本文（白地 9.5:1／greige-pale 地 8.1:1） */
  --ink-sub: #6E665E;     /* 補足・注記（白地 5.6:1／greige-pale 地 4.8:1） */

  --font-ja: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --side: max(28px, env(safe-area-inset-left), env(safe-area-inset-right));
  --bar-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* display:grid などが hidden 属性に勝たないように */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom)); /* 下の固定帯と同じ高さ */
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .06em;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2, h3, dd, dt, li, td, th { word-break: auto-phrase; } /* 対応ブラウザ（Chrome 119+）だけ、文節で折り返す */
/* 中央ぞろえの短い文は、句読点と <br> でだけ折る（「お問い／合わせ」のように語の途中で切らない）。
   収まらない長さのときは body の overflow-wrap: anywhere で折れるので、はみ出しはしない */
.hero-lead, .section-head h2, .card-title, .wide-lead, .service-note, .prose--center p, .ig-account { word-break: keep-all; }

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
a:hover { text-decoration: none; }
:focus-visible { outline: 1px solid var(--gold-deep); outline-offset: 4px; }

h1, h2, h3 { margin: 0; font-weight: 300; }
table { border-collapse: collapse; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nowrap { display: inline-block; }

/* ---------- ロゴ（画像。色は tools/build-images.py の LOGO_COLOR で決めて画像に焼き込む） ---------- */
.logo { display: block; margin: 0 auto; line-height: 0; }
.logo img { display: block; width: 100%; height: auto; }

/* ---------- トップ（ロゴ・写真・一言） ----------
   スマホ: ロゴ → 写真 → 一言 の縦並び。最初の画面にロゴと写真の両方が入るよう、写真の高さを画面の高さで抑える。
   PC: 左に写真（上下いっぱい）、右にロゴと一言。文字は写真に重ねない。 */
.hero {
  position: relative;
  display: grid;
  grid-template-areas: "logo" "photo" "lead";
  justify-items: center;
  padding: 24px var(--side) 96px;
  text-align: center;
}
.hero::after { /* 下へ続くことを示す細い線 */
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 56px;
  background: var(--gold);
}
.brand { grid-area: logo; font-weight: 400; }
.hero .logo { width: 140px; }

.hero-photo {
  grid-area: photo;
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  min-height: 250px; /* 高さ548pxの画面（iPhone SE の Safari）でも写真の下端まで固定帯の上に入る */
  max-height: calc(100vh - var(--bar-height) - 220px);
  max-height: calc(100svh - var(--bar-height) - 220px); /* 220px ≒ 上の余白＋ロゴ＋間 */
  margin-top: 20px;
  overflow: hidden;
  background: var(--greige-pale);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out; /* hero.js の FADE_MS と同じ */
}
.hero-slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide--low { object-position: 50% 80%; } /* 花が写真の下のほうにある写真（Pink×Orange） */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

.hero-lead {
  grid-area: lead;
  margin: 40px 0 0;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .15em;
  line-height: 2.2;
}

/* ---------- 節の共通 ---------- */
.section { padding: 96px var(--side); }
.section--pale { background: var(--greige-pale); }

.section-head { margin-bottom: 48px; text-align: center; }
.label {
  margin: 0;
  padding-left: .3em;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.label::after { /* ラベルと見出しの間の金の線 */
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 12px auto;
  background: var(--gold);
}
.section-head h2 {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: .15em;
}

.prose { max-width: 34em; margin: 0 auto; }
.prose p { margin: 0 0 2em; }
.prose p:last-child { margin-bottom: 0; }
.prose--center { text-align: center; }

.note {
  display: block;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-sub);
}

/* ---------- できること ---------- */
.cards {
  display: grid;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.card {
  padding: 40px 24px;
  background: var(--white);
}
.card p { margin: 0; }
.card p + p, .card table + p { margin-top: 12px; }
.card-title {
  margin-bottom: 24px;
  padding-bottom: 20px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .12em;
  text-align: center;
  position: relative;
}
.card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 24px;
  height: 1px;
  margin-left: -12px;
  background: var(--gold);
}

.price-table { width: 100%; margin-top: 12px; }
.price-table th, .price-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--greige);
  font-weight: 400;
}
.price-table tr:first-child th, .price-table tr:first-child td { border-top: 1px solid var(--greige); }
.price-table th { text-align: left; }
.price-table td { text-align: right; font-size: 16px; color: var(--gold-deep); }

.card--wide { max-width: 1040px; margin: 20px auto 0; padding: 40px 20px; }
.wide-lead { text-align: center; }
.key-facts { margin: 32px 0; }
.key-facts div { padding: 16px 0; border-top: 1px solid var(--greige); }
.key-facts div:last-child { border-bottom: 1px solid var(--greige); }
.key-facts dt { font-size: 13px; color: var(--ink-sub); }
.key-facts dd {
  margin: 0;
  font-size: 19px;
  letter-spacing: .08em;
  color: var(--gold-deep);
}
.wide-body p + p { margin-top: 2em; }

.service-note { max-width: 34em; margin: 48px auto 0; text-align: center; }

/* ---------- インスタ ---------- */
.ig-account { margin: -24px 0 40px; text-align: center; font-family: var(--font-en); font-size: 17px; letter-spacing: .08em; }
.ig-account a { text-decoration: none; }
.ig-account a:hover { text-decoration: underline; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-width: 1040px;
  margin: 0 auto;
}
.ig-tile {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--greige-pale);
}
.ig-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}
.ig-tile:hover img { opacity: .85; }

.ig-fallback {
  display: grid;
  gap: 24px;
  max-width: 400px;
  margin: 0 auto;
}
/* embed.js が iframe に付ける min-width:326px で 360px 幅がはみ出すので打ち消す */
.ig-fallback .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 auto !important; }
.ig-fallback blockquote.instagram-media { /* embed.js が読めないとき・読む前の見た目 */
  padding: 56px 16px;
  border: 1px solid var(--greige);
  background: var(--white);
  text-align: center;
  font-size: 14px;
}

.ig-more { margin: 48px 0 0; text-align: center; }

/* ---------- ボタン ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-width: 240px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--gold-deep);
  border-radius: 0;
  background: transparent;
  color: var(--gold-deep);
  font-size: 15px;
  letter-spacing: .12em;
  text-decoration: none;
  transition: background-color .25s, color .25s;
}
.button:hover { background: var(--gold-deep); color: var(--white); }
.button--primary { background: var(--gold-deep); color: var(--white); }
.button--primary:hover { background: transparent; color: var(--gold-deep); }
.button-tel { letter-spacing: .08em; }

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}

/* ---------- お支払い ---------- */
.pay-list {
  display: grid;
  max-width: 34em;
  margin: 40px auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--greige);
}
.pay-list li { padding: 14px 4px; border-bottom: 1px solid var(--greige); }
.pay-list .note { margin-top: 2px; }

/* ---------- 店舗情報 ---------- */
.access {
  display: grid;
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
}
.info-table { width: 100%; border-top: 1px solid var(--greige); }
.info-table th, .info-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--greige);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.info-table th { width: 6.5em; padding-right: 12px; font-size: 13px; color: var(--ink-sub); white-space: nowrap; }

.map iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: grayscale(40%);
}
.map-link { margin: 12px 0 0; font-size: 13px; text-align: right; }

/* ---------- フッター ---------- */
.footer {
  padding: 80px var(--side) 48px;
  border-top: 1px solid var(--greige);
  text-align: center;
}
.footer-logo { margin: 0 0 32px; }
.footer .logo { width: 110px; }
.footer-honten { margin: 0 0 8px; font-size: 13px; }
.copyright { margin: 0; font-size: 12px; color: var(--ink-sub); }
.copyright small { font-size: inherit; }

/* ---------- スマホだけの下の固定帯 ---------- */
.fixed-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: calc(var(--bar-height) + env(safe-area-inset-bottom));
  padding: 9px max(12px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid var(--greige);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.fixed-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font-size: 14px;
  letter-spacing: .12em;
  text-decoration: none;
}
.fixed-bar a.fixed-bar-primary { background: var(--gold-deep); color: var(--white); }

/* ---------- PC（900px 以上） ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 16px; }
  .fixed-bar { display: none; }
  br.sp-only { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr; /* 右の列でロゴと一言を上下の真ん中に */
    grid-template-areas: "photo ." "photo logo" "photo lead" "photo .";
    min-height: min(88vh, 820px);
    min-height: min(88svh, 820px);
    padding: 0;
  }
  .hero::after { display: none; }
  .hero .logo { width: 220px; }
  .hero-photo {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
  }
  .hero-lead { margin: 48px var(--side) 0; font-size: 18px; }

  .section { padding: 160px var(--side); }
  .section-head h2 { font-size: 24px; }
  .prose--about { text-align: center; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { padding: 48px 32px; }
  .card--wide {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    margin-top: 24px;
    padding: 64px;
  }
  .card--wide .card-title, .wide-lead { text-align: left; }
  .card--wide .card-title::after { left: 0; margin-left: 0; }
  .key-facts { margin-bottom: 0; }

  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ig-fallback { grid-template-columns: repeat(3, 1fr); max-width: 1040px; align-items: start; }

  .buttons { flex-direction: row; justify-content: center; gap: 24px; }

  .pay-list { grid-template-columns: 1fr 1fr; column-gap: 48px; max-width: 40em; }

  .access { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .map iframe { aspect-ratio: 16 / 10; }
}
