:root {
  color-scheme: light;
  --ink: #142840;
  --muted: #526278;
  --line: #dbe3ed;
  --canvas: #f6f8fb;
  --navy: #10243e;
  --yellow: #ffce67;
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 1rem; line-height: 1.7; }
main { flex: 1; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: #234f80; text-underline-offset: .24em; }
a:hover { color: #102b50; }
:focus-visible { outline: 3px solid #4184c3; outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: 8px; left: 12px; background: #fff; padding: 8px 12px; transform: translateY(-140%); }
.skip:focus { transform: none; }

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { min-height: 70px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; color: var(--ink); text-decoration: none; }
.brand-icon { width: 33px; height: 33px; border-radius: 9px; background: var(--navy); position: relative; }
.brand-icon::before, .brand-icon::after { content: ""; position: absolute; inset: 9px 10px; border: 2px solid var(--yellow); border-radius: 2px; }
.brand-icon::after { inset: 13px 14px 12px; border-width: 1px 0; border-radius: 0; }
.masthead nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.masthead nav a { font-size: .9rem; font-weight: 650; text-decoration: none; color: var(--muted); padding-block: 4px; }
.masthead nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px #315781; }
.preview-label { padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: .8125rem; font-weight: 650; white-space: nowrap; }

.hero { color: #fff; background: linear-gradient(120deg, #10243e, #163555 70%, #1e3f60); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 6vw, 76px); padding-block: clamp(40px, 6.3vw, 78px); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #cfe0f3; font-size: .875rem; font-weight: 650; }
.eyebrow span { width: 19px; height: 2px; background: var(--yellow); }
h1 { color: var(--ink); font-weight: 760; line-height: 1.16; letter-spacing: -.025em; font-size: clamp(2rem, 4vw, 3.45rem); }
.hero h1 { margin-top: 16px; color: #fff; font-size: clamp(2.35rem, 5vw, 4.5rem); }
.hero-summary { max-width: 34em; margin: 19px 0 26px; color: #deebf7; }
.hero-photo, .product-photo { min-width: 0; position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 1.46; background: #29455f; }
.hero-photo { box-shadow: 0 20px 42px #00112648; border: 1px solid #7790ac6e; }
.hero-photo figcaption, .product-photo figcaption { position: absolute; right: 11px; bottom: 10px; color: #fff; background: #10243edc; border-radius: 5px; font-size: .8125rem; padding: 3px 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; padding: .68em 1.18em; min-height: 44px; border-radius: 8px; font: inherit; font-size: .9375rem; font-weight: 700; text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer; }
.button.accent { background: var(--yellow); color: #192539; }
.button.accent:hover { background: #ffdb8b; }
.button.primary { background: #1a416e; color: #fff; }
.button.primary:hover { background: #153253; }
.button.outline { background: #fff; color: #244c7b; border-color: #b6c8dc; }
.button.outline:hover { background: #edf4fc; }
.button:disabled { background: #dce4ee; color: #536479; cursor: not-allowed; }

.section { padding-block: clamp(30px, 5vw, 65px); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 15px; margin-bottom: 17px; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.27; }
h3 { font-size: 1.15rem; line-height: 1.35; }
.lead { color: var(--muted); font-size: 1.0625rem; }
.catalog-page h1 + p { margin: 10px 0 27px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 680px)); gap: 16px; }
.app-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.card-photo { min-height: 205px; background: #ccd7e5; }
.card-content { padding: 20px 23px; }
.card-content h3 { margin-top: 7px; font-size: 1.55rem; }
.card-content h3 a { color: var(--ink); text-decoration: none; }
.card-content h3 a:hover { text-decoration: underline; }
.platform { display: inline-block; background: #e7effa; color: #1f4b7c; border-radius: 5px; padding: 1px 8px; font-size: .875rem; font-weight: 700; }
.card-category { font-weight: 650; margin-top: 2px; }
.card-category + p { color: var(--muted); margin-top: 6px; }
.card-content .button { margin-top: 12px; }

.detail-page { padding-block: 23px clamp(37px, 6vw, 80px); }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 17px; }
.breadcrumb span { padding-inline: 6px; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); align-items: center; gap: clamp(20px, 4.5vw, 54px); }
.product-intro h1 { margin: 11px 0 4px; }
.product-category { font-weight: 730; font-size: 1.25rem; margin-bottom: 10px; }
.product-intro p + p { margin-top: 9px; }
.product-intro .button { margin-top: 18px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.specs div { padding: 13px 18px; }
.specs div + div { border-left: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .875rem; }
.specs dd { font-weight: 700; margin-top: 1px; }
.detail-section { margin-top: 36px; }
.detail-section h2 { margin-bottom: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.feature, .history { background: #fff; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.feature p { margin-top: 7px; color: var(--muted); }
.history + .history { margin-top: 12px; }
.history header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.history header span { color: #4b607a; background: #edf1f7; border-radius: 5px; font-size: .875rem; padding-inline: 8px; }
.history ul { color: var(--muted); margin: 10px 0 0; padding-inline-start: 1.3em; }
.download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: #eaf1fa; border: 1px solid #cfdeef; border-radius: 12px; padding: clamp(16px, 4vw, 28px); margin-top: 26px; }
.download p { color: var(--muted); margin-top: 5px; }
footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { justify-content: space-between; font-size: .875rem; color: var(--muted); }

@media (max-width: 720px) {
  .container { width: min(1120px, calc(100% - 32px)); }
  .masthead-inner { gap: 8px 14px; min-height: 62px; padding-block: 9px; }
  .masthead nav { gap: 12px; }
  .masthead nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-grid, .product-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-photo, .product-photo { aspect-ratio: 1.7; }
  .specs div { padding-inline: 10px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 495px) {
  .masthead nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .preview-label { margin-left: auto; }
  .app-card { grid-template-columns: minmax(0, 1fr); }
  .card-photo { aspect-ratio: 2.25; min-height: 0; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { min-height: 60px; }
}
