/**
 * Gantomo LP — レイアウト・タイポグラフィ（index.html 専用）
 */
:root {
  --bg: #fffaf5;
  --bg-soft: #fff3e8;
  --bg-dark: #3d2a1a;
  --ink: #4a3f35;
  --ink-muted: #6b5f54;
  --ink-light: #8a7d70;
  --accent: #e8882e;
  --accent-hover: #c45c2a;
  --accent-soft: #ffe8d6;
  --accent-glow: rgba(232, 136, 46, 0.18);
  --warm: #b8956a;
  --warm-soft: #f5ede3;
  --lavender: #7a6f96;
  --lavender-soft: #f0ecf5;
  --line: rgba(26, 24, 22, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(26, 24, 22, 0.07);
  --shadow-lg: 0 24px 64px rgba(26, 24, 22, 0.1);
  --max: 72rem;
  --section-y: clamp(3rem, 7vw, 5rem);
  --scroll-offset: 7.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: none;
}

.site-header .gantomo-crossnav {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, #6a9f82 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  font-family: "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem) 1.25rem 0;
  min-height: min(68vh, 640px);
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(122, 111, 150, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(184, 149, 106, 0.1) 0%, transparent 45%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, transparent 72%);
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  align-content: center;
  padding-bottom: 1.5rem;
}

.hero-copy {
  max-width: 38rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  color: var(--ink-muted);
  line-height: 1.95;
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-login-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 34rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  color: var(--accent-hover);
  background: #fff;
  border: 1.5px solid rgba(74, 124, 98, 0.35);
}

.btn-ghost {
  color: var(--ink-muted);
  background: transparent;
  border: 1.5px solid var(--line);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 0.98rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.network {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
}

.network-ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(74, 124, 98, 0.22);
  border-radius: 50%;
  animation: lp-spin 80s linear infinite;
}

.network-ring:nth-child(2) {
  inset: 22%;
  animation-direction: reverse;
  animation-duration: 60s;
}

.network-ring:nth-child(3) {
  inset: 36%;
  animation-duration: 100s;
}

@keyframes lp-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-ring {
    animation: none;
  }
}

.network-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent) 0%, #6a9f82 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.network-node {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.3;
  padding: 0.35rem;
}

.network-node svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  margin-bottom: 2px;
}

.network-node--patient {
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.network-node--patient svg {
  stroke: var(--accent);
}

.network-node--family {
  bottom: 18%;
  left: 2%;
}

.network-node--family svg {
  stroke: var(--warm);
}

.network-node--memorial {
  bottom: 18%;
  right: 2%;
}

.network-node--memorial svg {
  stroke: var(--lavender);
}

.network-node--forum {
  top: 38%;
  right: -2%;
}

.network-node--forum svg {
  stroke: var(--accent);
}

.network-node--chat {
  top: 38%;
  left: -2%;
}

.network-node--chat svg {
  stroke: var(--warm);
}

/* --- Stats --- */
.stats {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: -1.5rem auto 0;
  padding: 0 1.25rem;
  width: 100%;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stat {
  background: #fff;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 1rem;
  text-align: center;
}

.stat-value {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.76rem;
  color: var(--ink-light);
  line-height: 1.55;
}

/* --- Sections --- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) 1.25rem;
  scroll-margin-top: var(--scroll-offset);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.section-head .eyebrow {
  justify-content: center;
}

/* Platform cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--accent));
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.platform-card--news {
  --card-accent: var(--warm);
}

.platform-card--forum {
  --card-accent: var(--accent);
}

.platform-card--chat {
  --card-accent: var(--lavender);
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  background: var(--icon-bg, var(--accent-soft));
}

.platform-card--news .platform-icon {
  --icon-bg: var(--warm-soft);
}

.platform-card--chat .platform-icon {
  --icon-bg: var(--lavender-soft);
}

.platform-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--card-accent, var(--accent));
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.platform-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.45rem;
}

.platform-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.platform-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.85;
  flex: 1;
}

.platform-card .btn {
  margin-top: 1.35rem;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.6rem 1.15rem;
}

.platform-card--soon .btn {
  opacity: 0.5;
  pointer-events: none;
}

/* Audience */
.audience-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-band .section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.audience-card {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem) 1.35rem;
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.audience-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-card:nth-child(1) .audience-icon {
  background: var(--accent-soft);
}

.audience-card:nth-child(2) .audience-icon {
  background: var(--warm-soft);
}

.audience-card:nth-child(3) .audience-icon {
  background: var(--lavender-soft);
}

.audience-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.audience-card:nth-child(1) .audience-icon svg {
  stroke: var(--accent);
}

.audience-card:nth-child(2) .audience-icon svg {
  stroke: var(--warm);
}

.audience-card:nth-child(3) .audience-icon svg {
  stroke: var(--lavender);
}

.audience-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

/* Message */
.message-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.message-side {
  position: sticky;
  top: calc(var(--scroll-offset) + 0.5rem);
}

.message-side blockquote {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.85;
  color: var(--accent-hover);
  border-left: 3px solid var(--accent);
  padding-left: 1.15rem;
}

.message-body {
  max-width: 42rem;
}

.message-body p {
  color: var(--ink-muted);
  line-height: 1.9;
  margin-bottom: 1.15rem;
  text-align: left;
}

.message-body p:last-child {
  margin-bottom: 0;
}

.message-body strong {
  color: var(--ink);
}

/* Trust */
.trust-section {
  padding-top: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.trust-item {
  display: flex;
  gap: 0.9rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.trust-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
}

.trust-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.trust-item p {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a3d32 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(74, 124, 98, 0.4) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  max-width: 38rem;
  margin: 0 auto;
}

.cta-band h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.cta-band p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.cta-band .hero-actions {
  justify-content: center;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--bg-dark);
}

.cta-band .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.cta-band .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}

.disclaimer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  font-size: 0.78rem;
  color: var(--ink-light);
  text-align: center;
  line-height: 1.7;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-light);
}

footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

footer .footer-crossnav {
  background: transparent;
  border-bottom: none;
  min-height: auto;
  padding: 0;
}

footer .footer-crossnav a {
  min-width: auto;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
  background: var(--bg-soft);
}

footer .footer-crossnav a:hover {
  text-decoration: none;
}

.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    align-content: start;
  }

  .hero-copy {
    max-width: none;
    margin: 0 auto;
  }

  .hero-lead,
  .hero-login-note {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-visual {
    min-height: 240px;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .network {
    width: min(280px, 85vw);
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .message-side {
    position: static;
  }

  .message-body {
    max-width: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav.gantomo-nav-guest {
    display: flex;
    flex: 1 1 100%;
    order: 3;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    gap: 0.35rem;
  }

  .nav.gantomo-nav-guest::-webkit-scrollbar {
    display: none;
  }

  .nav.gantomo-nav-guest a {
    flex-shrink: 0;
    background: var(--bg-soft);
    border: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root {
    --scroll-offset: 6.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-visual {
    display: none;
  }

  .stats {
    margin-top: 0.5rem;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .stat {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .hero h1 br {
    display: none;
  }

  .btn-lg {
    width: 100%;
    max-width: 20rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 961px) {
  #platform {
    background: linear-gradient(180deg, transparent 0%, rgba(243, 239, 232, 0.35) 100%);
  }
}
