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

:root {
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary-color: #66BB6A;
    --secondary-dark: #43A047;
    --accent-color: #81C784;
    --success-color: #4CAF50;
    --bg-gradient: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 30%, #81C784 70%, #66BB6A 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(76, 175, 80, 0.2);
    --shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
    --shadow-hover: 0 25px 50px rgba(46, 125, 50, 0.25);
    --nature-accent: #8BC34A;
    --forest-green: #388E3C;
    --leaf-green: #9CCC65;
    --auth-overlay: rgba(0, 0, 0, 0.5);
    --hero-gradient: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #333;
    --text-secondary: #666;
}

body {
    font-family: 'BIZ UDPGothic', 'BIZ UDGothic', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', 'MS PGothic', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Header Row 1: Logo and Logout */
.header-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Header Row 2: User Email */
.header-row-2 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-left: 0.5rem;
}

/* Header Row 3: Plan Info */
.header-row-3 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-left: 0.5rem;
}

.logout-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.header-subtitle {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.2;
}

.version-tag {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email-section {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.user-plan-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.user-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.user-info {
    display: none;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.user-info.active {
    display: flex;
}

.user-plan {
    font-size: 0.8rem;
    color: #666;
    background: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    white-space: nowrap;
}

.user-plan.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-weight: 600;
}

.user-plan.limit-reached {
    background: linear-gradient(135deg, #ffcdd2, #ef5350);
    color: #b71c1c;
    font-weight: 600;
}

.upgrade-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.logout-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Premium Upgrade Modal */
.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.upgrade-modal.show {
    display: flex;
}

.upgrade-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.upgrade-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-options {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.plan-card {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card:hover,
.plan-card.selected {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFFEF7, #FFF9E6);
    transform: translateY(-5px);
}

.plan-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.plan-duration {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.plan-features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.plan-features li:before {
    content: "✓ ";
    color: #4CAF50;
    font-weight: bold;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.modal-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.modal-btn.secondary:hover {
    background: #e0e0e0;
}

/* Modal Actions (Upgrade Modal Buttons) */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
}

.proceed-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2);
}

.proceed-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
    background: linear-gradient(135deg, #FFA500, #FF8F00);
}

.proceed-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #555;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
}

.cancel-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive modal actions */
@media (max-width: 480px) {
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .proceed-btn, .cancel-btn {
        flex: none;
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Square Payment Form Styles */
.payment-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.card-container {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    margin-bottom: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-container iframe {
    width: 100%;
    border: none;
    height: 40px;
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Main Container */
.container {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Login Section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.login-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.login-subtitle {
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    transform: translateY(-1px);
}

.login-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Google公式デザイン準拠の美しいログインボタン */
.google-login-btn {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    border: 2px solid #dadce0;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Roboto', 'BIZ UDPGothic', sans-serif;
}

/* シャイニー効果のアニメーション */
.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: all 0.8s ease;
}

.google-login-btn:hover::before {
    left: 100%;
}

.google-login-btn:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
    border-color: #4285f4;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(66, 133, 244, 0.25);
}

.google-login-btn:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}

/* Googleロゴアイコンアニメーション */
.google-login-btn svg {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.google-login-btn:hover svg {
    transform: scale(1.15) rotate(2deg);
}

/* テキストスタイル強化 */
.google-login-btn span {
    font-family: 'Roboto', 'BIZ UDPGothic', sans-serif;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #1a73e8;
    transition: color 0.3s ease;
}

/* Google ボタン ローディング状態 */
.google-login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
    border-color: #4285f4;
    transform: none;
}

.google-login-btn.loading:hover {
    transform: none;
}

/* ローディングスピナー */
.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e8f0fe;
    border-top: 2px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 多言語対応でボタンテキストサイズ調整 */
.google-login-btn[data-lang="en"] span {
    font-size: 0.95rem;
}

.google-login-btn[data-lang="ko"] span,
.google-login-btn[data-lang="zh"] span {
    font-size: 0.9rem;
}

.email-login-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
    z-index: 0;
}

.divider span {
    background: var(--glass-bg);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.features-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.demo-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* Main App Section */
.main-app {
    display: none;
}

.main-app.active {
    display: block;
}

.welcome-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.welcome-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--forest-green), var(--nature-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.welcome-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Analysis Type Selection */
.analysis-type-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.analysis-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.analysis-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.analysis-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.analysis-option:hover {
    background: rgba(102, 187, 106, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.analysis-option input[type="radio"] {
    display: none;
}

.analysis-option input[type="radio"]:checked + .analysis-icon + .analysis-name,
.analysis-option:has(input[type="radio"]:checked) {
    background: var(--secondary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(102, 187, 106, 0.3);
}

.analysis-icon {
    font-size: 2rem;
}

.analysis-name {
    font-weight: 500;
}

.store-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    border-color: var(--primary-color);
}

.menu-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #fff8dc, #fdf5e6);
    border-color: #ff9800;
}

/* Language Selection */
.language-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.language-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Location Settings Section ===== */
.location-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.location-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.location-content {
    max-width: 500px;
    margin: 0 auto;
}

.location-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    text-align: left;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.location-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.location-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background: rgba(255, 255, 255, 1);
}

.location-input::placeholder {
    color: #999;
    font-style: italic;
}

.location-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.save-location-btn, .edit-location-btn {
    background: linear-gradient(135deg, var(--primary-color), #66BB6A);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.save-location-btn:hover, .edit-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.edit-location-btn {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.edit-location-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.location-display {
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-icon {
    font-size: 1.2rem;
}

.current-location {
    font-weight: 600;
    color: var(--primary-color);
}

.location-help {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Mobile optimization for language options */
@media (max-width: 640px) {
    .language-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 400px;
    }
    
    .language-option {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .language-name {
        font-size: 0.8rem;
    }
    
    /* Mobile optimization for analysis type options */
    .analysis-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 400px;
    }
    
    .analysis-option {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .analysis-icon {
        font-size: 1.5rem;
    }
    
    /* Mobile optimization for location settings */
    .location-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .location-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .save-location-btn, .edit-location-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .language-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-width: 320px;
    }
    
    .language-option {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    
    .language-name {
        font-size: 0.75rem;
    }
    
    /* Mobile optimization for location settings - small screens */
    .location-section {
        padding: 1.5rem;
    }
    
    .location-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .location-input {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .save-location-btn, .edit-location-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .location-help {
        font-size: 0.8rem;
    }
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.language-option:hover {
    background: rgba(102, 187, 106, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.language-option input[type="radio"] {
    display: none;
}

.language-option input[type="radio"]:checked + .language-name,
.language-option:has(input[type="radio"]:checked) {
    background: var(--secondary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(102, 187, 106, 0.3);
}


.language-name {
    font-weight: 500;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 253, 230, 0.95);  /* 薄い黄色 */
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 2px dashed #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.upload-section:hover {
    border-color: var(--secondary-color);
    background: rgba(255, 248, 200, 0.95);  /* ホバー時も薄い黄色 */
    transform: translateY(-2px);
}

.upload-section.dragover {
    border-color: var(--primary-color);
    background: rgba(255, 243, 180, 0.95);  /* ドラッグオーバー時も薄い黄色 */
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.upload-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-subtext {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

.file-input {
    display: none;
}

/* Preview Section */
.preview-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.preview-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.preview-image {
    max-width: 100%;
    max-height: 450px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.image-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
}

.image-detail {
    color: #666;
}

.image-detail strong {
    color: #333;
}

.analyze-btn {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(102, 187, 106, 0.3);
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4);
    background: linear-gradient(45deg, var(--secondary-dark), var(--primary-light));
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Section */
.loading-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

/* シンプルローディングスピナー */
.simple-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8f0fe;
    border-top: 4px solid #4285f4;
    border-right: 4px solid #81C784;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

/* 新しいローディングスピナーコンテナ */
.loading-spinner-container {
    position: relative;
    display: inline-block;
    margin: 0 auto 2rem;
}

/* メインローディングスピナー */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e8f0fe;
    border-top: 5px solid #4285f4;
    border-right: 5px solid #81C784;
    border-bottom: 5px solid #66BB6A;
    border-radius: 50%;
    animation: spinEnhanced 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* ローディングカウンター */
.loading-counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.loading-counter span {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    animation: countPulse 1s ease-in-out infinite alternate;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinEnhanced {
    0% { 
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% {
        filter: hue-rotate(90deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    75% {
        filter: hue-rotate(270deg);
    }
    100% { 
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

@keyframes countPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 0 rgba(46, 125, 50, 0.5);
    }
    100% { 
        transform: scale(1.1);
        text-shadow: 0 0 10px rgba(46, 125, 50, 0.8);
    }
}

.loading-text {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loading-subtext {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Results Section */
.results-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

/* 解析結果内のリンクスタイル */
.analysis-link {
    color: #1976D2 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #1976D2;
    transition: all 0.3s ease;
    padding: 1px 2px;
    border-radius: 3px;
    background: rgba(25, 118, 210, 0.1);
    font-weight: 500;
}

.analysis-link:hover {
    background: rgba(25, 118, 210, 0.2);
    color: #0D47A1 !important;
    border-bottom-color: #0D47A1;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.analysis-link:visited {
    color: #7B1FA2 !important;
    border-bottom-color: #7B1FA2;
    background: rgba(123, 31, 162, 0.1);
}

.analysis-link:visited:hover {
    background: rgba(123, 31, 162, 0.2);
    color: #4A148C !important;
    border-bottom-color: #4A148C;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.results-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.new-analysis-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.new-analysis-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.results-content {
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header-content {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .login-title {
        font-size: 2rem;
    }

    .welcome-title {
        font-size: 2.2rem;
    }

    .welcome-section,
    .upload-section,
    .preview-section,
    .loading-section,
    .results-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .image-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-text {
        font-size: 1.1rem;
    }

    .simple-loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }

    .user-info {
        font-size: 0.75rem;
    }

    .user-info span:first-child {
        display: inline;
    }

    .plan-options {
        flex-direction: column;
        gap: 0.8rem;
    }

    .upgrade-content {
        padding: 1.5rem;
        width: 95%;
    }

    .upgrade-title {
        font-size: 1.5rem;
    }

    .plan-card {
        padding: 1rem;
    }
}

/* ===== PHASE 7.6.2: CONVERSION OPTIMIZATION CTAs ===== */

/* Post-Features CTA Section */
.post-features-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
    margin: 2rem 0;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.post-features-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.post-features-cta h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-features-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}


/* FAQ CTA */
.faq-cta {
    margin-top: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(129, 199, 132, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.faq-cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.faq-cta h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}


/* Sticky CTA Bar */
.sticky-cta-bar {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
    border-bottom: 2px solid var(--primary-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
}

.sticky-cta-bar.visible {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.sticky-cta-bar.scroll-down {
    animation: slideInDown 0.4s ease-out;
}

.sticky-cta-bar.scroll-up {
    animation: slideInUp 0.4s ease-out;
}

.sticky-cta-bar.closing {
    animation: slideOutUp 0.3s ease-in;
}

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

.sticky-cta-text {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.sticky-cta-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.sticky-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sticky-cta-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.7;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-cta-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: rotate(90deg);
}

/* Sticky CTA Animations */
@keyframes slideInDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(-50%);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 0.3rem;
    }
    
    .header-row-2,
    .header-row-3 {
        padding-left: 0.25rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-plan-section {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 0.25rem;
        padding: 0 0.75rem;
    }

    .header-row-2,
    .header-row-3 {
        padding-left: 0;
    }

    .logo {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .version-tag {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .user-plan-section {
        font-size: 0.7rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .logout-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .upgrade-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ===== Markdown表示用スタイル ===== */
#resultsContent {
    line-height: 1.5;  /* 行間を狭める: 1.7 → 1.5 */
    color: #333;
    font-size: 18px;   /* 文字を大きく: 15px → 18px */
}

/* ヘッダー */
#resultsContent h1 {
    font-size: 2em;    /* 見出しも拡大: 1.8em → 2em */
    color: #2196F3;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 6px;
    margin: 18px 0 12px 0;  /* 余白を調整 */
    font-weight: 600;
}

#resultsContent h2 {
    font-size: 1.6em;  /* 見出しも拡大: 1.5em → 1.6em */
    color: #1976D2;
    margin: 16px 0 10px 0;  /* 余白を調整 */
    font-weight: 600;
}

#resultsContent h3 {
    font-size: 1.4em;  /* 見出しも拡大: 1.3em → 1.4em */
    color: #1565C0;
    margin: 14px 0 8px 0;   /* 余白を調整 */
    font-weight: 500;
}

/* 太字・斜体 */
#resultsContent strong {
    font-weight: 600;
    color: #1976D2;
}

#resultsContent em {
    font-style: italic;
    color: #555;
}

/* 段落 */
#resultsContent p {
    margin: 8px 0;       /* 段落間の余白を狭める */
    line-height: 1.5;    /* 行間を統一 */
}

/* リスト */
#resultsContent ul, 
#resultsContent ol {
    padding-left: 25px;  /* インデントを少し増やす */
    margin: 8px 0;       /* 余白を調整: 12px → 8px */
}

#resultsContent li {
    margin: 4px 0;       /* 項目間の余白を狭める: 6px → 4px */
    line-height: 1.5;    /* 行間を統一: 1.6 → 1.5 */
}

/* 箇条書きのアイコンカスタマイズ */
#resultsContent ul li::marker {
    content: "🔹 ";
}

/* コード */
#resultsContent code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #d73a49;
}

#resultsContent pre {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

#resultsContent pre code {
    background: none;
    padding: 0;
    color: #24292e;
}

/* 引用 */
#resultsContent blockquote {
    border-left: 4px solid #2196F3;
    background: #f8f9ff;
    margin: 10px 0;      /* 余白を調整: 16px → 10px */
    padding: 10px 16px;  /* 内側の余白も調整 */
    font-style: italic;
    color: #555;
}

/* テーブル */
.table-container {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.markdown-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.markdown-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.markdown-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.markdown-table tr:nth-child(even) {
    background: #f8f9fa;
}

.markdown-table tr:hover {
    background: #e3f2fd;
}

/* リンク */
#resultsContent a {
    color: #2196F3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

#resultsContent a:hover {
    border-bottom-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
    padding: 0 2px;
    border-radius: 2px;
}

/* 画像 */
#resultsContent img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 12px 0;
}

/* 区切り線 */
#resultsContent hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #2196F3, transparent);
    margin: 24px 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    #resultsContent {
        font-size: 16px;    /* モバイルでも大きめの文字: 14px → 16px */
        line-height: 1.5;   /* 行間は統一 */
    }
    
    #resultsContent h1 {
        font-size: 1.8em;   /* 見出しも大きく: 1.6em → 1.8em */
    }
    
    #resultsContent h2 {
        font-size: 1.5em;   /* 見出しも大きく: 1.4em → 1.5em */
    }
    
    #resultsContent h3 {
        font-size: 1.3em;   /* h3の設定も追加 */
    }
    
    .markdown-table {
        font-size: 12px;
    }
    
    .markdown-table th,
    .markdown-table td {
        padding: 8px 12px;
    }
}

/* Stripe決済用スピナーアニメーション */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 認証モーダル */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--auth-overlay);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-content {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover {
    color: #333;
}

.auth-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px 0;
    transition: background-color 0.3s ease;
}

.auth-btn:hover {
    background: var(--primary-dark);
}

.auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.auth-form p {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.auth-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Google ログインページ用スタイル（最小限） */
.google-login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-content {
    background: white;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.google-login-wrapper {
    margin: 40px 0;
    padding: 30px;
}

.back-link {
    margin-top: 30px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Google Sign-In Button */
.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    color: #3c4043;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.google-btn:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-color: #dadce0;
}

.google-btn:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.16);
}

.google-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.google-btn img {
    margin-right: 8px;
}

/* Site Footer */
.site-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 400;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-link:hover {
    background: rgba(136, 136, 136, 0.1);
    color: #666;
}

.footer-separator {
    color: #ccc;
    font-weight: 300;
    user-select: none;
    font-size: 0.75rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 1rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        gap: 0.6rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 0.8rem 0;
    }
    
    .footer-link {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .copyright {
        font-size: 0.65rem;
    }
}

/* ================================================================
   LANDING PAGE STYLES (lp.html)
   ================================================================ */

.landing-page {
    background: var(--bg-gradient);
    min-height: 100vh;
    font-family: 'Roboto', 'BIZ UDPGothic', sans-serif;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Landing Header */
.landing-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.landing-header .logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    background: var(--hero-gradient);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 70vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 背景画像がある場合はオーバーレイを調整 */
.hero-section.background-loaded::before {
    background: rgba(0, 0, 0, 0.3);
}

/* ランダム背景画像クラス */
.hero-section.hero-bg-1 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('images/backgrounds/1.hakodate_optimized.jpg');
}

.hero-section.hero-bg-2 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('images/backgrounds/2.hakodate_optimized.jpg');
}

.hero-section.hero-bg-3 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('images/backgrounds/3.biei01_optimized.jpg');
}

.hero-section.hero-bg-4 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('images/backgrounds/4.tokyo_optimized.jpg');
}

.hero-section.hero-bg-5 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('images/backgrounds/5.Fuji_optimized.jpg');
}

/* 背景画像読み込み完了時のスムーズトランジション */
.hero-section.background-loaded {
    transition: background-image 0.5s ease-in-out;
}

/* モバイル対応 - 背景を固定しない */
@media (max-width: 768px) {
    .hero-section.hero-bg-1,
    .hero-section.hero-bg-2,
    .hero-section.hero-bg-3,
    .hero-section.hero-bg-4,
    .hero-section.hero-bg-5 {
        background-attachment: scroll;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

/* ヒーローサブタイトル - メインタイトルスタイル */
.hero-subtitle {
    font-size: 3rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 15px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ヒーローメインタイトル - サブタイトルスタイル */
.hero-content h1 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #f0f8ff;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    background: rgba(33, 150, 243, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Language Selection */
.language-selection {
    margin: 3rem 0;
}

.language-selection h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.language-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lang-btn {
    background: var(--card-bg);
    border: 2px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.lang-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.2);
}

.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

/* CTA Button */
.cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.4);
}

/* Enhanced CTA Button */
.cta-btn.enhanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.2rem 3rem;
    min-width: 280px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4);
    margin: 0 auto;
}

.cta-btn.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.5);
}

.cta-btn.enhanced .cta-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    animation: pulse 2s infinite;
}

.cta-btn.enhanced .cta-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-btn.enhanced .cta-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-top: 0.1rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    z-index: 1;
}

/* Phase 2.2 - 画像検索最適化対応 */
.feature-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 2;
}

.feature-card-01 {
    background-image: url('../images/backgrounds/sabmenu/01.picture.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-card-02 {
    background-image: url('../images/backgrounds/sabmenu/02.earth.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-card-03 {
    background-image: url('../images/backgrounds/sabmenu/03.japan.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff0f5 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.testimonial-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.testimonial-item.left {
    justify-content: flex-start;
    animation-delay: 0.2s;
}

.testimonial-item.right {
    justify-content: flex-end;
    flex-direction: row-reverse;
    animation-delay: 0.4s;
}

.testimonial-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-width: 100px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 3px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-circle.avatar-female {
    border-color: rgba(233, 30, 99, 0.3);
}

.avatar-circle.avatar-male {
    border-color: rgba(33, 150, 243, 0.3);
}

.avatar-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.avatar-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.avatar-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.testimonial-bubble {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 1.8rem 2rem;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

.testimonial-item.left .testimonial-bubble::before {
    left: -23px;
    border-right-color: white;
}

.testimonial-item.right .testimonial-bubble::before {
    right: -23px;
    border-left-color: white;
}

.testimonial-bubble p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 1rem;
    }
    
    .testimonials-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .testimonials-grid {
        gap: 2rem;
    }
    
    .testimonial-item {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .testimonial-item.right {
        flex-direction: column !important;
    }
    
    .testimonial-bubble {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .testimonial-bubble::before {
        left: 20px !important;
        top: -11px !important;
        transform: translateY(0) !important;
        border-bottom-color: white !important;
        border-right-color: transparent !important;
        border-left-color: transparent !important;
        border-top-color: transparent !important;
    }
    
    .avatar-circle {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .testimonial-bubble p {
        font-size: 0.95rem;
    }
}


/* Pricing Section */
.pricing-section {
    padding: 5rem 2rem;
    background: var(--hero-gradient);
}

.pricing-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.pricing-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    position: relative;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.price-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
}

.features-list li::before {
    content: "✅";
    margin-right: 0.5rem;
}

.plan-btn {
    width: 100%;
    background: var(--primary-light);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.plan-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.plan-btn.premium {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* FAQ Section */
.faq-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f8ff 100%);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.faq-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 1.8rem 3.5rem 1.8rem 2rem;
    margin: 0;
    background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-question::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-question::after {
    content: "＋";
    position: absolute;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem 1.8rem 4.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    background: white;
    position: relative;
}

.faq-answer p {
    margin: 0;
    font-size: 1.05rem;
}

.faq-answer::before {
    content: "A";
    position: absolute;
    left: 2rem;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #666;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    /* 初期状態で非表示 */
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* Default: hide answers */
.faq-answer {
    max-height: 0;
    height: 0;
    overflow: hidden;
    padding: 0 2rem 0 4.5rem;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    height: auto;
    padding: 1rem 2rem 2rem 4.5rem;
}

/* アクティブ時のみA要素を表示 */
.faq-item.active .faq-answer::before {
    opacity: 1;
    transform: scale(1);
}

/* ヒーローセクション モバイル対応 */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 2.2rem;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 1.5rem 3rem 1.5rem 1.5rem;
    }
    
    .faq-question::before,
    .faq-answer::before {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 0 3.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem 1.5rem 1.5rem 3.5rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
    }
    
    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Landing Footer */
.landing-footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.landing-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.landing-footer .footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.landing-footer .footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.landing-footer .footer-links a:hover {
    opacity: 1;
}

/* Responsive Design for Landing Page */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .language-buttons {
        gap: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .features-section h2,
    .pricing-section h2 {
        font-size: 2rem;
    }
    
    .features-section,
    .pricing-section {
        padding: 3rem 1rem;
    }
    
    .feature-card,
    .price-card {
        padding: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .landing-header .header-content {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        min-height: 50vh;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center bottom !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .language-buttons {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    
    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    /* Phase 7.6.2: Mobile CTA Styles */
    .post-features-cta {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .post-features-cta h3 {
        font-size: 1.5rem;
    }
    
    .post-features-cta-content,
    .faq-cta-content {
        padding: 0 1rem;
    }
    
    .faq-cta {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .faq-cta h3 {
        font-size: 1.4rem;
    }
    
    .sticky-cta-content {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .sticky-cta-text {
        font-size: 1rem;
        text-align: center;
    }
    
    .sticky-cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .sticky-cta-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .price-card {
        padding: 1.5rem;
    }
    
    .landing-footer .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}