/* 共通UI。記事ごとの本文と会話の構成は既存styles.cssを使う。 */
.site-search input{font-size:14px}.menu-toggle{min-height:40px;font-size:13px!important;padding:7px!important}
.menu-box>a:not(.menu-top),.small-side>button{font-size:12px;line-height:1.8}.small-side>button{min-height:40px}
.panel-title{font-size:17px}.panel-description,.table-note,.tool-note,.article-note{font-size:14px;line-height:1.9;color:#526777}
.about-panel>p{font-size:15px;line-height:1.95;color:#40586b}.about-links button{font-size:13px;line-height:1.8;min-height:40px}
.download-list h3{font-size:15px;line-height:1.8}.download-list p{font-size:14px;line-height:1.9;color:#526777}.download-list button{font-size:13px;min-height:44px}.download-list small{font-size:11px;color:#526777}
.faq-list details{font-size:15px;line-height:1.95}.faq-list summary{font-size:15px;line-height:1.85}.faq-list details p{font-size:14px;line-height:1.95;color:#40586b}
.footer-bottom{font-size:12px}.source-box p{font-size:13px;line-height:1.9;color:#526777}.urgent-content p{font-size:14px;line-height:1.9;color:#40586b}.recommended-list strong{font-size:13px;line-height:1.8}
.quest-situation{font-size:13px;color:#526777}.quest-goal,.stage-hub-note{font-size:14px!important;line-height:1.9}.quick-grid small{font-size:12px;color:#526777}
.home-first{border-top:4px solid #ba9343;background:linear-gradient(135deg,#f1f7fa,#fffaf0);padding:24px 22px;margin-bottom:18px}
.home-first .entry-label{font-size:12px;font-weight:700;letter-spacing:.06em;color:#5a7485}.home-first h1{font-size:27px;line-height:1.7;margin:7px 0;color:#20465f}.home-first>p{font-size:14px;line-height:1.9;color:#40586b;margin:8px 0 16px}
.home-needs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.need-card{min-width:0;border:1px solid #c8d8e3;border-radius:7px;padding:14px;background:#fff}.need-card h2{font-size:17px;line-height:1.7;margin:0 0 7px;color:#244f69}.need-card a{display:block;width:fit-content;font-size:14px;line-height:1.85;padding:4px 0;text-underline-offset:3px}.need-card a+a{margin-top:2px}.home-first .entry-help{display:block;font-size:13px;line-height:1.85;padding:13px 0 0;text-underline-offset:3px}
.home-needs{container-type:inline-size}.need-card{position:relative}.need-card-illustration{display:none;position:absolute;object-fit:contain;pointer-events:none;user-select:none}
/* 余白があるカードだけ右側を使い、文章の折り返しで高さを増やさない。 */
@container(min-width:660px){.need-card-illustration{display:block;right:12px;bottom:10px;width:80px;height:80px}.need-card a{max-width:calc(100% - 90px)}}
@media(min-width:381px) and (max-width:680px){.need-card-illustration{display:block;right:10px;top:11px;width:32px;height:32px}.need-card h2{padding-right:40px}.need-card:first-child h2{padding-right:32px}}
.wiki-hero .banner-text>h2{font-size:23px;line-height:1.8;color:#fff;margin:7px 0 12px}.wiki-hero .banner-text>p{font-size:14px;line-height:1.9}.mini-missions h3{font-size:15px}.mini-missions p{font-size:14px;line-height:1.9}
.search-results{display:grid;gap:12px;margin-top:16px}.search-result{display:block;padding:15px;border:1px solid #c8d8e3;border-radius:6px;background:#f5f9fb;text-decoration:none}.search-result strong{display:block;font-size:16px;line-height:1.8;color:#244f69}.search-result span{display:block;font-size:14px;line-height:1.9;color:#526777;margin-top:5px}.search-result:hover{background:#fff7df;text-decoration:none}.search-empty{font-size:15px;line-height:1.9}
.start-panel>#stage-entry-comment{margin:0;padding:12px 14px;border-bottom:1px solid #e7dcb8;background:#fff9e9;color:#40586b;font-size:14px;line-height:1.85}
/* 出発後のステージ選択。カード全体をリンクにし、絵と番号で区別する。 */
.start-panel{scroll-margin-top:16px}.start-panel .stage-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}
.start-panel .stage-choice{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:center;gap:12px;min-height:168px;padding:18px 16px 24px;border:1px solid #c8d8e3;border-radius:7px;color:#244f69;background:linear-gradient(130deg,#fff,#f0f6fa);text-decoration:none}
.start-panel .stage-choice-rental{background:linear-gradient(130deg,#fff,#fff8e6)}.start-panel .stage-choice-contract{background:linear-gradient(130deg,#fff,#eef8f2)}.start-panel .stage-choice-moveout{background:linear-gradient(130deg,#fff,#fff2ea)}
.start-panel .stage-choice:hover{border-color:#729db6;box-shadow:0 3px 10px #234f6914;background:#fff9e7}.start-panel .stage-choice:focus-visible{outline:3px solid #bc8c2d;outline-offset:2px}
.stage-choice-copy{min-width:0}.stage-choice-number{display:inline-block;margin-bottom:8px;border:1px solid #c9dbe7;border-radius:4px;background:#eaf3f9;padding:2px 8px;font-size:12px;font-weight:700;line-height:1.7;color:#315e7a}
.stage-choice-rental .stage-choice-number{background:#fff2ca;border-color:#e8d79a;color:#755b20}.stage-choice-contract .stage-choice-number{background:#e1f1e8;border-color:#bdd8c9;color:#39664e}.stage-choice-moveout .stage-choice-number{background:#fde7da;border-color:#e9cabb;color:#81573e}
.start-panel .stage-choice strong{font-size:18px;line-height:1.6;color:#244f69}.start-panel .stage-choice small{margin:7px 0 0;font-size:13px;line-height:1.75;color:#526777}.stage-choice-art{display:block;width:84px;height:84px;object-fit:contain;pointer-events:none;user-select:none}.stage-choice-arrow{position:absolute;right:16px;bottom:7px;font-size:20px;line-height:1;color:#52758c}
@media(max-width:680px){.start-panel .stage-choice-grid{grid-template-columns:1fr;padding:12px;gap:10px}.start-panel .stage-choice{grid-template-columns:minmax(0,1fr) 80px;min-height:140px;padding:16px 16px 22px;gap:14px}.stage-choice-art{width:80px;height:80px}.start-panel .stage-choice small{font-size:13px}.stage-choice-number{margin-bottom:6px}}
@media(max-width:360px){.start-panel .stage-choice{grid-template-columns:minmax(0,1fr) 64px;gap:10px;padding-inline:12px}.stage-choice-art{width:64px;height:64px}.start-panel .stage-choice strong{font-size:17px}.start-panel .stage-choice small{font-size:12px}}
.reader-letter[id]{scroll-margin-top:20px}#food-prompt-text{margin-top:14px}.dialogue-page #food-prompt-text .article-letter{margin:12px;font-size:14px}
/* カテゴリ見出しは、番号・記事数、カテゴリ名、短い説明の順で統一。 */
.stage-hub-heading{padding:24px 26px}.stage-hub-heading>.article-tag{font-size:12px;line-height:1.7}.stage-hub-heading>h1{font-size:27px;line-height:1.5;margin:10px 0}.stage-hub-heading>p{margin:0;font-size:15px;line-height:1.9;color:#40586b}
.stage-hub>.stage-hub-support{margin:20px 20px 0}.stage-hub-support+ .quest-grid{padding-top:16px}
@media(max-width:680px){.stage-hub-heading{padding:20px 18px}.stage-hub-heading>h1{font-size:23px}.stage-hub-heading>p{font-size:14px}.stage-hub>.stage-hub-support{margin:14px 14px 0}.stage-hub-support+ .quest-grid{padding-top:14px}}
/* 見出し右上の絵は既存の余白へ。説明文は全幅を保つ。 */
.stage-hub-heading-illustrated{position:relative;container-type:inline-size}.stage-hub-art{display:none;position:absolute;object-fit:contain;pointer-events:none;user-select:none}
@container(min-width:450px){.stage-hub-heading-illustrated>.stage-hub-art{display:block;right:20px;top:10px;width:200px;height:96px}.stage-hub-heading-illustrated>:is(.article-tag,h1){max-width:calc(100% - 220px)}}
@container(min-width:560px){.stage-hub-heading-illustrated>.stage-hub-art{right:16px;top:4px;width:260px;height:104px}.stage-hub-heading-illustrated>:is(.article-tag,h1){max-width:calc(100% - 260px)}}
@media(max-width:680px){@container(min-width:310px) and (max-width:449px){.stage-hub-heading-illustrated>.stage-hub-art{display:block;right:18px;top:16px;width:112px;height:76px}.stage-hub-heading-illustrated>:is(.article-tag,h1){max-width:calc(100% - 124px)}}}
@media(max-width:680px){@container(min-width:450px){.stage-hub-heading-illustrated>.stage-hub-art{top:2px;height:94px}}}
/* タイトル画面：上にロゴ、中央に呼びかけ、下に攻略を案内するノワール。 */
.wiki-hero.hero-quest{grid-template-columns:minmax(0,1fr) minmax(230px,270px);align-items:stretch;min-height:500px;padding:24px;gap:22px;border-color:#b99650;background:radial-gradient(ellipse at 25% 90%,#3b788533,transparent 60%),linear-gradient(125deg,#12364f,#245a78)}
.hero-quest .hero-quest-story{display:flex;flex-direction:column;justify-content:space-between;align-self:stretch;gap:16px;min-width:0;text-align:center}
.hero-quest .hero-quest-title{margin:0 0 10px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(29px,3vw,40px);font-weight:900;line-height:1.3;letter-spacing:.035em;color:#ffdf83;text-shadow:0 2px 0 #956329,0 4px 0 #091e32,1px 0 #091e32,-1px 0 #091e32}
.hero-quest-title>span{display:inline-block;white-space:nowrap}.hero-quest-title:after{content:"";display:block;width:75%;max-width:260px;height:1px;margin:12px auto 0;background:linear-gradient(90deg,transparent,#d6b45f,transparent)}
.hero-quest .hero-quest-label{margin:0;color:#d2e5eb;font-size:12px;line-height:1.8}
.hero-quest .hero-quest-tagline{margin:0 0 9px;color:#fff5d6;font-size:23px;font-weight:800;line-height:1.6}
.hero-quest .hero-quest-description{max-width:340px;margin:0 auto;color:#d4e6ee;font-size:13px;line-height:1.85}
.hero-quest .hero-quest-scene{width:100%;margin:0;align-self:center}.hero-quest .hero-quest-scene img{display:block;width:100%;height:190px;object-fit:contain;object-position:center bottom;margin:0;filter:drop-shadow(0 5px 8px #061d3a35)}
.hero-quest .adventure-select{display:flex;flex-direction:column;justify-content:center;align-self:stretch;width:auto;padding:14px 12px;border-color:#c4aa5c80;background:linear-gradient(#183e58dd,#0c2c45e8);box-shadow:inset 0 0 0 3px #d8bc6a0a}
.hero-quest .adventure-portrait img{height:230px}.hero-quest .adventure-launch{display:grid;gap:8px;min-height:0;margin-top:14px;align-items:stretch}
.hero-quest .adventure-start{width:100%;max-width:none;min-height:48px;margin:0;font-size:13px}.hero-quest .noir-launch-comment{width:auto;min-height:20px;margin:0;padding:0;background:transparent;color:#c4dce5;border-radius:0;font-size:12px;font-weight:500;line-height:1.6}.hero-quest .noir-launch-comment:after{display:none}
@media(max-width:1050px){.wiki-hero.hero-quest{grid-template-columns:minmax(0,1fr) 235px;padding:20px;gap:16px}.hero-quest .hero-quest-scene img{height:180px}}
@media(max-width:820px){.wiki-hero.hero-quest{grid-template-columns:1fr;min-height:0;padding:20px;gap:16px}.hero-quest .hero-quest-story{gap:12px}.hero-quest .hero-quest-title{font-size:34px}.hero-quest .hero-quest-tagline{font-size:21px}.hero-quest .hero-quest-scene img{height:130px}.hero-quest .adventure-select{width:min(340px,100%);justify-self:center;padding:12px}.hero-quest .adventure-portrait img{height:180px}}
@media(min-width:681px) and (max-width:820px){.hero-quest .hero-quest-story{display:grid;grid-template-columns:1fr 1fr;align-items:center}.hero-quest .hero-quest-brand{grid-column:1/-1}}
@media(max-width:680px){.wiki-hero.hero-quest{padding:18px 14px;gap:14px}.hero-quest .hero-quest-story{gap:10px}.hero-quest .hero-quest-title{font-size:clamp(28px,8vw,34px);margin-bottom:8px}.hero-quest-title:after{margin-top:9px}.hero-quest .hero-quest-label{font-size:11px;line-height:1.7}.hero-quest .hero-quest-tagline{font-size:19px;line-height:1.5;margin-bottom:6px}.hero-quest .hero-quest-description{font-size:12px;line-height:1.8}.hero-quest .hero-quest-scene img{height:112px}.hero-quest .adventure-select{width:min(330px,100%)}.hero-quest .adventure-player-name{font-size:13px;margin:4px 0 6px}}
@media(max-width:360px){.hero-quest .hero-quest-title{font-size:28px;letter-spacing:.02em}.hero-quest .hero-quest-scene img{height:96px}.hero-quest .adventure-portrait img{height:165px}}
@media(max-width:680px){
 .header-nav{display:none}.header-main{gap:8px}.site-search input{font-size:14px}.menu-toggle{font-size:12px!important}
 .home-first{padding:16px 13px}.home-first h1{font-size:22px;line-height:1.65}.home-first>p{font-size:13px;margin-bottom:13px}.home-first .entry-label{font-size:11px}.home-needs{gap:8px}.need-card{padding:11px 10px}.need-card h2{font-size:15px;line-height:1.65}.need-card a{font-size:13px;line-height:1.8;min-height:36px}.home-first .entry-help{font-size:12px}
 .wiki-hero .banner-text>h2{font-size:21px}.wiki-hero .banner-text>p{font-size:14px}.panel-title{font-size:16px}.mini-missions h3{font-size:15px}.mini-missions p{font-size:14px}.about-panel>p{font-size:15px}.download-list{padding-inline:12px}.download-list>div{gap:9px;flex-wrap:wrap}.download-list>div>div{min-width:0;flex:1}.download-list p{font-size:14px}.download-list button{margin-left:auto}.faq-list summary{font-size:15px}
 .quick-grid>a{flex-direction:row;align-items:center}.quick-grid strong{font-size:14px}.quick-grid small{font-size:12px}.home-quest-links strong{font-size:14px}.footer-bottom{font-size:11px;line-height:1.9}
}
