/* ========================
   ピアノの森 町田・玉川学園教室 — shared styles
======================== */
:root {
  --forest:      #2c5446;
  --forest-2:    #3b6b59;
  --forest-deep: #1d3a30;
  --sage:        #bcc7b2;
  --sage-pale:   #eef1e8;
  --cream:       #fbf8f3;
  --paper:       #f5efe6;
  --white:       #fffefb;
  --rose:        #c4857a;
  --rose-deep:   #a85f54;
  --blush:       #f4e4dd;

  --ink:         #2a2b28;
  --ink-2:       #5a5d55;
  --ink-3:       #8a8d84;
  --line:        #e4ddd0;

  --ja:      'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --ja-head: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --en:      'Cormorant Garamond', Georgia, serif;

  --max-w: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-v: clamp(4rem, 9vw, 7rem);
  --radius: 20px;
  --shadow: 0 18px 40px -24px rgba(29, 58, 48, .35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  font-family: var(--ja);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--cream);
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.nowrap { display: inline-block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: .6rem 1rem;
  background: var(--forest); color: #fff; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

/* ========================
   Header
======================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-deep); flex: none; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--ja-head); font-weight: 800; font-size: 1.25rem; letter-spacing: .08em; }
.brand-sub { font-size: .68rem; letter-spacing: .14em; color: var(--ink-2); }

.nav ul { display: flex; align-items: center; gap: 1.3rem; }
.nav a {
  font-size: .88rem; font-weight: 500; letter-spacing: .08em;
  text-decoration: none; color: var(--ink-2); transition: color .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1.5px; text-decoration-color: var(--rose); }
.nav .nav-cta {
  display: inline-block; padding: .6rem 1.25rem; border-radius: 999px;
  background: var(--rose-deep); color: #fff; font-weight: 700;
}
.nav .nav-cta:hover { background: var(--forest); color: #fff; }
.nav .nav-cta[aria-current="page"] { text-decoration: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--forest);
  transition: transform .3s, opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .nav-open .nav { max-height: 100vh; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav a { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav .nav-cta { text-align: center; padding: .9rem 1rem; }
}

/* ========================
   Buttons
======================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.8rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--ja); font-size: 1rem; font-weight: 700; letter-spacing: .08em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  line-height: 1.4; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rose-deep); color: #fff; }
.btn-primary:hover { background: var(--forest); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-deep); }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-light { background: #fff; color: var(--forest-deep); }
.btn-light:hover { background: var(--blush); }
.btn-line img { height: 52px; width: auto; border-radius: 8px; }
.btn-line { padding: 0; border: 0; background: none; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem 1rem; align-items: center; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ========================
   Section primitives
======================== */
.section { padding: var(--section-v) 0; }
.section-alt { background: var(--sage-pale); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--forest-deep); color: #f3efe6; }

.eyebrow {
  font-family: var(--en); font-style: italic; font-weight: 500; font-size: 1.15rem;
  letter-spacing: .14em; color: var(--rose-deep); line-height: 1.2; margin-bottom: .6rem;
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: #e9b9ad; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.h2 {
  font-family: var(--ja-head); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.5; letter-spacing: .06em; color: var(--forest-deep);
}
.section-dark .h2 { color: #fff; }
.h3 { font-family: var(--ja-head); font-weight: 700; font-size: 1.3rem; line-height: 1.6; letter-spacing: .05em; color: var(--forest-deep); }
.lead { color: var(--ink-2); font-size: 1.05rem; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.center { text-align: center; }
.section-head.center .lead { max-width: 640px; margin: 1rem auto 0; }
.section-head .lead { margin-top: 1rem; }
.more { margin-top: 2rem; }

/* ========================
   Page hero (subpages)
======================== */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(900px 300px at 90% 0%, var(--blush) 0%, transparent 70%),
    var(--sage-pale);
  border-bottom: 1px solid var(--line);
}
.page-hero .h1 {
  font-family: var(--ja-head); font-weight: 800; font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  line-height: 1.5; letter-spacing: .06em; color: var(--forest-deep);
}
.page-hero p.lead { margin-top: 1rem; max-width: 640px; }
.crumbs { font-size: .78rem; color: var(--ink-3); margin-bottom: 1.4rem; letter-spacing: .06em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; }

/* ========================
   Home hero
======================== */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  right: -180px; top: -200px; background: var(--blush); opacity: .8; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  left: -160px; bottom: -220px; background: var(--sage-pale); z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.hero-kicker {
  font-family: var(--en); font-style: italic; font-size: 1.1rem; letter-spacing: .16em;
  color: var(--rose-deep); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--ja-head); font-weight: 800; letter-spacing: .06em; line-height: 1.55;
  font-size: clamp(1.75rem, 4.4vw, 3rem); color: var(--forest-deep);
}
.hero-title em { font-style: normal; color: var(--rose-deep); }
.hero-lead { margin-top: 1.4rem; color: var(--ink-2); font-size: 1.05rem; max-width: 34em; }
.hero-actions { margin-top: 2rem; }
.hero-badges { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.badge {
  display: inline-flex; align-items: center; padding: .3rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 500; color: var(--forest); letter-spacing: .06em;
}
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow);
  aspect-ratio: 1000 / 788; object-fit: cover;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 28px;
  border: 1.5px solid var(--rose); opacity: .5; z-index: -1;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; }
  .hero-visual::before { display: none; }
}

/* ========================
   Worries / intro
======================== */
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.worry {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; font-family: var(--ja-head); font-weight: 600; line-height: 1.8;
  color: var(--forest-deep); position: relative;
}
.worry::before {
  content: "“"; position: absolute; top: -.2rem; left: 1rem; font-family: var(--en);
  font-size: 3.4rem; color: var(--rose); line-height: 1; opacity: .7;
}
.worry span { display: block; padding-top: 1.1rem; }
@media (max-width: 760px) { .worries { grid-template-columns: 1fr; } }

/* ========================
   Features
======================== */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; position: relative;
}
.feature-num { font-family: var(--en); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--rose); }
.feature h3 { margin: .6rem 0 .8rem; }
.feature p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* long feature rows (lesson page) */
.feature-row { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; padding-top: 0; }
.feature-row .feature-num { font-size: 4.6rem; }
.feature-row p { color: var(--ink-2); margin-top: 1rem; }
@media (max-width: 640px) { .feature-row { grid-template-columns: 1fr; gap: .5rem; } .feature-row .feature-num { font-size: 3.2rem; } }

/* ========================
   Teacher
======================== */
.teacher { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.teacher-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border-radius: 999px 999px 24px 24px; box-shadow: var(--shadow);
}
.teacher-name { font-family: var(--ja-head); font-weight: 800; font-size: 1.8rem; letter-spacing: .1em; color: var(--forest-deep); line-height: 1.4; }
.teacher-name small { display: block; font-family: var(--en); font-style: italic; font-weight: 500; font-size: 1.05rem; letter-spacing: .12em; color: var(--rose-deep); margin-top: .2rem; }
.teacher-role { color: var(--ink-2); margin: .8rem 0 1.2rem; }
.teacher-body p + p { margin-top: 1rem; }
.career { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.career li { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
@media (max-width: 800px) {
  .teacher { grid-template-columns: 1fr; }
  .teacher-photo { max-width: 300px; margin: 0 auto; }
}

.figure-wide { margin-top: 2.5rem; }
.figure-wide img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 520px; height: auto; }
.figure-wide figcaption { font-size: .85rem; color: var(--ink-3); margin-top: .7rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 1.4rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.message-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); }
.message-box p + p { margin-top: 1rem; }
.message-box p { color: var(--ink-2); }

/* ========================
   Plans
======================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; display: flex; flex-direction: column; position: relative;
}
.plan.is-main { border-color: var(--forest); box-shadow: var(--shadow); }
.plan-tag {
  position: absolute; top: -.8rem; left: 1.5rem; background: var(--forest); color: #fff;
  font-size: .72rem; padding: .2rem .8rem; border-radius: 999px; letter-spacing: .1em;
}
.plan-name { font-family: var(--ja-head); font-weight: 700; font-size: 1.25rem; color: var(--forest-deep); letter-spacing: .08em; }
.plan-price { margin: 1rem 0 .4rem; font-family: var(--ja-head); color: var(--forest-deep); line-height: 1.2; }
.plan-price .yen { font-size: 1.1rem; margin-right: .1em; }
.plan-price .num { font-size: 2.6rem; font-weight: 800; letter-spacing: .02em; }
.plan-price .unit { display: block; font-size: .85rem; color: var(--ink-2); margin-top: .35rem; font-family: var(--ja); letter-spacing: .04em; }
.plan-meta { font-size: .85rem; color: var(--rose-deep); font-weight: 700; letter-spacing: .06em; margin-bottom: 1rem; }
.plan-desc { color: var(--ink-2); font-size: .94rem; }
.plan-points { margin: 1.2rem 0; display: grid; gap: .5rem; }
.plan-points li { padding-left: 1.6rem; position: relative; font-size: .92rem; }
.plan-points li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: .5rem;
  border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg) translateY(-30%);
}
.plan-examples { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--ink-2); }
.plan-examples dt { font-weight: 700; color: var(--forest); margin-bottom: .3rem; }
.plan-examples dd { display: flex; justify-content: space-between; padding: .15rem 0; }
.plan-note { margin-top: 1.6rem; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.price-table { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .95rem; }
.price-table th, .price-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { font-weight: 500; color: var(--ink-2); }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--forest-deep); white-space: nowrap; }

/* ========================
   Steps
======================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--en); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--rose);
  display: block; margin-bottom: .6rem;
}
.step h3 { font-family: var(--ja-head); font-size: 1.1rem; color: var(--forest-deep); margin-bottom: .5rem; letter-spacing: .06em; }
.step p { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ========================
   CTA band
======================== */
.cta-band { background: var(--forest-deep); color: #f3efe6; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -240px; background: var(--forest); opacity: .6; }
.cta-band .wrap { position: relative; }
.cta-band h2 { font-family: var(--ja-head); font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.6; letter-spacing: .06em; color: #fff; }
.cta-band p { margin-top: .9rem; color: #cdd8cf; max-width: 36em; }
.cta-band .btn-row { margin-top: 1.8rem; }
.cta-band .btn-ghost { border-color: #cdd8cf; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--forest-deep); }

/* ========================
   Contact blocks
======================== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.contact-card h3 { font-family: var(--ja-head); font-size: 1.15rem; color: var(--forest-deep); letter-spacing: .06em; }
.contact-card p { font-size: .92rem; color: var(--ink-2); }
.contact-card .btn { margin-top: auto; }
.mail-address {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin: 1rem 0;
  padding: 1rem 1.2rem; background: var(--paper); border-radius: 14px;
}
.mail-address code { font-family: var(--ja); font-size: 1.05rem; font-weight: 700; color: var(--forest-deep); word-break: break-all; }
.copy-btn {
  border: 1px solid var(--forest); background: transparent; color: var(--forest);
  border-radius: 999px; padding: .3rem .9rem; font-size: .82rem; cursor: pointer; font-family: var(--ja);
}
.copy-btn:hover { background: var(--forest); color: #fff; }
.form-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); }
.form-box p + p { margin-top: .9rem; }
.checklist { display: grid; gap: .5rem; margin: 1rem 0; }
.checklist li { padding-left: 1.4rem; position: relative; font-size: .95rem; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.note-box { border-left: 3px solid var(--rose); background: var(--blush); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ========================
   FAQ
======================== */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3.4rem 1.2rem 1.4rem; position: relative;
  font-family: var(--ja-head); font-weight: 700; color: var(--forest-deep); letter-spacing: .04em; line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--en); font-style: italic; color: var(--rose-deep); margin-right: .7rem; font-size: 1.2rem; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 1.4rem 1.4rem 3.05rem; color: var(--ink-2); font-size: .96rem; }
.faq .answer p + p { margin-top: .7rem; }
.faq .answer a { color: var(--forest); }

/* ========================
   Access
======================== */
.access { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-list { display: grid; gap: 0; }
.info-list div { display: grid; grid-template-columns: 6.5em 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list div:first-child { border-top: 1px solid var(--line); }
.info-list dt { font-weight: 700; color: var(--forest); font-size: .9rem; letter-spacing: .08em; }
.info-list dd { color: var(--ink-2); font-size: .95rem; }
.info-list dd a { color: var(--forest); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sage-pale); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* ========================
   Blog
======================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card a { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.post-thumb { aspect-ratio: 3 / 2; background: var(--sage-pale); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--sage-pale), var(--blush)); }
.post-thumb.is-empty svg { width: 44px; height: 44px; opacity: .5; }
.post-body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; font-size: .78rem; color: var(--ink-3); letter-spacing: .06em; }
.tag { display: inline-block; padding: .05rem .7rem; border-radius: 999px; background: var(--sage-pale); color: var(--forest); font-size: .74rem; text-decoration: none; border: 1px solid transparent; }
a.tag:hover { border-color: var(--forest); }
.post-title { font-family: var(--ja-head); font-weight: 700; font-size: 1.05rem; line-height: 1.65; color: var(--forest-deep); letter-spacing: .04em; }
.post-excerpt { font-size: .86rem; color: var(--ink-2); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.tag-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.tag-filter a { padding: .4rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: .86rem; color: var(--ink-2); }
.tag-filter a:hover, .tag-filter a[aria-current="page"] { background: var(--forest); color: #fff; border-color: var(--forest); }

.pager { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: .9rem; color: var(--ink-2); }
.pager a:hover { border-color: var(--forest); color: var(--forest); }
.pager .is-current { background: var(--forest); color: #fff; border-color: var(--forest); }

.article-head { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.article-head .post-meta { justify-content: center; margin-bottom: 1.2rem; font-size: .84rem; }
.article-title { font-family: var(--ja-head); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.6; letter-spacing: .05em; color: var(--forest-deep); }
.article-eyecatch { margin: 0 auto 2.5rem; max-width: 820px; }
.article-eyecatch img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.legacy-note { margin: 0 auto 2rem; max-width: 760px; }

.prose { font-size: 1.02rem; line-height: 2.05; color: var(--ink); }
.prose > * + * { margin-top: 1.4em; }
.prose h2, .prose h3 { font-family: var(--ja-head); color: var(--forest-deep); line-height: 1.6; letter-spacing: .05em; margin-top: 2.4em; }
.prose h2 { font-size: 1.45rem; padding-bottom: .4em; border-bottom: 2px solid var(--blush); }
.prose h3 { font-size: 1.2rem; }
.prose a { color: var(--forest); text-underline-offset: 3px; }
.prose img { width: 100%; height: auto; border-radius: 14px; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose blockquote { border-left: 3px solid var(--rose); padding: .4em 1.2em; color: var(--ink-2); background: var(--paper); border-radius: 0 12px 12px 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.post-nav a { display: block; padding: 1.1rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-size: .88rem; line-height: 1.7; }
.post-nav a:hover { border-color: var(--forest); }
.post-nav small { display: block; font-family: var(--en); font-style: italic; letter-spacing: .12em; color: var(--rose-deep); font-size: .95rem; }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ========================
   Footer
======================== */
.site-footer { background: var(--forest-deep); color: #d6dfd6; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-sub { color: #b4c3b8; }
.footer-brand address { font-style: normal; font-size: .88rem; margin-top: 1.2rem; line-height: 1.9; color: #b4c3b8; }
.footer-brand address a { color: #fff; }
.footer-title { font-family: var(--en); font-style: italic; letter-spacing: .14em; font-size: 1.05rem; color: #e9b9ad; margin-bottom: .8rem; }
.footer-nav ul { display: grid; gap: .5rem; }
.footer-nav a { text-decoration: none; font-size: .9rem; color: #d6dfd6; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-line img { height: 44px; width: auto; border-radius: 6px; margin-top: 1rem; }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: #93a598; letter-spacing: .08em; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--cream) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .sticky-cta a { padding: .75rem .5rem; font-size: .9rem; letter-spacing: .04em; }
  .sticky-cta .line { background: #06c755; color: #fff; }
  body { padding-bottom: 68px; }
}

/* ========================
   404
======================== */
.notfound { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.notfound .big { font-family: var(--en); font-style: italic; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--rose); }

/* ========================
   Reveal
======================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .post-card:hover { transform: none; }
}

/* ========================
   Article CTA / landing pages
======================== */
.article-cta { margin-top: 3.5rem; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--radius); background: var(--sage-pale); border: 1px solid var(--line); }
.article-cta .eyebrow { margin-bottom: .4rem; }
.article-cta p { color: var(--ink-2); margin: .6rem 0 1.2rem; }
.article-cta .btn-row { margin-bottom: 1.2rem; }
.article-cta .article-cta-links { margin: 0; font-size: .88rem; }
.article-cta .article-cta-links a { color: var(--forest); }

.lp-body { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.lp-body > section > * + * { margin-top: 1.1rem; }
.lp-body p { color: var(--ink-2); }
.lp-body p strong { color: var(--forest-deep); }
.lp-body a { color: var(--forest); }
.lp-list { display: grid; gap: .7rem; margin: 1.2rem 0; }
.lp-list li { padding: 1rem 1.2rem 1rem 3rem; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); }
.lp-list li::before { content: ""; position: absolute; left: 1.2rem; top: 1.45rem; width: .9rem; height: .5rem; border-left: 2px solid var(--rose-deep); border-bottom: 2px solid var(--rose-deep); transform: rotate(-45deg); }
.lp-list li strong { color: var(--forest-deep); }
.lp-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.lp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.lp-card h3 { font-family: var(--ja-head); font-size: 1.1rem; color: var(--forest-deep); letter-spacing: .05em; margin-bottom: .5rem; }
.lp-card p { font-size: .94rem; }
@media (max-width: 760px) { .lp-cols { grid-template-columns: 1fr; } }

.purpose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.purpose { display: flex; flex-direction: column; gap: .5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.purpose:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--forest); }
.purpose .purpose-en { font-family: var(--en); font-style: italic; color: var(--rose-deep); letter-spacing: .12em; font-size: 1rem; }
.purpose h3 { font-family: var(--ja-head); font-size: 1.15rem; color: var(--forest-deep); line-height: 1.6; letter-spacing: .05em; }
.purpose p { font-size: .88rem; color: var(--ink-2); line-height: 1.8; }
.purpose .purpose-go { margin-top: auto; padding-top: .5rem; font-size: .85rem; color: var(--forest); font-weight: 700; letter-spacing: .06em; }
@media (max-width: 960px) { .purpose-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .purpose-grid { grid-template-columns: 1fr; } }
