@charset "utf-8";

:root{
    --shadow:0 0 10px rgba(36, 36, 36, 0.342);
    --button-color:#ff5733;
    --button-hover:#ff9b85;
    --block-margin:5em 0;
    --block-margin-sp:1em 0;
}

body {
    margin: 0;
}

/*ヘッダー*/
.lp-header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #333;
    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: #ff9b85;
    }

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

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

/*4つの画像*/
/* 各方向からのフェードインアニメーションを定義 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.image-grid {
    display: flex;
    flex-wrap: wrap;
    height: 650px;
    position: relative; /* 子要素を絶対位置にするために必要 */
    box-shadow: var(--shadow);
    gap: 2px;
    justify-content: center;
    margin: 16px 0px;
    .image-item {
        width: 49.8%;
        height: 50%;
        box-sizing: border-box;
        position: relative; /* 画像を絶対位置にするために必要 */
        opacity: 0; /* 初期状態で非表示 */
        animation-duration: 1s; /* アニメーションの時間 */
        animation-fill-mode: forwards; /* アニメーション後の状態を維持 */
        transition: opacity 1s ease-out, transform 1s ease-out; /* トランジションの設定 */
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    
    /* 1番目の画像: 左からフェードイン */
    .image-item:nth-child(1) {
        animation-name: fadeInLeft;
        animation-delay: 0.2s; /* 少し遅れて開始 */
    }

    /* 2番目の画像: 上からフェードイン */
    .image-item:nth-child(2) {
        animation-name: fadeInDown;
        animation-delay: 0.4s; /* さらに遅れて開始 */
    }

    /* 3番目の画像: 下からフェードイン */
    .image-item:nth-child(3) {
        animation-name: fadeInUp;
        animation-delay: 0.6s; /* さらに遅れて開始 */
    }

    /* 4番目の画像: 右からフェードイン */
    .image-item:nth-child(4) {
        animation-name: fadeInRight;
        animation-delay: 0.8s; /* 最後に遅れて開始 */
    }

    /* articleと同様に、表示状態になったときのスタイル */
    .image-item.visible {
        opacity: 1;
        transform: translateX(0);
        transform: translateY(0);
    }
    .image-item:hover {
        width: 100%;
        height: 100%;
        position: absolute;
        object-fit: cover; /* 画像をdiv内に収める */
        z-index: 10; /* 画像を前面に表示 */
    }
}

/*トップ画像*/
.main-background { 
    background-image: url('.././image/29801300_m.jpg');
    background-size: cover; /* 背景画像が全体をカバーするように設定 */
    background-position: center; /* 画像を中央に配置 */
    height: 640px; /* 高さを800pxに設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 24px;
    color: white; /* テキストを白色に設定 */
    margin: var(--block-margin);
    border-radius: 10px;
    .main-text {
        font-size: 24px;
        font-weight: bold;
        background-color: rgba(0, 0, 0, 0.5); /* テキスト背景に半透明の黒を追加 */
        padding: 20px;
        border-radius: 10px;
    }
}

/*商品一覧*/
.product-section {
    padding: 8px 0;
    margin: var(--block-margin);
    background-color: #f5f5f5; /* 背景色を設定 */
    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: 10px; /* 商品間にマージンを追加 */
            padding-right: 50px;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s ease-out, transform 1s ease-out;
            a {
                text-decoration: none; /* リンクの下線を削除 */
                color: inherit; /* リンクの色を継承 */
            }
            img {
                width: 100%;
                height: auto;
                border-radius: 8px; /* 角を少し丸める */
                padding: 8px 24px;
                border: 1px solid black;
                background-color: #fdffe273;
                box-shadow: var(--shadow);
                transition: background-color 0.3s ease;
            }
            p {
                margin: 8px 0px 0px 16px;
                font-size: larger;
                color: #333;
                transition: color 0.3s ease;
            }
            a:hover img {
                background-color: #e2fdff73; /* 画像の背景色を薄青に */
            }
            a:hover p {
                color: blue; /* テキストの色を青に */
            }
        }
        .product-item.visible {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/*ボタン*/
.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: 10px;
        box-shadow: var(--shadow);
        height: 300px;
        justify-content: center;
        /* articleのスタイル */
        article {
            display: flex;
            align-items: center;
            gap: 40px; /* 画像とテキストの間の間隔 */
            opacity: 0; /* 初期状態で非表示 */
            transform: translateY(20px); /* 初期状態で下にオフセット */
            transition: opacity 1s ease-out, transform 1s ease-out; /* トランジションの設定 */
        }

        /* articleが表示状態になったときのスタイル */
        article.fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* box_imageのスタイル */
        .box_image {
            img {
                max-width: 400px;
                width: 100%;
                border-radius: 10px;
                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: 10px;
        }
    }
}


/* ポップアップのスタイル */
.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: 700px;
    }
    
    .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;
    }
}

/*性能表*/
.performance{
    margin: var(--block-margin);
    margin-bottom: 16px;
    table {
        width: 100%;
        border-collapse: collapse; /* セルの境界線を折りたたんで連続するようにする */
    }
    
    th, td {
        border: 1px solid black; /* 境界線を黒に設定 */
        padding: 8px; /* セル内に余白を追加 */
        text-align: center; /* テキストを中央揃え */
    }
    
    th {
        background-color: #f2f2f2; /* ヘッダーセルの背景色を設定 */
    }
    
    .first-column {
        background-color: #e0e0e0; /* 1列目の背景色を設定 */
        font-weight: bold; /* 1列目を太字にする */
    }
    
}

/*トップへ戻るボタン*/
.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: #333;
    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;
    }
    
}