:root {
  --pink: #f64f7f;
  --lav: #8f76d9;
  --ink: #38233e;
  --muted: #746879;
  --line: #eadfe9;
  --soft: #fff4f8;
  --font: "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0, #fff9fc 48%, #fff);
  font-family: var(--font);
  line-height: 1.85;
}
a {
  color: inherit;
}
.shell {
  width: min(1040px, calc(100% - 40px));
  max-width: 100%;
  margin-inline: auto;
}
.guide-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 10px max(20px, calc((100vw - 1040px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.guide-header nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.guide-header nav a {
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 25px #f64f7f28;
}
.button.outline {
  background: #fff;
  color: var(--ink);
  border-color: #cdbbc9;
  box-shadow: none;
}
.breadcrumbs {
  padding-top: 28px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumbs a {
  color: var(--pink);
}
.guide-hero {
  padding: 44px 0 54px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.guide-hero h1 {
  max-width: 850px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.guide-hero .lead {
  max-width: 790px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 18px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.chips span {
  padding: 7px 12px;
  border: 1px solid #f0c8d5;
  border-radius: 999px;
  background: #fff7fa;
  color: #8b5367;
  font-size: 12px;
  font-weight: 900;
}
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 44px;
  align-items: start;
}
.article {
  min-width: 0;
}
.article section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.article h2 {
  margin: 0 0 15px;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.35;
}
.article h3 {
  margin: 25px 0 8px;
  font-size: 20px;
}
.article p {
  margin: 10px 0;
}
.article ul,
.article ol {
  padding-left: 1.4em;
}
.article li {
  margin: 8px 0;
}
.summary {
  padding: 24px;
  border: 1px solid #f0cad7;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff4f8, #f8f4ff);
}
.summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 18px;
}
.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.steps li:before {
  content: counter(step);
  display: grid;
  place-items: center;
  position: absolute;
  left: 16px;
  top: 17px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.compare th,
.compare td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare th {
  background: #fff1f5;
  font-size: 13px;
}
.compare tr:last-child td {
  border-bottom: 0;
}
.note {
  padding: 18px 20px;
  border-left: 4px solid var(--lav);
  border-radius: 4px 16px 16px 4px;
  background: #f8f5ff;
}
.cta {
  margin: 38px 0;
  padding: 30px;
  border-radius: 25px;
  background: linear-gradient(135deg, #3f2945, #6c456e);
  color: #fff;
}
.cta h2 {
  margin: 0 0 8px;
}
.cta p {
  color: #f0e7f2;
}
.toc {
  position: sticky;
  top: 92px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 40px #4d2c5910;
}
.toc b {
  display: block;
  margin-bottom: 10px;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.toc a:hover {
  color: var(--pink);
}
.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 900;
}
.related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.related a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}
.guide-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  padding: 30px max(20px, calc((100vw - 1040px) / 2));
  border-top: 1px solid var(--line);
}
.guide-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}
.guide-footer a {
  font-size: 12px;
  text-decoration: none;
}
@media (max-width: 760px) {
  .guide-header {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding-inline: 12px;
    overflow: hidden;
  }
  .guide-header nav {
    display: none;
  }
  .guide-header .brand {
    min-width: 0;
    font-size: 15px;
  }
  .guide-header .brand img {
    width: 31px;
    height: 31px;
  }
  .guide-header .button {
    min-width: 0;
    margin-left: auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    order: -1;
  }
  .guide-hero {
    padding-top: 30px;
  }
  .guide-hero .lead {
    font-size: 16px;
  }
  .related {
    grid-template-columns: 1fr;
  }
  .compare-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  .compare {
    min-width: 620px;
  }
  .guide-footer div {
    width: 100%;
    margin: 0;
  }
}
