/* トップページ専用 - common.cssと競合ゼロ */
.home-container {
    min-height: 100vh;
    background: url('../img/tree-woods_00006.jpg') center/cover no-repeat fixed;
    color: #fff;
    /* bodyのpadding-top:80pxはcommon.cssで確保されているので追加なし */
}

/* Heroセクション - 余白を減らして画面いっぱいに近づける */
.hero {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;                  /* マージンリセット */
    padding-top: 30px;              /* これでカルーセルエリアだけ下にずらす（調整可能） */
    padding-bottom: 100px;           /* 下部の余白 */
    text-align: center;
}

/* カルーセル本体 */
.carousel {
    overflow: hidden;
    height: auto;
    margin: 0 auto;                  
    max-width: 960px;
    border-radius: 35px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    padding: 15px;
}

.carousel_top {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
}

.container {
    width: 700px;
    max-height: 100px;               /* 高さを制限（以前より狭く） */
    aspect-ratio: 4 / 1;             /* 横長比率を保ちつつ高さ抑える（調整可能） */
    overflow: hidden;
    margin-bottom: 10px;
}

.carousel ul {
    display: flex;
    list-style: none;
    height: 100%;
    transition-duration: .6s;
    padding: 0 !important;
    margin: 0 !important;
}

.carousel ul li {
    height: 100%;
    min-width: 100%;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;             /* containに変更 → 画像全体表示 + 高さ圧縮 */
    /* または object-fit: cover; でトリミングしたい場合 */
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    background: #000;                /* contain時の余白を黒で自然に */
}

/* 左右ボタン */
.prev,
.next {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.prev { margin-right: 15px; }
.next { margin-left: 15px; }

.prev:hover,
.next:hover {
    background: rgba(74, 144, 226, 0.9);
    transform: scale(1.15);
}

/* ナビドット */
.carousel_bottom {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.nav button {
    width: 15px;
    height: 15px;
    background-color: rgba(255,255,255,0.6);
    border-radius: 50%;
    border: none;
    margin: 0 10px;
    transition: all 0.3s;
}

.nav button.current {
    background-color: #4a90e2;
    transform: scale(1.4);
}

/* ウェルカムテキストとの間隔調整 */
.hero-text {
    margin-top: 40px;
}

.hero-text h1 {
    font-size: 3.8em;            /* 少し小さく（4.5em → 3.8em） */
    text-shadow: 
        0 0 25px #000,
        5px 5px 15px #000,
        0 0 50px #ffffff;       /* 白いグローで明るく視認性UP */
    margin: 0;
    letter-spacing: 3px;
}

.hero-text p {
    font-size: 1.9em;            /* 少し小さく */
    text-shadow: 
        3px 3px 10px #000,
        0 0 20px #ffffff;       /* 白グロー追加 */
    margin: 15px 0 0;
    letter-spacing: 1px;
}

/* 下部セクション（余白も全体的にコンパクトに） */
.section {
    max-width: 1200px;
    margin: 60px auto;           /* 上下余白減らす */
    padding: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 35px;
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .hero { margin: 10px auto 40px; }
    .container { width: 90%; }
    .hero-text h1 { font-size: 2.6em; }
    .hero-text p { font-size: 1.4em; }
    .prev, .next { width: 55px; height: 55px; font-size: 20px; }
    .section { padding: 30px 20px; margin: 40px auto; }
}

/* このサイトについてセクション */
.about-section {
    max-width: 1000px;               /* 他のセクションより少し狭めで中央寄せ */
    margin: 80px auto;
    padding: 50px;
    background: rgba(0,0,0,0.55);
    border-radius: 35px;
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;      /* 1列中央配置 */
    gap: 30px;
}

.about-card {
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 40px;
    text-align: left;
    transition: all 0.5s ease;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(74,144,226,0.3);
}

.about-card:hover {
    transform: translateY(-15px) scale(1.01);
    box-shadow: 0 30px 60px rgba(74,144,226,0.5);
    background: rgba(74,144,226,0.15);
    border-color: #4a90e2;
}

.about-icon {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 30px #4a90e2;
}

.about-card h3 {
    font-size: 2.5em;
    color: #4a90e2;
    margin: 20px 0;
    text-shadow: 0 0 20px #000;
}

.about-card p {
    font-size: 1.2em;
    line-height: 1.8;
    margin: 15px 0;
    color: #eee;
    text-shadow: 1px 1px 5px #000;
}

/* おすすめゲームカード全体 */
.game-card-preview {
    background: rgba(0,0,0,0.6);
    border-radius: 20px;             /* 角丸を少し小さく */
    padding: 25px;                   /* パディング減らして小さく（40px → 25px） */
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74,144,226,0.3);
}

.game-card-preview:hover {
    transform: translateY(-10px) scale(1.03);  /* 拡大率控えめ + Y移動減 */
    box-shadow: 0 20px 40px rgba(74,144,226,0.4);
    background: rgba(0,0,0,0.7);
    border-color: #4a90e2;
}

/* 画像 */
.game-card-preview img {
    width: 100%;
    max-height: 200px;               /* 高さ制限で小さく */
    object-fit: contain;             /* 画像全体表示（containで余白OK） */
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    background: #000;                /* contain時の余白を黒で自然に */
}

/* タイトル・説明 */
.game-card-preview h3 {
    font-size: 1.2em;
    color: #4a90e2;
    margin: 20px 0 15px;
    text-shadow: 0 0 15px #000;
    margin-bottom: 20px;
}

.game-card-preview p {
    font-size: 1.2em;
    color: #eee;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* プレイするボタン */
.game-card-preview .btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff8c00, #ffd700); /* 明るいオレンジグラデ */
    color: #000;
    font-weight: bold;
    font-size: 1.6em;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255,140,0,0.6);
    transition: all 0.4s;
    margin: 10px;
}

.game-card-preview .btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 40px rgba(255,140,0,0.8);
    background: linear-gradient(45deg, #ffd700, #ffaa00);
}

/* もっと見るリンク（セクション下） */
.more-link {
    display: block;
    text-align: center;
    margin: 50px auto 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;                          /* 明るい金色で目立つ */
    text-decoration: none;
    padding: 15px 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50px;
    border: 3px solid #ffd700;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.more-link:hover {
    background: rgba(255,215,0,0.2);
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(255,215,0,0.6);
    border-color: #fff;
}

/* カードグリッド - カードをコンパクトに */
.cards-grid {
    gap: 30px;                       /* カード間隔を少し狭く */
}



/* ギャラリーグリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* カードを小さく（300px → 200px） */
    gap: 30px;
}

/* ギャラリー画像カード（サムネイル化） */
.gallery-grid img {
    width: 100%;
    height: 200px;                   /* 固定高さでサムネイルサイズに統一 */
    object-fit: cover;               /* トリミングしてきれいに収める */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
    background: #000;                /* 読み込み時の黒背景 */
}

/* ホバーで少し拡大（控えめ） */
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(74,144,226,0.5);
    z-index: 5;
}

/* ギャラリーカード全体（もし枠やオーバーレイ追加したい場合） */
.gallery-grid a {                     /* リンクで囲んでいる場合 */
    display: block;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gallery-grid a::after {             /* オーバーレイでホバー時タイトル表示（任意） */
    content: 'View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-grid a:hover::after {
    opacity: 1;
}

.blog-card img {
    width: 100%;
    height: 200px;                   /* 少し大きく */
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: all 0.4s;
}

.blog-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(74,144,226,0.5);
}

.blog-card .date {
    font-size: 0.9em;
    color: #aaa;
    margin: 10px 0;
}

.blog-card h3 {
    font-size: 1.8em;                /* 少し大きく */
    color: #4a90e2;                  /* 青で目立つ */
    margin: 15px 0 10px;
    text-shadow: 
        2px 2px 6px #000,
        0 0 15px #4a90e2;            /* 青いグローで視認性爆上げ */
    font-weight: bold;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-card h3 a:hover {
    color: #fff;
    text-shadow: 0 0 25px #4a90e2;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #4a90e2;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}