/* ==================================== */
/* 0. リセットと基本設定 */
/* ==================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- カラーパレット定義 --- */
:root {
    --color-main: #254279;    /* 深みのあるフォレストグリーン */
    --color-accent: #f7a53b;  /* 遊び心のあるアクセントカラー（オレンジ系） */
    --color-light: #f5f5ee;   /* クリーム色系の背景 */
    --color-text: #333;
    --color-dark: #222;
    --header-height: 60px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #fff;
    scroll-padding-top: var(--header-height);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-light);
}
.bg-dark {
    background-color: var(--color-dark);
    color: #fff;
}
a {
    text-decoration: none;
    color: inherit;
}


/* ==================================== */
/* 1. ヘッダー (固定、タイトル、トグルスイッチ) */
/* ==================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-main);
    letter-spacing: 1px;
}

/* --- 言語切り替えトグルスイッチ スタイル --- */
.lang-switch-wrapper {
    display: flex;
    align-items: center;
}

.lang-toggle-label {
    position: relative;
    display: block;
    width: 100px;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    transition: background-color 0.3s;
}

.lang-jp, .lang-en {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 10px;
    transition: color 0.3s;
    line-height: 1;
}

.lang-jp {
    left: 0;
    color: var(--color-main);
}

.lang-en {
    right: 0;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 47px;
    height: 24px;
    background-color: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-checkbox:checked + .lang-toggle-label .toggle-slider {
    transform: translate(47px, 0); 
}

.lang-checkbox:checked + .lang-toggle-label .lang-jp {
    color: #666;
}

.lang-checkbox:checked + .lang-toggle-label .lang-en {
    color: var(--color-main);
}


/* ==================================== */
/* 2. メインビジュアル (Hero - 動画背景) */
/* ==================================== */
.hero {
    height: calc(90vh - var(--header-height));
    color: #fff;
    text-align: center;
    display: flex; 
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
}

/* --- 動画設定 --- */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* --- オーバーレイとコンテンツ --- */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1; 
}

.hero-content {
    z-index: 10;
}

.concept-sub {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 300;
}

.concept-main {
    font-size: 4.5rem; 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-bottom: 2px solid #fff; 
    display: inline-block;
    padding-bottom: 5px;
}


/* ==================================== */
/* 3. 共通セクションタイトル */
/* ==================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-main);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}


/* ==================================== */
/* 4. 製品特徴/詳細 (Features) */
/* ==================================== */
.feature-grid {
    display: flex;
    gap: 40px;
}

.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.5rem;
    color: var(--color-main);
    margin-bottom: 10px;
}


/* ==================================== */
/* 5. 遊び方/サイズ展開 (Usage) */
/* ==================================== */
.play-example {
    margin-bottom: 60px;
    text-align: center;
}

.play-example img {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
}


/* ==================================== */
/* 6. 開発経緯/モニター情報 (Development) */
/* ==================================== */
.video-title {
    color: #fff;
}
.video-title::after {
    background-color: var(--color-accent);
}

.cta-link-wrapper {
    text-align: center;
    margin-top: 30px;
}

.cta-link {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.video-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
}


/* ==================================== */
/* 7. 購入CTA (Call to Action) */
/* ==================================== */
.cta {
    text-align: center;
    background-color: var(--color-main);
    color: #fff;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #e89127;
    transform: translateY(-2px);
}

.price-info {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 300;
}


/* ==================================== */
/* 8. フッター (Footer) */
/* ==================================== */
.footer {
    padding: 20px 0;
    background-color: #eee;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}


/* ==================================== */
/* 9. レスポンシブ対応 (モバイル向け) */
/* ==================================== */
@media (max-width: 768px) {
    
    /* --- 基本設定 --- */
    :root {
        --header-height: 50px;
    }
    .section-padding {
        padding: 40px 0;
    }

    /* --- ヘッダー --- */
    .header {
        padding: 10px 0;
    }
    .logo a {
        font-size: 1.2rem;
    }
    .lang-toggle-label {
        width: 80px;
        height: 25px;
        border-radius: 12.5px;
    }
    .toggle-slider {
        width: 37px;
        height: 19px;
    }
    .lang-checkbox:checked + .lang-toggle-label .toggle-slider {
        transform: translate(37px, 0);
    }

    /* --- メインビジュアル --- */
    .hero {
        height: calc(60vh - var(--header-height));
        margin-top: var(--header-height);
        /* モバイルでは動画を非表示にし、ポスター画像を背景に */
        background: url('img/wakuwaku_poster_mobile.jpg') no-repeat center center/cover;
    }
    .video-background {
        display: none;
    }
    .hero::before {
         background-color: rgba(0, 0, 0, 0.3);
    }
    .concept-main {
        font-size: 3rem;
    }
    .tagline {
        font-size: 1.2rem;
    }
    
    /* --- その他セクション --- */
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .feature-grid {
        flex-direction: column;
        gap: 30px;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 1.2rem;
    }
}