/* ============================================================
   グローバルシェル / デザイントークン
   配色はトップ(LP)基準のライトテーマに統一。
   ブランド青 = #1594f5 系 / 文字 = #111111 / 背景 = #ffffff
   ============================================================ */

:root {
    /* Brand (LP) */
    --brand: #1594f5;
    --brand-hover: #1397f2;
    --brand-light: #56adf7;
    --brand-deep: #0072b8;
    --brand-pale: #edf4fa;
    --brand-pale-2: #f4f8fc;
    --brand-border: #d9e7f5;

    /* Ink / text */
    --ink: #111111;
    --ink-sub: #555555;
    --ink-faint: #888888;

    /* Surfaces */
    --bg: #ffffff;
    --bg-soft: #f2f6fb;
    --surface: #ffffff;
    --surface-2: #f5f7fa;
    --border: #e6e6e6;

    /* Semantic */
    --danger: #d9534f;
    --danger-strong: #c62828;
    --success: #2e7d32;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

html {
    background-color: var(--bg);
}

.contents {
    padding: 72px 0 0;
    background: var(--bg);
    min-height: 100vh;
    color: var(--ink);
}

/* PC はヘッダー(60px)＋ナビバー(38px)＝98px 分だけ下げる（隙間なくフラットに） */
@media (min-width: 601px) {
    .contents {
        padding-top: 98px;
    }

    /* 管理画面は利用者向けヘッダー/ナビバーを出さないため上余白を詰める */
    .contents:has(.admin_container) {
        padding-top: 47px;
    }
}

/* スマホはヘッダー(52px)分だけ下げ、ヒーローを密着させる */
@media (max-width: 600px) {
    .contents {
        padding-top: 52px;
    }
}

/* LP は自前の固定ヘッダーを持ち、共通ナビバーは非表示。
   ナビバー導入前と同じ上余白(80px)に戻す */
.contents:has(.lp-container) {
    padding-top: 80px;
}

.sec {
    margin-top: 50px;
}

.sec_ttl {
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    padding: 20px 10px;
    margin-top: 20px;
}

.sec_txt {
    color: var(--ink);
    margin: 10px;
}

.tr {
    color: var(--ink);
}

.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

.common_link {
    color: var(--brand);
    text-decoration: underline;
}

[id] {
    scroll-margin-top: 80px;
}

.common_btn {
    padding: 10px 20px;
    background-color: var(--brand);
    border-radius: 50rem;
    border: none;
    color: var(--white);
    text-decoration: none;
    width: fit-content;
    cursor: pointer;
    font-size: 14px;
}

.common_btn:disabled {
    background-color: #ccc;
    /* グレーにする */
    color: #666;
    /* 文字も薄く */
    cursor: not-allowed;
    /* 🚫カーソル */
    opacity: 0.6;
    /* 少し透過 */
    box-shadow: none;
    /* 影を消す（押せない感） */
    transform: none;
    /* 押し込み演出を無効 */
}

.common_btn:hover {
    opacity: 0.8;
}

/* ローディング（全画面オーバーレイ） */
.loading {
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

/* ブランドワードマーク（ゆっくり明滅） */
.loading::before {
    content: "BE-CREATE";
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--brand-deep);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

/* 回転するリング */
.loading::after {
    content: "";
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--brand-border);
    border-top-color: var(--brand);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* モーション低減設定を尊重（アニメーションを止める） */
@media (prefers-reduced-motion: reduce) {
    .loading::before,
    .loading::after {
        animation: none;
    }
}

.login_message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;

    width: min(90vw, 420px);
    margin: 0;
    padding: 18px 20px;
    border-radius: 14px;

    background: var(--white);
    color: var(--ink);
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 700;

    box-shadow: 0 12px 30px rgba(21, 61, 110, 0.18);

    border: 2px solid var(--brand);
}

/* ===== Scrollbar (Global) ===== */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c4d4e6 transparent;
}

/* Chrome / Edge / Safari */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #c4d4e6;
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #a9bfd6;
}


@media (max-width:500px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
}
