/* トップの「すぐ印刷できるプリント」の棚と「あたらしく ふえたプリント」（フェーズ1。scripts/top_phase1.py）2026-10-21 */
.tp-lead{color:#4F4B43;font-size:15px;line-height:1.8;margin:-6px 0 18px}
.tp-shelf,.tp-new{margin:56px 0}
.tp-shelf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tp-shelf-card{display:flex;flex-direction:column;gap:8px;padding:12px 12px 16px;background:#fff;border:1px solid #ECE4D4;border-radius:22px;text-decoration:none;color:inherit}
.tp-shelf-card:hover{border-color:#2F6B4F}
.tp-shelf-card:focus-visible{outline:3px solid #2F6B4F;outline-offset:3px}
.tp-shelf-art{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#F7F2E7;border-radius:14px;overflow:hidden;padding:10px}
.tp-shelf-art img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 4px 8px #3c301a1f)}
.tp-shelf-name{font-weight:700;font-size:16px;line-height:1.5;padding:0 4px}
.tp-badge{align-self:flex-start;white-space:nowrap;margin:0 4px;font-size:13px;font-weight:700;border-radius:999px;padding:3px 10px}
.tp-ready{background:#DDEBE2;color:#245A41}
.tp-make{background:#fff;color:#8A3B1B;border:1px solid #E7C9B8}
.tp-count{font-weight:700;color:#245A41}
@media(max-width:900px){.tp-shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.tp-shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tp-shelf-name{font-size:14px}.tp-badge{font-size:11px;padding:3px 8px}.tp-new .tp-shelf-grid>*:nth-child(n+3){display:none}.tp-shelf,.tp-new{margin:40px 0}}
.paper-title-note{font-size:13px;color:#6B665C;margin:-6px 0 12px}
/* 年齢から えらぶ（トップ・プリントを探す。2026-10-22） */
.tp-ages{margin-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}.tp-ages p{margin:0;font-weight:700;color:#4F4B43}
.tp-ages .age-tabs,.hub-entries .age-tabs{margin:0}
.hub-entries-age{font-size:22px;margin:32px 0 14px}
.age-tab{display:inline-flex;align-items:center;min-height:44px;padding:6px 18px;border:1px solid #D9D0BE;border-radius:999px;background:#fff;color:#243246;text-decoration:none;font-weight:700}
.age-tab:hover{border-color:#2F6B4F}.age-tab:focus-visible{outline:3px solid #2F6B4F;outline-offset:2px}
.age-tabs{display:flex;flex-wrap:wrap;gap:8px}
/* プリントを探す：動作ボタンの枚数と、ぜんぶのプリントの一覧（2026-10-22） */
.pf-action .pf-count{display:block;margin-top:4px;font-size:13px;font-weight:700;color:#245A41}
.pf-action .pf-count-make{color:#8A3B1B;font-weight:400}
.all-prints{margin:48px 0 16px}
.all-prints>h2{font-size:22px;margin:0 0 6px;display:flex;align-items:baseline;gap:10px}
.all-prints>h2 span,.all-group h3 span{font-size:14px;font-weight:700;color:#245A41;background:#DDEBE2;border-radius:999px;padding:1px 10px}
.all-group{padding:16px 0;border-top:1px solid #ECE4D4}
.all-group h3{font-size:17px;margin:0 0 8px;display:flex;align-items:center;gap:10px}
.all-group h3 a{color:#245A41}
.all-group ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 18px}
.all-group li a{display:inline-flex;align-items:center;min-height:36px;font-size:15px;color:#243246}
.hub-entries-age{margin-top:40px!important}
/* 行事の入口（クリスマスなど。その時期だけ出る。2026-10-22） */
[data-event-from][hidden]{display:none!important}
.tp-event{background:#FBE3DE;color:#9A2F1F}
/* いちばん上の見本：種類のちがうプリントを重ねる＋行事の入口（2026-10-22） */
.tp-hero{position:relative;height:480px;max-width:540px}
.tp-hero-paper{position:absolute;width:40%;top:6%;display:block;text-decoration:none;transition:transform .2s}
.tp-hero-paper img{display:block;width:100%;height:auto;background:#fff;border-radius:6px;box-shadow:0 14px 30px #3c301a26}
.tp-hero-paper span{position:absolute;left:10px;bottom:-12px;white-space:nowrap;background:#2F6B4F;color:#fff;font-weight:700;font-size:14px;border-radius:999px;padding:4px 14px;box-shadow:0 4px 10px #3c301a22}
.tp-hero-paper-1{left:2%;top:10%;transform:rotate(-7deg)}
.tp-hero-paper-2{left:31%;top:2%;transform:rotate(-1deg);z-index:1}
.tp-hero-paper-3{left:59%;top:9%;transform:rotate(6deg);z-index:2}
.tp-hero-paper:hover,.tp-hero-paper:focus-visible{z-index:3}
.tp-hero-paper-1:hover{transform:rotate(-7deg) translateY(-6px)}.tp-hero-paper-2:hover{transform:rotate(-1deg) translateY(-6px)}.tp-hero-paper-3:hover{transform:rotate(6deg) translateY(-6px)}
.tp-hero-event{position:absolute;left:0;bottom:0;z-index:4;display:flex;align-items:center;gap:12px;padding:12px 16px 12px 12px;background:#fff;border:2px solid #F3C9BF;border-radius:20px;box-shadow:0 10px 24px #3c301a1f;text-decoration:none;color:inherit;max-width:100%}
.tp-hero-event-art{display:flex;flex-shrink:0;background:#FBE3DE;border-radius:14px;padding:4px}
.tp-hero-event-art img{width:56px;height:56px;object-fit:contain}
.tp-hero-event-text{display:flex;flex-direction:column;min-width:0}
.tp-hero-event-text strong{font-size:17px;color:#9A2F1F}
.tp-hero-event-text small{font-size:13px;color:#4F4B43}
.tp-hero-event .tp-badge{align-self:center}
@media(max-width:900px){.tp-hero{height:420px;max-width:480px}}
@media(max-width:600px){.tp-hero{height:340px}.tp-hero-paper span{font-size:11px;padding:2px 8px;bottom:-8px;left:6px}.tp-hero-event{left:50%;transform:translateX(-50%);width:max-content;padding:8px 12px 8px 8px;gap:8px}.tp-hero-event-art img{width:40px;height:40px}.tp-hero-event-text strong{font-size:15px}.tp-hero-event-text small{font-size:11px}}
@media(max-width:600px){.tp-hero-event-art img+img,.tp-hero-event-text small{display:none}.tp-hero-event-text strong{white-space:nowrap}}
/* スマホのいちばん上（2026-10-22）：見出し・説明は ことばのまとまり（.phrase）で折り返す。「が、」「す。」だけの行を作らない。2つのボタンは同じ形・横幅いっぱい */
.pair-hero h1 .phrase,.pair-hero p .phrase{display:inline-block}
@media(max-width:480px){.renewal-home .home-hero h1{font-size:min(34px,calc((100vw - 84px) / 10.2));letter-spacing:0}.renewal-home .pair-hero .home-actions{display:grid;grid-template-columns:1fr;gap:10px}.renewal-home .pair-hero .home-actions .button,.renewal-home .pair-hero .home-actions .home-secondary{display:flex;justify-content:center;align-items:center;width:100%;box-sizing:border-box;margin:0;min-height:56px;padding:12px 18px;border-radius:999px;font-size:16px;font-weight:700}}
