:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #162033;
  --muted: #64748b;
  --line: #dfe7f1;
  --blue: #2563eb;
  --blue-dark: #1849a9;
  --pink: #db2777;
  --green: #0f9f6e;
  --shadow: 0 18px 55px rgba(15, 23, 42, .08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; }
.wrap { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 231, 241, .9);
  background: rgba(246, 248, 252, .88);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { color: var(--text); text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand span { color: var(--blue); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 700; }
.site-nav a { color: #42526b; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
main { padding: 54px 0 88px; }
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, #fff 0%, #f6faff 48%, #eaf2ff 100%);
  padding: clamp(36px, 7vw, 78px);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.18), rgba(37,99,235,0) 68%);
  pointer-events: none;
}
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 7.5vw, 72px); line-height: 1.08; letter-spacing: -.045em; }
.page-hero h1 { font-size: clamp(34px, 6vw, 58px); }
.lead { max-width: 720px; margin: 22px 0 0; color: #52637c; font-size: clamp(16px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 9px 19px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: var(--blue-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--blue); border-color: var(--line); }
.button.secondary:hover { border-color: var(--blue); }
.section { margin-top: 58px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section h2, .content h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.3; letter-spacing: -.025em; }
.section-intro { max-width: 680px; margin: 8px 0 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 10px 32px rgba(15,23,42,.045);
}
a.card { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); border-color: #bdccec; box-shadow: 0 18px 42px rgba(15,23,42,.09); }
.card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); }
.card .more { display: inline-block; margin-top: 17px; color: var(--blue); font-weight: 800; }
.app-card { min-height: 290px; display: flex !important; flex-direction: column; }
.app-card .more { margin-top: auto; padding-top: 22px; }
.app-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #fff;
  font-size: 29px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 12px 24px rgba(15,23,42,.15);
}
.app-icon.kakeibo { background: linear-gradient(135deg, #f472b6, #c026d3); }
.app-icon.travel { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; background: #edf3ff; color: #315b9a; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.app-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.app-hero .app-icon { width: 104px; height: 104px; border-radius: 26px; font-size: 42px; margin: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.subnav a { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 7px 13px; color: #465770; font-size: 13px; font-weight: 750; text-decoration: none; }
.subnav a:hover, .subnav a[aria-current="page"] { border-color: #9eb8ec; color: var(--blue); background: #f4f7ff; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(26px, 5vw, 50px);
  box-shadow: 0 12px 38px rgba(15,23,42,.05);
}
.content h2 { margin-top: 48px; font-size: 28px; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 30px 0 8px; font-size: 20px; line-height: 1.45; }
.content p { color: #475569; }
.content ul, .content ol { color: #475569; padding-left: 1.45em; }
.content li + li { margin-top: 8px; }
.content .meta { margin: -2px 0 28px; color: var(--muted); font-size: 14px; }
.content .note { margin: 24px 0; border-left: 4px solid var(--blue); border-radius: 10px; background: #f2f7ff; padding: 15px 18px; color: #355174; }
.content .warning { border-left-color: #d97706; background: #fff8eb; color: #754b12; }
.toc { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 20px; }
.toc strong { display: block; margin-bottom: 9px; }
.toc a { display: block; padding: 5px 0; color: #5b6b81; font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.steps { counter-reset: step; display: grid; gap: 13px; margin-top: 20px; }
.step { position: relative; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 20px 20px 20px 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 850; font-size: 13px; }
.step h3 { margin: 0 0 5px; font-size: 18px; }
.step p { margin: 0; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; color: #26364e; }
.contact-box { margin-top: 24px; border-radius: 20px; background: #edf4ff; padding: 24px; }
.contact-box p { margin: 0; }
.contact-box p + p { margin-top: 8px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 34px 0 45px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 26px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer-links a { color: #52637c; text-decoration: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.status { display: inline-flex; gap: 8px; align-items: center; color: var(--green); font-size: 13px; font-weight: 800; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 820px) {
  .grid.three { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 15px 0; gap: 8px; }
  .site-nav { gap: 10px 15px; }
  main { padding-top: 28px; }
  .hero { border-radius: 26px; padding: 31px 25px; }
  .grid.two { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .app-hero { grid-template-columns: 1fr; }
  .app-hero .app-icon { width: 84px; height: 84px; order: -1; }
  .footer-inner { flex-direction: column; }
}
