/* layout.css - 全体のレイアウト、ヘッダー、フッター、広告等 */

/* メインコンテナ */
.main {
    max-width: 500px;
    margin: auto;
    padding: 0 16px 24px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ヘッダータイトル */
.title img {
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 0;
    /* margin-top: -2%; */
    position: relative;
}

.title a {
    text-decoration: none;
}

.title a:hover {
    color: #3367d6;
}

/* 説明文セクション */
.explain-box {
    font-size: 14px;
    margin-top: 10px;
    border: none;
    background-color: transparent;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    /* 下側にもボーダーを追加 */
}

/* 最初の説明ボックス（バナー直下）用 */
.explain-box:first-of-type,
.explain-box.top {
    border-top: none;
    margin-top: 0;
}

.explain p {
    margin: 0;
    color: #555;
}

/* プレイヤー一覧リンク（矢印付き） */
.top_players_link {
    position: relative;
    display: inline-block;
    padding: 0 0 0 16px;
    color: #000;
    vertical-align: middle;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
}

.top_players_link p,
.top_players_link a {
    color: #4285f4;
    margin-bottom: 0;
    text-align: center;
}

.top_players_link::before {
    position: absolute;
    top: -8px;
    bottom: 0;
    left: 8px;
    margin: auto;
    content: "";
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-left: 5px solid #000;
}

/* 広告・プロモーション */
.adsens {
    margin-top: 3%;
    margin-bottom: 3%;
}

.amazon a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
    max-width: 160px;
}

.adv {
    margin: 0;
    font-size: 90%;
}

.space {
    margin-bottom: 700px;
}

/* フッター */
footer {
    max-width: 500px;
    font-size: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: 50px;
    padding: 0;
    color: white;
    background-color: #4285f4;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.footer-text a {
    text-align: center;
    color: white;
}

/* ポリシーページ用ブロック */
.policy-block {
    margin-top: 5%;
}

.policy-block p {
    margin: 0;
}

.policy-block h2 {
    max-width: 540px;
    font-size: 100%;
    display: flex;
    align-items: center;
    margin: 2% auto;
    margin-top: 5%;
    padding: 1.5%;
    color: white;
    background-color: #4285f4;
}