:root {
  color-scheme: dark;
  --bg: #070a0d;
  --panel: #10171d;
  --panel-soft: #151e25;
  --line: rgba(183, 202, 216, 0.2);
  --text: #f4f8fa;
  --muted: #a9b7c1;
  --cyan: #3bc7d7;
  --green: #7fd16a;
  --gold: #f0ba5b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 0%, rgba(59, 199, 215, 0.12), transparent 30%),
    radial-gradient(circle at 8% 36%, rgba(127, 209, 106, 0.07), transparent 28%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  color: #26343d;
  background: rgba(247, 250, 252, 0.95);
  border-bottom: 1px solid rgba(15, 23, 29, 0.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 166px;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 13px;
  font-weight: 900;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #007f91;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-switch,
.header-cta {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 950;
}

.language-switch {
  background: #fff;
  border: 2px solid #26343d;
}

.header-cta {
  color: #071014;
  background: var(--cyan);
}

.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 72px) 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: #677681;
  content: "/";
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 72px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.guide-hero--hub {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.guide-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(40px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.guide-hero h1 span {
  display: block;
  color: var(--cyan);
}

.guide-lead {
  max-width: 760px;
  margin-bottom: 26px;
  color: #d5dfe5;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.byline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-visual {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #05090d;
  border: 1px solid rgba(59, 199, 215, 0.34);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.hero-visual figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hero-topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-topic-grid div {
  min-height: 126px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(21, 30, 37, 0.98), rgba(8, 13, 17, 0.98));
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero-topic-grid strong,
.hero-topic-grid span {
  display: block;
}

.hero-topic-grid strong {
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 20px;
}

.hero-topic-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(50px, 6.5vw, 82px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(29px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-heading p:last-child,
.body-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.guide-grid,
.point-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.guide-card,
.point-card,
.related-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(145deg, rgba(20, 29, 36, 0.98), rgba(9, 14, 18, 0.98));
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.guide-card:hover,
.guide-card:focus-visible,
.related-card:hover,
.related-card:focus-visible {
  border-color: rgba(59, 199, 215, 0.72);
  transform: translateY(-2px);
}

.guide-card img {
  width: 100%;
  margin-bottom: 24px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
}

.card-label {
  margin-bottom: 11px;
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.guide-card h2,
.guide-card h3,
.point-card h3,
.related-card h3 {
  margin-bottom: 13px;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.25;
}

.guide-card p,
.point-card p,
.related-card p {
  color: var(--muted);
  line-height: 1.75;
}

.card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 950;
}

.comparison {
  width: 100%;
  overflow: hidden;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.comparison th,
.comparison td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.comparison th {
  color: #071014;
  background: var(--cyan);
  font-size: 13px;
}

.comparison td {
  color: #dbe5ea;
  line-height: 1.65;
}

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

.step-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 16px;
  list-style: none;
  counter-reset: guide-step;
}

.step-list li {
  position: relative;
  min-height: 92px;
  padding: 22px 24px 22px 88px;
  background: rgba(17, 25, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  counter-increment: guide-step;
}

.step-list li::before {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #071014;
  background: var(--cyan);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 950;
  content: counter(guide-step, decimal-leading-zero);
}

.step-list h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.step-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.screen-block {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 30px;
  align-items: center;
}

.screen-block img {
  width: 100%;
  border: 1px solid rgba(59, 199, 215, 0.3);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.screen-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 42px);
  text-wrap: balance;
}

.screen-copy p,
.screen-copy li {
  color: var(--muted);
  line-height: 1.75;
}

.checklist {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 15px 18px 15px 50px;
  color: #dce6eb;
  background: rgba(18, 27, 33, 0.86);
  border: 1px solid var(--line);
  border-radius: 9px;
  line-height: 1.6;
}

.checklist li::before {
  position: absolute;
  top: 14px;
  left: 18px;
  color: var(--green);
  font-weight: 950;
  content: "✓";
}

.note-box {
  padding: 24px 26px;
  color: #dce6eb;
  background: rgba(240, 186, 91, 0.08);
  border: 1px solid rgba(240, 186, 91, 0.36);
  border-radius: 11px;
  line-height: 1.75;
}

.note-box strong {
  color: var(--gold);
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, rgba(59, 199, 215, 0.12), rgba(127, 209, 106, 0.06));
  border: 1px solid rgba(59, 199, 215, 0.34);
  border-radius: 16px;
}

.cta-section h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.6vw, 42px);
  text-wrap: balance;
}

.cta-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
}

.button-primary {
  color: #071014;
  background: var(--cyan);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(20px, 5vw, 72px);
  gap: 24px;
  color: var(--muted);
  background: #05080a;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer img {
  width: 150px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

@media (max-width: 1100px) {
  .guide-hero,
  .guide-hero--hub,
  .screen-block {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(100%, 760px);
  }

  .screen-block > img {
    width: min(100%, 840px);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .cta-section {
    grid-template-columns: 1fr;
  }

  .button-group {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 10px 16px;
  }

  .brand img {
    width: 132px;
  }

  .header-cta {
    display: none;
  }

  .language-switch {
    min-height: 34px;
    padding: 7px 10px;
  }

  .guide-hero { gap: 28px; padding: 44px 20px; }

  .guide-hero h1 {
    font-size: clamp(38px, 11.5vw, 50px);
  }

  .section { padding: 44px 20px; }
  .section-heading { margin-bottom: 26px; }

  .hero-topic-grid,
  .guide-grid,
  .point-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .comparison-wrap {
    overflow-x: auto;
  }

  .comparison {
    min-width: 660px;
  }

  .step-list li {
    padding: 78px 20px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
