*{box-sizing:border-box;margin:0;padding:0;}
html{ overflow-x:hidden; }
body{
  width:100%;
  font-family:"Zen Kaku Gothic New","Noto Sans JP",sans-serif;
  background:var(--paper);
  overflow-x:hidden;
}

:root{
  --ink:#1c2733;
  --ink-soft:#3d4a5c;
  --line:#c9d6e4;
  --line-strong:#9fb4cb;
  --accent:#2f6fed;
  --accent-soft:#eaf1ff;
  --marker:#ff5a36;
  --paper:#fbfbf9;
  --paper-tint:#f3f7fc;
}

/* ---------- shared: blueprint grid ---------- */
.grid-bg{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity:.45;
  mask-image: radial-gradient(85% 85% at 50% 45%, black 55%, transparent 100%);
}

/* ---------- shared: section scaffolding ---------- */
.section{
  position:relative;
  width:100%;
  padding: clamp(64px,11vw,120px) clamp(22px,6vw,64px);
  overflow:hidden;
}
.section.tint{ background:var(--paper-tint); }
.section-inner{
  position:relative;
  z-index:2;
  max-width:1360px;
  margin:0 auto;
}
.section-tag{
  font-family:"JetBrains Mono",monospace;
  font-size:clamp(11px,1.4vw,14px);
  letter-spacing:.14em;
  color:var(--accent);
  font-weight:700;
  margin-bottom:22px;
}
.section-title{
  font-family:"Noto Sans JP",sans-serif;
  font-size:clamp(32px,5.5vw,56px);
  font-weight:900;
  color:var(--ink);
  line-height:1.3;
  letter-spacing:.01em;
  margin-bottom:28px;
  max-width:20ch;
}
.section-lead{
  font-size:clamp(16px,2.2vw,20px);
  color:var(--ink-soft);
  max-width:60ch;
  line-height:1.9;
  margin-bottom:56px;
}
.corner{
  position:absolute;
  font-family:"JetBrains Mono",monospace;
  font-size:11px;
  letter-spacing:.08em;
  color:var(--ink-soft);
  z-index:2;
  white-space:nowrap;
}
.corner-br{ bottom:24px; right:24px; }

/* ---------- shared: image placeholder ---------- */
.placeholder{
  position:relative;
  width:100%;
  aspect-ratio: var(--ph-ratio, 16/10);
  border:2px dashed var(--line-strong);
  border-radius:14px;
  background:
    repeating-linear-gradient(135deg, rgba(159,180,203,.10) 0 14px, transparent 14px 28px),
    var(--paper);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.placeholder img{ width:100%; height:100%; object-fit:cover; }
.placeholder .ph-label{
  font-family:"JetBrains Mono",monospace;
  font-size:13px;
  letter-spacing:.06em;
  color:var(--ink-soft);
  text-align:center;
  padding:0 20px;
}

/* ---------- grid layouts (auto-collapse on narrow screens) ---------- */
.grid-2{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:28px; }
.grid-3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:28px; }

/* ---------- card ---------- */
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  padding:clamp(24px,3vw,36px) clamp(20px,2.6vw,32px);
}
.card-num{
  font-family:"JetBrains Mono",monospace;
  font-size:15px;
  font-weight:700;
  color:var(--accent);
  border:2px solid var(--accent);
  border-radius:50%;
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.card h3{
  font-size:clamp(19px,2.2vw,24px);
  font-weight:700;
  color:var(--ink);
  margin-bottom:14px;
  line-height:1.5;
}
.card p{
  font-size:16px;
  color:var(--ink-soft);
  line-height:1.9;
}

/* ---------- diamond bullet list ---------- */
.dl{ list-style:none; display:flex; flex-direction:column; gap:22px; }
.dl li{
  font-size:clamp(16px,2.2vw,20px);
  font-weight:700;
  color:var(--ink);
  padding-left:38px;
  position:relative;
  line-height:1.6;
}
.dl li::before{
  content:"";
  position:absolute;
  left:0; top:6px;
  width:16px; height:16px;
  border:3px solid var(--accent);
  transform:rotate(45deg);
  background:var(--paper);
}

/* ---------- FAQ ---------- */
.faq-item{
  border-top:1px solid var(--line);
  padding:28px 0;
}
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-q{
  display:flex;
  gap:18px;
  font-size:clamp(17px,2vw,20px);
  font-weight:700;
  color:var(--ink);
  margin-bottom:12px;
}
.faq-q span{ color:var(--accent); }
.faq-a{
  display:flex;
  gap:18px;
  font-size:15px;
  color:var(--ink-soft);
  line-height:1.8;
}
.faq-a span{ color:var(--line-strong); font-weight:700; }

/* ---------- CTA button ---------- */
.cta-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  padding:18px 38px;
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  font-size:17px;
  font-weight:700;
  box-shadow:0 14px 28px -14px rgba(28,39,51,.45);
  white-space:nowrap;
}

/* ---------- ホームへ戻る(画面右上に固定) ---------- */
.home-btn{
  position:fixed;
  top:18px;
  right:18px;
  z-index:100;
  padding:12px 22px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 10px 22px -10px rgba(28,39,51,.5);
}
.home-btn:focus-visible{ outline:3px solid var(--ink); outline-offset:3px; }
@media (max-width:600px){
  .home-btn{ top:22px; right:14px; padding:8px 15px; font-size:13px; }
  .hero .corner-tl{ max-width:calc(100% - 160px); } /* ホームボタンと重ならないよう折り返す */
}

/* ---------- section 8: final CTA (dark) ---------- */
.section.dark{
  background:var(--ink);
}
.section.dark .section-title{ color:var(--paper); }
.section.dark .section-lead{ color:#b8c3d1; }
.section.dark .cta-btn{
  background:var(--accent);
  color:#fff;
}
.section.dark .section-tag{ color:#8fb3ff; }

/* ---------- hero (section 1) ---------- */
.hero{ width:100%; min-height:900px; position:relative; display:flex; flex-direction:column; }
.mandala-bg{
  position:absolute;
  top:50%; right:-11%;
  transform:translateY(-50%);
  width:94%;
  opacity:.5;
  mix-blend-mode:multiply;
  mask-image: linear-gradient(90deg, transparent, black 22%, black 100%);
  z-index:1;
}
.mandala-bg img, .mandala-bg video{ width:100%; display:block; }
.hero .corner-tl{ position:absolute; top:32px; left:24px; font-family:"JetBrains Mono",monospace; font-size:11px; letter-spacing:.08em; color:var(--ink-soft); z-index:2; }
.hero .corner-br{ position:absolute; }
.hero-content{
  position:relative; z-index:2;
  display:flex; align-items:flex-start;
  flex:1;
  padding: clamp(96px,14vw,118px) clamp(22px,6vw,64px) 64px;
}
.hero-left{ width:100%; max-width:1020px; display:flex; flex-direction:column; gap:18px; }
.hero-eyebrow{
  font-family:"JetBrains Mono",monospace; font-size:clamp(11px,1.4vw,13px); letter-spacing:.16em;
  color:var(--accent); font-weight:700;
}
.hero h1{
  font-family:"Noto Sans JP",sans-serif;
  color:var(--ink);
  font-size:clamp(30px,5.2vw,56px); font-weight:900;
  line-height:1.4; letter-spacing:.01em;
  width:fit-content;
}
.hero-lead{ font-size:30px; font-weight:700; color:var(--ink-soft); line-height:1.5; }

/* ---------- mobile ---------- */
@media (max-width: 760px){
  .hero{ min-height:0; }
  .mandala-bg{
    position:relative;
    top:auto; right:auto; transform:none;
    width:100%;
    opacity:.4;
    margin-top:28px;
    order:2;
    mask-image: radial-gradient(85% 85% at 50% 50%, black 55%, transparent 100%);
  }
  .hero-content{ padding-bottom:40px; flex-direction:column; order:1; }
  .hero .corner-br{ display:none; }
  .grid-2, .grid-3{ grid-template-columns:1fr; }
  .section-lead{ margin-bottom:36px; }
}
