body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
/* 動画セクション */
.video-intro {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ロゴを動画セクションの左上に配置 */
.video-logo {
    position: absolute;
    top: 25px; /* 上からの距離 */
    left: 25px; /* 左からの距離 */
    z-index: 100; /* 動画よりも上に表示するために高い値を設定 */
}

.video-logo img {
    height: 50px; /* ロゴの高さ */
    width: auto;
    display: block;
}

/* 動画の設定 */
.video-intro video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeIn 3s ease-in-out forwards;
    z-index: 2;
    text-align: center; /* 中央寄せ */
    word-break: break-word; /* 長い単語の途中で改行 */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* エントリーボタン */
.enter-button-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
}

.enter-button {
    background-color: #007BFF;
    color: white;
    padding: 15px 30px;
    font-size: 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

.enter-button:hover {
    transform: scale(1.1);
}
#fallback-image {
    width: 100vw; /* 幅を画面いっぱいに */
    height: 100vh; /* 高さを画面いっぱいに */
    object-fit: cover; /* アスペクト比を保ちながらフィット */
    display: none; /* 初期は非表示 */
}
/* メインページ */
.main-content {
    padding: 20px;
}

/* スマホ画面向けのスタイル調整 */
@media (max-width: 768px) {
    .text-overlay {
        top: 40%;
        font-size: 2em; /* フォントサイズを小さく */
        width: 80%; /* 横幅を指定して、改行しやすく */
        line-height: 1.3; /* 行間を少し広げて読みやすく */
    }
}

/* ヘッダー全体 */
/* 共通のヘッダー設定 */
header {
    background-color: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 4px 2px -2px gray;
    z-index: 1000;
}

/* 共通のヘッダーコンテンツ設定 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ロゴの設定 */
.logo img {
    order: 1;
    height: 50px;
    display: block;
}




/* メニュー */
.main-nav {
    
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.menu {
    order: 2;
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 60%;
}

.menu-item {
    position: relative;
    white-space: nowrap; /* テキストを折り返さないようにする */
}

.menu-item a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.menu-item a:hover {
    background-color: #007BFF;
}

/* プルダウンメニュー */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    display: none;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.dropdown li {
    list-style: none;
}

.dropdown li a {
    padding: 10px 20px;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.dropdown li a:hover {
    background-color: #555;
}

.menu-item:hover .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.search-box {
    display: inline-block; /* フォームをインラインブロックにして、ボタンと並べられるように */
    margin: 0; /* マージンをリセット */
}

.search-box form {
    display: flex; /* フォームの内容を横並びに */
    align-items: center; /* 中央揃え */
    border: none; /* フォームの周りの枠線を消す */
    background: none; /* 背景を透明に */
    box-shadow: none;
    padding: 1px;
    margin: 1px;
}

.search-box input[type="text"] {
    border: none; /* テキストボックスの枠線を消す */
    padding: 10px; /* 内側のパディングを調整 */
    border-radius: 5px 0 0 5px; /* 角を丸くする */
    box-shadow: none; /* 影を消す */
    outline: none; /* フォーカス時のアウトラインを消す */
}

.search-box button {
    background-color: #007BFF; /* ボタンの背景色 */
    color: white; /* ボタンの文字色 */
    border: none; /* ボタンの枠線を消す */
    padding: 10px 10px; /* 内側のパディング */
    cursor: pointer; /* カーソルをポインタに変更 */
    border-radius: 0 5px 5px 0; /* 角を丸くする */
    transition: background-color 0.3s; /* ホバー時の色変化のトランジション */
}

.search-box button:hover {
    background-color: #0056b3; /* ホバー時の色変化 */
}

/* スマホやタブレット向けの調整 */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        align-items: center;        
        justify-content: space-between; /* コンテンツを横に並べる */
        padding: 10px; /* 余白を少し減らす */
        position: relative; /* 子要素の絶対配置に必要 */
    }

    .logo {
        flex: 2; /* ロゴの幅を1に設定 */
        display: flex; /* 内部のimgをフレックスアイテムにする */
        justify-content: flex-start; /* 左寄せ */
    }

    .logo img {
        height: 40px; /* ロゴのサイズ */
        width: auto;
    }

    /* 検索ボックス */
    .search-box {
        flex: 4; /* 検索ボックスの幅を2に設定 */
        display: flex; /* 内部のinputをフレックスアイテムにする */
        justify-content: center; /* 中央寄せ */
        margin: 0; /* 余白をリセット */
    }

    .search-box input {
        width: 100%; /* 検索ボックスの幅を100%に */
    }

    /* メニューアイコン */
    .menu-toggle {
        flex: 1; /* ハンバーガーボタンの幅を1に設定 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .hamburger {
        width: 35px;
        height: 3px;
        background: white;
        margin: 2px 0;
        transition: 0.3s;
    }

    /* メニュー */
    .main-nav {
        display: none; /* 初期は非表示 */
        flex-direction: column;
        background-color: #333;
        position: absolute; /* 絶対位置 */
        top: 100%; /* ヘッダーの下に配置 */
        left: 0;
        width: 100%;
    }

    .menu {
        flex-direction: column; /* 縦に表示 */
        width: 100%; /* 幅を100%に */
    }

    .menu-item a {
        padding: 15px; /* 縦の余白 */
        text-align: center; /* テキストを中央に */
    }

    /* メニューを表示するクラス */
    .menu-active {
        display: flex; /* メニューがアクティブの時に表示 */
    }
}



/* スライダー */
/* スライダーコンテナ */
.swiper-container {
    width: 100%; /* 幅を100%に設定 */
    max-width: 80%; /* 最大幅を設定 */
    max-height:60%;
    margin: 80px auto; /* 上下のマージンを設定 */
    position: relative;
    overflow: hidden; /* はみ出した部分を隠す */
}

/* スライド内の画像 */
.swiper-slide img {
    width: 60%; /* 幅を100%に設定 */
    height: auto;

    display: block;
    margin: 0 auto;
}

/* 横のナビゲーションボタン */
.swiper-button-prev,
.swiper-button-next {
    color: #ffffff;
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3); /* 半透明な黒 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s; /* ホバー時に変化するアニメーション */
    font-size: 24px; /* アイコンを少し大きく */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* 影を追加して浮かせる感じを演出 */
    backdrop-filter: blur(5px); /* 背景をぼかす */
}

/* ホバー時のスタイル */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.8); /* 半透明な白 */
    color: #000; /* アイコンの色を黒に変更 */
    transform: scale(1.1); /* ホバー時に少し大きくなる */
}

/* 左側のボタン */
.swiper-button-prev {
    left: 10px;
}

/* 右側のボタン */
.swiper-button-next {
    right: 10px;
}

/* ボタン内のアイコン（矢印） */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-family: "Font Awesome 5 Free"; /* Font Awesomeアイコンを使用 */
    font-weight: 900;
}

/* 左側のアイコン */
.swiper-button-prev::after {
    content: "\f053"; /* Font Awesomeの左矢印 */
}

/* 右側のアイコン */
.swiper-button-next::after {
    content: "\f054"; /* Font Awesomeの右矢印 */
}

/* ドットインジケーター */
.swiper-pagination {
    text-align: center;
}

/* 各ドット */
.swiper-pagination-bullet {
    background-color: rgba(0, 0, 0, 0.5);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s;
}

/* アクティブなドット */
.swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
}


/* カードセクション */
.card-section {
    display: flex;
    justify-content: center; /* 中央に配置 */
    margin: 20px 0;
    flex-direction: column; /* 縦に表示 */
    align-items: center; /* 子要素を中央に揃える */
}

/* カードのスタイル */
.card {
    background-color: white;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 80%; /* 幅を80%に設定 */
    max-width: 400px; /* 最大幅を指定してカードが大きくなりすぎないようにする */
    text-align: center;
    text-decoration: none; /* 下線を消す */
    color: inherit; /* テキストの色をリンクでも変えない */
    border-radius: 8px; /* 角丸にしてスタイリッシュに */
    margin-bottom: 20px; /* 下にマージンを追加してカード間隔を調整 */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* カード内のテキスト要素を調整 */
.card h3, .card p {
    margin: 0;
    color: #333;
}

/* タップ時の視覚的な変化を定義 */
.card.active {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}




@media (max-width: 768px) {
    /* メニューの設定 */
    .main-content {
        padding-top: 50px; /* スマホではヘッダーの高さが少し違う場合に調整 */
    }
    .swiper-slide img {
        width: 100%; /* 幅を100%に設定 */

    }
    .swiper-container {
        max-width: 90%; /* 最大幅を設定 */
        margin: 40px auto; /* 上下のマージンを設定 */

    }


}
.company-profile {
    padding: 20px;
    padding-top: 80px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center; /* 中央揃え */
}

.company-profile h1, .company-profile h2 {
    color: #333;
}

.company-info {
    width: 100%;
    max-width: 800px; /* 最大幅を指定 */
    border-collapse: collapse;
    margin: 20px auto; /* 上下のマージンはそのまま、左右を中央揃え */
}

.company-info td {
    padding: 15px;
    border: none; /* 枠を消す */
    transition: background-color 0.3s ease;
}

.company-info td:first-child {
    text-align: right; /* 左列を右揃え */
}

.company-info td:last-child {
    text-align: left; /* 右列を左揃え */
}

.company-info tr:hover {
    background-color: #e0f7fa; /* ハイライトの色 */
}

.company-info strong {
    color: #007BFF; /* 強調表示する文字の色 */
}

/*　製品情報のCSS  */
/* 製品詳細セクション */
.product-detail {
    display: flex;
    padding: 20px;
    padding-top: 80px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.product-gallery {
    flex: 1;
    padding-right: 20px;
}

.product-gallery .main-image {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 60px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: #ff9900;
}

.product-info {
    flex: 2;
    padding: 0 20px;
}

.product-info h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.product-brand {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    color: #b12704;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.product-features {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.product-features li {
    margin-bottom: 5px;
}

.product-purchase {
    margin-top: 20px;
}

#quantity {
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.add-to-cart {
    background-color: #ff9900;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.add-to-cart:hover {
    background-color: #e68a00;
}

/* カスタマーレビューセクション */
.customer-reviews {
    background-color: white;
    padding: 20px;
    margin: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.customer-reviews h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.review {
    padding: 15px 0;
    border-bottom: 1px solid #e6e6e6;
}

.review:last-child {
    border-bottom: none;
}

.review-text {
    font-size: 14px;
    color: #555;
}

.review-rating {
    font-size: 14px;
    color: #ff9900;
    font-weight: bold;
}

.see-more-reviews {
    display: inline-block;
    margin-top: 15px;
    color: #007185;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.see-more-reviews:hover {
    text-decoration: underline;
}

.product-list-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.product-list-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

/* 商品カードグリッド */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* 商品カード */
.product-card {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-card h2 {
    font-size: 18px;
    margin: 15px 0;
    color: #333;
}

.product-card .price {
    font-size: 20px;
    color: #e74c3c;
    margin: 10px 0;
}

/*　問い合わせページのCSS
/* フォーム全体のスタイル */
form {
    max-width: 600px; /* フォームの最大幅 */
    margin: 30px auto; /* 中央に配置 */
    padding: 20px;
    background-color: #f9f9f9; /* 背景色を追加 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* ソフトな影を追加 */
    border-radius: 10px; /* 角丸にして柔らかい印象に */
    font-family: 'Arial', sans-serif;
}

/* フォームのラベルと入力フィールドの調整 */
form div {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* 入力フィールドのスタイル */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    border-color: #007BFF; /* フォーカス時の色 */
    outline: none;
}

/* テキストエリアのスタイル */
textarea {
    resize: vertical; /* 縦方向のみサイズ変更可能に */
}

/* 送信ボタンのスタイル */
button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF; /* 鮮やかな青色 */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* ボタンのホバースタイル */
button:hover {
    background-color: #0056b3; /* マウスをかざしたときの色 */
    transform: translateY(-2px); /* ちょっと浮かせる効果 */
}

/* ボタンのアクティブスタイル */
button:active {
    transform: translateY(0); /* 押し込むと元の位置に戻る */
}


/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
