﻿:root {
  /* ===============================
  Primary（ブランドカラー）
  =============================== */
  --primary-100: #D5EDFD;
  --primary-300: #A8D4FD;
  --primary-500: #4F99F9;
  --primary-600: #3E8CF4;

  /* ===============================
  Background
  =============================== */
  --bg-main: #FFFFFF;
  --bg-sub: #F6FAFF;
  --bg-gradient: linear-gradient(135deg, #D5EDFD 0%, #A8D4FD 45%, #4F99F9 100%);

  /* ===============================
  Text
  =============================== */
  --text-main: #1A1A1A;
  --text-sub: #555555;
  --text-light: #888888;
  --text-white: #FFFFFF;

  /* ===============================
  Button
  =============================== */
  --btn-primary: #4F99F9;
  --btn-primary-hover: #3E8CF4;
  --btn-text: #FFFFFF;

  --btn-secondary: #FFFFFF;
  --btn-secondary-border: #4F99F9;
  --btn-secondary-text: #4F99F9;

  /* ===============================
  Accent（仕分け用）
  =============================== */
  --accent-good: #34C759;
  --accent-bad: #FF5A5F;

  /* ===============================
  Card / UI
  =============================== */
  --card-bg: #FFFFFF;
  --card-border: #E6F0FA;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* ===============================
ベース
================================= */
body {
  background: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -44px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px 12px;
  z-index: 999;
}

.skip-link:focus {
  top: 10px;
}

.container {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #e5edf7;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-nav {
  display: flex;
  gap: 12px;
}

.header-nav a {
  font-size: 0.9rem;
  color: #2e4f73;
  text-decoration: none;
}

/* ===============================
ファーストビュー
================================= */
.hero {
  background: var(--bg-gradient);
  color: var(--text-white);
  padding: 80px 20px;
}

.hero-grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 1.45rem + 2.1vw, 3.7rem);
  line-height: 1.2;
}

.hero .hero-sub {
  margin: 14px 0 0;
  max-width: 38ch;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
}

.kicker {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.swipe-stack {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  padding: 16px;
}

.swipe-card {
  background: #fff;
  color: #24415f;
  border-radius: 16px;
  border: 1px solid #dbe8f8;
  box-shadow: var(--card-shadow);
  padding: 14px;
}

.swipe-card + .swipe-card {
  margin-top: 10px;
}

.swipe-state {
  font-size: 0.84rem;
  font-weight: 700;
}

/* ===============================
セクション
================================= */
.section {
  background: var(--bg-main);
  padding: 60px 20px;
}

.section-sub {
  background: var(--bg-sub);
  padding: 60px 20px;
}

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

.section-kicker {
  margin: 0;
  color: #2f73b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.section-sub h2 {
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2.45rem);
  line-height: 1.25;
}

.grid {
  display: grid;
  gap: 12px;
}

/* ===============================
ボタン
================================= */
.button-primary {
  background: var(--btn-primary);
  color: var(--btn-text);
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.button-primary:hover {
  background: var(--btn-primary-hover);
}

.button-secondary {
  background: var(--btn-secondary);
  color: var(--btn-secondary-text);
  border: 2px solid var(--btn-secondary-border);
  border-radius: 12px;
  padding: 14px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 700;
}

.cta-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.cta-note {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.appstore-badge {
  display: inline-flex;
  width: fit-content;
}

.appstore-badge img {
  height: 42px;
  width: auto;
  display: block;
}

/* ===============================
カード
================================= */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 20px;
}

.plan-main {
  border-color: #c6ddfb;
  background: #f2f8ff;
}

/* ===============================
テキスト補助
================================= */
.text-sub {
  color: var(--text-sub);
}

.text-light {
  color: var(--text-light);
}

/* ===============================
アクセント（仕分け表現）
================================= */
.bad {
  color: var(--accent-bad);
}

.good {
  color: var(--accent-good);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid #deebfa;
  border-radius: 14px;
  padding: 14px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--text-sub);
  line-height: 1.75;
}

.support-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  width: min(100%, 780px);
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2f4f73;
}

.form-field em {
  font-style: normal;
  color: #d14349;
  font-size: 0.82rem;
  margin-left: 6px;
}

.form-field small {
  color: #6b7e93;
  font-size: 0.82rem;
  margin-left: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d5e5f8;
  background: #fff;
  color: var(--text-main);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(79, 153, 249, 0.25);
  border-color: var(--primary-500);
}

.support-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.support-status {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.92rem;
  color: #4f6580;
}

.support-status[data-state="success"] {
  color: #1d8b3e;
}

.support-status[data-state="error"] {
  color: #d14349;
}

.footer {
  border-top: 1px solid #e4ecf8;
  background: #f7fbff;
  padding: 20px 0 26px;
}

.footer-inner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer a {
  color: #2a5b91;
  text-decoration: none;
  border-bottom: 1px solid #9ec2ea;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cta-actions {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}
