/* ==========================================================
   Start Here（はじめての方へ） — page-specific styles
   Shared base: style.css (official site)
   ========================================================== */

/* Hero: 2 slides, title is 2 lines (highlight the 2nd) */
.hero-title .line:nth-child(2) > span { background: linear-gradient(transparent 70%, rgba(255, 214, 10, .85) 70%, rgba(255, 214, 10, .85) 92%, transparent 92%); background-size: 0 100%; background-repeat: no-repeat; transition: transform 1.2s var(--ease) .12s, background-size 1.1s var(--ease) 1.1s; }
.is-loaded .hero-title .line:nth-child(2) > span { background-size: 100% 100%; }
.hero-img.pos-right { object-position: 40% 40%; }
@media (max-width: 900px) { .hero-img.pos-right { object-position: 32% 35%; } }

/* Statement quote */
.statement-quote { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 700; line-height: 1.9; color: var(--ink); padding-left: 1em; border-left: 3px solid var(--brand-deep); margin-bottom: 1.4em; }
.statement-q { margin-top: 1.6em !important; font-weight: 700; color: var(--ink) !important; display: inline-flex; align-items: center; gap: 12px; }
.statement-q::before { content: ""; width: 28px; height: 2px; background: var(--brand-deep); }

/* ---------- Diagnosis ---------- */
.diag { padding: clamp(100px, 12vw, 160px) 0; background: var(--paper); }
.diag-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.diag-photo { position: sticky; top: calc(var(--header-h) + 28px); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.diag-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.diag .section-head { margin-bottom: 36px; }

.quiz { background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: 0 30px 70px -40px rgba(15,27,51,.35); }
.quiz-progress { display: flex; gap: 8px; margin-bottom: 30px; }
.quiz-step { flex: 1; height: 4px; border-radius: 4px; background: var(--paper-2); transition: background-color .5s var(--ease); }
.quiz-step.done { background: var(--brand-deep); }
.quiz-q-num { font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: .18em; color: var(--brand-deep); margin-bottom: 8px; }
.quiz-question h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.55; margin-bottom: 24px; }
.quiz-choices { display: flex; flex-direction: column; gap: 12px; }
.quiz-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  text-align: left; font-size: 15px; font-weight: 600; line-height: 1.7; letter-spacing: .03em;
  padding: 18px 22px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  color: var(--ink); cursor: pointer;
  transition: background-color .35s var(--ease), color .35s, border-color .35s, transform .2s;
}
.quiz-choice::after { content: "→"; flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--ink); font-family: var(--font-en); transition: transform .4s var(--ease), background-color .35s; }
.quiz-choice:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.quiz-choice:hover::after { background: var(--brand); transform: translateX(3px); }
.quiz-choice:active { transform: scale(.99); }
.quiz-back { margin-top: 22px; background: none; border: 0; padding: 0; color: var(--mute); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.quiz-back:hover { color: var(--ink); }

.quiz-result .result-eyebrow { font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: .18em; color: var(--brand-deep); }
.quiz-result h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.55; margin: 10px 0 16px; }
.quiz-result p { color: var(--ink-2); }
.result-cta { margin-top: 26px; }
.result-books { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-book { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; transition: transform .5s var(--ease), border-color .3s; }
.result-book:hover { transform: translateY(-3px); border-color: var(--ink); }
.result-book.primary { background: #FFF7CC; border-color: var(--brand-deep); }
.result-book .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--mute); }
.result-book.primary .tag { color: var(--ink); }
.result-book .title { font-weight: 700; font-size: 15px; line-height: 1.7; }
.result-retry { margin-top: 26px; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 22px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .3s, background-color .3s; }
.result-retry:hover { border-color: var(--ink); background: var(--paper); }
.quiz-result:not([hidden]) { animation: resultIn .8s var(--ease); }
@keyframes resultIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .diag-grid { grid-template-columns: 1fr; }
  .diag-photo { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .result-books { grid-template-columns: 1fr; }
}

/* Profile link inside pill */
.profile a { color: inherit; text-underline-offset: 4px; }

/* ---------- Books ---------- */
.books { padding: 0 0 clamp(100px, 12vw, 160px); }
.books-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.books-box summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 16px;
  padding: 30px 0;
}
.books-box summary::-webkit-details-marker { display: none; }
.books-sum-title { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 900; letter-spacing: 0; }
.books-sum-title small { display: block; font-family: var(--font-en); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; }
.books-box[open] .plus { background: var(--brand); transform: rotate(45deg); }
.books-box summary:hover .plus { background: var(--paper-2); }
.books-box[open] summary:hover .plus { background: var(--brand); }
.books-body { padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.book-group h4 { font-size: 13px; font-weight: 700; color: var(--mute); line-height: 1.8; margin: 0 0 12px; letter-spacing: .04em; }
.book-list li { border-bottom: 1px solid var(--line); }
.book-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 4px; text-decoration: none; font-size: 15px; line-height: 1.7; transition: background-color .3s, padding .4s var(--ease); }
.book-list a:hover { background: var(--white); padding-left: 12px; }
.book-list .idx { font-family: var(--font-en); font-weight: 800; color: var(--brand-deep); flex-shrink: 0; }
.cat-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 1px 10px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.cat-work { background: var(--ink); color: var(--white); }
.cat-life { background: var(--brand); color: var(--ink); }
.cat-second { background: #DCE4EE; color: var(--ink); }
.cat-general { background: var(--paper-2); color: var(--ink-2); }
@media (max-width: 900px) { .books-body { grid-template-columns: 1fr; } }

/* Channels: 6 items */
.channel-list li:nth-child(6) { --d: .3s; }
@media (max-width: 1180px) { .result-books { grid-template-columns: 1fr; } }
/* About photo: keep the face in frame on phones */
@media (max-width: 900px) { .why-media img { object-position: 34% 30%; } }
/* Message heading: use the full column and keep each line unbroken */
.message-inner .message-title { justify-self: stretch; }
.message-title .nb { white-space: nowrap; }
