:root{
  --bg:#fbfbfd;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --brand:#2563eb;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(17,24,39,.08);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  background:linear-gradient(180deg,#fff 0%,var(--bg) 100%);
  color:var(--text);
  line-height:1.75;
}

a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:980px;margin:0 auto;padding:18px}

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


/* ===== Header ===== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:var(--text);
}
.brand:hover{text-decoration:none}
.brand-logo{
  height:28px;
  width:auto;
  max-width:160px;
  object-fit:contain;
  display:block;
}
.brand-text{white-space:nowrap}

/* nav */
.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  padding:8px 12px;
  border-radius:999px;
  color:var(--text);
  white-space:nowrap;
}
.nav a:hover{
  background:#f3f4f6;
  text-decoration:none;
}

/* hamburger */
.nav-toggle{
  display:none;
  width:42px;height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;height:2px;
  background:#111827;
  margin:4px auto;
  border-radius:99px;
}

/* ===== Cards ===== */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
  margin-bottom:18px;
}
h1{font-size:28px;margin:0 0 8px}
h2{font-size:20px;margin:0 0 10px}
.lead{color:var(--muted)}
.note{
  font-size:13px;
  color:var(--muted);
  background:#f9fafb;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
}

/* buttons */
.btn-row,.btn-grid{display:grid;gap:10px;margin-top:14px}
.btn-grid{grid-template-columns:repeat(2,1fr)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  border-radius:12px;
  background:#111827;
  color:#fff;
  font-weight:800;
}
.btn.secondary{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}

/* ===== samples（崩れない統一版） ===== */
.sample-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:12px;
}

.sample-grid img,
.sample-img{
  width:100%;
  max-width:100%;
  aspect-ratio: 3 / 4;   /* ←崩れ防止の核 */
  height:auto;           /* ←固定しない */
  object-fit:cover;
  border-radius:12px;
  display:block;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
}

.sample-cap{
  font-size:13px;
  color:#555;
  margin-top:6px;
  line-height:1.5;
}

/* footer */
.footer{
  margin-top:28px;
  padding:20px 0;
  border-top:1px solid var(--border);
  font-size:13px;
  color:var(--muted);
}
.footer-links{display:flex;gap:12px;flex-wrap:wrap}

/* ===== Mobile ===== */
@media (max-width:768px){
  h1{font-size:24px}

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .nav{
    display:none;
    width:100%;
    flex-direction:column;
    padding:12px;
    margin-top:10px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    box-shadow:var(--shadow);
  }
  .nav.is-open{display:flex}
  .sample-grid{grid-template-columns:1fr}
  .btn-grid{grid-template-columns:1fr}
}

.checklist{
  list-style:none;
  padding:0;
  margin:12px 0;
}
.checklist li{
  padding:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  margin-bottom:10px;
  background:#fff;
}
.checklist input[type="checkbox"]{
  margin-right:8px;
}
.btn.disabled{
  pointer-events:none;
  opacity:.4;
}



#faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}

#faq summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq details p {
  margin-top: 10px;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}


/* ===== モバイル対策：fixedが暴れる端末があるのでabsoluteに切替 ===== */
@media (max-width: 768px){
  #bgCanvas{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;       /* 画面分 */
  }
  body{
    position: relative;
  }
}




/* ===== 背景Canvas：基本は固定。見えるようにz-index調整 ===== */
#bgCanvas{
  position: fixed;
  inset: 0;
  z-index: 0;            /* -1やめる */
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* コンテンツを前面に */
.header, .container, .footer{
  position: relative;
  z-index: 1;
}

/* bodyの背景はCanvasに任せる（ズレの原因を消す） */
body{
  background: transparent !important;
}