:root {
    /* 新しいカラーパレットの定義 (よりモダンで洗練されたトーン) */
    --primary-blue: #007bff;        /* 主要な青色 */
    --dark-blue: #0056b3;           /* 濃い青色 (ホバーなど) */
    --accent-orange: #fd7e14;       /* アクセントのオレンジ色 */
    --soft-green: #28a745;          /* 柔らかい緑色 (使用シーンなど) */

    --text-color-dark: #212529;     /* 非常に濃いテキスト色 */
    --text-color-medium: #495057;   /* 中間のテキスト色 */
    --text-color-light: #f8f9fa;    /* 明るいテキスト色 (暗い背景用) */
    --text-color-white: #ffffff;    /* 白いテキスト色 */

    --bg-white: #ffffff;            /* 白い背景色 */
    --bg-light-gray: #f8f9fa;       /* 薄いグレーの背景色 (セクション用) */
    --bg-medium-gray: #e9ecef;      /* 中間のグレーの背景色 */
    --bg-dark-footer: #212529;      /* フッター用の濃い背景色 */
    --bg-overlay-dark: rgba(0, 0, 0, 0.6); /* 暗いオーバーレイの不透明度を上げる */
    --bg-overlay-light: rgba(255, 255, 255, 0.8); /* 明るいオーバーレイ */


    --border-light: #e0e0e0;        /* 薄いボーダー色 */

    /* より深みのある影 */
    --shadow-subtle: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-strong: 0 12px 40px rgba(0,0,0,0.25);

    /* タイポグラフィ */
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* アニメーションのカスタムプロパティ */
    --animation-delay: 0s;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: var(--text-color-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ------------------- ロゴアニメーションオーバーレイ ------------------- */
.initial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.full-screen-logo {
    width: 100px;
    height: 100px;
    animation: fullScreenExplosion 2s forwards;
    animation-delay: 0.5s;
}

@keyframes fullScreenExplosion {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(0deg);
        filter: blur(5px);
    }
    10% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(3) rotate(180deg);
        filter: blur(10px);
    }
}

/* ------------------- メインコンテンツの表示/非表示 ------------------- */
.main-wrapper {
    transition: opacity 1s ease-in, transform 1s ease-in;
    opacity: 1;
    transform: translateY(0);
}

.content-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* ------------------- ナビゲーション ------------------- */
.main-nav {
    background-color: rgba(255, 255, 255, 0.98); /* ほぼ不透明な白 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-subtle);
    border-bottom: 1px solid var(--border-light);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--primary-blue);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-color-medium);
    text-decoration: none;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: var(--text-color-dark);
}

/* ------------------- ヒーローセクション (カルーセル) ------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-white);
    text-align: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* スライド切り替えアニメーション */
    animation: slideBackground 30s infinite alternate; /* 背景画像のゆっくりとした動き */
}

.hero-slide.active {
    opacity: 1;
}

@keyframes slideBackground {
    0% { background-position: center center; }
    100% { background-position: bottom right; }
}

.hero-content {
    z-index: 2;
    padding: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.8em;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    /* animation-delay はJavaScriptで設定 */
}

.hero-content p {
    font-size: 1.9em;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    /* animation-delay はJavaScriptで設定 */
}

/* ------------------- 各セクションの共通スタイル ------------------- */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

section {
    padding: 80px 0;
    margin-bottom: 0; /* wave-divider のためにマージンを削除 */
    border-radius: 0;
    box-shadow: none; /* 基本のセクションには影をつけない */
    position: relative; /* パララックスと波線のために必要 */
    z-index: 1; /* 波線より手前に来るように */
}

.section-white {
    background-color: var(--bg-white);
    color: var(--text-color-dark);
}

.section-gray {
    background-color: var(--bg-light-gray);
    color: var(--text-color-dark);
}

/* パララックス背景のセクション */
.bg-feature-parallax, .bg-usage-parallax {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックス効果 */
    color: var(--text-color-white); /* 背景に合わせて文字色を白に */
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5); /* 読みやすくする影 */
}

.bg-feature-parallax {
    background-image: url('bass7.jpg'); /* 製品特長用画像 */
}

.bg-usage-parallax {
    background-image: url('bass1.jpg'); /* 使用シーン用画像 (必要に応じて変更) */
}

/* パララックスセクションのオーバーレイでテキストを読みやすく */
.bg-feature-parallax::before, .bg-usage-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay-dark); /* 暗めのオーバーレイの不透明度を上げた */
    z-index: -1; /* 背景とテキストの間 */
}

/* セクションタイトル */
section h2 {
    font-family: var(--font-heading);
    font-size: 3.4em;
    color: inherit; /* 親要素のテキスト色を継承 (パララックスセクションでは白になる) */
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 0;
    font-weight: 700;
}

section h3 {
    font-family: var(--font-heading);
    font-size: 2.4em;
    color: var(--primary-blue);
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}
/* パララックスセクションのh3は白に */
.bg-feature-parallax h3, .bg-usage-parallax h3 {
    color: var(--accent-orange); /* パララックスセクションのH3はアクセントカラーに */
}


/* ------------------- ウェーブ区切り線 ------------------- */
.wave-divider {
    width: 100%;
    height: 100px; /* 波線の高さ */
    background-repeat: no-repeat;
    background-size: 100% 100px; /* 幅100%, 高さ100px */
    position: relative;
    z-index: 0; /* セクションより背面に */
}

/* 上向きの波線 */
.wave-divider.top {
    background-position: top;
    transform: rotate(180deg); /* 下向きのSVGを回転させて上向きに */
    margin-top: -1px; /* 上のセクションとの隙間をなくす */
}

/* 下向きの波線 */
.wave-divider.bottom {
    background-position: bottom;
    margin-bottom: -1px; /* 下のセクションとの隙間をなくす */
}

/* 波線の色付け (SVGのfill属性で制御) */
/* 白からグレーへ (section-white の下、section-gray の上) */
.wave-divider.white-to-gray.bottom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.51,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23f8f9fa'%3E%3C/path%3E%3C/svg%3E");
}
.wave-divider.white-to-gray.top { /* section-gray の下、section-white の上 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.51,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
}

/* グレーから画像へ (section-gray の下、bg-feature-parallax の上) */
.wave-divider.gray-to-image.top {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.51,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23f8f9fa'%3E%3C/path%3E%3C/svg%3E");
}

/* 画像から白へ (bg-feature-parallax の下、section-white の上) */
.wave-divider.image-to-white.bottom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.51,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
}

/* 白からグレーへ (section-white の下、section-gray の上) */
.wave-divider.white-to-gray.top {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.51,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
}

/* グレーから白へ (section-gray の下、section-white の上) */
.wave-divider.gray-to-white.bottom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.51,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23f8f9fa'%3E%3C/path%3E%3C/svg%3E");
}

/* 白から濃い色へ (section-white の下、section-dark-footer の上) */
.wave-divider.white-to-dark.top {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.51,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
}

/* ------------------- 製品イメージ ------------------- */
.product-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.image-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 25px;
    border: 1px solid var(--border-light);
    opacity: 0; /* 初期状態は非表示 */
    transform: translateY(20px); /* 初期状態は少し下に */
    transition: opacity 0.8s ease-out var(--animation-delay), transform 0.8s ease-out var(--animation-delay); /* アニメーションプロパティと遅延 */
}

.image-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.image-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium); /* ホバー時に影を少し強く */
}

.image-item img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
    border-bottom: 1px solid var(--border-light);
    background-color: #f8f8f8;
    cursor: pointer;
}

.image-item h4 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    color: var(--text-color-dark);
    margin: 25px 0 15px;
}

.image-item p {
    font-size: 1em;
    color: var(--text-color-medium);
    padding: 0 20px;
}

/* ------------------- 製品特長 & 使用シーン (リスト - カードデザイン) ------------------- */
.feature-list, .usage-list {
    list-style: none;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-list li, .usage-list li {
    background-color: rgba(255, 255, 255, 0.95); /* 背景を白くして、下の画像が見えるように少し透明に */
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-blue); /* アクセントボーダー */
    position: relative;
    padding-left: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out var(--animation-delay), transform 0.8s ease-out var(--animation-delay), background-color 0.3s ease; /* アニメーションプロパティと遅延 */
}

.feature-list li.is-visible, .usage-list li.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-list li:hover, .usage-list li:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    background-color: rgba(255, 255, 255, 1); /* ホバー時は不透明に */
}

.feature-list li strong {
    color: var(--text-color-dark);
    font-family: var(--font-heading);
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

.usage-list li {
    border-left-color: var(--soft-green); /* 使用シーンのボーダーを緑に */
}

.usage-list li::before {
    content: '→';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--soft-green);
    font-size: 1.2em;
    font-weight: 700;
}


/* ------------------- 製品ラインナップ (テーブル) ------------------- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 50px;
    font-size: 1.1em;
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-light);
}

th, td {
    padding: 20px 25px;
    text-align: left;
    color: var(--text-color-dark);
}

th {
    background-color: var(--bg-light-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    background-color: var(--bg-white);
}

tr:nth-child(even) td {
    background-color: var(--bg-light-gray);
}

tr:hover td {
    background-color: var(--bg-medium-gray);
}

/* テーブル行アニメーション */
table tbody tr {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out var(--animation-delay), transform 0.8s ease-out var(--animation-delay); /* アニメーションプロパティと遅延 */
}

table tbody tr.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* テーブルの角丸に対応 */
table tr:first-child th:first-child { border-top-left-radius: 12px; }
table tr:first-child th:last-child { border-top-right-radius: 12px; }
table tr:last-child td:first-child { border-bottom-left-radius: 12px; }
table tr:last-child td:last-child { border-bottom-right-radius: 12px; }


.options-list {
    margin-top: 40px;
    padding: 0 20px;
}

.options-list ul {
    list-style: none;
    padding: 0;
}

.options-list li {
    background-color: var(--bg-white);
    padding: 20px 30px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-orange);
    color: var(--text-color-dark);
    font-size: 1.1em;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out var(--animation-delay), transform 0.8s ease-out var(--animation-delay); /* アニメーションプロパティと遅延 */
}

.options-list li.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.options-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

/* ------------------- 製品仕様 (テーブル) ------------------- */
.specs-table {
    background-color: var(--bg-white);
    color: var(--text-color-dark);
}

.specs-table th {
    background-color: var(--bg-light-gray);
    color: var(--text-color-dark);
}

.specs-table td {
    color: var(--text-color-dark);
}

.specs-table tr:hover td {
    background-color: var(--bg-medium-gray);
}

/* 製品仕様行アニメーション */
.specs-table tr {
    opacity: 0;
    transform: translateX(-20px); /* 左からフェードイン */
    transition: opacity 0.8s ease-out var(--animation-delay), transform 0.8s ease-out var(--animation-delay); /* アニメーションプロパティと遅延 */
}

.specs-table tr.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* ------------------- お問い合わせ (フッター) ------------------- */
.section-dark-footer {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-dark-footer);
    color: var(--text-color-light);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.section-dark-footer h2 {
    color: var(--text-color-white);
    margin-bottom: 50px;
}

.section-dark-footer p {
    margin: 15px 0;
    font-size: 1.15em;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out var(--animation-delay), transform 0.8s ease-out var(--animation-delay); /* アニメーションプロパティと遅延 */
}

.section-dark-footer p.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.section-dark-footer a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-dark-footer a:hover {
    color: var(--text-color-white);
    text-decoration: underline;
}

/* 簡易カウンターのスタイル */
.access-counter {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0; /* アニメーション対象 */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out var(--animation-delay), transform 0.8s ease-out var(--animation-delay); /* アニメーションプロパティと遅延 */
}

.access-counter.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.access-counter h3 {
    color: var(--text-color-white);
    font-family: var(--font-heading);
    font-size: 1.8em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 0;
    border-left: none;
    text-align: center;
}

.access-counter h3::after {
    content: none;
}

.access-counter p {
    font-size: 1.3em;
    font-weight: 400;
    margin-bottom: 12px;
    color: #eee;
}

.access-counter .count-number {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--accent-orange);
    text-shadow: none;
}

.access-counter small {
    display: block;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}


/* ------------------- YouTube埋め込みのスタイル ------------------- */
.youtube-embed-container {
    background-color: var(--bg-white);
    padding: 40px;
    margin-top: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-light);
    opacity: 0; /* アニメーション対象 */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out var(--animation-delay), transform 0.8s ease-out var(--animation-delay); /* アニメーションプロパティと遅延 */
}

.youtube-embed-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.youtube-embed-container h3 {
    font-size: 2em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    border-left: none;
    padding-left: 0;
}

.youtube-embed-container .video-description {
    margin-top: 30px;
    font-size: 1.15em;
    color: var(--text-color-medium);
    line-height: 1.7;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------- アニメーションクラス (既存のものを微調整) ------------------- */
.animate-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 各アニメーションのキーフレーム */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-fill-mode: backwards; /* アニメーション開始前も初期状態を適用 */
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-delay: var(--animation-delay);
    opacity: 0; /* is-visible がないときの初期状態 */
    transform: translateY(20px); /* is-visible がないときの初期状態 */
}

/* is-visible クラスが付与されたときにアニメーションを再生 */
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation-play-state: running;
}


@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        -webkit-transition-timing-function: cubic-bezier(0.215, .61, .355, 1);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
    }
    0% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3)
    }
    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1)
    }
    40% {
        -webkit-transform: scale3d(.9, .9, .9);
        transform: scale3d(.9, .9, .9)
    }
    60% {
        opacity: 1;
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        transform: scale3d(1.03, 1.03, 1.03)
    }
    80% {
        -webkit-transform: scale3d(.97, .97, .97);
        transform: scale3d(.97, .97, .97)
    }
    100% {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1)
    }
}

.bounce-in {
    animation-name: bounceIn;
    animation-fill-mode: backwards;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-delay: var(--animation-delay);
    opacity: 0;
    transform: scale3d(0.3,0.3,0.3); /* 初期状態 */
}
.bounce-in.is-visible {
    opacity: 1;
    transform: scale3d(1,1,1);
    animation-play-state: running;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation-name: fadeInLeft;
    animation-fill-mode: backwards;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-delay: var(--animation-delay);
    opacity: 0;
    transform: translateX(-20px);
}
.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
    animation-play-state: running;
}


@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation-name: fadeInRight;
    animation-fill-mode: backwards;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-delay: var(--animation-delay);
    opacity: 0;
    transform: translateX(20px);
}
.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
    animation-play-state: running;
}


@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotate3d(1, 0, 0, 0deg);
    }
}

.flip-in-x {
    animation-name: flipInX;
    animation-fill-mode: backwards;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-delay: var(--animation-delay);
    opacity: 0;
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg); /* 初期状態 */
}
.flip-in-x.is-visible {
    opacity: 1;
    transform: perspective(400px) rotate3d(1, 0, 0, 0deg);
    animation-play-state: running;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.zoom-in {
    animation-name: zoomIn;
    animation-fill-mode: backwards;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-delay: var(--animation-delay);
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3); /* 初期状態 */
}
.zoom-in.is-visible {
    opacity: 1;
    transform: scale3d(1, 1, 1);
    animation-play-state: running;
}


/* ★★★ 画像拡大表示用CSSの追加 (以前のコードから変更なし) ★★★ */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    cursor: zoom-out;
}

.image-overlay.active {
    opacity: 1;
    visibility: visible;
}

#enlarged-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.image-overlay.active #enlarged-image {
    transform: scale(1);
}

/* レスポンシブ対応の調整 */
@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .main-nav ul li {
        margin: 5px 10px;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    section {
        padding: 50px 0;
        margin-bottom: 0; /* Wave divider のため */
    }

    section h2 {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    section h3 {
        font-size: 1.6em;
        margin-top: 35px;
        margin-bottom: 25px;
    }
    .product-image-gallery {
        grid-template-columns: 1fr;
    }
    .feature-list, .usage-list {
        grid-template-columns: 1fr;
    }
    th, td {
        padding: 15px;
        font-size: 0.9em;
    }
    .usage-list li::before {
        left: 15px;
        font-size: 1.4em;
    }
    /* ロゴアニメーションのスマホ対応 */
    .full-screen-logo {
        max-width: 80px;
        max-height: 80px;
    }

    /* YouTube埋め込みの調整 */
    .youtube-embed-container {
        padding: 20px;
        margin-top: 40px;
    }

    .youtube-embed-container h3 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .youtube-embed-container .video-description {
        font-size: 1em;
    }

    /* 拡大画像が小さすぎないように調整 */
    #enlarged-image {
        max-width: 95%;
        max-height: 95%;
        padding: 5px;
    }

    .section-dark-footer {
        padding: 50px 20px;
    }

    .section-dark-footer p {
        font-size: 1em;
    }

    .access-counter {
        margin-top: 40px;
        padding-top: 25px;
    }

    .access-counter h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .access-counter p {
        font-size: 1.1em;
    }

    .access-counter .count-number {
        font-size: 1.8em;
    }

    .options-list li {
        font-size: 1em;
        padding: 15px 20px;
    }
}

/* さらに小さな画面用の調整 */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    section h2 {
        font-size: 1.8em;
    }
    section h3 {
        font-size: 1.4em;
    }
    .product-image-gallery {
        gap: 20px;
    }
    .feature-list, .usage-list {
        gap: 20px;
    }
    .image-item img {
        height: 200px;
    }
    .image-item h4 {
        font-size: 1.2em;
    }
    .image-item p {
        font-size: 0.9em;
    }
    .feature-list li, .usage-list li {
        padding: 20px;
        font-size: 0.95em;
    }
    .feature-list li strong {
        font-size: 1em;
    }
    table th, table td {
        padding: 10px 15px;
        font-size: 0.85em;
    }
    .section-dark-footer p {
        font-size: 0.9em;
    }
}


/* ===== 修正：製品特長セクションの文字色を白くして背景に溶け込まないようにする ===== */
section#features.bg-feature-parallax .feature-list li {
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    border-left-color: var(--accent-orange) !important;
}

section#features.bg-feature-parallax .feature-list li strong {
    color: #ffffff !important;
    font-weight: 700;
}

section#features.bg-feature-parallax h2 {
    color: #ffffff !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}
