:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --text: #22252a;
  --muted: #68707c;
  --line: #e4e7eb;
  --accent: #2463a8;
  --accent-dark: #174775;
  --green: #24845f;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }
.wrap { width: min(1020px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.brand span { color: inherit; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.site-nav a { color: #505761; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
main { padding: 48px 0 84px; }
.hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafafa;
  padding: clamp(34px, 6vw, 64px);
}
.eyebrow {
  margin: 0 0 10px;
  color: #777e88;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
}
h1 { margin: 0; font-size: clamp(36px, 6.5vw, 62px); line-height: 1.16; letter-spacing: -.035em; }
.page-hero h1 { font-size: clamp(32px, 5.5vw, 50px); }
.lead { max-width: 730px; margin: 20px 0 0; color: #525a65; font-size: clamp(16px, 1.9vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #2d343d;
  border-radius: 9px;
  padding: 8px 17px;
  background: #2d343d;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #111418; color: #fff; }
.button.secondary { background: #fff; color: #303740; border-color: #cfd4da; }
.button.secondary:hover { border-color: #777f89; color: #111; }
.section { margin-top: 56px; }
.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(25px, 3.6vw, 34px); line-height: 1.35; letter-spacing: -.02em; }
.section-intro { max-width: 680px; margin: 8px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.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: 24px;
}
a.card { color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
a.card:hover { border-color: #aeb5be; background: #fcfcfc; }
.card h3 { margin: 0 0 7px; font-size: 20px; line-height: 1.45; }
.card p { margin: 0; color: var(--muted); }
.card .more { display: inline-block; margin-top: 17px; color: var(--accent); font-weight: 700; }
.app-card {
  min-height: 245px;
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 22px;
  align-items: start;
}
.app-card .app-icon { grid-column: 1; grid-row: 1 / span 5; }
.app-card h3, .app-card p, .app-card .badges, .app-card .more { grid-column: 2; }
.app-card .more { align-self: end; }
.app-icon {
  width: 88px;
  height: 88px;
  display: block;
  object-fit: cover;
  margin: 0;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 21%;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.badge { display: inline-flex; align-items: center; border: 1px solid #e0e3e7; border-radius: 6px; background: #f7f8f9; color: #5f6670; padding: 3px 8px; font-size: 12px; }
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 38px; }
.app-hero .app-icon { width: 132px; height: 132px; margin: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a { border: 1px solid #d8dce1; border-radius: 7px; background: #fff; padding: 6px 11px; color: #505864; font-size: 13px; text-decoration: none; }
.subnav a:hover, .subnav a[aria-current="page"] { border-color: #7f8791; color: #222; background: #f4f5f6; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; align-items: start; }
.content { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: clamp(25px, 4.5vw, 46px); }
.content h2 { margin-top: 44px; font-size: 27px; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.5; }
.content p, .content ul, .content ol { color: #4d5560; }
.content ul, .content ol { padding-left: 1.45em; }
.content li + li { margin-top: 7px; }
.content .meta { margin: -2px 0 27px; color: var(--muted); font-size: 14px; }
.content .note { margin: 23px 0; border-left: 3px solid var(--accent); background: #f5f8fb; padding: 14px 17px; color: #3c5369; }
.content .warning { border-left-color: #c57a20; background: #fff9ef; color: #6b4a20; }
.toc { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; padding: 19px; }
.toc strong { display: block; margin-bottom: 9px; }
.toc a { display: block; padding: 5px 0; color: #5b626c; font-size: 13px; text-decoration: none; }
.toc a:hover { color: #111; text-decoration: underline; }
.steps { counter-reset: step; display: grid; gap: 12px; margin-top: 20px; }
.step { position: relative; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 18px 19px 18px 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 17px; top: 18px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #444b54; color: #fff; font-weight: 700; font-size: 12px; }
.step h3 { margin: 0 0 4px; 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: 700; color: #303740; }
.contact-box { margin-top: 23px; border: 1px solid var(--line); border-radius: 11px; background: #fafafa; padding: 22px; }
.contact-box p { margin: 0; }
.contact-box p + p { margin-top: 7px; }
.site-footer { border-top: 1px solid var(--line); background: #fafafa; padding: 32px 0 40px; 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: 13px 19px; }
.footer-links a { color: #555d67; text-decoration: none; }
.footer-links a:hover { color: #111; text-decoration: underline; }
.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: 7px; align-items: center; color: var(--green); font-size: 13px; font-weight: 650; }
.status::before { content: ""; width: 7px; height: 7px; 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) {
  .wrap { width: min(100% - 28px, 1020px); }
  .header-inner { min-height: auto; align-items: flex-start; flex-direction: column; padding: 13px 0; gap: 7px; }
  .site-nav { gap: 9px 15px; }
  main { padding-top: 28px; }
  .hero { border-radius: 14px; padding: 29px 22px; }
  .grid.two { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .app-card { min-height: 0; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .app-card .app-icon { width: 72px; height: 72px; }
  .app-hero { grid-template-columns: 1fr; gap: 22px; }
  .app-hero .app-icon { width: 96px; height: 96px; order: -1; }
  .footer-inner { flex-direction: column; }
}
