:root {
  --tech-ink: #0d2343;
  --tech-muted: #596b7f;
  --tech-blue: #075fb8;
  --tech-blue-dark: #08376b;
  --tech-green: #0a9b51;
  --tech-cyan: #eaf7ff;
  --tech-soft: #f6fbff;
  --tech-amber: #f5a623;
  --tech-coral: #e35050;
  --tech-line: #d5e3ef;
  --tech-paper: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.tech-trouble-page {
  margin: 0;
  color: var(--tech-ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(30, 144, 255, .08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7fbff 56%, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.76;
}

.tech-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--tech-line);
}

.tech-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--tech-ink);
  text-decoration: none;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 950;
  letter-spacing: 0;
}

.tech-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--tech-blue);
  border-radius: 8px;
  color: var(--tech-blue);
  background: #fff;
  font-size: 22px;
  font-weight: 950;
}

.tech-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 16px;
  font-weight: 850;
}

.tech-nav a {
  color: var(--tech-ink);
  text-decoration: none;
}

.tech-search {
  display: flex;
  align-items: center;
  width: min(330px, 28vw);
  height: 44px;
  border: 1px solid var(--tech-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.tech-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.tech-search button,
.tech-help-button,
.tech-primary-button {
  border: 0;
  background: var(--tech-blue-dark);
  color: #fff;
  font-weight: 950;
}

.tech-search button {
  width: 48px;
  height: 44px;
  font-size: 20px;
}

.tech-help-button,
.tech-primary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-size: 16px;
}

.tech-help-button { white-space: nowrap; }

.tech-hero {
  padding: clamp(34px, 5vw, 72px) clamp(18px, 4vw, 56px) 28px;
}

.tech-hero-grid {
  max-width: 1510px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.tech-breadcrumb {
  color: var(--tech-blue);
  font-size: 16px;
  font-weight: 850;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eaf9ef;
  color: var(--tech-green);
  font-size: 16px;
  font-weight: 950;
}

.tech-hero h1 {
  margin: 12px 0 10px;
  color: var(--tech-ink);
  font-size: clamp(46px, 5.3vw, 86px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 950;
}

.tech-hero h1 .accent { color: var(--tech-green); }

.tech-subtitle {
  margin: 0 0 18px;
  color: var(--tech-blue-dark);
  font-size: clamp(26px, 2.5vw, 42px);
  line-height: 1.25;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: #9ed1ff;
  text-underline-offset: 8px;
}

.tech-lead {
  max-width: 740px;
  margin: 0;
  color: #263b55;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.7;
  font-weight: 650;
}

.tech-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 18px;
}

.tech-action {
  min-height: 132px;
  display: grid;
  grid-template-columns: 58px 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 2px solid #70b9ef;
  border-radius: 8px;
  color: var(--tech-ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(7, 95, 184, .08);
}

.tech-action:first-child { border-color: #5ac27c; }

.tech-action-icon,
.tech-mini-icon,
.tech-step-icon {
  display: grid;
  place-items: center;
  font-weight: 950;
}

.tech-action-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: var(--tech-blue);
  font-size: 28px;
}

.tech-action:first-child .tech-action-icon { background: var(--tech-green); }

.tech-action b {
  display: block;
  color: var(--tech-blue-dark);
  font-size: clamp(22px, 1.65vw, 28px);
  line-height: 1.24;
  white-space: nowrap;
}

.tech-action p {
  margin: 6px 0 0;
  color: #536476;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}

.tech-action-arrow {
  color: var(--tech-blue);
  font-size: 32px;
  font-weight: 950;
}

.tech-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tech-topic-tags span {
  padding: 7px 12px;
  border: 1px solid var(--tech-line);
  border-radius: 999px;
  color: var(--tech-blue-dark);
  background: #fff;
  font-size: 15px;
  font-weight: 850;
}

.tech-diagnostic {
  border: 1px solid var(--tech-line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 46px rgba(7, 40, 85, .08);
}

.tech-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.tech-panel-head h2,
.tech-section-head h2,
.tech-side-card h2 {
  margin: 0;
  color: var(--tech-ink);
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.3;
  letter-spacing: 0;
}

.tech-panel-head small {
  color: var(--tech-muted);
  font-size: 15px;
  font-weight: 800;
}

.tech-device-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--tech-line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.tech-device-tabs span {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--tech-line);
  background: #fff;
  color: var(--tech-ink);
  font-size: 16px;
  font-weight: 900;
}

.tech-device-tabs span:last-child { border-right: 0; }
.tech-device-tabs span.active {
  color: #fff;
  background: var(--tech-blue-dark);
}

.tech-check-table {
  border: 1px solid var(--tech-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.tech-check-row {
  display: grid;
  grid-template-columns: 42px 1fr 112px 94px;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tech-line);
}

.tech-check-row:last-child { border-bottom: 0; }

.tech-mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--tech-blue);
  background: var(--tech-cyan);
  font-size: 18px;
}

.tech-check-row b {
  display: block;
  color: #21364f;
  font-size: 17px;
  line-height: 1.35;
}

.tech-check-row em {
  display: block;
  color: var(--tech-muted);
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
}

.tech-status {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
}

.tech-status.ok { color: var(--tech-green); background: #eaf9ef; }
.tech-status.warn { color: #a56300; background: #fff3d7; }
.tech-status.alert { color: var(--tech-coral); background: #fff0ef; }

.tech-confirm {
  min-height: 36px;
  border: 1px solid #bcd0e0;
  border-radius: 8px;
  background: #fff;
  color: var(--tech-blue);
  font-size: 14px;
  font-weight: 950;
}

.tech-safe-note {
  display: grid;
  grid-template-columns: 46px 1fr minmax(190px, 260px);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #b9e3c5;
  border-radius: 8px;
  background: #f3fff7;
}

.tech-safe-note strong {
  display: block;
  color: var(--tech-green);
  font-size: 18px;
}

.tech-safe-note p {
  margin: 2px 0 0;
  color: #415269;
  font-size: 15px;
  font-weight: 700;
}

.tech-shell {
  max-width: 1510px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}

.tech-section,
.tech-side-card {
  border: 1px solid var(--tech-line);
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 34px rgba(7, 40, 85, .05);
}

.tech-section {
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 32px);
}

.tech-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.tech-section-head p {
  margin: 0;
  color: var(--tech-muted);
  font-size: 16px;
  font-weight: 750;
}

.tech-step-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tech-step-card {
  min-height: 182px;
  padding: 20px;
  border: 1px solid var(--tech-line);
  border-radius: 8px;
  background: #fff;
}

.tech-step-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--tech-blue);
}

.tech-step-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.tech-step-card p {
  margin: 0;
  color: #3f5065;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 650;
}

.tech-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--tech-line);
  border-radius: 8px;
  background: #fff;
}

.tech-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.tech-table th,
.tech-table td {
  padding: 15px 16px;
  border-right: 1px solid var(--tech-line);
  border-bottom: 1px solid var(--tech-line);
  vertical-align: top;
  font-size: 16px;
}

.tech-table th {
  color: var(--tech-blue-dark);
  background: #f2f8ff;
  font-weight: 950;
}

.tech-table td {
  color: #31445c;
  font-weight: 650;
}

.tech-table tr:last-child td { border-bottom: 0; }
.tech-table th:last-child,
.tech-table td:last-child { border-right: 0; }

.tech-danger {
  border-color: #f0c6c6;
  background: #fff8f8;
}

.tech-danger h2 {
  margin: 0 0 12px;
  color: #b32323;
  font-size: clamp(26px, 2.2vw, 34px);
}

.tech-danger ul,
.tech-ref-list,
.tech-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-danger li,
.tech-ref-list li {
  position: relative;
  margin: 9px 0;
  padding-left: 20px;
  color: #334862;
  font-weight: 750;
}

.tech-danger li::before,
.tech-ref-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tech-coral);
}

.tech-side-sticky {
  position: sticky;
  top: 18px;
}

.tech-side-card {
  margin-bottom: 18px;
  padding: 20px;
}

.tech-toc a,
.tech-ref-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tech-line);
  color: var(--tech-ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
}

.tech-toc li:last-child a,
.tech-ref-list li:last-child a { border-bottom: 0; }

.tech-support {
  border-top: 4px solid var(--tech-blue);
}

.tech-support strong {
  display: block;
  font-size: 21px;
  line-height: 1.35;
}

.tech-support p {
  margin: 8px 0 14px;
  color: var(--tech-muted);
  font-size: 16px;
  font-weight: 700;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 94px;
  margin: 18px 0;
  border: 1px dashed #c8d8e6;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #7b8ca0;
  font-size: 14px;
  font-weight: 850;
}

.tech-footer {
  padding: 32px 18px 44px;
  text-align: center;
  border-top: 1px solid var(--tech-line);
  background: #fff;
  color: var(--tech-muted);
  font-size: 15px;
}

.tech-footer a {
  color: var(--tech-blue);
  text-decoration: none;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .tech-nav { display: none; }
  .tech-search { width: min(320px, 40vw); }
  .tech-hero-grid,
  .tech-shell { grid-template-columns: 1fr; }
  .tech-side-sticky {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .tech-side-card { margin-bottom: 0; }
}

@media (max-width: 760px) {
  body.tech-trouble-page { font-size: 17px; }

  .tech-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .tech-help-button { display: none; }
  .tech-search { width: 100%; }
  .tech-hero { padding-top: 28px; }
  .tech-hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .tech-subtitle { font-size: 25px; }
  .tech-lead { font-size: 18px; }

  .tech-actions,
  .tech-step-flow,
  .tech-side-sticky,
  .tech-safe-note {
    grid-template-columns: 1fr;
  }

  .tech-action {
    min-height: 116px;
    grid-template-columns: 54px 1fr 22px;
    padding: 18px;
  }

  .tech-action b {
    font-size: 25px;
  }

  .tech-diagnostic { padding: 16px; }

  .tech-device-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-device-tabs span:nth-child(2) {
    border-right: 0;
  }

  .tech-device-tabs span:nth-child(-n+2) {
    border-bottom: 1px solid var(--tech-line);
  }

  .tech-check-row {
    grid-template-columns: 38px 1fr;
    gap: 10px;
  }

  .tech-status,
  .tech-confirm {
    grid-column: 2;
    justify-self: start;
  }

  .tech-section { padding: 20px; }
  .tech-section-head { display: block; }
  .tech-section-head p { margin-top: 8px; }

  .tech-table-wrap { overflow-x: visible; }
  .tech-table { min-width: 0; }
  .tech-table thead { display: none; }
  .tech-table,
  .tech-table tbody,
  .tech-table tr,
  .tech-table td {
    display: block;
    width: 100%;
  }
  .tech-table tr { border-bottom: 1px solid var(--tech-line); }
  .tech-table tr:last-child { border-bottom: 0; }
  .tech-table td {
    border-right: 0;
    padding: 13px 14px;
  }
  .tech-table td:first-child {
    background: #f2f8ff;
    color: var(--tech-blue-dark);
    font-weight: 950;
  }
}
