/* 共通ページスタイル (features/*.html, getting-started.html, tutorial.html等) */
/* 注意: カラー変数は variables.css で定義されています */

@import "variables.css";

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f0f2f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation (nav tag style - unified with FAQ)
   ============================================ */
nav {
    position: fixed;
    width: 100%;
    background: var(--color-header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    top: 0;
    left: 0;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-header-text);
}

.logo a {
    text-decoration: none;
    color: var(--color-header-text);
}

.logo i {
    margin-right: 8px;
}

/* Language Selector */
.language-select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
}

.language-select option {
    color: #333;
    background: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--color-header-text);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* ログインボタンスタイル */
nav a.nav-login {
    background: var(--gradient-1);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

nav a.nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ============================================
   Header (gradient style)
   ============================================ */
header.page-header {
    background: var(--gradient-1);
    color: white;
    padding: 120px 0 40px;  /* nav分のpadding-top */
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

header.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ============================================
   Main Content Area
   ============================================ */
main {
    padding: 40px 0;
}

/* Feature Section (white card) */
.feature-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.feature-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.feature-section h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.feature-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
}

.feature-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

/* Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    color: var(--text-secondary);
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.image-placeholder .note {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: left;
}

/* ============================================
   Info Boxes
   ============================================ */
.info-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box.primary {
    background: #e6f2ff;
    border-left: 4px solid var(--primary-color);
}

.info-box.success {
    background: #f0fff4;
    border-left: 4px solid var(--secondary-color);
}

.info-box.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.info-box.gray {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   Footer (4-column style)
   ============================================ */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
    font-size: 0.9rem;
}

/* ============================================
   Back Button Container
   ============================================ */
.back-button-container {
    margin: 30px auto;
    text-align: center;
    padding: 8px;
    width: 100%;
    max-width: 1200px;
}

/* ============================================
   Mobile Menu
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* デスクトップ用言語セレクタを隠す */
    .language-select {
        display: none;
    }

    /* モバイル用言語セレクタ */
    .mobile-language-select {
        padding: 10px 20px !important;
        background: rgba(255,255,255,0.1);
    }

    .mobile-language-select select {
        width: 100%;
        padding: 8px;
        border-radius: 4px;
        border: 1px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.1);
        color: white;
        font-size: 14px;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 60px;
        right: 0;
        width: 180px;
        background: var(--color-header-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 5px 0;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        border-radius: 0 0 0 8px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 10px 20px !important;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: var(--color-header-text) !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        transition: all 0.2s;
        margin: 0 !important;
    }

    nav ul li a:hover,
    nav ul li a:active {
        background: rgba(255,255,255,0.15);
        padding-left: 25px !important;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    /* Header responsive */
    header.page-header {
        padding: 100px 0 30px;
    }

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

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

    /* Main content responsive */
    .feature-section {
        padding: 25px;
    }

    .feature-section h2 {
        font-size: 1.5rem;
    }

    .feature-section h3 {
        font-size: 1.2rem;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   Premium/Paid Plan Styles
   ============================================ */
/* 注意: --premium-color は variables.css で定義されています */

.premium-badge {
    display: inline-block;
    background: var(--premium-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
}

.premium-notice {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe5d0 100%);
    border: 2px solid var(--premium-color);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.premium-notice h3 {
    color: var(--premium-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.premium-notice p {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.btn-premium {
    background: var(--premium-color);
    color: white;
}

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

/* ============================================
   Steps List (numbered steps)
   ============================================ */
.steps-list {
    counter-reset: step-counter;
    list-style: none;
    margin: 20px 0;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 20px 20px 20px 60px;
    margin-bottom: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    position: relative;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ============================================
   Tip Box
   ============================================ */
.tip-box {
    background: #ebf8ff;
    border-left: 4px solid var(--color-info-dark);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tip-box h4 {
    color: #2c5282;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA Section (green gradient)
   ============================================ */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--color-success-dark) 0%, #88d1a3 100%);
    color: white;
}

.cta-section h2 {
    color: white;
    border-bottom: 3px solid white;
}

.cta-section p {
    color: white;
    font-size: 1.1rem;
}

.cta-section .btn {
    background: white;
    color: var(--color-success-dark);
}

@media (max-width: 480px) {
    header.page-header h1 {
        font-size: 1.5rem;
    }

    .feature-section {
        padding: 20px;
    }

    .feature-section h2 {
        font-size: 1.3rem;
    }
}
