:root{
  --text:#111;
  --muted:#555;
  --line:#e8e8e8;
  --alt:#f7f7f7;
  --accent:#1e5aa8; /* 青1色だけ */
}

/* ------------------------------
  base
------------------------------ */
*{box-sizing:border-box;}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.7;
}
.wrap{max-width:980px;margin:0 auto;padding:0 18px;}
.muted{color:var(--muted);}
.mt{margin-top:18px;}
.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}

/* ------------------------------
  minimal header (message line)
------------------------------ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--accent);
}
.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
}
.header-message{
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

/* ※ヘッダーのスクロール変化を使う場合（header-scroll.js） */
.site-header{
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled{
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.header-message a{ color: inherit; text-decoration:none; }
.header-message a:hover{ text-decoration:underline; }

/* ------------------------------
  hero
------------------------------ */
.hero{
  padding: 72px 20px 54px; /* ←左右20pxを残す */
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,0));
}

.hero-wrap{
  max-width: 860px;
  margin: 0 auto;
}

.hero-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: .02em;
}

.hero-sub{
  margin: 0 0 22px;
  opacity: .8;
  font-size: 15px;
}

.hero-lead{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}

.hero-desc{
  max-width: 720px;
  margin: 0 auto 18px;
  line-height: 1.75;
}

.hero-badges{
  margin: 0 0 22px;
}

.hero-badges span{
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  font-size: 13px;
  margin: 4px;
  opacity: .9;
}

.hero-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 既存のcta-primary / cta-secondary をそのまま活かす */
.cta-primary{
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.2);
}

.cta-secondary{
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  opacity: .85;
  border: 1px solid rgba(0,0,0,.12); /* ←薄い枠を足すと締まる */
}

.hero-desc br{ display:none; }
@media (min-width: 700px){
  .hero-desc br{ display:inline; }
}

/* ------------------------------
  sections / components
------------------------------ */
.cta{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  padding:12px 16px;
  border-radius:12px;
  font-weight:700;
}
.section{padding:42px 0;}
.section.alt{background:var(--alt);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}

h2{font-size:24px;margin:0 0 16px;}
.big{font-size:18px;font-weight:700;margin:0 0 14px;}

.checks{margin:0;padding-left:18px;}
.checks li{margin:6px 0;}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  background:#fff;
}
.card h3{margin:0 0 8px;font-size:18px;}
.card p{margin:0;color:var(--muted);}

.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.box{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  background:#fff;
}
.box h3{margin:0 0 8px;}
.box ul{margin:0;padding-left:18px;}
.box li{margin:6px 0;}


/*--------追記---------*/
/* セクションのリズム統一 */
.section{
  padding: 64px 20px;
}

.section.alt{
  background: rgba(0,0,0,.02);
}

/* セクション内のwrap幅 */
.section .wrap{
  max-width: 960px;
  margin: 0 auto;
}
.section h2{
  margin: 0 0 28px;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: .02em;
}

.section h3{
  margin: 32px 0 14px;
}

.section h4{
  margin: 18px 0 10px;
}

section{
  scroll-margin-top: 100px;
}

/* ------------------------------
  form
------------------------------ */
.form{
  max-width:720px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  background:#fff;
}
.row{margin:12px 0;}
label{display:block;font-weight:700;margin:0 0 6px;}
.req{font-size:12px;color:var(--accent);margin-left:6px;font-weight:700;}
input, select, textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:16px;
  background:#fff;
}
.row.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}

.actions{margin-top:14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
button{
  background:var(--accent);
  color:#fff;
  border:0;
  padding:12px 16px;
  border-radius:12px;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}
button:disabled{opacity:.7;cursor:not-allowed;}
.error{margin:10px 0 0;color:#b00020;font-weight:700;}

.done{
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  background:#fff;
  max-width:720px;
}
.footer{padding:22px 0;border-top:1px solid var(--line);background:#fff;color:var(--muted);}

/* ------------------------------
  FAQ (details) : click hint
------------------------------ */
.box details{
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.box details:first-child{ border-top: 0; }

.box summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  padding: 6px 0;
}
.box summary::-webkit-details-marker{ display:none; }

.box summary strong{ font-weight: 700; }

.box summary::after{
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform .18s ease, background .18s ease;
}
.box details[open] summary::after{ content: "−"; }

.box summary:hover::after{ background: rgba(30,90,168,.06); }
.box summary:focus-visible{
  outline: 2px solid rgba(30,90,168,.35);
  outline-offset: 4px;
}
.box details p{ margin: 6px 0 0; }

/* ------------------------------
  scroll to top
------------------------------ */
#toTop{
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
}
#toTop.show{ opacity: 1; visibility: visible; }
#toTop:hover{
  transform: translateY(-4px);
  background:#163c6d;
}

/* ------------------------------
  fade-in (section reveal)
------------------------------ */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ------------------------------
  responsive
------------------------------ */
@media (max-width:820px){
  .cards{grid-template-columns:1fr;}
  .grid2{grid-template-columns:1fr;}
}

@media (max-width:768px){
  .hero-inner{
    flex-direction: column;
    text-align: center;
  }
  .hero-right{
    text-align: center;
    justify-content: center;
    margin-top: 18px;
  }
  .hero-logo{ width: 240px; }
  .hero-catch{ font-size: 17px; line-height: 1.8; }
  .hero-desc{ line-height: 1.7; }
  .hero{ padding: 44px 16px; }
  .hero-btn{ display:block; width:min(320px, 100%); margin: 0 auto 10px; }
}

/* ------------------------------
  追記
------------------------------ */
html { scroll-behavior: smooth; }

/* 固定ヘッダー分のズレ補正（値はheaderの高さに合わせて微調整） */
section { scroll-margin-top: 92px; }

.toc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:start;
}
@media (max-width: 900px){
  .toc-grid{ grid-template-columns: 1fr; }
}

.toc-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.toc-card a{
  display:block;
  padding: 12px 14px;
  text-decoration:none;
  border-top: 1px solid rgba(0,0,0,.06);
}
.toc-card a:first-child{ border-top:none; }
.toc-card a:hover{ background: rgba(0,0,0,.03); }
.toc-card{
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.toc-card a{
  display:block;
  padding: 14px 16px;
  text-decoration:none;
  border-top: 1px solid rgba(0,0,0,.06);
  transition: background .15s ease;
}

.toc-card a:first-child{
  border-top:none;
}

.toc-card a:hover{
  background: rgba(0,0,0,.035);
}

/* detailsを少しだけ見やすく */
details.faq{ padding: 6px 0; }
details.faq summary{ cursor:pointer; }


/*ヘッダーナビ用*/
.header-nav{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: 14px;
}

.hn-link{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration:none;
  font-size: 14px;
  opacity: .9;
}
.hn-link:hover{
  background: rgba(0,0,0,.04);
}

.hn-cta{
  display:inline-block;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.12);
}
.hn-cta:hover{
  background: rgba(0,0,0,.04);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.header-message{
  margin:0;
  line-height:1.2;
}

/* nav */
.header-nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.hn-link{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration:none;
  font-size: 14px;
  opacity: .9;
}
.hn-link:hover{
  background: rgba(0,0,0,.04);
}

.hn-cta{
  display:inline-block;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.12);
}
.hn-cta:hover{
  background: rgba(0,0,0,.04);
}

/* スマホではCTAだけ残す */
@media (max-width: 900px){
  .header-inner{ align-items:flex-start; }
  .header-message{ font-size: 13px; }
  .hn-link{ display:none; }
}

/* スマホではCTAだけ残す */
@media (max-width: 900px){
  .hn-link{ display:none; }
  .header-nav{ gap: 0; }
}

/* 目次へ戻る */
.backtotoc{ margin-top: 16px; }
.backtotoc a{ text-decoration:none; opacity:.8; }
.backtotoc a:hover{ opacity:1; }

/* フッター */
.footer .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

.footer-links a{
  text-decoration:none;
  opacity:.85;
}
.footer-links a:hover{ opacity:1; }