/* ============================================================
   style-order-book.css
   ============================================================ */

/* ============================================================
   オーダーページの部品
   ============================================================ */
.order-hero .hero-frame { width: min(100%, 290px); }
.order-hero .hero-desc { max-width: 420px; }

.choice span { border-color: var(--gold-soft); border-radius: 2px; color: var(--ink-mid); font-family: 'Noto Serif JP', serif; }
.choice:hover span { border-color: var(--gold); color: var(--paper); }
.choice input:checked + span { background: var(--gold); border-color: var(--gold); color: #1a1208; }
.choice input:focus-visible + span { outline-color: var(--rust); }

.choice-card .thumb {
  border: 1px solid #6a4f1f; border-radius: 3px 8px 8px 3px;
  background-color: var(--leather);
  box-shadow: 4px 4px 0 -1px #eadcb8, 6px 6px 0 -2px #cbbb90, 0 12px 20px rgba(0,0,0,.45);
}
.choice-card:hover .thumb { border-color: var(--gold); transform: translateY(-4px); }
.choice-card input:checked ~ .thumb { outline-color: var(--gold); border-color: transparent; }
.choice-card input:checked ~ .thumb::before { background: var(--gold); color: #1a1208; }
.choice-card .card-name { color: var(--ink-mid); }
.choice-card input:checked ~ .card-name { color: var(--gold); }
.choice-card.text-only .thumb, .choice-card.no-photo .thumb {
  background-color: #2a1419;
  background-image: var(--grain);
}

.order-table thead th { font-family: 'Cinzel', serif; letter-spacing: .2em; }
.order-faq summary::after { border-color: var(--gold-soft); color: var(--gold); }
.order-form .form-field select { border-radius: 2px; background: rgba(239,226,196,.94); color: var(--card-ink); border-color: #b59f6f; }
.consent input { accent-color: var(--gold); }

.sample-dialog { background: #1d1217; border: 1px solid var(--gold); border-radius: 3px; color: var(--paper); }
.sample-dialog img { border: 6px solid #f3e8cc; border-radius: 1px; }
.sample-close { color: var(--gold); }


/* ---------- 机の上 ---------- */
body.order-book { background: transparent; }
body.order-book::before {
  content: '';
  display: block;
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 60% at 0% 62%, rgba(255,184,92,.22), transparent 70%),
    radial-gradient(ellipse 38% 60% at 100% 38%, rgba(255,184,92,.17), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2a1a10, #170e08);
  animation: desk-lamp 6s ease-in-out infinite alternate;
}
@keyframes desk-lamp { from { opacity: .88; } to { opacity: 1; } }

/* ---------- 本そのもの ---------- */
.book-world {
  --ink: #2b1d12;      --ink-mid: #5a4632;   --muted: #8a7352;
  --border: rgba(110,80,40,.38);
  --gold: #8a6a2e;     --gold-soft: rgba(138,106,46,.42);
  --rust: #7a1f2e;     --rust-light: #b0485a;
  --cream: #efe2c4;    --cream-dark: #e6d6b2;
  --glow: rgba(120,80,30,.14);

  counter-reset: page 0;
  position: relative;
  width: min(960px, calc(100% - 2rem));
  margin: 4.5rem auto 6.5rem;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(90,60,30,.2), transparent 5%, transparent 95%, rgba(90,60,30,.18)),
    var(--grain),
    #efe2c4;
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    inset 0 0 90px rgba(130,90,40,.28),
    0 0 0 10px #573220, 0 0 0 12px #d4af5f,     
    0 44px 80px rgba(0,0,0,.7);
}

/* 糸綴じ */
.book-world::before {
  content: '';
  position: absolute; left: 26px; top: 22px; bottom: 22px; width: 3px;
  border-radius: 2px; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(180deg, var(--stripe-1) 0 8px, transparent 8px 14px) 0 0 / 100% 70px repeat-y,
    repeating-linear-gradient(180deg, transparent 0 7px, var(--stripe-3) 7px 15px, transparent 15px 22px) 0 0 / 100% 100%;
  opacity: .7;
}
/* 栞 */
.book-world::after {
  content: '';
  position: absolute; top: -12px; right: 13%; width: 26px; height: 150px; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, #6a1c2a, #a62a40 50%, #6a1c2a);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0 100%);
}

/* ---------- ページ ---------- */
.book-world .page {
  position: relative;
  counter-increment: page;
  padding: 5rem clamp(2.2rem, 7vw, 5.5rem) 5.5rem;
}
.book-world .page::before {   
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: url('images/wyrl-symbol-mark.png') center 38% / min(440px, 72%) no-repeat;
  opacity: .055;
}
.book-world .page > * { position: relative; z-index: 1; }
.book-world .page::after {   
  content: '\2014  ' counter(page) '  \2014';
  position: absolute; left: 0; right: 0; bottom: 1.8rem; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; letter-spacing: .1em;
  color: var(--muted);
}
.book-world .page + .page { box-shadow: inset 0 22px 22px -22px rgba(90,60,30,.38); }  
.book-world .page + .page::before { background-position: center 30%; }

/* ---------- 章の扉 ---------- */
.chapter-head { text-align: center; margin-bottom: 3.2rem; }
.chapter-no {
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold);
}
.chapter-title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(27px, 4vw, 40px); font-weight: 500; line-height: 1.4;
  color: var(--ink); margin: .5rem 0 .2rem; text-shadow: none;
}
.chapter-en { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; letter-spacing: .12em; color: var(--muted); }
.chapter-orn {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 1.1rem; color: var(--gold); font-size: 20px;
}
.chapter-orn::before, .chapter-orn::after { content: ''; width: 72px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.chapter-orn::after { transform: scaleX(-1); }

.chapter-lead { max-width: 560px; margin: -1rem auto 2.6rem; font-size: 13.5px; line-height: 2.1; color: var(--ink-mid); text-align: left; }
.chapter-lead::first-letter { 
  float: left; font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: 3.4em; line-height: .85; padding: .06em .12em 0 0; color: var(--rust);
}

/* ---------- 紙の上の部品 ---------- */
.book-world .process-step,
.book-world .value-item {
  background: rgba(255,250,235,.5); background-image: none;
  border: 1px solid var(--border); border-radius: 2px; box-shadow: none; backdrop-filter: none;
}
.book-world .value-item:hover { border-color: var(--rust); box-shadow: none; transform: none; }
.book-world .process-step::before { height: 2px; background: var(--rust); }
.book-world .process-num { color: rgba(110,80,40,.28); }
.book-world .process-step-title { color: var(--rust); }
.book-world .process-step-text, .book-world .value-desc { color: var(--ink-mid); }
.book-world .value-title { color: var(--ink); }
.book-world .value-icon { border-color: var(--rust) !important; color: var(--rust) !important; }

.book-world .concept-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.book-world .value-item { flex-direction: column; align-items: center; text-align: center; }

.book-world .order-table thead th { color: var(--muted); }
.book-world .order-table td { color: var(--ink-mid); }
.book-world .order-faq summary { color: var(--ink); }
.book-world .order-faq details p { color: var(--ink-mid); }

.book-world .choice span { color: var(--ink-mid); border-color: var(--gold-soft); }
.book-world .choice:hover span { border-color: var(--rust); color: var(--ink); }
.book-world .choice input:checked + span { background: var(--rust); border-color: var(--rust); color: #f3e8cc; }
.book-world .choice-title { color: var(--ink-mid); }
.book-world .choice-card .card-name { color: var(--ink-mid); }
.book-world .choice-card input:checked ~ .card-name { color: var(--rust); }
.book-world .choice-card input:checked ~ .thumb { outline-color: var(--rust); }
.book-world .choice-card input:checked ~ .thumb::before { background: var(--rust); color: #f3e8cc; }

.book-world .form-field label, .book-world .consent { color: var(--ink-mid); }
.book-world .form-field input, .book-world .form-field textarea, .book-world .order-form .form-field select {
  background: rgba(255,251,240,.75); border: 1px solid rgba(110,80,40,.4); color: var(--ink);
}
.book-world .form-field input:focus, .book-world .form-field textarea:focus { background: #fffbf0; border-color: var(--rust); box-shadow: none; }
.book-world .field-count, .book-world .field-hint, .book-world .form-note, .book-world .order-note { color: var(--muted); }
.book-world .contact-lead { color: var(--ink-mid); }
.book-world .form-status.success { color: #2f6a45; }
.book-world .form-status.error { color: #9b2c2c; }

/* 最後の章 */
.book-world .page-final { text-align: center; }
.book-world .page-final .contact-form { text-align: left; }
.book-world .page-final::before { opacity: .045; }

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  .book-world { width: calc(100% - 1.6rem); margin: 2.5rem auto 4rem; box-shadow: inset 0 0 60px rgba(130,90,40,.26), 0 0 0 7px #573220, 0 0 0 8px #d4af5f, 0 30px 50px rgba(0,0,0,.65); }
  .book-world::before { left: 12px; }
  .book-world::after { right: 10%; height: 110px; }
  .book-world .page { padding: 3.4rem 1.3rem 4.2rem 2.1rem; }
  .book-world .concept-values { grid-template-columns: 1fr; }
  .chapter-orn::before, .chapter-orn::after { width: 40px; }
}
@media (prefers-reduced-motion: reduce) { body.order-book::before { animation: none; } }

/* ============================================================
   ページ上部
   ============================================================ */
body.order-book .order-hero .hero-frame {
  width: min(100%, 470px);
  aspect-ratio: 3 / 2;
  max-height: none;
  clip-path: none;
  filter: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 34px), rgba(70,42,18,.36) calc(50% - 6px), rgba(255,250,235,.6) 50%, rgba(70,42,18,.36) calc(50% + 6px), transparent calc(50% + 34px)),
    linear-gradient(90deg, rgba(90,60,30,.25), transparent 7%, transparent 93%, rgba(90,60,30,.25)),
    var(--grain),
    #efe2c4;
  border: 10px solid #573220;
  border-radius: 6px 6px 8px 8px;
  box-shadow:
    0 0 0 2px #d4af5f,
    0 10px 0 2px #2b170d, 0 12px 0 3px rgba(212,175,95,.5),  
    0 44px 60px rgba(0,0,0,.65),
    0 0 100px rgba(255,190,100,.3);                           
  animation: hero-book-float 6s ease-in-out infinite alternate;
}
@keyframes hero-book-float {
  from { transform: translateY(0) rotate(-2.5deg); }
  to   { transform: translateY(-14px) rotate(-1deg); }
}
body.order-book .order-hero .hero-frame-slide { display: none; }

/* 左のページ */
body.order-book .order-hero .hero-frame::before {
  content: 'Prologue';
  position: absolute; inset: 9% 53% 9% 6%; z-index: 1;
  clip-path: none; -webkit-mask: none; mask: none;
  display: block; text-align: center; padding-top: 2%;
  font: italic 500 15px/1 'Cormorant Garamond', serif; letter-spacing: .24em; color: #7a1f2e;
  background: repeating-linear-gradient(180deg, transparent 0 15px, rgba(90,60,30,.3) 15px 16px) 0 22% / 100% 74% no-repeat;
}
/* 右のページ */
body.order-book .order-hero .hero-frame::after {
  content: 'WyRL+\A\2014  Custom Order  \2014';
  white-space: pre;
  position: absolute; inset: 9% 6% 9% 53%; z-index: 1;
  clip-path: none;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font: italic 600 20px/1.9 'Cormorant Garamond', serif; letter-spacing: .08em; color: #2b1d12;
  background:
    linear-gradient(90deg, transparent, #8a6a2e, transparent) 50% 16% / 74% 1px no-repeat,
    linear-gradient(90deg, transparent, #8a6a2e, transparent) 50% 84% / 74% 1px no-repeat;
  pointer-events: none;
}
/* 右下のページの角 */
body.order-book .order-hero .hero-frame-stripe {
  display: block;
  position: absolute; right: 0; bottom: 0; z-index: 2;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #f7edd2 0%, #c9b78c 60%);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  box-shadow: -3px -3px 6px rgba(60,35,15,.3);
  transform-origin: 100% 100%;
  animation: hero-corner-lift 5s ease-in-out infinite;
}
@keyframes hero-corner-lift {
  0%, 55%, 100% { transform: scale(1); }
  70%, 85%      { transform: scale(1.45); }
}
@media (max-width: 900px) {
  body.order-book .order-hero .hero-frame { width: min(92%, 440px); }
}
@media (prefers-reduced-motion: reduce) {
  body.order-book .order-hero .hero-frame, body.order-book .order-hero .hero-frame-stripe { animation: none; }
}


/* ============================================================
   色合い統一
   ============================================================ */
html { background: #140c07; }

/* ヘッダー */
body.order-book .nav { background: linear-gradient(180deg, #3b2415, #24160d); }
body.order-book .nav-drawer { background: rgba(36,22,13,.98); }
body.order-book .nav-logo span { color: #b8a483; }

/* ページ上部 */
body.order-book .order-hero {
  background:
    radial-gradient(ellipse 44% 62% at 72% 52%, rgba(255,190,100,.28), transparent 72%),
    radial-gradient(ellipse 130% 100% at 50% 50%, transparent 38%, rgba(12,7,3,.72) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 2px, transparent 2px 9px),
    var(--grain),
    linear-gradient(180deg, #43291a 0%, #2d1a10 52%, #1b100a 100%);
}

body.order-book .footer { background-color: #160e09; }

body.order-book .sample-dialog { background: #2a1a10; border-color: #b08c58; }