:root{font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;color:#203d39;background:#f6f8f5;font-size:16px;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #c58337;outline-offset:5px}header,main,footer{max-width:1120px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;padding:30px 36px;border-bottom:1px solid #dce3dd}.brand{font-family:"Yu Mincho",serif;font-size:24px;letter-spacing:.08em;color:inherit;text-decoration:none;font-weight:bold}.brand span{display:block;font-family:Arial,sans-serif;font-size:11px;letter-spacing:.2em;margin-top:7px}.sample{font-size:14px;color:#62716b}.intro{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:640px;padding:55px 36px 70px;gap:30px}.eyebrow{font-size:14px;letter-spacing:.15em;font-weight:bold;color:#65776a;margin:0 0 20px}h1,h2,h3{font-family:"Yu Mincho","Hiragino Mincho ProN",serif}h1{font-size:clamp(40px,4.6vw,60px);line-height:1.6;letter-spacing:.06em;margin:0 0 22px}h2{font-size:32px;line-height:1.6;margin:15px 0 22px}h3{font-size:23px;line-height:1.6;margin:25px 0 6px}.lead{line-height:2.2;color:#52645c;margin-bottom:30px}.primary{border:0;border-radius:6px;background:#254d42;color:white;font-weight:bold;padding:17px 30px;min-height:56px;transition:background .15s}.primary:hover{background:#18392f}.primary:disabled{background:#c7cfca;cursor:default}.note{font-size:14px;color:#6c7770;margin-top:16px}.bookshelf{position:relative;min-height:440px;background:#e5ece4;border-radius:48% 48% 3px 3px}.floating-caption{position:absolute;top:30px;right:30px;line-height:1.9;letter-spacing:.1em;font-family:"Yu Mincho",serif}.hero-book{position:absolute;width:180px;height:263px;padding:24px 20px 24px 27px;color:#fff;border-left:7px solid #ffffff24;box-shadow:12px 15px 24px #233c3422;display:flex;flex-direction:column;justify-content:space-between}.hero-book small{font-size:11px;letter-spacing:.17em}.hero-book strong{font-family:"Yu Mincho",serif;font-size:29px;line-height:1.8;letter-spacing:.05em}.hero-book i{font-size:11px;font-style:normal}.book-one{left:30px;top:80px;background:#335f59;transform:rotate(-10deg);z-index:2}.book-two{right:18px;top:155px;background:#bc855e;transform:rotate(9deg)}.shelf-line{height:9px;background:#d0d9ce;position:absolute;left:-10px;right:-10px;bottom:24px}.collection{margin:0 36px;padding:36px 0 50px;border-top:1px solid #dce3dd}.collection-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.collection-heading .eyebrow{margin-bottom:8px;font-size:12px}.collection h2{font-size:27px;margin:0}.muted{color:#65736b;line-height:1.9;font-size:14px}.text-button{color:#254d42;border:0;background:transparent;text-decoration:underline;text-underline-offset:6px;padding:14px 0}.panel{max-width:760px;margin:65px auto 80px;padding:0 30px;min-height:510px}.quiz-top{display:flex;justify-content:space-between;font-size:14px;color:#65736b;gap:16px}.progress{height:4px;background:#dce3dd;margin:18px 0 36px}#progress-fill{height:100%;background:#456b52;transition:width .2s}.options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:26px 0 30px}.option{background:#fff;border:1px solid #d4ddd5;border-radius:8px;padding:23px 20px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;color:inherit;min-height:116px}.option strong{display:block;font-size:17px;margin-bottom:9px}.option span span{font-size:14px;line-height:1.7;color:#65736b}.option:hover{border-color:#456b52}.option[aria-pressed=true]{background:#e8efe6;border:2px solid #456b52;padding:22px 19px}.choice-mark{display:block;border:1px solid #a9b9aa;border-radius:50%;width:23px;height:23px;flex-shrink:0;text-align:center;line-height:22px;font-size:14px}.option[aria-pressed=true] .choice-mark{background:#456b52;color:white}.quiz-actions{display:flex;align-items:center;justify-content:space-between}.results{padding:60px 36px;text-align:center}.results>h2{font-size:36px}.result-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;max-width:560px;margin:35px auto}.result-card{text-align:left;background:white;padding:24px;border-radius:8px;border:1px solid #dce3dd}.recommend-label{font-size:14px;letter-spacing:.04em;color:#65736b;margin:0 0 22px}.result-card:first-child{border-top:4px solid #456b52;padding-top:21px}.cover{height:235px;max-width:166px;box-shadow:7px 7px 12px #22352c17;border-left:7px solid #ffffff26;color:white;margin:0 auto;padding:20px 15px;display:flex;flex-direction:column;justify-content:space-between;gap:10px}.cover small{font-size:12px;letter-spacing:.1em}.cover strong{font-family:"Yu Mincho",serif;font-size:24px;line-height:1.8;overflow-wrap:anywhere}.cover>span{font-size:12px}.description{font-size:16px;line-height:1.95}.tags{display:flex;gap:6px;flex-wrap:wrap}.tags span{font-size:12px;background:#eef2eb;border-radius:3px;padding:5px 8px;color:#50674e}.all-books{display:grid;grid-template-columns:repeat(5,1fr);gap:30px 20px;margin-top:30px}.all-books .cover{height:225px;width:100%}.all-books .cover strong{font-size:21px}footer{padding:24px 36px;border-top:1px solid #dce3dd;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#65736b;line-height:1.8}@media(max-width:850px){.intro{gap:20px}.hero-book{width:145px;height:220px}.hero-book strong{font-size:24px}.book-one{left:12px;top:110px}.book-two{right:5px;top:190px}.all-books{grid-template-columns:repeat(4,1fr)}.result-cards{gap:12px}.result-card{padding:17px}.result-card:first-child{padding-top:14px}}@media(max-width:640px){header{padding:22px}.brand{font-size:21px}.sample{font-size:12px}.intro{grid-template-columns:1fr;padding:38px 24px 50px;gap:30px;min-height:auto}h1{font-size:43px}.lead{font-size:16px}.bookshelf{min-height:325px;max-width:360px;width:100%;margin:auto}.floating-caption{top:18px;right:28px;font-size:14px}.book-one{left:30px;top:55px}.book-two{right:26px;top:95px}.hero-book{width:143px;height:209px}.shelf-line{bottom:8px}.collection{margin:0 24px}.collection-heading{align-items:flex-end}.collection h2{font-size:24px}.text-button{font-size:14px}.panel{margin:38px auto 55px;padding:0 24px}.quiz-top{font-size:12px}.panel h2{font-size:27px}.options{grid-template-columns:1fr;gap:12px}.option{min-height:86px;padding:18px}.option[aria-pressed=true]{padding:17px}.option strong{font-size:16px}.option span span{font-size:14px}.quiz-actions .primary{padding:16px 20px}.results{padding:40px 24px}.results>h2{font-size:28px}.result-cards{grid-template-columns:1fr;gap:24px}.result-card{padding:25px}.result-card:first-child{padding-top:22px}.all-books{grid-template-columns:repeat(2,1fr);gap:24px 15px}.all-books .cover{height:215px}.all-books .cover strong{font-size:20px}footer{padding:24px;flex-direction:column;gap:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.more-cards{max-width:760px;grid-template-columns:repeat(2,minmax(0,1fr))}.restart-action{margin-top:30px}@media(max-width:640px){.more-cards{grid-template-columns:minmax(0,1fr)}}

/* 長い書名・共著者名も全文を読めるよう、書影風パネルは内容に合わせて伸ばす。 */
.book-picture{height:280px;display:flex;align-items:center;justify-content:center;margin:0 auto 24px}
.book-picture img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:4px 6px 14px #22352c22}
.all-books .book-picture{height:240px}
.hero-book.hero-cover{padding:0;border:0;background:transparent;object-fit:contain;box-shadow:none}
.hero-cover{filter:drop-shadow(8px 10px 8px #233c3433)}
.cover{height:auto;min-height:235px;max-width:210px;gap:18px}
.cover strong{font-size:20px;line-height:1.65}
.cover>span{line-height:1.7;overflow-wrap:anywhere}
.all-books{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 24px}
.all-books article{min-width:0;background:#fff;border:1px solid #dce3dd;border-radius:8px;padding:22px}
.all-books .cover{height:auto;min-height:235px;width:100%}
.all-books .cover strong{font-size:20px}
.all-books h3{font-size:20px;overflow-wrap:anywhere}
.collection-description{font-size:16px;line-height:1.9}
.match-reason{font-size:16px;line-height:1.9;background:#eef2eb;padding:16px;border-radius:6px}
.option:last-child:nth-child(odd){grid-column:1/-1}
.hero-book strong{font-size:23px;line-height:1.6}
@media(max-width:850px){.all-books{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-book strong{font-size:20px}}
@media(max-width:640px){.all-books{grid-template-columns:minmax(0,1fr)}.hero-book strong{font-size:20px}.eyebrow{letter-spacing:.06em}.sample{max-width:105px;text-align:right}.cover{max-width:210px}}

/* スマホでは題名と補足を上下に並べ、題名の末尾だけの折り返しを防ぐ。 */
@media(max-width:640px){
  header{flex-direction:column;align-items:flex-start;gap:12px}
  .brand{font-size:clamp(16px,5vw,21px);letter-spacing:.02em;max-width:100%;word-break:keep-all;overflow-wrap:anywhere}
  .sample{max-width:none;text-align:left}
}

.result-title-book{display:inline-block;white-space:nowrap}
@media(max-width:640px){.result-title-book{display:block}}

.fair-info{font-size:16px;line-height:1.9;padding:14px 18px;margin:0 0 24px;background:#e8efe6;border-left:3px solid #456b52;border-radius:0 6px 6px 0}

/* 文字と表紙の領域を分け、文字の折り返しが増えても重ならないようにする。 */
.bookshelf{min-height:0}
.floating-caption{position:relative;top:auto;right:auto;padding:24px 28px 0;text-align:right}
.hero-display{position:relative;height:360px;margin-top:28px}
.hero-display .book-one{top:20px}
.hero-display .book-two{top:60px}
@media(max-width:850px){.hero-display{height:320px}}
@media(max-width:640px){.hero-display{height:300px}}

.lead-line{display:block}
.lead .phrase{display:inline-block;max-width:100%;vertical-align:top}

.title-line,.fair-line{display:block}
.fair-chunk{display:inline-block}
.fair-period{margin-top:6px}
@media(max-width:640px){
  .intro h1{font-size:clamp(24px,9vw,40px);letter-spacing:.02em}
}
