/* =====================================================
   login-guide-page.css
   ログインガイドページ専用スタイル (login-guide_ja.html / login-guide_en.html)
   ===================================================== */

:root {
    --primary: var(--color-header-bg);
    --secondary: var(--color-success-dark);
    --accent: var(--color-btn-primary);
    --text: var(--color-text-primary);
    --light-bg: #f8fafc;
    --card-bg: var(--color-bg-base);
    --border: var(--color-border);
    --warning: #ffc107;
    --danger: #e74c3c;
}

/* ダークモード用変数オーバーライド */
[data-theme="dark"] {
    --light-bg: #2d2d2d;
    --card-bg: #2d2d2d;
    --text: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]):not([data-theme="sepia"]) {
        --light-bg: #2d2d2d;
        --card-bg: #2d2d2d;
        --text: #e0e0e0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text);
    background-color: var(--color-bg-base);
    line-height: 1.8;
}

/* ヘッダー */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a:hover {
    opacity: 0.8;
}

.lang-switch select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-switch select option {
    background: var(--color-text-primary);
    color: white;
}

/* ページヘッダー */
.page-header {
    text-align: center !important;
    margin-bottom: 40px !important;
    padding-bottom: 30px !important;
    border-bottom: 2px solid var(--border) !important;
    background: transparent !important;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
}

.page-header h1 i {
    color: #ffffff !important;
}

.page-header p {
    font-size: 1.2rem;
    color: #f0f0f0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

/* Content */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light-bg);
}

.section-header h2 {
    font-size: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* Steps */
.steps {
    margin-top: 20px;
}

.step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 32px;
    counter-increment: step-counter;
}

.step:last-child {
    margin-bottom: 0;
}

.step:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.step h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.step p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Alert */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-content b {
    display: block;
    margin-bottom: 8px;
}

.alert-content ul {
    margin: 0;
    padding-left: 20px;
}

.alert-content li {
    margin-bottom: 4px;
}

/* OSがダークモードでない場合のみ適用 */
@media not all and (prefers-color-scheme: dark) {
    .alert-info {
        background: #e8f4fd;
        border-left: 4px solid var(--color-info-dark);
    }

    .alert-info i {
        color: var(--color-info-dark);
    }

    .alert-warning {
        background: var(--color-warning-light);
        border-left: 4px solid var(--warning);
    }

    .alert-warning i {
        color: var(--warning);
    }
}

/* Screenshot placeholder */
.screenshot {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 16px;
    color: #64748b;
}

.screenshot i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

/* FAQ */
.faq {
    margin-top: 40px;
}

.faq-title {
    margin-bottom: 16px;
    color: var(--primary);
}

.faq-item {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.faq-item h4 {
    color: var(--primary);
    font-size: 17px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item h4 i {
    color: var(--accent);
}

.faq-item p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 124, 153, 0.3);
}

.btn i {
    margin-right: 6px;
}

.btn-google {
    background: var(--color-bg-base);
    color: #333;
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-google:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* Method cards */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.method-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.method-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.method-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 12px;
}

.method-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.method-card p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* ダークモード用上書き（OSダークモード対応） */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1e1e1e !important;
    }
    .method-card,
    .links-section,
    .step,
    .section,
    .card {
        background: #2d2d2d !important;
        background-color: #2d2d2d !important;
    }
    .method-card h3,
    .step h3,
    .section h2 {
        color: #ffffff !important;
    }
    .method-card p,
    .links-section p,
    .step p,
    .section p {
        color: #b0b0b0 !important;
    }
    /* コンテナ背景を透明に */
    .container {
        background: transparent !important;
    }
    /* アラートボックス */
    .alert,
    .alert-info,
    .alert-warning {
        background: #2a3a4a !important;
        background-color: #2a3a4a !important;
        border-left-color: #4a90e2 !important;
    }
    .alert-info {
        background: #1e3a5f !important;
    }
    .alert-warning {
        background: #3d3520 !important;
        border-left-color: #ffc107 !important;
    }
    .alert-content b,
    .alert-content li {
        color: #e0e0e0 !important;
    }
    /* スクリーンショットプレースホルダー */
    .screenshot {
        background: #2d2d2d !important;
        border-color: #444444 !important;
        color: #888888 !important;
    }
}

/* Links section */
.links-section {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
}

.links-section p {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.links-section a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 15px;
}

.links-section a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    /* スマホでは灰色背景を白に変更 */
    body {
        background-color: var(--color-bg-base);
    }

    /* コンテナの最大幅を解除 */
    .container {
        max-width: 100% !important;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section {
        padding: 24px 20px;
    }

    .step {
        padding-left: 0;
        padding-top: 48px;
    }

    .step:before {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-header h2 {
        font-size: 22px;
    }
}

/* パンくずリスト */
.breadcrumb {
    background: var(--color-bg-secondary);
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb-container {
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--color-btn-primary, var(--color-btn-primary));
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--color-text-secondary);
    margin: 0 8px;
}
