:root {
  color-scheme: light dark;
  font-family: "Meiryo UI", Meiryo, system-ui, sans-serif;
  color: #1c2733;
  background: #f6f7f8;
  font-size: 16px;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; line-height: 1.7; }
a { color: inherit; }
.site-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1040px) / 2));
  background: #15202a;
  color: #fff;
  border-bottom: 3px solid #2692d0;
}
.brand { font-size: 19px; font-weight: 700; text-decoration: none; }
.header-link { font-size: 14px; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
main { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 64px; }
.breadcrumbs { display: flex; gap: 10px; min-width: 0; margin-bottom: 32px; color: #607080; font-size: 13px; overflow: hidden; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-article { max-width: 880px; }
.policy-article { max-width: 760px; }
.guide-article { max-width: 800px; }
.policy-article > p { margin: 0; color: #526476; }
.guide-heading { padding-bottom: 28px; border-bottom: 1px solid #cbd2d8; }
.guide-heading > p:last-child { max-width: 720px; margin: 16px 0 0; color: #526476; font-size: 17px; }
.guide-article section > p { margin: 10px 0; }
.guide-index, .guide-links, .process-list { margin: 0; padding: 0; }
.guide-index { list-style: none; border-top: 1px solid #cbd2d8; }
.guide-index li { border-bottom: 1px solid #dbe0e4; }
.guide-index a { display: grid; gap: 5px; padding: 18px 4px; text-decoration: none; }
.guide-index strong { font-size: 17px; }
.guide-index span { color: #526476; font-size: 14px; }
.guide-links { display: grid; gap: 8px; padding-left: 20px; }
.guide-links a { color: #126da7; }
.process-list { display: grid; gap: 9px; padding-left: 24px; }
.term-table { border-top: 1px solid #cbd2d8; }
.term-table > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 15px 4px; border-bottom: 1px solid #dbe0e4; }
.term-table div > div { display: grid; gap: 2px; }
.term-table span { color: #687784; font-size: 12px; }
.term-table p { margin: 0; }
.guide-updated { margin-top: 44px; color: #687784; font-size: 12px; }
.policy-article h2 { margin-bottom: 8px; }
.policy-updated { margin-top: 42px !important; font-size: 13px; }
.product-heading { padding-bottom: 32px; border-bottom: 1px solid #cbd2d8; }
.vendor { margin: 0 0 6px; color: #526476; font-size: 14px; font-weight: 600; }
h1 { margin: 0; font-size: 38px; line-height: 1.3; overflow-wrap: anywhere; }
h2 { margin: 42px 0 14px; font-size: 20px; }
.headline-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.headline-status strong { font-size: 16px; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 9px; border: 1px solid; border-radius: 4px; font-size: 12px; font-weight: 700; }
.status.active { color: #14734b; background: #e8f5ee; border-color: #8dc9ad; }
.status.soon { color: #7a5b00; background: #fff7d6; border-color: #e7c959; }
.status.ended { color: #a32a36; background: #fcebee; border-color: #dfa1aa; }
.status.unknown { color: #53606c; background: #eef1f3; border-color: #bcc5cc; }
.detail-list, .source-list { margin: 0; border-top: 1px solid #cbd2d8; }
.detail-list > div, .source-list > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 15px 4px; border-bottom: 1px solid #dbe0e4; }
dt { color: #5b6976; font-size: 13px; font-weight: 600; }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.actions a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-action { background: #1677b8; color: #fff; border: 1px solid #1677b8; }
.secondary-action { border: 1px solid #9ba8b3; background: transparent; }
.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; border-top: 1px solid #cbd2d8; }
.related-list li { border-bottom: 1px solid #dbe0e4; }
.related-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; text-decoration: none; }
.related-list strong { overflow-wrap: anywhere; }
.related-list span { flex: 0 0 auto; color: #687784; font-size: 12px; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px max(24px, calc((100% - 1040px) / 2)); border-top: 1px solid #cbd2d8; color: #63717e; font-size: 12px; }

@media (prefers-color-scheme: dark) {
  :root { color: #e6eaed; background: #151718; }
  .site-header { background: #101213; }
  .vendor, dt, .breadcrumbs, footer, .related-list span { color: #aeb8c0; }
  .policy-article > p { color: #b7c0c7; }
  .product-heading, .guide-heading, .detail-list, .source-list, footer, .related-list, .guide-index, .term-table { border-color: #3b4146; }
  .detail-list > div, .source-list > div, .related-list li, .guide-index li, .term-table > div { border-color: #30363a; }
  .guide-heading > p:last-child, .guide-index span { color: #b7c0c7; }
  .guide-links a { color: #7fc7f2; }
  .status.active { color: #8ed4b2; background: #18382c; border-color: #387d5f; }
  .status.soon { color: #efd579; background: #3d3418; border-color: #776624; }
  .status.ended { color: #eca0a8; background: #402126; border-color: #7b3e46; }
  .status.unknown { color: #c0c7cd; background: #303438; border-color: #626a71; }
}

@media (max-width: 640px) {
  main { width: min(100% - 32px, 1040px); padding-top: 20px; }
  .breadcrumbs { margin-bottom: 22px; }
  h1 { font-size: 28px; }
  .detail-list > div, .source-list > div { grid-template-columns: 1fr; gap: 2px; }
  .term-table > div { grid-template-columns: 1fr; gap: 8px; }
  .related-list { grid-template-columns: 1fr; }
  .actions a { width: 100%; }
  footer { flex-direction: column; gap: 4px; }
}
