.page-home { background: #fafaf7; color: #22221f; }
.home-shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.home-shell [hidden] { display: none !important; }
.home-shell a, .home-shell button { transition: color .15s, background-color .15s; }
.home-shell a:hover { color: #a65a00; }
.home-shell :focus-visible { outline: 2px solid #9b5700; outline-offset: 5px; }
.home-search { padding: 42px 0 28px; }
.home-eyebrow { display: flex; align-items: center; gap: 20px; color: #f59e0b; font: 500 11px Inter, sans-serif; letter-spacing: .16em; margin-bottom: 20px; }
.home-eyebrow span { width: 62px; height: 1px; background: #f59e0b; }
.home-search h1 { font-size: clamp(25px, 3vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.6; margin: 0; }
.home-search h1 span { display: inline-block; }
.home-intro { font-size: 14px; line-height: 1.9; margin: 10px 0 24px; color: #57574f; }
.home-search-form { display: flex; gap: 12px; max-width: 860px; }
.home-search-input { display: flex; align-items: center; gap: 15px; border: 1px solid #92928a; background: #fff; padding: 0 17px; flex: 1; min-width: 0; border-radius: 3px; }
.home-search-input svg { flex-shrink: 0; }
.home-search-input input { width: 100%; min-width: 0; height: 56px; border: 0; outline: none; box-shadow: none; background: transparent; font-size: 16px; }
.home-search-input:focus-within { outline: 2px solid #a65a00; outline-offset: 2px; }
.home-search-input input:focus-visible { outline: none; }
.home-search-form button { background: #ed9807; color: #22221f; border: 1px solid #ed9807; border-radius: 3px; padding: 0 28px; font-size: 17px; font-weight: 700; cursor: pointer; }
.home-search-form button:hover { background: #df8c00; }
.home-search-form button span { margin-left: 14px; }
.home-search-links { display: flex; justify-content: space-between; gap: 20px; max-width: 860px; margin-top: 14px; font-size: 12px; }
.home-search-links > div { display: flex; gap: 24px; }
.home-search-links a { display: inline-block; padding: 5px 0; }
.home-discovery { border-top: 1px solid #aaa99f; padding-top: 25px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.home-section-heading h2 { font-weight: 700; font-size: 23px; letter-spacing: -.02em; }
.home-section-heading p, .home-section-heading > a { color: #64645d; font-size: 12px; }
.home-tabs { display: flex; gap: 30px; border-bottom: 1px solid #d7d7d0; }
.home-tabs button { font-weight: 500; font-size: 14px; padding: 10px 0 12px; border-bottom: 3px solid transparent; cursor: pointer; }
.home-tabs button[aria-selected="true"] { font-weight: 700; border-bottom-color: #f59e0b; }
.home-data-note { color: #65655e; font-size: 11px; line-height: 1.9; min-height: 22px; margin: 15px 0 18px; }
.home-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 26px; }
/* カードの各段（画像・名前・版・収録パック・価格…）を同じ行のカードでそろえる。どのタブも8段以内。 */
.home-card-grid > .home-card { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; justify-items: start; align-content: start; padding-bottom: 26px; }
.home-card-grid[aria-busy="true"] { min-height: 240px; }
.home-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.home-card-image { display: block; margin: 0 auto 18px; width: 100%; max-width: 240px; aspect-ratio: 63/88; }
.home-card-image img { width: 100%; height: 100%; object-fit: contain; }
.home-card-label { font-size: 14px; font-weight: 700; line-height: 1.6; color: #f59e0b; margin-bottom: 8px; }
.home-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 700; font-size: 16px; line-height: 1.6; }
.home-card-set { max-width: 100%; min-height: 1.7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.home-card-print { font-size: 11px; color: #66665f; line-height: 1.7; margin-top: 5px; overflow-wrap: anywhere; }
.home-card-metric { margin-top: 8px; font-size: 14px; font-weight: 600; }
.home-card-detail { display: inline-block; margin-top: 10px; font-size: 11px; color: #67675f; }
#panel-movers .home-card-metric, #panel-expensive .home-card-metric { font-size: 20px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.home-card .price-up, .home-card .price-down { font-size: 13px; font-weight: 600; line-height: 1.7; }
.home-card .price-up { color: #ea580c; }
.home-card .price-down { color: #16a34a; }
.home-empty { padding: 24px 0; font-size: 13px; grid-column: 1 / -1; color: #64645d; }
.home-retry { border-bottom: 1px solid currentColor; font-size: 13px; margin: 10px 0; cursor: pointer; }
.home-more { text-align: right; font-size: 12px; margin-top: 20px; }
.home-methods { margin: 25px 0 28px; color: #66665f; font-size: 11px; line-height: 1.9; }
.home-methods summary { cursor: pointer; width: fit-content; }
.home-methods p { margin-top: 10px; max-width: 900px; }
/* 4つの入口（診断・構築・対戦・大会）。幅1180px未満は2×2、スマホは縦1列。 */
.home-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #aaa99f; border-bottom: 1px solid #aaa99f; padding: 26px 0; gap: 24px; }
.home-tools > a + a { border-left: 1px solid #d7d7d0; padding-left: 24px; }
.home-tool-index { font: 500 10px Inter, sans-serif; letter-spacing: .13em; color: #77776f; }
.home-tools h2 { font-size: 18px; font-weight: 700; margin: 9px 0; display: flex; align-items: center; gap: 10px; }
.home-tool-icon { width: 28px; height: 28px; flex-shrink: 0; color: #f59e0b; }
.home-tools h2 > .home-tool-arrow { margin-left: auto; font-weight: 400; }
.home-tool-badge { flex-shrink: 0; padding: 2px 8px; border-radius: 999px; background: #f5ecd8; color: #775015; font-size: 11px; font-weight: 700; line-height: 1.5; }
.home-tools p { font-size: 12px; color: #65655e; line-height: 1.9; }
@media (min-width: 641px) and (max-width: 1179px) {
    .home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .home-tools > a, .home-tools > a + a { border: 0; padding: 0 32px 22px 0; }
    .home-tools > a:nth-child(even) { border-left: 1px solid #d7d7d0; padding: 0 0 22px 32px; }
    .home-tools > a:nth-child(n + 3) { border-top: 1px solid #d7d7d0; padding-top: 22px; padding-bottom: 0; }
    .home-tools h2 { font-size: 20px; gap: 12px; }
    .home-tool-icon { width: 30px; height: 30px; }
}
.home-articles { padding: 34px 0 24px; }
.home-article-invite { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; line-height: 1.8; padding: 16px 0; }
.home-article-invite p { color: #65655e; }
.home-article-banner { display: block; width: 100%; }
.home-article-banner img { display: block; width: 100%; height: auto; }
.home-article-list:not([hidden]) + .home-article-invite .home-article-banner { max-width: 760px; margin: 0 auto; }
.home-article-list { display: grid; gap: 16px; margin-bottom: 6px; }
.home-article { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid #eadcc0; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(80, 52, 0, .06), 0 12px 30px -16px rgba(120, 72, 0, .35); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-article:hover { transform: translateY(-3px); border-color: #f0bf63; box-shadow: 0 2px 4px rgba(80, 52, 0, .08), 0 20px 40px -18px rgba(120, 72, 0, .45); }
.home-article.is-featured { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.home-article-visual { display: flex; align-items: center; justify-content: center; padding: 22px 16px 30px; background: radial-gradient(circle at 12% 16%, rgba(255, 255, 255, .7) 0 30px, transparent 31px), radial-gradient(circle at 90% 88%, rgba(255, 255, 255, .3) 0 76px, transparent 77px), linear-gradient(135deg, #fff3da 0%, #ffd27c 50%, #f5a524 100%); }
.home-article.is-featured .home-article-visual { padding: 34px 20px 44px; }
.home-article-fan { display: flex; align-items: flex-end; justify-content: center; }
.home-article-thumb { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 72px; aspect-ratio: 63 / 88; padding: 6px; border: 2px solid #fff; border-radius: 6px; background: linear-gradient(160deg, #fffaf0, #f1dcb0); color: #5b3d07; font-size: 10px; font-weight: 700; line-height: 1.4; text-align: center; overflow-wrap: anywhere; box-shadow: 0 8px 16px -6px rgba(70, 40, 0, .55); transform-origin: 50% 130%; transform: rotate(calc(var(--o) * 7deg)) translateY(calc(var(--o) * var(--o) * 4px)); transition: transform .25s ease; }
.home-article-thumb + .home-article-thumb { margin-left: -22px; }
.home-article.is-featured .home-article-thumb { width: 128px; font-size: 12px; border-width: 3px; border-radius: 8px; }
.home-article.is-featured .home-article-thumb + .home-article-thumb { margin-left: -30px; }
.home-article:hover .home-article-thumb { transform: rotate(calc(var(--o) * 10deg)) translateX(calc(var(--o) * 8px)) translateY(calc(var(--o) * var(--o) * 4px - 6px)); }
.home-article-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.home-article-qty { position: absolute; left: 4px; bottom: 4px; z-index: 1; padding: 3px 6px; border-radius: 999px; background: rgba(34, 34, 31, .86); color: #fff; font: 700 10px/1 Inter, sans-serif; }
.home-article.is-featured .home-article-qty { font-size: 12px; padding: 4px 8px; }
.home-article-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 20px 18px; }
.home-article.is-featured .home-article-body { gap: 12px; padding: 30px 34px 26px; }
.home-article-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.home-article-badge { padding: 4px 9px; border-radius: 999px; background: #f5ecd8; color: #775015; font-size: 11px; font-weight: 700; line-height: 1.3; }
.home-article-badge.is-new { background: #e5484d; color: #fff; font-family: Inter, sans-serif; letter-spacing: .06em; }
.home-article-likes { margin-left: auto; color: #e5484d; font-size: 13px; font-weight: 700; }
.home-article-title { font-size: 17px; font-weight: 800; line-height: 1.45; letter-spacing: -.01em; overflow-wrap: anywhere; }
.home-article.is-featured .home-article-title { font-size: 28px; line-height: 1.35; letter-spacing: -.02em; }
.home-article-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.home-article-title a:focus-visible { outline: none; }
.home-article-title a:focus-visible::after { outline: 2px solid #9b5700; outline-offset: -2px; }
.home-article-deck { color: #57574f; font-size: 12px; }
.home-article.is-featured .home-article-deck { font-size: 13px; }
.home-article-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #4d4d46; font-size: 12px; line-height: 1.8; }
.home-article.is-featured .home-article-excerpt { -webkit-line-clamp: 3; font-size: 14px; line-height: 1.85; }
.home-article-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f1e7d3; }
.home-article-author { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 700; }
.home-article-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: #fde3a7; color: #8a5300; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f3cf86; }
.home-article.is-featured .home-article-avatar { width: 34px; height: 34px; font-size: 15px; }
.home-article-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-article-author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-article-foot time { color: #77776f; font-size: 12px; font-variant-numeric: tabular-nums; }
.home-article-cta { display: none; }
.home-article.is-featured .home-article-cta { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 11px 22px; border-radius: 999px; background: #ed9807; color: #22221f; font-size: 14px; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(237, 152, 7, .9); transition: background-color .15s, transform .2s ease; }
.home-article-cta::after { content: '→'; }
.home-article.is-featured:hover .home-article-cta { background: #df8c00; transform: translateX(3px); }
.home-article-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (prefers-reduced-motion: reduce) {
    .home-article, .home-article-thumb, .home-article-cta { transition: none; }
    .home-article:hover, .home-article.is-featured:hover .home-article-cta { transform: none; }
    .home-article:hover .home-article-thumb { transform: rotate(calc(var(--o) * 7deg)) translateY(calc(var(--o) * var(--o) * 4px)); }
}
@media (max-width: 900px) {
    .home-article-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-article.is-featured .home-article-thumb { width: 100px; }
    .home-article.is-featured .home-article-thumb + .home-article-thumb { margin-left: -26px; }
    .home-article.is-featured .home-article-body { padding: 24px 24px 22px; }
    .home-article.is-featured .home-article-title { font-size: 24px; }
}
.home-guide { border-top: 1px solid #d7d7d0; padding: 18px 0 32px; display: flex; justify-content: space-between; gap: 15px; color: #65655e; font-size: 11px; line-height: 1.9; }
.home-news { border-top: 1px solid #aaa99f; padding: 30px 0 30px; }
.home-news-list { list-style: none; padding: 0; margin: 16px 0 0; }
.home-news-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid #d7d7d0; }
.home-news-item a { font-size: 14px; font-weight: 700; line-height: 1.8; overflow-wrap: anywhere; }
.home-news-item a:hover { color: #775015; text-decoration: underline; }
.home-updates { border-top: 1px solid #aaa99f; padding: 30px 0 40px; }
.home-updates-intro { color: #65655e; font-size: 12px; line-height: 1.9; margin: 12px 0 20px; }
.home-update-list { list-style: none; padding: 0; margin: 0; }
.home-update { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid #d7d7d0; }
.home-update-meta { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.home-update-meta time { color: #65655e; font-size: 12px; font-variant-numeric: tabular-nums; }
.home-update-category { color: #775015; background: #f5ecd8; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.home-update-content { overflow-wrap: anywhere; }
.home-update-content h3 { font-size: 14px; font-weight: 700; line-height: 1.8; }
.home-update-content p { color: #65655e; font-size: 12px; line-height: 1.9; margin-top: 6px; }
.home-updates-more { display: block; margin: 16px auto 0; border: 1px solid #aaa99f; border-radius: 4px; padding: 12px 24px; font-size: 12px; cursor: pointer; }
.home-updates-more:hover { background: #f5ecd8; }
@media (max-width: 640px) {
    .home-update { grid-template-columns: 1fr; gap: 10px; }
    .home-news-item { grid-template-columns: 1fr; gap: 6px; }
    .home-shell { padding: 0 20px; }
    .home-search { padding-top: 28px; }
    .home-eyebrow { font-size: 10px; margin-bottom: 15px; }
    .home-search h1 { font-size: 25px; }
    .home-search h1 span { display: block; }
    .home-intro { font-size: 12px; margin-bottom: 20px; }
    .home-search-form { gap: 8px; }
    .home-search-input { padding: 0 10px; gap: 8px; }
    .home-search-input input { height: 52px; }
    .home-search-input input::placeholder { font-size: 12px; }
    .home-search-form button { padding: 0 16px; font-size: 15px; }
    .home-search-form button span { display: none; }
    .home-search-links { font-size: 11px; flex-wrap: wrap; gap: 4px; }
    .home-search-links > div { gap: 20px; }
    .home-section-heading h2 { font-size: 20px; }
    .home-section-heading p { display: none; }
    .home-tabs { justify-content: space-between; gap: 12px; }
    .home-tabs button { font-size: 13px; }
    .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .home-card h3 { font-size: 14px; }
    .home-card-image { max-width: 176px; margin-bottom: 15px; }
    .home-card-label { font-size: 13px; }
    .home-card-metric { font-size: 13px; }
    .home-tools { gap: 20px; grid-template-columns: 1fr; }
    .home-tools > a + a { padding: 20px 0 0; border-left: 0; border-top: 1px solid #d7d7d0; }
    .home-tools h2 { font-size: 20px; gap: 12px; }
    .home-tool-icon { width: 30px; height: 30px; }
    .home-article-invite, .home-guide { flex-direction: column; gap: 10px; }
    .home-article.is-featured { grid-template-columns: 1fr; }
    .home-article.is-featured .home-article-visual { padding: 24px 12px 30px; }
    .home-article.is-featured .home-article-thumb { width: 86px; font-size: 10px; }
    .home-article.is-featured .home-article-thumb + .home-article-thumb { margin-left: -20px; }
    .home-article.is-featured .home-article-body { gap: 10px; padding: 18px 18px 18px; }
    .home-article.is-featured .home-article-title { font-size: 22px; }
    .home-article.is-featured .home-article-excerpt { font-size: 13px; }
    .home-article.is-featured .home-article-cta { justify-content: center; width: 100%; margin-left: 0; padding: 12px 16px; font-size: 14px; }
    .home-article-more { grid-template-columns: 1fr; }
    .home-article-more .home-article { grid-template-columns: 116px minmax(0, 1fr); }
    .home-article-more .home-article-visual { padding: 12px 6px 18px; }
    .home-article-more .home-article-thumb { width: 40px; padding: 3px; border-width: 1px; border-radius: 4px; font-size: 8px; }
    .home-article-more .home-article-thumb + .home-article-thumb { margin-left: -26px; }
    .home-article-more .home-article-qty, .home-article-more .home-article-excerpt { display: none; }
    .home-article-more .home-article-body { gap: 6px; padding: 12px 14px; }
    .home-article-more .home-article-title { font-size: 15px; }
}
