/* Willow Shelf — shared styles. Navy + the book cover's orange accent (variable names kept as --gold for history). */
:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --gold: #E8702A;      /* accent: cover orange */
  --gold-deep: #C2410C; /* deeper orange for text on white (readable contrast) */
  --cream: #FFF8F0;
  --paper: #FFFFFF;
  --panel: #F8FAFC;
  --line: #E2E8F0;
  --text: #0F172A;
  --text-2: #475569;
  --muted: #94A3B8;
  --ok: #16A34A;
  --err: #DC2626;
  --radius: 16px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* header / footer */
.site-header { border-top: 6px solid var(--gold); background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 900; font-size: 20px; color: var(--navy); text-decoration: none; letter-spacing: .5px; }
.logo span { color: var(--gold-deep); }
.site-header nav a { color: var(--text-2); text-decoration: none; font-size: 15px; margin-left: 18px; }
.site-footer { background: var(--navy); color: #CBD5E1; padding: 40px 0 48px; font-size: 14px; line-height: 1.8; margin-top: 0; }
.site-footer a { color: var(--gold); }
.site-footer .note { color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--panel); }
section.dark { background: var(--navy); color: #F0F2F8; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--gold-deep);
  border: 1.5px solid var(--gold); border-radius: 999px; padding: 2px 14px; margin-bottom: 18px; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 18px; }
h2 { font-size: 30px; font-weight: 900; }
h2 .k, h1 .k { color: var(--gold-deep); }
section.dark h2 .k { color: var(--gold); }
h3 { font-size: 20px; font-weight: 800; }
.lead { font-size: 19px; color: var(--text-2); }
.center { text-align: center; }

/* hero */
.hero { background: linear-gradient(135deg, var(--cream) 0%, #F8FAFC 55%, #EEF2F7 100%); padding: 72px 0 64px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; font-weight: 900; letter-spacing: .5px; margin-bottom: 8px; }
.hero .subtitle { font-size: 22px; font-weight: 700; color: var(--navy-2); margin-bottom: 22px; }
.hero p { color: var(--text-2); }
.nb { display: inline-block; }
.hero .subtitle .k { color: var(--gold-deep); }
.hero .benefit { font-size: 19px; color: var(--navy); line-height: 1.8; } /* keep phrases together; wrap only between them */
.book-mock { background: var(--navy); color: #F0F2F8; border-radius: 10px 18px 18px 10px; padding: 34px 30px 30px;
  box-shadow: 0 18px 40px rgba(15,23,42,.28), inset 10px 0 0 #0B1222; position: relative; max-width: 360px; margin: 0 auto; }
.book-mock::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--gold); border-radius: 10px 18px 0 0; }
.book-mock .series { font-size: 12px; letter-spacing: 3px; color: var(--gold); font-weight: 700; }
.book-mock .t { font-size: 30px; font-weight: 900; line-height: 1.35; margin: 14px 0 10px; }
.book-mock .s { font-size: 15px; color: #CBD5E1; }
.book-mock .a { margin-top: 40px; font-size: 14px; color: var(--gold); font-weight: 700; }

.hero img.cover { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; box-shadow: 0 18px 40px rgba(15,23,42,.28); border: 1px solid #E2E8F0; }

/* buttons */
.btn { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 900; text-decoration: none;
  padding: 15px 28px; border-radius: 12px; border: 0; font-size: 17px; cursor: pointer; box-shadow: 0 5px 0 var(--gold-deep);
  font-family: inherit; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--gold-deep); }
.btn[disabled] { opacity: .6; cursor: wait; }
.cta-note { font-size: 13.5px; color: var(--text-2); margin-top: 12px; }

/* cards & lists */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 0 var(--navy); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.pain { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.pain li { background: var(--paper); border-left: 5px solid var(--gold); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--paper); background: var(--gold-deep);
  width: 22px; height: 22px; border-radius: 6px; font-size: 14px; text-align: center; line-height: 22px; margin-top: 5px; font-weight: 900; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.four div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 16px; }
.four b { color: var(--gold); display: block; margin-bottom: 4px; }
.figure { margin: 28px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.figure-cap { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

/* table of contents */
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.part { background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.part h3 { font-size: 17px; color: var(--gold-deep); margin-bottom: 10px; }
.part ol { margin: 0; padding-left: 0; list-style: none; }
.part li { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 15.5px; }
.part li:first-child { border-top: 0; }
.part li span { color: var(--muted); font-size: 13px; margin-right: 8px; }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.manga { max-width: 420px; width: 100%; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
/* grid children must be allowed to shrink below their images' intrinsic width */
.split > *, .hero .grid > *, .toc > *, .cards > *, .bonus > *, .four > *, .author > * { min-width: 0; }
.figure { width: 100%; }

/* bonus */
.bonus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.bonus .card { box-shadow: 0 6px 0 var(--gold-deep); border-color: var(--gold-deep); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; background: var(--navy); color: var(--gold); border-radius: 6px; padding: 1px 8px; margin-bottom: 10px; }

.tag.now { background: var(--gold); color: var(--navy); }
.howto { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 30px; }
.howto .step { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 15.5px; line-height: 1.8; }
.howto .n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.howto .arrow { font-size: 28px; color: var(--gold-deep); font-weight: 900; }
@media (max-width: 860px) { .howto { grid-template-columns: 1fr; } .howto .arrow { transform: rotate(90deg); justify-self: center; } }

/* author */
.author { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex;
  align-items: center; justify-content: center; font-weight: 900; font-size: 42px; border: 4px solid var(--gold); }

/* faq */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; padding-right: 28px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--gold-deep); }
details[open] summary::after { content: '−'; }
details p { margin: 12px 0 0; color: var(--text-2); }

/* signup form */
.signup { background: var(--paper); color: var(--text); border-radius: 20px; padding: 36px; max-width: 620px; margin: 28px auto 0;
  box-shadow: 0 10px 0 var(--gold-deep); border: 3px solid var(--gold); }
.signup label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.signup input[type=email], .signup input[type=text] { width: 100%; font-size: 17px; padding: 13px 14px; border: 2px solid var(--line);
  border-radius: 10px; font-family: inherit; }
.signup input:focus { outline: none; border-color: var(--gold); }
.signup .row { margin-bottom: 18px; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); font-weight: 400; }
.signup .consent input { margin-top: 6px; }
.signup .btn { width: 100%; }
.signup .small { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.msg.ok { display: block; background: #F0FDF4; color: var(--ok); border: 1px solid #BBF7D0; }
.msg.err { display: block; background: #FEF2F2; color: var(--err); border: 1px solid #FECACA; }

/* legal pages */
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--text-2); }

/* responsive */
@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 48px 0; }
  .hero .grid, .split, .toc { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .hero .subtitle { font-size: 18px; }
  h2 { font-size: 24px; }
  .cards, .bonus { grid-template-columns: 1fr; }
  .four { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; }
  .signup { padding: 24px; }
  .site-header nav { display: none; }
}
