/*
Theme Name: Urbanity Wakamizu
Theme URI: https://www.wakamizu-kaigo.com/
Author: 株式会社RSN
Author URI: https://rsn-inc.jp/
Description: 住宅型有料老人ホーム「アーバニティ若水」専用テーマ。ロゴの配色（深緑黒・青・水色から黄へのグラデーション）を軸に、明朝体と縦書き、パララックスとスクロールモーションで構成した上質志向のデザイン。
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wakamizu
*/

/* =========================================================
   1. トークン（ロゴの配色から）
   ========================================================= */
:root {
  --ink:        #041D1F;   /* ロゴの地色。文字と暗い面 */
  --ink-80:     #16302F;
  --ink-60:     #3B5150;
  --mute:       #6E7C7C;
  --mute-2:     #96A1A0;
  --paper:      #F4F3EF;   /* 紙色 */
  --paper-2:    #FBFAF7;
  --rule:       #D8D7CF;
  --blue:       #1F8CDA;   /* ロゴの青 */
  --blue-deep:  #11598E;   /* 小さな文字に使う濃い青 */
  --sky:        #59BDEC;   /* グラデーション上 */
  --sun:        #EFEB64;   /* グラデーション下 */
  --grad:       linear-gradient(180deg, var(--sky) 0%, var(--sun) 100%);
  --grad-h:     linear-gradient(90deg, var(--sky) 0%, var(--sun) 100%);

  --mincho: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Sans CJK JP", serif;
  --serif:  "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --display:"Cormorant Garamond", "Noto Serif JP", serif;
  --label:  "Fira Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 120px);
  --section: clamp(84px, 11vw, 190px);
  --maxw: 1500px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================
   2. ベース
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 2.3;
  letter-spacing: .08em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 数字は必ず等高（ライニング）数字で。古典的なオールドスタイル数字は使わない */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .4s var(--ease), opacity .4s var(--ease); }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
li { list-style: none; }  /* wp_nav_menu が <ul> なしで <li> を出す場合の黒丸よけ */
button { font: inherit; color: inherit; }

/* 日本語の改行位置 */
.jp, p, li, dd, dt, h1, h2, h3, h4, figcaption, td, th, span {
  word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere;
}
.nw { white-space: nowrap; }

::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: var(--paper); padding: 12px 20px; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   3. タイポグラフィ（明朝主体・細め・字間広め）
   ========================================================= */
.mincho  { font-family: var(--mincho); font-weight: 400; }
.display { font-family: var(--display); font-weight: 300; letter-spacing: .02em; }
.label {
  font-family: var(--label); text-transform: uppercase;
  font-size: clamp(9px, 1vw, 10px); letter-spacing: .32em; color: var(--mute);
  font-weight: 400;
}
.label--light { color: rgba(244,243,239,.72); }
.label--accent { color: var(--blue-deep); }
.label--accent-lt { color: var(--sky); }

.t-display { font-family: var(--mincho); font-weight: 400; font-size: clamp(32px, 5.6vw, 72px); line-height: 1.9; letter-spacing: .26em; }
.t-h1 { font-family: var(--mincho); font-weight: 400; font-size: clamp(26px, 3.6vw, 46px); line-height: 2; letter-spacing: .18em; }
.t-h2 { font-family: var(--mincho); font-weight: 400; font-size: clamp(23px, 2.9vw, 38px); line-height: 2.05; letter-spacing: .16em; }
.t-h3 { font-family: var(--mincho); font-weight: 400; font-size: clamp(19px, 2vw, 26px); line-height: 2.1; letter-spacing: .14em; }
.t-lead { font-family: var(--mincho); font-weight: 400; font-size: clamp(16px, 1.5vw, 20px); line-height: 2.8; letter-spacing: .16em; color: var(--ink-80); max-width: 34em; }
.t-body { font-size: clamp(13.5px, 1.05vw, 15px); line-height: 2.7; letter-spacing: .1em; color: var(--ink-60); max-width: 40em; }
.t-en { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.1; letter-spacing: .08em; }

/* 縦書き */
.vtext {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--mincho); font-weight: 400;
  letter-spacing: .34em; line-height: 2.6;
  /* 縦書きは「高さ＝1行の長さ」。grid の行高で縮められて字が重なるのを防ぐ */
  height: max-content; max-height: none; white-space: nowrap;   /* 折り返させない。改行は <br> で指定する */
  align-self: start;
  margin-inline: 0;
}
.vtext--loose { line-height: 3; letter-spacing: .38em; }
/* 縦書きのときは字を小さめに。1列に収めて折り返さないようにする */
.vtext.t-display, .vtext.t-h1, .vtext.t-h2, .vtext.t-h3 {
  font-size: clamp(19px, 2vw, 30px); line-height: 2.7; letter-spacing: .3em;
}
@media (max-width: 860px) {
  .vtext--flip.t-display, .vtext--flip.t-h1, .vtext--flip.t-h2, .vtext--flip.t-h3 {
    font-size: clamp(21px, 5.6vw, 30px); line-height: 2; letter-spacing: .14em; height: auto !important;
  }
}
.vtext em { font-style: normal; }
@media (max-width: 860px) {
  .vtext--flip {
    writing-mode: horizontal-tb; text-orientation: mixed;
    letter-spacing: .14em; line-height: 2.1; white-space: normal; height: auto !important;
    width: auto;
  }
  /* 横組みに戻したときは左から拭う */
  .vtext--flip.chars { clip-path: inset(-10% 100% -10% 0); }
  .vtext--flip.chars.is-in { clip-path: inset(-10% -4% -10% 0); }
}

/* 細いグラデーション罫（ロゴの色） */
.hairline { display: block; width: 100%; height: 1px; background: var(--grad-h); opacity: .8; }
.hairline--v { width: 1px; height: clamp(56px, 10vw, 120px); background: var(--grad); }

/* =========================================================
   4. レイアウト
   ========================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(76px, 9vw, 150px) clamp(44px, 5.5vw, 88px); }
.section--tight-top { padding-top: clamp(44px, 5.5vw, 88px); }
.section--tight-bottom { padding-bottom: clamp(44px, 5.5vw, 88px); }
.stack { display: flex; flex-direction: column; }
.gap-s { gap: clamp(12px, 1.4vw, 20px); }
.gap-m { gap: clamp(20px, 2.6vw, 36px); }
.gap-l { gap: clamp(32px, 4.6vw, 72px); }
.rule-top { border-top: 1px solid var(--rule); }
.rule-strong { border-top: 1px solid var(--ink); }
.measure { max-width: 62ch; }

.eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad-h); }

.link-arrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px; position: relative;
  padding-bottom: 10px; font-size: 13px; letter-spacing: .2em;
}
.link-arrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .6s var(--ease); }
.link-arrow:hover::after { transform: scaleX(.3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  min-height: 62px; padding: 0 clamp(26px, 3vw, 44px);
  border: 1px solid currentColor; font-size: clamp(13px, 1.1vw, 14px); letter-spacing: .2em;
  overflow: hidden; z-index: 0;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--paper); }
.btn--light { color: var(--paper); }
.btn--light::before { background: var(--paper); }
.btn--light:hover { color: var(--ink); }

/* 写真 */
.media { position: relative; overflow: hidden; background: #E6E4DC; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.ratio-4x3 { aspect-ratio: 4 / 3; }
.media.ratio-3x4 { aspect-ratio: 3 / 4; }
.media.ratio-16x9 { aspect-ratio: 16 / 9; }
.media.ratio-1x1 { aspect-ratio: 1 / 1; }
.media--arch { border-radius: 50vw 50vw 0 0 / 26vw 26vw 0 0; }
.media--slantb { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 6%)); }
.media--slantt { clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%); }
.caption { margin-top: 14px; }

/* パララックス（画像をコンテナより高くして動かす） */
.parallax { overflow: hidden; }
.parallax > img, .parallax > .parallax__img { will-change: transform; transform: translate3d(0, var(--py, 0), 0) scale(1.14); }

/* 暗い帯 */
.band { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); isolation: isolate; }
.band__img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; z-index: -2; will-change: transform; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(4,29,31,.86) 0%, rgba(4,29,31,.62) 42%, rgba(4,29,31,.12) 78%),
    linear-gradient(to top, rgba(4,29,31,.72) 0%, rgba(4,29,31,.34) 46%, rgba(4,29,31,.56) 100%);
}
.band--slantb { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 72px)); }
.band--slantt { clip-path: polygon(0 72px, 100% 0, 100% 100%, 0 100%); }
.band--curve { clip-path: ellipse(170% 100% at 50% 100%); padding-top: calc(var(--section) + 48px); }
.band .t-body, .band p { color: rgba(244,243,239,.80); }
.band .rule-top, .band .rule-strong { border-color: rgba(244,243,239,.26); }
.band a { color: var(--paper); }

/* 紙面の淡い光（ロゴのグラデーション） */
.glow { position: relative; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 54vw 38vw at 86% 8%, rgba(89,189,236,.14) 0%, rgba(244,243,239,0) 70%);
}
.glow--left::before { background: radial-gradient(ellipse 54vw 38vw at 14% 10%, rgba(239,235,100,.16) 0%, rgba(244,243,239,0) 70%); }
.glow > * { position: relative; z-index: 1; }

/* 透かし文字 */
.watermark { position: absolute; pointer-events: none; user-select: none; z-index: 0; color: rgba(4,29,31,.035); line-height: 1; }
.watermark--jp {
  font-family: var(--mincho); font-size: clamp(104px, 13vw, 210px);
  writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .04em;
  right: clamp(12px, 3vw, 56px); top: clamp(24px, 5vw, 80px);
  color: rgba(4,29,31,.05);
}
.watermark--en { font-family: var(--display); font-weight: 300; font-size: clamp(90px, 15vw, 240px); letter-spacing: .02em; color: rgba(4,29,31,.05); }

/* 仮テキスト */
.sample { background: rgba(89,189,236,.22); box-shadow: inset 0 -1px 0 var(--blue); padding: 0 3px; }
.sample::after { content: "※仮"; font-family: var(--label); font-size: .65em; letter-spacing: .1em; color: var(--blue-deep); margin-left: 6px; vertical-align: .15em; }

/* =========================================================
   5. モーション
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .12s; } .reveal--d2 { transition-delay: .24s; } .reveal--d3 { transition-delay: .36s; }

/* 画像のマスク開き */
.mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.mask.is-in { clip-path: inset(0 0 0 0); }
.mask > img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.mask.is-in > img { transform: scale(1); }

/* 一文字ずつ */
.chars span { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.chars.is-in span { opacity: 1; transform: none; }
/* 縦書きの見出しは一文字ずつに分けず、上から拭うように出す（段が崩れるため） */
.vtext.chars { clip-path: inset(0 -14% 100% -14%); opacity: 0; transition: clip-path 1.5s var(--ease), opacity 1.1s var(--ease); }
.vtext.chars.is-in { clip-path: inset(-6% -14% -6% -14%); opacity: 1; }

/* 罫が引かれる */
.draw { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.draw.is-in { transform: scaleX(1); }
.hairline--v.draw { transform: scaleY(0); transform-origin: top; }
.hairline--v.draw.is-in { transform: scaleY(1); }

/* 横に流れる写真列 */
.flow { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.flow__track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; animation: flow 48s linear infinite; }
.flow:hover .flow__track { animation-play-state: paused; }
.flow__item { width: clamp(240px, 26vw, 420px); flex: 0 0 auto; }
.flow__item .media { aspect-ratio: 4 / 3; }
@keyframes flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* スクロールのしるし */
.scroll-cue { position: absolute; left: var(--gutter); bottom: 32px; z-index: 3; display: flex; align-items: center; gap: 14px; color: rgba(244,243,239,.75); }
.scroll-cue__line { width: 70px; height: 1px; background: rgba(244,243,239,.4); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--grad-h); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .chars span, .vtext.chars { opacity: 1 !important; transform: none !important; }
  .mask, .vtext.chars { clip-path: none !important; }
  .parallax > img { transform: none !important; }
  .flow__track { animation: none; }
}

/* =========================================================
   6. ヘッダー
   ========================================================= */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 96px; padding-inline: var(--gutter); color: var(--paper);
  transition: background .5s var(--ease), min-height .5s var(--ease), color .4s var(--ease);
}
.site-header.is-solid { position: fixed; min-height: 72px; background: rgba(4,29,31,.9); backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); transition: transform .5s var(--ease); }

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__logo { width: clamp(150px, 16vw, 210px); height: auto; }
.site-header .brand__logo { filter: brightness(0) invert(1); opacity: .96; }
.brand__jp { font-family: var(--mincho); font-size: clamp(15px, 1.5vw, 18px); letter-spacing: .24em; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); margin: 0; padding: 0; list-style: none; }
.nav__list li { list-style: none; margin: 0; padding: 0; }
.nav a { font-family: var(--mincho); font-weight: 400; font-size: clamp(12px, 1.05vw, 14px); letter-spacing: .14em; text-transform: none; position: relative; padding-bottom: 5px; display: inline-block; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad-h); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }
.nav__cta { font-family: var(--mincho) !important; font-size: clamp(12px, 1.05vw, 14px) !important; letter-spacing: .16em !important; text-transform: none !important; }
.nav__cta::after { transform: scaleX(1) !important; }
.nav__foot { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 2px; background: none; border: 0; cursor: pointer; color: inherit;
  /* 開いているメニュー（.nav の z-index 60）より必ず上に置く。兄弟要素なので指定が要る */
  position: relative; z-index: 80;
}
.nav-toggle__bars { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 26px; height: 16px; }
.nav-toggle__bars span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.nav-toggle__label { font-family: var(--label); font-size: 9.5px; letter-spacing: .24em; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   7. ヒーロー
   ========================================================= */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 118%; object-fit: cover; will-change: transform; animation: heroIn 2.6s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.12); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,29,31,.92) 0%, rgba(4,29,31,.52) 46%, rgba(4,29,31,.66) 100%); }

.hero__inner { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; justify-content: flex-end; padding-block: 140px 120px; color: var(--paper); }
.hero__copy { font-size: clamp(16px, 1.45vw, 22px); letter-spacing: .34em; color: var(--paper); text-shadow: 0 2px 30px rgba(4,29,31,.5); }
.hero__foot { position: absolute; left: var(--gutter); bottom: clamp(80px, 12vh, 120px); z-index: 2; color: var(--paper); display: flex; flex-direction: column; gap: 18px; }
.hero__en { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: .12em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: clamp(11.5px, 1.1vw, 13px); letter-spacing: .18em; color: rgba(244,243,239,.88); }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--label); font-size: 10px; letter-spacing: .26em; color: var(--sun); }
.hero__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.page-hero { position: relative; min-height: min(70svh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero__img { position: absolute; inset: -9% 0; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,29,31,.92) 0%, rgba(4,29,31,.5) 62%); }
.page-hero__inner { position: relative; z-index: 2; color: var(--paper); padding-bottom: clamp(44px, 6vw, 88px); padding-top: 180px; width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-hero .t-en { color: rgba(244,243,239,.26); }

/* =========================================================
   8. セクション部品
   ========================================================= */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: start; }
.editorial--offset > *:last-child { padding-top: clamp(48px, 8vw, 140px); }
.editorial--vert { grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4vw, 76px); }
.editorial--vert > :last-child { max-width: 50em; }
.editorial--vert { align-items: start; }
/* 縦見出し ＋ 本文 ＋ 縦位置の写真 */
.editorial--vert3 { display: grid; align-items: start; grid-template-columns: auto minmax(0, 1fr) clamp(190px, 21vw, 320px); gap: clamp(28px, 4vw, 72px); }
.editorial--vert3 > .vtext { margin-top: .2em; }
.editorial--vert3 > :nth-child(2) { max-width: 44em; }
.concept__side { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(8px, 2vw, 34px); }
.editorial--vert > .vtext { margin-top: .2em; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.numbers { display: flex; flex-direction: column; }
.numbers__row { display: grid; grid-template-columns: 48px minmax(0, 210px) 1fr; align-items: baseline; gap: clamp(16px, 2.6vw, 44px); padding-block: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--rule); }
.numbers__row:first-child { border-top-color: var(--ink); }
.numbers__row:last-child { border-bottom: 1px solid var(--rule); }
.numbers__fig { font-family: var(--mincho); font-weight: 600; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.15; letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.numbers__fig small { font-family: var(--label); font-weight: 400; font-size: .26em; margin-left: 12px; letter-spacing: .14em; color: var(--mute); }

.deflist { display: flex; flex-direction: column; }
.deflist__row { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: clamp(16px, 2.4vw, 44px); padding-block: clamp(16px, 1.8vw, 22px); border-top: 1px solid var(--rule); }
.deflist__row:first-child { border-top-color: var(--ink); }
.deflist__row:last-child { border-bottom: 1px solid var(--rule); }
.deflist dt { font-family: var(--label); text-transform: uppercase; font-size: 9.5px; letter-spacing: .26em; color: var(--mute-2); padding-top: .7em; }
.deflist dd { font-size: clamp(13.5px, 1.05vw, 15px); line-height: 2.2; color: var(--ink-60); }
.band .deflist dt { color: rgba(244,243,239,.5); }
.band .deflist dd { color: rgba(244,243,239,.82); }

.plan { display: grid; grid-template-columns: 48px minmax(220px, 320px) minmax(180px, 250px) 1fr; gap: clamp(20px, 3vw, 52px); padding-block: clamp(30px, 3.6vw, 52px); border-bottom: 1px solid var(--rule); align-items: start; }
.plan__fee { font-family: var(--mincho); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; letter-spacing: .01em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.plan__fee small { font-family: var(--serif); font-weight: 400; font-size: .34em; margin-left: 8px; letter-spacing: .08em; color: var(--mute); }
.plan__list { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; color: var(--mute); }
.plan__list > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.plan__list b { font-family: var(--mincho); font-weight: 600; font-size: clamp(17px, 1.65vw, 23px); color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

.faq__item { border-top: 1px solid var(--rule); }
.faq__item:first-child { border-top-color: var(--ink); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q { display: grid; grid-template-columns: 38px 1fr 24px; gap: 24px; align-items: start; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; padding-block: clamp(22px, 2.6vw, 32px); font-family: var(--mincho); font-size: clamp(16px, 1.6vw, 20px); line-height: 2; letter-spacing: .12em; }
.faq__q::before { content: "Q"; font-family: var(--display); font-size: 24px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.3; }
.faq__mark { position: relative; width: 16px; height: 16px; margin-top: .7em; justify-self: end; }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; background: var(--ink); transition: transform .4s var(--ease); }
.faq__mark::before { left: 0; top: 7px; width: 16px; height: 1px; }
.faq__mark::after { left: 7px; top: 0; width: 1px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__mark::after { transform: scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .6s var(--ease); }
.faq__a > div { padding: 0 0 clamp(22px, 2.6vw, 32px) 62px; font-size: 14.5px; line-height: 2.4; color: var(--ink-60); }

.news__item { display: grid; grid-template-columns: 130px 120px 1fr 24px; align-items: start; gap: clamp(16px, 3vw, 52px); padding-block: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--rule); transition: background .4s var(--ease); }
.news__item:first-child { border-top-color: var(--ink); }
.news__item:last-child { border-bottom: 1px solid var(--rule); }
.news__item:hover { background: rgba(89,189,236,.06); }
.news__date { font-family: var(--mincho); font-weight: 400; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .06em; color: var(--mute); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.news__title { font-family: var(--mincho); font-size: clamp(15.5px, 1.5vw, 20px); line-height: 2; letter-spacing: .1em; }

.steps__row { display: grid; grid-template-columns: 48px minmax(0, 340px) minmax(0, 1fr); gap: clamp(16px, 3vw, 56px); padding-block: clamp(18px, 2.2vw, 26px); border-top: 1px solid var(--rule); align-items: start; }
.steps__row:first-child { border-top-color: var(--ink); }
.steps__row:last-child { border-bottom: 1px solid var(--rule); }

.timeline__row { display: grid; grid-template-columns: 100px minmax(0, 210px) 1fr; gap: clamp(14px, 2.4vw, 36px); padding-block: 16px; border-top: 1px solid rgba(244,243,239,.2); }
.timeline__row:first-child { border-top-color: rgba(244,243,239,.4); }
.timeline__row:last-child { border-bottom: 1px solid rgba(244,243,239,.4); }
.timeline__time { font-family: var(--mincho); font-weight: 600; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: .04em; color: var(--blue-deep); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

.tel { font-family: var(--mincho); font-weight: 600; font-size: clamp(27px, 3.6vw, 46px); line-height: 1.25; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* フォーム */
.form { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 28px); background: var(--paper); padding: clamp(26px, 4vw, 60px); color: var(--ink); }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form select, .form textarea {
  font-family: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 14px 0; width: 100%; border-radius: 0;
}
.form textarea { border: 1px solid var(--rule); padding: 16px; min-height: 120px; }
.form button[type="submit"] { min-height: 64px; width: 100%; border: 0; background: var(--ink); color: var(--paper); letter-spacing: .22em; cursor: pointer; position: relative; overflow: hidden; }
.form button[type="submit"]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--grad-h); }
.form .note { font-size: 12px; line-height: 2; color: var(--mute); }

/* =========================================================
   9. フッター／固定CTA
   ========================================================= */
.site-footer { padding-block: clamp(64px, 8vw, 100px) clamp(96px, 8vw, 60px); position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--grad-h); opacity: .5; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: clamp(32px, 5vw, 72px); }
.site-footer__logo { width: clamp(180px, 20vw, 260px); }
.site-footer__addr { line-height: 2.1; letter-spacing: .06em; max-width: 32em; }
.site-footer__tel { font-family: var(--mincho); font-weight: 600; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: .04em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.site-footer__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px clamp(24px, 4vw, 80px); margin: 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: .1em; }
.site-footer__list li { list-style: none; margin: 0; padding: 0; }
.site-footer__list a { display: inline-block; padding-block: 2px; }
.site-footer__nav a:hover { color: var(--blue-deep); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(36px, 4vw, 64px); padding-top: 26px; border-top: 1px solid var(--rule); font-size: 11.5px; letter-spacing: .1em; color: var(--mute-2); }

.sticky-cta { display: none; }

/* =========================================================
   10. 本文（WordPress の出力）
   ========================================================= */
.entry { font-size: clamp(14.5px, 1.1vw, 16px); line-height: 2.5; color: var(--ink-60); }
.entry > * + * { margin-top: 1.8em; }
.entry h2 { font-family: var(--mincho); font-size: clamp(21px, 2.3vw, 28px); line-height: 2; letter-spacing: .14em; color: var(--ink); margin-top: 2.6em; padding-bottom: .6em; border-bottom: 1px solid var(--rule); }
.entry h3 { font-family: var(--mincho); font-size: clamp(18px, 1.9vw, 22px); line-height: 2; letter-spacing: .12em; color: var(--ink); margin-top: 2.2em; }
.entry a { border-bottom: 1px solid var(--rule); }
.entry a:hover { border-color: var(--blue); color: var(--blue-deep); }
.entry ul { list-style: disc; padding-left: 1.4em; }
.entry ol { list-style: decimal; padding-left: 1.4em; }
.entry li { margin-top: .6em; }
.entry blockquote { padding: clamp(20px, 3vw, 36px); background: rgba(89,189,236,.09); font-family: var(--mincho); }
.entry img, .entry figure { margin-block: 2.2em; }
.entry figcaption { font-family: var(--label); font-size: 10px; letter-spacing: .26em; color: var(--mute-2); margin-top: 12px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.entry th { font-family: var(--label); font-size: 9.5px; letter-spacing: .24em; color: var(--mute-2); text-transform: uppercase; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 14px; border: 1px solid var(--rule); font-family: var(--label); font-size: 11px; letter-spacing: .14em; color: var(--mute); }
.page-numbers.current, .page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* =========================================================
   11. レスポンシブ
   ========================================================= */
@media (max-width: 1100px) {
  .editorial, .editorial--vert { grid-template-columns: 1fr; }
  .editorial--vert3 { grid-template-columns: auto minmax(0, 1fr); }
  .editorial--vert3 > :nth-child(2) { max-width: none; }
  .concept__side { display: none; }
  .editorial--offset > *:last-child { padding-top: 0; }
  .cards, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { grid-template-columns: 48px 1fr; row-gap: 22px; }
  .plan__fee-wrap, .plan__list { grid-column: 2; }
  .numbers__row { grid-template-columns: 40px minmax(0, 160px) 1fr; }
  .news__item { grid-template-columns: 110px 1fr 20px; }
}

@media (max-width: 860px) {
  body { font-size: 14px; line-height: 2.2; }
  .site-header { min-height: 76px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }

  /* メニューを開いている間はヘッダーを最前面に固定して、閉じるボタンを必ず押せるようにする */
  body.nav-open .site-header {
    position: fixed; top: 0; z-index: 70;
    background: transparent; backdrop-filter: none;
    transform: none !important; color: var(--paper);
  }
  /* ヘッダーの地色は .nav（z-index 60）より上に敷く。
     背景は要素自身の最下層に描かれるため、擬似要素で重ねないと項目が透ける */
  body.nav-open .site-header::before {
    content: ""; position: absolute; inset: 0; z-index: 75;
    background: var(--ink);
  }
  body.nav-open .site-header .brand { position: relative; z-index: 80; }
  body.nav-open .site-header .brand__logo { filter: brightness(0) invert(1); }

  .nav.is-open {
    display: flex; position: fixed; inset: 0; z-index: 60;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(76px + env(safe-area-inset-top, 0px)) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
    background: var(--ink); overflow-y: auto; overscroll-behavior: contain;
    animation: menuIn .4s var(--ease);
  }
  @keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }

  .nav.is-open .nav__list {
    flex-direction: column; align-items: stretch; gap: 0; width: 100%;
    margin-top: clamp(14px, 4vh, 40px);
  }
  .nav.is-open .nav__list li { border-bottom: 1px solid rgba(244,243,239,.14); }
  .nav.is-open .nav__list li:first-child { border-top: 1px solid rgba(244,243,239,.14); }
  .nav.is-open a {
    display: block; padding-block: clamp(13px, 2.1vh, 19px);
    font-family: var(--mincho); font-weight: 400;
    font-size: clamp(15px, 4.2vw, 18px); letter-spacing: .18em; line-height: 1.6;
    text-transform: none; color: var(--paper);
  }
  .nav.is-open a::after { display: none; }
  .nav.is-open .current-menu-item > a { color: var(--sky); }

  .nav.is-open .nav__cta {
    margin-top: clamp(22px, 4vh, 40px);
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 58px; padding: 0 24px;
    border: 1px solid rgba(244,243,239,.5);
    font-family: var(--mincho) !important; font-size: 15px !important; letter-spacing: .2em !important;
  }

  .nav.is-open .nav__foot {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: auto; padding-top: clamp(26px, 5vh, 44px);
  }
  .nav__tel {
    font-family: var(--mincho); font-weight: 600; font-size: clamp(24px, 7vw, 31px);
    letter-spacing: .04em; color: var(--paper);
    font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
  }
  .nav.is-open .nav__foot .label { color: rgba(244,243,239,.6); }

  .editorial--vert3 { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .hero__inner { min-height: 92svh; justify-content: flex-end; padding-block: 120px 180px; }
  .hero__copy { height: min(50svh, 420px); font-size: clamp(18px, 5vw, 24px); }
  .hero__foot { bottom: clamp(96px, 16vh, 150px); }
  .page-hero { min-height: 52svh; }
  .page-hero__inner { padding-top: 150px; }

  /* スマホは幅が狭いので、帯は全体を均一に沈める */
  .band::before { background: linear-gradient(to bottom, rgba(4,29,31,.84) 0%, rgba(4,29,31,.74) 50%, rgba(4,29,31,.88) 100%); }
  .band--slantb { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px)); }
  .band--slantt { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); }
  .band--curve { clip-path: ellipse(190% 100% at 50% 100%); }
  .media--arch { border-radius: 50vw 50vw 0 0 / 32vw 32vw 0 0; }

  .timeline__row { grid-template-columns: 82px 1fr; }
  .timeline__row > :last-child { grid-column: 2; }
  .steps__row { grid-template-columns: 38px 1fr; }
  .steps__row > :last-child { grid-column: 2; }
  .deflist__row { grid-template-columns: 1fr; gap: 6px; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
  .site-footer__list a { padding-block: 9px; }

  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 40; min-height: 66px; }
  .sticky-cta a { display: flex; align-items: center; justify-content: center; font-size: 13.5px; letter-spacing: .18em; position: relative; }
  .sticky-cta a:first-child { background: var(--paper); color: var(--ink); }
  .sticky-cta a:last-child { background: var(--ink); color: var(--paper); }
  .sticky-cta::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--grad-h); z-index: 1; }
}

@media (max-width: 560px) {
  .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; }
  .numbers__row { grid-template-columns: 32px 1fr; row-gap: 6px; }
  .numbers__row > :last-child { grid-column: 2; }
  .news__item { grid-template-columns: 1fr; gap: 8px; }
  .news__item > :last-child { display: none; }
  .faq__q { grid-template-columns: 28px 1fr 20px; gap: 16px; }
  .faq__a > div { padding-left: 44px; }
  .watermark { display: none; }
  .btn { width: 100%; }
  .flow__item { width: 72vw; }
}

@media print {
  .site-header, .sticky-cta, .nav-toggle, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
}
