/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ナビゲーション */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffd700;
}

/* メインコンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a5a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.cta-button.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* アプリプレビュー */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #333;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    color: #333;
}

.app-content h3 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.word-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.word {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.pronunciation {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.meaning {
    font-size: 1.2rem;
    color: #495057;
}

.progress-bar {
    background: #e9ecef;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress {
    background: linear-gradient(45deg, #667eea, #764ba2);
    height: 100%;
    transition: width 0.3s ease;
}

.streak {
    text-align: center;
    color: #28a745;
    font-weight: bold;
}

/* 特徴セクション */
.features {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* デモセクション */
.demo-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.demo-app {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.demo-tabs {
    display: flex;
    background: #667eea;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
    background: rgba(255,255,255,0.2);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* 単語学習デモ */
.vocabulary-demo {
    text-align: center;
}

.word-display {
    margin-bottom: 2rem;
}

.current-word {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
}

.word-english {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.pronunciation-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
}

.word-phonetic {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.word-japanese {
    font-size: 1.5rem;
}

.word-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-btn.know {
    background: #28a745;
    color: white;
}

.action-btn.learn {
    background: #ffc107;
    color: #333;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.demo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 学習記録デモ */
.progress-demo {
    text-align: center;
}

.progress-chart {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.achievements h4 {
    margin-bottom: 1rem;
    color: #333;
}

.badge-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.badge.earned {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.no-badges {
    padding: 2rem 1rem;
    text-align: center;
    color: #999;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e9ecef;
}


/* データ保存の注意書き */
.data-notice {
    background: linear-gradient(135deg, #fff3cd, #fef9e7);
    border: 1px solid #ffeaa7;
    border-radius: 15px;
    margin: 2rem 0;
    padding: 0;
    box-shadow: 0 4px 15px rgba(255, 234, 167, 0.3);
}

.notice-content {
    padding: 1.5rem;
}

.notice-content h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-content p {
    color: #856404;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.notice-content ul {
    margin: 1rem 0 1rem 1.5rem;
    color: #856404;
}

.notice-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notice-highlight {
    background: rgba(133, 100, 4, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid #ffeaa7;
    font-weight: 500;
    margin: 1rem 0 0 0 !important;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-features {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* AdSense広告セクション */
.ad-section {
    padding: 2rem 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.ad-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 0;
}

.ad-content {
    background: white;
    padding: 2.5rem 0;
    margin: 3rem 0;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ad-bottom {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    padding: 2rem 0;
}

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    position: relative;
}

/* 広告サイズの最適化 */
.header-ad {
    max-width: 728px;
    width: 100%;
    min-height: 90px;
}

.content-ad {
    max-width: 970px;
    width: 100%;
    min-height: 250px;
}

.bottom-ad {
    max-width: 728px;
    width: 100%;
    min-height: 90px;
}

/* 広告の背景スタイル */
.adsbygoogle {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.adsbygoogle:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* フッター */
footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* データコントロール */
.data-controls {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.reset-btn {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.reset-note {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* 追加ページ用スタイル */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.main-article {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cta-widget, .related-links, .progress-tracker {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-widget {
    text-align: center;
}

.cta-widget h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.cta-widget p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cta-widget .cta-button {
    display: inline-block;
    margin-top: 1rem;
    white-space: nowrap;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-width: 180px;
}

.nav-title a {
    color: white;
    text-decoration: none;
}

.nav-menu .active {
    color: #ffd700;
    font-weight: bold;
}

.reason-box, .solution-box, .highlight-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.reason-list {
    list-style: none;
    padding-left: 0;
}

.reason-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.benefit-card, .step-card, .reason-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: transform 0.3s ease;
}

.benefit-card:hover, .step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.step-number, .reason-number {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.method-steps, .app-benefits {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tips-grid, .resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card, .resource-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.checklist {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
}

.checklist-item input {
    margin-right: 1rem;
    transform: scale(1.2);
}

.privacy-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.policy-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.important-notice {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.summary-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.summary-points {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
}

.summary-point.positive {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.summary-point.neutral {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* レスポンシブ広告対応 */
@media (max-width: 768px) {
    .ad-container {
        min-height: 200px;
    }
    
    .header-ad,
    .bottom-ad {
        max-width: 320px;
        min-height: 50px;
    }
    
    .content-ad {
        max-width: 320px;
        min-height: 100px;
    }
    
    .ad-section {
        padding: 1.5rem 0;
    }
    
    .ad-content {
        margin: 2rem 0;
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .ad-container {
        min-height: 150px;
    }
    
    .header-ad,
    .bottom-ad,
    .content-ad {
        max-width: 300px;
        min-height: 50px;
    }
    
    .ad-section {
        padding: 1rem 0;
    }
}

/* 追加ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
    }
    
    .cta-widget {
        padding: 1.2rem;
    }
    
    .cta-widget h3 {
        font-size: 1.2rem;
    }
    
    .cta-widget p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-widget .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-width: 200px;
        margin-top: 0.8rem;
    }
    
    .tips-grid, .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .method-steps {
        gap: 1.5rem;
    }
    
    .step-card, .reason-card {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-article {
        padding: 1.5rem;
    }
    
    .cta-widget .cta-button {
        padding: 1rem 1.5rem;
        min-width: 180px;
        font-size: 0.95rem;
    }
    
    .step-number, .reason-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-tabs {
        display: flex;
    }
    
    .tab-button {
        flex: 1;
    }
    
    .demo-stats {
        grid-template-columns: 1fr;
    }
    
    .word-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .badge-list {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}