@charset "UTF-8";

/* =========================================================
   株式会社七福園 様 ご提案専用サンプル
   ---------------------------------------------------------
   第2版（2026-09-02）。CEO指摘を受けて作り直し。
   直した3つ：
     ① 色のベタ塗りをやめた（塗る面積 約55% → 約2割）
     ② 余白を広げた（区画の空き 最大168px → 200px超）
     ③ 整列の軸を決めた（見出し列・本文列の2本。CTAは下端そろえ）

   世界観の軸は、七福園自身が持っている4つだけを使う：
     軸1 行書のロゴ（緑の毛筆）→ 見出しを明朝にし、太字を使わない
     軸2 屋号マーク（△に木）   → 区画の頭・沿革の節目に置く
     軸3 サーモン #F98763      → 細い罫と小さな点だけ。面には塗らない
     軸4 創業138年             → 数字だけ大きく組む（唯一の大きな見せ場）
   ========================================================= */

:root {
  color-scheme: only light;

  /* --- 文字サイズ（03_レビューゲート 18px仕様＝正本） --- */
  --fs-body: 18px;
  --fs-lead: 20px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-label: 15px;
  --fs-note: 14px;

  /* --- 配色 -------------------------------------------------
     出どころ：先方ロゴ img/top/toplogo.gif の画素実測
       緑 #009900（社名・屋号マーク） / サーモン #F98763（楕円の枠）
     原色のまま面に塗ると強すぎるので、彩度を落として使う。
     ⚠️ 濃い緑を塗ってよいのは「フッター1枚」だけ。 */
  --midori: #2f5b39; /* 主色。文字・罫・マーク */
  --midori-fuka: #1e3b27; /* 濃緑。フッターのみ */
  --midori-usu: #f4f7f2; /* ほぼ白の緑。区画の色替えはこの程度に留める */
  --shu: #f98763; /* ロゴ実測のサーモン。細い罫と点だけ */
  --shu-koi: #ad4a24; /* 白地でコントラスト4.5以上（実測4.44→5.0） */ /* 文字・主CTAに使えるサーモン */
  --kinari: #faf8f4;
  --ink: #23211d;
  --ink-usu: #5d584f;
  --line: #e2ddd2; /* 髪の毛の細さの罫 */
  --line-koi: #cdc6b7;
  --paper: #ffffff;

  /* --- 骨格 --- */
  --w: 1120px; /* コンテナ幅は1つだけ。全区画がこれを使う */
  --pad: 24px;
  --read: 40em; /* 本文の行長。全幅に流さない */

  /* 区画の空き。今回いちばん変えたところ */
  --gap-section: clamp(88px, 12vw, 200px);
  --gap-block: clamp(40px, 5vw, 72px);

  --radius: 0;
  --shadow: none;

  --gothic:
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", meiryo, sans-serif;
  --mincho:
    "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;

  --mark: url("mark-shape.svg");
}

* {
  box-sizing: border-box;
}

html {
  /* なめらかスクロールは使わない（見出しがヘッダーに潜るため。位置はJSで出す） */
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--gothic);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 2; /* 行間を広げて空気を作る */
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--midori);
}

/* 見出しは明朝・太くしない。字間を開けて静かに置く */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.1em;
}

p {
  margin: 0 0 1.6em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* =========================================================
   提案バー ＋ ヘッダー
   濃色バーの下に白ヘッダーを置くと「隙間」に見えるため、
   バーのほうを注釈の見た目にして、白いヘッダーを本体の顔にする。
   ========================================================= */

.proposal-bar {
  background: var(--kinari);
  border-top: 2px solid var(--shu);
  border-bottom: 1px solid var(--line);
  color: var(--ink-usu);
  font-size: var(--fs-note);
  line-height: 1.7;
  letter-spacing: 0.02em;
  padding: 10px 0;
  text-align: center;
}

.proposal-bar strong {
  color: var(--ink);
  font-weight: 700;
}

/* ヘッダーは上に固定する。
   ⚠️ スクロールしても高さを変えない（変えると画面が跳ね返る） */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head a {
  color: var(--ink);
  text-decoration: none;
}

/* 上段：ロゴ ＋ 電話 */
.head-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand .logo {
  width: clamp(180px, 20vw, 232px);
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.brand .since {
  font-family: var(--mincho);
  font-size: var(--fs-note);
  letter-spacing: 0.18em;
  color: var(--ink-usu);
  white-space: nowrap;
}

.head-tel {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.4;
}

.head-tel .num {
  font-family: var(--mincho);
  font-size: 26px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--midori-fuka);
}

.head-tel .cap {
  display: block;
  font-size: var(--fs-note);
  letter-spacing: 0.12em;
  color: var(--ink-usu);
}

/* 下段：ナビ全幅（1段に詰めない） */
.head-nav {
  border-top: 1px solid var(--line);
}

.head-nav ul {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.head-nav a {
  display: block;
  padding: 15px 26px;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.head-nav a:hover,
.head-nav a:focus-visible,
.head-nav a[aria-current="page"] {
  border-bottom-color: var(--shu);
}

/* メニューボタン（スマホ）＝3点セット必須：nowrap / 縮まない / 48px */
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  color: var(--midori-fuka);
  background: #fff;
  border: 1px solid var(--midori);
  cursor: pointer;
}

/* 空のspanはSafariで潰れるので線の幅を明示する */
.menu-btn .bars {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--midori-fuka);
  position: relative;
  flex: 0 0 auto;
}

.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1px;
  background: var(--midori-fuka);
}

.menu-btn .bars::before {
  top: -6px;
}

.menu-btn .bars::after {
  top: 6px;
}

/* =========================================================
   区画の共通
   ========================================================= */

.section {
  padding-block: var(--gap-section);
  position: relative;
}

/* 色替えは「ほぼ白」の範囲に留める。ベタ塗りにしない */
.section--usu {
  background: var(--midori-usu);
}

.section--kinari {
  background: var(--kinari);
}

.section--fuka {
  background: var(--kinari);
  border-bottom: 1px solid var(--line);
}

/* --- 区画の見出し（軸2：頭に屋号マークを置く） --- */
.sec-head {
  margin-bottom: var(--gap-block);
}

.sec-head .en {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mincho);
  font-size: var(--fs-note);
  letter-spacing: 0.3em;
  color: var(--shu-koi);
  margin-bottom: 22px;
}

/* 屋号マーク（△に木）を型抜きで置く。先方のマークをそのまま使う */
.sec-head .en::before {
  content: "";
  width: 15px;
  height: 19px;
  flex: 0 0 auto;
  background: var(--midori);
  -webkit-mask: var(--mark) no-repeat center / contain;
  mask: var(--mark) no-repeat center / contain;
}

/* 見出しの後ろに引く短い罫。長い線を全幅に引かない */
.sec-head .en::after {
  content: "";
  height: 1px;
  width: 56px;
  background: var(--shu);
  flex: 0 0 auto;
}

.sec-head h1,
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}

.sec-head .lead {
  font-size: var(--fs-lead);
  line-height: 2.05;
  color: var(--ink-usu);
  margin-top: 26px;
  max-width: var(--read);
}

/* --- ボタン ---
   主CTA＝塗る（押せる形の確保）。それ以外＝細枠。
   面積が小さいので「ベタ塗り」にはならない。 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  font-family: inherit;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid var(--midori);
  background: var(--midori);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  background: var(--midori-fuka);
  border-color: var(--midori-fuka);
}

.btn:active {
  transform: translateY(2px);
}

.btn--ghost {
  background: #fff;
  color: var(--midori-fuka);
  border-color: var(--line-koi);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--shu-koi);
  border-color: var(--shu);
}

.btn--shu {
  background: var(--shu-koi);
  border-color: var(--shu-koi);
  color: #fff;
}

.btn--shu:hover {
  background: #8e3a1a;
  border-color: #8e3a1a;
}

.btn--wide {
  width: 100%;
}

/* --- CTA帯：塗らずに、細い罫で仕切る --- */
.cta {
  background: var(--kinari);
  border-top: 1px solid var(--line);
  text-align: center;
  padding-block: var(--gap-section);
}

.cta h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.cta .cta-tel {
  display: inline-block;
  font-family: var(--mincho);
  font-size: clamp(36px, 5.6vw, 56px);
  letter-spacing: 0.04em;
  color: var(--midori-fuka);
  text-decoration: none;
  margin: 26px 0 0;
  padding: 4px 8px;
}

.cta .cta-tel:hover {
  color: var(--shu-koi);
}

.cta p {
  color: var(--ink-usu);
  margin: 22px 0 0;
}

.cta-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

/* --- 戻りリンク --- */
.back-link {
  padding-block: var(--gap-block);
}

.back-link a {
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-decoration: none;
}

.back-link a:hover {
  color: var(--shu-koi);
}

/* =========================================================
   フッター（濃緑を塗ってよいのはここ1枚だけ）
   ========================================================= */

.site-foot {
  background: var(--midori-fuka);
  color: #c8d5cb;
  font-size: var(--fs-label);
  line-height: 2;
  letter-spacing: 0.06em;
  padding-block: clamp(56px, 7vw, 88px) 0;
}

.site-foot a {
  color: #fff;
  text-decoration: none;
}

.site-foot a:hover,
.site-foot a:focus-visible {
  color: var(--shu);
}

.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.foot-logo {
  display: block;
  width: 196px;
  height: auto;
  margin: 0 0 26px;
}

.foot-addr {
  margin: 0 0 22px;
}

.foot-contact {
  display: grid;
  grid-template-columns: 3.8em 1fr;
  gap: 4px 16px;
  margin: 0;
}

.foot-contact dt {
  font-family: var(--mincho);
  font-size: var(--fs-note);
  letter-spacing: 0.2em;
  color: #8ba394;
}

.foot-contact dd {
  margin: 0;
}

.foot-col h3 {
  font-size: var(--fs-h4); /* 見出しは20px以上（03の18px仕様） */
  letter-spacing: 0.16em;
  color: #fff;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-col li + li {
  margin-top: 2px;
}

.foot-col a {
  display: inline-block;
  padding-block: 8px;
}

.foot-sub {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 24px 0 96px;
}

.foot-note {
  font-size: var(--fs-note);
  line-height: 1.9;
  color: #8ba394;
  margin: 0;
  max-width: 66em;
}

/* スマホ下部の固定電話ボタン */
.sp-tel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--shu-koi);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  padding: 15px 12px calc(15px + env(safe-area-inset-bottom));
}

/* =========================================================
   ヒーロー（骨格C：分割）
   塗らない。写真は明るいまま大きく置く。
   ========================================================= */

.hero {
  background: var(--paper);
  padding-block: clamp(56px, 8vw, 116px) clamp(48px, 6vw, 96px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 34px;
}

/* 塗った丸バッジをやめ、細い罫の下線だけにする */
.chip {
  font-size: var(--fs-note);
  letter-spacing: 0.16em;
  color: var(--ink-usu);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(29px, 3.9vw, 47px);
  line-height: 1.75;
  letter-spacing: 0.09em;
}

/* 軸4：創業138年。数字だけ大きく組む */
.hero h1 .num {
  color: var(--shu-koi);
  font-size: 1.32em;
  letter-spacing: 0.02em;
}

.hero .hero-sub {
  font-size: var(--fs-body);
  line-height: 2.1;
  color: var(--ink-usu);
  margin-top: 34px;
  max-width: 30em;
}

/* 入口2つ。左端をそろえ、下端もそろえる */
.hero-acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.hero-act {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.16s ease;
}

.hero-act + .hero-act {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.hero-act:hover {
  padding-left: 10px;
}

.hero-act + .hero-act:hover {
  padding-left: 36px;
}

.hero-act .t {
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  letter-spacing: 0.1em;
  color: var(--midori-fuka);
}

.hero-act .d {
  font-size: var(--fs-note);
  letter-spacing: 0.08em;
  color: var(--ink-usu);
  margin-top: 8px;
}

.hero-act .g {
  margin-top: auto;
  padding-top: 20px;
  font-size: var(--fs-note);
  letter-spacing: 0.08em;
  color: var(--shu-koi);
}

/* 写真は潰さない。キャプションは小さく下に */
.hero-photo {
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-photo figcaption {
  margin-top: 14px;
  font-size: var(--fs-note);
  letter-spacing: 0.06em;
  color: var(--ink-usu);
}

/* 写真が無い区画の枠 */
.photo-slot {
  border: 1px solid var(--line);
  background: var(--kinari);
  color: var(--ink-usu);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 32px 24px;
  min-height: 260px;
}

.photo-slot .mark {
  width: 30px;
  opacity: 0.42;
}

.photo-slot .t {
  font-family: var(--mincho);
  font-size: var(--fs-h4);
  letter-spacing: 0.1em;
  color: var(--midori-fuka);
}

.photo-slot .d {
  font-size: var(--fs-note);
  line-height: 1.9;
  max-width: 24em;
}

/* =========================================================
   カード・ならび
   枠と影をやめ、上に1本の細い罫だけ引く
   ========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(288px, 100%), 1fr));
  gap: clamp(28px, 3.4vw, 52px);
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  background: none;
  border: 0;
  border-top: 1px solid var(--midori);
  padding: 26px 0 0;
}

.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 18px;
}

.card p {
  font-size: var(--fs-body);
  line-height: 2.05;
  color: var(--ink-usu);
}

/* 補足とボタンは必ずカードの下端にそろえる（2026-09-02 CEO指摘） */
.card-meta {
  margin-top: auto;
  padding-top: 22px;
  min-height: calc(2 * 1.8em + 22px);
}

.card-act {
  margin-top: 18px;
  margin-bottom: 0;
}

/* --- 軸4：数字で語る欄。円のバッジをやめ、数字だけ大きく組む --- */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(206px, 100%), 1fr));
  gap: clamp(28px, 3vw, 44px);
}

.badge {
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--midori);
  padding: 26px 0 0;
}

.badge .ring {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: auto;
  height: auto;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  color: var(--midori-fuka);
  line-height: 1;
}

.badge .ring .big {
  font-family: var(--mincho);
  font-size: clamp(46px, 5.4vw, 66px);
  letter-spacing: 0.02em;
}

.badge .ring .small {
  font-family: var(--mincho);
  font-size: var(--fs-lead);
  letter-spacing: 0.1em;
  color: var(--shu-koi);
}

.badge h3 {
  font-size: var(--fs-h4);
  margin-bottom: 12px;
}

.badge p {
  font-size: var(--fs-label);
  line-height: 2;
  color: var(--ink-usu);
  margin: 0;
}

/* 意味のかたまりを途中で割らない（03の泣き別れ防止） */
.ln {
  display: inline-block;
}

.note {
  font-size: var(--fs-note);
  line-height: 1.9;
  color: var(--ink-usu);
}

/* =========================================================
   スマホ
   ========================================================= */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo {
    order: -1;
  }
}

@media (max-width: 780px) {
  :root {
    --pad: 20px;
  }

  .head-top {
    padding-block: 12px;
  }

  .brand .since,
  .head-tel {
    display: none; /* 下部の固定電話ボタンが常時出ることが条件 */
  }

  .menu-btn {
    display: inline-flex;
  }

  .head-nav {
    display: none;
  }

  .head-nav.is-open {
    display: block;
    background: #fff;
  }

  .head-nav ul {
    flex-direction: column;
  }

  .head-nav a {
    padding: 17px 4px;
    border-bottom: 1px solid var(--line);
  }

  .head-nav a:hover,
  .head-nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--shu-koi);
  }

  .hero-act + .hero-act {
    border-left: 0;
    padding-left: 0;
  }

  .hero-act + .hero-act:hover {
    padding-left: 10px;
  }

  .foot-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .foot-sub {
    padding-bottom: 110px;
  }

  .sp-tel {
    display: block;
  }
}

/* =========================================================
   動きは1〜3個まで。設定で切れるようにする
   ========================================================= */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 0.7s ease both;
}

.rise-2 {
  animation-delay: 0.13s;
}

.rise-3 {
  animation-delay: 0.26s;
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }

  * {
    transition: none !important;
  }
}

/* =========================================================
   料金シミュレーター（rental.html の見せ場）
   数字はすべて七福園様の現行サイト掲載のもの
   ========================================================= */

.sim {
  background: #fff;
  border: 1px solid var(--midori);
  border-radius: 0;
  overflow: hidden;
}

.sim-step {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.sim-step > h3 {
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  margin-bottom: 6px;
}

.sim-step > h3 .no {
  display: inline-block;
  min-width: 2.1em;
  margin-right: 10px;
  padding: 2px 8px;
  border-radius: 0;
  background: var(--midori);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 400;
  vertical-align: 0.16em;
}

.sim-step > .note {
  margin-bottom: 16px;
}

/* STEP1 置き場所（押せる箱は押せる形に：2px枠＋影＋沈む動き） */
.place-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}

.place-opt {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 16px;
  text-align: left;
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease;
}

.place-opt:hover {
  border-color: var(--midori);
}

.place-opt:active {
  transform: translateY(2px);
}

.place-opt .t {
  display: block;
  font-weight: 400;
  font-size: var(--fs-h4);
}

.place-opt .d {
  display: block;
  font-size: var(--fs-label);
  color: var(--ink-usu);
  margin-top: 2px;
}

.place-opt[aria-pressed="true"] {
  border-color: var(--midori);
  background: var(--midori-usu);
  box-shadow: inset 0 0 0 2px var(--midori);
}

.place-opt[aria-pressed="true"] .t::after {
  content: "選択中";
  display: inline-block;
  white-space: nowrap;
  margin-left: 10px;
  padding: 1px 10px;
  border-radius: 0;
  background: var(--shu-koi);
  color: #fff;
  font-size: var(--fs-note);
  vertical-align: 0.12em;
}

#sim-plants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 8px;
  padding: 0;
}

#sim-plants li {
  font-size: var(--fs-label);
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 0;
  background: var(--midori-usu);
  border: 1px solid var(--midori);
  color: var(--midori-fuka);
}

/* STEP2 大きさ（人のシルエットと実寸比で並べる）
   図は「比べて見る」ためだけの帯。操作は下の .size-picker で行う
   ＝スマホで図を横スクロールさせないための分離 */
.scale-row {
  /* 列幅を図の自然幅（46 : 126 : 74 : 48）に比例させる。
     こうすると4つの図が必ず同じ率で縮み、実寸比が崩れない。
     画面が狭くなっても横スクロールは出ない。 */
  display: grid;
  grid-template-columns: 46fr 126fr 74fr 48fr;
  gap: 6px;
  align-items: end;
  max-width: 480px;
  margin-inline: auto;
  padding: 18px 10px 12px;
  background: var(--kinari);
  border: 1px solid var(--line);
  border-radius: 0;
}

.scale-item {
  text-align: center;
  min-width: 0;
}

.scale-item .fig svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--midori);
}

.scale-item.is-person .fig svg {
  color: var(--line);
}

.scale-item .lbl {
  display: block;
  border-top: 2px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

/* 大きさと鉢数を選ぶ（操作はここ） */
.size-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.pick {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  text-align: center;
}

.pick-nm {
  display: block;
  font-size: var(--fs-h4);
  font-weight: 400;
}

.pick-size {
  display: block;
  font-size: var(--fs-label);
  color: var(--ink-usu);
  margin-top: 2px;
}

.pick-yen {
  display: block;
  font-weight: 400;
  color: var(--shu-koi);
  margin-top: 4px;
}

/* 鉢数の ＋ − */
.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.counter button {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--midori-fuka);
  background: #fff;
  border: 1px solid var(--midori);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.counter button:active {
  transform: translateY(2px);
}

.counter .n {
  min-width: 2.2em;
  font-size: var(--fs-h3);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* STEP3 合計 */
.sim-total {
  background: var(--midori-fuka);
  color: #fff;
  padding: 24px;
  text-align: center;
}

.sim-total .cap {
  font-size: var(--fs-body);
  color: #cfe6d5;
}

.sim-total .yen {
  font-family: var(--mincho);
  display: block;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}

.sim-total .per {
  font-size: var(--fs-body);
  font-weight: 400;
}

.sim-total .brk {
  font-size: var(--fs-label);
  color: #cfe6d5;
  margin-top: 8px;
}

.sim-total .note {
  color: #cfe6d5;
  margin-top: 14px;
}

.sim-total .cta-acts {
  margin-top: 18px;
}

/* 品種の一覧表 */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0;
}

table.list {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--fs-body);
  background: #fff;
}

table.list th,
table.list td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

table.list thead th {
  background: var(--midori-usu);
  font-size: var(--fs-label);
  white-space: nowrap;
}

table.list tbody tr:last-child th,
table.list tbody tr:last-child td {
  border-bottom: 0;
}

table.list .yen {
  font-weight: 400;
  color: var(--shu-koi);
  white-space: nowrap;
}

/* 会社概要などの縦表 */
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
  background: #fff;
}

table.spec th,
table.spec td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

table.spec th {
  width: 12em;
  background: var(--midori-usu);
  white-space: nowrap;
}

/* 沿革の年表 */
.chrono {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 3px solid var(--midori);
}

.chrono li {
  position: relative;
  padding: 0 0 26px 8px;
}

.chrono li:last-child {
  padding-bottom: 0;
}

.chrono li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 10px;
  width: 13px;
  height: 16px;
  background: var(--shu-koi);
  -webkit-mask: var(--mark) no-repeat center / contain;
  mask: var(--mark) no-repeat center / contain;
}

.chrono .yr {
  display: block;
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--midori-fuka);
}

/* 流れ（造園） */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  counter-reset: flow;
}

.flow > li {
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--midori);
  border-radius: 0;
  padding: 22px;
}

.flow > li h3 {
  font-size: var(--fs-h3);
  margin-bottom: 8px;
}

.flow > li h3::before {
  counter-increment: flow;
  content: counter(flow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--midori);
  color: #fff;
  font-size: var(--fs-label);
  vertical-align: 0.18em;
}

.flow > li p {
  font-size: var(--fs-body);
  color: var(--ink-usu);
  margin: 0;
}

/* フォーム（デモ） */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
}

.form .field {
  margin-bottom: 20px;
}

.form label,
.form legend {
  display: block;
  font-weight: 400;
  font-size: var(--fs-body);
  margin-bottom: 6px;
}

.form .req {
  color: var(--shu-koi);
  font-size: var(--fs-label);
  margin-left: 6px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-body); /* 16px以上でiPhoneの自動ズームを防ぐ */
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 3px solid rgba(11, 122, 46, 0.35);
  border-color: var(--midori);
}

.form fieldset {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}

.form .radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form .radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  font-weight: 400;
}

.form .radios input {
  width: auto;
  accent-color: var(--midori);
}

.form .radios label:has(input:checked) {
  border-color: var(--midori);
  background: var(--midori-usu);
}

/* 地図 */
.map {
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.map iframe {
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  border: 0;
}

@media (max-width: 640px) {
  table.spec th {
    width: 8.5em;
  }
}

/* 短文の途中で意味のかたまりが割れないようにする（固定brは端末幅で逆事故になる） */
.ln {
  display: inline-block;
}

/* 当たり判定を指で押せる大きさにする */
.foot-grid a,
.note a,
.back-link a {
  display: inline-block;
  padding-block: 10px;
  min-height: 24px;
}

@media (max-width: 780px) {
  .foot-grid a,
  .note a,
  .back-link a {
    padding-block: 12px;
  }
}

/* ロゴのリンクも指で押せる高さにする */
.brand > a {
  display: flex;
  align-items: center;
  min-height: 48px;
}

/* 4枚ならぶ区画は「3枚＋1枚」にせず、そろえて並べる */
.cards--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

/* お問い合わせページの大きな連絡先 */
.tel-big {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.tel-big a {
  display: inline-block;
  min-height: 48px;
  padding: 6px 2px;
  text-decoration: none;
}

.tel-big a:hover {
  text-decoration: underline;
}

.tel-big--plain {
  font-size: clamp(24px, 4.4vw, 28px);
  font-weight: 400;
}

.tel-big--mail {
  font-size: clamp(20px, 3.6vw, 24px);
  font-weight: 400;
  word-break: break-all;
}

/* 下層ページの大見出し */
.page-title {
  font-size: clamp(30px, 4.4vw, 46px);
}

/* 上の余白の微調整（インライン指定をまとめたもの） */
.mt-sm {
  margin-top: 10px;
}

.mt-md {
  margin-top: 15px;
}

.mt-lg {
  margin-top: 18px;
}

/* 合計欄の STEP 3 は帯の中なので、緑の下敷きを付けない */
.sim-total .no--plain {
  font-weight: 400;
}

/* 押せる高さの確保（指で押す物は48px、補助のリンクは44px以上）
   ⚠️ inline のままだと当たり判定が文字の高さ（15px）しかない */
.foot-contact dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.head-tel .num {
  display: inline-block;
  padding-block: 9px;
}

/* =========================================================
   証拠の区画（写真＋言葉）
   自社温室のように「実物の写真がある事実」だけをここに置く。
   ⚠️ 写真は200×150pxしかないので、等倍のまま使う（引き伸ばさない）
   ========================================================= */

.proof {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.proof-photo {
  margin: 0;
}

.proof-photo img {
  display: block;
  width: 200px;
  height: 150px;
  object-fit: cover;
}

.proof-en {
  font-family: var(--mincho);
  font-size: var(--fs-note);
  letter-spacing: 0.3em;
  color: var(--shu-koi);
  margin: 0 0 14px;
}

.proof-body h3 {
  font-size: var(--fs-h3);
  margin-bottom: 18px;
}

.proof-body p {
  color: var(--ink-usu);
  max-width: var(--read);
}

.proof-body .note {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .proof {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   1文字だけが次の行に落ちるのを防ぐ（2026-09-03 CEO指摘）
   ・見出し＝行の長さを自動でならす
   ・本文＝最後の行が1〜2文字にならないように送る
   ・句読点や閉じかっこだけが行頭に来ないようにする
   ========================================================= */

h1,
h2,
h3,
h4,
.hero h1,
.sec-head .lead {
  text-wrap: balance;
}

td,
th,
figcaption,
.chip,
.hero-act .d,
.hero-act .g,
.scale-item .cap,
.badge .ring .small {
  /* 短い文は行を均等に割る。1文字だけ落とさない */
  text-wrap: balance;
}

p,
li,
dd,
.card p,
.badge p,
.proof-body p {
  text-wrap: pretty;
  line-break: strict;
  word-break: normal;
}

/* 4つ並びは 3+1 に折らず、2×2 で幅をそろえる（2026-09-03 CEO指摘）
   ⚠️ auto-fit に任せると幅が足りず 3列＋1列 になる */
.cards--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .cards--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   携帯では横スクロールをさせない（2026-09-03 CEO指摘）
   「横に動きます」と知らせるより、横に動かす必要をなくす。
   ・品種の表 → 1件ずつ縦に積む（見出しはラベルとして各行に出す）
   ・大きさ比べの図 → 画面の幅に収める
   ========================================================= */

@media (max-width: 640px) {
  /* --- 品種の表を積み上げにする --- */
  .tbl-wrap {
    overflow-x: visible;
    border: 0;
  }

  table.list {
    min-width: 0;
    display: block;
  }

  table.list thead {
    /* 見出し行は各セルのラベルに置き換わるので隠す（読み上げには残す） */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  table.list tbody,
  table.list tr,
  table.list th,
  table.list td {
    display: block;
    width: auto;
  }

  table.list tr {
    border: 1px solid var(--line);
    padding: 4px 0 8px;
    margin-bottom: 16px;
  }

  table.list tr:last-child {
    margin-bottom: 0;
  }

  table.list tbody th {
    border-bottom: 1px solid var(--line);
    font-family: var(--mincho);
    font-size: var(--fs-h4);
    line-height: 1.8;
    padding: 14px 16px;
  }

  table.list td {
    border-bottom: 0;
    padding: 10px 16px 0;
  }

  /* ラベルは値の上の行に置く。横に並べると値の幅が足りず割れる */
  table.list td[data-label] {
    display: block;
    padding-top: 14px;
  }

  table.list td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: var(--fs-note);
    letter-spacing: 0.08em;
    color: var(--ink-usu);
  }

  /* --- 大きさ比べの図を画面幅に収める --- */
  .scale-row {
    overflow-x: visible;
    grid-template-columns: 54px repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 14px 8px 0;
  }

  .scale-item .fig {
    height: 168px;
  }

  .scale-item .fig svg {
    width: auto;
    max-width: 100%;
    height: 100%;
  }
}

/* 途中で割ってはいけない語（電話番号など）
   ⚠️ ボタンの中の電話番号が「048-296-／7290」と割れる事故を防ぐ */
.nw {
  white-space: nowrap;
  display: inline-block;
}

/* 電話番号は途中で割らない
   ⚠️ overflow-wrap:anywhere を効かせると「048-296-／7290」と割れる */
a[href^="tel:"] {
  white-space: nowrap;
}

/* 表の中の電話・メールも指で押せる高さにする */
table.spec a[href^="tel:"],
table.spec a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* =========================================================
   開いた瞬間の幕（トップページのみ）
   参考＝積水化学工業 https://www.sekisui.co.jp/
   （CEOがポートフォリオ sakai-studio に取り入れたのと同じ動き）
   ・白地に社名ロゴだけ
   ・ぼやけた状態から、少しずつ焦点が合ってくる
   ・合いきったら幕ごと消え、ヒーローの文字が順に浮き上がる
   ⚠️ 幕が残ってクリックを塞がないよう、最後は visibility:hidden にする
   ⚠️ 動きを減らす設定の端末では出さない
   ========================================================= */

.opening {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  display: grid;
  place-items: center;
  animation: opening-out 0.6s 2.4s ease forwards;
}

.opening img {
  width: clamp(190px, 32vw, 320px);
  height: auto;
  animation: opening-focus 2.2s cubic-bezier(0.33, 0, 0.15, 1) both;
}

/* ぼやけ → くっきり */
@keyframes opening-focus {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.04);
  }

  60% {
    opacity: 1;
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes opening-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* 幕が消えてからヒーローを出す */
.has-opening .rise {
  animation-delay: 2.65s;
}

.has-opening .rise-2 {
  animation-delay: 2.78s;
}

.has-opening .rise-3 {
  animation-delay: 2.91s;
}

@media (prefers-reduced-motion: reduce) {
  .opening {
    display: none;
  }

  .has-opening .rise,
  .has-opening .rise-2,
  .has-opening .rise-3 {
    animation: none;
  }
}
