/* ============================================================
  sections-2026.css — トップページ 2026年10月の追加デザイン
    1. Service：スクロールで回る立方体（3D CSS Box）
    2. Works  ：Stacking Cards（スクロールで1件ずつ重なる）
    3. Blog   ：ほけんだより（大人向けの保健だより）
  読み込み: functions.php（is_front_page のときだけ）
  色・フォントはファーストビュー（fv.css）とそろえている
============================================================ */
:root {
  --m-paper: #FFFFFF;
  --m-ink: #24303A;        /* 文字・ボタン（白地で約13:1） */
  --m-ink-hover: #3A4752;
  --m-sub: #5A6670;        /* 補足文字（白地で約5.9:1） */
  --m-line: #DDE5E8;       /* 細い罫線 */
  --m-line-strong: #B9C6CB;
  --m-mist: #E3EBEE;       /* 淡い青 */
  --m-blush: #F5EDEA;      /* 淡いピンク */
  --m-mint-pale: #EAF5F0;  /* 淡いミント */
  --m-mint: #7FC7AE;       /* 装飾のみ */
  --m-coral: #EE8A82;      /* 装飾のみ */
  --m-f-en: "Bodoni Moda", "Times New Roman", serif;
  --m-f-ja-head: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --m-f-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --m-f-label: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --m-f-hand: "Klee One", "Shippori Mincho B1", serif;   /* ほけんだよりの題字（手書き風） */
  --m-header-h: 64px;      /* ヘッダーの高さ（theme-2026.css：スマホ64px／PC76px） */
}
@media (min-width: 900px) {
  :root { --m-header-h: 76px; }
}

/* ============================================================
  1. Service：スクロールで回る立方体（3D CSS Box）
  JSなし／動きを減らす設定 → 立方体は斜めで止まり、説明は4つ並ぶ
  JSあり（.is-ready）      → スクロールで1面ずつ回り、正面のサービスの説明だけ表示
============================================================ */
.svc3d { margin: 24px auto 48px; font-family: var(--m-f-body); color: var(--m-ink); }
.svc3d__sticky {
  display: grid;
  justify-items: center;
  gap: 40px;
}

/* --- 立方体 --- */
.svc3d__scene {
  --s: min(56vw, 250px, 30svh);   /* 立方体の一辺（画面の高さが低いときは小さく） */
  position: relative;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) * 0.12) auto calc(var(--s) * 0.2);
  perspective: 1100px;
}
.svc3d__cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* 少しだけ上から見下ろす角度。上の面が水平に近く見えるよう浅め（--ry は JS がスクロールに合わせて更新） */
  transform: rotateX(-12deg) rotateY(var(--ry, -30deg));
}
.svc3d__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--m-paper);
  border: 1px solid rgba(36, 48, 58, 0.18);
  backface-visibility: hidden;
}
/* 光の当たり方：正面から外れた面ほど暗く（--shade は JS が更新） */
.svc3d__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 48, 58, var(--shade, 0));
  pointer-events: none;
}
.svc3d__face--side { transform: rotateY(calc(var(--f) * 90deg)) translateZ(calc(var(--s) / 2)); }
.svc3d__face--side img { width: 100%; height: 100%; object-fit: cover; }
.svc3d__label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 10px 3px;
  font-family: var(--m-f-label);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m-ink);
  background: var(--m-paper);
}
.svc3d__face--top {
  background: var(--m-mint-pale);
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}
.svc3d__face--bottom { background: var(--m-mist); transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
/* 床に落ちる影 */
.svc3d__shadow {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -22%;
  height: 16%;
  background: radial-gradient(ellipse at center, rgba(36, 48, 58, 0.22), rgba(36, 48, 58, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* --- 説明 --- */
.svc3d__info { width: 100%; max-width: 460px; }
.svc3d__list { display: grid; margin: 0; padding: 0; list-style: none; }
.svc3d__item { display: grid; gap: 8px; padding: 20px 0; border-top: 1px solid var(--m-line); }
.svc3d__en { font-family: var(--m-f-label); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--m-sub); }
.svc3d__title { font-family: var(--m-f-ja-head); font-weight: 700; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.5; }
.svc3d__desc { font-size: 14.5px; line-height: 1.9; }
.svc3d__ex { font-size: 12.5px; line-height: 1.7; color: var(--m-sub); }
.svc3d__ex::before { content: "例｜"; }
.svc3d__dots { display: none; }
.svc3d__dot { width: 24px; height: 2px; background: var(--m-ink); opacity: 0.25; transition: opacity 0.3s; }
.svc3d__dot.is-active { opacity: 1; }

/* --- JSあり：スクロールで回る --- */
.svc3d.is-ready { height: 300vh; margin: 0 auto 64px; }
/* 立方体のすぐ下の「相談する」ボタンと重ならないよう余白を確保 */
.svc3d + .section-cta { position: relative; z-index: 1; margin-top: 0; padding-top: 16px; }
.svc3d.is-ready .svc3d__sticky {
  /* ヘッダーのすぐ下で止める（上に余白を足さないので、見出しとの間が空きすぎない） */
  position: sticky;
  top: var(--m-header-h);
  height: calc(100vh - var(--m-header-h));
  height: calc(100svh - var(--m-header-h));
  padding-top: 2vh;
  /* 上寄せ：中央寄せだと、画面に入った時点で見出しとの間に大きな空白ができるため */
  align-content: start;
  gap: 24px;
}
.svc3d.is-ready { margin-top: 0; }
.svc3d.is-ready .svc3d__item {
  grid-area: 1 / 1;
  padding: 0;
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.svc3d.is-ready .svc3d__item.is-active { opacity: 1; visibility: visible; transform: none; }
.svc3d.is-ready .svc3d__dots { display: flex; gap: 8px; margin-top: 20px; }

@media (min-width: 900px) {
  .svc3d__sticky { grid-template-columns: auto minmax(0, 460px); justify-content: center; align-items: center; column-gap: 8vw; }
  .svc3d__scene { --s: min(30vw, 370px, 50svh); }
  .svc3d.is-ready .svc3d__sticky { gap: 0 8vw; }
}

/* ============================================================
  1.5 Price：料金カード（レシート風）
  ふだん：紙のレシート（写真・名前・明細・合計・バーコード）
  開いた状態（PC：ホバー／キーボード：フォーカス／スマホ：画面中央に来たとき .is-active）
    → レシートが少し浮き、写真の上に説明が下からせり上がる。名前にコーラルの下線
  ※ 説明は写真の上に重ねるので、開いてもカードの高さは変わらない
============================================================ */
.plan-wrap { position: relative; max-width: 960px; margin: 72px auto 0; }
.plan-list {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--m-f-body);
  color: var(--m-ink);
}
@media (min-width: 768px) {
  .plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
}

/* --- レシート本体 --- */
.plan-card {
  --receipt: #FFFEFA;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 26px;
  background: var(--receipt);
  box-shadow: 0 1px 2px rgba(36, 48, 58, 0.08), 0 10px 24px -14px rgba(36, 48, 58, 0.25);
  outline: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
/* 下端のギザギザ（ちぎった感熱紙） */
.plan-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 10px;
  background:
    linear-gradient(135deg, var(--receipt) 50%, transparent 50%) 0 0 / 12px 10px repeat-x,
    linear-gradient(225deg, var(--receipt) 50%, transparent 50%) 0 0 / 12px 10px repeat-x;
  filter: drop-shadow(0 2px 1px rgba(36, 48, 58, 0.06));
}
.plan-card:nth-child(even) { rotate: 0.6deg; }
.plan-card:nth-child(odd)  { rotate: -0.5deg; }

/* 店名と番号 */
.plan-card__shop {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--m-line-strong);
  font-family: var(--m-f-label);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--m-sub);
}

/* 写真＋説明 */
.plan-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--m-mist);
}
.plan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.plan-card__detail {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px 20px;
  background: rgba(255, 254, 250, 0.95);
  border-top: 1px dashed var(--m-ink);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.plan-card__desc { font-size: 13.5px; line-height: 1.85; }

/* はんこ風（1枚目だけ） */
.plan-card__stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  font-family: var(--m-f-hand);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: #D9655B;
  border: 2px solid #D9655B;
  border-radius: 50% !important;   /* はんこは丸のまま */
  background: rgba(255, 254, 250, 0.7);
  rotate: -12deg;
  opacity: 0.9;
}

/* 名前 */
/* 合計とバーコードはカードの下にそろえる（明細の行数が違っても横のカードとそろう） */
.plan-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.plan-card__body > .plan-card__price { margin-top: auto; }
.plan-card__en {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--m-f-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m-sub);
}
.plan-card__no { font-weight: 600; color: var(--m-ink); }
.plan-card__title {
  align-self: flex-start;   /* 下線を文字の幅だけに */
  font-family: var(--m-f-ja-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  background: linear-gradient(var(--m-coral), var(--m-coral)) left bottom / 0 2px no-repeat;
  transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 明細：項目 …… ✓ */
.plan-card__items {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px dashed var(--m-line-strong);
  font-size: 12.5px;
  color: var(--m-ink);
}
.plan-card__items li { display: flex; align-items: baseline; gap: 6px; }
.plan-card__items li span { min-width: 0; }
.plan-card__items li::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--m-line-strong);
  translate: 0 -4px;
}
.plan-card__items li i { order: 2; font-size: 10px; color: var(--m-sub); }

/* 合計 */
.plan-card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--m-ink);
}
.plan-card__total { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.plan-card__total small { font-size: 10.5px; font-weight: 400; color: var(--m-sub); }
.plan-card__amount { display: inline-flex; align-items: baseline; gap: 2px; }
.plan-card__unit { margin-right: 4px; font-size: 12px; }
.plan-card__yen { font-family: var(--m-f-en); font-size: 1.05rem; }
.plan-card__num { font-family: var(--m-f-en); font-size: clamp(1.6rem, 1.35rem + 0.9vw, 2rem); line-height: 1.1; letter-spacing: 0.02em; }
.plan-card__tilde { font-size: 0.9rem; }

/* バーコード */
.plan-card__barcode {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 14px;
  font-family: var(--m-f-label);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--m-sub);
}
.plan-card__barcode span {
  width: 70%;
  height: 28px;
  background: repeating-linear-gradient(90deg,
    var(--m-ink) 0 2px, transparent 2px 4px, var(--m-ink) 4px 5px, transparent 5px 8px,
    var(--m-ink) 8px 11px, transparent 11px 12px, var(--m-ink) 12px 13px, transparent 13px 17px);
  opacity: 0.75;
}

/* --- 開いた状態 --- */
.plan-card.is-active,
.plan-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 2px 3px rgba(36, 48, 58, 0.08), 0 28px 44px -20px rgba(36, 48, 58, 0.35);
}
.plan-card.is-active .plan-card__media img,
.plan-card:focus-visible .plan-card__media img { transform: scale(1.05); filter: saturate(1); }
.plan-card.is-active .plan-card__detail,
.plan-card:focus-visible .plan-card__detail { transform: none; opacity: 1; }
.plan-card.is-active .plan-card__title,
.plan-card:focus-visible .plan-card__title { background-size: 100% 2px; }
@media (hover: hover) {
  .plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 3px rgba(36, 48, 58, 0.08), 0 28px 44px -20px rgba(36, 48, 58, 0.35);
  }
  .plan-card:hover .plan-card__media img { transform: scale(1.05); filter: saturate(1); }
  .plan-card:hover .plan-card__detail { transform: none; opacity: 1; }
  .plan-card:hover .plan-card__title { background-size: 100% 2px; }
}
@media (min-width: 1100px) {
  .plan-card__media { aspect-ratio: 16 / 11; }
  .plan-card { padding: 20px 26px 28px; }
}

/* --- 手書きの一言「まずはここから」（1枚目のレシートを指す） --- */
.plan-callout {
  position: absolute;
  z-index: 2;
  top: -64px;
  left: 4px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  pointer-events: none;
}
.plan-callout__text {
  display: inline-block;
  padding-top: 2px;
  font-family: var(--m-f-hand);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: #D9655B;
  rotate: -4deg;
  /* 1文字ずつ出す：幅を文字数ぶんステップで広げる */
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.plan-callout__arrow { width: 74px; height: 44px; margin-top: 8px; }
.plan-callout__arrow path {
  stroke: #D9655B;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}
.plan-callout.is-drawn .plan-callout__text { width: 7.6em; transition: width 1.2s steps(7, end); }
.plan-callout.is-drawn .plan-callout__arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease 0.9s; }
.plan-callout.is-drawn .plan-callout__arrow path + path { transition-delay: 1.8s; transition-duration: 0.4s; }
@media (min-width: 768px) {
  .plan-callout { top: -66px; left: -8px; }
  .plan-callout__text { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card, .plan-card__media img, .plan-card__detail, .plan-card__title { transition: none; }
  .plan-callout__text { width: auto; }
  .plan-callout__arrow path { stroke-dashoffset: 0; }
}

/* ============================================================
  2. Works：Stacking Cards
  各カードは sticky で止まり、次のカードが上に重なる。
  重なったカードを少し縮めるのは assets/js/sections-2026.js
============================================================ */
.stack {
  --stack-top: calc(var(--m-header-h) + 16px);
  display: grid;
  gap: 10vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 6vh;
  list-style: none;
}
.stack__item {
  position: sticky;
  top: calc(var(--stack-top) + var(--i, 0) * 16px);  /* 少しずつずらして重なりを見せる */
}
.stack-card {
  background: var(--m-paper);
  border: 1px solid var(--m-line);
  box-shadow: 0 10px 30px rgba(36, 48, 58, 0.08);
  transform-origin: 50% 0;
  will-change: transform;
}
.stack-card__link {
  display: grid;
  color: var(--m-ink);
  text-decoration: none;
}
.stack-card__thumb {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--m-mist);
}
.stack-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.stack-card__link:hover .stack-card__thumb img { transform: scale(1.03); }
.stack-card__body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 20px 22px;
  font-family: var(--m-f-body);
}
.stack-card__cat {
  font-family: var(--m-f-label);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--m-sub);
}
/* タイトルは控えめに（太さ・大きさを抑える） */
.stack-card__title {
  font-family: var(--m-f-ja-head);
  font-weight: 500;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.stack-card__desc { font-size: 13.5px; line-height: 1.85; color: var(--m-sub); }
.stack-card__tech { font-family: var(--m-f-label); font-size: 11px; letter-spacing: 0.06em; color: var(--m-sub); }
.stack-card__more {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--m-ink);
  font-size: 13px;
}
.stack-card__more i { font-size: 10px; transition: transform 0.2s; }
.stack-card__link:hover .stack-card__more i { transform: translateX(4px); }

@media (min-width: 768px) {
  .stack { --stack-top: calc(var(--m-header-h) + 32px); }
  .stack-card__link { grid-template-columns: 1.15fr 1fr; }
  .stack-card__thumb { aspect-ratio: auto; min-height: 300px; }
  .stack-card__body { align-content: center; padding: 32px 32px; }
}

/* ============================================================
  3. Blog：ほけんだより
  便せんの罫線＋紙を重ねた影で、掲示板に貼られた紙の立体感を出す
============================================================ */
.hoken {
  position: relative;
  max-width: 820px;
  margin: 24px auto 0;
  padding: 52px clamp(22px, 6vw, 72px) 40px;
  font-family: var(--m-f-body);
  color: var(--m-ink);
  background-color: #FFFEFB;
  /* 便せんのような薄い罫線 */
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(36, 48, 58, 0.045) 35px 36px);
  /* 紙の厚み＋下に重なったもう1枚の紙（右下にずらした影）＋浮いている影 */
  box-shadow:
    0 1px 1px rgba(36, 48, 58, 0.06),
    0 2px 4px rgba(36, 48, 58, 0.05),
    8px 9px 0 -1px #F3F0EA,
    8px 9px 2px -1px rgba(36, 48, 58, 0.08),
    0 22px 40px -14px rgba(36, 48, 58, 0.24);
  rotate: -0.6deg;
}
/* 掲示板に貼るマスキングテープ */
.hoken::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 28px;
  translate: -50% 0;
  rotate: -3deg;
  background: rgba(238, 138, 130, 0.45);
}
/* 旧デザインでスマホのみ余白0（横スクロール用）になっていたのを戻す */
.blog .container { padding-inline: var(--container-pad); }

/* 題字：手書き風。発行月は右上 */
.hoken__mast {
  position: relative;
  display: grid;
  gap: 2px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--m-ink);
  box-shadow: 0 3px 0 -2px var(--m-ink);   /* 細い二重線 */
}
.hoken__issue {
  position: absolute;
  top: -28px;
  right: 0;
  font-family: var(--m-f-hand);
  font-size: 13px;
  color: var(--m-sub);
}
.hoken__title {
  font-family: var(--m-f-hand);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: 0.14em;
}
.hoken__en { font-family: var(--m-f-label); font-size: 10.5px; letter-spacing: 0.3em; color: var(--m-sub); }

/* カテゴリの絞り込み（右寄せ） */
.hoken__head {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0 4px;
}
.hoken__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.hoken__cat {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  font-family: var(--m-f-body);
  font-size: 11.5px;
  color: var(--m-ink);
  text-decoration: none;
  border: 1px solid var(--m-line-strong);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, background-color 0.2s;
}
.hoken__cat:hover { border-color: var(--m-ink); background: var(--m-paper); }
.hoken__list { display: grid; margin: 0; padding: 0; list-style: none; }
.hoken-item + .hoken-item { border-top: 1px dashed var(--m-line-strong); }
.hoken-item__link {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  color: var(--m-ink);
  text-decoration: none;
}
.hoken-item__meta { display: flex; align-items: center; gap: 10px; font-family: var(--m-f-label); font-size: 11.5px; letter-spacing: 0.08em; color: var(--m-sub); }
.hoken-item__cat { padding: 2px 8px 1px; font-family: var(--m-f-body); font-size: 11px; letter-spacing: 0; background: var(--m-blush); color: var(--m-ink); }
.hoken-item__title {
  font-family: var(--m-f-ja-head);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.hoken-item__link:hover .hoken-item__title {
  text-decoration: underline;
  text-decoration-color: var(--m-coral);
  text-underline-offset: 5px;
}
.hoken-item__excerpt { font-size: 13px; line-height: 1.85; color: var(--m-sub); }
.hoken-item__more { font-size: 12px; }
.hoken-item__more i { font-size: 10px; margin-left: 4px; }
.hoken__back { margin: 16px 0 4px; text-align: center; }

/* きりとり線＋相談への導線 */
.hoken__cut { display: grid; justify-items: center; gap: 14px; margin-top: 24px; text-align: center; }
.hoken__cut-line {
  position: relative;
  width: 100%;
  height: 14px;
  border-top: 1px dashed var(--m-line-strong);
}
.hoken__cut-line i {
  position: absolute;
  left: 8px;
  top: -10px;
  padding: 0 6px;
  font-size: 14px;
  color: var(--m-sub);
  background: #FFFEFB;
}
.hoken__cut-text { font-family: var(--m-f-hand); font-weight: 600; font-size: 1rem; letter-spacing: 0.06em; }
.hoken__cut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px;
  color: var(--m-paper);
  background: var(--m-ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s;
}
.hoken__cut-btn:hover { background: var(--m-ink-hover); }
.hoken__cut-btn i { font-size: 11px; }

@media (min-width: 768px) {
  /* 左に日付とカテゴリ、右にタイトルと抜粋（おたよりの目次のような並び） */
  .hoken-item__link { grid-template-columns: 150px minmax(0, 1fr); column-gap: 28px; padding: 22px 0; }
  .hoken-item__meta { grid-row: 1 / span 3; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 4px; }
  .hoken-item__title, .hoken-item__excerpt, .hoken-item__more { grid-column: 2; }
}

/* 動きを減らす設定：重なり演出を止める */
@media (prefers-reduced-motion: reduce) {
  .stack__item { position: static; }
  .stack-card__thumb img { transition: none; }
}

/* ============================================================
  4. 2026年10月 追加調整
============================================================ */

/* --- 4-1. 水彩のにじみ（FVより控えめ：小さく・薄く・セクションの端に1つ） --- */
.service, .works, .price, .about, .blog, .contact-cta {
  position: relative;
  overflow-x: clip;   /* にじみがはみ出しても横スクロールを出さない（sticky は効いたまま） */
}
.service > .container, .works > .container, .price > .container,
.about > .container, .blog > .container, .contact-cta > .container {
  position: relative;
  z-index: 1;
}
.wc-accent {
  position: absolute;
  z-index: 0;
  width: clamp(110px, 16vw, 220px);
  aspect-ratio: 1.25;
  border-radius: 46% 54% 40% 60% / 55% 42% 58% 45% !important;
  filter: url(#fv-wc);   /* FVの水彩フィルターを共用 */
  opacity: 0.32;
  pointer-events: none;
}
.wc-accent--mint  { background: var(--m-mint); }
.wc-accent--coral { background: var(--m-coral); opacity: 0.26; }
.wc-accent--sun   { background: #F4C430; opacity: 0.26; }
.service .wc-accent     { top: 40px; right: -3vw; }
.works .wc-accent       { top: 80px; left: -4vw; }
.price .wc-accent       { top: 56px; right: -2vw; width: clamp(90px, 12vw, 170px); }
.about .wc-accent       { top: 120px; left: -3vw; }
.blog .wc-accent        { top: 40px; right: -4vw; }
.contact-cta .wc-accent { bottom: 60px; left: -3vw; }

/* --- 4-2. 立方体の下の余白（ボタンとの間）：JS で空きを詰める（sections-2026.js） --- */
.svc3d.is-ready + .section-cta { margin-top: 0; padding-top: 0; }

/* --- 4-3. 料金の注記：1文ずつ中央に --- */
.price-footnote { text-align: center; line-height: 2; }

/* --- 4-4. ほけんだより：題字の横に英字（文字の下端をそろえる） --- */
.hoken__titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.hoken__titles .hoken__en { margin: 0; }

/* --- 4-5. ほけんだよりのカテゴリ：枠なしの控えめな文字リンク＋左にアイコン --- */
.hoken__cats { gap: 4px 18px; }
.hoken__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--m-sub);
  background: none;
  border: none;
  text-decoration: none;
  transition: color 0.2s;
}
.hoken__cat i { font-size: 11px; color: #D9655B; opacity: 0.8; transition: transform 0.3s ease; }
.hoken__cat:hover {
  color: var(--m-ink);
  background: none;
  text-decoration: underline;
  text-decoration-color: var(--m-coral);
  text-underline-offset: 5px;
}
.hoken__cat:hover i { transform: translateY(-1px); }

/* --- 4-6. コンタクトの封筒（ビンテージ：生成り〜クラフト色の紙＋黄色の封ろう。ホバーでゆっくり開く） --- */
.envelope-svg.env2 {
  animation: none;                                   /* ずっと揺れる動きはやめる */
  filter: drop-shadow(0 14px 22px rgba(90, 64, 30, 0.13));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
}
.envelope-link:hover .envelope-svg.env2,
.envelope-link:focus-visible .envelope-svg.env2 {
  transform: translateY(-4px);
  filter: drop-shadow(0 22px 30px rgba(90, 64, 30, 0.17));
}
/* 紙の色：少し日に焼けた生成り。線は墨ではなく、こげ茶をうすく */
.env2-back { fill: #E6D7B8; }
.env2-flap-open {
  fill: #EADDC2;
  stroke: rgba(120, 88, 48, 0.26);
  stroke-width: 1;
  stroke-linejoin: round;
  transform-origin: 150px 40px;
  transform: scaleY(0);
  /* 閉じるとき：手紙が戻ってから倒れる */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.env2-letter { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0s; }
.env2-letter-paper { fill: #FCF8EE; stroke: rgba(120, 88, 48, 0.16); stroke-width: 1; }
.env2-letter-title { font-family: "Josefin Sans", sans-serif; font-size: 13px; letter-spacing: 0.32em; fill: #3E3326; }
.env2-letter-rule { stroke: #EE8A82; stroke-width: 1.5; }
.env2-letter-line { stroke: rgba(120, 88, 48, 0.16); stroke-width: 1; }
.env2-pocket { fill: #F2E6CC; stroke: rgba(120, 88, 48, 0.28); stroke-width: 1; stroke-linejoin: round; }
.env2-fold { fill: none; stroke: rgba(120, 88, 48, 0.14); stroke-width: 1; }
.env2-flap {
  fill: #F5EBD5;
  stroke: rgba(120, 88, 48, 0.30);
  stroke-width: 1;
  stroke-linejoin: round;
  transform-origin: 150px 40px;
  transition: transform 0.7s cubic-bezier(0.55, 0, 0.45, 1) 1s;
}
/* 封ろう：溶けて広がったいびつなロウ（水彩アクセントの黄 #F4C430）。真ん中を丸く押して頭文字 M */
.env2-seal {
  filter: drop-shadow(0 1.5px 1.5px rgba(110, 72, 0, 0.30));
  transition: opacity 0.45s ease 1.1s;
}
.env2-seal-wax { fill: url(#env2-wax); }
.env2-seal-gloss { fill: none; stroke: rgba(255, 250, 228, 0.55); stroke-width: 1.4; stroke-linecap: round; }
.env2-seal-press { fill: url(#env2-press); }
.env2-seal-edge-dark { fill: none; stroke: rgba(130, 88, 0, 0.45); stroke-width: 1; }
.env2-seal-edge-light { fill: none; stroke: rgba(255, 246, 210, 0.85); stroke-width: 1; }
.env2-seal-dots { fill: none; stroke: rgba(140, 98, 8, 0.45); stroke-width: 0.8; stroke-dasharray: 0.6 2.1; stroke-linecap: round; }
.env2-seal-mark {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  fill: #8C6508;
}
.env2-seal-mark--light { fill: rgba(255, 244, 205, 0.8); }

/* 開く（ゆっくり）：①封ろうが消え、閉じたふたが上へ折りたたまれる → ②開いたふたが立ち上がる → ③手紙がすっと上がる */
.envelope-link:hover .env2-seal,
.envelope-link:focus-visible .env2-seal { opacity: 0; transition-delay: 0s; }
.envelope-link:hover .env2-flap,
.envelope-link:focus-visible .env2-flap { transform: scaleY(0); transition-delay: 0.1s; }
.envelope-link:hover .env2-flap-open,
.envelope-link:focus-visible .env2-flap-open { transform: scaleY(1); transition-delay: 0.65s; }
.envelope-link:hover .env2-letter,
.envelope-link:focus-visible .env2-letter {
  transform: translateY(-46px);
  transition-duration: 1.1s;
  transition-delay: 0.95s;
}

/* 画面に入ったとき（main.js が .is-nudging を付ける）：揺らさず、手紙が少しだけのぞく */
.envelope-wrap.is-nudging { animation: none; }
.envelope-wrap.is-nudging .env2-letter { animation: env2-peek 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
@keyframes env2-peek {
  0%, 100% { transform: translateY(0); }
  45%      { transform: translateY(-12px); }
}
.envelope-label { color: var(--m-ink); }
.envelope-label-arrow { background-color: #D9655B; }
.envelope-label-arrow::after { border-color: #D9655B; }

@media (prefers-reduced-motion: reduce) {
  .envelope-svg.env2, .env2-flap, .env2-flap-open, .env2-letter, .env2-seal { transition: none; }
  .envelope-wrap.is-nudging .env2-letter { animation: none; }
}

/* --- 4-7. コンタクトの文字：言葉の途中で折り返さない --- */
.contact-cta__lead,
.contact-cta__sub { word-break: keep-all; overflow-wrap: anywhere; }
.contact-cta__actions .btn { white-space: nowrap; }

/* --- 4-8. ほけんだより（スマホ）：題字と英字を1行に収める --- */
@media (max-width: 599px) {
  .hoken__titles { flex-wrap: nowrap; gap: 10px; }
  .hoken__title { font-size: 1.45rem; letter-spacing: 0.08em; white-space: nowrap; }
  .hoken__titles .hoken__en { font-size: 9px; letter-spacing: 0.14em; white-space: nowrap; }
}
