:root {
  --home-ink: #17212b;
  --home-muted: #5a6773;
  --home-teal: #00796f;
  --home-teal-dark: #005c55;
  --home-mint: #e9f7f4;
  --home-warm: #fff9ee;
  --home-coral: #d95f4c;
  --home-yellow: #f4b232;
  --home-line: #d7e3df;
  --home-paper: #ffffff;
  --home-bg: #fbfaf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home-trouble-page {
  margin: 0;
  color: var(--home-ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,249,238,.7) 42%, rgba(247,252,250,.95)),
    var(--home-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.78;
  font-size: 18px;
}

.home-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--home-line);
}

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

.home-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--home-teal);
  border-radius: 8px;
  font-weight: 950;
}

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

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

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

.home-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

.home-search button {
  width: 48px;
  height: 44px;
  border: 0;
  background: var(--home-teal);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.home-hero {
  padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 56px) 38px;
}

.home-hero-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .92fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
}

.home-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 850;
}

.home-hero h1 {
  margin: 26px 0 18px;
  color: var(--home-ink);
  font-size: clamp(44px, 5.2vw, 86px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 950;
}

.home-lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: #26323d;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.65;
  font-weight: 650;
}

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

.home-action {
  min-height: 136px;
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border: 2px solid var(--home-teal);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--home-ink);
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(0,70,65,.08);
}

.home-action-icon,
.home-mini-icon,
.home-card-icon {
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  color: var(--home-teal);
  background: var(--home-mint);
  font-weight: 950;
}

.home-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 26px;
}

.home-action b {
  display: block;
  color: var(--home-teal-dark);
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.2;
  white-space: nowrap;
}

.home-action span:last-child {
  color: var(--home-teal);
  font-size: 32px;
  font-weight: 950;
}

.home-action p {
  margin: 8px 0 0;
  color: #394752;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 650;
}

.home-info-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  padding: 14px 18px;
  border: 1px solid #a9cfc9;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: #2c4650;
  font-size: 17px;
  font-weight: 750;
}

.home-info-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--home-teal);
  color: #fff;
  font-weight: 950;
}

.home-diagnosis {
  padding: 24px;
  border: 1px solid #bfcfcb;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 52px rgba(18,62,52,.09);
}

.home-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.home-panel-title h2,
.home-section-head h2,
.home-aside h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.3;
  letter-spacing: 0;
}

.home-panel-title small {
  display: block;
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 700;
}

.home-reset {
  padding: 8px 12px;
  border: 1px solid #b7c9c5;
  border-radius: 8px;
  background: #fff;
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 850;
}

.home-diagnosis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .68fr);
  gap: 18px;
}

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

.home-check-row {
  display: grid;
  grid-template-columns: 42px 1fr 26px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--home-line);
  color: #2c3844;
  font-size: 16px;
  font-weight: 750;
}

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

.home-mini-icon {
  width: 32px;
  height: 32px;
  border-width: 1px;
  border-radius: 8px;
  background: #f7fcfb;
  font-size: 17px;
}

.home-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #9aacaa;
  border-radius: 5px;
  background: #fff;
}

.home-status-card,
.home-danger-card {
  border-radius: 8px;
  border: 1px solid var(--home-line);
  padding: 18px;
  background: #fff;
}

.home-status-card {
  min-height: 176px;
  display: grid;
  place-items: center;
  text-align: center;
}

.home-status-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border: 2px solid var(--home-teal);
  border-radius: 12px;
  color: var(--home-teal);
  font-size: 27px;
  font-weight: 950;
}

.home-status-card b {
  display: block;
  font-size: 19px;
}

.home-status-card p {
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 700;
}

.home-danger-card {
  margin-top: 14px;
  background: #fff8e9;
  border-color: #e6c47a;
}

.home-danger-card b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #805200;
  font-size: 18px;
}

.home-danger-card ul,
.home-toc ul,
.home-side-list,
.home-ng ul,
.home-reference-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.home-danger-card li,
.home-side-list li,
.home-ng li,
.home-reference-list li {
  position: relative;
  padding-left: 18px;
  margin: 7px 0;
  color: #35414c;
  font-size: 16px;
  font-weight: 700;
}

.home-danger-card li::before,
.home-side-list li::before,
.home-ng li::before,
.home-reference-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .77em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-teal);
}

.home-primary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  margin-top: 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--home-teal);
  text-decoration: none;
  font-size: 18px;
  font-weight: 950;
}

.home-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
}

.home-section,
.home-aside-card {
  border: 1px solid #c7d8d4;
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 36px rgba(18,62,52,.06);
}

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

.home-section-head {
  display: flex;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

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

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.home-card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  border-radius: 12px;
  font-size: 24px;
}

.home-step-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.36;
}

.home-step-card p {
  margin: 0;
  color: #3c4853;
  font-size: 17px;
  font-weight: 650;
}

.home-time {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--home-mint);
  color: var(--home-teal-dark);
  font-size: 14px;
  font-weight: 900;
}

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

.home-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

.home-table th {
  background: #fff8e9;
  color: #2e3944;
  font-weight: 950;
}

.home-table td {
  color: #33404b;
  font-weight: 650;
}

.home-table tr:last-child td {
  border-bottom: 0;
}

.home-table th:last-child,
.home-table td:last-child {
  border-right: 0;
}

.home-answer-box {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 2px solid var(--home-teal);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef9f6);
}

.home-answer-label {
  display: grid;
  place-items: center;
  min-height: 116px;
  border-radius: 8px;
  background: var(--home-teal);
  color: #fff;
  text-align: center;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 950;
}

.home-answer-box h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 2.3vw, 38px);
  line-height: 1.32;
}

.home-answer-box p {
  margin: 0;
  color: #35424d;
  font-size: 19px;
  font-weight: 700;
}

.home-ng {
  background: #fff7f4;
  border-color: #e3b3aa;
}

.home-ng h2 {
  margin: 0 0 12px;
  color: #8b2f23;
  font-size: clamp(26px, 2.2vw, 34px);
}

.home-aside {
  position: relative;
}

.home-aside-sticky {
  position: sticky;
  top: 18px;
}

.home-aside-card {
  margin-bottom: 18px;
  padding: 20px;
}

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

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

.home-support {
  border: 2px solid var(--home-teal);
  background: #f8fffd;
}

.home-support strong {
  display: block;
  color: var(--home-teal-dark);
  font-size: 22px;
  line-height: 1.35;
}

.home-support p {
  margin: 8px 0 14px;
  color: #41505b;
  font-size: 16px;
  font-weight: 700;
}

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

.home-footer a {
  color: var(--home-teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin: 20px 0;
  border: 1px dashed #c8d7d4;
  border-radius: 8px;
  color: #7b8986;
  background: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .home-nav {
    display: none;
  }

  .home-search {
    width: min(300px, 42vw);
  }

  .home-hero-grid,
  .home-shell {
    grid-template-columns: 1fr;
  }

  .home-aside-sticky {
    position: static;
  }

  .home-aside {
    order: -1;
  }

  .home-aside-sticky {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .home-aside-card {
    margin: 0;
  }
}

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

  .home-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-search {
    width: 100%;
  }

  .home-hero {
    padding-top: 28px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .home-lead {
    font-size: 19px;
  }

  .home-actions,
  .home-diagnosis-grid,
  .home-card-grid,
  .home-aside-sticky,
  .home-answer-box {
    grid-template-columns: 1fr;
  }

  .home-action {
    min-height: 118px;
    grid-template-columns: 48px 1fr 22px;
    padding: 18px;
  }

  .home-action b {
    font-size: 26px;
  }

  .home-diagnosis {
    padding: 16px;
  }

  .home-check-row {
    grid-template-columns: 36px 1fr 24px;
    font-size: 15px;
  }

  .home-section {
    padding: 20px;
  }

  .home-table-wrap {
    overflow-x: visible;
  }

  .home-table {
    min-width: 0;
  }

  .home-table thead {
    display: none;
  }

  .home-table,
  .home-table tbody,
  .home-table tr,
  .home-table td {
    display: block;
    width: 100%;
  }

  .home-table tr {
    border-bottom: 1px solid var(--home-line);
  }

  .home-table tr:last-child {
    border-bottom: 0;
  }

  .home-table td {
    border-right: 0;
    padding: 13px 14px;
  }

  .home-table td:first-child {
    background: #fff8e9;
    color: var(--home-ink);
    font-weight: 950;
  }

  .home-section-head {
    display: block;
  }

  .home-section-head p {
    margin-top: 8px;
  }

  .home-answer-label {
    min-height: 72px;
  }
}
