/* ==========================================================
   聞ける産科医 / kikeru-sanka.com
   Design system — editorial, warm, Anthropic-inspired
   ========================================================== */

:root {
  /* Palette — warm cream & ember */
  --ink:          #1f1e1b;
  --ink-soft:     #3a3833;
  --mute:         #6e6a62;
  --line:         #e4dfd3;
  --line-soft:    #efebe1;
  --cream:        #faf7f0;
  --cream-deep:   #f2ede0;
  --paper:        #ffffff;
  --ember:        #cc785c;   /* anthropic-style warm accent */
  --ember-ink:    #8b4a36;
  --ember-soft:   #f4e6df;
  --teal-deep:    #1d3f4a;   /* editorial counterpoint */
  --line-green:   #06c755;   /* LINE brand */
  --line-green-d: #05a344;

  /* Typography */
  --serif-ja: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho",
              "YuMincho", serif;
  --serif-en: "Source Serif Pro", "Iowan Old Style", "Palatino",
              "Times New Roman", serif;
  --sans-ja:  "Hiragino Kaku Gothic ProN", "Hiragino Sans",
              "Noto Sans JP", "Yu Gothic Medium", "YuGothic",
              "Meiryo", sans-serif;
  --sans-en:  "Inter", -apple-system, BlinkMacSystemFont,
              "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(31, 30, 27, 0.04);
  --shadow-sm: 0 2px 8px rgba(31, 30, 27, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 30, 27, 0.08);
  --container:  min(100% - 2rem, 1120px);
  --container-narrow: min(100% - 2rem, 720px);
}

/* ==========================================================
   Reset & base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--sans-ja);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ember-ink);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--ink); text-decoration-color: var(--ink); }

strong { font-weight: 700; }

.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

.sp-only { display: none; }
@media (max-width: 640px) {
  .sp-only { display: inline; }
}

/* Section rhythm */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.kicker {
  font-family: var(--sans-en);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ember-ink);
  margin: 0 0 1rem;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--ember);
  margin: 0 0 1.5rem;
  vertical-align: middle;
}

/* Display headings use serif */
h1, h2, h3, .serif {
  font-family: var(--serif-ja);
  font-weight: 600;
  letter-spacing: .01em;
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--serif-ja);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.logo:hover { color: var(--ember-ink); text-decoration: none; }

.logo-mark {
  display: inline-block;
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  flex-shrink: 0;
}

.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ember-ink); text-decoration: none; }

.nav-cta {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream) !important;
  font-weight: 600;
  font-size: .85rem !important;
}
.nav-cta:hover { background: var(--ember-ink); color: var(--cream) !important; }

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ==========================================================
   Hero — editorial spread
   ========================================================== */
.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 85% 15%, var(--ember-soft) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, var(--cream-deep) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.hero-kicker {
  font-family: var(--sans-en);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--ember-ink);
  font-weight: 600;
  margin: 0;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  letter-spacing: .02em;
}
.hero-title em {
  font-style: normal;
  color: var(--ember-ink);
  font-weight: 600;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--ink-soft);
  margin: 0 auto;
  line-height: 2;
  max-width: 620px;
}

.hero-cta {
  display: grid;
  gap: .6rem;
  max-width: 460px;
  margin: .5rem auto 0;
}

.hero-note {
  margin: 0;
  font-size: .8rem;
  color: var(--mute);
  line-height: 1.7;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .75rem;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .82rem;
  color: var(--ink-soft);
}
.hero-badges li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ember);
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 1.75rem;
  border-radius: 999px;
  font-family: var(--sans-ja);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.4;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  letter-spacing: .02em;
}
.btn:hover { text-decoration: none; }

.btn-block { display: flex; width: 100%; }
.btn-lg    { padding: 1.2rem 2rem; font-size: 1.02rem; }

.btn-line {
  background: var(--line-green);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}
.btn-line:hover {
  background: var(--line-green-d);
  transform: translateY(-2px);
  color: #fff;
}
.btn-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--line-green);
  font-family: var(--sans-en);
  font-weight: 800;
  font-size: .85rem;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--ember-ink); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  padding: .85rem 1.5rem;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* "Coming soon" state — LINE not yet open */
.btn.is-soon {
  background: var(--mute);
  color: var(--cream);
  box-shadow: none;
  cursor: not-allowed;
  position: relative;
}
.btn.is-soon:hover {
  background: var(--mute);
  transform: none;
  color: var(--cream);
  box-shadow: none;
}
.btn.is-soon .btn-line-icon {
  color: var(--mute);
  background: var(--cream);
}
.btn.is-soon::after {
  content: "Coming Soon";
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--ember);
  color: #fff;
  font-size: .68rem;
  font-family: var(--sans-en);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.nav-cta.is-soon {
  background: var(--mute) !important;
  cursor: not-allowed;
}
.nav-cta.is-soon:hover { background: var(--mute) !important; }

.is-soon-link {
  color: var(--mute) !important;
  cursor: not-allowed;
  text-decoration: none !important;
}
.is-soon-link:hover { color: var(--mute) !important; text-decoration: none !important; }

/* ==========================================================
   Section: About (3 columns)
   ========================================================== */
.section-about {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-lead {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
  line-height: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  transition: transform .15s ease, border-color .15s ease;
}
.about-card:hover {
  transform: translateY(-2px);
  border-color: var(--ember);
}

.about-num {
  font-family: var(--serif-en);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ember);
  font-weight: 500;
  margin-bottom: 1rem;
}

.about-card h3 {
  margin: 0 0 .75rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
}
.about-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.95;
  font-family: var(--sans-ja);
}

/* ==========================================================
   Lead magnet — editorial feature block
   ========================================================== */
.section-magnet {
  background: var(--cream-deep);
}

.magnet-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin-inline: auto;
  border: 1px solid var(--line);
  position: relative;
}

.magnet-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  background: var(--ember);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  font-family: var(--sans-en);
}

.magnet-title {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 1rem;
  color: var(--ink);
}

.magnet-lead {
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  font-size: .98rem;
  line-height: 2;
}

.magnet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
}
.magnet-list li {
  padding: 1rem 0 1rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.75;
}
.magnet-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--ember);
  font-weight: 700;
  font-family: var(--serif-en);
}

.magnet-note {
  margin: 1.25rem 0 0;
  font-size: .83rem;
  color: var(--mute);
  text-align: center;
  line-height: 1.75;
}

/* ==========================================================
   Articles
   ========================================================== */
.section-articles { background: var(--cream); }

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .article-list { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.75rem 1.75rem 1.5rem;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--ember);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .75rem;
  color: var(--mute);
  font-family: var(--sans-en);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-part {
  color: var(--ember-ink);
  font-weight: 700;
}
.article-dot { color: var(--line); }

.article-title {
  margin: 0 0 .75rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
  font-family: var(--serif-ja);
}
.article-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--ember), var(--ember));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size .25s ease;
}
.article-title a:hover {
  color: var(--ember-ink);
  background-size: 100% 1px;
}

.article-excerpt {
  margin: 0 0 1.25rem;
  color: var(--mute);
  font-size: .9rem;
  line-height: 1.85;
  flex: 1;
}

.article-read {
  font-family: var(--sans-en);
  font-size: .78rem;
  color: var(--ember-ink);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.article-read::after {
  content: " →";
  transition: margin-left .15s ease;
  display: inline-block;
  margin-left: .25rem;
}
.article-read:hover::after { margin-left: .5rem; }

.section-more { margin-top: 2.5rem; text-align: center; }

/* ==========================================================
   Profile
   ========================================================== */
.section-profile {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  align-items: flex-start;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 720px) {
  .profile-card { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .profile-facts li { text-align: left; }
}

.profile-avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.profile-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-name {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--serif-ja);
}
.profile-tagline {
  display: block;
  font-family: var(--sans-en);
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ember-ink);
  font-weight: 600;
  margin-top: .35rem;
}

.profile-facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: .65rem;
  font-size: .93rem;
  color: var(--ink-soft);
  line-height: 1.85;
}
.profile-facts li {
  padding-left: 1rem;
  position: relative;
}
.profile-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 6px;
  height: 1.5px;
  background: var(--ember);
}
.profile-facts strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: .5rem;
}

.profile-bio {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  line-height: 2;
  font-size: .96rem;
}

.profile-policy {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--ember);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .87rem;
  color: var(--mute);
  line-height: 1.9;
}

/* ==========================================================
   FAQ
   ========================================================== */
.section-faq { background: var(--cream); }

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: .6rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 1.75rem;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--ember); }

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 0;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--serif-ja);
  font-size: 1.02rem;
  position: relative;
  padding-right: 2.5rem;
  line-height: 1.6;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px; height: 14px;
  border-right: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item > p {
  margin: 0;
  padding: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 2;
}

/* ==========================================================
   Final CTA
   ========================================================== */
.section-final {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 10%, rgba(204, 120, 92, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 90%, rgba(204, 120, 92, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.section-final > .container { position: relative; }
.section-final .kicker { color: rgba(244, 230, 223, 0.7); }

.final-inner { max-width: 680px; margin-inline: auto; }

.final-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  color: var(--cream);
  font-family: var(--serif-ja);
}

.final-lead {
  color: rgba(244, 230, 223, 0.85);
  line-height: 2;
  margin: 0 0 2.25rem;
  font-size: 1rem;
}

.final-note {
  margin: 1.25rem 0 0;
  font-size: .83rem;
  color: rgba(244, 230, 223, 0.6);
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--cream);
  color: var(--ink-soft);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.footer-brand .logo { font-size: 1.1rem; }
.footer-tagline {
  margin: 0;
  font-size: .85rem;
  color: var(--mute);
  font-family: var(--sans-en);
  font-style: italic;
  max-width: 26ch;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: .78rem;
  font-family: var(--sans-en);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
}
.footer-col a:hover { color: var(--ember-ink); text-decoration: underline; text-decoration-color: var(--ember); }

.footer-bottom {
  padding-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.footer-disclaimer {
  margin: 0;
  font-size: .82rem;
  color: var(--mute);
  line-height: 1.9;
  max-width: 780px;
}

.footer-copy {
  margin: 0;
  font-size: .78rem;
  color: var(--mute);
  font-family: var(--sans-en);
}

/* ==========================================================
   Accessibility
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================
   Legal pages
   ========================================================== */
.legal-wrap {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: 0 1rem;
}
.legal-wrap h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.legal-wrap h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 .7rem;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--serif-ja);
}
.legal-wrap p,
.legal-wrap li {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 2;
}
.legal-wrap ul { padding-left: 1.5rem; }
.legal-meta {
  color: var(--mute);
  font-size: .85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 3rem;
  font-family: var(--sans-en);
}

/* ==========================================================
   Print
   ========================================================== */
@media print {
  .site-header, .site-footer, .section-final, .hero-cta, .btn { display: none; }
  body { background: #fff; color: #000; }
}
