/* AHQS トップLP v2 ── 「暗記じゃない。つながりの学問だ。」
   design.mdの規律(余白・980px・抑制されたモーション) × 紙とインクの温度 */
:root {
  --paper: #faf7f1;
  --paper-deep: #f2ecdf;
  --ink: #26221c;
  --ink-soft: #6b6459;
  --coral: #c0603a;
  --coral-h: #a94f2b;
  --gold: #b89b5e;
  --line: #e5dfd2;
  --dark: #171310;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 2.0;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
.serif { font-family: var(--serif); }

/* fade-up */
.fx { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fx.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fx { opacity: 1; transform: none; transition: none; } }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 980px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 54px;
}
.nav-logo { font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: 0.26em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 13px; color: var(--ink); text-decoration: none; opacity: 0.75; }
.nav-links a:hover { opacity: 1; color: var(--coral); }
.nav-cta {
  background: var(--coral); color: #fff !important; opacity: 1 !important;
  border-radius: 980px; padding: 5px 16px; font-weight: 500;
}
.nav-cta:hover { background: var(--coral-h); }

/* hero */
.hero { text-align: center; padding: clamp(76px, 13vh, 140px) 0 clamp(60px, 9vh, 100px); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.hero-sub { margin-top: 30px; font-size: clamp(14.5px, 2vw, 16.5px); color: var(--ink-soft); line-height: 2.2; }
.hero-name { margin-top: 36px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.hero-name span { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; letter-spacing: 0.1em; }

/* empathy */
.empathy { padding: clamp(56px, 9vh, 100px) 0; }
.empathy h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}
.empathy p { margin-bottom: 1.4em; text-align: justify; }
.pull {
  margin: 2.2em 0;
  padding: 28px 30px;
  background: #fffdf8;
  border-left: 5px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
.pull p {
  font-family: var(--serif);
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 600;
  line-height: 2.1;
  margin: 0;
  text-align: left;
}
.pull em { font-style: normal; color: var(--coral); }
.pull cite { display: block; margin-top: 14px; font-style: normal; font-size: 12.5px; color: var(--ink-soft); text-align: right; letter-spacing: 0.1em; }

/* sections */
section h2.serif {
  text-align: center;
  font-size: clamp(24px, 3.8vw, 36px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-bottom: 36px;
}
.sec-lead { text-align: center; margin: -22px 0 40px; font-size: 14.5px; color: var(--ink-soft); }

/* learn cards */
.learn { padding: clamp(56px, 9vh, 110px) 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(38, 34, 28, 0.12); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--gold); }
.card-body h3 { font-family: var(--serif); font-size: 17.5px; font-weight: 600; line-height: 1.6; }
.desc { font-size: 13px; color: var(--ink-soft); line-height: 1.95; }
.more { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--coral); }
.more::after { content: " ›"; }
.card:hover .more, .feature:hover .more { text-decoration: underline; text-underline-offset: 4px; }

/* voices */
.voices { padding: clamp(56px, 9vh, 110px) 0; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.voice {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px 22px;
  position: relative;
}
.voice::before {
  content: "“";
  position: absolute; top: 2px; left: 16px;
  font-family: var(--serif);
  font-size: 54px; line-height: 1;
  color: var(--gold); opacity: 0.55;
}
.voice blockquote { font-size: 14px; line-height: 2.05; text-align: justify; }
.voice figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-soft); text-align: right; letter-spacing: 0.06em; }
.voice figcaption::before { content: "── "; }

/* feature (つくる) */
.make { padding: 0 0 clamp(56px, 9vh, 110px); }
.feature {
  display: grid; grid-template-columns: 1fr 1.25fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(38, 34, 28, 0.12); }
.feature-media { overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.feature-body h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; }

/* clinic（ダーク見せ場） */
.clinic { background: var(--dark); color: #efe9df; padding: clamp(64px, 11vh, 130px) 0; }
.clinic h2.serif { text-align: left; color: #fff; margin-bottom: 24px; }
.clinic-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: center; }
.clinic-body { font-size: 14.5px; color: #beb6a8; line-height: 2.15; text-align: justify; }
.clinic-links { list-style: none; margin-top: 30px; }
.clinic-links li { border-top: 1px solid #383129; }
.clinic-links li:last-child { border-bottom: 1px solid #383129; }
.clinic-links a {
  display: grid; grid-template-columns: 128px 1fr;
  gap: 14px; align-items: baseline;
  padding: 16px 4px;
  text-decoration: none; color: inherit;
  transition: background 0.25s;
}
.clinic-links a:hover { background: rgba(255, 255, 255, 0.05); }
.clinic-links strong { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.clinic-links span { font-size: 12.5px; color: #98907f; line-height: 1.9; }
.clinic-links a:hover strong { color: var(--gold); }
.clinic-photo { border-radius: 16px; overflow: hidden; border: 1px solid #383129; }

/* closing CTA */
.closing { padding: clamp(64px, 11vh, 120px) 0 clamp(40px, 6vh, 70px); }
.closing-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.closing-quote {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.closing-lead { margin-top: 20px; font-size: 15.5px; color: var(--ink-soft); }
.closing .pill {
  display: inline-block;
  margin-top: 26px;
  background: var(--coral); color: #fff;
  border-radius: 980px;
  padding: 15px 32px;
  font-size: 16.5px; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.closing .pill:hover { background: var(--coral-h); }
.closing-sub { margin-top: 30px; font-size: 13px; }
.closing-sub a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px dashed var(--gold); padding-bottom: 2px; }
.closing-sub a:hover { color: var(--coral); }
.closing-illust { display: flex; justify-content: center; }
.closing-illust img { width: min(230px, 60%); height: auto; filter: drop-shadow(0 8px 22px rgba(38, 34, 28, 0.14)); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; text-align: center; }
.fnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; }
.fnav a { font-size: 12px; color: var(--ink-soft); text-decoration: none; }
.fnav a:hover { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.sns { margin-bottom: 14px; }
.sns a { font-size: 12px; letter-spacing: 0.14em; color: var(--ink-soft); text-decoration: none; margin: 0 12px; }
.sns a:hover { color: var(--coral); }
.fine { font-size: 11px; color: var(--ink-soft); line-height: 2; letter-spacing: 0.08em; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .clinic-grid { grid-template-columns: 1fr; gap: 36px; }
  .clinic-links a { grid-template-columns: 1fr; gap: 4px; }
  .closing-grid { grid-template-columns: 1fr; text-align: center; }
  .closing-quote br { display: none; }
  .closing-illust { order: -1; }
  .closing-illust img { width: 150px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
  .pull { padding: 22px 20px; }
}
