/* ============================================================
   ほうかんWEB — Design System v2
   Concept: 医療の誠実さ × デジタルの先進性
   Palette: 深松葉グリーン × 生成り × アンバー
   Type:    Shippori Mincho B1 (display) / Noto Sans JP (body) / Outfit (EN)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:        #16241D;
  --ink-2:      #2B3A32;
  --ink-soft:   #4A5750;
  --mute:       #75817A;
  --paper:      #F7F5EF;
  --paper-2:    #EFEBDF;
  --white:      #FFFFFF;
  --green:      #176546;
  --green-deep: #0D4530;
  --green-dark: #0A2E20;
  --green-brt:  #1F8A5F;
  --green-pale: #E4EFE7;
  --amber:      #E8941A;
  --amber-2:    #D97E06;
  --gold:       #B08A36;
  --line:       rgba(22, 36, 29, 0.12);
  --line-soft:  rgba(22, 36, 29, 0.07);

  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', serif;
  --sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --en:    'Outfit', 'Noto Sans JP', sans-serif;

  --sh-1: 0 2px 10px rgba(22, 36, 29, 0.05);
  --sh-2: 0 12px 32px rgba(22, 36, 29, 0.09);
  --sh-3: 0 24px 60px rgba(22, 36, 29, 0.14);
  --sh-amber: 0 14px 32px rgba(232, 148, 26, 0.32);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;

  --hd-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hd-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-feature-settings: 'palt';
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
button { font-family: inherit; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green-brt);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .btn-ghost:focus-visible, .btn-dark:focus-visible, .hd-cta:focus-visible {
  outline-offset: 4px;
}

/* ---------- Layout ---------- */
.wrap   { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-n { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.wrap-w { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.sec   { padding: 110px 0; }
.sec-s { padding: 80px 0; }
.sec-l { padding: 140px 0; }

@media (max-width: 767px) {
  .wrap, .wrap-n, .wrap-w { padding: 0 20px; }
  .sec   { padding: 72px 0; }
  .sec-s { padding: 56px 0; }
  .sec-l { padding: 88px 0; }
}

/* Section background variants */
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-deep  {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 138, 95, 0.16), transparent 60%),
    var(--green-dark);
  color: rgba(255, 255, 255, 0.86);
}
.bg-deep::before { content: none; }

/* Grain texture for dark sections */
.grain { position: relative; }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.t-serif { font-family: var(--serif); }
.t-en    { font-family: var(--en); }

/* Display sizes */
.d1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.d2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.d3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.lead {
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  line-height: 2.2;
  color: var(--ink-soft);
}

.accent-g { color: var(--green-brt); }
.accent-a { color: var(--amber); }

/* Section label: 小さな日本語ラベル + 罫線 */
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--green);
  margin-bottom: 22px;
}
.sec-label::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--green);
}
.sec-label.center { justify-content: center; }
.sec-label.center::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--green);
}
.bg-deep .sec-label { color: rgba(255, 255, 255, 0.75); }
.bg-deep .sec-label::before,
.bg-deep .sec-label.center::after { background: rgba(255, 255, 255, 0.45); }

/* Section heading block */
.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-head .d2 + p,
.sec-head .d1 + p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.bg-deep .sec-head .d2 + p { color: rgba(255, 255, 255, 0.62); }
@media (max-width: 767px) {
  .sec-head { margin-bottom: 36px; }
}

/* （旧）背景の英字飾りは廃止 — 互換のため非表示化 */
.ghost-word { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 38px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(125deg, #F2A33C 0%, var(--amber) 45%, var(--amber-2) 100%);
  box-shadow: var(--sh-amber);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, var(--amber-2), #C26F00);
  opacity: 0;
  transition: opacity 0.35s;
}
.btn span { position: relative; z-index: 1; }
.btn .ar {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease);
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(232, 148, 26, 0.42); }
.btn:hover::before { opacity: 1; }
.btn:hover .ar { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(23, 101, 70, 0.45);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn-ghost .ar {
  display: inline-flex;
  transition: transform 0.35s var(--ease);
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1;
}
.btn-ghost:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost:hover .ar { transform: translateX(4px); }

.bg-deep .btn-ghost {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.4);
}
.bg-deep .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 36px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #fff;
  background: var(--green);
  transition: background 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}
.btn-dark:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13, 69, 48, 0.28);
}

@media (max-width: 767px) {
  .btn { min-height: 56px; padding: 0 30px; font-size: 0.95rem; width: 100%; max-width: 420px; }
  .btn-ghost, .btn-dark { min-height: 52px; width: 100%; max-width: 420px; }
}

/* Text link with growing underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  text-decoration: none;
  padding-bottom: 4px;
  position: relative;
}
.tlink::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .ar {
  display: inline-flex;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}
.tlink:hover .ar { transform: translateX(4px); }

/* ---------- Header ---------- */
.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--hd-h);
  display: flex;
  align-items: center;
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.45s var(--ease), background 0.35s, box-shadow 0.35s;
}
.hd.is-hidden { transform: translateY(-100%); }
.hd.is-scrolled { background: rgba(247, 245, 239, 0.96); box-shadow: 0 1px 24px rgba(22, 36, 29, 0.07); }

.hd-in {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hd-logo { display: flex; align-items: center; text-decoration: none; }
.hd-logo img { height: 46px; width: auto; }

.hd-nav { display: none; }
@media (min-width: 1080px) {
  .hd-nav { display: flex; align-items: center; gap: 30px; }
  .hd-nav > a, .hd-nav .drop > a {
    position: relative;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-2);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.25s;
  }
  .hd-nav > a::after, .hd-nav .drop > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }
  .hd-nav > a:hover, .hd-nav .drop > a:hover { color: var(--green); }
  .hd-nav > a:hover::after, .hd-nav .drop:hover > a::after { transform: scaleX(1); }
}

/* Dropdown */
.drop { position: relative; }
.drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 280px;
  padding: 12px;
  background: #fff;
  border-radius: var(--r-m);
  box-shadow: var(--sh-3);
  border: 1px solid var(--line-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.drop-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.drop-menu a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-pale);
  transition: background 0.2s;
}
.drop-menu a:hover { background: var(--paper); color: var(--green); }
.drop-menu a:hover::before { background: var(--green); }

.hd-right { display: flex; align-items: center; gap: 14px; }
.hd-tel {
  display: none;
  text-decoration: none;
  text-align: right;
  line-height: 1.3;
}
@media (min-width: 880px) {
  .hd-tel { display: block; }
  .hd-tel .num {
    font-family: var(--en);
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
  .hd-tel .cap { font-size: 0.66rem; color: var(--mute); letter-spacing: 0.1em; }
}
.hd-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.hd-cta:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13, 69, 48, 0.25); }
@media (max-width: 479px) { .hd-cta { padding: 0 16px; font-size: 0.78rem; min-height: 42px; } }

/* Hamburger */
.hb {
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1080px) { .hb { display: none; } }
.hb span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.hb span:nth-child(1) { top: 17px; }
.hb span:nth-child(2) { top: 23px; }
.hb span:nth-child(3) { top: 29px; }
.hb.is-open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.hb.is-open span:nth-child(2) { opacity: 0; }
.hb.is-open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--green-dark);
  color: #fff;
  padding: calc(var(--hd-h) + 28px) 28px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
}
.mnav .m-main a {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.mnav .m-main a::after { content: '→'; font-family: var(--en); font-size: 1rem; opacity: 0.5; }
.mnav.is-open .m-main a { transform: translateY(0); opacity: 1; }
.mnav .m-sub { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mnav .m-sub a { font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); padding: 6px 0; }
.mnav .m-tel {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-m);
  padding: 18px;
  text-align: center;
}
.mnav .m-tel .num { font-family: var(--en); font-size: 1.7rem; font-weight: 600; }
.mnav .m-tel .cap { font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); }
body.menu-lock { overflow: hidden; }

/* ---------- Reveal system ---------- */
[data-rv] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--rv-d, 0s);
  will-change: opacity, transform;
}
[data-rv="fade"] { transform: none; }
[data-rv="left"] { transform: translateX(-40px); }
[data-rv="right"] { transform: translateX(40px); }
[data-rv].is-on {
  opacity: 1;
  transform: none;
}

/* Image clip reveal */
[data-rv="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.15s var(--ease);
  transition-delay: var(--rv-d, 0s);
}
[data-rv="clip"].is-on { clip-path: inset(0 0 0 0); }
[data-rv="clip"] img {
  transform: scale(1.12);
  transition: transform 1.5s var(--ease);
  transition-delay: var(--rv-d, 0s);
}
[data-rv="clip"].is-on img { transform: scale(1); }

/* Stagger children */
[data-rv-group] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-rv-group].is-on > * { opacity: 1; transform: none; }
[data-rv-group].is-on > *:nth-child(1) { transition-delay: 0s; }
[data-rv-group].is-on > *:nth-child(2) { transition-delay: 0.1s; }
[data-rv-group].is-on > *:nth-child(3) { transition-delay: 0.2s; }
[data-rv-group].is-on > *:nth-child(4) { transition-delay: 0.3s; }
[data-rv-group].is-on > *:nth-child(5) { transition-delay: 0.4s; }
[data-rv-group].is-on > *:nth-child(6) { transition-delay: 0.5s; }
[data-rv-group].is-on > *:nth-child(7) { transition-delay: 0.6s; }
[data-rv-group].is-on > *:nth-child(8) { transition-delay: 0.7s; }

/* ---------- Cards / Tiles ---------- */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh-1);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.tile .tile-img { position: relative; overflow: hidden; aspect-ratio: 16 / 9.5; }
.tile .tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tile:hover .tile-img img { transform: scale(1.06); }
.tile .tile-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.tile .tile-num {
  font-family: var(--en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 10px;
}
.tile h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 10px;
}
.tile p { font-size: 0.88rem; line-height: 1.95; color: var(--ink-soft); }
.tile .tile-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
}
.tile .tile-foot .circ {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(23, 101, 70, 0.35);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  transition: background 0.35s, border-color 0.35s, color 0.3s, transform 0.45s var(--ease);
}
.tile:hover .tile-foot .circ { background: var(--green); border-color: var(--green); color: #fff; transform: translateX(4px); }

/* Plain panel */
.panel {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  box-shadow: var(--sh-1);
}

/* ---------- Grids ---------- */
.g { display: grid; gap: 28px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g { gap: 18px; }
}

/* ---------- Split (zigzag) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split .split-img { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-2); }
.split .split-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.rev .split-img { order: -1; }
}
@media (min-width: 901px) {
  .split.rev .split-img { order: 2; }
}

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat .num {
  font-family: var(--en);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #fff;
}
.stat .num .unit { font-size: 0.42em; margin-left: 4px; color: rgba(255, 255, 255, 0.65); }
.stat .cap {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Marquee ---------- */
.marq {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.marq-track {
  display: inline-flex;
  gap: 56px;
  padding-right: 56px;
  animation: marq 30s linear infinite;
  will-change: transform;
}
.marq-track span {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: rgba(22, 36, 29, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marq-track span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: rgba(176, 138, 54, 0.6); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: color 0.25s;
}
.faq-q:hover { color: var(--green); }
.faq-q .q-mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
  flex: 0 0 auto;
}
.faq-q .q-ic {
  margin-left: auto;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
}
.faq-q .q-ic::before, .faq-q .q-ic::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease), background 0.3s;
}
.faq-q .q-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .q-ic { transform: rotate(135deg); background: var(--green); border-color: var(--green); }
.faq-item.is-open .q-ic::before, .faq-item.is-open .q-ic::after { background: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease);
}
.faq-a-in {
  padding: 0 8px 28px 47px;
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--ink-soft);
}
@media (max-width: 767px) {
  .faq-q { padding: 20px 4px; font-size: 0.92rem; }
  .faq-a-in { padding-left: 4px; }
}

/* ---------- Page hero (subpages) ---------- */
.phero {
  position: relative;
  padding: calc(var(--hd-h) + 90px) 0 86px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 92% -20%, rgba(31, 138, 95, 0.1), transparent 60%),
    linear-gradient(180deg, #FBFAF6 0%, var(--paper) 100%);
}
.phero .ghost-word { top: auto; bottom: -14px; }
.phero-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--green);
  margin-bottom: 18px;
}
.phero-label::before { content: ''; width: 34px; height: 1px; background: var(--green); }
.phero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.phero .phero-sub { margin-top: 20px; max-width: 720px; color: var(--ink-soft); font-size: 0.97rem; line-height: 2.2; }
.bc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 30px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.bc a { color: var(--mute); text-decoration: none; transition: color 0.2s; }
.bc a:hover { color: var(--green); }
.bc .sep { opacity: 0.5; }
@media (max-width: 767px) {
  .phero { padding: calc(var(--hd-h) + 52px) 0 56px; }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 12% 120%, rgba(31, 138, 95, 0.35), transparent 55%),
    radial-gradient(900px 480px at 95% -30%, rgba(176, 138, 54, 0.22), transparent 55%),
    var(--green-dark);
  color: #fff;
  padding: 110px 0;
}
.cta .cta-in { position: relative; z-index: 1; text-align: center; }
.cta .cta-en {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}
.cta .cta-en::before, .cta .cta-en::after {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.cta .cta-sub { color: rgba(255, 255, 255, 0.62); font-size: 0.95rem; margin-bottom: 44px; }
.cta-cols {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 300px;
  padding: 22px 40px;
  border-radius: var(--r-m);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: #fff;
  transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.cta-tel:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-3px); }
.cta-tel .cap { font-size: 0.72rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6); }
.cta-tel .num { font-family: var(--en); font-size: 2rem; font-weight: 600; letter-spacing: 0.03em; line-height: 1.2; }
.cta-tel .hrs { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); }
.cta-form { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.cta-form .cap { font-size: 0.72rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 700px) {
  .cta { padding: 76px 0; }
  .cta-cols { flex-direction: column; align-items: center; }
  .cta-tel { width: 100%; max-width: 420px; min-width: 0; }
}

/* ---------- Footer ---------- */
.ft {
  background: #0B1F16;
  color: rgba(255, 255, 255, 0.75);
  padding: 84px 0 0;
  position: relative;
  overflow: hidden;
}
.ft a { text-decoration: none; }
.ft-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
  padding-bottom: 64px;
}
.ft-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.ft-brand p { font-size: 0.84rem; line-height: 2; color: rgba(255, 255, 255, 0.5); }
.ft-contact { margin-top: 26px; }
.ft-contact .num {
  font-family: var(--en);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.ft-contact .cap { font-size: 0.74rem; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }
.ft-contact .mail { font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); margin-top: 8px; display: inline-block; }
.ft-contact .mail:hover { color: #fff; }
.ft-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.ft-nav .col h4 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 18px;
}
.ft-nav .col a {
  display: block;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
  padding: 6px 0;
  transition: color 0.25s, transform 0.3s var(--ease);
}
.ft-nav .col a:hover { color: #fff; transform: translateX(4px); }
/* （旧）フッター英字飾りは廃止 — 互換のため非表示化 */
.ft-giant { display: none !important; }
.ft-btm {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}
.ft-btm a { color: rgba(255, 255, 255, 0.4); }
.ft-btm a:hover { color: #fff; }
@media (max-width: 900px) {
  .ft { padding-top: 60px; }
  .ft-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 44px; }
  .ft-nav { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- Image placeholder (生成待ち画像 / プロンプト表示) ---------- */
.imgp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 240px;
  padding: 28px;
  border-radius: var(--r-l);
  border: 1.5px dashed rgba(23, 101, 70, 0.4);
  background:
    repeating-linear-gradient(45deg, rgba(23, 101, 70, 0.035) 0 14px, transparent 14px 28px),
    #F2F0E8;
  color: var(--ink-soft);
  text-align: center;
  overflow: hidden;
}
.imgp .imgp-tag {
  font-family: var(--en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.imgp .imgp-name { font-size: 0.85rem; font-weight: 700; color: var(--green); }
.imgp .imgp-prompt {
  font-size: 0.74rem;
  line-height: 1.8;
  color: var(--mute);
  max-width: 560px;
}

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th, .tbl td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.tbl thead th {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
}
.tbl tbody th { font-weight: 700; white-space: nowrap; color: var(--ink); }

/* ---------- Forms ---------- */
.fm label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.fm .req {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  background: var(--amber);
  border-radius: 4px;
  padding: 2px 8px;
  vertical-align: 2px;
  letter-spacing: 0.08em;
}
.fm input[type="text"], .fm input[type="email"], .fm input[type="tel"], .fm textarea, .fm select {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fm input:focus, .fm textarea:focus, .fm select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 101, 70, 0.12);
}
.fm .fm-row { margin-bottom: 26px; }

/* ---------- Article typography (blog) ---------- */
.prose {
  font-size: 1rem;
  line-height: 2.15;
  color: var(--ink-2);
}
.prose h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin: 64px 0 24px;
  padding: 14px 0 14px 22px;
  border-left: 3px solid var(--green);
  background: linear-gradient(90deg, rgba(23, 101, 70, 0.06), transparent 70%);
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.prose h4 { font-size: 1.02rem; font-weight: 700; margin: 32px 0 12px; color: var(--green-deep); }
.prose p { margin: 0 0 26px; }
.prose ul, .prose ol { margin: 0 0 26px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--green); font-weight: 600; }
.prose img { border-radius: var(--r-m); margin: 8px 0 26px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0 0 26px; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 12px 14px; }
.prose table th { background: var(--green-pale); font-weight: 700; }
.prose blockquote {
  margin: 0 0 26px;
  padding: 18px 24px;
  border-left: 3px solid var(--gold);
  background: #FBF9F3;
  border-radius: 0 var(--r-s) var(--r-s) 0;
  color: var(--ink-soft);
}
.prose strong { color: var(--green-deep); }

/* ---------- Helpers ---------- */
.tc { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; } .mb-4 { margin-bottom: 64px; }
.rel { position: relative; }
.hide-sp { display: initial; }
.hide-pc { display: none; }
@media (max-width: 767px) {
  .hide-sp { display: none; }
  .hide-pc { display: initial; }
}

/* ---------- Badge chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--green-pale);
  border-radius: 999px;
  padding: 7px 18px;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-brt); }

/* ---------- Number list (flow steps) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }
.step .s-num {
  font-family: var(--en);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--green);
}
.step h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); line-height: 2; }
@media (max-width: 600px) {
  .step { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .step .s-num { font-size: 1.9rem; }
}

/* ============================================================
   Legacy compat layer（ブログ記事の旧クラスを新デザインで描画）
   ============================================================ */
.container-narrow {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section-padding { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 768px) {
  .section-padding { padding-top: 110px; padding-bottom: 110px; }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(125deg, #F2A33C 0%, var(--amber) 45%, var(--amber-2) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-height: 56px;
  padding: 10px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--sh-amber);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  font-size: 1rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(232, 148, 26, 0.4); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-height: 56px;
  padding: 10px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  font-size: 1rem;
}
.btn-secondary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13, 69, 48, 0.28); }
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card img { width: 100%; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-heading p { color: var(--mute); font-size: 0.95rem; }
.heading-accent {
  display: inline-block;
  width: 44px;
  height: 2px;
  background: var(--green);
  margin-bottom: 16px;
  border-radius: 2px;
}
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.25s;
}
.accordion-btn:hover { color: var(--green); }
.accordion-btn::after { content: '＋'; font-size: 1.1rem; color: var(--green); transition: transform 0.3s; }
.accordion-btn.active::after { content: '−'; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.accordion-content p { padding: 0 4px 20px; color: var(--ink-soft); line-height: 2; }
/* 旧 page-hero（ブログ記事2本が使用） */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .overlay { position: absolute; inset: 0; background: rgba(11, 31, 22, 0.45); }
.page-hero h1, .page-hero p {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}
@media (max-width: 767px) {
  .page-hero { height: 210px; }
  .page-hero h1, .page-hero p { font-size: 1.4rem; }
}
/* ブログ記事の見出しを明朝に */
.article-body h2, .article-body h3 {
  font-family: var(--serif);
  letter-spacing: 0.04em;
}
/* 旧 fade-in（site-v2.js が is-on / visible を付与） */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.visible, .fade-in.is-on { opacity: 1; transform: none; }

/* ---------- Phone mock embed（?phonemock=1 で読み込まれた時の表示） ---------- */
html.phonemock { scrollbar-width: none; }
html.phonemock::-webkit-scrollbar { display: none; }
.phonemock .mnav, .phonemock .hr-phone, .phonemock .hr-pc, .phonemock .hr-chip { display: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rv], [data-rv-group] > *, .fade-in {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  [data-rv="clip"] img { transform: none !important; }
  .marq-track { animation: none; }
  .hd { transition: none; }
}

/* ============================================================
   Mobile refinements（全体を一回りコンパクトに / 2026-06）
   ============================================================ */

@media (max-width: 600px) {
  .d1 { font-size: 1.65rem; }
  .d2 { font-size: 1.35rem; line-height: 1.8; }
  .d3 { font-size: 1.1rem; }
  .sec   { padding: 56px 0; }
  .sec-s { padding: 44px 0; }
  .sec-l { padding: 64px 0; }
  .sec-head .d2 + p { font-size: 0.86rem; line-height: 2; }
  .lead { font-size: 0.9rem; line-height: 2; }
  .btn, .btn-ghost, .btn-dark { font-size: 0.92rem; }

  /* 料金の目安テーブル: 縦積みにして価格の見切れを防ぐ（比較表 save-table は除く） */
  .tbl:not(.save-table) tbody th {
    display: block;
    width: 100%;
    white-space: normal;
    padding: 14px 0 2px;
    border-bottom: 0;
  }
  .tbl:not(.save-table) tbody td {
    display: block;
    width: 100%;
    padding: 0 0 14px;
    text-align: left;
    white-space: normal;
  }
}

/* ============================================================
   Mobile: カード群を横スワイプ化（縦の渋滞解消 / 2026-06）
   ============================================================ */
@media (max-width: 700px) {
  .g-3 {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 4px 2px 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .g-3 > * {
    flex: 0 0 78%;
    min-width: 0;
    scroll-snap-align: center;
  }
  /* プランカードはやや広めに */
  .g-3.plans > * { flex-basis: 84%; }
}
