/* ========================================
   GAMES.CSS - ゲーム関連スタイル
   ======================================== */

/* ========================================
   セクションタイトル・ラベル
   ======================================== */

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-label--link {
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s;
}

.section-label--link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   アーケードカルーセル（一覧用）
   ======================================== */

.arcade-carousel {
    padding: 0;
}

.arcade-carousel .section-title {
    padding: 0 1rem;
}

.arcade-slider {
    position: relative;
    overflow: visible;
}

.arcade-slider__track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease;
}

.arcade-slide {
    flex-shrink: 0;
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.4;
    transform: scale(0.75);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.arcade-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.arcade-slide.is-popping {
    animation: slide-pop 0.3s ease;
}

@keyframes slide-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.arcade-slide.is-prev,
.arcade-slide.is-next {
    opacity: 0.6;
    transform: scale(0.8);
}

.arcade-slide__cabinet {
    position: relative;
    width: 100%;
}

.arcade-slide__img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.arcade-slide__video {
    position: absolute;
    top: 19%;
    left: 20%;
    width: 60%;
    height: auto;
    z-index: 1;
    border-radius: 2px;
    background: #000000;
}

.arcade-slide__title {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.arcade-slide.is-active .arcade-slide__title {
    opacity: 1;
}

/* ナビゲーションドット */
.arcade-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.arcade-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.arcade-nav__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.arcade-nav__dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* 矢印ボタン */
.arcade-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.arcade-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.arcade-arrow:active {
    transform: translateY(-70%) scale(0.95);
}

.arcade-arrow--prev {
    left: 40px;
}

.arcade-arrow--next {
    right: 40px;
}

/* 矢印アイコン切り替え */
.arcade-arrow__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arcade-arrow__icon--loop {
    display: none;
}

/* 左端（最初のスライド）：左矢印をループアイコンに */
.arcade-arrow--prev.is-at-start .arcade-arrow__icon--normal {
    display: none;
}

.arcade-arrow--prev.is-at-start .arcade-arrow__icon--loop {
    display: flex;
}

/* 右端（最後のスライド）：右矢印をループアイコンに */
.arcade-arrow--next.is-at-end .arcade-arrow__icon--normal {
    display: none;
}

.arcade-arrow--next.is-at-end .arcade-arrow__icon--loop {
    display: flex;
}

/* ========================================
   ゲームカード（一覧用・旧スタイル）
   ======================================== */

.game-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: background-color 0.2s, border-color 0.2s;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-card:active {
    background: rgba(255, 255, 255, 0.1);
}

.game-card__thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
}

.game-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}

.game-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-card__category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    align-self: flex-start;
}

/* ========================================
   ゲーム詳細ページ
   ======================================== */

.game-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ----------------------------------------
   1段目：ロゴ + タイトル
   ---------------------------------------- */

.game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.game-header__logo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px,
            transparent 4px
        ),
        #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.game-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.game-header__logo-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.game-header__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.game-header__title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.game-header__category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    align-self: flex-start;
}

/* ----------------------------------------
   2段目：アーケード機 + 説明文
   ---------------------------------------- */

.game-intro {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.game-intro__arcade {
    flex-shrink: 0;
    width: 130px;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.game-intro__arcade:active {
    transform: scale(0.95);
}

.game-intro__arcade.is-popping {
    animation: arcade-pop 0.3s ease;
}

@keyframes arcade-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
    }
}

.game-intro__cabinet {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.game-intro__video {
    position: absolute;
    top: 19%;
    left: 20%;
    width: 60%;
    height: auto;
    z-index: 1;
    border-radius: 2px;
}

.game-intro__expand-btn {
    position: absolute;
    bottom: 38%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #fff;
}

.game-intro__expand-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ----------------------------------------
   拡大ポップアップ
   ---------------------------------------- */

.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.video-popup.is-open {
    visibility: visible;
    opacity: 1;
}

.video-popup__content {
    position: relative;
    width: 90%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
}

.video-popup__video {
    position: absolute;
    top: 15%;
    left: 26%;
    width: 48%;
    z-index: 1;
    object-fit: cover;
    border-radius: 4px;
}

.video-popup__monitor {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
}

.video-popup__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.video-popup__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-intro__text {
    flex: 1;
    display: flex;
    align-items: center;
}

.game-intro__text p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ----------------------------------------
   3段目：スクリーンショット横スクロール
   ---------------------------------------- */

.game-screenshots {
    margin: 0 -1rem;
    padding: 0 1rem;
}

.game-screenshots .section-label {
    padding-left: 0;
}

.screenshot-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.screenshot-scroll::-webkit-scrollbar {
    height: 4px;
}

.screenshot-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.screenshot-scroll__item {
    flex-shrink: 0;
    width: 70%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.screenshot-scroll__item img {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
    overflow: hidden;
    background: #222;
    object-fit: cover;
}

.screenshot-scroll__caption {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding: 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------------------------------
   4段目：レビューコメント
   ---------------------------------------- */

.game-reviews {
    padding-top: 0.5rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.review-card__rating {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.5rem;
}

.star {
    font-size: 0.875rem;
    line-height: 1;
}

.star--filled {
    color: #fbbf24;
}

.star--empty {
    color: rgba(255, 255, 255, 0.2);
}

.review-card__comment {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.5rem 0;
}

.review-card__author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-align: right;
}

/* ----------------------------------------
   タグセクション
   ---------------------------------------- */

.game-tags {
    padding-top: 0.25rem;
}

/* ========================================
   タグ（共通）
   ======================================== */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
}

/* ========================================
   旧スタイル（互換性のため残す）
   ======================================== */

.game-detail__hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #222;
}

.game-detail__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-detail__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.game-detail__category {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    align-self: flex-start;
}

.game-detail__section {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.game-detail__section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.game-detail__section p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* スクリーンショットグリッド（旧） */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.screenshot-item {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #222;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   ボタン
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: #fff;
    color: #000;
}

.btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn--primary:active {
    background: rgba(255, 255, 255, 0.8);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

/* ========================================
   ゲームナビゲーション
   ======================================== */

.game-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
}

.game-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s ease;
}

.game-nav__item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-nav__icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.game-nav__label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   パンくずナビ
   ======================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb__separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   コンテンツページ共通
   ======================================== */

.game-content {
    padding: 0 0 2rem;
}

.content-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========================================
   マニュアルページ
   ======================================== */

.manual-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.manual-section {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.manual-section__heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.manual-section__content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   キャラクターページ
   ======================================== */

.character-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.character-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.character-card__image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-card__placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.character-card__info {
    flex: 1;
    min-width: 0;
}

.character-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.character-card__role {
    display: inline-block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.character-card__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   シナリオページ
   ======================================== */

.scenario-prologue {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 10px 10px 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.scenario-chapters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scenario-chapter {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.scenario-chapter__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scenario-chapter__number {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.scenario-chapter__summary {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   記事ページ
   ======================================== */

.article-header {
    margin-bottom: 1.5rem;
}

.article-date {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.article-body {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.article-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body .article-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   記事一覧
   ======================================== */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, border-color 0.2s;
}

.article-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.article-card__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.article-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-card__excerpt {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: auto;
}

/* ========================================
   テーマ音楽プレーヤー
   ======================================== */

.theme-player {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-player__jacket {
    position: relative;
    flex-shrink: 0;
    width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: visible;
    background: #1a1a1a;
    /* CDケース風の立体効果 */
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(500px) rotateY(-3deg);
    transform-style: preserve-3d;
}

/* プラスチックケースの光沢 */
.theme-player__jacket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 5;
    pointer-events: none;
    border-radius: 4px;
}

/* ケースの側面（厚み） */
.theme-player__jacket::after {
    content: '';
    position: absolute;
    top: 2px;
    right: -6px;
    bottom: 2px;
    width: 6px;
    background: linear-gradient(
        to right,
        #2a2a2a 0%,
        #1a1a1a 50%,
        #0a0a0a 100%
    );
    transform: rotateY(90deg);
    transform-origin: left center;
    border-radius: 0 2px 2px 0;
}

.theme-player__jacket-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.theme-player__jacket-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* イコライザーオーバーレイ */
.theme-player__equalizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.theme-player.is-playing .theme-player__equalizer {
    opacity: 1;
}

.theme-player__bar {
    flex: 1;
    max-width: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: height 0.05s ease;
}

/* プレーヤーコントロール */
.theme-player__controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.theme-player__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-player__play-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    transition: transform 0.15s ease, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.theme-player__play-btn svg {
    display: block;
}

.theme-player__play-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.theme-player__play-btn:active {
    transform: scale(0.95);
}

.theme-player__play-btn:focus {
    outline: none;
}

.theme-player__play-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.theme-player__play-btn .icon-pause {
    display: none;
}

.theme-player.is-playing .theme-player__play-btn .icon-play {
    display: none;
}

.theme-player.is-playing .theme-player__play-btn .icon-pause {
    display: block;
}

/* 時間表示 */
.theme-player__time {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.theme-player__current {
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.theme-player__duration {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* プログレスバー */
.theme-player__progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.theme-player__progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

/* テーマ曲説明 */
.theme-player__description {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 1rem 0 0 0;
}

/* ========================================
   テーマ曲専用ページ
   ======================================== */

.theme-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ジャケット */
.theme-page__jacket {
    width: 80%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: visible;
    /* CDケース風の立体効果 */
    box-shadow: 
        0 2px 0 rgba(255, 255, 255, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(800px) rotateY(-2deg);
    transform-style: preserve-3d;
    position: relative;
}

.theme-page__jacket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 5;
    pointer-events: none;
    border-radius: 8px;
}

.theme-page__jacket::after {
    content: '';
    position: absolute;
    top: 4px;
    right: -8px;
    bottom: 4px;
    width: 8px;
    background: linear-gradient(
        to right,
        #2a2a2a 0%,
        #1a1a1a 50%,
        #0a0a0a 100%
    );
    transform: rotateY(90deg);
    transform-origin: left center;
    border-radius: 0 4px 4px 0;
}

.theme-page__jacket-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

.theme-page__jacket-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* イコライザー */
.theme-page__equalizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.theme-page__jacket.is-playing .theme-page__equalizer {
    opacity: 1;
}

.theme-page__bar {
    flex: 1;
    max-width: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: height 0.05s ease;
}

/* コントロール */
.theme-page__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-page__play-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    transition: transform 0.15s ease, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.theme-page__play-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.theme-page__play-btn:active {
    transform: scale(0.95);
}

.theme-page__play-btn:focus {
    outline: none;
}

.theme-page__play-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.theme-page__play-btn svg {
    display: block;
}

.theme-page__play-btn .icon-pause {
    display: none;
}

.theme-page__jacket.is-playing ~ .theme-page__controls .theme-page__play-btn .icon-play {
    display: none;
}

.theme-page__jacket.is-playing ~ .theme-page__controls .theme-page__play-btn .icon-pause {
    display: block;
}

.theme-page__progress-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-page__time {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.theme-page__time span:last-child {
    color: rgba(255, 255, 255, 0.5);
}

.theme-page__progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.theme-page__progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

/* 曲説明 */
.theme-page__description {
    padding: 0;
}

.theme-page__description p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 歌詞 */
.theme-page__lyrics {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.theme-page__lyrics .section-label {
    margin-bottom: 1rem;
}

.theme-page__lyrics-text {
    font-size: 0.9375rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}
