/* ===================================
   MetaGreen Seeds - Stylesheet
   =================================== */

/* リセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS変数定義 */
:root {
    --primary-green: #10B981;
    --dark-green: #059669;
    --light-green: #6EE7B7;
    --accent-yellow: #FCD34D;
    --accent-orange: #FB923C;
    --accent-blue: #60A5FA;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-gradient: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-strong: 0 20px 40px rgba(0,0,0,0.15);
}

/* ベース設定 */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-light);
}

/* ===================================
   ヘッダー
   =================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* ===================================
   ボタン
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}
/* ↓↓↓ ここから追加 ↓↓↓ */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    /* プライマリーボタンと高さを合わせるための微調整 */
    padding: 10px 28px; 
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   ファーストビュー
   =================================== */
.hero {
    /* heroセクションはコンテナとして機能し、背景色はbodyから継承 */
    padding-top: 70px; /* 固定ヘッダー分のスペースを確保 */
}

.hero-visual {
    line-height: 0; /* 画像下の余分な隙間を削除 */
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block; /* imgをブロック要素に */
}

.hero-message {
    background: var(--bg-gradient);
    text-align: center;
    padding: 5rem 2rem;
    border-bottom: none;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: bounceIn 0.8s ease;
}

.hero-message h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 800;
}

.hero-message .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ヒーロー特徴アイテム */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    min-width: 120px;
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
}

.feature-text {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1rem;
}

/* CTAグループ */
.hero-cta-group {
    margin-top: 3rem;
}

.btn-hero {
    font-size: 1.3rem;
    padding: 18px 45px;
    box-shadow: var(--shadow-strong);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    font-size: 1.5rem;
}

.cta-subtext {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   セクション共通
   =================================== */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--dark-green);
    position: relative;
}

.section-title::after {
    content: '🌱';
    display: block;
    font-size: 2rem;
    margin-top: 10px;
}

/* ===================================
   悩みセクション
   =================================== */
.concerns {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.concern-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.concern-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
    transition: transform 0.3s ease;
}

.concern-item:hover {
    transform: translateX(10px);
}

/* ===================================
   解決策セクション
   =================================== */
.solutions {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.solution-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::before {
    opacity: 0.1;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.solution-summary {
    margin-bottom: 1rem;
}

.solution-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed rgba(0,0,0,0.1);
    text-align: left;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.4s ease;
}

.solution-details.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.solution-benefits {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.solution-benefits li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-weight: 500;
}

.expand-btn {
    margin-top: 1rem;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: var(--dark-green);
    transform: scale(1.05);
}

.expand-btn.expanded {
    background: var(--text-light);
}

/* ===================================
   ポイントシステム
   =================================== */
.point-system {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.point-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--light-green);
    transform: scale(1.05);
}

.activity-icon {
    font-size: 2rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.point-value {
    margin-left: auto;
    background: var(--primary-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}
.quiz-challenge-container {
    margin-top: 3rem;
    text-align: center;
    background: #e8f5e9; /* 薄い緑色 */
    padding: 2rem;
    border-radius: 15px;
}

.quiz-challenge-container p {
    font-weight: bold;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quiz-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.quiz-question {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quiz-option {
    padding: 10px 20px;
    border: 2px solid var(--primary-green);
    background: var(--white);
    color: var(--primary-green);
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    background: var(--primary-green);
    color: var(--white);
}

.quiz-feedback {
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 5px;
    min-height: 30px; /* フィードバック表示前のガタツキ防止 */
}

.quiz-feedback.correct {
    color: #2e7d32;
    background-color: #c8e6c9;
}

.quiz-feedback.incorrect {
    color: #c62828;
    background-color: #ffcdd2;
}
/* ===================================
   ゴール（NFT獲得）
   =================================== */
.first-goal-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.first-goal-image {
    flex-shrink: 0;
    position: relative;
}

.first-goal-image img {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nft-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .first-goal-container {
        flex-direction: column;
        text-align: center;
    }
    .first-goal-image img {
        width: 150px;
        height: 150px;
    }
}
.goals {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem auto;
    color: white;
}

.progress-ladder {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.progress-step {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 1rem;
    flex: 1;
    min-width: 150px;
    transition: all 0.3s ease;
}

.progress-step:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.progress-step.highlight {
    background: rgba(255,215,79,0.3);
    border: 2px solid var(--accent-yellow);
}

.discount-badge {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

/* ===================================
   参加ステップ
   =================================== */
.steps {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.step-flow {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: var(--bg-gradient);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.step-number {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.step-number-text {
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.step-number-digit {
    font-size: 1.3rem;
    font-weight: bold;
}

.step-time {
    background: rgba(0,0,0,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.step-icon-large {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-badge {
    display: inline-block;
    background: rgba(0,0,0,0.08);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.step-badge.success {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    color: var(--text-dark);
}

.step-arrow {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    font-weight: bold;
}

.steps-result {
    margin-top: 4rem;
    text-align: center;
}

.result-box {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}

.result-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.result-achievement {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.achievement-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.achievement-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-yellow);
}

.result-subtext {
    font-size: 1rem;
    opacity: 0.95;
}

/* ===================================
   FAQ
   =================================== */
.faq {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: bold;
    color: var(--dark-green);
    cursor: pointer;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--light-green);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

.faq-answer a {
    color: var(--primary-green);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ===================================
   CTA（最終誘導）
   =================================== */
.final-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 20px;
    margin: 2rem auto;
    color: white;
}

.final-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

.cta-button-large {
    display: inline-block;
    padding: 20px 50px;
    background: white;
    color: var(--dark-green);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-button-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ===================================
   フッター
   =================================== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo .logo-image {
    filter: brightness(0) invert(1);
}

.social-links {
    margin: 2rem 0;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--accent-yellow);
}

.footer-links {
    margin: 2rem 0;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #888;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* ===================================
   パーティクルエフェクト
   =================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--accent-yellow);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===================================
   ローディング画面
   =================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.seed-animation {
    width: 60px;
    height: 60px;
    position: relative;
    animation: seedGrow 2s ease infinite;
}

@keyframes seedGrow {
    0% { transform: scale(0.8) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(0.8) rotate(360deg); }
}

.seed-animation::before {
    content: '🌱';
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===================================
   スクロールアニメーション
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   追加アニメーション
   =================================== */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .logo-image {
        height: 35px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    section {
        padding: 60px 20px;
    }

    /* ヒーローセクション */
    .hero {
        margin-top: 80px;
    }

    .hero-message {
        padding: 3rem 1.5rem;
    }

    .hero-badge {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .hero-features {
        gap: 1rem;
    }

    .hero-feature-item {
        min-width: 100px;
        padding: 1rem;
    }

    .btn-hero {
        font-size: 1.1rem;
        padding: 15px 30px;
        width: 100%;
    }

    /* ステップカード */
    .step-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .step-card {
        max-width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        font-size: 2rem;
        margin: 0.5rem 0;
    }

    .result-box {
        padding: 2rem 1.5rem;
    }

    .achievement-value {
        font-size: 2.5rem;
    }

    .progress-ladder {
        flex-direction: column;
    }

    .concern-list,
    .solution-cards,
    .point-activities {
        grid-template-columns: 1fr;
    }

    .concerns,
    .solutions,
    .point-system,
    .goals,
    .steps,
    .faq {
        padding: 2.5rem 1.5rem;
    }

    .solution-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}




