/* 新デザイン（遊ぶ側・2026-09-16）。ピクセルアートのRPG風。
   見本: オーナーから受け取った「画面1：トップページ（PC版）」。
   ★旧い側の style.css / Bootstrap / tarot.css は読まない。ここで全部を持つ（play/apps.py）。
   色・字は play-chrome.css 先頭の変数（--pl-*）だけを使う。生の色値を下に書かない。
   ★ヘッダー/フッター/:root/.pl-wrap は play-chrome.css に切り出した（2026-09-17）。play/base.html はそれを先に読む。
     旧ページ（front/base_legacy.html）は play-chrome.css だけを読むので、下の全体規則（html・img・a・見出し）は旧ページに届かない。 */

html {
    color-scheme: dark;
}

body.play {
    margin: 0;
    background: var(--pl-navy);
    color: var(--pl-white);
    font-family: var(--pl-round);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    font-feature-settings: "palt" 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* ピクセルアートは拡大しても滲ませない */
/* ドット絵は元の画素の整数倍（1倍・2倍）でだけ出す。width/height は元画素×整数で書く。
   crisp-edges を後に書くと Chrome ではそちらが効くので書かない（docs/調査_ピクセルアートWebデザイン_2026-09-16.md §1-4） */
.pl-pixel {
    image-rendering: pixelated;
}

a {
    color: inherit;
}

/* 日本語の見出しを文節で折る（「ザコモンス/ター？」のような折れ方をさせない） */
h1, h2, h3, .pl-hero-lead, .pl-card-title, .pl-card-catch, .pl-bubble {
    word-break: auto-phrase;
}

.pl-search input:focus-visible {
    outline: 2px solid var(--pl-gold);
    outline-offset: -2px;
}

/* ------------------------------------------------------------ 主役の帯 */

.pl-hero {
    position: relative;
    isolation: isolate;
}

.pl-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--pl-navy-tile) url("../img/hero.webp") 50% 54% / cover no-repeat;
    image-rendering: pixelated;
}

.pl-hero-in {
    display: grid;
    grid-template-columns: 20% minmax(0, 1fr) 430px;
    gap: 16px;
    align-items: center;
    min-height: 400px;
    padding-block: 26px 70px;
}

/* 見出しは主人公（左）と看板（右）の間の空に置く */
.pl-hero-center {
    grid-column: 2;
    text-align: center;
}

.pl-hero-title {
    margin: 0 auto 6px;
    max-width: 640px;
    line-height: 0;
}

.pl-hero-title img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 0 rgba(6, 17, 42, 0.35));
}

.pl-hero-lead {
    margin: 0 0 18px;
    font-weight: 700;
    font-size: clamp(14px, 1.4vw, 17px);
    letter-spacing: 0.04em;
    text-shadow: var(--pl-outline);
}

/* 検索フォーム（見本の拡大図に合わせる: 白地・角丸・虫眼鏡・右に濃紺のボタン） */
.pl-search {
    display: flex;
    align-items: stretch;
    gap: 4px;
    max-width: 580px;
    margin: 0 auto;
    padding: 4px;
    background: #fff;
    border: 2px solid #001833;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 6px 14px rgba(0, 8, 20, 0.45);
}

.pl-search-icon {
    flex: none;
    align-self: center;
    margin: 0 4px 0 10px;
    color: #0b1a33;
}

.pl-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #1a2433;
    font: inherit;
    font-size: 15px;
    padding: 12px 6px;
}

.pl-search input::placeholder {
    color: #7c8594;
}

.pl-search button {
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: #021528;
    color: #fff;
    font-family: var(--pl-round);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    padding: 0 30px;
    cursor: pointer;
}

.pl-search button:hover,
.pl-search button:focus-visible {
    background: #0a2a4a;
}

/* 人気のキーワード: ラベルを1行目に置き、札は濃い色の半透明 */
.pl-keywords {
    max-width: 580px;
    margin: 14px auto 0;
    text-align: left;
}

.pl-keywords-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 10, 30, 0.8);
}

.pl-keywords-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pl-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 14px;
    background: rgba(2, 22, 40, 0.72);
    border: 1.5px solid rgba(190, 206, 216, 0.85);
    border-radius: 6px;
    color: #fff;
    font-family: var(--pl-round);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    backdrop-filter: blur(2px);
}

.pl-chip span {
    font-size: 11px;
    color: var(--pl-muted);
}

.pl-chip:hover,
.pl-chip.is-current {
    border-color: var(--pl-gold);
    color: var(--pl-gold);
}

.pl-chip.is-empty {
    opacity: 0.45;
}

/* 右の看板: 羊皮紙の掲示板（柱つき）と、柱に打ち付けた矢印の板4枚 */
.pl-hero-side {
    grid-column: 3;
    display: grid;
    grid-template-columns: 210px 200px;
    gap: 20px;
    align-items: start;
}

/* 掲示板（見本どおり: 焼けた羊皮紙の板に、太い見出し2行と本文3行を板の中で縦中央に） */
.pl-welcome {
    position: relative;
    aspect-ratio: 440 / 715;
    background: url("../img/sign/welcome.webp") center top / 100% auto no-repeat;
    color: #2b1c0c;
    image-rendering: pixelated;
}

/* 板の内側（welcome.webp の 440×715 のうち 板は縦 121〜513px・横 14〜426px） */
.pl-welcome-board {
    position: absolute;
    top: 18%;
    height: 52%;
    left: 12%;
    right: 11%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.pl-welcome p {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.7;
}

.pl-welcome .pl-welcome-title {
    font-size: 19px;
    font-weight: 900;
    line-height: 1.45;
}

.pl-signpost {
    position: relative;
    z-index: 0;
    display: grid;
    gap: 12px;
    padding-top: 8px;
}

/* 柱 */
.pl-signpost::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: -90px;
    width: 14px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--pl-wood-dark) 0 2px, var(--pl-wood-light) 2px 5px, var(--pl-wood) 5px 11px, var(--pl-wood-dark) 11px);
    z-index: -1;
}

.pl-sign {
    display: grid;
    place-items: center;
    aspect-ratio: 520 / 102;
    min-height: 40px;
    background: url("../img/sign/arrow-r.webp") center / 100% 100% no-repeat;
    color: var(--pl-white);
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-shadow: 2px 2px 0 var(--pl-wood-dark);
    image-rendering: pixelated;
    padding-right: 10px;
}

.pl-sign--l {
    background-image: url("../img/sign/arrow-l.webp");
    padding-right: 0;
    padding-left: 10px;
}

.pl-sign:hover {
    color: var(--pl-gold);
    transform: translateX(2px);
}

.pl-sign--l:hover {
    transform: translateX(-2px);
}

/* ------------------------------------------------------------ 羊皮紙・枠 */

/* 羊皮紙: 生成した羊皮紙の絵を9分割で枠にする（角の鋲・焦げた縁は伸ばさない） */
.pl-parch,
.pl-panel.pl-panel--light {
    background: var(--pl-parch);
    color: var(--pl-ink);
    border: 16px solid var(--pl-parch-dark);
    border-image: url("../img/parchment.webp") 40 fill / 16px / 0 stretch;
    box-shadow: none;
    filter: drop-shadow(0 4px 0 var(--pl-navy-deep));
}

.pl-parch-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
}

.pl-parch-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--pl-ink-soft);
}

.pl-parch-more {
    display: block;
    margin-top: 8px;
    text-align: right;
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 13px;
    color: var(--pl-blue);
    text-decoration: none;
}

.pl-parch-more:hover {
    text-decoration: underline;
}

.pl-panel {
    border: 2px solid #c9a24a;
    border-radius: 6px;
    background: #001122;
    box-shadow: inset 0 0 0 1px #000a16, 0 0 0 2px #000a16, 0 6px 14px rgba(0, 0, 0, 0.5);
    padding: 12px 14px 14px;
}

.pl-panel.pl-panel--light {
    padding: 6px 8px 10px;
}

.pl-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.pl-panel-head .pl-panel-title {
    margin-bottom: 0;
}

.pl-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 900;
}

.pl-more {
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 13px;
    color: var(--pl-blue);
    text-decoration: none;
    white-space: nowrap;
}

.pl-panel:not(.pl-panel--light) .pl-more {
    color: #c3cad4;
}

.pl-panel:not(.pl-panel--light) .pl-panel-title {
    color: #e6e9ee;
}

.pl-more:hover {
    text-decoration: underline;
}

/* NEW はドット絵の札（34×12）を2倍で出す。flex の中で縮ませない */
.pl-new-badge {
    flex: none;
    width: 68px;
    height: 24px;
}

/* ------------------------------------------------------------ 診断とは？ */

.pl-about {
    position: relative;
    margin-top: -56px;
}

.pl-about-in {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 0 18px;
}

.pl-about-text {
    align-self: center;
    padding-block: 8px;
}

.pl-about-wizard,
.pl-about-heroine {
    display: block;
    margin-top: -30px;
}

.pl-about-text h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 900;
}

.pl-about-text p {
    margin: 0;
    font-weight: 700;
    line-height: 1.7;
}

.pl-about-bubble {
    display: flex;
    align-items: end;
    gap: 16px;
}

.pl-about-bubble .pl-bubble {
    align-self: center;
}

/* 吹き出し（見本の拡大図: 濃紺の地・灰色の枠・その外に黒い縁・角丸、しっぽにも枠） */
.pl-bubble {
    position: relative;
    margin: 0;
    padding: 12px 22px;
    background: #011323;
    color: #fff;
    border: 3px solid #7a7f84;
    border-radius: 8px;
    box-shadow: 0 0 0 2px #151515, inset 0 0 0 1px #000;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.65;
    white-space: nowrap;
}

.pl-bubble::before,
.pl-bubble::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-style: solid;
    border-color: transparent;
}

.pl-bubble::before {
    right: -15px;
    border-width: 9px 0 9px 13px;
    border-left-color: #7a7f84;
}

.pl-bubble::after {
    right: -9px;
    border-width: 6px 0 6px 8px;
    border-left-color: #011323;
}

/* ------------------------------------------------------------ 本文2列 */

.pl-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    margin-top: 22px;
    padding-bottom: 40px;
}

.pl-main {
    display: grid;
    gap: 20px;
    align-content: start;
}

.pl-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.pl-side .pl-parch {
    padding: 14px 16px 16px;
}

.pl-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* カテゴリのタイル */
.pl-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /* 見本（画面1）どおり9種を1段に並べる。狭い画面では下の @media で3列にする */
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
}

.pl-cat {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 4px;
    height: 100%;
    padding: 10px 2px 8px;
    background: #03121f;
    border: 2px solid #8f9bab;
    border-radius: 6px;
    box-shadow: 0 0 0 1px #000814, inset 0 0 0 1px #000814;
    color: #fff;
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    word-break: keep-all;
}

.pl-cat:hover {
    border-color: var(--pl-gold);
    color: var(--pl-gold);
}

/* まだ診断が無いカテゴリ。押せるが薄く見せる */
.pl-cat.is-empty {
    opacity: 0.6;
}

/* カード */
.pl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.pl-cards--list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* トップの「今おすすめ」「新着」は4枚ずつ。2つの枠が横に並ぶ幅では各枠を2列×2段にする（1列に4枚縦積みにしない） */
.pl-two .pl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pl-card-link {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    background: var(--pl-white);
    border: 3px solid var(--pl-wood-dark);
    box-shadow: 0 3px 0 var(--pl-wood-dark);
    color: var(--pl-ink);
    text-decoration: none;
    transition: transform 0.08s;
}

.pl-card-link:hover {
    transform: translateY(-2px);
}

.pl-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: var(--pl-navy-tile);
    border-bottom: 3px solid var(--pl-wood-dark);
    overflow: hidden;
}

.pl-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.pl-tag {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 1px 8px;
    background: var(--pl-blue);
    color: var(--pl-white);
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 12px;
    border: 2px solid var(--pl-navy-deep);
}

/* カテゴリの札の色（性格は既定の青） */
.pl-tag--love {
    background: var(--pl-red);
}

.pl-tag--work {
    background: #8a5a2b;
}

.pl-tag--compat {
    background: #c2577a;
}

.pl-tag--lifestyle {
    background: var(--pl-green);
}

.pl-tag--chara {
    background: #2f7fc1;
}

.pl-tag--fortune {
    background: #7a3fb3;
}

.pl-tag--entame {
    background: #3f9d5a;
}

.pl-tag--other {
    background: #5a6478;
}

/* ボタンはカードの底に揃える（題名が2行に折れたカードだけボタンが下がっていた。2026-09-16 オーナー指摘） */
.pl-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
}

.pl-card-title {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
}

.pl-card-catch {
    font-size: 12.5px;
    color: var(--pl-ink-soft);
    line-height: 1.6;
}

.pl-card-meta {
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--pl-ink-soft);
    font-variant-numeric: tabular-nums;
}

/* 冒険の記録の札（この端末で見つけた数）。docs/設計_冒険の記録_登録なし_2026-09-18.md §3-1
   サムネの右上に絶対配置で重ねるので、play/js/record.js が出しても題名は動かない（CLS 0）。
   遊んでいない診断には出さない（hidden のまま） */
.pl-card-record {
    position: absolute;
    top: 6px;
    right: 6px;
    max-width: calc(100% - 12px);
    padding: 1px 8px;
    background: var(--pl-navy-tile);
    border: 2px solid var(--pl-navy-deep);
    color: var(--pl-gold);
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pl-card-record.is-complete {
    border-color: var(--pl-gold-dark);
}

.pl-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 14px;
    background: var(--pl-blue);
    color: var(--pl-white);
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--pl-navy-deep);
    box-shadow: 0 2px 0 var(--pl-navy-deep);
}

.pl-card-link:hover .pl-btn {
    background: var(--pl-blue-light);
}

.pl-empty {
    margin: 0;
    padding: 12px;
    font-weight: 700;
    color: var(--pl-ink-soft);
}

/* ランキング */
.pl-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

.pl-rank {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--pl-parch-dark);
    font-weight: 700;
}

.pl-rank a {
    color: var(--pl-ink);
    text-decoration: none;
}

.pl-rank a:hover {
    color: var(--pl-blue);
}

.pl-rank-no {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 16px;
}

.pl-rank--2 .pl-rank-no img {
    filter: grayscale(1) brightness(1.1);
}

.pl-rank--3 .pl-rank-no img {
    filter: sepia(1) saturate(1.6) hue-rotate(-15deg) brightness(0.85);
}

.pl-rank--empty {
    grid-template-columns: 1fr;
    color: var(--pl-ink-soft);
}

/* お知らせ */
.pl-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    /* 4件ぶんで区切る（正確な高さは _sidebar.html の小さなスクリプトが4件目の下端で決める。これは読み込み前の目安） */
    max-height: 17.5em;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--pl-wood-dark) transparent;
}

.pl-news-list.is-scroll {
    padding-right: 6px;
    border-bottom: 2px dashed rgba(90, 60, 30, 0.35);
    padding-bottom: 6px;
}

.pl-news-list:focus-visible {
    outline: 2px solid var(--pl-gold);
    outline-offset: 2px;
}

.pl-news-list li {
    display: grid;
    gap: 0;
    font-size: 13.5px;
    line-height: 1.6;
}

.pl-news-list time {
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 12px;
    color: var(--pl-ink-soft);
}

.pl-news-list a {
    color: var(--pl-ink);
    font-weight: 700;
    text-decoration: none;
}

.pl-news-list a:hover {
    color: var(--pl-blue);
}

.pl-notice {
    margin: 0;
    font-size: 12px;
    color: var(--pl-muted);
}

/* ------------------------------------------------------------ 一覧ページ */

.pl-listhead {
    background: var(--pl-navy-deep);
    border-bottom: 3px solid var(--pl-navy-line-soft);
}

.pl-listhead-in {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-block: 22px;
}

.pl-listhead-eyebrow {
    margin: 0;
    font-family: var(--pl-dot);
    font-weight: 700;
    font-size: 13px;
    color: var(--pl-gold);
}

.pl-listhead-title {
    margin: 0;
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 900;
    line-height: 1.3;
}

.pl-listhead-lead {
    margin: 2px 0 0;
    color: var(--pl-muted);
    font-size: 14px;
}

/* 冒険の記録の1行。場所は最初から取っておき、記録が無い間は見えないだけにする（出しても画面が動かない） */
.pl-record-summary {
    margin: 4px 0 0;
    color: var(--pl-gold);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.pl-record-summary[hidden] {
    display: block;
    visibility: hidden;
    min-height: 1.5em;
}

.pl-search--list {
    margin: 0;
    max-width: none;
}

.pl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ------------------------------------------------------------ 画面幅 */

@media (max-width: 1180px) {
    .pl-cats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .pl-hero-in {
        grid-template-columns: minmax(0, 1fr) 380px;
    }

    .pl-hero-center {
        grid-column: 1;
    }

    .pl-hero-side {
        grid-column: 2;
        grid-template-columns: 180px 180px;
    }
}

@media (max-width: 960px) {
    .pl-hero-in {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding-block: 24px 70px;
    }

    .pl-hero-bg {
        background-position: 12% 58%;
    }

    .pl-hero-center,
    .pl-hero-side {
        grid-column: 1;
    }

    /* スマホ・タブレットでは掲示板は出さず、道しるべを2列で置く */
    .pl-hero-side {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .pl-welcome {
        display: none;
    }

    .pl-signpost {
        width: 100%;
        max-width: 420px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .pl-sign {
        min-height: 0;
        font-size: 14px;
    }

    .pl-signpost::before {
        display: none;
    }

    .pl-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pl-two {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 枠が縦に積まれて横幅いっぱいになる幅では、4枚を1段に並べる */
    .pl-two .pl-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pl-about-in {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pl-about-bubble {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .pl-hero-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .pl-hero-center {
        padding-inline: 0;
    }

    .pl-search button {
        padding: 0 14px;
    }

    .pl-about-in {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0 4px;
    }

    .pl-about-bubble {
        display: none;
    }

    .pl-about-text h2 {
        font-size: 19px;
    }

    .pl-about-text p {
        font-size: 13.5px;
    }

    .pl-br {
        display: none;
    }

    .pl-bubble {
        white-space: normal;
    }

    .pl-listhead-in {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* 見本（スマホ）: 風景に見出し・検索・キーワードだけを重ねる。道しるべは出さない */
    .pl-hero-side {
        display: none;
    }

    .pl-hero-in {
        padding-block: 18px 64px;
    }

    .pl-hero-title {
        max-width: 340px;
    }

    .pl-search {
        padding: 3px;
    }

    .pl-search input {
        font-size: 14px;
        padding: 10px 4px;
    }

    .pl-search button {
        padding: 0 18px;
    }

    .pl-chip {
        padding: 3px 12px;
        font-size: 13px;
    }

    /* 見本（スマホ）: 見出しは1行（「すべてのカテゴリを見る」は下の一覧から行ける） */
    .pl-cat-head .pl-more {
        display: none;
    }

    .pl-about-in {
        gap: 10px;
    }

    .pl-about-text h2 {
        font-size: 18px;
    }

    .pl-about-text p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* 見本（スマホ）: おすすめ・新着のカードは2列 */
    .pl-cards,
    .pl-two .pl-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .pl-card-body {
        padding: 8px 8px 10px;
    }

    .pl-card-title {
        font-size: 14px;
    }

    .pl-card-catch {
        font-size: 12px;
    }

    .pl-btn {
        font-size: 13px;
        padding: 5px 10px;
    }

    .pl-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pl-cat {
        font-size: 12px;
    }

    .pl-cards--list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-card-link {
        transition: none;
    }
}
