/* =========================================================
   探偵小石への依頼募集 LP — style.css
   ========================================================= */

:root{
  --navy-950:#151327;
  --navy-900:#1c1a33;
  --navy-800:#242143;
  --navy-700:#332c56;
  --paper:#f6efdf;
  --paper-dark:#ebe0c6;
  --kraft:#d8c39c;
  --ink:#2b2338;
  --ink-soft:#57506b;
  --gold:#c8a24a;
  --gold-light:#e3c878;
  --red-seal:#a3352b;
  --x-black:#000000;
  --radius-lg:22px;
  --radius-md:14px;
  --shadow-card:0 14px 34px rgba(30,20,10,.18);
  font-size:16px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:"Zen Kaku Gothic New","Hiragino Sans","Noto Sans JP",sans-serif;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3{
  font-family:"Shippori Mincho",serif;
  margin:0;
}
p{margin:0;}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;}
input,select,textarea{font-family:inherit;}

/* ---------------- Header ---------------- */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:linear-gradient(180deg,var(--navy-950),var(--navy-900));
  border-bottom:1px solid rgba(200,162,74,.35);
}
.header-inner{
  max-width:600px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 16px;
  color:var(--gold-light);
}
.case-tag{
  font-size:11px;
  letter-spacing:.06em;
  font-weight:700;
  color:var(--gold-light);
  white-space:nowrap;
}
.header-title{
  font-family:"Shippori Mincho",serif;
  font-size:13px;
  color:var(--paper);
  opacity:.85;
}

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  min-height:92vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--navy-950);
}
.hero-media{
  position:absolute;
  inset:0;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%;
  opacity:.85;
}
.hero-media-gradient{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(21,19,39,.25) 0%, rgba(21,19,39,.55) 55%, rgba(15,13,26,.96) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  padding:32px 22px 40px;
  max-width:600px;
  margin:0 auto;
  width:100%;
  color:var(--paper);
}
.hero-eyebrow{
  font-size:12px;
  letter-spacing:.04em;
  color:var(--gold-light);
  margin-bottom:14px;
  font-weight:700;
}
.hero-title{
  font-size:clamp(30px,8vw,44px);
  font-weight:800;
  line-height:1.4;
  color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.5);
  margin-bottom:16px;
}
.hero-lead{
  font-size:14.5px;
  line-height:1.9;
  color:rgba(246,239,223,.92);
  margin-bottom:20px;
}
.hero-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.hero-meta-item{
  font-size:12px;
  background:rgba(246,239,223,.1);
  border:1px solid rgba(200,162,74,.5);
  color:var(--gold-light);
  padding:6px 12px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.hero-cta{
  width:100%;
  justify-content:center;
  margin-bottom:14px;
}
.hero-scroll-hint{
  text-align:center;
  font-size:11px;
  color:rgba(246,239,223,.6);
  animation:bounce 2s infinite;
}
@keyframes bounce{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(5px);}
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:15px 22px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  border:none;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:active{transform:scale(.97);}
.btn-block{width:100%;justify-content:center;}
.btn-primary{
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  color:var(--navy-950);
  box-shadow:0 10px 22px rgba(200,162,74,.35);
}
.btn-primary:disabled{
  opacity:.4;
  cursor:not-allowed;
  box-shadow:none;
}
.btn-ghost{
  background:transparent;
  color:var(--ink-soft);
  border:1px solid rgba(43,35,56,.25);
}
.btn-x{
  background:var(--x-black);
  color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.35);
}

/* ---------------- Intro section ---------------- */
.intro-section{
  padding:38px 18px 20px;
  background:var(--paper);
}
.intro-card{
  max-width:600px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:18px;
  background:#fff;
  border:1px solid rgba(43,35,56,.08);
  border-radius:var(--radius-lg);
  padding:20px;
  box-shadow:var(--shadow-card);
}
.intro-book{
  width:120px;
  margin:0 auto;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.section-heading{
  font-size:19px;
  font-weight:700;
  color:var(--navy-900);
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-bottom:12px;
}
.section-heading span{
  font-family:"Zen Kaku Gothic New",sans-serif;
  font-size:11px;
  letter-spacing:.12em;
  color:var(--gold);
  font-weight:700;
}
.intro-text p{
  font-size:13.5px;
  line-height:1.85;
  color:var(--ink-soft);
  margin-bottom:10px;
}
.intro-note{
  background:var(--paper-dark);
  border-radius:10px;
  padding:10px 12px;
  font-size:12.5px;
  color:var(--ink);
  display:flex;
  gap:8px;
  align-items:flex-start;
}

/* ---------------- Progress track (in flow) ---------------- */
.progress-track{
  max-width:600px;
  margin:0 auto;
  height:4px;
  background:rgba(43,35,56,.08);
  border-radius:4px;
  overflow:hidden;
}
.progress-track-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
  transition:width .3s ease;
}

/* ---------------- Case file (form) ---------------- */
.case-file{
  padding:28px 18px 24px;
  max-width:600px;
  margin:0 auto;
  background-image:
    repeating-linear-gradient(0deg, rgba(43,35,56,.02) 0 2px, transparent 2px 40px);
}
.case-file-header{
  text-align:center;
  margin-bottom:26px;
}
.case-file-kicker{
  font-size:11px;
  letter-spacing:.1em;
  color:var(--gold);
  font-weight:700;
  margin-bottom:8px;
}
.case-file-title{
  font-size:24px;
  color:var(--navy-900);
  font-weight:700;
  margin-bottom:6px;
}
.case-file-sub{
  font-size:12.5px;
  color:var(--ink-soft);
  margin-bottom:10px;
}
.case-file-number{
  display:inline-block;
  font-size:11px;
  letter-spacing:.06em;
  color:var(--ink-soft);
  border:1px dashed rgba(43,35,56,.3);
  border-radius:999px;
  padding:4px 14px;
}
.case-file-number span{font-weight:700;color:var(--red-seal);}

/* ---------------- Step cards ---------------- */
.step-card{
  background:#fffdf8;
  border:1px solid rgba(43,35,56,.08);
  border-radius:var(--radius-lg);
  padding:22px 18px;
  margin-bottom:18px;
  box-shadow:var(--shadow-card);
  position:relative;
  transition:box-shadow .25s ease, border-color .25s ease;
}
.step-card::before{
  content:"";
  position:absolute;
  left:0;top:22px;bottom:22px;
  width:4px;
  border-radius:0 4px 4px 0;
  background:rgba(43,35,56,.08);
  transition:background .25s ease;
}
.step-card.is-active::before{background:var(--gold);}
.step-card.is-complete::before{background:#7a9b6e;}

.step-card-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.step-badge{
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  color:#fff;
  background:var(--navy-900);
  padding:4px 10px;
  border-radius:999px;
}
.step-title{
  font-size:16.5px;
  color:var(--navy-900);
  display:flex;
  align-items:center;
  gap:8px;
}
.step-title i{color:var(--gold);font-size:15px;}
.step-desc{
  font-size:12.5px;
  color:var(--ink-soft);
  margin-bottom:12px;
  line-height:1.6;
}
.step-hint{
  font-size:11.5px;
  color:#96895a;
  margin-top:8px;
  display:flex;
  gap:6px;
  align-items:flex-start;
}

.step-input,.step-select,.step-textarea{
  width:100%;
  padding:13px 14px;
  border:1.5px solid rgba(43,35,56,.18);
  border-radius:var(--radius-md);
  font-size:15px;
  background:#fff;
  color:var(--ink);
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.step-input:focus,.step-select:focus,.step-textarea:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(200,162,74,.18);
}
.step-input-sub{margin-top:10px;}
.step-textarea{resize:none;line-height:1.7;}
.step-counter{
  text-align:right;
  font-size:11.5px;
  color:var(--ink-soft);
  margin-top:6px;
}

/* select arrow */
.step-select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%2357506b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 16px center;
  padding-right:38px;
}

/* category grid */
.category-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.category-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px 6px;
  border:1.5px solid rgba(43,35,56,.15);
  border-radius:var(--radius-md);
  background:#fff;
  cursor:pointer;
  transition:all .18s ease;
  text-align:center;
}
.category-card input{
  position:absolute;
  opacity:0;
  width:0;height:0;
}
.category-icon{
  width:38px;height:38px;
  border-radius:50%;
  background:var(--paper-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--navy-800);
  font-size:15px;
  transition:all .18s ease;
}
.category-label{
  font-size:12.5px;
  font-weight:700;
  color:var(--ink);
}
.category-card:has(input:checked){
  border-color:var(--gold);
  background:linear-gradient(180deg,#fff8e6,#fff);
  box-shadow:0 6px 16px rgba(200,162,74,.25);
  transform:translateY(-2px);
}
.category-card:has(input:checked) .category-icon{
  background:var(--gold);
  color:#fff;
}

/* ---------------- Bottom spacer ---------------- */
.bottom-spacer{height:110px;}

/* ---------------- Sticky CTA ---------------- */
.sticky-cta{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:50;
  background:rgba(255,253,248,.97);
  backdrop-filter:blur(6px);
  border-top:1px solid rgba(43,35,56,.1);
  box-shadow:0 -8px 24px rgba(0,0,0,.08);
  padding-bottom:env(safe-area-inset-bottom);
}
.sticky-cta-progress{
  height:3px;
  background:rgba(43,35,56,.08);
}
.sticky-cta-progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
  transition:width .3s ease;
}
.sticky-cta-inner{
  max-width:600px;
  margin:0 auto;
  padding:10px 16px 12px;
}
.sticky-cta-status{
  font-size:11.5px;
  color:var(--ink-soft);
  margin-bottom:8px;
  text-align:center;
  font-weight:700;
  letter-spacing:.03em;
}

/* ---------------- Overlays ---------------- */
.overlay{
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(15,13,26,.72);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:0;
}
.overlay.is-open{display:flex;}
.overlay-scroll{
  width:100%;
  max-width:600px;
  height:100%;
  overflow-y:auto;
  padding:26px 16px 40px;
}

/* Confirm card */
.confirm-card{
  background:var(--paper);
  border-radius:var(--radius-lg);
  padding:22px 18px 26px;
  box-shadow:0 20px 50px rgba(0,0,0,.4);
  animation:pop-in .28s ease;
}
@keyframes pop-in{
  from{opacity:0;transform:translateY(16px) scale(.98);}
  to{opacity:1;transform:translateY(0) scale(1);}
}
.confirm-card-top{text-align:center;margin-bottom:18px;}
.confirm-kicker{
  font-size:11px;
  letter-spacing:.1em;
  color:var(--gold);
  font-weight:700;
  margin-bottom:6px;
}
.confirm-title{
  font-size:21px;
  color:var(--navy-900);
  margin-bottom:6px;
}
.confirm-number{
  font-size:11px;
  color:var(--ink-soft);
}
.confirm-number span{font-weight:700;color:var(--red-seal);}

.doc-sheet{
  position:relative;
  background:#fffdf6;
  border:1px solid rgba(43,35,56,.15);
  border-radius:12px;
  padding:20px 16px;
  margin-bottom:16px;
  box-shadow:inset 0 0 0 1px rgba(200,162,74,.15), 0 8px 20px rgba(0,0,0,.08);
  overflow:hidden;
}
.doc-stamp{
  position:absolute;
  top:8px;
  right:2px;
  width:76px;
  opacity:.92;
  transform:rotate(8deg);
  pointer-events:none;
}
.doc-list{margin:0;}
.doc-row{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 0;
  border-bottom:1px dashed rgba(43,35,56,.15);
}
.doc-row:last-child{border-bottom:none;}
.doc-row dt{
  font-size:11.5px;
  color:var(--gold);
  font-weight:700;
  display:flex;
  align-items:center;
  gap:6px;
}
.doc-row dd{
  margin:0;
  font-size:15px;
  color:var(--ink);
  font-weight:700;
  padding-left:2px;
}
.doc-row-message dd{
  font-weight:500;
  line-height:1.7;
  font-size:14px;
}

.confirm-note{
  font-size:12px;
  color:var(--ink-soft);
  line-height:1.7;
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  margin-bottom:16px;
  display:flex;
  gap:8px;
}
#post-x-btn{margin-bottom:10px;}

/* Complete card */
.complete-card{
  background:var(--paper);
  border-radius:var(--radius-lg);
  padding:30px 22px 26px;
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,.4);
  animation:pop-in .3s ease;
}
.complete-stamp-wrap{margin-bottom:10px;}
.complete-stamp{
  width:96px;
  margin:0 auto;
}
.complete-kicker{
  font-size:11px;
  letter-spacing:.14em;
  color:var(--red-seal);
  font-weight:800;
  margin-bottom:6px;
}
.complete-title{
  font-size:26px;
  color:var(--navy-900);
  margin-bottom:14px;
}
.complete-text{
  font-size:13.5px;
  line-height:1.9;
  color:var(--ink);
  margin-bottom:20px;
}
.complete-book{
  width:100px;
  margin:0 auto 16px;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.complete-sub{
  font-size:12px;
  color:var(--ink-soft);
  margin-bottom:20px;
}
#reset-btn{margin-bottom:10px;}

/* ---------------- Footer ---------------- */
.site-footer{
  background:var(--navy-950);
  color:rgba(246,239,223,.6);
  text-align:center;
  padding:24px 18px 32px;
  font-size:11.5px;
  line-height:1.8;
}
.site-footer-note{opacity:.7;margin-top:6px;}

/* ---------------- Responsive tweak ---------------- */
@media (min-width:480px){
  .category-grid{grid-template-columns:repeat(3,1fr);}
}
@media (min-width:640px){
  .hero-title{font-size:46px;}
}
