:root {
  --brand-dark: #002d57;
  --brand-blue: #005caf;
  --accent-light: #f8fafd;
  --text-main: #1d1d1f;
  --text-sub: #6e6e73;
  --border: #eef1f5;
  --bg-white: #ffffff;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("./fonts/NotoSansJP-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; /* 可変範囲 */
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.site-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

/* 共通ヘッダー */
.page-header {
  padding: 50px 0 30px;
}
.page-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 15px;
}
.page-header p {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.8;
}

.page-header .highlight {
  font-weight: 700;
  color: var(--brand-main);
}

/* セクション */
.content-section {
  margin-bottom: 54px;
}
.section-title {
  margin-bottom: 30px;
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 10px;
}
.section-title h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* スペックグリッド */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.spec-card {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
}
.spec-card:nth-child(1),
.spec-card:nth-child(2) {
  border-top: none;
  padding-top: 0;
}
.spec-card.full-width {
  grid-column: span 2;
}

.spec-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.spec-body {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
}

.spec-entry {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 8.125rem;
}
.spec-entry:last-child {
  margin-bottom: 0;
}
.spec-entry h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--brand-dark);
}

.spec-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-header h3 {
  margin: 0;
  flex-shrink: 0;
}
.version-info {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
}
.spec-entry p {
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

/* 通信回線（バランス調整版） */
.connection-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: var(--accent-light);
  padding: 30px;
  border-radius: 16px;
}

.speed-info {
  flex: 1;
  min-width: 200px;
}
.speed-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.speed-row:last-child {
  margin-bottom: 0;
}

.type-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 12px;
  min-width: 75px;
  text-align: center;
  display: inline-block;
}
.speed-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.connection-desc {
  flex: 1;
  min-width: 250px;
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
}
.connection-desc p {
  margin-bottom: 8px;
}

/* 低遅延配信 */
.webrtc-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.webrtc-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.webrtc-row:nth-last-of-type(1) {
  border-bottom: none;
}
.device-tag {
  min-width: 80px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: #fff;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  text-align: center;
}
.webrtc-row p {
  font-size: 0.9rem;
  color: var(--text-main);
}
.webrtc-note {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 30px;
}

/* フッター */
.content-footer {
  padding: 40px 0 80px;
}
.notice-container {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 30px;
}
.notice-container li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
  list-style: none;
}
.notice-container li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: bold;
}
.notice-container a {
  color: var(--brand-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-blue);
}
.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: #bbb;
}

@media (max-width: 768px) {
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .spec-card.full-width {
    grid-column: auto;
  }
  .connection-layout {
    flex-direction: column;
    gap: 20px;
  }
}
