html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

@font-face {
    font-display: swap;
    font-family: 'Sawarabi Gothic';
    font-style: normal;
    font-weight: 400;
    src: url("/static/fonts/sawarabi-gothic-v13-japanese-regular.f4d2e1e56eb7.woff2") format('woff2');
    font-display: swap;
}

body {
    font-family: Sawarabi Gothic;
    color: #222222;
}

.wrap {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 1.17em;
    /* または h3 のフォントサイズに合わせて調整 */
    padding: 0.25em 0.5em;
    /*上下 左右の余白*/
    background: transparent;
    /*背景透明に*/
    border-left: solid 5px var(--accent-color);
    /*左線*/
}

h2 {
    font-size: 1.17em;
    /* または h3 のフォントサイズに合わせて調整 */
    padding: 0.25em 0.5em;
    /*上下 左右の余白*/
    background: transparent;
    /*背景透明に*/
    border-left: solid 3px var(--accent-color);
    /*左線*/
}

.no-border {
    padding: 0;
    border-left: none;
}

/* ヘッダー */
.site-header {
    display: flex;
    align-items: center;
    height: 140px;
    background-color: #f8f9fa;
    /* 背景色 */
    padding: 0 20px;
    /* 左右の余白 */
}

/* 左側のエリア */
.header-left {
    width: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ロゴ画像 */
.site-logo {
    max-height: 140px;
    /* ロゴ画像の最大高さを設定 */
    height: auto;
    margin-right: 20px;
}

/* 右側のエリア */
@media screen and (min-width: 768px) {
    .header-right {
        flex: 1;
        position: absolute;
        left: calc(50% + 120px);
        transform: translateX(-50%);
        text-align: center;
    }
}

/* ゲームロゴ画像 */
.game-logo {
    max-height: 140px;
    /* ロゴ画像の最大高さを設定 */
    height: auto;
    margin: auto;
    /* 画像自体を中央に配置 */
}

/* メインコンテンツとサイドメニュー */
.container {
    display: flex;
    flex: 1;
    box-sizing: border-box;
}

/* サイドメニュー */
.sidebar {
    background-color: #e9ecef;
    padding: 10px;
    width: 300px;
    min-width: 300px;
}

.sidebar.show {
    display: block;
}

/* メニューのスタイル */
.menu {
    list-style: none;
    padding: 0 10px 20px;
    margin: 0;
}

/* メニューリンクのスタイル */
.menu>li>a {
    font-weight: bold;
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px 10px;
    border-bottom: 1px solid #ccc;
}

.menu>li>a:hover {
    color: #007bff;
}

/* サブメニューのスタイル */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0 0 0 30px;
}

/* サブカテゴリ名のスタイル */
.category {
    font-weight: bold;
    color: #666;
    margin-top: 10px;
    display: block;
    padding: 5px 0;
}

/* サブメニューのリンク */
.submenu li a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 5px 0;
    display: inline-block;
}

/* リンクのホバースタイル */
.submenu li a:hover {
    color: #007bff;
}

/* 表示中のページ */
.submenu a.active {
    color: var(--side-active-color);
    font-weight: bold;
}

/* リストのmarkerを消す */
ul.menu,
ul.submenu,
ul.submenu ul {
    list-style-type: none;
}

ul.submenu ul {
    padding: 0 0 0 20px;
}

/* メインコンテンツ */
.content {
    flex: 1;
    padding: 10px 30px 10px 30px;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

/* フッターの全体スタイル */
/* フッター全体 */
footer {
    color: #6c757d;
    background-color: #e9ecef;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* フッターのコンテンツ配置 */
.footer-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* 左右に分ける */
    align-items: center;
    text-align: center;
    font-size: 14px;
}

/* コピーライト（中央に配置） */
.copyright-info {
    flex: 1;
    /* 空間を使って中央に押し込む */
    text-align: center;
    margin: 0;
}

/* プライバシーポリシー（右端に配置） */
.privacy-policy-link {
    text-decoration: none;
    color: #555;
}

.privacy-policy-link:hover {
    text-decoration: none;
    color: #007bff;
}


.last-updated {
    line-height: 1;
    /* 行の高さを調整 */
    font-size: 0.85em;
    color: #6c757d;
    padding-bottom: 10px;
}

.copyright-text {
    font-size: 10px;
    /* 小さめの文字サイズ */
    color: #666;
    /* 少し薄い色 */
    position: absolute;
    /* 絶対位置で配置 */
    bottom: 0;
    /* コンテナの下部に配置 */
    right: 0;
    /* コンテナの右端に配置 */
    margin: 5px;
    /* コンテナの縁から少し余白をとる */
}

.image-usage-text {
    font-size: 0.83em;
    color: #666;
    line-height: 1.5;
}

/* ボタンのスタイル */
.posi-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-family: "Sawarabi Gothic", sans-serif !important;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.posi-btn:hover {
    background-color: var(--primary-dark-color);
}

.nega-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-family: "Sawarabi Gothic", sans-serif !important;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    background-color: var(--negative-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.nega-btn:hover {
    background-color: var(--negative-dark-color);
}


/* 幅を調整するクラス */
.width-80 {
    width: 80px !important;
}

.width-100 {
    width: 100px !important;
}

.width-150 {
    width: 150px !important;
}

.width-200 {
    width: 200px !important;
}

.width-220 {
    width: 220px !important;
}

.width-250 {
    width: 250px !important;
}

.pc-only {
    display: show;
}

.mobile-only {
    display: none;
}

.speed-rune-input.gray-placeholder {
    color: #a0a0a0;
}

.summary {
    cursor: pointer;
    transition: 0.2s;
    /* 変化を滑らかに */
}

/* ホバー時のスタイル */
summary:hover {
    cursor: pointer;
    /* カーソルを指マークに */
}

/* ヘルプアイコンのスタイル */
.help-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--negative-color);
    color: white;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
}

/* ホバー時のエフェクト */
.help-icon:hover {
    background-color: var(--negative-dark-color);
}

/* ツールチップのスタイル */
.tooltip-content {
    display: none;
    position: absolute;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 12px;
    color: #333;
}

.under-table {
    margin: 10px 30px;
}

.external-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.icon_in_text {
    margin-left: 5px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    transform: translateY(-2px);
}

/* プロフィールカード専用のスタイリング */
.profile-card {
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    width: 260px;
    padding: 10px;
    text-align: left;
    position: relative;
    overflow: hidden;
    margin: 10px 0 10px 10px;
}


.profile-header {
    text-align: center;
    margin-bottom: 10px;
}

.profile-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #f3e7e9;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
}

.profile-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #444444;
}

.profile-info p {
    font-size: 16px;
    margin: 5px 0;
    color: #666666;
}

.profile-footer {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-footer h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333333;
}

.profile-footer p {
    font-size: 16px;
    margin: 5px 0;
    color: #555555;
}

.sns-links {
    text-align: center;

}
.sns-btn {
    display: flex;
    justify-content: center; /* 子要素を中央揃え */
    align-items: center; /* 上下中央揃え */
    margin-top: 10px;
}

.sns-icon {
    width: 30px;
    margin-left: 10px;
    margin-right: 10px;
}


@media screen and (max-width: 768px) {
    .profile-card {
        width: 85%;
    }
}

/* スマホ用のレイアウト */
@media screen and (max-width: 768px) {
    .content {
        padding: 10px;
    }

    .container {
        flex-direction: column;
    }

    .header {
        order: 1;
        box-sizing: border-box;
    }

    .header-left {
        width: 100px;
    }

    .content {
        order: 2;
        box-sizing: border-box;
    }

    .sidebar {
        order: 3;
        box-sizing: border-box;
        width: auto;
    }

    .footer {
        order: 4;
        background-color: #d6d8db;
        box-sizing: border-box;
    }

    .footer-content p {
        left: 10%;
    }

    .site-header {
        height: 100px;
        align-items: flex-start;
    }

    .header-right {
        flex: 1;
        /* 右側のエリアを残りのスペースに広げる */
        display: flex;
        justify-content: center;
        /* 水平方向に中央揃え */
        align-items: center;
        /* 垂直方向に中央揃え */
    }

    .site-logo {
        max-height: 100px;
        height: auto;
        margin-right: 0;
    }

    .game-logo {
        max-width: 90%;
        height: auto;
        margin: auto;
    }

    .table-area {
        margin-left: 0;
        margin-right: 15px;
        overflow-x: scroll;
    }

    .pc-only {
        display: none;
    }

    .mobile-only {
        display: inline;
    }

    p {
        margin-right: 10px;
    }
}