/*
Theme Name: Aonishiki Custom Theme
Author: Tomohiro
Version: 1.0
Description: 安青錦後援会サイト用自作テーマ。
*/

:root {
    /* メインカラー定義 */
    --color-base: #F9F7F2;        /* 柔らかなベージュ（土俵や和紙のイメージ） */
    --color-base-rgb: 249, 247, 242;
    --color-contrast: #2D2D2D;    /* 墨色（文字・コントラスト） */
    --color-accent-blue: #002B5B; /* 安青錦ブルー（力強さと知性） */
    --color-accent-red: #B22D14;  /* 朱赤（情熱・必須ラベル・伝統） */
    
    /* 補助的な設定値 */
    --header-height: 80px;
    --container-width: 1340px;
    --transition-speed: 0.3s;
}

/* 全体ベースへの適用 */
body {
    background-color: var(--color-base);
    color: var(--color-contrast);
    margin: 0;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ヘッダー固定・透過 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(var(--color-base-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 45, 45, 0.05);
    padding: 10px 0;
}

.header-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center; /* 縦方向中央 */
}

.nav-list a {
    text-decoration: none;
    color: #2D2D2D;
    font-weight: 500;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2D2D2D;
    transition: opacity var(--transition-speed);
}

.social-icon:hover {
    opacity: 0.6;
}

.header-btn {
    display: inline-block;
    background-color: var(--color-accent-blue);
    color: #ffffff !important;
    padding: 8px 20px;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all var(--transition-speed);
    border: 1px solid var(--color-accent-blue);
    border-radius: 2px;
    font-weight: bold;
}

/* 会員登録ボタン（塗りつぶし：メインアクション） */
.btn-entry {
    background-color: var(--color-accent-blue);
    color: #ffffff;
}

.btn-entry:hover {
    background-color: #003a7a;
    border-color: #003a7a;
    transform: translateY(-1px);
}

/* ログインボタン（白抜き：サブアクション） */
.btn-login {
    background-color: transparent;
    color: var(--color-accent-blue) !important;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.btn-login:hover {
    background-color: rgba(0, 43, 91, 0.05); /* ほんのりブルー背景 */
    color: var(--color-accent-blue) !important;
    transform: translateY(-1px);
}

/* --- Contact Form 7 Custom Style --- */

/* フォーム全体のコンテナ */
.wpcf7 {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

/* 入力項目ラベル */
.wpcf7-form label {
    display: block;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #2D2D2D;
}

/* 入力フィールド (text, email, tel, etc.) */
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 2px;
    background-color: #fcfcfc;
    font-size: 1rem;
    box-sizing: border-box;
    margin-top: 8px;
    transition: border-color 0.3s;
}

.wpcf7-form-control:focus {
    border-color: var(--color-accent-blue);
    outline: none;
    background-color: #fff;
}

/* 送信ボタン */
.wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 18px;
    background-color: var(--color-accent-blue) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 2px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.wpcf7-submit:hover {
    opacity: 0.8;
}

/* エラーメッセージ・完了メッセージ */
.wpcf7-not-valid-tip {
    color: var(--color-accent-red) !important;
    font-size: 0.8rem;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border: 2px solid #002B5B !important;
    text-align: center;
    border-radius: 2px;
}

/* 必須ラベルのスタイル */
.required {
    font-size: 0.7rem;
    background-color: var(--color-accent-red);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1;
    display: inline-block;
}

/* フォームのラベル行を整える */
.wpcf7-form label {
    display: block;
    margin-bottom: 25px;
    font-size: 1rem;
    color: #2D2D2D;
}


/* メインコンテンツの余白調整（ヒーローセクションの下） */
.content-container {
    margin: 0 auto;
}

/* ヒーローセクションの基本スタイル */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh; /* 実際に見えている表示領域に合わせる */
    width: 100%;
    overflow: hidden;
    background-color: var(--color-base);
}

/* 画像とオーバーレイ */
.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.1);
    animation: hero-zoom 8s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 左から右へ、または全体に少し暗めのグラデーションを敷いて文字を読みやすく */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

/* 縦書きテキストの配置 */
.hero-content {
    position: absolute;
    top: 50%;
    right: 12%; /* 写真の人物が左側にいるなら右、右側にいるなら左に調整 */
    transform: translateY(-50%);
    color: #ffffff;
    z-index: 2;
}

/* 親コンテナの幅を文字に合わせる */
.hero-copy {
    display: inline-block; /* コンテナの幅を中の文字分だけにする */
    text-align: center;    /* 中の要素を中央に寄せる */
}

/* 縦書きテキスト自体の調整 */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: inline-block !important; /* blockからinline-blockに変更 */
    text-align: left;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.6;
    letter-spacing: 0.4em;
    margin: 0 auto; /* 中央寄せ */
}

/* --- ヒーローコピーの初期状態 --- */
.vertical-text span,
.hero-sub-copy {
    opacity: 0;
    transform: translateY(40px);
    /* クラスがついた時の動きを定義（transitionを使用） */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* --- JSでクラスがついた時の状態 --- */
.hero-content.is-visible .vertical-text span,
.hero-content.is-visible .hero-sub-copy {
    opacity: 1;
    transform: translateY(0);
}

.vertical-text span {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

/* 2行目の余白調整（ここが2行の間隔を決めます） */
.line-2 {
    /* margin-right を margin-left に変更し、1行目との間隔を確保 */
    margin-right: 0 !important;
    margin-left: 0.6em !important; 
}

/* サブコピー（横書き）の配置調整 */
.hero-sub-copy {
    writing-mode: horizontal-tb;
    margin-top: 40px; /* 縦書きとの距離を少し広げて余裕を持たせる */
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-align: center; /* 右揃えから「中央揃え」に変更 */
    width: 100%;       /* 親要素の幅いっぱいに広げて中央を出す */
    opacity: 0;
}

/* 2行目とサブコピーに時間差（ディレイ）をつける */
.hero-content.is-visible .line-2 {
    transition-delay: 0.4s;
}

.hero-content.is-visible .hero-sub-copy {
    transition-delay: 0.8s;
}

/* アニメーション */
@keyframes hero-zoom {
    to { transform: scale(1); }
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* ウクライナカラーの罫線（ヒーロー画像直下に隙間なく配置） */
.ukraine-border {
    width: 100%;
    line-height: 0;
    font-size: 0;
}

.ukraine-border-blue,
.ukraine-border-yellow {
    display: block;
    width: 100%;
    height: 5pt;
}

.ukraine-border-blue {
    background-color: #005BBB;
}

.ukraine-border-yellow {
    background-color: #FFD500;
}

/* スクロールダウンの装飾 */
.scrolldown {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    z-index: 2;
}


#loader {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    height: 100lvh; /* ツールバーを含めた最大高さで下切れを防止 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* ここを透明にしないとSVGが見えません */
}

/* 背景SVGのコンテナ */
.loader-bg {
    position: absolute;
    top: -20%; /* 背景だけを上下に突き出させて隙間を防止 */
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 1; /* 背面 */
}

/* ロゴのコンテナ（ここが重要） */
.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* SVGより確実に前面 */
    text-align: center;
    pointer-events: none; /* マウス操作を邪魔しない */
}

/* 【追加】Liquid SVGの基本スタイル */
.loader-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* アニメーション用クラス（JSで付与） */
#loader.is-hidden {
    /* 完全に消すための保険（実質的な動きはJSで制御） */
    visibility: hidden;
    transition: visibility 0s 1.5s;
}

/* ヒーローセクション側のコンテンツ配置を強制的に正す */
.hero-content {
    /* ローダー側のスタイルをリセット */
    left: auto !important; 
    bottom: auto !important;
    
    /* 本来の位置を指定（右から12%の位置に配置する場合） */
    position: absolute;
    top: calc(50% + 5vh) !important;
    right: 12% !important;
    transform: translateY(-50%) !important; /* X方向の-50%を解除し、Y方向のみに */
    
    z-index: 5;
    color: #ffffff;
    text-align: right;
}

.hero-content.is-visible {
    /* 前回のまま（フェードイン） */
    opacity: 1;
    transform: translateY(0);
}

/* ロゴ自体のフェードイン（JS実行前でも見えるように） */
.loader-logo {
    opacity: 0;
    animation: loader-fade-in 0.8s ease-out 0.2s forwards;
}

@keyframes loader-fade-in {
    to { opacity: 1; }
}

/* PCではスマホ用コンテナとボタンを隠す */
.nav-container,
.menu-toggle {
    display: none !important;
}

/* ヘッダー右側のコントロールエリアを横並びにする */
.header-controls {
    display: flex !important;
    align-items: center !important; /* 上下中央揃え */
    justify-content: flex-end !important;
    gap: 15px !important;           /* アイコンとボタンの間の隙間 */
}

/* PC用ナビとCTAを表示 */
.header-nav,
.header-cta {
    display: flex;
    gap: 10px;
}


/* --- Responsive & Hamburger Menu --- */

/* ハンバーガーボタンのスタイル */
.menu-toggle {
    display: none; /* デスクトップでは隠す */
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-contrast);
    transition: all var(--transition-speed);
}

.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }

/* ボタンがアクティブな時（×印） */
.menu-toggle.is-active span:first-child {
    transform: translateY(11px) rotate(45deg);
}
.menu-toggle.is-active span:last-child {
    transform: translateY(-11px) rotate(-45deg);
}

/* --- レスポンシブ用（修正・強化） --- */
/* --- レスポンシブ設定 (1024px以下) --- */
@media (max-width: 1024px) {
    /* PC用ナビだけを隠す */
    .header-nav {
        display: none !important;
    }

    /* ボタン（CTA）は表示したまま */
    .header-cta {
        display: block !important;
    }

    .header-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* ハンバーガーを表示 */
    .menu-toggle {
        display: block !important;
    }

    /* 【重要】スマホメニューコンテナの初期状態を再定義 */
    .nav-container {
        display: flex !important; /* flexにして中身を中央に寄せる準備 */
        position: fixed;
        top: 0;
        right: -100%; /* 画面外に隠す */
        width: 100%;
        height: 100vh;
        background-color: var(--color-base); /* 背景色を指定 */
        z-index: 10000;
        transition: right 0.5s cubic-bezier(0.8, 0, 0.2, 1);
        visibility: hidden;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* アクティブ時の設定 */
    .nav-container.is-active {
        right: 0;
        visibility: visible;
    }

    /* リストを縦並びに */
    .nav-container .nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-container .nav-list li {
        list-style: none;
    }

    .nav-container .nav-list a {
        font-size: 1.8rem;
        font-weight: bold;
        color: var(--color-contrast);
        text-decoration: none;
    }
}

/* さらに小さい画面（スマホ）向け */
@media (max-width: 480px) {
    .vertical-text {
        font-size: 1.8rem;
    }
    
    .content-container {
        padding: 40px 20px;
    }
    
    .wpcf7 {
        padding: 20px;
    }
}

/* --- 下層ページ共通スタイル --- */

.main-content {
    padding-top: var(--header-height); /* ヘッダーに被らないように */
}

.page-header {
    background-color: #EFECE4; /* ヒーローより少し濃いベージュ */
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-title {
    font-size: 2.5rem;
    font-family: "Hiragino Mincho ProN", serif;
    letter-spacing: 0.2em;
    color: var(--color-accent-blue);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: rgba(45, 45, 45, 0.5);
    text-transform: uppercase;
}

/* 記事本文エリア */
/* デフォルトのコンテンツ幅（記事本文など、読みやすさを重視するコンテンツ） */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px; /* PCでのデフォルトパディング */
    line-height: 1.8; /* 既存のline-heightを維持 */
}

/* ホームページや会員ランク表示など、広めのコンテンツ用 */
/* bodyに.homeクラスが付与されている場合、または特定の広幅コンテナに適用 */
body.home .content-container {
    max-width: 1200px;
}

/* タブレット向け調整 (1024px以下) */
@media (max-width: 1024px) {
    .content-container,
    body.home .content-container { /* 両方のパターンに適用 */
        max-width: 90%; /* 画面幅の90%に */
        padding: 60px 30px; /* タブレットでのパディング */
    }
}

/* スマホ向け調整 (768px以下) */
@media (max-width: 768px) {
    .content-container,
    body.home .content-container { /* 両方のパターンに適用 */
        max-width: 100%;
        padding: 40px 20px; /* スマホでのパディング */
    }
}

/* 本文内の見出し */
.content-container h2 {
    font-size: 1.8rem;
    border-left: 4px solid var(--color-accent-blue);
    padding-left: 20px;
    margin: 60px 0 30px;
    font-family: "Hiragino Mincho ProN", serif;
}

.content-container p {
    margin-bottom: 2rem;
}

/* スマホ調整 */
@media (max-width: 768px) {
    .page-title { font-size: 1.8rem; }
    .content-container { padding: 40px 20px; }
}


/* --- 会則・入会案内 共通設定 --- */
.rules-page-wrapper {
    color: var(--color-contrast);
}

.rules-intro {
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

.rules-block {
    margin-bottom: 5rem;
}

/* 共通見出しスタイル（ページ内のh2） */
.rules-h2, .rules-title {
    text-align: center;
    font-family: "Hiragino Mincho ProN", serif;
    border: none !important;
    padding: 0 !important;
}

.rules-h2 {
    margin-bottom: 3rem !important;
}

.rules-h2::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-accent-blue);
    margin: 15px auto 0;
}

/* --- 活動内容リスト --- */
.activity-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.activity-list li {
    padding: 15px 0 15px 30px;
    border-bottom: 1px solid rgba(var(--color-contrast-rgb), 0.05);
    position: relative;
}

.activity-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--color-accent-blue);
    font-size: 0.8rem;
    top: 1.2rem;
}

/* --- 入会特典（グリッドレイアウト） --- */
.highlight-box {
    background-color: #ffffff;
    padding: 60px 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
}

.benefit-tag {
    font-size: 0.7rem;
    color: var(--color-accent-red);
    border: 1px solid var(--color-accent-red);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.benefit-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- 会則全文エリア --- */
.rules-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 60px 40px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.rules-header {
    text-align: center;
    margin-bottom: 40px;
}

.rules-title {
    font-size: 1.8rem;
    color: var(--color-accent-blue);
    margin-bottom: 10px !important;
}

.rules-date {
    font-size: 0.85rem;
    color: #888;
}

/* --- スクロールエリア（全文共通） --- */
.rules-scroll-area {
    height: 500px;
    overflow-y: scroll;
    border: 1px solid #f0f0f0;
    padding: 30px;
    background-color: #fafafa;
}

/* カスタムスクロールバー */
.rules-scroll-area::-webkit-scrollbar { width: 6px; }
.rules-scroll-area::-webkit-scrollbar-track { background: #f1f1f1; }
.rules-scroll-area::-webkit-scrollbar-thumb {
    background: var(--color-accent-blue);
    border-radius: 10px;
}

/* 条文詳細 */
.rules-item { margin-bottom: 30px; }
.rules-item h3 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-contrast);
    margin-bottom: 10px;
}
.rules-item p, .rules-item ol {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
.rules-item ol { padding-left: 1.5em; }
.rules-item ol li { margin-bottom: 5px; }

/* --- レスポンシブ統合 --- */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rules-container {
        padding: 40px 20px;
    }

    .rules-scroll-area {
        height: 400px;
        padding: 20px;
    }

    .rules-title {
        font-size: 1.5rem;
    }
}

/* 言語スイッチのスタイル（地球マークのプルダウン形式） */
.lang-switcher {
    position: relative;
    font-size: 0.8rem;
    font-family: serif;
    letter-spacing: 0.1em;
    padding: 10px;
    display: inline-block;
}

/* 地球マークの表示（SVGを使用） */
.lang-switcher::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232D2D2D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lang-switcher:hover::before {
    opacity: 0.7;
}

/* 言語スイッチリスト全体（プルダウンメニュー） */
.lang-switcher ul.bogo-language-switcher {
    display: none; /* 初期は非表示 */
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 9999;
}

/* ホバーでメニューを表示 */
.lang-switcher:hover ul.bogo-language-switcher {
    display: block;
}

/* メニュー内のリンクスタイル */
.lang-switcher ul.bogo-language-switcher li {
    margin: 0;
    padding: 0;
}

.lang-switcher ul.bogo-language-switcher li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--color-contrast) !important; /* テキストを表示 */
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.2;
    transition: all 0.2s;
}

/* 以前のボタン形式用の疑似要素をリセット */
.lang-switcher ul.bogo-language-switcher li a::after {
    display: none !important;
}

/* リンクホバー時 */
.lang-switcher ul.bogo-language-switcher li a:hover {
    background-color: #f8f8f8 !important;
    color: var(--color-accent-blue) !important;
}

/* 現在の言語を強調 */
.lang-switcher ul.bogo-language-switcher li.current a {
    background-color: var(--color-accent-blue) !important;
    color: #ffffff !important;
    pointer-events: none;
}

/**
/** 取り組み結果
/* --- 1. テーブル全体のコンテナ（はみ出し防止・スクロール） --- */
.sumo-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px; /* 角を丸くしてモダンに */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 浮き出し効果 */
    position: relative;
    background: #fff;
}

/* スクロールバーのカスタマイズ（OS標準より細くしてスタイリッシュに） */
.sumo-scroll-container::-webkit-scrollbar { height: 8px; }
.sumo-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; }
.sumo-scroll-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* --- 2. テーブル本体 --- */
.sumo-hoshitori-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1200px; /* 15日分を確保するための最小幅 */
    font-size: 14px;
}

/* --- 3. 固定列（場所名・番付・成績）のデザイン --- */
/* 左側の3つの列を固定し、デザインを強化 */
.sumo-hoshitori-table th.sticky-col,
.sumo-hoshitori-table td.sticky-col {
    position: sticky;
    z-index: 20;
    background: #fdfdfd !important;
	color: #2D2D2D;
}

/* 各列の固定位置（幅に合わせて調整） */
.sumo-hoshitori-table th:nth-child(1), .sumo-hoshitori-table td:nth-child(1) { left: 0; min-width: 130px; }
.sumo-hoshitori-table th:nth-child(2), .sumo-hoshitori-table td:nth-child(2) { left: 110px; min-width: 100px; }
.sumo-hoshitori-table th:nth-child(3), .sumo-hoshitori-table td:nth-child(3) { left: 210px; min-width: 80px; border-right: 3px double #ccc !important; }

/* 固定列内のテキスト調整 */
.basho-info {
    padding: 10px !important;
    line-height: 1.4;
    vertical-align: middle;
}

.basho-info strong { color: #d32f2f; font-size: 1.1em; }
.basho-info small { color: #666; display: block; margin-top: 4px; }
.record { font-weight: bold; font-size: 1.1em; color: #333; }

/* --- 4. データセル（日別の結果） --- */
.sumo-hoshitori-table th, .sumo-hoshitori-table td {
    border: 1px solid #eee;
    text-align: center;
}

.sumo-hoshitori-table th {
    background: #444;
    color: #fff;
    padding: 12px 5px;
    font-weight: normal;
}

/* セル内の3行グリッド */
.cell-grid {
    display: flex;
    flex-direction: column;
    min-width: 90px;
}

.row-opp { height: 32px; line-height: 32px; font-weight: bold; background: #f9f9f9; border-bottom: 1px solid #eee; }
.row-res { height: 38px; line-height: 38px; font-size: 1.5em; }
.row-kim { height: 26px; line-height: 26px; font-size: 11px; color: #888; background: #fff; border-top: 1px dashed #eee; }

/* --- 5. 勝敗の色付け --- */
.row-res { color: #333; }
.row-res:contains("○") { color: #d32f2f; background-color: #fff5f5; }
.row-res:contains("●") { color: #1976d2; background-color: #f0f7ff; }
.row-res:contains("や"), .row-res:contains("－") { color: #bbb; background-color: #fafafa; }


/*
/*
/*
/* --- 会员ステータスカードの基本スタイル --- */
.member-status-card {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    /* カード全体の影を少し強くして立体感を出す */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background: #fff; /* カード自体の背景は白 */
}

.status-label {
    color: #555;
    font-size: 0.9em;
}

/* --- ランク値（チップ）の共通スタイル --- */
.status-value {
    font-size: 1.1em;
    padding: 6px 16px;
    border-radius: 50px; /* 角丸を強くしてバッジ風に */
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* テキストに影を入れて読みやすく */
    
    /* 共通の光沢エフェクト：上部に白いハイライト、下部に黒い影 */
    box-shadow: 
        inset 0 1px 1px rgba(255,255,255,0.8), /* 内側のハイライト（光沢） */
        inset 0 -2px 3px rgba(0,0,0,0.2),      /* 内側の影（立体感） */
        0 2px 4px rgba(0,0,0,0.2);              /* 外側の影（浮き上がり） */
    
    position: relative;
    overflow: hidden;
}

/* --- ランクごとのメタリック・グラデーション --- */

/* ブロンズ (Bronze) - 銅の重厚感 */
.status-bronze .status-value {
    background: linear-gradient(135deg, 
        #a67c52 0%,   /* ベースの銅色 */
        #cd7f32 25%,  /* 明るい銅色（ハイライト） */
        #8b5a2b 50%,  /* 中間の銅色 */
        #b87333 75%,  /* 再び明るい銅色 */
        #704214 100%  /* 深い銅色（シャドウ） */
    );
}

/* シルバー (Silver) - 銀の輝き */
.status-silver .status-value {
    color: #333; /* シルバーは文字を暗くして可読性確保 */
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    background: linear-gradient(135deg, 
        #bdc3c7 0%,   /* ベースの銀色 */
        #ffffff 25%,  /* 真っ白な輝き（ハイライト） */
        #aab7b8 50%,  /* 中間の銀色 */
        #eaeaea 75%,  /* 再び明るい銀色 */
        #7f8c8d 100%  /* 深い銀色（シャドウ） */
    );
}

/* ゴールド (Gold) - 金の煌めき */
.status-gold .status-value {
    color: #4a3c0a; /* ゴールドは文字を深い金茶色に */
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    background: linear-gradient(135deg, 
        #b8860b 0%,   /* ベースの金色 */
        #fffacd 25%,  /* 明るい金色（ハイライト） */
        #daa520 50%,  /* 中間の金色 */
        #ffec8b 75%,  /* 再び明るい金色 */
        #a0522d 100%  /* 深い金色（シャドウ） */
    );
}

/* コンテンツボックスの装飾 */
.content-box {
    background: #fff;
    border-left: 5px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

.silver-only { border-color: #c0c0c0; background: #f9f9f9; }
.gold-only   { border-color: #ffd700; background: #fffdf0; }

.status-divider {
    margin: 30px 0;
    border: 0;
    border-top: 1px dashed #ddd;
}

/*
/*ログインフォーム
/* --- WP-Members ログインフォーム全体の囲み --- */
#wpmem_login {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px;
    background-color: var(--color-base); /* 柔らかなベージュ */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px; /* 和の美学に合わせて角を立たせる */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; /* 明朝体適用 */
}

/* フォームのタイトル（伝説的な力強さ） */
#wpmem_login fieldset legend {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-contrast); /* 墨色 */
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid var(--color-accent-blue);
    padding-bottom: 12px;
    display: block;
    width: 100%;
    letter-spacing: 0.15em;
}

/* 各入力項目のラベル */
#wpmem_login label {
    display: block;
    font-size: 0.9em;
    color: var(--color-contrast);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* 入力フィールド（ユーザー名・パスワード） */
#wpmem_login input[type="text"],
#wpmem_login input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #d1cfc9;
    border-radius: 0; /* 直角で誠実さを表現 */
    color: var(--color-contrast);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; /* 入力文字は読みやすさ優先でゴシック */
    font-size: 16px;
    transition: all var(--transition-speed);
    box-sizing: border-box;
}

#wpmem_login input:focus {
    border-color: var(--color-accent-blue);
    background-color: #fff;
    box-shadow: 0 0 0 1px var(--color-accent-blue);
    outline: none;
}

/* ログインボタン（安青錦ブルー × 控えめな光沢） */
#wpmem_login input[type="submit"] {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background-color: var(--color-accent-blue);
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    letter-spacing: 0.3em; /* 堂々とした文字間隔 */
    transition: all var(--transition-speed);
    
    /* 控えめな光沢エフェクト */
    background: linear-gradient(135deg, #002B5B 0%, #003a7a 50%, #002B5B 100%);
    box-shadow: 0 4px 0px #001a38;
}

#wpmem_login input[type="submit"]:hover {
    filter: brightness(1.1);
    transform: translateY(1px);
    box-shadow: 0 2px 0px #001a38;
}

/* エラーメッセージ（朱赤） */
.wpmem_msg {
    background-color: #fff;
    border: 1px solid var(--color-accent-red) !important;
    border-left-width: 6px !important;
    color: var(--color-accent-red);
    padding: 15px !important;
    margin-bottom: 25px !important;
    font-size: 0.85em;
    font-family: sans-serif; /* 警告文は可読性重視 */
}

/* リンク類 */
.wpmem_reg_link, .wpmem_pwd_link {
    text-align: center;
    margin-top: 20px;
}

.wpmem_reg_link a, .wpmem_pwd_link a {
    color: var(--color-contrast);
    text-decoration: none;
    border-bottom: 1px solid #d1cfc9;
    font-size: 0.8em;
    opacity: 0.8;
    transition: all var(--transition-speed);
}

.wpmem_reg_link a:hover, .wpmem_pwd_link a:hover {
    color: var(--color-accent-blue);
    border-bottom-color: var(--color-accent-blue);
    opacity: 1;
}


/*
/* ログインメッセージ部
/* --- ログインステータスエリア全体 --- */
.login_status {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    color: var(--color-contrast); /* 墨色 */
    line-height: 1.8;
    padding: 20px;
    background-color: rgba(var(--color-base-rgb), 0.5); /* 柔らかなベージュを薄く */
    border-left: 3px solid var(--color-accent-blue); /* 安青錦ブルーのアクセント線 */
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* ユーザー名の部分を少し強調（もしスパンなどで囲まれていれば） */
.login_status strong, 
.login_status b {
    color: var(--color-accent-blue);
    font-weight: 600;
}

/* --- ログアウトリンクをボタン化 --- */
.login_status a[href*="logout"] {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--color-accent-blue);
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid var(--color-accent-blue);
    border-radius: 0; /* 伝統的な直角デザイン */
    letter-spacing: 0.1em;
    transition: all var(--transition-speed);
    cursor: pointer;
}

/* ホバー時の挙動：色が反転 */
.login_status a[href*="logout"]:hover {
    background-color: var(--color-accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 43, 91, 0.1);
    transform: translateY(-1px);
}

/* スマホ閲覧時などの微調整 */
@media (max-width: 768px) {
    .login_status {
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--color-accent-blue);
    }
}

/*
/*会員案内ページ用
/**/
/* --- 会員ランク・グリッド（Gridレイアウト版） --- */

.membership-introduction {
    text-align: center;
    padding-bottom: 40px;
}

.membership-introduction .lead-text {
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 60px;
    color: var(--color-contrast);
}

.membership-introduction .section-title {
    font-size: 2.2rem;
    font-family: "Hiragino Mincho ProN", serif;
    letter-spacing: 0.15em;
    color: var(--color-accent-blue);
    margin-bottom: 60px;
    display: inline-block;
}

.rank-grid {
    display: grid;
    /* 3ランクに合わせて3列に調整 */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1200px; /* PCで見やすい幅に制限 */
    margin: 0 auto;
    align-items: stretch; /* カードの高さを一番高いものに合わせる */
}

/* WordPressが自動挿入する空のpタグがグリッドを壊さないようにする */
.rank-grid > p {
    display: none;
}

/* カードの内部設計 */
.rank-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 45px 25px;
    display: flex;
    flex-direction: column; /* 中身を縦に並べる */
    height: 100%; /* 親のGridの高さ一杯に広げる */
    box-sizing: border-box;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.rank-badge {
display: inline-block;
    align-self: center;
    padding: 5px 22px;
    border-radius: 2px; /* サイト全体の角丸2pxに合わせる */
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 既存のステータスカラーを適用 */
.bronze .rank-badge {
    background: linear-gradient(135deg, #a67c52 0%, #8c5e31 50%, #633d1c 100%);
}

.silver .rank-badge {
    background: linear-gradient(135deg, #dcdcdc 0%, #b0b0b0 50%, #808080 100%);
    color: #2D2D2D; /* 銀は文字を少し濃くして視認性を確保 */
}

.gold .rank-badge   {
    background: linear-gradient(135deg, #e6b422 0%, #d4a017 50%, #b8860b 100%);
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.2);
}

/* 共通：わずかに光沢の筋を入れる（疑似要素） */
.rank-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.1); /* 上半分を少し明るくして立体感を出す */
    pointer-events: none;
}

/* --- ワンショット応援セクション --- */
.section-one-shot-support {
    padding-top: 80px; /* 上の余白 */
    padding-bottom: 80px; /* 下の余白 */
    text-align: center; /* 中央寄せ */
}

.section-one-shot-support .section-title {
    font-size: 2.2rem; /* 会員案内タイトルと統一 */
    font-family: "Hiragino Mincho ProN", serif;
    letter-spacing: 0.15em; /* 文字間隔を統一 */
    color: var(--color-accent-blue);
    margin-bottom: 15px;
    display: inline-block;
}

.section-one-shot-support .section-description {
    font-size: 1rem;
    color: var(--color-contrast);
    margin-bottom: 50px;
    line-height: 1.6;
}

.one-shot-grid {
    display: grid;
    grid-template-columns: 1fr; /* 基本は1列 */
    max-width: 350px; /* カードの最大幅を少し小さく */
    margin: 0 auto; /* 中央寄せ */
    gap: 20px;
}

.one-shot-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 35px 20px; /* 内側の余白を調整 */
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* 影を追加 */
}

.one-shot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.one-shot-badge {
    display: inline-block;
    align-self: center;
    padding: 4px 18px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #388E3C 100%); /* 緑系の色 */
}

.one-shot-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.one-shot-name {
    font-size: 1.3rem;
    color: var(--color-accent-blue);
    margin-bottom: 10px;
    font-family: "Hiragino Mincho ProN", serif;
}

.one-shot-item .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-accent-red);
    margin-bottom: 25px;
}

.one-shot-item .price span {
    font-size: 1rem;
    font-weight: normal;
    margin-left: 5px;
}

.one-shot-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
    font-size: 0.95rem;
    flex-grow: 1;
}

.one-shot-features li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    line-height: 1.5;
}

.one-shot-features li:last-child {
    border-bottom: none;
}

.one-shot-item .btn-entry {
    display: block;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: auto 0 0 0;
    text-align: center;
    padding: 15px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section-one-shot-support {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .section-one-shot-support .section-title {
        font-size: clamp(1.2rem, 7vw, 1.6rem); /* 画面幅に合わせて最小1.2remまで縮小 */
        white-space: nowrap; /* 改行を禁止 */
        letter-spacing: 0.1em; /* 狭い画面では少し文字間隔を詰める */
    }
    .section-one-shot-support .section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .one-shot-item {
        padding: 30px 20px;
    }
    .one-shot-name {
        font-size: 1.2rem;
    }
    .one-shot-item .price {
        font-size: 1.6rem;
    }
}

/* 特典リストを「押し広げる」設定 */
.rank-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0; 
    text-align: left;
    font-size: 0.95rem;
    /* ここが重要：余ったスペースをすべて使い切り、下のボタンを最下部に押し出す */
    flex-grow: 1; 
}

.rank-features li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    line-height: 1.5;
}

/* 会員登録ボタン */
.rank-item .btn-entry {
    display: block;      /* inline-blockを上書きして横一杯に */
    width: 100% !important; /* 強制的に100%に */
    max-width: none !important; /* 既存の固定幅設定を解除 */
    box-sizing: border-box; /* パディングを幅に含める */
    margin: auto 0 0 0;   /* 上にマージンを自動で取り、下端に固定 */
    text-align: center;
    padding: 15px 0;      /* 横のパディングは0にして幅突き抜けを防止 */
}

/* --- レスポンシブ：3枚 → 2枚 → 1枚 の切り替え --- */

/* タブレットサイズ（1024px以下）: 2列にする */
@media (max-width: 1024px) {
    .rank-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 2列のとき、3枚目のカードを中央に寄せたい場合は以下（任意） */
    .rank-item:last-child {
        /* grid-column: span 2; 2列分の幅を使わせる場合はこれ */
    }
}

/* スマホサイズ（768px以下）: 1列にする */
@media (max-width: 768px) {
    .rank-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .rank-item {
        max-width: 100%;
        padding: 35px 20px;
    }
    .membership-introduction {
        padding: 40px 20px;
    }
    .membership-introduction .lead-text {
        font-size: 0.95rem;
        margin-bottom: 40px;
        line-height: 1.8;
    }
    .membership-introduction .section-title {
        font-size: clamp(1.2rem, 7vw, 1.6rem); /* 画面幅に合わせて最小1.2remまで縮小 */
        white-space: nowrap; /* 改行を禁止 */
        letter-spacing: 0.1em; /* 狭い画面では少し文字間隔を詰める */
        margin-bottom: 40px;
    }
}

.site-footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-base); /* 任意の背景色 */
    font-size: 0.85rem;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-accent-blue); /* ホバー時に安青錦ブルーにする場合 */
    text-decoration: underline;
}

.copyright {
    color: #999;
}

/* フッターメニューの箇条書きをリセット */
.footer-nav ul {
    list-style: none;    /* 黒丸を消す */
    padding: 0;
    margin: 15px 0 0 0;  /* コピーライトとの間に少し隙間を作る */
    display: flex;       /* 横並びにする */
    justify-content: center; /* 中央寄せ */
    gap: 20px;           /* リンクが複数増えたときの見やすさ用の隙間 */
}

.footer-nav li {
    display: inline;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

