/**
 * アカウント領域専用スタイル（静的HTML 09_ログイン・マイページ の <style> から移植）。
 *
 * 【読み込み範囲】account/*.php のみ。checkout.css は読まない（.screen による非表示事故を防ぐ）。
 *
 * 【スコープ】フォーム系は .wff-account 配下に限定し、チェックアウト等の input に干渉しない。
 * マイページ用レイアウト（.mypage-layout 等）は本ファイルのみで使う前提のためグローバルでも可。
 */

/* --------------------------------------------------------------------------
 * マイページ: 2カラム（左サイドナビ + メイン）。モバイルは横スクロールタブ風。
 * 元: 09 の .mypage-layout / .sidebar-item
 * -------------------------------------------------------------------------- */
.mypage-layout {
    display: flex;
    gap: 3rem;
    min-height: 60vh;
}
.mypage-sidebar {
    width: 240px;
    flex-shrink: 0;
}
.mypage-content {
    flex: 1;
    min-width: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    color: var(--color-stone-700);
    transition: all 0.3s;
    text-decoration: none;
}
.sidebar-item:hover {
    background-color: #fff;
    color: var(--color-rose-400);
}
.sidebar-item.active {
    background-color: #fff;
    border-left-color: var(--color-rose-300);
    font-weight: bold;
    color: var(--color-stone-800);
}

@media (max-width: 768px) {
    .mypage-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .mypage-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        background: #fff;
        padding: 0;
        border-bottom: 1px solid #f0efeb;
        position: sticky;
        top: 72px;
        z-index: 40;
    }
    .sidebar-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 1rem 1.25rem;
    }
    .sidebar-item.active {
        border-bottom-color: var(--color-rose-300);
    }
}

/* --------------------------------------------------------------------------
 * 注文ステータスバー（将来 orders 詳細で使用）。空状態のプレースホルダでも競合なし。
 * -------------------------------------------------------------------------- */
.step-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
}
.step-bar::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}
.step-point {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    text-align: center;
    width: 20%;
}
.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    margin: 0 auto 0.5rem;
    border: 4px solid var(--color-bg);
}
.step-point.active .step-dot {
    background: var(--color-rose-300);
}
.step-point.active .step-label {
    color: var(--color-stone-800);
    font-weight: bold;
}
.step-label {
    font-size: 0.625rem;
    color: #a1a1aa;
}

.status-badge {
    font-size: 0.6875rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    font-weight: bold;
}

/* --------------------------------------------------------------------------
 * .wff-account 内フォーム（ログイン・登録・会員情報）。トークン色は tokens.css 参照。
 * -------------------------------------------------------------------------- */
.wff-account input[type="text"],
.wff-account input[type="email"],
.wff-account input[type="password"],
.wff-account input[type="tel"],
.wff-account select,
.wff-account textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.875rem;
    background-color: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wff-account input:focus,
.wff-account select:focus,
.wff-account textarea:focus {
    border-color: var(--color-rose-300);
    outline: none;
}

/* --------------------------------------------------------------------------
 * メール確認・登録完了・パスワード案内などの中央セクション見出し。
 * max-width が狭いと「…しまし」+ 次行「た」のような不自然改行になりやすいため
 * text-wrap: pretty で調整し、セクション幅は max-w-2xl 側で確保する。
 * -------------------------------------------------------------------------- */
.wff-account-message-title {
    text-wrap: pretty;
}
