:root {
  --pink: #ff9fb2;
  --pink-deep: #e96f8d;
  --ink: #56677a;
  --muted: #8190a2;
  --line: #f4d9e1;
  --paper: rgba(255, 255, 255, .92);
  --shadow: 0 18px 55px rgba(111, 91, 120, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 183, 197, .24), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(184, 231, 239, .22), transparent 30rem),
    #fffafd;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.85;
}
a { color: var(--pink-deep); }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: #fff; padding: .7rem 1rem; }
.site-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem max(1rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(244, 217, 225, .8);
  background: rgba(255, 250, 253, .9);
  backdrop-filter: blur(14px);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 900; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem .9rem; }
.site-nav a { color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.site-nav .youtube { color: #d92929; }
.page-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.breadcrumbs { margin: .6rem 0 1.4rem; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--muted); }
.hero, .content-panel, .product-card, .guide-card, .toc {
  border: 1px solid rgba(244, 217, 225, .9);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 30px; align-items: center; }
.hero.single { grid-template-columns: 1fr; }
.eyebrow { margin: 0 0 .35rem; color: var(--pink-deep); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { margin-top: 0; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { margin-bottom: .35rem; }
.lead { margin: 0; color: #6f7f91; font-size: 1.03rem; }
.hero-media {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.chip { padding: .28rem .7rem; border: 1px solid #dce7ed; border-radius: 999px; background: #f7fbfc; color: #708398; font-size: .78rem; font-weight: 900; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.15rem; border: 1px solid var(--pink); border-radius: 999px; color: #fff; background: var(--pink); font-weight: 900; text-decoration: none; }
.button.secondary { color: var(--ink); background: #fff; border-color: #dce4ec; }
.content-panel { margin-top: 1.5rem; padding: clamp(1.35rem, 4vw, 2.5rem); border-radius: 26px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.toc { position: sticky; top: 5rem; padding: 1.2rem; border-radius: 18px; }
.content-grid > .toc { margin-top: 1.5rem; }
.toc strong { display: block; margin-bottom: .4rem; }
.toc a { display: block; padding: .28rem 0; color: var(--ink); font-size: .88rem; }
.check-list { padding-left: 1.25rem; }
.check-list li { margin: .45rem 0; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.spec-item { min-width: 0; padding: .9rem 1rem; border: 1px solid #e6edf1; border-radius: 15px; background: #f9fcfd; }
.spec-item dt { margin-bottom: .2rem; color: var(--muted); font-size: .76rem; font-weight: 900; }
.spec-item dd { margin: 0; color: var(--ink); font-size: .92rem; font-weight: 700; overflow-wrap: anywhere; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; min-height: 3rem; margin: 1rem 0; padding-left: 3.3rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: 50%; color: #fff; background: var(--pink); font-weight: 900; }
.product-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card, .guide-card { overflow: hidden; border-radius: 20px; box-shadow: none; }
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: .35rem;
  background: #fff;
}
.product-card-copy, .guide-card { padding: 1rem; }
.product-card h3, .guide-card h3 { margin-top: 0; font-size: 1rem; }
.product-card p, .guide-card p { color: var(--muted); font-size: .88rem; }
.text-link { font-weight: 900; text-underline-offset: .2em; }
.soft-note { padding: 1rem 1.2rem; border-left: 4px solid #a9dce5; border-radius: 0 14px 14px 0; background: #f2fbfd; }
.youtube-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.youtube-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 50%; color: #fff; background: #e22c2c; font-size: 1.3rem; }
.faq details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 900; }
.faq summary::marker { color: var(--pink-deep); }
.faq-answer { padding: .15rem 0 0 1rem; color: #6f7f91; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq code { padding: .1em .35em; border-radius: .35em; background: #fff1f5; color: #8b5361; overflow-wrap: anywhere; }
.faq pre { max-width: 100%; padding: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff8fa; line-height: 1.6; }
.faq pre code { padding: 0; background: transparent; white-space: pre-wrap; word-break: break-all; }
.site-footer { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.site-footer a { margin: 0 .35rem; }
.latest-spec-cta { text-align: center; }
.latest-spec-cta p:not(.eyebrow) { color: var(--muted); }
.mobile-latest-cta { display: none; }

@media (max-width: 820px) {
  .site-bar { position: static; align-items: flex-start; }
  .site-nav { gap: .35rem .7rem; }
  .hero, .content-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin: auto; }
  .toc { position: static; }
  .product-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .youtube-panel { grid-template-columns: auto 1fr; }
  .youtube-panel .button { grid-column: 1 / -1; }
  .mobile-latest-cta { position: fixed; z-index: 12; right: .75rem; bottom: .75rem; left: .75rem; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1rem; border-radius: 999px; color: #fff; background: var(--pink); box-shadow: 0 12px 30px rgba(111, 91, 120, .28); font-weight: 900; text-decoration: none; }
  body:has(.mobile-latest-cta) .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 540px) {
  .site-bar { display: block; }
  .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; width: 100%; margin-top: .5rem; }
  .site-nav a { padding: .25rem .1rem; text-align: center; font-size: .76rem; white-space: nowrap; }
  .page-shell { width: min(100% - 1rem, 1120px); padding-top: 1rem; }
  .hero, .content-panel { border-radius: 20px; }
  .product-grid, .guide-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
}
