@charset "utf-8";

:root{
    --block-margin:5em 0;
    --shadow:0 0 10px rgba(36, 36, 36, 0.342);
    --button-color:#32cd32;
    --button-hover:#3dff3d;
    --block-margin:5em 0;
    --block-margin-sp:1em 0;
    --radius:10px
}

html {
    scroll-behavior: smooth; /* スムーズスクロールを適用 */
}

body {
    margin: 0;
}

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

/*ヘッダー*/
.lp-header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #1f2f54;
    color: #fff;
    flex-wrap: wrap;
    nav.nav-menu a {
        margin: 0 15px;
        color: #fff;
        text-decoration: none;
        font-size: x-large;
        padding: 4px 8px;
        position: relative;
    }
    nav.nav-menu a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px; /* 下線の太さ */
        background-color: var(--button-color); /* 下線の色 */
        transition: width 0.3s ease; /* 下線が伸びるアニメーション */
    }
    nav.nav-menu a:hover::after {
        width: 100%; /* マウスオーバー時に下線がリンク全体に広がる */
    }

    .cta-button {
        background-color: var(--button-color);
        padding: 8px 16px;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        font-size: x-large;
    }

    .cta-button:hover{
        background-color: var(--button-hover);
    }

    .headline {
        text-align: center;
        padding: 100px 20px;
        background-color: #222;
        color: #fff;
    }
}
/* ハンバーガーメニューのスタイル */
.phone-nav-menu {
    display: none; /* デフォルトでは非表示 */
    cursor: pointer;
}

/*全体の幅*/
main {
    margin: 0 12%;
}

/*フェードインアニメーション*/
.fade-in {
    opacity: 0; /* 初期状態で非表示 */
    transform: translateY(20px); /* 初期状態で下にオフセット */
    transition: opacity 1s ease-out, transform 1s ease-out; /* トランジションの設定 */
}

.fade-in.active {
    opacity: 1; /* 表示される */
    transform: translateY(0);
}

.hero-section{
    background-size: cover; /* 背景画像が全体をカバーするように設定 */
    background-position: center; /* 画像を中央に配置 */
    height: 640px; /* 高さを800pxに設定 */
    width: 100vw; /*背景画像を画面いっぱいに設定*/
    margin: 10px calc(50% - 50vw);
    transition: background-image 1s ease-in-out; /* 画像のフェードイン/アウトのアニメーション */
    .hero-content {
        display: flex;
        align-items: center;
        position: relative;
        text-align: center;
        flex-direction: column;
        padding: 24px;
        color: white;
        border-radius: var(--radius);
        gap: 40px;
        top: 32px;
        .hero-caption {
            font-size: 24px;
            font-weight: bold;
            background-color: #01176f78; /* テキスト背景に半透明の黒を追加 */
            padding: 0px 16px;
            border-radius: var(--radius);
        }
        .hero-imag {
            width: 280px;
            height: auto;
            transition: opacity 1s ease-out, transform 3s ease-out; /* トランジションの設定 */
            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

.hero-section-2{
    margin: var(--block-margin);
    .hero-caption {
        background-color: rgba(0, 0, 0, 0.5); /* テキスト背景に半透明の黒を追加 */
        padding: 0px 8px;
        border-radius: var(--radius);
        img {
            width: 100%;
            height: auto;
            border-radius: var(--radius);
        }
    }
}

/*商品一覧*/
.product-section {
    padding: 8px 0;
    margin: var(--block-margin);
    background-color: #5689ff36; /* 背景色を設定 */
    h1 {
        text-align: center;
    }
    .product-list {
        display: flex;
        flex-wrap: wrap; /* 商品を画面幅に応じて折り返す */
        justify-content: space-around; /* 均等に並べる */
        align-items: center;
        list-style-type: none; /* リストマーカーを非表示 */
        padding: 0;
        margin: 0;
        .product-item {
            text-align: center; /* テキストを中央揃え */
            max-width: 240px; /* 各商品の幅を制限 */
            margin: 8px 40px; /* 商品間にマージンを追加 */
            padding-right: 50px;
            a {
                text-decoration: none; /* リンクの下線を削除 */
                color: inherit; /* リンクの色を継承 */
            }
            img {
                width: 100%;
                height: auto;
                border-radius: 8px; /* 角を少し丸める */
                padding: 8px 24px;
                border: 1px solid black;
                background-color: #e2ffef73;
                box-shadow: var(--shadow);
                transition: background-color 0.3s ease;
            }
            p {
                margin: 8px 0px 0px 32px;
                font-size: larger;
                color: #333;
                transition: color 0.3s ease;
            }
            a:hover img {
                background-color: #e2fdff73; /* 画像の背景色を薄青に */
            }
            a:hover p {
                color: blue; /* テキストの色を青に */
            }
        }
    }
}

/*ボタン*/
.link_button {
    display: flex;
    justify-content: center;
    margin: 24px;
    .button {
        background-color: var(--button-color); /* ボタンの背景色 */
        color: #fff; /* 文字色 */
        padding: 10px 50px; /* 内側の余白 */
        border-radius: 5px; /* 角の丸み */
        text-decoration: none; /* 下線を削除 */
        display: inline-flex;
        align-items: center;
        gap: 8px; /* アイコンとの間隔 */
        transition: background-color 0.3s ease; /* ホバー時のアニメーション */
        cursor: pointer;
        font-size: x-large;
        box-shadow: var(--shadow);
    }
    
    .button:hover {
        background-color: var(--button-hover); /* ホバー時の背景色 */
    }

    /* アイコンのスタイル */
    .material-symbols-outlined {
    font-size: 18px; /* アイコンのサイズ */
    }
}

/* 特徴 */
.Details {
    margin: var(--block-margin);
    .explanation_dox {
        display: flex;
        margin: 16px 0px;
        background-color: #fff;
        padding: 20px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        height: 300px;
        justify-content: center;
        /* articleのスタイル */
        article {
            display: flex;
            align-items: center;
            gap: 40px; /* 画像とテキストの間の間隔 */
        }

        /* box_imageのスタイル */
        .box_image {
            img {
                max-width: 400px;
                width: 100%;
                border-radius: var(--radius);
                cursor: pointer;
                box-shadow: var(--shadow);
            }
            img:hover{
                opacity: .70;
            }
        }

        /* explanation_textのスタイル */
        .explanation_text {
            max-width: 575px;
            h2 {
                margin: 0;
                font-size: 24px;
            }
    
            p {
                margin: 10px 0 0;
                line-height: 1.6;
            }
        }
    }
}

/*動画*/
.movie {
    display: flex;
    margin: var(--block-margin);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    h1 {
        text-align: center;
    }
    .video-container {
        width: 560px;
        height: 315px;
        position: relative;
        overflow: hidden;
        max-width: 100%;
        background: #000;
        iframe {
            width: 100%;
            height: 100%;
            border: 0;
            position: absolute;
            top: 0;
            left: 0;
            border-radius: var(--radius);
        }
    }
}


/* ポップアップのスタイル */
.popup {
    display: none; /* 初期状態で非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 1; /* 前面に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* スクロール可能にする */
    background-color: rgba(0, 0, 0, 0.8); /* 背景の暗幕 */
    .popup-content {
        margin: 80px auto;
        display: block;
        width: 80%;
        max-width: 900px;
    }
    .close {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
    }
    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }
}

.faq-section {
    .faq-question {
        display: flex;
        cursor: pointer;
        padding: 8px 24px;
        background-color: #5689ff36;
        border: 1px solid #ddd;
        margin-bottom: 8px;
        height: 50px;
        align-items: center;
        justify-content: space-between;
        border-radius: var(--radius);
        span {
            border: 1px solid grey;
            padding: 4px 8px;
        }
    }
    
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        background-color: #fafafa;
        border-left: 3px solid #007bff;
        transition: max-height 0.5s ease, padding 0.5s ease;
    }
    
    .faq-question.active + .faq-answer {
        padding: 16px;
        margin: 8px;
        border-radius: var(--radius);
    }
}

/*トップへ戻るボタン*/
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff; /* ボタンの背景色 */
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top:hover {
    background-color: #0056b3; /* ホバー時の色 */
}

/*フッダー*/
.lp-footer {
    background-color: #1f2f54;
    color: #fff;
    padding: 16px;
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
        color: #bbb;
    }
}