* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ヘッダーのスタイル - オーバーレイ表示 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    /* より透明に */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
    height: 100px;
    transition: all 0.3s ease;
    color:black;
    height: 120px;
    background-color: white;
}

    /* スクロール時のヘッダー全体の変更を防ぐ */
    .header-scrolled,
    header.scrolled,
    .navbar-scrolled {
        background-color: transparent !important; /* 背景色変更を防ぐ */
    }

        /* スクロール時の文字色変更を防ぐ */
        .header-scrolled nav ul li a,
        header.scrolled nav ul li a,
        .navbar-scrolled nav ul li a {
            color: inherit !important; /* 元の文字色を維持 */
        }

        /* 4項目目の水色縁取りは維持 */
        .header-scrolled nav ul li:nth-child(2) a,
        header.scrolled nav ul li:nth-child(2) a,
        .navbar-scrolled nav ul li:nth-child(2) a {
            border: 2px solid #00c6ff !important;
            border-radius: 25px !important;
            padding: 8px 20px !important;
            background:linear-gradient(to right, #8fc31f, #00a7db) !important;
            color: white !important; /* 4項目目のみ白文字 */
        }

.open {
    cursor: pointer;
}

#pop-up {
    display: none;
}

.overlay {
    display: none;
}

#pop-up:checked + .overlay {
    display: block;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
}

.window {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90vw;
    max-width: 300px;
    padding: 20px;
    height: 200px;
    background-color: #fff;
    border-radius: 6px;
    align-items: center;
    transform: translate(-50%, -50%);
    display:flex;
}

.window p{
    justify-content:center;
    align-items:center;
    font-size:20px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

/* ロゴ部分のスタイル */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff; /* 白色に変更 */
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 影を追加 */
    padding-top:20px;
}

    .logo img {
        width:450px;
        padding-top:12px;
    }

/* ナビゲーションメニューのスタイル */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

    nav ul li {
        margin-right: 30px;
        white-space: nowrap;
    }

        nav ul li:last-child {
            margin-right: 0;
        }

        /* ヘッダーの4項目目だけ水色縁で囲む */
        nav ul li:nth-child(2) a {
            border: none;
            border-radius: 25px !important;
            padding: 8px 20px !important;
            background: linear-gradient(to right, #8fc31f, #00a7db) !important;
        }

        nav ul li a {
            text-decoration: none;
            color: black; /* 白色に変更 */
            font-size: 1.2rem;
            font-weight: bold;
            transition: all 0.3s ease;
            padding: 8px 12px;
            border-radius: 5px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* 影を追加 */
        }


/* メインコンテンツ - マージンなし */
main {
    margin-top: 0; /* ヘッダー分のマージンを削除 */
    padding-top: 0;
}

/* スライドショーのスタイル - 全画面表示 */
.slideshow-container {
    width: 100%;
    height: 80vh; /* 全画面表示に戻す */
    position: relative;
    overflow: hidden;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: none;
}

    .slide.active {
        opacity: 1;
        display: block;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* 統一テキストオーバーレイ */
.unified-text-overlay {
    position: absolute;
    top: 30px;
    left: -1%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 60px 60px 60px;
    padding-top: 140px; /* ヘッダー分のパディングを追加 */
    color: white;
    z-index: 100;
    pointer-events: none;
}

/* 統一テキストのスタイル */
.text_shadow {
    font-weight: 500;
    font-size: clamp(2rem, 3vw, 3rem);
    text-shadow: 2px 2px 0px #00a7db, -2px -2px 0px #00a7db, -2px 2px 0px #00a7db, 2px -2px 0px #00a7db, 4px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
}

.header_text {
    max-width: 800px;
}

    .header_text p {
        font-size: clamp(1.2rem, 3vw, 2.5rem);
        color: white;
        margin: 0 0 15px 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        font-weight: 300;
        line-height: 1.3;
    }

    .header_text .sub-text {
        font-size: clamp(1rem, 2.5vw, 1.8rem);
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 0;
        font-weight: 400;
    }

.button-container-KV {
    bottom: 13%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
    margin: 0 auto;
    z-index: 200;
}
.button-KV_1 {
    cursor: pointer;
    width: 250px;
    height: 70px;
    font-size: 28px;
    padding-left:40px;
    padding-top:13px;
    margin: 0 10px;
    border-radius: 15px;
    background-color: #00a7db;
    color: white;
    font-weight: bold;
    border: 2px #00a7db;
    text-decoration:none;
}
.button-KV_2{
    cursor: pointer;
    width: 250px;
    height: 70px;
    font-size: 28px;
    padding-left: 27px;
    padding-top: 12px;
    margin: 0 10px;
    border-radius: 15px;
    background-color: #00a7db;
    color: white;
    font-weight: bold;
    border: 2px #00a7db;
    text-decoration: none;
}


/* インジケーターのスタイル */
.slide-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    padding-right:30px;
    justify-content: right;
    gap: 15px;
    z-index: 200;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
    pointer-events: auto;
}

    .dot.active,
    .dot:hover {
        background: #007BFF;
        transform: scale(1.2);
    }

/* コンテンツセクション */
/* コンテンツセクション - スライドショーに近づける */
.content-section {
    padding: 20px 20px 80px 20px; /* 上部余白を80px→20pxに削減 */
    background-color: #f8f9fa;
    min-height: 50vh;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.container_1 {
    max-width: 450px;
    width:100%;
    height:auto;
    margin: 0 0;
    display: flex;
    justify-content:center;
    align-items: center;
    text-align:center;
}

.container_2 {
    display:flex;
    width:100%;
    height:auto;
    justify-content:center;
    align-items: center;
    text-align:center;
}

.container_3 {
    max-width:1300px;
    display: flex;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin:0;
    padding:0;

}

.container_Xross {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-container {
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
    flex-shrink: 1; /* 要素が縮小可能な設定 */
    flex-grow: 1;
}
    .img-container img {
        width: 100%;
        height: auto;
    }

.switch-container {
    flex-direction: column;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.switch-container .plan {
    display: flex;
    width: 100%;
    height: auto;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    position:relative;

}

.switch-container .plan img {
    width: 19%;
    height: auto;
}

.text_first {
    text-align: center;
    max-width: 1200px;
}

    .text_first h2 {
        font-size: clamp(2rem, 5vw, 3rem);
        color: #333;
        margin-bottom: 20px;
    }

    .text_first p {
        color: black;
        line-height: 1.6;
        margin: 0;
        font-size:23px;
        font-weight:700;
    }

.trial_circle {
    width: 300px;
    height: 80px;
    border-radius: 50px;
    background: linear-gradient(135deg, #007BFF, #00c6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .trial_circle:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
    }

    .trial_circle p {
        color: white;
        font-size: 1.3rem;
        font-weight: bold;
        margin: 0;
    }


.function-scene {
    text-align: center; /* 中央配置 */
    max-width: 930px; /* 最大幅制限 */
    margin: 0 auto; /* 左右中央配置 */
    padding: 10px; /* 上下左右の余白 */
    font-size:23px; /* レスポンシブフォントサイズ */
    line-height: 1.6; /* 行間 */
    color: black; /* グレー系の文字色 */
    font-weight: bold;
}
/* 機能紹介タイトルのスタイル */
.function-title {
    display: flex;
    width: 100%;
    color: #00a7db; /* ブランドカラーの青 */
    font-size: clamp(2.0rem, 4vw, 2.4rem); /* レスポンシブフォントサイズ */
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center; /* 左寄せ */
    margin: 40px 0 20px 0; /* 上下の余白のみ */
    padding-left: 0px; /* 左端余白なし */
    padding-right: 0; /* 右側のみ余白 */
    max-width: 1500px; /* 全幅使用 */
    box-sizing: border-box; /* パディングを幅に含める */
}

.function-Xross {
    display: flex;
    width: 100%;
    color: #00a7db; /* ブランドカラーの青 */
    font-size: clamp(2.0rem, 4vw, 2.4rem); /* レスポンシブフォントサイズ */
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center; /* 左寄せ */
    margin: 20px 0 20px 0; /* 上下の余白のみ */
    padding-left: 40px; /* 左端余白なし */
    padding-right: 0; /* 右側のみ余白 */
    max-width: 1500px; /* 全幅使用 */
    box-sizing: border-box; /* パディングを幅に含める */
}


/* 機能説明文のスタイル */
.function-description {
    text-align: center; /* 中央配置 */
    max-width: 930px; /* 最大幅制限 */
    margin: 0 auto; /* 左右中央配置 */
    padding: 0; /* 上下左右の余白 */
    line-height: 1.6; /* 行間 */
    font-size:23px;
    color: black; /* グレー系の文字色 */
    font-weight: bold;
}

/* 4枚の機能紹介グリッドセクション */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列グリッド */
    grid-template-rows: auto auto; /* 2行グリッド */
    gap: 15px; /* グリッド間の距離 */
    max-width: 1200px;
    margin: 5px auto; /* 上下の余白 */
    padding: 0 20px;
}

/* 各機能アイテム */
.feature-item {
    text-align: center;
    justify-content:center;
    padding: 25px 20px;
    height: auto; /* 高さ自動調整 */
}


/* 機能画像 */
.feature-image {
    width: 100%;
    height:auto;
    aspect-ratio: 16/9; /* アスペクト比統一 */
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

    .feature-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
        display:block;
        max-width:100%;
    }
.feature-image1 {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

    .feature-image1 img {
        display:flex;
        width: 67%;
        height: 67%;
        margin-left:68px;
        padding-left:20px;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
        display: block;
        max-width: 100%;
    }

/* 機能説明 */
.feature-description h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: black; /* ブランドカラー */
    margin-bottom: 12px;
    font-weight: bold;
}


/* 活用シーンタイトルのスタイル */
.usage-scene-title {
    color: #00c6FF;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: bold;
    text-align: left;
    margin: 15px 0 10px 0;
    padding-left: 40px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

.feature-description p {
    font-size: clamp(1.3rem, 2vw, 1.3rem);
    color: #666;
    font-weight:500;
    line-height: 1.5;
    margin: 0;
}

.usage-scene-title + p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    color: #666;
}

/* 活用シーンカルーセルのスタイル */
.usage-carousel-container {
    background-color: #d3d3d3;
    width: 100%;
    margin: 0 0;
    padding: 0;
    overflow: hidden;
}

    .usage-carousel-container p {
        color: black;
        font-size: clamp(1rem, 1.8vw, 1.3rem);
        font-weight: bold;
    }

.usage-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    margin-bottom:20px;
}

.usage-carousel-track {
    display: flex;
    animation: slideUsageInfinite 30s linear infinite;
    gap: 30px;
    width: 3440px; /* 2倍の幅で無限ループを実現 */
}

.usage-carousel-item {
    flex: 0 0 400px;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: white;
}


    .usage-carousel-item img {
        width: 100%;
        height: 75%;
        object-fit: cover;
        object-position: center;
        aspect-ratio: 16/9;
    }

    .usage-carousel-item h4 {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 25%;
        background: #d3d3d3;
        color: black;
        font-size: clamp(1rem, 1.8vw, 1.3rem);
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 20px;
        text-align: center;
    }

/* 無限ループアニメーション */
@keyframes slideUsageInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1720px); /* (400px + 30px gap) * 6枚 */
    }
}

.table-container {
    display: flex;
    justify-content: center; /* 表を中央揃え */
    width: auto;
}

#table1 {
    border: 4px solid #00A7DB; /* 表1の外枠を青色に設定 */
}
#table2 {
    border: 4px solid #8EC31F; /* 表1の外枠を青色に設定 */
}
#table3 {
    border: 4px solid #8EC31F; /* 表1の外枠を青色に設定 */
}
#table4 {
    border: 4px solid #8EC31F; /* 表1の外枠を青色に設定 */
}
#table5 {
    border: 4px solid #8EC31F; /* 表1の外枠を青色に設定 */
}


.table-set {
    display: flex;
    gap: 10px; /* 表2と表3、表4と表5の間隔 */
    width:auto;
    max-width:100%;
    
}

table {
    border-collapse: collapse;
    max-width:500px;
    width: auto;
    flex-wrap:nowrap;
    text-align: center;
}

.kinou {
    font-size: clamp(1.6rem, 4vw, 1.8rem);
}

.komyu {
    font-size: clamp(0.4rem, 1.4vw, 0.6rem);
}

.keizoku {
    font-size: clamp(0.7rem, 1.6vw, 0.9rem);
}

th, td {
    border: none;
    padding: 4px;
    width: 65%;
    white-space: nowrap;
}

th {
    background-color: #f2f2f2;
    height:120px;
}

tr{
    text-align:center;
    height:65px;
}

thead th {
    border-bottom: 4px solid #00A7DB; /* ヘッダーの下だけ線を表示 */
}

#table2 thead th {
    border-bottom: 4px solid #8EC31F;
}

/* 表3のヘッダーの下に緑色の線を追加 */
#table3 thead th {
    border-bottom: 4px solid #8EC31F;
}

#table4 thead th {
    border-bottom: 4px solid #8EC31F;
}

/* 表3のヘッダーの下に緑色の線を追加 */
#table5 thead th {
    border-bottom: 4px solid #8EC31F;
}

tbody tr:nth-child(n+4):nth-child(even) {
    background-color:#ffffff;
}

/* 4行目以降 奇数行の背景色を白色に設定 */
tbody tr:nth-child(n+4):nth-child(odd) {
    background-color: #f9f9f9;
}

.text-right{
    text-align:right;
}

.plan .img-hukidasi {
    top: -15%; /* -15% → -60px に変更 */
    position: absolute;
    left: calc(50% - 19% - 10px); /* calc(50% - 19% - 10px) → 22.5% に変更 */
    transform: translateX(-50%);
    z-index: 5;
}

.buttons {
    padding-left: 0px;
    max-width: 400px;
    display: flex;
    justify-content: center;
    width: auto;
    position: absolute;
    padding: 0;
    margin: 0;
    z-index: 10;
    /* 2枚目と3枚目の境界に配置 */
    left: 59.5%;
    top: -10%;
    transform: translateX(-50%) translateY(-20px);
}

    .buttons button {
        width: auto;
        height: auto;
        border: none;
        font-size: clamp(0.7rem, 1.8vw, 1.3rem);
        cursor: pointer;
        background-color: #d3d3d3;
        transition: background-color 0.3s, color 0.3s;
        color: white;
    }

        .buttons button:hover {
            background-color: rgba(0, 0, 0, 0.3);
        }

        /* アクティブなボタンのスタイル */
        .buttons button.active {
            background-color: #8EC31F;
            color: white;
            border-color: #8EC31F;
        }

    .buttons button:first-child {
        width:110px;
        height:50px;
        margin-right: 0; /* 左端ボタンの右の余白を削除 */
        border-top-left-radius: 12px; /* 角を丸めない */
        border-bottom-left-radius: 12px;
    }

    .buttons button:nth-child(2) {
        width: 110px;
        height: 50px;
        margin-left: 0; /* 真ん中ボタンの左の余白を削除 */
        margin-right: 0px; /* 真ん中ボタンと右端のボタンの間隔 */
        border-top-right-radius: 12px; /* 角を丸めない */
        border-bottom-right-radius: 12px;
    }

.function-toraial {
    word-wrap: break-word; /* 長い単語を折り返す */
    white-space: normal; /* テキストを折り返す */
    text-align: center; /* 中央配置 */
    max-width: 1000px; /* 最大幅制限 */
    margin: 0 auto; /* 左右中央配置 */
    padding: 5px; /* 上下左右の余白 */
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* レスポンシブフォントサイズ */
    line-height: 1.6; /* 行間 */
    color: black; /* グレー系の文字色 */
    font-weight:bold
}

.button-container {
    text-align: center; /* ボタンを中央に配置 */
    margin-top: 10px; /* 上部に余白を追加 */
}

.rounded-button {
    border: none;
    padding: 10px 50px; /* ボタンの内側余白 */
    background: linear-gradient(to right, #8fc31f, #00a7db); /* ボタンの背景色 */
    color: white; /* ボタン内の文字色 */
    font-size: 1.3em; /* フォントサイズ */
    cursor: pointer; /* ホバー時にカーソルを変更 */
    border-radius: 25px;
    text-decoration: none;
}

.footer {
    margin-top: 20px; /* フッターの上に20pxの隙間を追加 */
    background-color: #333; /* フッターの背景色 */
    color: white; /* フッター内の文字色 */
    padding: 15px 20px; /* フッターの内側余白 */
    font-size: 0.9em; /* フォントサイズ */
}
.footer-logo img {
    height: 50px; /* ロゴの高さを50pxに調整 */
    width: auto; /* アスペクト比を維持 */
}

.footer-content {
    display: flex;
    flex-direction: column; /* コンテンツを縦並びにする */
    align-items: center; /* 中央揃え */
}

.footer-logo {
    align-self: flex-start; /* ロゴを左揃え */
}

.footer-links {
    display: flex; /* 4項目を横並びにする */
    gap: 50px; /* 項目間の間隔を設定 */
}

    .footer-links a {
        color: white; /* リンクの文字色を白に設定 */
        text-decoration: none; /* 下線を削除 */
        font-size: 1.3em; /* フォントサイズ */
    }


    .footer-links .button_toraial {
        border: none;
        padding: 10px 50px; /* ボタンの内側余白 */
        background: linear-gradient(to right, #8fc31f, #00a7db); /* ボタンの背景色 */
        color: white; /* ボタン内の文字色 */
        font-size: 1.3em; /* フォントサイズ */
        cursor: pointer; /* ホバー時にカーソルを変更 */
        border-radius: 25px;
        text-decoration: none;
    }
    .footer-text {
        align-self: flex-start; /* テキストを左揃え */
        font-size: 0.8em; /* フォントサイズを少し小さく */
    }

.hidden {
    display: none;
}

@media (max-width: 1200px) {
    .buttons {
        left: 59.8%;
    }
    .plan .img-hukidasi {
        left: 30%;
    }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .usage-carousel-item {
        flex: 0 0 350px;
        height: 250px;
    }
    .logo img {
        width: 300px;
    }
    @keyframes slideUsageInfinite {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-380px * 6));
        }
    }
    .plan .img-hukidasi {
        left: 30%;
        top: -16%;
    }
}


/* レスポンシブ対応 */
@media (max-width: 880px) {
    header {
        height: 150px;
        flex-direction: column;
        justify-content: center;
        background-color: white; /* モバイルでは少し濃く */
        padding:0;
    }
    .logo{
        padding:0;
    }
    .logo img {
        padding:0;
        width: 250px;
    }
    .unified-text-overlay {
        padding: 30px 20px;
        padding-top: 140px; /* モバイル用パディング調整 */
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .header_text {
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

        nav ul li {
            margin-right: 15px;
        }

    .content-section {
        padding: 60px 20px;
    }

    .trial_circle {
        width: 250px;
        height: 70px;
    }

    .function-title {
        font-size: clamp(1.6rem, 4vw, 1.8rem);
        justify-content:center;
        padding: 0 5px;
    }

    .function-description {
        padding: 15px;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        max-width: 100%; /* 画面幅の90% */
        font-weight:bold;
    }
    .features-section {
        flex-direction: column; /* 縦並びに変更 */
        gap: 30px;
        margin: 40px auto;
        padding: 0 15px;
    }

    .features-grid {
        grid-template-columns: 1fr; /* 1列に変更 */
        grid-template-rows: repeat(4, auto); /* 4行に変更 */
        gap: 25px;
        margin: 40px auto;
        padding: 0 15px;
    }

    .feature-item {
        padding: 20px 15px;
    }

    .feature-image {
        aspect-ratio: 16/9; /* 同じ比率維持 */
        margin-bottom: 15px;
    }

    .feature-description h3 {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        margin-bottom: 10px;
    }

    .feature-description p {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
    }

    .usage-carousel-container {
        margin: 0 0;
        background-color: #d3d3d3;
    }

    .usage-carousel-item {
        flex: 0 0 300px;
        height: 220px;
    }

        .usage-carousel-item h4 {
            font-size: clamp(0.9rem, 2.2vw, 1.1rem);
            padding: 15px;
        }

    .table-container{
        flex-wrap:wrap
    }


    @keyframes slideUsageInfinite {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-330px * 6));
        }
    }

    .buttons button:first-child {
        width: 55px;
        height: 25px;
        margin-right: 0; /* 左端ボタンの右の余白を削除 */
        border-top-left-radius: 5px; /* 角を丸めない */
        border-bottom-left-radius: 5px;
    }

    .buttons button:nth-child(2) {
        width: 55px;
        height: 25px;
        margin-left: 0; /* 真ん中ボタンの左の余白を削除 */
        margin-right: 0px; /* 真ん中ボタンと右端のボタンの間隔 */
        border-top-right-radius: 5px; /* 角を丸めない */
        border-bottom-right-radius: 5px;
    }
    .buttons {
        left: 60%;
        transform: translateX(-50%) translateY(-15px);
        top: -8%;
    }
    .plan .img-hukidasi {
        left: 30%; /* 20.8% → calc(50% - 19% - 4px) に変更 */
        top: -16%;
        width: 18%;
    }
}

@media (max-width: 768px) {
    .buttons {
        left: 60%;
        transform: translateX(-50%) translateY(-15px);
        top: -8%;
    }
    .plan .img-hukidasi {
        left: 30%; /* 20.8% → calc(50% - 19% - 4px) に変更 */
        top: -16%;
        width: 18%;
    }
}

@media (max-width: 600px) {
    .plan .img-hukidasi {
        left: 29%; /* 20.8% → calc(50% - 19% - 4px) に変更 */
        top: -16%;
        width: 18%;
    }
}


@media (max-width: 480px) {
    header {
        height: 180px;
        padding: 0px 5px;
        background-color: rgba(0, 0, 0, 0.4);
    }
    .buttons {
        left: 60.2%;
        transform: translateX(-50%) translateY(-10px);
        top: -6%;
    }
    .plan .img-hukidasi {
        left: 28%; /* 20.5% → calc(50% - 19% - 2px) に変更 */
        top: -16%;
        width: 20%;
    }
    .unified-text-overlay {
        padding: 20px 15px;
        padding-top: 120px;
    }

    .header_text p {
        margin-bottom: 10px;
    }

    .header_text .sub-text {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .trial_circle {
        width: 200px;
        height: 60px;
    }

        .trial_circle p {
            font-size: 1.1rem;
        }

    .function-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        justify-content:center;
    }

    .features-section {
        gap: 25px;
        margin: 30px auto;
        padding: 0 10px;
    }

    .features-grid {
        gap: 20px;
        margin: 30px auto;
        padding: 0 10px;
    }

    .feature-item {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .feature-image {
        aspect-ratio: 16/9; /* 同じ比率維持 */
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .feature-description h3 {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 8px;
    }

    .feature-description p {
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
        line-height: 1.4;
    }

    .usage-carousel-item {
        flex: 0 0 250px;
        height: 180px;
    }

        .usage-carousel-item h4 {
            font-size: clamp(0.8rem, 2.5vw, 1rem);
            padding: 12px;
        }

    @keyframes slideUsageInfinite {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-280px * 6));
        }
    }

    .plan .img-hukidasi {
        left: 11%; /* フキダシ画像の位置微調整 */
    }


    /* より小さな画面での調整 */
    @media (max-width: 320px) {
        .text_shadow {
            font-size: clamp(2rem, 8vw, 4rem);
        }

        .unified-text-overlay {
            padding-top: 110px;
        }
    }

    /* ヘッダーホバー効果（オプション） */
    header:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    /* スムーズスクロール対応 */
    html {
        scroll-behavior: smooth;
    }
}
