/* ========================================
   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;
}

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

.arcade-carousel {
    padding: 0;
}

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

.arcade-slider {
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
}

.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;
}

.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;
}

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

.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: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.arcade-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.arcade-arrow:active {
    background: rgba(255, 255, 255, 0.25);
}

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

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

/* 矢印アイコン切り替え */
.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: #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;
}

.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: 55%;
    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 1rem 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;
}
