/* ====== General Styles ====== */
h1,
h2,
h3,
p,
ul,
li,
a {
    /* margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    color: inherit; */
    letter-spacing: 0.15em;
}

/* ベーシックリセット - 余分なマージンやパディングをリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* html, body の設定 */
html,
body {
    width: 100%;
    height: auto;
    /* 高さをコンテンツに合わせる */
    overflow-x: hidden;
    /* 横方向のスクロールを防ぐ */
}

/* 動画のスタイル設定 */
header video {
    grid-column: 1 / -1;
    /* グリッド全体をカバー */
    grid-row: 1 / -1;
    /* グリッド全体をカバー */
    object-fit: cover;
    /* 動画が画面全体を覆うように表示 */
    z-index: -2;
    /* 背景レイヤーに配置 */
}

/* オーバーレイのスタイル設定 */
.overlay {
    position: absolute;
    /* 画面全体にオーバーレイを配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../static/img/pages/top/dot.webp');
    /* ローカル画像ファイルを指定 */
    background-repeat: repeat;
    /* 繰り返し表示 */
    background-size: 2px 2px;
    /* ドットのサイズを小さく調整 */
    background-color: rgba(0, 0, 0, 0.3);
    /* 半透明の黒背景を追加 */
    z-index: 0;
    /* 動画の上に表示する */
}

/* デフォルトの動画スタイル */
.first-video {
    position: relative;
    width: 100%;
    height: 100vh;
    /* 動画を画面全体に表示 */
    overflow: hidden;
}

.responsive-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 動画を要素全体にフィット */
}


.sm {
    display: none;
}

/* ====== Intro / First View ====== */
.main-banner {
    position: relative;
    width: 100%;
    z-index: 2;
}

.catch-copy-text {
    position: absolute;
    bottom: 60px;
    left: 80px;
    z-index: 500;
    color: #fff;
}

.catch-copy-text .main-copy {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
    margin: 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.catch-copy-text .sub-copy {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 16px;
    line-height: 1.9;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans JP', sans-serif;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.intro-ball-image {
    position: absolute;
    right: 5%;
    bottom: 0;
    transform: translateY(30%);
    width: 22%;
    z-index: 500;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

/* ====== Section Styles ====== */

.section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #fff;
    margin: 2rem 0;
}

.header-bottom-left-image {
    position: absolute;
    bottom: 60px;
    left: 80px;
    width: 420px;
    z-index: 500;
}

/* ====== About Section ====== */
.additional-image {
    display: none;
}

.about-section {
    display: flex;
    padding-top: 80px;
    padding-bottom: 80px;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    position: relative;
}

.about-image-left {
    position: relative;
}

.about-image-left img:nth-of-type(2) {
    position: static;
    top: auto;
    left: auto;
    width: 85%;
    transform: none;
    z-index: auto;
}

.about-image-left img:nth-of-type(3) {
    margin-top: 0;
    margin-left: 0;
}

.about-image-left,
.about-image-right {
    width: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.about-image-left img {
    width: 85%;
    margin-left: 0;
    border-radius: 6px;
    object-fit: cover;
}

.about-image-right img {
    width: 88%;
    border-radius: 6px;
}

.about-content {
    width: 44%;
    text-align: center;
    padding: 0 30px;
}

.about-content p {
    margin-top: 20px;
}

.about-content a.button {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    color: #fff;
    background-color: #4cc313;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.about-content a.button:hover {
    background-color: #3b9e11;
}

/* 本文の調整 */
.about-content p:first-of-type {
    white-space: pre-line;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #323232;
    font-weight: 700;
}

.about-content p:nth-of-type(2) {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: #323232;
    letter-spacing: 0.125em;
}


/* ボタンサイズ調整 */
.about-content .button {
    font-size: 1.2rem;
    padding: 0.75rem 2.5rem;
    margin-top: 1.5rem;
}


/* ====== Effect Section ====== */

.custom-effect-title #dynamic-title {
    color: #fff;
}

.custom-effect-title .section-subtitle { color: #4cc313; }

.effect-section p {
    color: #ffffff;
    /* 文字色を白に設定 */
    text-align: center;
    /* テキストを中央揃えに設定 */
    font-size: 1rem;
    /* フォントサイズを調整（必要に応じて変更） */
    font-weight: 400;
    line-height: 1.6;
    /* 行の高さを調整（必要に応じて変更） */
    justify-content: center;
    letter-spacing: 0.125em;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}

.effect-circles p {
    color: #4BC314;
    /* 文字色を指定 */
    font-size: 1rem;
    /* 必要に応じてフォントサイズを設定 */
    font-weight: bold;
    /* 文字を太く（必要に応じて変更） */
    text-align: center;
    /* テキストを中央揃えに */
    line-height: 1.5;
    /* 行の高さを設定 */
}

.effect-section {
    position: relative;
    background-image: url('../../static/img/pages/top/gb114_top_effective_01_2x.webp');
    background-size: cover;
    background-position: center;
    min-height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 2rem;
}

.effect-background {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.effect-circles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.effect-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4cc313;
    font-size: 1.2rem;
    font-weight: bold;
}

.effect-circle p {
    text-align: center;
}

.effect-section .button {
    display: inline-block;
    background-color: #4cc313;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.effect-section .button:hover {
    background-color: #3b9e11;
}

/* How to Use Section */
.how-to-use-section {
    padding: 100px 50px;
    text-align: center;
    background-color: #EDF9E7;
}

/* シーンセクション全体のスタイル */
.scene-section {
    padding: 6rem 0;
    text-align: center;
    background-color: #fff;
    /* 背景色を白に設定 */
}

.scene-content h2 {
    color: #4cc313;
    font-size: 1.5rem;
}

.scene-description {
    margin-bottom: 2rem;
    /* 説明文の下に余白を追加 */
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: #333;
    justify-content: center;
}

.scene-grid {
    display: flex;
    flex-direction: column;
    /* 上段と下段を縦方向に並べる */
    align-items: center;
    /* グリッド全体を中央に揃える */
    gap: 2rem;
    /* 行間の間隔を設定 */
    max-width: 1200px;
    /* グリッドの最大幅を設定 */
    margin: 0 auto;
    /* グリッド全体を中央に配置 */
}

/* 各行を分ける設定 */
.scene-row {
    display: flex;
    justify-content: center;
    /* 各行を中央に配置 */
    gap: 2rem;
    /* カード間の間隔を設定 */
    width: 100%;
    /* 行全体の幅を100%に設定 */
}

/* 各カードの設定 */
.scene-card {
    width: 300px;
    /* 各カードの幅を300pxに設定 */
    position: relative;
    overflow: hidden;
    /* コンテンツがカードからはみ出ないようにする */
    transition: transform 0.3s;
    /* ホバー時のアニメーションを設定 */
}

.scene-card img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
    /* ホバー時の画像のアニメーション */
}

.scene-card:hover img {
    transform: scale(1.05);
    /* 画像を少し拡大 */
}

.catch-copy-sp {
    position: relative;
    width: 70%;
}

@media screen and (max-width: 768px) {

    /* グローバル調整 */
    body {
        padding: 0;
        margin: 0;
    }

    .pc {
        display: none;
    }

    .sm {
        display: flex;
    }




    .footer-container {
        flex-direction: column;
        /* コンテナ内の要素を縦並びに */
        align-items: center;
        /* 要素を中央に配置 */
    }

    .footer-logo {
        margin-bottom: 1rem;
        /* 画像の下に余白を追加 */
    }

    .footer-links {
        display: none;
    }

    .footer-links li {
        margin: 0.5rem 0;
        /* 各リンク間に余白を設定 */
    }

    .footer-links ul {
        display: none;
    }

    /* ヘッダーセクション */
    .header-bottom-left-image {
        width: 150px;
        bottom: 30px;
        left: 10px;
    }

    .additional-image {
        top: -3%;
        right: -7%;
        z-index: 10;
        width: 50%;
    }

    .first-video {
        height: auto;
        /* 高さを自動調整 */
    }

    .responsive-video {
        height: auto;
        /* 動画の高さを自動調整 */
        object-fit: contain;
        /* 動画の縦横比を維持して全体表示 */
    }

    /* About Section 調整 */
    .about-section {
        flex-direction: column;
        /* レイアウトを縦並びに変更 */
        /* padding: 2rem 1rem; */
    }

    .about-image-left,
    .about-image-right {
        width: 100%;
        /* 幅を100%に調整 */
    }

    .about-content {
        width: 100%;
        margin-top: 2rem;
        /* 上部の余白を追加 */
    }

    /* エフェクトセクション */
    .effect-section {
        height: auto;
        padding: 2rem 1rem;
    }

    .effect-circle {
        width: 100px;
        height: 100px;
    }

    /* How to Use Section 調整 */
    .how-to-use-section {
        padding: 2rem 1rem;
    }

    /* .steps {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }

    .step {
        scroll-snap-align: center;
        min-width: 50%;
        flex-shrink: 0;
    }

    .step img {
        height: auto;
    } */

    

    /* シーンセクション */
    .scene-row {
        flex-direction: column;
        /* 行を縦並びに変更 */
        align-items: center;
    }

    .scene-card {
        width: 100%;
        /* 各カードを100%の幅に */
    }

    .scene-grid {
        gap: 0rem;
    }

    .scene-row {
        gap: 0rem;
    }

    .scene-description {
        font-size: 1rem;
    }

    .about-content p:first-of-type {
        font-size: 1.5rem;
        letter-spacing: 0.1rem;
        line-height: 2.5rem;
    }

    .about-content p:nth-of-type(2) {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.25rem;
        letter-spacing: 0.1rem;
    }

    .image-container-sp {
        text-align: left;
        height: 300px;
    }

    .catch-copy-sp {
        display: inline-block;
        margin-right: 10px;
        /* 画像の間に少しスペースを入れたい場合 */
        width: 60%;
        top: -25%;
        left: 5%;
    }

    .catch-copy-sp2 {
        width: 45%;
        margin-left: auto;
        position: relative;
        top: -4rem;
    }

    .catch-copy-sp3 {
        width: 45%;
        margin-right: auto;
        position: relative;
        /* top: -4rem; */
    }

    .goya-ball-sp {
        width: 50%;
        position: relative;
        top: -60%;
        left: -5%;
    }

    .center-vertical-line {
        position: absolute;
        top: 400;
        /* 画面の上端からスタート */
        left: 50%;
        /* 画面の横方向の中央に配置 */
        width: 5px;
        /* 線の幅を5pxに設定 */
        height: 100vh;
        /* 画面全体の高さを設定 */
        background-color: black;
        /* 線の色を黒に設定（必要に応じて変更） */
        transform: translateX(-50%);
        /* 完全に中央に配置するための補正 */
    }

    .image-container-sp2 {
        display: flex;
        justify-content: space-between;
        /* 右側の画像を右端に配置 */
        align-items: center;
        /* 垂直方向に中央揃え */
        gap: 10px;
        /* 画像間のスペース */
        width: 100%;
        /* コンテナの幅を100%に */
    }

    .about3-sp {
        width: 45%;
        /* 左側の画像の幅を指定 */
        margin-left: 20px;
        /* 左端からの余白を追加 */
    }

    .about2-sp {
        width: 45%;
        /* 右側の画像の幅を指定 */
        margin-right: 0;
        /* 右側の余白を削除 */
        padding-right: 0;
        /* パディングも削除 */
    }


    .scene-section {
        padding: 0px;
        padding-bottom: 20px;
    }

    .story-description {
        font-size: 0.8rem;
    }
}

/* スマホ用 (横2個、縦2段の設定) */
@media screen and (max-width: 768px) {
    .effect-circles {
        flex-direction: row;
        /* 横並びに設定 */
        flex-wrap: wrap;
        /* 複数行になるように設定 */
        justify-content: center;
        /* 中央揃え */
    }

    /* .effect-circles {
        flex-direction: column;
        gap: 1rem;
    } */

    .effect-circle {
        width: 35vw;
        /* 各円の幅を画面幅の45%に設定 */
        height: 35vw;
        /* 各円の高さを画面幅の45%に設定 */
        margin: 5px;
        /* 各円の間に少し余白を追加 */
    }
}



/* Mobile Styles (Carousel) */
@media screen and (max-width: 768px) {
    .carousel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    
    .steps-carousel {
        display: flex;
        transition: transform 0.3s ease;
        width: 500%; /* 5つの画像を横に並べる分の幅 */
    }
    
    .step {
        min-width: 20%; /* 各画像が画面の20%を占めるように設定 */
        box-sizing: border-box;
        padding: 0 10px;
    }
    
    .step img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
    }
    
    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px; /* インジケーターを画像の下に表示するための余白 */
        position: relative;
        bottom: 0; /* 画像のすぐ下に表示 */
    }
    
    .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
        background-color: #ccc;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    .carousel-indicators .active {
        background-color: #333; /* アクティブなスライドのインジケーターを強調 */
    }
    
}

/* Desktop Styles (Side-by-Side) */
@media screen and (min-width: 769px) {
    .carousel-container {
        display: flex;
        justify-content: center;
    }

    .steps-carousel {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        padding: 3rem 0;
    }

    .step {
        width: 180px;
    }

    .step img {
        width: 100%;
        height: auto;
    }
}
