:root{
  --bg: #ffffff;
  --panel: rgba(0,0,0,.04);
  --panel2: rgba(0,0,0,.06);
  --text: rgba(0,0,0,.88);
  --muted: rgba(0,0,0,.60);
  --line: rgba(0,0,0,.12);
  --focus: rgba(0,0,0,.28);
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0,0,0,.10);
  --max: 1120px;

  /* 游ゴシック優先 */
  --font: "Yu Gothic", "YuGothic", "游ゴシック体", "Hiragino Kaku Gothic ProN",
          "Hiragino Sans", "Noto Sans JP", "Meiryo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  font-size: 16px;
}

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);

  /* メタボール背景を透かすためtransparentに変更（元: radial-gradient + var(--bg)）*/
  background: transparent;

  font-size: 16px;
  line-height: 2;

  /* 全テキストを太字に */
  font-weight: 700;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* リンク */
a{ color: inherit; text-decoration-color: rgba(0,0,0,.28); }
a:hover{ text-decoration-color: rgba(0,0,0,.72); }

.container{
  /* 左右マージンを広めに（本文の余白増） */
  width:min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.skiplink{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skiplink:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; border-radius:12px;
  background: rgba(0,0,0,.06);
  outline: 2px solid var(--focus);
  z-index: 9999;
  position: relative;
}

/* Reading progress */
.progress{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 80;
  background: transparent;
}
.progress-bar{
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: rgba(0,0,0,.45);
}

/* Header */
.site-header{
  position: sticky; top:0;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.6);
  z-index: 50;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 16px;
  min-width: 320px;
  min-height: 56px;
}
.brand-home{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.brand-logo{
  display:block;
  height: 52px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
}
.brand-text{
  font-size: 17px;
  color: rgba(0,0,0,.78);
  line-height: 1.35;
  white-space: nowrap;
}

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

.toc-toggle{
  display:none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.03);
  color: var(--text);
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.toc-toggle:active{ transform: translateY(1px) scale(.99); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  line-height: 1.35;
  transition: transform .10s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.btn:hover{ box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.btn:active{ transform: translateY(1px) scale(.99); box-shadow: 0 6px 18px rgba(0,0,0,.07); }

.btn-solid{
  color: #fff;
  border: none;

  /* グラデーションを大きく取り、positionアニメで色が移ろう */
  background: linear-gradient(
    135deg,
    #FF8C42 0%,
    #FF6B6B 33%,
    #FFB347 66%,
    #FF8C42 100%
  );
  background-size: 300% 300%;
  animation: btn-shimmer 6s ease-in-out infinite;

  box-shadow: 0 4px 14px rgba(255,140,66,.22);
  transition: transform .10s ease, box-shadow .25s ease;
}
.btn-solid:hover{
  color: #fff;
  box-shadow: 0 8px 28px rgba(255,107,107,.30);
  animation-duration: 3s; /* ホバーで少しだけ速く */
}

@keyframes btn-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-ghost{ background: transparent; }
.btn-ghost:hover{ background: rgba(0,0,0,.03); }
.w-full{ width:100%; }

/* Layout */
.layout{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  padding: 22px 0 48px;
}

/* TOC */
.toc{
  position: sticky;
  top: 104px;
  align-self: start;
  border-radius: var(--radius);
}
.toc-inner{
  position: relative;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.05);
  padding: 18px;
}
.toc-title{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.toc-list{ margin:0; padding-left: 18px; }
.toc-list a{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(0,0,0,.78);
  line-height: 1.65;
}
.toc-list a:hover{ background: rgba(0,0,0,.03); }

.toc-cta{ margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.toc-note{ color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 10px 0 0; }

/* Content */
.content{ min-width: 0; }

/* Anchor offset for sticky header */
.section, .hero{ scroll-margin-top: 110px; }

/* Parallax stage */
.parallax-stage{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.parallax-layer{
  position: absolute;
  inset: -22% -10%;
  pointer-events: none;
  transform: translate3d(0, var(--pY, 0px), 0);
  will-change: transform;
  z-index: 0;
}
.hero > :not(.parallax-layer){
  position: relative;
  z-index: 1;
}

.p-grid{
  opacity: .72;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.09), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(0,0,0,.08), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.06), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.02));
  filter: blur(.2px);
}

.p-blob{
  opacity: .65;
  filter: blur(22px);
  border-radius: 999px;
}
.p-blob-1{
  width: 520px;
  height: 520px;
  left: -120px;
  top: -180px;
  background: radial-gradient(circle at 40% 40%, rgba(0,0,0,.14), rgba(0,0,0,0) 60%);
}
.p-blob-2{
  width: 620px;
  height: 620px;
  right: -220px;
  bottom: -260px;
  background: radial-gradient(circle at 40% 40%, rgba(0,0,0,.12), rgba(0,0,0,0) 60%);
}

.parallax-divider{
  position: relative;
  height: 44px;
  margin: 12px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.02);
}
.parallax-divider-layer{
  position: absolute;
  inset: -50% -10%;
  transform: translate3d(0, var(--pY, 0px), 0);
  will-change: transform;
  opacity: .55;
  background:
    radial-gradient(circle at 25% 50%, rgba(0,0,0,.14), transparent 55%),
    radial-gradient(circle at 70% 50%, rgba(0,0,0,.10), transparent 58%);
}

/* Hero */
.hero{
  position: relative;
  padding: 26px 22px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.03));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 32px rgba(0,0,0,.05);
}
.hero-kicker{
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .08em;
  line-height: 1.6;
}

/* 見出しを大きく（緩急） */
.hero-title{
  margin: 10px 0 12px;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.22;
  letter-spacing: .01em;
}
.hero-lead{
  margin: 0 0 16px;
  color: rgba(0,0,0,.78);
  font-size: 17px;
  line-height: 2;
}

.hero-badges{ display:flex; gap:8px; flex-wrap: wrap; margin-bottom: 14px; }

.badge{
  display:inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  border: 1px solid var(--line);
  font-size: 13px;
  color: rgba(0,0,0,.78);
  line-height: 1.6;
}
.badge-soft{ background: rgba(0,0,0,.03); color: rgba(0,0,0,.68); }

.hero-actions{ display:flex; gap:10px; flex-wrap: wrap; }

/* Scroll hint */
.scroll-hint{
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(0,0,0,.55);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.5;
}
.scroll-hint-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  position: relative;
  overflow: hidden;
}
.scroll-hint-dot::after{
  content:"";
  position:absolute;
  left: 50%;
  top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  transform: translateX(-50%);
  animation: scrollDot 1.4s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ top: -8px; opacity: 0; }
  30%{ opacity: 1; }
  60%{ top: 14px; opacity: 1; }
  100%{ top: 14px; opacity: 0; }
}

/* Sections */
.section{
  position: relative;
  margin-top: 22px;

  /* 読む領域の左右余白を増やす */
  padding: 22px 24px;

  border-radius: var(--radius);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 32px rgba(0,0,0,.04);
}

/* =========================
   Heading Labels (theme)
   - H2: black bg + white text
   - H3: yellow bg + black text
   ========================= */

/* 大見出し：黒帯＋白文字 */
.section h2{
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;

  background: #2B2B2B;
  color: rgba(255,255,255,.98);

  font-size: 22px;
  line-height: 1.35;
  letter-spacing: .01em;

  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  overflow-wrap: anywhere;
}

/* 小見出し：黄色ラベル＋黒文字 */
.section h3{
  display: inline-block;
  margin: 22px 0 10px;
  padding: 8px 12px;
  border-radius: 12px;

  background: #FFD84D;
  color: rgba(0,0,0,.92);

  font-size: 18px;
  line-height: 1.4;
  letter-spacing: .01em;

  border: 1px solid rgba(0,0,0,.12);
}

/* H3の直後の本文がくっつき過ぎないように */
.section h3 + p{ margin-top: 10px; }

p{ margin: 12px 0; }

.muted{ color: var(--muted); }

.callout{
  margin: 0;
  padding: 16px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.5);
}

.note{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* Cards */
.cards{
  list-style: none;
  padding:0;
  margin: 16px 0 0;
  display:grid;
  gap: 12px;
}
.card{
  position: relative;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
  padding: 16px 16px;
}
.card h3{ margin: 0 0 8px; }

/* Lists */
.bullets{
  margin: 12px 0 0;
  padding-left: 20px;
}
.bullets li{ margin: 12px 0; }
.bullets strong{ color: rgba(0,0,0,.86); }

/* Steps */
.steps{ display:grid; gap: 12px; margin-top: 12px; }
.step{
  position: relative;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.step h3{ margin: 0 0 8px; }

/* Timeline */
.timeline{
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.25);
}
.tl-row{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 14px;
}
.tl-row + .tl-row{ border-top: 1px solid var(--line); }
.tl-time{
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(0,0,0,.62);
  line-height: 1.6;
}
.tl-body{ color: rgba(0,0,0,.80); }

/* Checklist */
.checklist{
  list-style: none;
  padding:0;
  margin: 12px 0 0;
}
.checklist li{
  padding: 12px 14px 12px 44px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 14px;
  background: rgba(255,255,255,.25);
  margin: 12px 0;
  position: relative;
}
.checklist li::before{
  content: "✓";
  position:absolute;
  left: 14px;
  top: 12px;
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  border: 1px solid var(--line);
  font-weight: 900;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(0,0,0,.72);
}

/* CTA band */
.cta-band{
  position: relative;
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.5);
}
.cta-title{ font-weight: 900; line-height: 1.6; font-size: 16px; }
.cta-sub{ color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Footer */
.page-footer{
  position: relative;
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.04);
}
.footer-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 10px; }

/* Reveal (micro motion) */
.reveal{
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
.reveal.is-in{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Focus */
:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Reduced motion: all motion off */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .parallax-layer,
  .parallax-divider-layer{
    transform: none !important;
    will-change: auto;
  }
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-hint-dot::after{ animation: none !important; }
  .btn-solid{ animation: none !important; }
}

/* Responsive */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }

  .toc{
    position: fixed;
    inset: 84px 12px 12px 12px;
    display:none;
  }
  .toc.is-open{ display:block; z-index: 60; }

  .toc-inner{
    height: 100%;
    overflow: auto;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .toc-toggle{ display:inline-flex; }
  .header-actions{ display:none; }

  .brand-text{
    white-space: normal;
    max-width: 32ch;
  }

  .p-blob{ opacity: .55; filter: blur(24px); }
  .p-grid{ opacity: .62; }

  .section{ padding: 20px 20px; }
  .hero{ padding: 22px 18px; }
}

@media (max-width: 520px){
  .container{
    width: calc(100% - 44px);
  }

  .brand{
    gap: 12px;
    min-width: 0;
    min-height: 52px;
  }
  .brand-logo{
    height: 42px;
    max-width: 320px;
  }
  .brand-text{
    font-size: 14px;
    line-height: 1.35;
    max-width: 26ch;
  }

  .hero{ padding: 20px 16px; }
  .section{ padding: 18px 18px; }
  .tl-row{ grid-template-columns: 1fr; }

  .parallax-divider{ height: 36px; }

  /* 小画面では見出しを少しだけ調整 */
  .section h2{
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 20px;
  }
  .section h3{
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 17px;
  }
}

/* パンくずリスト */
.breadcrumb { /* コンテナ */ }
.breadcrumb-list { /* ol: flex表示 */ }
.breadcrumb-list li + li::before { content: " > "; /* 区切り */ }

/* FAQセクション */
.faq-list { /* dl: 質問一覧コンテナ */ }
.faq-item { /* div: 各Q&Aのラッパー */ }
.faq-q { /* dt: 質問テキスト */ }
.faq-a { /* dd: 回答テキスト */ }

/* フッター内部リンク */
.footer-links { /* nav: リンク一覧 */ }

.breadcrumb {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}
.breadcrumb-list {
  list-style: none;       /* ← 番号を消す */
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  color: #999;
}
.breadcrumb-list li + li::before {
  content: "›";            /* 区切り記号 */
  margin-right: 0.15rem;
  color: #ccc;
}
.breadcrumb-list a {
  color: #999;
  text-decoration: none;
}
.breadcrumb-list a:hover {
  color: #2E86C1;
}
.breadcrumb-list [aria-current="page"] {
  color: #666;
}

.hero {
  background: rgba(255,255,255,.65) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.hero-title {
  text-shadow: none !important;
}

.hero-kicker {
  color: #1a1a1a !important;
}


.scroll-hint-dot {
  animation: scrollBounce 1.8s ease-in-out infinite !important;
}
@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(12px);
    opacity: 1;
  }
  60% {
    transform: translateY(12px);
    opacity: 0.3;
  }
  80% {
    transform: translateY(0);
    opacity: 0;
  }
  90% {
    opacity: 0;
  }
}
.scroll-hint-label {
  animation: scrollFade 1.8s ease-in-out infinite !important;
}
@keyframes scrollFade {
  0%, 100% { opacity: 1; }
  60%      { opacity: 1; }
  80%      { opacity: 0; }
  90%      { opacity: 0; }
}

.faq-q {
  display: flex !important;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.faq-q::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  line-height: 1;
}
.faq-a {
  margin-left: 0;
  padding-left: 2.2rem;  /* Qバッジの幅 + gap 分だけインデント */
  line-height: 1.8;
}

#mismatch dl.bullets {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
#mismatch dl.bullets dt {
  background: rgba(255,255,255,.35);
  border-left: 3px solid #1a1a1a;
  padding: 0.4rem 0.7rem;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-weight: bold;
  font-size: 0.95rem;
}
#mismatch dl.bullets dt:first-child {
  margin-top: 0;
}
#mismatch dl.bullets dd {
  margin-left: 0 !important;
  padding-left: 0.7rem;
  line-height: 1.8;
}