/* layout.css - 基本スタイル、リセット、全体のレイアウト、ヘッダー、フッター等 (base.cssを統合済み) */

/* ----- base.css 統合部分 ----- */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Roboto", "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f1f1f1;
    color: #0f0f0f;
}

* {
    box-sizing: border-box;
}

a {
    color: #4285f4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* モーダル表示時のFOUC（ページ読み込み時のチラつき）防止 */
/* キャラ選択等の通常モーダル */
.modal__bg,
.modal__inner,
.modal-card {
    opacity: 0;
    visibility: hidden;
}

/* ビデオモーダル */
.video-modal {
    display: none;
    opacity: 0;
}

/* ---------------------------- */

/* メインコンテナ */
.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;
    line-height: 1.6;
}

/* プロモーションバナー（YouTubeの特設カード風） */
.promo-banner {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    gap: 12px;
}

.promo-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #ff0000;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

@media (max-width: 480px) {
    .promo-badge {
        left: 2px;
        top: -6px;
    }
}

.promo-banner:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.promo-icon {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.promo-icon .icon-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-icon .icon-half.yt {
    background-color: #FF0000;
}

.promo-icon .icon-half.tw {
    background-color: #9146FF;
}

.promo-icon .icon-half.yt i {
    transform: translateY(-4px);
}

.promo-icon .icon-half.tw i {
    transform: translateY(4px);
}

.promo-icon i {
    color: white;
    font-size: 16px;
}

.promo-body {
    flex: 1;
    min-width: 0;
}

.promo-title {
    display: block;
    font-weight: bold;
    color: #0f0f0f;
    font-size: 15px;
    margin-bottom: 2px;
}

.promo-desc {
    display: block;
    font-size: 12px;
    color: #606060;
    line-height: 1.4;
    word-break: break-all;
    overflow-wrap: break-word;
}

.promo-arrow {
    color: #909090;
    font-size: 20px;
    font-weight: normal;
}

/* プレイヤー一覧リンク（矢印付き） */
.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;
}