/* ==========================================================================
   Torii Health — Home page (index.html)
   Load order: base.css -> styles.css -> site.css -> home.css
   共通部品（見出し・ボタン・カード・Kit フォーム等）は site.css。ここはトップ専用。
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--th-ink);
  color: #fff;
}
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  /* 富士山・鳥居・人物（画像の右〜下）を優先して残す */
  object-position: 75% 100%;
}
/* Keeps the copy side dark enough for AA contrast over the daytime photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15,37,71,0.95) 0%, rgba(15,37,71,0.86) 38%, rgba(15,37,71,0.45) 52%, rgba(15,37,71,0) 66%);
}
.hero__inner {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(72px, 10vw, 132px);
}
.hero__content { max-width: 600px; }
.hero .th-eyebrow { color: #fff; opacity: 0.9; }
.hero .th-eyebrow span { color: rgba(255,255,255,0.55); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero__lead {
  font-family: var(--th-font-display);
  font-weight: 700;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.4;
  margin-bottom: 14px;
}
.hero__text {
  color: #d5deec;
  font-size: 1.02rem;
  max-width: 34em;
  margin-bottom: 30px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #c3cfe2;
}
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; flex: none; stroke: #fff; }

.hero__eyebrow b { font-weight: inherit; white-space: nowrap; }

/* Mobile/tablet: the photo becomes a scenic band under the copy (Fuji + torii + people visible) */
@media (max-width: 1023px) {
  .hero { --band: clamp(250px, 50vw, 420px); }
  .hero__art {
    top: auto; height: var(--band); object-position: 80% 100%;
    /* 写真の上端を紺になじませる（明るい空との境目が線に見えないように） */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%);
    mask-image: linear-gradient(180deg, transparent 0, #000 45%);
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(15,37,71,1) 0%, rgba(15,37,71,1) calc(100% - var(--band) - 40px), rgba(15,37,71,0.2) calc(100% - var(--band) * 0.55), rgba(15,37,71,0) 100%);
  }
  .hero__inner { padding-top: 48px; padding-bottom: calc(var(--band) - 20px); }
}
@media (max-width: 759px) {
  .hero__inner { padding-top: 44px; }
  .hero .th-btns .th-btn { flex: 1 1 100%; text-align: center; }
  .hero__eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; }
}

/* --------------------------------------------------------------------------
   Three pillars (directly under the hero, as in the D1 mock)
   -------------------------------------------------------------------------- */
.pillars { background: #fff; border-bottom: 1px solid var(--th-border); }
.pillars__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}
.pillar {
  text-align: center;
  padding: 40px 12px;
}
.pillar + .pillar { border-top: 1px solid var(--th-border); }
@media (max-width: 759px) {
  .pillar {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    align-items: start;
    text-align: left;
    padding: 26px 0;
  }
  .pillar__icon { width: 56px; height: 56px; margin: 0; grid-row: span 2; }
  .pillar__icon svg { width: 30px; height: 30px; }
  .pillar h3 { margin-bottom: 4px; }
  .pillars .pillar p { margin: 0; max-width: none; }
}
@media (min-width: 760px) {
  .pillars__list { grid-template-columns: repeat(3, 1fr); }
  .pillar { padding: 48px 28px; }
  .pillar + .pillar { border-top: 0; border-left: 1px solid var(--th-border); }
}
.pillar__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--th-navy);
}
.pillar:nth-child(2) .pillar__icon { background: #2a64b8; }
.pillar__icon svg { width: 38px; height: 38px; stroke: #fff; }
.pillar h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.pillar p { color: var(--th-text-muted); max-width: 22em; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote svg { width: 44px; height: 44px; fill: var(--th-red); margin: 0 auto 18px; display: block; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--th-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  color: var(--th-navy);
}
.quote figcaption {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--th-text-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Why patients choose Torii Health
   -------------------------------------------------------------------------- */
.reasons {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) { .reasons { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.reason {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--th-border);
  border-top: 4px solid var(--th-navy);
  border-radius: 10px;
  padding: 26px 24px;
}
.reason__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--th-navy-tint);
}
.reason__icon svg { width: 24px; height: 24px; stroke: var(--th-navy); }
.reason h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.reason p { color: var(--th-text-muted); }
.reason a { color: var(--th-navy); font-weight: 700; }
.reason a:hover { color: var(--th-red); }

/* --------------------------------------------------------------------------
   Mission band
   -------------------------------------------------------------------------- */
.mission {
  background: var(--th-ink);
  color: #fff;
  text-align: center;
  border-top: 4px solid var(--th-red);
}
.mission .th-eyebrow { color: #fff; }
.mission .th-eyebrow { font-size: 0.85rem; margin-bottom: 18px; }
.mission__statement {
  font-family: var(--th-font-display);
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  max-width: 24em;
  margin: 0 auto 22px;
}
.mission__pillars {
  font-family: var(--th-font-display);
  font-weight: 700;
  color: #c3cfe2;
  font-size: 1.02rem;
  margin-bottom: 34px;
}
.mission__pillars b { font-weight: inherit; white-space: nowrap; }
.mission__pillars b + b::before { content: "·"; color: rgba(255,255,255,0.55); padding: 0 0.5em 0 0.2em; }
.mission .th-btns { justify-content: center; }

/* --------------------------------------------------------------------------
   Mailing list layout (Kit form styles are in site.css)
   -------------------------------------------------------------------------- */
.newsletter {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 860px) { .newsletter { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.newsletter h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.newsletter p { color: var(--th-text-muted); }
.newsletter__fields { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter__field { flex: 1 1 180px; }
.newsletter__fields .th-btn { flex: 0 0 auto; font-size: 0.95rem; padding: 13px 28px; }
.newsletter__note { margin-top: 10px; font-size: 0.82rem; color: var(--th-text-muted); }
.newsletter__note a { color: inherit; font-weight: inherit; }
@media (max-width: 559px) { .newsletter__fields .th-btn { flex: 1 1 100%; } }
