/* =========================================================================
   aoiro 紹介サイト
   配色は製品本体（../aoirov2）と同じ。青＝操作、緑＝収入、コーラル＝支出。
   セクションの登場順に記述している。
   ========================================================================= */

:root {
  --brand: #3b6ff5;
  --brand-dark: #2954db;
  --brand-soft: #eef3ff;
  --brand-line: #dbe5ff;

  --income: #12b886;
  --income-soft: #e8faf3;
  --expense: #ff7a59;
  --expense-soft: #fff1ec;
  --warn: #f5a524;
  --warn-soft: #fff8e6;

  --text: #1b2233;
  --muted: #5a6480;
  --faint: #8b93a8;
  --bg: #ffffff;
  --bg-soft: #f6f8fd;
  --line: #e5e9f2;

  --shadow-sm: 0 1px 2px rgb(27 34 51 / 0.05), 0 4px 12px -6px rgb(27 34 51 / 0.12);
  --shadow: 0 2px 4px rgb(27 34 51 / 0.04), 0 16px 40px -20px rgb(27 34 51 / 0.25);
  --shadow-lg: 0 4px 8px rgb(27 34 51 / 0.05), 0 32px 64px -28px rgb(27 34 51 / 0.35);

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------- 見出しまわりの共通部品 ---------- */

.section {
  padding: 88px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 18px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 46em;
}

.section-head {
  margin-bottom: 44px;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgb(59 111 245 / 0.7);
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* =========================== HEADER =========================== */

#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgb(27 34 51 / 0.05);
}

#header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
}

/* =========================== HERO =========================== */

#hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 62%);
}

#hero::before,
#hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#hero::before {
  width: 620px;
  height: 620px;
  top: -260px;
  right: -180px;
  background: radial-gradient(circle, rgb(59 111 245 / 0.14), transparent 65%);
}

#hero::after {
  width: 460px;
  height: 460px;
  bottom: -120px;
  left: -200px;
  background: radial-gradient(circle, rgb(18 184 134 / 0.13), transparent 65%);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-title {
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-title .accent {
  background: linear-gradient(transparent 66%, rgb(59 111 245 / 0.22) 66%);
}

.hero-lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 52px;
}

.hero-figure {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.hero-figure .shot-frame {
  box-shadow: var(--shadow-lg);
}

/* スマホは左下に置く。右下には「チェックした◯件を確定」ボタンがあり、隠したくない */
.hero-phone {
  position: absolute;
  left: -22px;
  bottom: -8px;
  width: 194px;
  border-radius: 26px;
  overflow: hidden;
  border: 7px solid #1b2233;
  background: #1b2233;
  box-shadow: 0 24px 48px -20px rgb(27 34 51 / 0.5);
}

.hero-phone img {
  border-radius: 18px;
}

/* スクリーンショットの枠。ブラウザ風のバーを載せて実画面だと分かるようにする */
.shot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.shot-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f2f4f9;
  border-bottom: 1px solid var(--line);
}

.shot-frame__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6dae4;
}

.shot-frame__bar b {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.shot-caption {
  font-size: 13px;
  color: var(--faint);
  text-align: center;
  margin: 12px 0 0;
}

/* =========================== 悩み =========================== */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.pain__q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 10px;
}

.pain__q i {
  color: var(--expense);
  font-size: 18px;
  margin-top: 4px;
}

.pain__a {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.pain__a strong {
  color: var(--text);
}

/* =========================== 特徴 =========================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: #fff;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #5b87ff, #2954db);
}

.feature--income .feature__icon {
  background: linear-gradient(135deg, #34d3a3, #0ca678);
}

.feature--expense .feature__icon {
  background: linear-gradient(135deg, #ff9a7f, #f4623c);
}

.feature h3 {
  font-size: 19px;
  margin: 0 0 10px;
  line-height: 1.5;
}

.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* =========================== 交互レイアウト =========================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.split + .split {
  margin-top: 88px;
}

.split--reverse .split__text {
  order: 2;
}

.split__text h3 {
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.55;
  margin: 0 0 14px;
}

.split__text p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: var(--muted);
}

.check-list li i {
  color: var(--income);
  margin-top: 6px;
  font-size: 14px;
  flex: none;
}

.check-list li b {
  color: var(--text);
}

/* =========================== 入力モードのタブ =========================== */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.tab {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  border-color: var(--brand-line);
  color: var(--text);
}

.tab[aria-selected='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  align-items: center;
  animation: fade 0.35s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tab-panel h3 {
  font-size: 22px;
  margin: 0 0 12px;
}

.tab-panel p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}

.tab-panel .phone-shot {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  border: 8px solid #1b2233;
  background: #1b2233;
  box-shadow: var(--shadow);
}

.tab-panel .phone-shot img {
  border-radius: 22px;
}

/* =========================== AIセクション =========================== */

#ai {
  background: linear-gradient(180deg, #f7f9ff, #ffffff);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--income-soft);
  color: #099268;
  border: 1px solid #c6f2e2;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.check-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.check-card i {
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}

.check-card h4 {
  font-size: 15.5px;
  margin: 0 0 6px;
}

.check-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--income-soft);
  border: 1px solid #c6f2e2;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 24px;
}

.callout i {
  color: #0ca678;
  font-size: 20px;
  margin-top: 4px;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.callout p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.callout--warn {
  background: var(--warn-soft);
  border-color: #ffeeba;
}

.callout--warn i {
  color: #b45309;
}

/* =========================== 決算書の3ステップ =========================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgb(59 111 245 / 0.8);
}

.step h4 {
  font-size: 17px;
  margin: 8px 0 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.balance-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 16px 28px;
  margin: 36px auto 0;
  width: fit-content;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}

.balance-proof b {
  font-variant-numeric: tabular-nums;
}

.balance-proof .eq {
  color: var(--faint);
}

.balance-proof .zero {
  color: var(--income);
  font-weight: 700;
}

/* =========================== 判断の例（同じ買い物・違う結論） =========================== */

.verdict {
  margin-top: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
}

.verdict__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
}

.verdict__item span {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.verdict__cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.verdict__case {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 20px 22px;
}

.verdict__case--yes {
  border-left-color: var(--income);
  background: var(--income-soft);
}

.verdict__case--no {
  border-left-color: var(--expense);
  background: var(--expense-soft);
}

.verdict__biz {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.verdict__result {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.6;
}

.verdict__result span {
  font-size: 14px;
  color: var(--muted);
}

.verdict__case--yes .verdict__result b {
  color: #0b8f6b;
}

.verdict__case--no .verdict__result b {
  color: #d9542f;
}

.verdict__why {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* =========================== 出力カード =========================== */

.out-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.out {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}

.out i {
  font-size: 22px;
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}

.out h4 {
  font-size: 16px;
  margin: 0 0 6px;
}

.out p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* =========================== 画面ギャラリー =========================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 10px;
}

.gallery figcaption b {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  margin-bottom: 2px;
}

/* =========================== FAQ =========================== */

.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 24px;
  top: 22px;
  font-size: 13px;
  color: var(--faint);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq .faq__body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.faq .faq__body p {
  margin: 0 0 10px;
}

.faq .faq__body p:last-child {
  margin-bottom: 0;
}

/* =========================== CTA =========================== */

#cta {
  background: linear-gradient(135deg, #2954db, #3b6ff5 55%, #5b87ff);
  color: #fff;
  text-align: center;
  padding: 84px 0;
}

#cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 14px;
  line-height: 1.5;
}

#cta p {
  color: rgb(255 255 255 / 0.86);
  margin: 0 auto 30px;
  max-width: 38em;
  font-size: 16px;
}

#cta .btn--primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.5);
}

#cta .btn--primary:hover {
  background: #f2f5ff;
}

#cta .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.5);
  box-shadow: none;
}

#cta .btn--ghost:hover {
  background: rgb(255 255 255 / 0.12);
}

#cta .cta-note {
  font-size: 13px;
  color: rgb(255 255 255 / 0.7);
  margin: 20px 0 0;
}

/* =========================== FOOTER =========================== */

#footer {
  background: #10141f;
  color: #aeb6c8;
  padding: 52px 0 32px;
  font-size: 14px;
}

#footer .foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid #232a3a;
}

#footer .brand {
  color: #fff;
}

#footer .foot-desc {
  margin: 10px 0 0;
  max-width: 30em;
  font-size: 13.5px;
}

#footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

#footer nav a {
  color: #aeb6c8;
  text-decoration: none;
  font-size: 13.5px;
}

#footer nav a:hover {
  color: #fff;
}

#footer .foot-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: #78819a;
}

/* =========================== スクロール表示 =========================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tab-panel.is-active {
    animation: none;
  }
  .btn:hover,
  .feature:hover {
    transform: none;
  }
}

/* =========================== レスポンシブ =========================== */

@media (max-width: 1000px) {
  .checks,
  .out-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .section {
    padding: 64px 0;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    box-shadow: 0 12px 24px -18px rgb(27 34 51 / 0.6);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    font-size: 15px;
  }

  .nav .btn {
    margin: 8px 0 0;
  }

  .nav-toggle {
    display: block;
  }

  .pain-grid,
  .feature-grid,
  .steps,
  .checks,
  .out-grid,
  .gallery,
  .verdict__cases {
    grid-template-columns: 1fr;
  }

  .split,
  .tab-panel.is-active {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split--reverse .split__text {
    order: 0;
  }

  .split + .split {
    margin-top: 56px;
  }

  .hero-phone {
    position: static;
    width: 178px;
    margin: -18px auto 0;
  }

  .hero-figure {
    padding-bottom: 0;
  }

  #hero {
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 18px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .balance-proof {
    border-radius: var(--radius);
    padding: 16px 20px;
  }
}
