@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=DM+Sans:wght@500;700;800&display=swap');

:root {
    --bg-body: #f4f4f6;
    --bg-header: rgba(255, 255, 255, 0.97);
    --text-body: #1a1a2e;
    --text-sub: #666;
    --bg-card: #ffffff;
    --text-card: #1a1a2e;
    --switch-red: #e60012;
    --switch-red-hover: #c2000f;
    --switch-red-light: rgba(230,0,18,0.06);
    --switch-neon-blue: #00c3e3;
    --switch-neon-red: #ff3c28;
    --eshop-orange: #f5a623;
    --amz-orange: #FF9900;
    --rakuten-red: #bf0000;
    --price-red: #d32f2f;
    --sale-green: #00c853;
    --radius-s: 8px;
    --radius-m: 14px;
    --shadow-card: 0 1px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 24px rgba(230,0,18,0.08), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-float: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border: 1px solid #e8e8ec;
}
body { font-family: "DM Sans", "Noto Sans JP", sans-serif; background-color: var(--bg-body); color: var(--text-body); margin: 0; padding: 20px; -webkit-font-smoothing: antialiased; }
html { overflow-x: hidden; }

.hero-section { max-width: 1200px; margin: 0 auto 12px; padding: 40px 32px 36px; position: relative; overflow: hidden; border-radius: var(--radius-m); background: #fff; border: var(--border); }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--switch-red) 0%, var(--switch-neon-red) 50%, var(--switch-neon-blue) 100%); }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.hero-main { flex: 1; }
.app-logo { height: 56px; width: auto; object-fit: contain; display: block; margin-bottom: 2px; }
.app-logo-text { display: none; font-size: 20px; font-weight: 800; color: var(--text-body); letter-spacing: -0.5px; }
.hero-title { font-size: 24px; font-weight: 900; color: var(--text-body); margin: 10px 0 6px; line-height: 1.4; letter-spacing: -0.5px; }
.hero-desc { font-size: 14px; color: var(--text-sub); margin: 0; line-height: 1.6; }
.hero-badges { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-platform-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: var(--switch-red-light); border: 1px solid rgba(230,0,18,0.2); border-radius: 20px; color: var(--switch-red); font-size: 13px; font-weight: 700; }
.hero-stats { display: flex; gap: 16px; flex-shrink: 0; }
.hero-stat { text-align: center; background: var(--bg-body); border: var(--border); border-radius: 12px; padding: 14px 20px; min-width: 105px; }
.hero-stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--switch-red); line-height: 1; }
.hero-stat-label { display: block; font-size: 11px; color: var(--text-sub); margin-top: 5px; font-weight: 500; }

.hero-articles-link { display: inline-block; padding: 5px 14px; background: rgba(230,0,18,0.06); border: 1px solid rgba(230,0,18,0.2); border-radius: 20px; color: var(--switch-red); text-decoration: none; font-size: 13px; font-weight: 700; transition: background .2s, color .2s; }
.hero-articles-link:hover { background: var(--switch-red); color: #fff; }
.news-bar { max-width: 1200px; margin: 0 auto; padding: 10px 22px; background: #fff; border-left: var(--border); border-right: var(--border); display: flex; align-items: center; gap: 12px; font-size: 13px; overflow: hidden; }
.news-bar-label { flex-shrink: 0; font-weight: 700; color: var(--switch-red); background: var(--switch-red-light); padding: 3px 10px; border-radius: 4px; font-size: 12px; }
.news-bar-items { display: flex; gap: 20px; overflow-x: auto; flex: 1; white-space: nowrap; }
.news-bar-item { color: var(--text-sub); text-decoration: none; transition: color 0.2s; }
.news-bar-item:hover { color: var(--switch-red); }
.news-bar-more { flex-shrink: 0; color: var(--switch-red); text-decoration: none; font-weight: 600; font-size: 12px; }

.filter-container { position: sticky; top: 20px; z-index: 100; background: var(--bg-header); padding: 14px 22px; box-shadow: var(--shadow-float); max-width: 1200px; margin: 0 auto 28px auto; border-radius: var(--radius-m); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; backdrop-filter: blur(12px); border: var(--border); border-top: 3px solid var(--switch-red); }
.filter-row { display: flex; gap: 12px; align-items: center; width: 100%; flex-wrap: wrap; }
.search-wrapper { flex: 1; min-width: 180px; }
.search-wrapper input { width: 100%; box-sizing: border-box; padding: 9px 14px; border: var(--border); border-radius: var(--radius-s); font-size: 14px; font-family: inherit; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.search-wrapper input:focus { outline: none; border-color: var(--switch-red); box-shadow: 0 0 0 3px rgba(230,0,18,0.08); }
#genreFilter { padding: 9px 12px; border: var(--border); border-radius: var(--radius-s); font-size: 14px; font-family: inherit; background: #fff; min-width: 140px; }
.price-range-wrap { display: flex; align-items: center; gap: 6px; }
.price-range-label { font-size: 13px; color: var(--text-sub); font-weight: 500; }
.price-range-wrap input[type="number"] { width: 80px; padding: 9px 8px; border: var(--border); border-radius: var(--radius-s); font-size: 14px; font-family: inherit; background: #fff; }
.price-range-sep { color: #bbb; }
.checkbox-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sale-filter-label { font-size: 13px; color: #555; cursor: pointer; display: flex; align-items: center; gap: 4px; font-weight: 500; }
.sale-filter-label input { accent-color: var(--switch-red); }
.action-btns { display: flex; gap: 8px; margin-left: auto; }
#searchBtn { padding: 9px 20px; background: var(--switch-red); color: #fff; border: none; border-radius: var(--radius-s); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; }
#searchBtn:hover { background: var(--switch-red-hover); }
.clear-btn { padding: 9px 16px; background: #fff; color: #666; border: var(--border); border-radius: var(--radius-s); font-size: 14px; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.clear-btn:hover { background: var(--bg-body); }

.page-layout { max-width: 1200px; margin: 0 auto; display: flex; gap: 24px; align-items: flex-start; }
.page-main { flex: 1; min-width: 0; }
.sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 100px; }
.sidebar-section { background: #fff; border-radius: var(--radius-m); padding: 16px; border: var(--border); }
.sidebar-title { font-size: 14px; font-weight: 700; color: var(--text-body); margin-bottom: 12px; padding-bottom: 8px; border-bottom: var(--border); }
.sidebar-rec-card { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f0f0f0; text-decoration: none; transition: background 0.15s; border-radius: 6px; }
.sidebar-rec-card:hover { background: var(--bg-body); }
.sidebar-rec-img-wrap { width: 56px; height: 56px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #f5f5f5; }
.sidebar-rec-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-rec-info { flex: 1; min-width: 0; }
.sidebar-rec-name { font-size: 12px; color: #555; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-rec-price { font-size: 13px; font-weight: 700; color: var(--switch-red); margin-top: 4px; }
.sidebar-loading { color: #aaa; font-size: 13px; text-align: center; padding: 20px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.loading { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #aaa; font-size: 15px; }
.card { background: var(--bg-card); border-radius: var(--radius-m); overflow: hidden; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-card); border: 1px solid #eee; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: rgba(230,0,18,0.15); }
.card-img-wrapper { width: 100%; aspect-ratio: 1 / 1; background: #f0f0f3; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img { transform: scale(1.03); }
.card-content { padding: 14px; color: var(--text-card); }
.genre { font-size: 11px; color: var(--switch-red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.title { font-size: 14px; font-weight: 700; margin: 4px 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-card); }
.release-date { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.price-container { border-top: 1px solid #f0f0f0; padding-top: 8px; }
.price-row-ps { display: flex; justify-content: space-between; font-size: 13px; color: #888; margin-bottom: 4px; }
.price-row-lowest { display: flex; justify-content: space-between; align-items: baseline; }
.lowest-label { font-size: 12px; color: #aaa; font-weight: 500; }
.lowest-val { font-size: 18px; font-weight: 800; color: var(--switch-red); letter-spacing: -0.5px; }
.sale-badge { position: absolute; top: 10px; left: 10px; background: var(--sale-green); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; z-index: 2; box-shadow: 0 2px 8px rgba(0,200,83,0.25); }
.ribbon { position: absolute; top: 10px; right: -30px; background: var(--switch-red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 36px; transform: rotate(45deg); z-index: 2; }
.original-price { color: #bbb; font-size: 12px; }
.sale-price { color: var(--price-red); font-weight: 700; }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 20px 0; flex-wrap: wrap; position: relative; }
.pager-info { font-size: 13px; color: #999; width: 100%; text-align: center; margin-bottom: 4px; }
.pager-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pager-btns button { padding: 8px 14px; border: var(--border); background: #fff; color: #555; border-radius: 6px; cursor: pointer; font-size: 13px; font-family: inherit; transition: all 0.15s; }
.pager-btns button:hover:not(:disabled) { background: var(--switch-red-light); border-color: rgba(230,0,18,0.3); color: var(--switch-red); }
.pager-btns button.active { background: var(--switch-red); border-color: var(--switch-red); color: #fff; font-weight: 700; }
.pager-btns button:disabled { opacity: 0.35; cursor: default; }
.sort-select { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 8px 12px; border: var(--border); background: #fff; color: #555; border-radius: 6px; font-size: 13px; font-family: inherit; cursor: pointer; }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; backdrop-filter: blur(4px); overflow-y: auto; justify-content: center; align-items: flex-start; padding: 40px 20px; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: 18px; max-width: 860px; width: 100%; display: flex; position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: modalSlide 0.3s ease; }
@keyframes modalSlide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.close-btn { position: absolute; top: 12px; right: 14px; font-size: 20px; cursor: pointer; color: #bbb; z-index: 10; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s, color 0.2s; }
.close-btn:hover { background: #f0f0f0; color: #333; }
.modal-left { width: 340px; flex-shrink: 0; background: #f8f8fa; display: flex; flex-direction: column; }
.main-view-area { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f0f0f3; }
.main-view-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; font-size: 20px; padding: 12px 10px; cursor: pointer; border-radius: 6px; transition: background 0.2s; }
.nav-btn:hover { background: rgba(0,0,0,0.6); }
.nav-prev { left: 8px; }
.nav-next { right: 8px; }
.thumb-area { display: flex; gap: 6px; padding: 10px; overflow-x: auto; background: #f0f0f0; }
.thumb-item { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.5; border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s; }
.thumb-item.active, .thumb-item:hover { opacity: 1; border-color: var(--switch-red); }
.modal-right { flex: 1; padding: 28px 24px; display: flex; flex-direction: column; color: var(--text-card); overflow-y: auto; max-height: 80vh; }
.modal-right-body { flex: 1; }
.modal-tag { display: inline-block; background: var(--switch-red-light); color: var(--switch-red); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.modal-title { font-size: 20px; font-weight: 800; margin: 10px 0 16px; line-height: 1.4; color: var(--text-body); }
.info-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.info-table th { text-align: left; padding: 7px 0; color: #aaa; font-weight: 500; width: 90px; vertical-align: top; }
.info-table td { padding: 7px 0; color: #444; }
.modal-price-area { background: var(--bg-body); border: var(--border); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.modal-price-note { font-size: 12px; color: #aaa; margin-bottom: 4px; }
.modal-price { font-size: 28px; font-weight: 800; color: var(--switch-red); letter-spacing: -0.5px; }
.modal-price-sub { font-size: 13px; color: #999; margin-top: 4px; }
.sale-info-area { background: #fff8e1; border: 1px solid #ffe082; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px; color: #e65100; font-weight: 600; }
.shop-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.shop-btn { display: flex; align-items: center; justify-content: center; padding: 11px 8px; border-radius: var(--radius-s); font-size: 13px; font-weight: 700; text-decoration: none; color: #fff; text-align: center; transition: opacity 0.2s, transform 0.15s; }
.shop-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.shop-btn[style*="display: none"], .shop-btn[style*="display:none"] { display: none !important; }
.btn-eshop { background: var(--eshop-orange); }
.btn-amz { background: var(--amz-orange); }
.btn-rakuten { background: var(--rakuten-red); }
.btn-yamada { background: #005bac; }
.btn-bic { background: #e85298; }

.share-container { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.share-label { font-size: 12px; color: #aaa; font-weight: 500; }
.share-buttons { display: flex; gap: 6px; }
.share-btn-sns { width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
.share-btn-sns:hover { transform: scale(1.1); }
.share-btn-sns svg { width: 16px; height: 16px; }
.share-btn--x { background: #000; }
.share-btn--line { background: #06c755; }
.share-btn--fb { background: #1877f2; }
.share-btn--hatena { background: #00a4de; }
.share-btn--copy { background: #e8e8e8; }
.share-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: #333; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity 0.3s, transform 0.3s; z-index: 999; pointer-events: none; }
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.detail-page-link { display: block; text-align: center; padding: 12px 0; color: var(--switch-red); font-size: 14px; font-weight: 600; text-decoration: none; border-top: 1px solid #f0f0f0; margin-top: auto; transition: color 0.2s; }
.detail-page-link:hover { color: var(--switch-red-hover); }

.site-footer { max-width: 1200px; margin: 48px auto 0; padding: 28px 20px; border-top: var(--border); text-align: center; font-size: 12px; color: #aaa; line-height: 2; }
.footer-links { margin-top: 8px; }
.footer-links a { color: #999; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--switch-red); }
.footer-links span { margin: 0 8px; color: #ccc; }

@media (max-width: 768px) {
    body { padding: 10px; }
    .hero-section { padding: 24px 16px; border-radius: 10px; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-title { font-size: 19px; }
    .hero-stats { justify-content: center; }
    .hero-stat { min-width: 85px; padding: 12px 14px; }
    .hero-stat-num { font-size: 22px; }
    .hero-badges { justify-content: center; }
    .app-logo { display: none; }
    .app-logo-text { display: block; }
    .filter-container { position: sticky; top: 0; border-radius: var(--radius-s); padding: 10px 12px; margin-bottom: 16px; }
    .search-wrapper { min-width: 100%; }
    #genreFilter { flex: 1; min-width: 100px; }
    .price-range-wrap { width: 100%; }
    .price-range-wrap input[type="number"] { flex: 1; min-width: 0; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
    .page-layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .modal-content { flex-direction: column; }
    .modal-left { width: 100%; }
    .modal-right { max-height: none; padding: 20px 16px; }
    .shop-btn-grid { grid-template-columns: 1fr; }
    .sort-select { position: static; transform: none; width: 100%; margin-top: 4px; }
    .pager { flex-direction: column; }
}