/* ============================================
   鯖缶 LP
   深海紺 #13293D / 鯖銀 #DCE4EA / 鯖青 #2D6FA3
   ラベル朱 #D9432F / 診断緑 #2FA05A
   ============================================ */

:root {
  --navy: #13293D;
  --silver: #DCE4EA;
  --silver-light: #EEF3F7;
  --blue: #2D6FA3;
  --red: #D9432F;
  --green: #2FA05A;
  --white: #FBFDFE;
  --ink: #1B2B3A;
  --font-display: "RocknRoll One", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-mono: "M PLUS 1 Code", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- セクション共通 ---------- */

section { padding: 64px 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  text-align: center;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-lead {
  text-align: center;
  margin-bottom: 32px;
}

/* ---------- ヒーロー ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 0;
  text-align: center;
}

.can-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.can-logo {
  width: 88px; height: 88px;
  border-radius: 22px; /* ロゴ自体の角丸(120/484)に合わせる */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.can-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  margin-top: 8px;
  color: var(--silver);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 5.5vw, 2.4rem);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: #FFD86B;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--silver);
  margin-bottom: 24px;
}

.hero-badges {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-badges li {
  font-size: 0.8rem;
  padding: 4px 14px;
  border: 1px solid rgba(220, 228, 234, 0.5);
  border-radius: 999px;
  color: var(--silver);
}

/* 鯖の縞模様ディバイダ */
.saba-stripe {
  height: 28px;
  margin-top: 48px;
  background:
    repeating-linear-gradient(
      -55deg,
      var(--navy) 0 14px,
      #1E4160 14px 22px,
      #2D6FA3 22px 26px,
      #1E4160 26px 34px
    );
  opacity: 0.9;
}

/* ---------- 登録フォーム ---------- */

.signup-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.signup-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid var(--silver);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.signup-form input[type="email"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}

.signup-form .checkbox {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hero .checkbox { color: var(--silver); }

.signup-form button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(217, 67, 47, 0.35);
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 67, 47, 0.45);
}

.signup-form button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-note {
  font-size: 0.78rem;
  opacity: 0.85;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.5em;
}

.form-status.success { color: var(--green); }
.hero .form-status.success { color: #7FD8A4; }
.form-status.error { color: var(--red); }
.hero .form-status.error { color: #FF9A8B; }

.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- 痛み共感 ---------- */

.pain { background: var(--silver-light); }

.card-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .pain .card-grid { grid-template-columns: repeat(3, 1fr); }
  .features .card-grid { grid-template-columns: repeat(2, 1fr); }
}

.pain-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 20px;
  border: 1px solid var(--silver);
}

.pain-quote {
  font-size: 0.95rem;
}

.pain-quote::before { content: "「"; color: var(--blue); font-weight: 700; }
.pain-quote::after { content: "」"; color: var(--blue); font-weight: 700; }

/* ---------- 診断ライブモック ---------- */

.diagnosis-panel {
  max-width: 480px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 12px 32px rgba(19, 41, 61, 0.25);
}

.diagnosis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0D1F30;
  color: var(--silver);
  font-size: 0.85rem;
}

.diagnosis-rerun { opacity: 0.7; }

.diagnosis-list {
  list-style: none;
  padding: 12px 20px 20px;
}

.diag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--silver);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(220, 228, 234, 0.12);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.diag-row.visible {
  opacity: 1;
  transform: none;
}

.diag-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.diag-icon.ok { background: var(--green); color: #fff; }
.diag-icon.ng { background: var(--red); color: #fff; }

.diag-result { margin-left: auto; }
.ok-text { color: #7FD8A4; }
.ng-text { color: #FF9A8B; font-weight: 700; }

.diag-row.warn.visible .diag-icon.ng {
  animation: pulse 1.2s ease-in-out 2;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 67, 47, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(217, 67, 47, 0); }
}

.diag-action {
  padding-top: 16px;
  text-align: right;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.diag-action.visible { opacity: 1; transform: none; }

.fix-button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
}

.mock-note {
  text-align: center;
  font-size: 0.75rem;
  color: #6B7B88;
  margin-top: 12px;
}

/* ---------- アプリ全景 ---------- */

.appshot { background: var(--silver-light); }

.appshot .container { max-width: 900px; }

.appshot img {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(19, 41, 61, 0.18);
  border: 1px solid var(--silver);
}

.appshot figcaption {
  font-size: 0.8rem;
  color: #5A6B78;
  text-align: center;
  margin-top: 12px;
}

/* ---------- 主要機能 ---------- */

.feature-card {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 14px;
  padding: 24px 20px;
}

.feature-icon { font-size: 1.6rem; }

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 8px 0 6px;
}

.feature-card p { font-size: 0.9rem; }

/* ---------- 価格 ---------- */

.pricing {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.pricing .section-title { color: var(--white); }

.pricing-main {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #FFD86B;
  margin-bottom: 8px;
}

.pricing-sub {
  font-size: 0.9rem;
  color: var(--silver);
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- ロードマップ ---------- */

.roadmap-list {
  max-width: 420px;
  margin: 0 auto;
  list-style: none;
  counter-reset: step;
}

.roadmap-list li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 52px;
  border-left: 2px solid var(--silver);
  margin-left: 18px;
}

.roadmap-list li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.roadmap-list li:first-child::before { background: var(--red); }

.roadmap-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  padding: 1px 8px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- FAQ ---------- */

.faq { background: var(--silver-light); }

.faq-list {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 12px;
  padding: 18px 20px;
}

.faq-item dt {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.faq-item dt::before {
  content: "Q. ";
  color: var(--blue);
}

.faq-item dd {
  font-size: 0.9rem;
}

/* ---------- 最終CTA ---------- */

.final-cta {
  background: var(--navy);
  color: var(--white);
}

.final-cta .section-title {
  color: var(--white);
  margin-bottom: 32px;
}

.final-cta .checkbox { color: var(--silver); }

/* ---------- フッター ---------- */

.footer {
  background: #0D1F30;
  color: #8FA2B1;
  font-size: 0.8rem;
  text-align: center;
  padding: 24px 0;
}

/* ---------- モバイル追従CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 31, 48, 0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.show { transform: none; }

.sticky-cta a {
  display: block;
  text-align: center;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 13px;
  border-radius: 10px;
}

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diag-row, .diag-action {
    opacity: 1; transform: none; transition: none;
  }
  .diag-row.warn.visible .diag-icon.ng { animation: none; }
  .signup-form button { transition: none; }
  .sticky-cta { transition: none; }
}

/* βダウンロードCTA(公開後のメイン導線。ボタン様式はsignup-formのbuttonに揃える) */
.download-cta {
  max-width: 520px;
  margin: 28px auto 18px;
  text-align: center;
}
.download-btn {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 18px 24px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(217, 67, 47, 0.35);
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 67, 47, 0.45);
}
.form-lead {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .download-btn { transition: none; }
}
