/* Modern Design System - modern.css */

:root {
    --color-primary: #0055A4; /* A professional, calm blue */
    --color-primary-dark: #003d7a;
    --color-secondary: #1D9BF0; /* A brighter, modern blue for accents */
    --color-accent: #FFC107; /* A warm, inviting yellow for special CTAs */
    --color-accent-dark: #e6ac00;
    --color-text-primary: #1F2937; /* Dark gray for primary text, not pure black */
    --color-text-secondary: #6B7280; /* Lighter gray for secondary text */
    --color-background: #F9FAFB; /* A very light gray for the page background */
    --color-surface: #FFFFFF; /* White for card backgrounds, etc. */
    --color-border: #E5E7EB; /* Light gray for borders */

    --font-family-base: 'Noto Sans JP', sans-serif;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2.25rem;
    --font-size-h3: 1.5rem;
    --font-size-body: 1rem;
    --font-size-small: 0.875rem;

    --spacing-unit: 1rem;
    --border-radius: 0.75rem; /* 12px */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease-in-out;
}

/* 1. Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

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

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* 2. Buttons */
.btn-primary, .btn-secondary, .demo-button {
    display: inline-block;
    padding: 0.875rem 1.75rem; /* 14px 28px */
    border: none;
    border-radius: 0.5rem; /* 8px */
    font-weight: 500;
    font-size: var(--font-size-body);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-button {
    background: var(--color-accent);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
    animation: none; /* Remove old pulse */
}

.demo-button:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary.large, .btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 3. Header (from js/main.js) */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo .logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
}

.logo p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ナビゲーション（PC版） */
.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 4. Hero Section */
.hero {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    padding: 3rem 0 4rem;
    text-align: center;
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: center;
}

.hero-text-content {
    max-width: 750px;
}

.hero-title {
    font-size: 2.25rem; /* Reduced to 3/4 */
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-video-wrapper {
    max-width: 700px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    aspect-ratio: 16 / 9;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

/* 音声コントロールボタン */
.video-sound-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.video-sound-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.video-sound-toggle #sound-icon {
    font-size: 18px;
}

.video-sound-toggle .sound-text {
    font-size: 12px;
    white-space: nowrap;
}

.hero-tags {
    margin-top: 3rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: var(--transition-base);
}

.tag:hover {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.hero-tags-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* 5. Problem/Solution Section */
.problem-solution {
    padding: 5rem 0;
    background-color: var(--color-background);
}

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

.before-after-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.before-after-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.before-section, .after-section {
    padding: 2rem;
    text-align: center;
}

.before-section {
    background-color: #FFF1F2;
}

.after-section {
    background-color: #F0F9FF;
}

.label {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: inline-block;
}

.before-label {
    background: #E53E3E;
    color: white;
}

.after-label {
    background: var(--color-primary);
    color: white;
}

.problem-icon, .solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.before-section h3, .after-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.before-section h3 {
    color: #C53030;
}

.after-section h3 {
    color: var(--color-primary-dark);
}

.before-section p, .after-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.arrow {
    display: none;
}

/* 6. Features Section */
.features {
    padding: 3rem 0;
    background-color: var(--color-surface);
}

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

.feature-card {
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

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

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

.inline-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.inline-link:hover {
    text-decoration: underline;
}

/* 7. Voice Narrator Section */
.voice-narrator {
    padding: 5rem 0;
    background-color: var(--color-background);
}

.voice-samples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.voice-sample-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.voice-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.voice-description {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.voice-play-btn {
    width: 140px;
    height: 42px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.voice-play-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.voice-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.voice-play-btn:hover::before {
    left: 100%;
}

.voice-highlights {
    text-align: center;
    margin: 4rem 0;
}

.voice-highlights h3 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    animation: text-glow 3s ease-in-out infinite;
}

.voice-highlights h3::before {
    content: '🎵';
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: music-bounce 2s ease-in-out infinite;
}

.voice-highlights h3::after {
    content: '🎙️';
    position: absolute;
    right: -3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: mic-bounce 2s ease-in-out infinite 0.5s;
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(118, 75, 162, 0.4);
        transform: scale(1.05);
    }
}

@keyframes music-bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2) rotate(15deg); }
}

@keyframes mic-bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2) rotate(-15deg); }
}

/* Examples.html用のフィルターボタン */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.filter-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #4a5568;
    padding: 0.7rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e0;
    background: linear-gradient(135deg, #edf2f7 0%, #cbd5e0 100%);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    animation: filter-glow 3s ease-in-out infinite;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s;
}

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

@keyframes filter-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5); }
}

/* Examples.html用のグリッドレイアウト */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 350px));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.example-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 350px;
    max-width: 350px;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* スマホ版レスポンシブデザイン */
@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .example-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .card-media {
        height: 200px !important;
        grid-template-columns: 1fr !important;
    }
    
    .video-preview {
        height: 200px !important;
    }
    
    .filter-buttons {
        gap: 0.5rem !important;
    }
    
    .filter-btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* 国旗サムネイル（language-thumbnail）のスタイル */
.language-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.language-thumbnail:hover {
    transform: scale(1.05);
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 国旗の表示を確実にするためのバックアップスタイル */
.example-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

.example-meta {
    flex: 1;
}

/* example-actions（動画ボタンとQRコード）のレイアウト */
.example-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    margin: 1rem 0 !important;
    padding: 1rem !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    flex-direction: row !important;
}

.qr-preview {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e0 !important;
    background: white !important;
    padding: 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    flex-direction: row !important;
    display: block !important;
}

.qr-preview:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* example-body（カード本文）のレイアウト */
.example-body {
    padding: 1rem;
}

.example-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    
    /* 3行制限と省略記号 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* スマホ版での国旗サムネイル調整 */
@media (max-width: 768px) {
    .language-thumbnail {
        width: 50px;
        height: 33px;
        border-width: 1px;
    }
    
    .example-actions {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .qr-preview {
        width: 140px !important;
        height: 140px !important;
    }
}

.voice-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.voice-tag {
    min-width: 120px;
    height: 36px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.voice-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #edf2f7 0%, #cbd5e0 100%);
    border-color: #cbd5e0;
}

.voice-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.4s;
}

.voice-tag:hover::before {
    left: 100%;
}

/* 無料コインハイライト装飾 */
.free-coins-highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #eab308);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
    animation: glow-pulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
}

.free-coins-highlight:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5);
}

.free-coins-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 4s linear infinite;
}

.sparkle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sparkle {
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite alternate;
}

.free-coins-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.free-coins-subtext {
    color: #374151;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5);
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes sparkle {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
}

.voice-cta {
    text-align: center;
    background-color: #FFFBEB; /* 薄い黄色 */
    color: #B45309; /* 濃いオレンジ */
    padding: 2.5rem;
    margin-top: 3rem;
    border-radius: var(--border-radius);
    border: 2px solid #FBBF24; /* 黄色の境界線 */
}

/* 8. Color QR Section */
#color-qr {
    padding: 3rem 0;
    background-color: var(--color-surface); /* Add background color */
}

#color-qr .feature-card {
    box-shadow: none;
    border: none;
    background-color: transparent; /* Make card background transparent */
}

#color-qr .feature-card p {
    text-align: left;
}

#color-qr .feature-card h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

#color-qr .feature-card:hover {
    transform: none;
    box-shadow: none;
    border: none;
}

.rgb-visualizer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    flex-wrap: wrap; /* Add for responsiveness */
}

.rgb-visualizer .color-swatch {
    width: 100px; /* Increased width */
    text-align: center;
}

.rgb-visualizer .color-circle {
    width: 60px; /* Increased size */
    height: 60px; /* Increased size */
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--color-border);
}

.rgb-visualizer .color-label {
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
    line-height: 1.3; /* Adjust line height */
}

/* 9. Video Gallery Section */
.video-gallery {
    padding: 3rem 0;
    background-color: var(--color-background);
}

.video-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-gallery .section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: linear-gradient(135deg, var(--color-surface), #eef2f7);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: -1.5rem auto 3rem auto;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    position: relative;
}

.video-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: visible;
    transition: var(--transition-base);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-card-header {
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.language-flag {
    font-size: 1.5rem;
}

.language-name {
    font-size: 1rem;
    font-weight: 500;
}

.video-card-body {
    padding: 1.5rem;
    text-align: center;
}

.qr-code-container {
    margin: 1rem 0;
}

.qr-code-image {
    width: 100px;
    height: 100px;
    max-width: 100%;
    margin: 0 auto 1rem auto;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-code-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.video-url {
    font-size: 0.8rem;
    color: var(--color-secondary);
    word-break: break-all;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0;
}

.video-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.play-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.play-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

.gallery-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.gallery-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* for smaller screens */
}

/* 10. Use Cases Section */
.use-cases {
    padding: 5rem 0;
    background-color: var(--color-surface);
}

.use-cases-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    font-size: 1.25rem;
}

.use-case-card ul {
    list-style-position: inside;
    padding-left: 0;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--color-background);
    border-radius: 0.5rem;
    font-weight: 500;
}

/* 11. Pricing Section */
.pricing {
    padding: 5rem 0;
    background-color: var(--color-background);
    text-align: center;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin: 1rem 0 3rem 0;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* コイン制度説明 */
.coin-system-explanation {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.coin-system-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 20px;
    padding: 2rem 3rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
    position: relative;
    overflow: hidden;
}

.coin-system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s linear infinite;
}

.coin-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: coin-spin 4s linear infinite;
}

@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

.coin-system-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 1rem 0;
}

.coin-system-card p {
    font-size: 1rem;
    color: #0f172a;
    margin: 0;
    line-height: 1.6;
}

/* 料金メリット */
.pricing-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.benefit-item {
    background: white;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    min-width: 200px;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 1.3rem;
}

.benefit-item span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

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

.pricing-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* スターターパック */
.pricing-card.starter {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e0;
}

.pricing-card.starter:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* スタンダードパック */
.pricing-card.standard {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.3);
}

.pricing-card.standard:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.4);
}

/* プレミアムパック */
.pricing-card.premium {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0ea5e9;
    position: relative;
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3);
}

.pricing-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.pricing-card.premium:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.4);
}

.pricing-card.recommended {
    border-color: var(--color-primary);
}

.recommendation-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    z-index: 10;
    animation: badge-glow 3s ease-in-out infinite;
}

.premium-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    animation: premium-badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6); }
}

@keyframes premium-badge-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 6px 20px rgba(14, 165, 233, 0.7), 0 0 30px rgba(14, 165, 233, 0.3); }
}

/* 料金カードヘッダー */
.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.pricing-header h4 {
    font-size: 2rem;
    font-weight: 800;
    margin: 1rem 0;
    color: #0f172a;
}

.price .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0369a1;
}

.price .period {
    font-size: 0.9rem;
    color: #64748b;
    display: block;
    margin-top: 0.5rem;
}

.discount-info {
    background: #dcfce7;
    color: #166534;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.premium-discount {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #3b82f6;
    animation: discount-pulse 2s ease-in-out infinite;
}

@keyframes discount-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 機能リスト */
.pricing-features {
    text-align: left;
    margin: 2rem 0;
    padding: 0 1rem;
}

.pricing-features .feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

/* 12. FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--color-surface);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 13. CTA Section */
.cta {
    padding: 5rem 0;
    background-color: var(--color-primary);
    color: var(--color-surface);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
}

/* 14. Footer Section */
.related-content {
    padding: 4rem 0;
    background-color: var(--color-surface);
}

.related-content h3 {
    font-size: var(--font-size-h2);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-primary);
}

.related-link-group h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.related-links li {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex; /* For alignment */
}

.related-links li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-links .content-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    width: 100%; /* Ensure link fills the li */
}

.related-links .content-link:hover {
    color: var(--color-primary);
}

.related-links .external-link::after {
    content: ' ↗';
    font-size: 0.8em;
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.related-links .content-link:hover .external-link::after {
    transform: translateX(3px) translateY(-3px);
}

.footer {
    padding: 4rem 0 2rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--color-background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: var(--color-background);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-logo {
    padding-right: 1rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-logo p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-text-secondary);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.875rem; /* Reduced to 3/4 */
    }
    .nav {
        display: flex;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    /* フッターレスポンシブ - 横幅効果的活用 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-logo {
        padding-right: 0;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* モバイル版フッターレイアウト - Grid with explicit rows */
    .footer-content {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem 0.5rem;
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-col {
        text-align: center;
        font-size: 0.85rem;
        min-width: 0;
    }
    
    .footer-col:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-col:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .footer-col:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }
    
    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-col a, .footer-col p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* タブレット縦向き等の中間サイズ最適化 */
@media (max-width: 640px) and (min-width: 481px) {
    .footer-content {
        gap: 1.2rem 0.4rem;
    }
    
    .footer-col {
        font-size: 0.9rem;
    }
    
    .footer-col h4 {
        font-size: 1.05rem;
    }
    
    .footer-col a, .footer-col p {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1.5rem 0;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    /* 小画面でも3カラム維持、よりコンパクトに */
    .footer-content {
        gap: 1rem 0.3rem;
    }
    
    .footer-col {
        font-size: 0.8rem;
    }
    
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-col a, .footer-col p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* お問い合わせカラムの長いテキスト対応 */
    .footer-col:last-child a, 
    .footer-col:last-child p {
        font-size: 0.75rem;
        word-break: break-all;
    }
}

/* =======================
   事例集ページヘッダースタイル  
   ======================= */

.examples-page {
    padding-top: 0;
    min-height: 100vh;
    background: #f8fafc;
}

.main-content-wrapper {
    background-color: #f8fafc; /* Consistent background, matching examples.html */
}

.examples-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0; /* Unified padding */
    text-align: center;
    margin-bottom: 0;
}

.examples-header h1 {
    font-size: 2rem; /* Unified font size */
    margin-bottom: 1rem;
}

.examples-stats {
    display: flex;
    justify-content: space-evenly; /* Distribute items evenly */
    gap: 3rem; /* Keep gap */
    margin-top: 2rem;
    flex-wrap: wrap;
    max-width: 800px; /* Limit width to keep items from spreading too far */
    margin-left: auto; /* Center the examples-stats container itself */
    margin-right: auto; /* Center the examples-stats container itself */
}

.stat-item {
    text-align: center;
    flex: 1; /* Allow items to grow and shrink */
    min-width: 150px; /* Minimum width for each item */
    max-width: 200px; /* Max width to prevent them from becoming too wide */
    background-color: rgba(255, 255, 255, 0.2); /* Slightly stronger background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Added border */
    padding: 1.5rem 2rem; /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 1.5rem; /* Unified font size */
    font-weight: bold;
    display: block;
    color: white;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Subtle glow */
}

.stat-label {
    font-size: 1.1rem; /* Slightly larger */
    font-weight: 600; /* Bolder */
    opacity: 1; /* Full opacity */
    color: white;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* Removed mobile-specific overrides for examples-header related styles */
}

/* =======================
   事例カードの詳細スタイル
   ======================= */

.card-media {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    height: 250px;
}

.video-preview {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-preview:hover {
    transform: scale(1.02);
}

.play-button {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.qr-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
}

.qr-preview img {
    max-width: 100%;
    height: auto;
}

.card-content {
    padding: 1.5rem;
}

.card-badges {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.industry-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.language-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-business-type {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-view {
    flex: 1;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.btn-view:hover {
    transform: translateY(-1px);
}

.btn-note {
    background: #f1f5f9;
    color: #475569;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-note:hover {
    background: #e2e8f0;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

/* カード詳細のモバイル対応 */
@media (max-width: 768px) {
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-actions .btn-view {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001; /* Ensure it's above the header */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger menu animation */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile header actions */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-cta-btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.2rem !important;
    white-space: nowrap;
}

/* Desktop CTA button - shown by default */
.desktop-cta-btn {
    display: inline-block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .header .container {
        justify-content: space-between; /* Ensure space between logo and mobile actions */
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    /* ロゴサイズを大幅に縮小 */
    .logo .logo-title {
        font-size: 1.1rem; /* 1.5rem → 1.1rem に縮小 */
        line-height: 1.2;
    }
    .logo p {
        font-size: 0.75rem; /* 0.875rem → 0.75rem に縮小 */
        line-height: 1.1;
        margin: 0;
    }

    .mobile-header-actions {
        display: flex; /* Show mobile actions on mobile */
        align-items: center;
        gap: 0.8rem; /* 1rem → 0.8rem に縮小 */
    }

    .mobile-cta-btn {
        font-size: 0.8rem !important; /* 0.9rem → 0.8rem に縮小 */
        padding: 0.5rem 1rem !important; /* パディングも縮小 */
        white-space: nowrap;
    }

    .desktop-cta-btn {
        display: none; /* Hide desktop CTA button on mobile */
    }

    .nav {
        display: flex; /* Change to flex to allow visibility toggle */
        flex-direction: column;
        position: fixed;
        top: 80px; /* ヘッダーの下から開始 */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px); /* ヘッダーの高さを引いた高さ */
        background-color: rgba(255, 255, 255, 0.98); /* Semi-transparent white overlay */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        justify-content: flex-start; /* 上から開始 */
        align-items: center;
        gap: 0.3rem; /* 間隔を詰める */
        padding-top: 2rem; /* 上部に少し余白 */
        z-index: 9999; /* Higher z-index to ensure it's above everything */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        pointer-events: none; /* Prevent interaction when hidden */
    }

    .nav.nav-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Enable interaction when visible */
    }

    .nav-link {
        font-size: 1.2rem; /* Slightly smaller for better spacing */
        padding: 0.6rem 0; /* 間隔を少し詰める */
        color: var(--color-text-primary);
        text-align: center;
        width: 100%;
        display: block;
        text-decoration: none;
        transition: color 0.3s ease;
    }

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


    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
        z-index: 10000; /* Ensure hamburger is above the nav menu */
        position: relative;
    }

    /* Prevent scrolling and interaction when nav is open */
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    body.nav-open > *:not(.header) {
        pointer-events: none; /* Disable interaction with background content */
    }
}

/* iPhone & 小画面用さらなる最適化 */
@media (max-width: 480px) {
    .header .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* ロゴを更に小さく */
    .logo .logo-title {
        font-size: 1rem; /* 1.1rem → 1rem にさらに縮小 */
        line-height: 1.1;
    }
    .logo p {
        font-size: 0.7rem; /* 0.75rem → 0.7rem にさらに縮小 */
        line-height: 1;
    }

    .mobile-header-actions {
        gap: 0.6rem; /* 0.8rem → 0.6rem にさらに縮小 */
    }

    .mobile-cta-btn {
        font-size: 0.75rem !important; /* 0.8rem → 0.75rem にさらに縮小 */
        padding: 0.4rem 0.8rem !important; /* パディングもさらに縮小 */
    }

    .hamburger-menu {
        width: 26px; /* 30px → 26px に縮小 */
        height: 18px; /* 20px → 18px に縮小 */
    }
}

/* ========================================
   台本モーダル（Script Modal Styles）
   ======================================== */

/* ポップアップモーダル */
.script-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: none;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10001 !important;
    padding: 20px !important;
}

.script-modal.active {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}
/* === Related Content Note Cards === */

.related-links li {
    background-color: transparent;
    box-shadow: none;
    border-radius: 12px;
    overflow: hidden;
}

.related-links li:hover {
    transform: none;
    box-shadow: none;
}

.related-links .content-link {
    padding: 0;
    width: 100%;
}

.related-links .content-link:hover {
    color: var(--color-text-secondary); /* Prevent title color change on hover */
}

.related-links .external-link::after {
    display: none; /* Hide arrow */
}

.note-card-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    display: block;
}

.note-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px; /* Match parent li */
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.note-card-image-container {
    width: 100%;
    padding-top: 52.5%; /* 1.91:1 aspect ratio */
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.note-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* モバイルデバイスでの画像表示最適化 */
@media (max-width: 768px) {
    .note-card-image-container {
        padding-top: 50%; /* モバイルでは少し縦横比を調整 */
        max-height: 200px;
    }
    
    .note-card-image {
        object-fit: cover;
        object-position: center top;
    }
    
    .note-card {
        max-width: 100%;
        margin: 0 auto;
    }
}

.note-card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.note-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/* === Contact Form Styles === */
.contact-form-section {
    padding: 5rem 0;
    background-color: var(--color-background);
    min-height: 80vh;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.required {
    color: #dc2626;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-family-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.1);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.privacy-consent input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.privacy-consent label {
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
}

.privacy-consent a {
    color: var(--color-primary);
    text-decoration: underline;
}

.privacy-consent a:hover {
    color: var(--color-primary-dark);
}

.form-actions {
    text-align: center;
    margin-top: 2.5rem;
}

.form-actions .btn-primary {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-result-message {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

.form-result-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 2px solid #22c55e;
}

.form-result-message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 2px solid #ef4444;
}

/* 送信成功時の詳細UI */
.success-details {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    color: white;
    text-align: left;
    overflow: hidden;
}

.success-header {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
}

.success-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.success-content {
    padding: 2rem;
    background: white;
    color: var(--color-text-primary);
}

.success-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #10b981;
}

.success-info h3 {
    margin: 0 0 1rem 0;
    color: #10b981;
    font-size: 1.2rem;
}

.success-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.success-info li {
    margin: 0.5rem 0;
    color: var(--color-text-secondary);
}

.success-cta {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0 0 0;
}

.success-cta h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.success-cta p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.cta-button-success {
    display: inline-block;
    background: white;
    color: #1d4ed8;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-method {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.contact-method strong {
    display: block;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

/* Contact form mobile responsiveness */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 3rem 0;
    }

    .contact-form {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }

    .privacy-consent {
        flex-direction: column;
        gap: 0.5rem;
    }

    .privacy-consent input[type="checkbox"] {
        margin-top: 0;
    }
}
