@charset "utf-8";

/* ============================================================
   生活介護事業所りあん  ── 仕様書 v3.0 準拠
   §2 カラートークン / §3 タイポ / §4 余白・形状
   影は全要素で禁止。グラデーションはInstagram関連のみ。
   ============================================================ */

:root {
  /* ---- ベース ---- */
  --paper:        #FBF6EA;
  --paper-card:   #FFFCF6;
  --paper-sub:    #F5EFE0;
  --ink:          #3B3733;
  --ink-2:        #6E665C;
  --ink-3:        #A79E92;
  --line:         #E7DFCE;

  /* ---- パステル虹（上下バンド専用） ---- */
  --rb-purple:    #B7A6D8;
  --rb-blue:      #92B6DD;
  --rb-cyan:      #A6D2E5;
  --rb-green:     #B0D5A2;
  --rb-yellow:    #F3DF97;
  --rb-orange:    #F4C08D;
  --rb-red:       #EFA093;

  /* ---- カテゴリカラー（枠線・アイコン・見出し文字のみ） ---- */
  --c-omoi:       #E8768A;
  --c-flow:       #57A5D8;
  --c-act:        #6FB96B;
  --c-guide:      #8E86C8;
  --c-visit:      #E8705C;
  --c-access:     #EFA23C;
  --c-tel:        #5AA86B;

  /* ---- 塗りボタン用（白文字で4.5:1以上を確保した濃色） §12 ---- */
  --c-visit-fill: #B8442F;
  --map-btn-fill: #1B62C4;
  --ig-from-deep: #C0357C;
  --ig-to-deep:   #7A34A8;

  /* ---- パズルピース ---- */
  --pz-red:       #E64A3C;
  --pz-yellow:    #F3B73E;
  --pz-outline:   #86C3DD;

  /* ---- Instagram ---- */
  --ig-from:      #F0699E;
  --ig-to:        #A96AD1;

  /* ---- 余白 §4-1 ---- */
  --gutter:       40px;
  --maxw:         1360px;

  /* ロゴ「りあん」の丸い字形に合わせた、やわらかい丸ゴシック */
  --font-base: "M PLUS Rounded 1c", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-hand: "Yusei Magic", var(--font-base);
}

*, *::before, *::after { box-sizing: border-box; }

/* グリッド子要素が min-content で押し広げないように（320px横スクロール対策 §16） */
.hero > *, .about > *, .card-row > *, .panel-row > *,
.footer-inner > *, .footer-tables > *, .badge-rail > * { min-width: 0; }

html { scroll-behavior: smooth; color: var(--ink); }

body {
  margin: 0;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-base);
  font-weight: 500;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
}

/* C02 紙テクスチャ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(88deg, transparent 0 3px, rgba(134, 111, 81, .045) 3px 4px, transparent 4px 8px),
    repeating-linear-gradient(2deg, transparent 0 5px, rgba(134, 111, 81, .03) 5px 6px, transparent 6px 11px);
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
}

/* ---------- C01 虹バンド ---------- */
.rb-band {
  height: 28px;
  background: url("assets/rainbow-band.webp") center / 100% 100% no-repeat;
}
.rb-bottom { transform: scaleX(-1); }   /* 縦縞なので左右反転で色順を反転 */

/* ---------- ヘッダー ---------- */
.site-header { padding: 18px 0 12px; }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: start;
}

.logo {
  position: relative;
  display: block;
  padding: 0 0 0 4px;
  text-decoration: none;
  color: var(--ink);
}
.logo-type {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.5;
}
.logo-mark { display: block; width: 232px; height: auto; margin: -2px 0 0 -6px; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  padding-top: 2px;
}

.contact-note {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-2);
  text-align: center;
}
.contact-buttons { display: flex; gap: 12px; }

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid var(--c-tel);
  border-radius: 999px;
  background: var(--paper-card);
  color: var(--ink);
  text-decoration: none;
}
.btn-tel .material-symbols-rounded { font-size: 22px; color: var(--c-tel); }
.tel-number {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.btn-tel:hover { border-width: 2px; }

/* Instagram のみグラデーション可 §2-2 */
.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--paper-card), var(--paper-card)) padding-box,
    linear-gradient(135deg, var(--ig-from), var(--ig-to)) border-box;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.btn-ig:hover { border-width: 2px; }

.ig-glyph {
  position: relative;
  flex: none;
  width: 23px;
  height: 23px;
  border: 2px solid transparent;
  border-radius: 7px;
  background:
    linear-gradient(var(--paper-card), var(--paper-card)) padding-box,
    linear-gradient(135deg, var(--ig-from), var(--ig-to)) border-box;
}
.ig-glyph::before {
  content: "";
  position: absolute;
  inset: 3.5px;
  border: 2px solid var(--ig-to);
  border-radius: 50%;
}
.ig-glyph::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--ig-from);
}

.global-nav { display: flex; align-items: center; gap: 34px; }
.global-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.global-nav a:hover { text-decoration: underline 2px; text-underline-offset: 6px; }

.menu-button, .mobile-menu { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(448px, 35%) 1fr;
  gap: 30px;
  align-items: center;
}

.hero-copy { position: relative; padding: 26px 0 34px 14px; }

/* §3-3 見出しの改行位置は固定。折り返させない */
.hero-copy h1 {
  margin: 0;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 2.1;
  white-space: nowrap;
}
.hero-lead {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: .04em;
  color: var(--ink-2);
}

.doodle { position: absolute; pointer-events: none; }
.moon {
  left: -4px; top: -6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--rb-yellow);
  transform: rotate(-24deg);
}
.moon::after {
  content: "";
  position: absolute;
  left: 9px; top: -4px;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--paper);
}
.star {
  background: var(--rb-yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star-a { left: 44px; top: 22px; width: 17px; height: 17px; }
.star-b { left: 4px;  top: 44px; width: 12px; height: 12px; opacity: .85; }

.hero-piece { position: absolute; right: -26px; bottom: -18px; width: 96px; }

.hero-visual { margin: 0; }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* ---------- 円形バッジ（6カテゴリ） ---------- */
.badge-rail {
  max-width: var(--maxw);
  margin: 34px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  justify-items: center;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.badge-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 102px;
}
.badge-ring .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-ring .material-symbols-rounded {
  position: relative;
  left: -9px;
  font-size: 38px;
  color: inherit;
}
.badge-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  white-space: nowrap;
}
.badge:hover .ring path { stroke-width: 4.5; }

.b-omoi   { color: var(--c-omoi); }
.b-flow   { color: var(--c-flow); }
.b-act    { color: var(--c-act); }
.b-guide  { color: var(--c-guide); }
.b-visit  { color: var(--c-visit); }
.b-access { color: var(--c-access); }
/* ラベル文字は --ink。色は輪郭とアイコン（装飾）のみが担う */

/* ---------- P-mascot（顔つきパズル片） §4-3 ---------- */
.pz-face {
  display: inline-block;
  flex: none;
  width: auto;
  height: 27px;
}

/* ---------- りあんについて ---------- */
.about {
  max-width: var(--maxw);
  margin: 46px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(320px, 31%) 1fr;
  gap: 30px;
  align-items: center;
}
.about-copy h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
}
.about-copy h2 > span {
  padding-bottom: 7px;
  border-bottom: 2px solid var(--c-omoi);
}
.about-copy p {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: .04em;
}
.about-foot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 20px;
}
.ch { width: 84px; height: auto; flex: none; }

.about-visual { margin: 0; }
.about-visual img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* ---------- C08 テキストボタン ---------- */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 24px;
  border: 1.5px solid var(--c-omoi);
  border-radius: 999px;
  background: var(--paper-card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.btn-more .material-symbols-rounded { font-size: 15px; color: var(--c-omoi); }
.btn-more:hover { border-width: 2px; }

/* ---------- 社長の一言 ---------- */
.message {
  max-width: var(--maxw);
  margin: 46px auto 0;
  padding: 0 var(--gutter);
}
.message h2 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
}
.message h2 > span {
  padding-bottom: 7px;
  border-bottom: 2px solid var(--c-act);
}
.msg-bird { width: 60px; height: auto; flex: none; }

/* クレヨンの虹色フレーム（原画から切り出した枠を border-image で四辺に流用） */
.msg-card {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 30px 40px 46px;
  border: 20px solid transparent;
  border-image: url("assets/msg-frame.webp") 43 stretch;
  background: var(--paper-card);
}
.msg-body {
  position: relative;
  z-index: 2;
  margin-left: 20%;
  max-width: 580px;
}
.msg-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: .04em;
  color: var(--ink);
}
.msg-card p:last-of-type { margin-bottom: 0; }

/* 肩書と直筆サインは本文ブロックの中央に置く */
.msg-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
}
.sign-role {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.sign-name { width: 210px; height: auto; }

/* 施設長の似顔絵とパズル */
.msg-portrait {
  position: absolute;
  left: 0;
  bottom: -12px;
  z-index: 1;
  width: 19%;
  max-width: 200px;
  height: auto;
}
.msg-pz {
  position: absolute;
  right: 2%;
  bottom: 4px;
  z-index: 1;
  width: 15%;
  max-width: 150px;
  height: auto;
}

/* 手描きのあしらい（原画と同じ配置を割合で再現） */
.msg-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.msg-deco .d { position: absolute; height: auto; }
.d-leaves-l   { left: 1%;   top: 4%;    width: 10.5%; }
.d-star-a     { left: 13%;  top: 20%;   width: 2.6%; }
.d-moon       { left: 8.5%; top: 28%;   width: 5%; }
.d-star-b     { left: 6%;   top: 44%;   width: 2.2%; }
.d-sprig-blue { left: 8%;   top: 50%;   width: 5.4%; }
.d-leaves-r   { right: 16%; top: 5%;    width: 7.5%; }
.d-flowers    { right: 2%;  top: 7%;    width: 15%; }
.d-star-c     { right: 12.5%; top: 30%; width: 2.6%; }
.d-sprig-r    { right: 5%;  top: 38%;   width: 6.8%; }
.d-heart      { right: 5%;  bottom: 26%; width: 9.6%; }
.d-star-d     { right: 3%;  bottom: 14%; width: 2.8%; }

/* ---------- 4カード ---------- */
.card-row {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper-card);
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
}
.card h2 { color: var(--ink); }
.card h2 .material-symbols-rounded { font-size: 22px; }
.card .card-title { padding-bottom: 5px; border-bottom: 2px solid currentColor; }
.card figure { margin: 0; }
.card figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}
.card p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .04em;
}
.card .btn-more { margin-top: auto; align-self: center; }

/* カテゴリ色は枠線・アイコン・下線のみ。見出し文字は --ink（§12 コントラスト4.5:1） */
.c-omoi  { --cat: var(--c-omoi); }
.c-flow  { --cat: var(--c-flow); }
.c-act   { --cat: var(--c-act); }
.c-guide { --cat: var(--c-guide); }

.card { border-color: var(--cat, var(--line)); }
.card:hover { border-width: 2px; }
.card h2 .material-symbols-rounded { color: var(--cat); }
.card .card-title { border-bottom-color: var(--cat); }
.card .btn-more { border-color: var(--cat); }
.card .btn-more .material-symbols-rounded { color: var(--cat); }

.mini-flow {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.mini-flow > div { display: grid; grid-template-columns: 82px 1fr; font-size: 12px; }
.mini-flow > div + div { border-top: 1px solid var(--line); }
.mini-flow dt {
  padding: 10px 12px;
  background: var(--paper-sub);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.mini-flow dd { margin: 0; padding: 10px 12px; color: var(--ink); }

/* ---------- 3パネル ---------- */
.panel-row {
  max-width: var(--maxw);
  margin: 46px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper-card);
}
.p-access .map { margin-top: auto; }
.p-ig .ig-grid { margin-top: auto; }
.panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
}
.panel h2 .material-symbols-rounded { font-size: 24px; }
.panel p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13px;
  line-height: 2;
}
.p-visit  { --cat: var(--c-visit); }
.p-access { --cat: var(--c-access); }
.p-ig     { --cat: var(--ig-from); }

.panel { border-color: var(--cat, var(--line)); }
.panel h2 { color: var(--ink); }
.panel h2 .material-symbols-rounded { color: var(--cat); }

.panel-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;          /* §12 タップ領域 44px以上 */
  margin-bottom: 6px;
  color: var(--c-visit-fill);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.panel-tel .material-symbols-rounded { font-size: 26px; }
.panel-note { margin: 0 0 16px; color: var(--ink-2); font-size: 12px; }
.panel-sub  { margin: 14px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.8; }
.p-visit .panel-sub { margin-top: auto; padding-top: 14px; }

.btn-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1.5px solid var(--c-visit-fill);
  border-radius: 999px;
  background: var(--c-visit-fill);
  color: var(--paper-card);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .10em;
  text-decoration: none;
}
.btn-visit:hover { border-width: 2px; }

.address { margin: 0 0 14px; font-size: 13px; line-height: 1.9; color: var(--ink); }
.map { position: relative; }
.map img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}
.btn-map {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--map-btn-fill);
  color: var(--paper-card);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}

.btn-igfollow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--ig-from-deep), var(--ig-to-deep));
  color: var(--paper-card);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-grid img {
  display: block;
  width: 100%;
  height: auto;          /* img の height 属性より CSS を優先させる（aspect-ratio を有効にする） */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- フッター ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 54px auto 0;
  padding: 0 var(--gutter) 34px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 292px 1fr;
  gap: 34px;
  align-items: center;
}
.tagline-img {
  display: block;
  width: 208px;
  height: auto;
  margin: 0;
}
.copyright { margin: 12px 0 0; font-size: 11px; color: var(--ink-2); }

.footer-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
.tbl-info {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.tbl-info > div { display: grid; grid-template-columns: 136px 1fr; font-size: 13px; line-height: 1.9; }
.tbl-info > div + div { border-top: 1px solid var(--line); }
.tbl-info dt {
  padding: 9px 12px;
  background: var(--paper-sub);
  color: var(--ink-2);
  letter-spacing: .04em;
}
.tbl-info dd { margin: 0; padding: 9px 12px; color: var(--ink); }

/* ============================================================
   中間幅（1100px以下）
   ============================================================ */
@media (max-width: 1180px) and (min-width: 768px) {
  :root { --gutter: 26px; }
  .global-nav { gap: 22px; }
  .global-nav a { font-size: 13px; }
  .logo-mark { width: 198px; }
  .hero { grid-template-columns: minmax(360px, 34%) 1fr; }
  .hero-copy h1 { font-size: 26px; letter-spacing: .01em; }
  .badge-ring { width: 100px; height: 88px; }
  .badge-ring .material-symbols-rounded { font-size: 32px; left: -8px; }
  .badge-label { font-size: 11px; }
  .message { margin-top: 38px; }
  .msg-card { padding: 28px 30px 24px; }
  .card-row { grid-template-columns: repeat(2, 1fr); }
  .panel-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .tel-number { font-size: 19px; }
}

/* ============================================================
   SP（767px以下） §7
   ============================================================ */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  .rb-band { height: 22px; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 12px 0 10px;
    background: rgba(251, 246, 234, .94);
    backdrop-filter: blur(8px);
  }
  .header-inner { grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
  .logo { padding: 0; }
  .logo-type { font-size: 12px; letter-spacing: .18em; }
  .logo-mark { width: 156px; }
  .header-right { display: none; }

  .menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--c-omoi);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
  }
  .menu-lines { display: grid; gap: 5px; }
  .menu-lines i { display: block; width: 24px; height: 1.8px; background: var(--c-omoi); }
  .menu-button small { font-size: 8px; letter-spacing: .04em; }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    padding: 74px 24px 32px;
    background: var(--paper);
    overflow-y: auto;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a {
    display: block;
    padding: 17px 6px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
  }
  .menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--c-omoi);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-tel { border-bottom: 0; margin-top: 14px; color: var(--c-visit-fill); }

  /* ヒーロー */
  .hero {
    margin-top: 14px;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .hero-copy { order: 1; padding: 6px var(--gutter) 26px; }
  .hero-copy h1 { font-size: clamp(16px, 5.3vw, 22px); letter-spacing: .01em; line-height: 2.05; }
  .hero-lead { margin-top: 18px; font-size: 13px; }
  .moon { left: calc(var(--gutter) - 6px); top: -4px; }
  .star-a { left: calc(var(--gutter) + 34px); top: 16px; }
  .star-b { left: calc(var(--gutter) - 4px); top: 40px; width: 11px; height: 11px; }
  .hero-piece { right: 10px; bottom: 4px; width: 74px; }

  /* §7-2 ヒーロー画像はフルブリード・角丸なし */
  .hero-visual { order: 2; }
  .hero-visual img { border-radius: 0; }

  .badge-rail {
    margin-top: 26px;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 6px;
  }
  .badge-ring { width: 92px; height: 80px; }
  .badge-ring .material-symbols-rounded { font-size: 30px; left: -7px; }
  .badge-label { font-size: 11px; }

  .about {
    margin-top: 34px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  .about-copy { padding: 0 var(--gutter); }
  .about-copy h2 { font-size: 17px; }
  .about-copy p { font-size: 13px; }
  .about-foot { justify-content: space-between; gap: 6px; }
  .ch { width: 58px; }
  .about-foot .btn-more { padding: 0 14px; font-size: 12px; gap: 6px; }
  .about-visual img { border-radius: 0; }

  .message { margin-top: 34px; }
  .message h2 { font-size: 17px; gap: 9px; margin-bottom: 14px; }
  .msg-bird { width: 42px; }
  .pz-face { height: 23px; }
  .msg-card {
    padding: 18px 14px 104px;
    border-width: 11px;
    border-image: url("assets/msg-frame.webp") 43 stretch;
  }
  .msg-body { margin-left: 0; max-width: none; }
  .msg-card p { margin-bottom: 15px; font-size: 13px; line-height: 2.05; }
  .msg-sign { margin-top: 20px; gap: 3px; }
  .sign-role { font-size: 11px; }
  .sign-name { width: 152px; }
  .msg-portrait { width: 96px; max-width: none; left: -2px; bottom: -8px; }
  .msg-pz { width: 104px; max-width: none; right: 0; bottom: 6px; }
  /* 狭い画面ではあしらいを間引いて本文の読みやすさを優先する */
  .d-leaves-r, .d-sprig-r, .d-sprig-blue, .d-star-c, .d-moon { display: none; }
  .d-leaves-l { left: 0; top: 1.5%; width: 20%; }
  .d-flowers  { right: 0; top: 2%; width: 28%; }
  .d-moon     { left: 2%; top: 26%; width: 10%; }
  .d-star-a   { left: 12%; top: 20%; width: 5%; }
  .d-star-b   { left: 3%;  top: 40%; width: 4.5%; }
  .d-heart    { right: 2%; bottom: 30%; width: 15%; }
  .d-star-d   { right: 12%; bottom: 22%; width: 5%; }

  .card-row { margin-top: 30px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { gap: 12px; padding: 14px; }
  .card h2 { font-size: 15px; gap: 7px; }
  .card h2 .material-symbols-rounded { font-size: 19px; }
  .card p { font-size: 12px; line-height: 1.85; }
  /* PC用の固定改行はSPでは解除し、自然に折り返す */
  .card p br { display: none; }
  .card .btn-more { min-height: 40px; padding: 0 12px; font-size: 11px; gap: 6px; letter-spacing: .02em; }
  .mini-flow > div { grid-template-columns: 58px 1fr; font-size: 11px; }
  .mini-flow dt, .mini-flow dd { padding: 8px 9px; }

  .panel-row { margin-top: 30px; grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 18px; }
  .panel h2 { font-size: 15px; }
  .panel-tel { font-size: 25px; }

  .site-footer { margin-top: 38px; padding-bottom: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; justify-items: center; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .tagline-img { width: 190px; }
  .footer-tables { grid-template-columns: 1fr; gap: 10px; width: 100%; }
  .tbl-info > div { grid-template-columns: 116px 1fr; font-size: 12px; }
  .tbl-info dt { font-size: 11px; }
  .tbl-info dt, .tbl-info dd { padding: 8px 10px; text-align: left; }
}

@media (max-width: 360px) {
  .badge-label { font-size: 10px; letter-spacing: .02em; }
  .tbl-info > div { grid-template-columns: 104px 1fr; }
}

/* ============================================================
   §9 動きは最小限
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   表示確認用 PC / スマホ 切り替え（サイト本体のデザインではない）
   公開時に不要なら、この節と index.html の .view-toggle /
   .sp-stage、script.js の該当ブロックを削除してください。
   ============================================================ */
.view-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper-card);
}
.vt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
}
.vt-btn .material-symbols-rounded { font-size: 20px; }
.vt-btn:hover { color: var(--ink); }
.vt-btn.is-current {
  background: var(--ink);
  color: var(--paper-card);   /* 10.9:1 */
}

/* スマホ枠 */
.sp-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 20px 108px;
  min-height: 100vh;
}
.sp-stage[hidden] { display: none; }
.sp-device {
  position: relative;
  box-sizing: content-box;   /* 内側（画面）を実寸390pxにする */
  width: 390px;
  max-width: calc(100vw - 68px);
  height: min(844px, calc(100vh - 230px));
  padding: 12px;
  border: 2px solid var(--ink-3);
  border-radius: 40px;
  background: var(--paper-card);
}
.sp-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-3);
}
.sp-screen {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 29px;
  background: var(--paper);
}
.sp-note { margin: 0; color: var(--ink-2); font-size: 12px; letter-spacing: .06em; }

/* スマホ表示中は本体を隠す */
body.is-sp-preview > *:not(.view-toggle):not(.sp-stage) { display: none; }

/* iframe の中では切り替えUIを出さない（入れ子防止） */
.is-framed .view-toggle, .is-framed .sp-stage { display: none !important; }

/* 実機のスマホ幅ではすでにSP表示なので、切り替えUIは出さない */
@media (max-width: 767px) {
  .view-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-btn { transition: none; }
}
