/* チームのホームページ（{slug}.machi9.jp）。app.css は読み込まない独立したスタイル。
   チームカラーは hp.js が --hp-main / --hp-sub に入れる（CSP のためインライン style は使わない）。
   デザイン: hp-A スタンダード / hp-B クラシック / hp-C ポップ / hp-D スタジアム */
:root{--hp-main:#254dea;--hp-accent:#254dea;--hp-sub:#ffffff;--hp-ink:#1d2433;--hp-muted:#5b6578;--hp-line:#dfe5f1;--hp-bg:#f5f7fb;--hp-card:#ffffff;--hp-radius:12px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.hp{margin:0;background:var(--hp-bg);color:var(--hp-ink);font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif;font-size:16px;line-height:1.7}
.hp a{color:var(--hp-accent);text-decoration:none}
.hp a:hover{text-decoration:none}
.hp .ui-icon{width:1.15em;height:1.15em;vertical-align:-0.2em;flex:none}
.hp-pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.hp-preview{margin:0;padding:10px 16px;background:#fff3cd;color:#5c4a00;font-size:14px;text-align:center}
.hp-preview a{margin-left:8px;font-weight:700;color:#5c4a00}
/* チームのホームページは色の制限なし（赤・オレンジ・原色のイラストも可。2026-10-13 ユーザー指示）。 */

/* ヘッダー（ヒーロー）共通 */
.hp-header{position:relative;background:var(--hp-main);color:var(--hp-sub);overflow:hidden;isolation:isolate}
.hp-media{position:absolute;inset:0;z-index:-1}
.hp-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hp-art{position:absolute;inset:0;width:100%;height:100%;display:block}
.hp-hero-photo .hp-media::after,.hp-hero-art .hp-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 0%,rgba(0,0,0,.15) 45%,rgba(0,0,0,.62) 100%)}
.hp-header-inner{position:relative;display:flex;align-items:center;gap:18px;max-width:1040px;margin:0 auto;padding:36px 16px 28px}
.hp-logo{width:96px;height:96px;border-radius:16px;object-fit:cover;background:#fff;border:3px solid rgba(255,255,255,.9);flex:none;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.hp-name{margin:0;font-size:30px;line-height:1.3;overflow-wrap:anywhere;text-shadow:0 2px 10px rgba(0,0,0,.45)}
.hp-catch{margin:4px 0 0;font-size:17px;font-weight:700;text-shadow:0 1px 8px rgba(0,0,0,.45)}
.hp-facts{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 0;font-size:14px;text-shadow:0 1px 6px rgba(0,0,0,.45)}
.hp-hero-photo .hp-header,.hp-hero-art .hp-header{color:#fff}
.hp-nav{position:relative;display:flex;flex-wrap:wrap;max-width:1040px;margin:0 auto;padding:0 8px}
.hp-nav a{padding:12px 14px;color:inherit;font-weight:700;font-size:15px;white-space:nowrap}
.hp-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 0}

/* イラスト（hp/art.html）: チームカラーで塗る */
.hp-art .a-sky{fill:#9fd3ff}
.hp-art .a-sky2{fill:#cfeaff;opacity:.6}
.hp-art .a-stars,.hp-art .a-beam{display:none}
.hp-art .a-glow{fill:#fff6c8;opacity:.55}
.hp-art .a-sun{fill:#ffd23f}
.hp-art .a-cloud{fill:#fff;opacity:.92}
.hp-art .a-stand{fill:color-mix(in srgb,var(--hp-main) 55%,#3a4256)}
.hp-art .a-crowd{fill:color-mix(in srgb,var(--hp-main) 30%,#9aa3b8)}
.hp-art .a-roof{fill:color-mix(in srgb,var(--hp-main) 70%,#000)}
.hp-art .a-tower{fill:#5b6170}
.hp-art .a-lamp{fill:#e9edf5}
.hp-art .a-fence{fill:var(--hp-main)}
.hp-art .a-fence-top{fill:var(--hp-sub)}
.hp-art .a-field{fill:#3f9d4f}
.hp-art .a-stripe{fill:#4cb15d;opacity:.55}
.hp-art .a-dirt{fill:#c98a52}
.hp-art .a-grass{fill:#47a957}
.hp-art .a-mound{fill:#d79a62}
.hp-art .a-line{stroke:#fff;stroke-width:5;fill:none}
.hp-art .a-base{fill:#fff}
/* 夕焼け */
.hp-art-dusk .a-sky{fill:#ff7a45}
.hp-art-dusk .a-sky2{fill:#c2185b;opacity:.75}
.hp-art-dusk .a-sun{fill:#ffcf5a}
.hp-art-dusk .a-glow{fill:#ffd88a;opacity:.5}
.hp-art-dusk .a-cloud{fill:#ffb08a;opacity:.85}
.hp-art-dusk .a-stand{fill:color-mix(in srgb,var(--hp-main) 40%,#2a1530)}
.hp-art-dusk .a-crowd{fill:color-mix(in srgb,var(--hp-main) 25%,#5a2a40)}
.hp-art-dusk .a-field{fill:#2f7a3c}.hp-art-dusk .a-stripe{fill:#3a8a47}.hp-art-dusk .a-grass{fill:#358541}
/* ナイター */
.hp-art-night .a-sky{fill:#0b1430}
.hp-art-night .a-sky2{fill:#1c2a5a;opacity:.7}
.hp-art-night .a-stars{display:inline;fill:#fff}
.hp-art-night .a-sun{fill:#f4f1de;transform:scale(.55);transform-origin:960px 160px}
.hp-art-night .a-glow{fill:#f4f1de;opacity:.12}
.hp-art-night .a-cloud{display:none}
.hp-art-night .a-stand{fill:color-mix(in srgb,var(--hp-main) 45%,#0a0f1e)}
.hp-art-night .a-crowd{fill:color-mix(in srgb,var(--hp-main) 30%,#26304a)}
.hp-art-night .a-lamp{fill:#fffbe0;filter:drop-shadow(0 0 18px #fff7b0)}
.hp-art-night .a-beam{display:inline;fill:#fff8c4;opacity:.12}
.hp-art-night .a-field{fill:#2c8a43}.hp-art-night .a-stripe{fill:#38a052}.hp-art-night .a-grass{fill:#33974c}
/* グラウンドのライン */
.hp-art-lines .a-base-color{fill:var(--hp-main)}
.hp-art-lines .a-stripes{fill:#fff;opacity:.05}
.hp-art-lines .a-chalk{fill:none;stroke:#fff;stroke-width:6;opacity:.28}
.hp-art-lines .a-ball{fill:#fff;opacity:.16}
.hp-art-lines .a-ball path{fill:none;stroke:#e53935;stroke-width:5;opacity:1}

/* 本文 */
.hp-main{max-width:1040px;margin:0 auto;padding:20px 16px 40px}
.hp-greeting{margin:0 0 20px;padding:18px 20px;background:var(--hp-card);border-radius:var(--hp-radius);border:1px solid var(--hp-line)}
.hp-slots{display:grid;grid-template-columns:1fr;gap:20px}
.hp-block{background:var(--hp-card);border:1px solid var(--hp-line);border-radius:var(--hp-radius);padding:20px;min-width:0;scroll-margin-top:12px}
.hp-block-title{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:20px;line-height:1.4}
.hp-block-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:var(--hp-main);color:var(--hp-sub);flex:none}
.hp-empty,.hp-note{margin:0;color:var(--hp-muted);font-size:14px}
.hp-sub{margin:16px 0 8px;font-size:16px}
.hp-facts-list{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:12px 0 0}
.hp-facts-list dt{font-weight:700;color:var(--hp-muted)}.hp-facts-list dd{margin:0;min-width:0;overflow-wrap:anywhere}
.hp-cta{margin:16px 0 0}
.hp-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border:2px solid var(--hp-accent);border-radius:8px;background:#fff;color:var(--hp-accent);font-weight:700;font-size:15px;cursor:pointer;font-family:inherit}
.hp-button.primary{background:var(--hp-main);color:var(--hp-sub)}
.hp-link{font-size:14px;font-weight:700;white-space:nowrap}

/* お知らせ・試合 */
.hp-notice+.hp-notice{margin-top:16px;padding-top:16px;border-top:1px solid var(--hp-line)}
.hp-notice h3{margin:0;font-size:17px}.hp-notice small{display:block;color:var(--hp-muted);margin:2px 0 6px}
.hp-pin{display:inline-block;margin-right:8px;padding:0 8px;border-radius:6px;background:var(--hp-main);color:var(--hp-sub);font-size:12px;vertical-align:2px}
.hp-games{list-style:none;margin:0;padding:0}
.hp-games li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 0;border-top:1px solid var(--hp-line)}
.hp-games li:first-child{border-top:0}
.hp-game-date{min-width:78px;color:var(--hp-muted);font-size:14px}
.hp-game-body{flex:1 1 140px;min-width:0;display:flex;flex-direction:column}.hp-game-body small{color:var(--hp-muted)}
.hp-result{display:inline-flex;align-items:baseline;gap:6px}.hp-result b{font-size:18px}.hp-result em{font-style:normal;font-weight:700;color:var(--hp-muted)}
.hp-result.win em{color:var(--hp-accent)}
.hp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:14px}
.hp-stat-tile{display:flex;flex-direction:column;padding:12px 14px;border-radius:10px;background:var(--hp-bg)}
.hp-stat-tile small{font-weight:700;color:var(--hp-muted);font-size:13px}.hp-stat-tile strong{font-size:24px;line-height:1.3}.hp-stat-tile span{font-size:13px;color:var(--hp-muted)}
.hp-table-wrap{overflow-x:auto}
.hp-table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}
.hp-table caption{text-align:left;font-weight:700;padding:0 0 6px}
.hp-table th,.hp-table td{padding:8px 10px;border-bottom:1px solid var(--hp-line);text-align:right}
.hp-table thead th{color:var(--hp-muted);font-size:13px}
.hp-table tbody th{text-align:left}
.hp-table tr.total th,.hp-table tr.total td{font-weight:700;border-top:2px solid var(--hp-line)}

/* メンバー・募集 */
.hp-members{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.hp-member{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;background:var(--hp-bg);color:var(--hp-ink)!important;min-width:0}
.hp-member span:last-child{display:flex;flex-direction:column;min-width:0}.hp-member strong{font-size:14px;overflow-wrap:anywhere}.hp-member small{color:var(--hp-muted);font-size:12px}
.hp-member-photo{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;background:#dfe5f1;display:inline-flex;align-items:center;justify-content:center;color:var(--hp-muted)}
.hp-post{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--hp-line);color:var(--hp-ink)!important}
.hp-post:first-of-type{border-top:0}
.hp-post>span:last-child{display:flex;flex-direction:column;min-width:0}.hp-post small{color:var(--hp-muted)}
.hp-post-date{display:flex;flex-direction:column;min-width:56px;text-align:center}.hp-post-date strong{font-size:18px}
.hp-tag{display:inline-block;align-self:flex-start;padding:0 8px;border-radius:6px;background:var(--hp-bg);font-size:12px;font-weight:700;color:var(--hp-accent)}

/* フォーム */
.hp-form{display:flex;flex-direction:column;gap:14px}
.hp-form label{display:flex;flex-direction:column;gap:4px;font-weight:700;font-size:14px}
.hp-form label small{font-weight:400;color:var(--hp-muted)}
.hp-form em{font-style:normal;font-size:11px;padding:1px 6px;border-radius:4px;background:var(--hp-main);color:var(--hp-sub);margin-left:4px}
.hp-form input[type=text],.hp-form input[type=email],.hp-form textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #b8c2d6;border-radius:8px;font:inherit;font-weight:400;color:var(--hp-ink);background:#fff}
.hp-choice{display:flex;flex-wrap:wrap;gap:8px}
.hp-choice label{flex-direction:row;align-items:center;margin:0}
.hp-choice input{position:absolute;opacity:0;pointer-events:none}
.hp-choice span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:2px solid #b8c2d6;border-radius:8px;background:#fff;font-weight:700;cursor:pointer}
.hp-choice input:checked+span{border-color:var(--hp-main);background:var(--hp-main);color:var(--hp-sub)}
.hp-choice input:focus-visible+span{outline:3px solid #8aa5ff}
.hp-form:has(input[value=JOIN]:checked) .hp-inquiry-fields{display:none}
.hp-form:has(input[value=INQUIRY]:checked) .hp-join-fields{display:none}
.hp-join-fields{display:flex;flex-direction:column;gap:14px}
.hp-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.hp-ok{margin:0 0 14px;padding:12px 14px;border-radius:8px;background:#e8f4ea;color:#1c5a2b;font-weight:700}
.hp-errors{margin:0 0 14px;padding:10px 14px;border-radius:8px;background:#fdecee;color:#9a1c2e}.hp-errors ul{margin:0;padding-left:18px}

/* フッター */
.hp-footer{padding:24px 16px 40px;text-align:center;color:var(--hp-muted);font-size:14px;border-top:1px solid var(--hp-line);background:var(--hp-card)}
.hp-footer p{margin:4px 0}.hp-footer-team{font-weight:700;color:var(--hp-ink)}
.hp-credit{font-size:13px}


/* ========== A スタンダード（無料）: 帯のヘッダー ========== */
.hp-A .hp-header-inner{padding:40px 16px 30px}

/* ========== B クラシック: 画面の6割の大きな写真、固定メニュー、2列（本文・サブ欄） ========== */
.hp-B{--hp-bg:#eef1f6;--hp-radius:6px}
.hp-B .hp-header{display:flex;flex-direction:column;justify-content:flex-end;min-height:max(380px,60vh);overflow:visible}
.hp-B .hp-media{overflow:hidden}
.hp-B .hp-header-inner{width:100%;padding:60px 16px 34px}
.hp-B .hp-name{font-size:40px}
.hp-B .hp-nav{position:sticky;top:0;z-index:5;max-width:none;width:100%;padding:0 max(8px,calc((100% - 1040px)/2));background:var(--hp-main);color:var(--hp-sub);border-bottom:6px solid var(--hp-sub);box-shadow:0 4px 12px rgba(0,0,0,.15)}
.hp-B .hp-block{border-radius:6px;border-top:4px solid var(--hp-main)}
.hp-B .hp-block-icon{border-radius:6px}
.hp-B .hp-block-title{padding-bottom:10px;border-bottom:2px dashed color-mix(in srgb,var(--hp-main) 35%,transparent)}
@media(min-width:860px){
  .hp-B .hp-cols{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}
  .hp-B .hp-col-side{position:sticky;top:64px}
}

/* ========== C ポップ: ブロブ型の写真・ステッカー・波 ========== */
.hp-C{--hp-bg:#fff7ec;--hp-line:#f0dcc0;--hp-radius:22px}
.hp-C .hp-header{min-height:420px;display:flex;flex-direction:column;justify-content:center;background:color-mix(in srgb,var(--hp-main) 88%,#fff);color:#fff;padding-bottom:40px}
.hp-C .hp-media{inset:auto;top:50%;right:max(16px,calc((100% - 1040px)/2));width:min(42vw,420px);aspect-ratio:1;transform:translateY(-54%);border-radius:58% 42% 55% 45%/48% 55% 45% 52%;overflow:hidden;border:6px solid #fff;box-shadow:0 18px 40px rgba(0,0,0,.25);z-index:0}
.hp-C .hp-media::after{display:none}
.hp-C.hp-hero-solid .hp-media{display:none}
.hp-C .hp-header-inner{width:100%;padding-right:calc(min(42vw,420px) + 40px);flex-direction:column;align-items:flex-start;z-index:1}
.hp-C.hp-hero-solid .hp-header-inner{padding-right:16px}
.hp-C .hp-logo{border-radius:50%}
.hp-C .hp-name{font-size:38px}
.hp-C .hp-nav{width:100%;z-index:1;padding:0 12px;gap:6px}
.hp-C .hp-nav a{background:rgba(255,255,255,.22);border-radius:8px;padding:8px 14px;margin-bottom:8px;color:#fff}
.hp-C .hp-wave{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:46px;fill:var(--hp-bg);z-index:1}
.hp-C .hp-block{border:0;box-shadow:0 6px 18px rgba(150,90,20,.13)}
.hp-C .hp-block-icon{border-radius:50%;background:#ff7043;color:#fff}
.hp-C .hp-block:nth-child(3n+2) .hp-block-icon{background:#26a69a}
.hp-C .hp-block:nth-child(3n) .hp-block-icon{background:#ffb300}
.hp-doodles{position:absolute;inset:0;pointer-events:none;z-index:0}
.hp-doodles svg{position:absolute;width:56px;height:56px;animation:hp-float 6s ease-in-out infinite}
.hp-doodles .d1{left:4%;top:14%}.hp-doodles .d2{left:44%;top:8%;width:70px;height:70px;animation-delay:-2s}.hp-doodles .d3{left:50%;top:40%;animation-delay:-4s}
.hp-doodles .d4{left:2%;bottom:16%;width:40px;height:40px;animation-delay:-1s}.hp-doodles .d5{right:4%;top:6%;width:44px;height:44px;animation-delay:-3s}.hp-doodles .d6{right:44%;bottom:30%;width:30px;height:30px;animation-delay:-5s}
.hp-doodles .d-ball{fill:#fff}.hp-doodles .d-stitch{fill:none;stroke:#e53935;stroke-width:3}
.hp-doodles .d-bat{fill:#e0a464}.hp-doodles .d-plate{fill:#fff}.hp-doodles .d-star{fill:#ffd23f}
@keyframes hp-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(6deg)}}
@media(prefers-reduced-motion:reduce){.hp-doodles svg{animation:none}}
@media(min-width:760px){
  .hp-C .hp-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-C .hp-wide{grid-column:1/-1}
}

/* ========== D スタジアム（プロ）: 画面いっぱいのヒーロー、ページ全体に固定の背景、ガラスのカード、電光掲示板 ========== */
.hp-D{--hp-bg:#0b1020;--hp-card:rgba(14,20,38,.62);--hp-ink:#eef2fb;--hp-muted:#b4c0d8;--hp-line:rgba(255,255,255,.14);--hp-radius:14px;--hp-accent:#9fb8ff}
.hp-D .hp-bg{position:fixed;inset:0;z-index:-2}
.hp-D .hp-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,8,20,.2) 0%,rgba(5,8,20,.5) 55%,rgba(5,8,20,.85) 100%)}
.hp-D .hp-header{background:transparent;color:#fff;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;overflow:visible}
.hp-D.hp-hero-solid .hp-bg{background:radial-gradient(circle at 70% 20%,color-mix(in srgb,var(--hp-main) 70%,#fff) 0%,var(--hp-main) 40%,#05070f 100%)}
.hp-D .hp-header-inner{width:100%;padding:0 16px 64px;align-items:flex-end}
.hp-D .hp-logo{width:120px;height:120px}
.hp-D .hp-name{font-size:clamp(36px,6vw,64px);letter-spacing:.02em;line-height:1.15}
.hp-D .hp-catch{font-size:clamp(18px,2.2vw,24px)}
.hp-D .hp-nav{position:sticky;top:0;z-index:5;max-width:none;width:100%;padding:0 max(8px,calc((100% - 1040px)/2));background:rgba(5,8,20,.55);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.15)}
.hp-D .hp-nav a{color:#fff}
.hp-D .hp-cta{min-height:52px;padding:0 24px;font-size:16px}
.hp-D .hp-button.primary{background:#e53935;border-color:#e53935;color:#fff}
.hp-D .hp-cta:not(.primary){background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
.hp-D .hp-main{padding-top:40px}
.hp-D .hp-block,.hp-D .hp-greeting{background:var(--hp-card);border-color:var(--hp-line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.hp-D .hp-block-title{border-left:5px solid #e53935;padding-left:12px;font-size:22px;letter-spacing:.04em}
.hp-D .hp-block-icon{display:none}
.hp-D a{color:var(--hp-accent)}
.hp-D .hp-button{background:transparent;border-color:var(--hp-accent);color:var(--hp-accent)}
.hp-D .hp-form input[type=text],.hp-D .hp-form input[type=email],.hp-D .hp-form textarea{background:rgba(5,8,20,.6);color:var(--hp-ink);border-color:rgba(255,255,255,.25)}
.hp-D .hp-choice span{background:rgba(5,8,20,.6);border-color:rgba(255,255,255,.25);color:var(--hp-ink)}
.hp-D .hp-choice input:checked+span{background:#e53935;border-color:#e53935;color:#fff}
.hp-D .hp-form em{background:#e53935;color:#fff}
.hp-D .hp-stat-tile,.hp-D .hp-member{background:rgba(5,8,20,.5)}
.hp-D .hp-stat-tile strong{font-size:32px;color:#ffd23f;font-variant-numeric:tabular-nums}
.hp-D .hp-member,.hp-D .hp-post{color:var(--hp-ink)!important}
.hp-D .hp-table caption,.hp-D .hp-footer-team{color:var(--hp-ink)}
.hp-D .hp-footer{background:rgba(5,8,20,.8);border-color:var(--hp-line)}
.hp-D .hp-footer a{color:#9fb8ff}
/* 電光掲示板 */
.hp-board{display:grid;gap:10px}
.hp-board-row{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px 16px;padding:14px 18px;border-radius:10px;background:#05070d;border:2px solid #1d2333;box-shadow:inset 0 0 24px rgba(0,0,0,.8);color:#ffd23f!important;font-family:"Consolas","Courier New",ui-monospace,monospace}
.hp-board-date{color:#7fe0ff;font-size:14px}
.hp-board-teams{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;color:#fff;font-weight:700;min-width:0}
.hp-board-teams small{color:#7f8aa3}
.hp-board-score{font-size:30px;font-weight:700;letter-spacing:.08em;text-shadow:0 0 10px rgba(255,210,63,.75)}
.hp-board-lamp{padding:2px 10px;border-radius:6px;font-weight:700;color:#fff;background:#4b5263}
.hp-board-row.win .hp-board-lamp{background:#e53935;box-shadow:0 0 14px rgba(229,57,53,.8)}
.hp-board-row.lose .hp-board-lamp{background:#3a6fd8}
@media(max-width:600px){.hp-board-row{grid-template-columns:1fr auto}.hp-board-date{grid-column:1/-1}}

@media(max-width:600px){
  .hp-header-inner{flex-direction:column;align-items:flex-start;padding:24px 16px 20px}
  .hp-logo{width:72px;height:72px}
  .hp-name{font-size:26px}
  .hp-B .hp-name,.hp-C .hp-name{font-size:28px}
  .hp-block{padding:16px}
  .hp-nav{flex-wrap:nowrap;overflow-x:auto}
  .hp-C .hp-media{position:relative;inset:auto;transform:none;width:62vw;margin:24px auto 0;order:-1}
  .hp-C .hp-header{padding-bottom:50px}
  .hp-C .hp-header-inner{padding-right:16px}
  .hp-doodles .d2,.hp-doodles .d3,.hp-doodles .d6{display:none}
  .hp-D .hp-header-inner{padding:0 16px 40px;align-items:flex-start}
  .hp-D .hp-logo{width:84px;height:84px}
}
/* マチナインショップのスキン（hp.js が色と角を変数に入れる）: 文字は端末にある書体だけを使う（外部のフォントは読み込まない） */
body.hp-font-ROUND{font-family:"Hiragino Maru Gothic ProN","Hiragino Maru Gothic Pro","Rounded Mplus 1c","Kosugi Maru","BIZ UDPGothic","Yu Gothic",Meiryo,sans-serif}
body.hp-font-SERIF{font-family:"Hiragino Mincho ProN","Yu Mincho","YuMincho","BIZ UDPMincho","Noto Serif JP",serif}
body.hp-font-BOLD :is(h1,h2,h3,.hp-name){font-weight:900;letter-spacing:.02em}
.hp-skin-art{object-position:50% 50%}
/* スポンサー: ロゴと名前のタイル */
.hp-sponsors{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.hp-sponsor{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:96px;padding:12px;border-radius:var(--hp-radius);background:var(--hp-bg);color:var(--hp-ink)!important;text-align:center;font-weight:700;overflow-wrap:anywhere}
.hp-sponsor img{max-width:100%;max-height:56px;object-fit:contain}
.hp-D .hp-sponsor{background:rgba(5,8,20,.5)}
/* 年間アワード block: the year headings and the award name above each winner (gold, the homepage has no colour limits). */
.hp-award-year+.hp-award-year{margin-top:14px}.hp-award-year h3{margin:0 0 8px;font-size:15px}
.hp-award .hp-award-title{color:#b9861d!important;font-weight:700}
.hp-managers{display:grid;gap:10px}.hp-manager{padding:10px 12px;border-radius:10px;background:var(--hp-bg);min-width:0}
.hp-manager-head{display:flex;align-items:center;gap:10px}.hp-manager-head strong{display:block}.hp-manager-head small{display:block;opacity:.75}
.hp-manager-head a{color:var(--hp-ink)!important}.hp-manager-now{margin-left:8px;padding:1px 8px;border-radius:8px;background:var(--hp-accent,#254dea);color:#fff;font-size:11px}
.hp-manager-memo,.hp-manager-record{margin:8px 0 0;font-size:13px;line-height:1.7}.hp-manager-record{font-weight:700}
.hp-D .hp-manager{background:rgba(5,8,20,.5)}

/* 応援ハート（本体の hp-heart と同じ動き。app.css は読み込まないのでここにも置く。2026-10-22） */
.hp-cheer{padding:8px 16px 28px;text-align:center}
.hp-heart{display:grid;justify-items:center;gap:10px;margin-top:22px}
.hp-heart-text{margin:0;font-size:15px;font-weight:700;color:var(--hp-ink)}
.hp-heart-btn{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:0 24px;border:2px solid #f3c6cd;border-radius:8px;background:#fff;color:#d6334a;font-size:20px;font-weight:800;cursor:pointer;overflow:visible;font-family:inherit}
.hp-heart-btn:hover{border-color:#d6334a}.hp-heart-btn:focus-visible{outline:3px solid #d6334a;outline-offset:3px}
.hp-heart-icon .ui-icon{width:28px;height:28px;color:#d6334a;fill:#d6334a}
.hp-heart-btn.hit .hp-heart-icon{animation:hp-heart-pop .3s ease}
.hp-heart-btn b[hidden],.hp-heart-first[hidden]{display:none}
.hp-heart-first{margin:0;font-size:13px;color:var(--hp-muted)}
.hp-heart-fly{position:absolute;bottom:60%;width:34px;height:34px;pointer-events:none;z-index:3;animation:hp-heart-fly 1s cubic-bezier(.2,.7,.3,1) forwards}
.hp-heart-fly svg{display:block;width:100%;height:100%}
@keyframes hp-heart-fly{0%{opacity:0;transform:translate(0,0) scale(.4) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx),-150px) scale(var(--s)) rotate(var(--rot))}}
@keyframes hp-heart-pop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.hp-heart-btn.hit .hp-heart-icon{animation:none}}
