/* ===========================
   CSS変数・カラーパレット
=========================== */
:root {
    --color-primary:     #FF8C00;
    --color-primary-dark:#E07000;
    --color-gold:        #bdb081;
    --color-white:       #FFFFFF;
    --color-bg:          #F5F5F5;
    --color-bg-light:    #FAFAFA;
    --color-border:      #E0E0E0;
    --color-text:        #333333;
    --color-text-light:  #777777;
    --color-ur:          #FF4500;
    --color-ssr:         #FF8C00;
    --color-sr:          #CC44CC;
    --color-r:           #2288FF;
    --color-n:           #88AACC;
    --header-height:     60px;
    --font-main:         'Noto Sans JP', sans-serif;
}

/* ===========================
   リセット・ベース
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ===========================
   ヘッダー
=========================== */
.header {
    background: #ffffff;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--color-gold);
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header__logo-img {
    height: 44px;
    width: auto;
}

.header__coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 0 auto;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.header__coin:hover {
    opacity: 0.85;
}
.header__coin-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #222222;
    border-radius: 20px;
    padding: 3px 12px 3px 6px;
}
.header__coin-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.header__coin-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header__coin-label {
    color: var(--color-text);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    -webkit-text-stroke: 1px var(--color-gold);
    margin-bottom: 2px;
}

.header__coin-amount {
    color: #ffffff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
}

.header__coin-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gold);
    color: #222222;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 4px;
}

.header__nav-item:hover {
    opacity: 0.7;
}

.header__nav-item--active {
    color: var(--color-primary);
}

.header__nav-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 2px;
}
/* ===========================
   メインコンテンツ
=========================== */
.main {
    margin-top: 60px;
    flex: 1;
    background-color: var(--color-white);
}



/* ===========================
   静的ページ共通（利用規約・特商法表記等）
   /terms, /tokushoho で使用。今後 /privacy /refund /contact /faq を作る際もこのクラスを流用する想定。
=========================== */
.static-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}
.static-page__title {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-gold);
}
.static-page__body {
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-text);
    white-space: pre-line;
}
.static-page__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.static-page__table th,
.static-page__table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.static-page__table th {
    width: 9em;
    color: var(--color-text-light);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .static-page {
        padding: 24px 14px 50px;
    }
    .static-page__table th {
        width: auto;
        display: block;
        padding-bottom: 4px;
        border-bottom: none;
    }
    .static-page__table td {
        display: block;
        padding-top: 0;
    }
}

/* ===========================
   よくある質問（2026-08-27新設、/faq）
   カテゴリごとに<section>、質問1件ごとにネイティブの<details><summary>でアコーディオン化。
   JS不要・アクセシビリティも標準機能に任せられるためこの実装にした。
=========================== */
.faq-group {
    margin-bottom: 32px;
}
.faq-group__title {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid var(--color-gold);
}
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-item__question {
    list-style: none;
    cursor: pointer;
    padding: 14px 40px 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    background: #fafafa;
}
.faq-item__question::-webkit-details-marker {
    display: none;
}
.faq-item__question::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-light);
}
.faq-item[open] .faq-item__question::after {
    content: '−';
}
.faq-item__answer {
    padding: 4px 16px 16px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-light);
    white-space: pre-line;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

/* ===========================
   お問い合わせフォーム（2026-08-27新設、/contact）
   見た目はtenant.cssの.tenant-inquiry-*（テナント個別問い合わせフォーム）に合わせているが、
   /contactはテナント専用ページではないため、共通のcommon.cssに独立クラスとして持つ
=========================== */
.tenant-inquiry-notice {
    background: #f0fff4;
    border: 1px solid #a3e0b8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1a7a3c;
}
.tenant-inquiry-errors {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.tenant-inquiry-errors ul {
    margin: 0;
    padding-left: 18px;
}
.tenant-inquiry-errors li {
    font-size: 13px;
    color: #cc0000;
}
.contact-form__lead {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}
.contact-form__group {
    margin-bottom: 16px;
}
.contact-form__group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}
.contact-form__required {
    color: #cc0000;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.contact-form__group input[type="text"],
.contact-form__group input[type="email"],
.contact-form__group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.contact-form__group textarea {
    width: 100%;
    min-height: 160px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
.contact-form__submit {
    margin-top: 4px;
}
/* ハニーポット欄：人間には見えないがボットには見える位置に飛ばす（スパム対策） */
.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===========================
   フッター
=========================== */
.footer {
    background: #ffffff;
    color: var(--color-text);
    padding: 24px 16px;
    margin-top: auto;
    border-top: 3px solid var(--color-gold);
    box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
}

.footer__inner {
    max-width: 85%;
    margin: 0 auto;
}

.footer__logo {
    color: var(--color-primary);
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.footer__link {
    font-size: 12px;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__copy {
    font-size: 11px;
    color: var(--color-text-light);
}
.footer__logo-img {
    height: 36px;
    width: auto;
}
.footer__credits {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.footer__credit-item {
    font-size: 11px;
    color: var(--color-text-light);
    line-height: 1.8;
    padding: 0 12px;
    border-right: 1px solid var(--color-border);
}

.footer__credit-item:first-child {
    padding-left: 0;
}

.footer__credit-item:last-child {
    border-right: none;
}
/* ===========================
   共通ボタン
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: 0 3px 8px rgba(255,140,0,0.4);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(255,140,0,0.5);
}

.btn--gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 3px 8px rgba(255,215,0,0.4);
}

.btn--gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(255,215,0,0.5);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===========================
   レアリティバッジ
=========================== */
.rarity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.rarity--ur  { background: linear-gradient(135deg, #FF4500, #FF6B00); }
.rarity--ssr { background: linear-gradient(135deg, #FF8C00, #FFD700); }
.rarity--sr  { background: linear-gradient(135deg, #CC44CC, #FF88FF); }
.rarity--r   { background: linear-gradient(135deg, #2288FF, #44AAFF); }
.rarity--n   { background: linear-gradient(135deg, #88AACC, #AACCEE); }


/* ============================================================
   SP対応（common.css の末尾に追加）
   ------------------------------------------------------------
   SPでは header__nav（アイコン列＋言語切替）を非表示にし、
   代わりにハンバーガーボタン→ドロワーメニューに集約する。
============================================================ */

/* ---- ハンバーガーボタン（画像使用・PCでは非表示） ---- */
.header__menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    margin-left: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
.header__menu-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ---- ドロワー背景オーバーレイ ---- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}
.drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ---- ドロワー本体 ---- */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 78%;
    max-width: 300px;
    background: #ffffff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}
.drawer.is-open {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 2px solid var(--color-gold);
    flex-shrink: 0;
}
.drawer__logo {
    height: 32px;
}
.drawer__close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}
.drawer__close-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.drawer__coin {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #222222;
    color: #ffffff;
    margin: 12px 16px;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
}
.drawer__coin-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.drawer__coin-amount {
    font-weight: 900;
    font-size: 14px;
}
.drawer__coin-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-gold);
    color: #222222;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    margin-left: auto;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.drawer__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}
.drawer__nav-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.drawer__nav-item--active {
    color: var(--color-primary);
}

.drawer__lang {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}
.drawer__lang-label {
    font-size: 11px;
    color: var(--color-text-light);
    letter-spacing: 1px;
}
.drawer__lang-flags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.drawer__lang-item {
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--color-bg-light);
}
.drawer__lang-item--active {
    background: var(--color-primary);
    color: #ffffff;
}
/* ===========================
   言語切り替え
=========================== */
.header__lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    padding-left: 8px;
    border-left: 1px solid var(--color-border);
}

.header__lang-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

.header__lang-flags {
    display: flex;
    gap: 4px;
}

.header__lang-item {
    font-size: 18px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    text-decoration: none;
    line-height: 1;
}

.header__lang-item:hover {
    opacity: 0.8;
}

.header__lang-item--active {
    opacity: 1;
}

/* ---- 〜768px：通常ナビを隠してハンバーガーに切り替え ---- */
@media (max-width: 768px) {
    .header {
        padding: 0 8px;
        gap: 4px;
    }
    .header__logo-img {
        height: 34px;
    }
    .header__coin-badge {
        padding: 2px 8px 2px 4px;
        gap: 4px;
    }
    .header__coin-icon {
        width: 18px;
        height: 18px;
    }
    .header__coin-label {
        font-size: 9px;
    }
    .header__coin-amount {
        font-size: 11px;
    }
    .header__coin-add {
        width: 12px;
        height: 12px;
        font-size: 9px;
    }

    /* header__navはコイン・マイページ・メニューのみ残す。
       HOME／ログアウト／会員登録／ログインと言語切替はドロワーに集約するため非表示 */
    .header__nav {
        gap: 6px;
    }
    .header__nav-item--home,
    .header__nav-item--manual,
    .header__nav-item--logout,
    .header__nav-item--register,
    .header__nav-item--login {
        display: none;
    }
    .header__lang {
        display: none;
    }
    .header__nav-icon {
        width: 40px;
        height: 40px;
    }
    .header__menu-btn {
        display: inline-flex;
    }

    .footer {
        padding: 20px 12px;
    }
    .footer__inner {
        max-width: 100%;
    }
    .footer__links {
        gap: 6px 12px;
    }
    .footer__credit-item {
        padding: 0 8px;
        font-size: 10px;
    }
}

/* ---- 〜375px ---- */
@media (max-width: 375px) {
    .header {
        padding: 0 6px;
    }
    .header__logo-img {
        height: 30px;
    }
    .header__coin-label {
        display: none;
    }
    .header__nav-icon {
        width: 40px;
        height: 40px;
    }
}

/* ---- サブスク契約モーダル（2026-08-26新設。Square Web Payments SDKのカード入力フォーム用） ---- */
.subscribe-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.subscribe-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.subscribe-modal__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}
.subscribe-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.subscribe-modal__card-container {
    margin: 16px 0;
    min-height: 90px;
}

/* 2026-08-30追加：対応カードブランド・3Dセキュア対応の表示バッジ（カード不正利用対策） */
.subscribe-modal__trust-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
}
/* card.png（すずきPアップロード。Square/VISA/Mastercard/AMEX/JCB/Diners/Discover/UnionPayの横並びロゴ）
   2026-08-30修正：すずきP指示で、上のボタン群と横幅（面）を合わせるようフル幅表示に変更 */
.payment-trust-badges__card-brands {
    display: block;
    width: 100%;
    height: auto;
}
.subscribe-modal__3ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2f7d3c;
    font-size: 11px;
    font-weight: 700;
}
.subscribe-modal__3ds-badge svg {
    flex-shrink: 0;
}