/* 全体 */
body {
    margin: 0;
    font-family: sans-serif;
    background: #fff;
    color: #333;
}

/* ヘッダー */
header {
    background: #1abc9c;
}

.logo {
    width: 250px;
    height: auto;
}

.nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    text-align: center;
    align-items: center;
    width: 75%;
    margin: 0;
}

.nav li {
    display: grid;
    place-items: center;
}

.nav a {
    margin-left: 15px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

.nav div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* メイン */
main {
    padding: 20px;
}

/* フッター */
footer {
    background: #1abc9c;
    color: #fff;
    text-align: center;
    padding: 15px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;

    margin: 20px auto 0;
    padding: 18px 24px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    transition:
        background .3s,
        transform .2s,
        box-shadow .3s;
}

.accordion h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.game-h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin: 10px 0 15px;
}

/* 説明文 */

.game-description {
    font-size: 20px;

    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;

    max-height: 0;
    opacity: 0;
    overflow: hidden;

    margin: 0 auto 20px;
    padding: 0 20px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-top: none;

    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    transition:
        max-height .5s ease,
        opacity .3s ease,
        padding .5s ease;
}

.game-description p {
    color: #555;
    line-height: 1.6;
}

.game-description a {
    color: #00adb5;
    text-decoration: none;
    font-weight: bold;
}

/* 矢印 */
.accordion::after {
    content: "▼";

    font-size: 0.9rem;
    color: #6b7280;

    transition: transform .3s;
}

/* 開いた状態 */
.accordion.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.accordion.active::after {
    transform: rotate(180deg);
}

.game-description.active {
    max-height: 2000px;
    opacity: 1;

    padding: 20px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.game-description:not(.active) {
    border: none;
    box-shadow: none;
}


iframe {
    display: block;
    margin: 0 auto;
    cursor: default;
    width: 1050px;
    height: 825px;
}

/* 2カラム */
.container {
    display: flex;
    gap: 0;
    padding: 20px;
}

/* 左（メイン） */
.content {
    flex: 9;
    flex-direction: column;
}

/* 右（サイドバー） */
.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 広告バナー */
.ad-banner {
    text-align: center;
    margin: 20px 0;
}

/* サイド広告 */
.side-ad {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-label {
    font-size: 12px;
    color: gray;
    text-align: center;
}

