/* ===== Base ===== */
:root{
  --navy:#0b1f3a;
  --blue:#1b4fd8;
  --text:#0f172a;
  --muted:#64748b;
  --bg:#ffffff;
  --alt:#f5f7fb;
  --border:#e5e7eb;
  --shadow:0 10px 28px rgba(2,6,23,.10);

  --radius:16px;
  --radius-sm:12px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif;
  line-height:1.7;
}

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

/* ===== Layout ===== */
.container{
  width:min(1120px, calc(100% - 40px));
  margin-inline:auto;
}

.section{
  padding:56px 0;
}

.section.alt{
  background: var(--alt);
}

.section-head{
  margin-bottom: 18px;
}

.section-title{
  margin:0 0 8px;
  font-size: 28px;
  letter-spacing: .01em;
}

.section-lead{
  margin:0;
  color: var(--muted);
  max-width: 78ch;
}

/* ===== Header / Nav ===== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.9);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
  text-decoration:none;
  color:inherit;
}

.brand-mark{
  font-weight:800;
  letter-spacing:.04em;
}

.brand-sub{
  font-size:12px;
  color:var(--muted);
}

.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  text-decoration:none;
  color:var(--text);
  font-size:14px;
  padding:8px 10px;
  border-radius: 12px;
}

.nav a:hover{
  background: rgba(15,23,42,.05);
}

.nav .nav-cta{
  background: var(--blue);
  color:#fff;
  padding:10px 12px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background: var(--blue);
  color:#fff;
  text-decoration:none;
  padding:12px 14px;
  border-radius: 14px;
  font-weight:700;
  min-height:44px;
  box-shadow: 0 12px 22px rgba(27,79,216,.18);
}

.btn:hover{ filter: brightness(0.98); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: none;
}

.btn-sm{
  padding:10px 12px;
  min-height:40px;
  border-radius: 12px;
  font-size: 14px;
}

/* ===== Hero ===== */
.hero{
  position:relative;
  padding: 56px 0 44px;
  color:#fff;
  overflow:hidden;
  border-bottom: 1px solid rgba(226,232,240,.35);
}

.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(120deg, rgba(11,31,58,.86), rgba(27,79,216,.52));
}

.hero-inner{
  position:relative;
  z-index:2;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}

.hero-eyebrow{
  margin:0 0 10px;
  color: rgba(255,255,255,.86);
  font-weight:700;
  letter-spacing:.02em;
  font-size: 13px;
}

.hero-title{
  margin:0 0 14px;
  font-size: 40px;
  line-height:1.18;
  letter-spacing: .01em;
  text-wrap: balance;
}

.hero-lead{
  margin:0 0 16px;
  color: rgba(255,255,255,.90);
  max-width: 70ch;
}

.u-accent{
  color: #a7c8ff;
}
.u-strong{
  color:#fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 14px;
}

/* Fix: white ghost button contrast in hero */
.hero-ghost{
  color: #0f172a;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.95);
}

.hero-note{
  margin: 10px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 12.5px;
}

.hero-note a{
  color: rgba(255,255,255,.95);
}

/* KPI blocks */
.kpi{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.kpi-card{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: none;
}

.kpi-title{
  font-weight:800;
  letter-spacing:.01em;
  margin-bottom: 2px;
}

.kpi-desc{
  color: rgba(255,255,255,.86);
  font-size: 12.5px;
  line-height:1.5;
}

.kpi.kpi-metrics{ margin-top: 10px; }

.kpi-card.metric{
  background: rgba(255,255,255,.10);
  padding: 14px 12px;
}

.kpi-card.metric .kpi-num{
  font-weight: 900;
  font-size: 30px;
  line-height:1.05;
  letter-spacing:.02em;
}

.kpi-card.metric .kpi-label{
  margin-top: 6px;
  color: rgba(255,255,255,.88);
  font-size: 12.5px;
  line-height:1.45;
}

/* Right media card */
.hero-media .media-card{
  background: rgba(255,255,255,.96);
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(2,6,23,.25);
  overflow:hidden;
  border: 1px solid rgba(226,232,240,.85);
}

.media-head{
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(226,232,240,.85);
}

.media-title{
  margin:0 0 6px;
  font-size: 18px;
}

.media-sub{
  margin:0;
  color: var(--muted);
  font-size: 13.5px;
  line-height:1.6;
}

.media-body{
  padding: 14px 16px 12px;
}

.media-actions{
  padding: 0 16px 16px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

/* ===== Cards / Lists ===== */
.cards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px;
}

.card-title{
  margin: 0 0 8px;
  font-size: 18px;
}

.card-text{
  margin: 0 0 12px;
  color: var(--muted);
}

.list{
  margin: 0 0 10px;
  padding-left: 1.1em;
}

.link{
  display:inline-block;
  margin-top: 4px;
  color: var(--blue);
  text-decoration:none;
  font-weight: 700;
}

/* ===== Flow / Scope (tighten & equal height & responsive) ===== */
#flow-scope .section-head{ margin-bottom: 14px; }
#flow-scope .section-title{ margin: 0 0 6px; }
#flow-scope .section-lead{
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.75;
}

.dual-cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 14px;
}

.panel{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.panel-head{
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(226,232,240,.7);
}

.panel-title{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: .01em;
}

.panel-sub{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.panel-body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.panel-media{
  margin: 0;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;

  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.panel-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.panel-points{
  margin: 0;
  padding-left: 1.1em;
  color: var(--text);
  line-height: 1.75;
  font-size: 14px;
}

.panel-actions{
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.section-footnote{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15,23,42,.035);
  border: 1px solid rgba(226,232,240,.9);
  color: var(--muted);
  line-height: 1.75;
}

/* ===== Pricing teaser ===== */
.price-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.price-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 16px;
  position: relative;
}

.price-card-featured{
  border-color: rgba(245,158,11,.55);
  box-shadow: 0 16px 38px rgba(245,158,11,.14);
}

.price-badge{
  position:absolute;
  top: 12px;
  right: 12px;
  background: #f59e0b;
  color:#111827;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.price-title{
  margin: 0 0 6px;
  font-size: 18px;
}

.price-price{
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .01em;
}

.price-sub{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.cta-row{
  margin-top: 16px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

/* ===== Callout ===== */
.callout{
  background: linear-gradient(120deg, rgba(11,31,58,.08), rgba(27,79,216,.06));
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 18px;
  padding: 18px 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}

.callout-title{
  margin: 0 0 8px;
  font-size: 22px;
}

.callout-text{
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

.callout-actions{
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-width: 220px;
}

/* ===== Footer ===== */
.footer{
  border-top: 1px solid rgba(226,232,240,.9);
  padding: 26px 0 30px;
  background: #fff;
}

.footer-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:start;
}

.footer-title{
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing:.01em;
}

.footer-meta{
  color: var(--muted);
  font-size: 14px;
  line-height:1.7;
}

.footer-meta a{ color: var(--blue); text-decoration:none; }

.footer-links{
  display:flex;
  flex-direction:column;
  gap: 8px;
  align-items:flex-end;
}

.footer-links a{
  color: var(--muted);
  text-decoration:none;
  padding: 6px 8px;
  border-radius: 12px;
}

.footer-links a:hover{
  background: rgba(15,23,42,.05);
  color: var(--text);
}

.footer-copy{
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .hero-title{
    font-size: 34px;
  }
}

@media (max-width: 900px){
  .nav{
    display:none; /* シンプル運用：必要ならハンバーガー対応を後で追加 */
  }

  .cards{
    grid-template-columns: 1fr;
  }

  .kpi{
    grid-template-columns: 1fr;
  }

  .price-grid{
    grid-template-columns: 1fr;
  }

  .callout{
    flex-direction:column;
  }
  .callout-actions{
    min-width: auto;
    width: 100%;
    flex-direction: column;
  }
  .callout-actions .btn{
    width:100%;
  }

  /* Flow/Scope stack safely on mobile */
  .dual-cards{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .panel-head{
    padding: 14px 14px 10px;
  }
  .panel-body{
    padding: 12px 14px 14px;
  }
  .panel-actions{
    flex-direction: column;
  }
  .panel-actions .btn{
    width: 100%;
    justify-content: center;
  }

  .footer-inner{
    grid-template-columns: 1fr;
  }
  .footer-links{
    align-items:flex-start;
  }
}

@media (max-width: 520px){
  .hero{
    padding: 46px 0 34px;
  }
  .hero-title{
    font-size: 30px;
  }
  .hero-actions .btn{
    width: 100%;
  }
  .media-actions .btn{
    width: 100%;
  }
}
