/* ===== Tokens（青はアプリ lib/core/theme/tokens/colors.dart と同じ。構成は naraeruwkt.jp に倣う） ===== */
:root {
  --text: #1B2430;
  --text-sub: #4A5563;
  --primary: #1E63C9;
  --primary-dark: #12407F;
  --primary-mid: #5B93E0;
  --primary-soft: #E4EDFA;
  --primary-pale: #F2F7FD;
  --gray-bg: #F7F9FB;
  --border: #D9E0E8;
  --accent-orange: #F2BD66;
  --accent-green: #50B4A3;
  --shadow: 0 4px 16px rgba(27, 36, 48, 0.08);
  --shadow-lg: 0 10px 30px rgba(27, 36, 48, 0.14);
  --width: 1080px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.text-link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--primary-dark); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(27, 36, 48, 0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.95rem; color: var(--text-sub); }
.nav a:hover { opacity: 0.75; }
.nav .nav-start {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
}
.nav .nav-start:hover { background: var(--primary-dark); opacity: 1; }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-nav { display: none; background: #fff; padding: 8px 20px 20px; box-shadow: 0 8px 16px rgba(27, 36, 48, 0.08); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 12px;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 8px;
}
.mobile-nav a:hover { background: var(--gray-bg); }
.mobile-nav .nav-start {
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-weight: 700;
}
.mobile-nav .nav-start:hover { background: var(--primary-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-lg); }
.btn-white:hover { background: var(--primary-soft); }
.btn-outline { border: 2px solid #fff; color: #fff; padding: 13px 32px; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge img { height: 48px; width: auto; }
.store-badge:hover { opacity: 0.85; }
.center .btn-row, .center .store-badges { justify-content: center; }

/* ===== Layout ===== */
.section { padding: 88px 24px; }
.inner { max-width: var(--width); margin: 0 auto; }
.inner-narrow { max-width: 820px; margin: 0 auto; }
.center { text-align: center; }
.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--text-sub);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.bg-gray { background: var(--gray-bg); }
.bg-pale { background: var(--primary-pale); }
.bg-soft { background: var(--primary-soft); }
.bg-brand { background: var(--primary); color: #fff; }

/* ===== Screens ===== */
.screen {
  width: 100%;
  max-width: 270px;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 136px 24px 120px;
  background: linear-gradient(to right, var(--primary-dark) 0%, var(--primary) 45%, var(--primary-mid) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
}
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-illust { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero-visual .screen { position: absolute; right: -12px; bottom: 0; max-width: 190px; }
.hero-kicker { font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 12px; color: #EEF4FD; }
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}
.hero-lead { font-size: 1.2rem; line-height: 1.9; margin-bottom: 28px; max-width: 560px; color: #EEF4FD; }
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-facts li {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.95rem;
  font-weight: 500;
}
.hero-facts strong { font-weight: 700; font-size: 1.05rem; }
.hero .btn-row { margin-bottom: 28px; }
.hero-trial { font-size: 0.95rem; margin-bottom: 10px; color: #EEF4FD; }
.hero .screen { border: 6px solid #fff; }
.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 60px;
  display: block;
}

/* ===== Flow circles ===== */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 72px;
}
.flow li {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 6px solid var(--primary-mid);
  border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.flow svg { width: 52px; height: 52px; color: var(--primary); margin-bottom: 10px; }
.flow .flow-num { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.flow .flow-name { font-size: 1.15rem; font-weight: 700; line-height: 1.5; }

/* ===== Feature cards ===== */
.feature {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 56px;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 48px 56px;
  margin-bottom: 32px;
}
.feature:nth-of-type(even) { grid-template-columns: 270px 1fr; }
.feature:nth-of-type(even) .screen { order: -1; }
.feature-role {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.7rem; font-weight: 700; line-height: 1.5; margin-bottom: 14px; }
.feature p { font-size: 1.05rem; color: var(--text-sub); margin-bottom: 20px; }
.feature ul { list-style: none; }
.feature li {
  position: relative;
  padding: 6px 0 6px 32px;
  font-size: 1rem;
}
.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ===== More cards ===== */
.more-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 72px 0 32px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.more-card {
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--primary-soft) 100%);
  border-radius: 16px;
  padding: 28px 22px;
}
.more-card svg { width: 44px; height: 44px; color: var(--primary); margin-bottom: 14px; }
.more-card h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.more-card p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.75; }

/* ===== Pricing ===== */
.pricing-head { text-align: center; margin-bottom: 44px; }
.pricing-head .section-title { margin-bottom: 20px; }
.pricing-catch { font-size: 1.7rem; font-weight: 700; line-height: 1.6; }
.pricing-catch strong { font-size: 2.6rem; padding: 0 4px; }
.pricing-sub { font-size: 1.05rem; margin-top: 12px; color: #EEF4FD; }
.plan-card {
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 36px 40px 32px;
}
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table th, .plan-table td {
  padding: 16px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
}
.plan-table thead th { font-size: 0.9rem; font-weight: 700; color: var(--text-sub); border-bottom: 2px solid var(--primary); }
.plan-table tbody th { font-weight: 700; }
.plan-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-table .price { font-weight: 700; color: var(--primary); font-size: 1.2rem; }
.plan-notes { list-style: none; margin-top: 24px; font-size: 0.95rem; color: var(--text-sub); }
.plan-notes li { position: relative; padding: 4px 0 4px 18px; }
.plan-notes li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-mid); }

/* ===== Start ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.steps li {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 28px 32px;
  text-align: center;
}
.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.steps li:nth-child(1) .step-num { background: var(--primary-mid); }
.steps li:nth-child(2) .step-num { background: var(--accent-orange); }
.steps li:nth-child(3) .step-num { background: var(--accent-green); }
.steps h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.steps p { font-size: 0.95rem; color: var(--text-sub); text-align: left; }
.start-note { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }

/* ===== FAQ ===== */
.faq details {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 60px 20px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
}
.faq summary:hover { background: var(--gray-bg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  padding: 18px 24px 22px;
  background: var(--gray-bg);
  border-top: 1px solid var(--border);
  color: var(--text-sub);
}

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 50%, var(--primary-dark) 100%); color: #fff; }
.cta h2 { font-size: 2.3rem; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.cta p { font-size: 1.15rem; color: #EEF4FD; margin-bottom: 36px; }
.cta .btn-row { margin-bottom: 28px; }

/* ===== Footer ===== */
.footer { background: #111827; color: #9CA3AF; padding: 56px 24px 32px; }
.footer-inner {
  max-width: var(--width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer .logo { color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 0.9rem; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 0.9rem; margin-bottom: 8px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--width);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1F2937;
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 40px 36px; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  .section-title { font-size: 1.7rem; }
  .section-lead { font-size: 1rem; margin-bottom: 40px; }
  .hero { padding: 104px 20px 96px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 1.05rem; margin-left: auto; margin-right: auto; }
  .hero-facts, .hero .btn-row, .hero .store-badges { justify-content: center; }
  .hero .btn { flex: 1 1 100%; }
  .screen { max-width: 240px; margin: 0 auto; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .hero-visual .screen { max-width: 150px; right: -8px; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
  .flow svg { width: 40px; height: 40px; margin-bottom: 6px; }
  .flow .flow-name { font-size: 1rem; }
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .feature:nth-of-type(even) .screen { order: 0; }
  .feature h3 { font-size: 1.4rem; }
  .more-title { margin-top: 56px; font-size: 1.4rem; }
  .pricing-catch { font-size: 1.3rem; }
  .pricing-catch strong { font-size: 2rem; }
  .plan-card { padding: 20px 16px 24px; }
  .plan-table th, .plan-table td { padding: 14px 8px; font-size: 0.95rem; }
  .plan-table .price { font-size: 1.05rem; }
  .steps { grid-template-columns: 1fr; }
  .faq summary { font-size: 1rem; padding: 18px 52px 18px 20px; }
  .cta h2 { font-size: 1.6rem; }
  .cta p { font-size: 1rem; }
  .cta .btn { flex: 1 1 100%; }
  .footer-links { gap: 32px; }
}
@media (max-width: 480px) {
  .more-grid { grid-template-columns: 1fr; }
}

/* ===== 料金シミュレーター ===== */
.sim { margin-top: 28px; }
.sim-title { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.sim-lead { text-align: center; color: var(--text-sub); margin-bottom: 24px; }
.sim-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.sim-field { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; font-weight: 700; }
.sim-input { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.sim-input input {
  width: 100%;
  font: inherit;
  font-size: 1.2rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sim-input input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.sim-result { background: var(--primary-pale); border-radius: 14px; padding: 20px 24px; text-align: center; }
.sim-plan { font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.sim-total { font-size: 1.1rem; font-weight: 700; }
.sim-total strong { font-size: 2.2rem; color: var(--primary); padding: 0 4px; font-variant-numeric: tabular-nums; }
.sim-tax { font-size: 0.85rem; font-weight: 400; color: var(--text-sub); }
.sim-breakdown, .sim-per { font-size: 0.95rem; color: var(--text-sub); }
@media (max-width: 768px) {
  .sim-inputs { grid-template-columns: 1fr; }
  .sim-total strong { font-size: 1.8rem; }
}

/* ===== 下層ページ（連携・比較など） ===== */
.sub { padding-top: 64px; }
.breadcrumb { max-width: var(--width); margin: 0 auto; padding: 16px 20px 0; font-size: 0.85rem; color: var(--text-sub); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--text-sub); text-decoration: underline; text-underline-offset: 3px; }
.sub-hero { padding: 40px 20px 32px; }
.sub-kicker { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.sub-hero h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.45; margin-bottom: 16px; }
.sub-lead { font-size: 1.1rem; color: var(--text-sub); }
.sub-section { padding: 32px 20px; }
.sub-section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; padding-left: 14px; border-left: 5px solid var(--primary); }
.sub-section h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; }
.sub-section p { margin-bottom: 12px; }
.sub-section .more-card h3 { margin-top: 0; }
.check-list { list-style: none; margin: 12px 0; }
.check-list li { position: relative; padding: 6px 0 6px 26px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.step-list { margin: 8px 0 12px 1.4em; }
.step-list li { padding: 4px 0; }
.note { font-size: 0.92rem; color: var(--text-sub); background: var(--gray-bg); border-radius: 10px; padding: 12px 16px; }
.muted { color: var(--text-sub); }
.table-wrap { overflow-x: auto; margin: 12px 0 8px; border: 1px solid var(--border); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; }
.data-table th, .data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--primary-pale); font-size: 0.85rem; color: var(--text-sub); white-space: nowrap; }
.data-table tbody th { font-weight: 700; white-space: nowrap; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-sub); }
.data-table.narrow { max-width: 480px; }
.text-link-white { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sub-related { margin-top: 24px; font-size: 0.95rem; }
@media (max-width: 768px) {
  .sub-hero h1 { font-size: 1.6rem; }
  .sub-section h2 { font-size: 1.35rem; }
  .data-table th, .data-table td { padding: 8px 10px; font-size: 0.9rem; }
}

/* ===== 役割の切り替え ===== */
.feature.role-switch { grid-template-columns: 1fr 320px; }
.screen.screen-square { border-radius: 24px; }
.role-steps { margin: 4px 0 0 1.3em; font-size: 1.05rem; color: var(--text); }
.feature .role-steps li { padding: 6px 0; position: static; }
.feature .role-steps li::before { content: none; }
.role-card { margin-top: 28px; }
.role-table td { font-size: 0.98rem; color: var(--text-sub); }
.role-table tbody th { white-space: nowrap; }
.role-table td.tabs { white-space: nowrap; color: var(--text); font-weight: 500; }
@media (max-width: 768px) {
  .feature.role-switch { grid-template-columns: 1fr; }
  .role-table th, .role-table td { padding: 12px 8px; font-size: 0.9rem; }
  .role-table td.tabs { white-space: normal; word-break: keep-all; }
}
