/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* スムーズスクロールを有効にする */
}

body {
    font-family: 'Inter', sans-serif;
    /* Google FontsのInterを使用 */
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* コンテナ (コンテンツの最大幅と中央揃え) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-color: transparent;
    /* 初期は透過 */
    box-shadow: none;
    /* 初期は影なし */
    padding: 15px 0;
    position: fixed;
    /* ヘッダーを固定 */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    /* 他の要素の上に表示 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* スムーズな切り替え */
}

/* ヘッダーがスクロールされた時のスタイル */
.header.scrolled {
    background-color: #fff;
    /* 背景を白に */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* 影を追加 */
}

.header-content {
    display: flex;
    justify-content: space-between;
    /* ロゴとナビを左右に配置 */
    align-items: center;
}

.header .logo img {
    height: 50px;
    /* ロゴ画像の高さ */
    border-radius: 8px;
    /* 角丸 */
}

.header .nav ul {
    display: flex;
    align-items: center;
    gap: 15px;
    /* ナビアイテム間のスペース */
}


.header-content {
    display: flex;
    justify-content: space-between;
    /* ロゴとナビを左右に配置 */
    align-items: center;
}

.header .logo img {
    height: 50px;
    /* ロゴ画像の高さ */
    border-radius: 8px;
    /* 角丸 */
}

.header .nav ul {
    display: flex;
    align-items: center;
    gap: 15px;
    /* ナビアイテム間のスペース */
}

.header .nav ul li a {
    color: #555;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
    border-radius: 8px;
    /* 角丸 */
}

.header .nav ul li a:hover {
    color: #44ABE6;
    /*background-color: #e9f5ff;*/
}

/* お問い合わせボタン風リンク */
.header .nav ul li .contact-button ,.option .contact-button{
    background-color: #B9FBC0;
    color: #3C3C3C;
    padding: 10px 20px;
    border-radius: 25px;
    /* 角丸ボタン */
    font-weight: 600;
    /*box-shadow: 0 4px 8px rgb(34, 255, 152);*/
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header .nav ul li .contact-button:hover , .option .contact-button:hover {
    background-color: #44ABE6;
    /* box-shadow: 0 6px 12px rgba(0, 160, 112, 0.3);*/
    color: #fff;
}


/* デモサイトボタン風リンク */
.header .nav ul li .demo-button {
    background-color: #FF6C89;
    color: #3C3C3C;
    padding: 10px 20px;
    border-radius: 25px;
    /* 角丸ボタン */
    font-weight: 600;

    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header .nav ul li .demo-button:hover {
    background-color: #F8C435;
    color: #fff;
}


/* メインコンテンツのパディング (固定ヘッダーの下にコンテンツが隠れないように) */
.main-content {
    padding-top: 0px;
    /* ヘッダーの高さに合わせて調整 */
}

/*共通*/
a:link {
    /*color: #333;*/
}

a:hover {
    color: #44ABE6;
}

.blue {
    color: #44ABE6 !important;
}

.green {
    color: #00B0B0 !important;
}

.red {
    color: #c52f2f;

}

.muted-red {
    color: #da5b5b;


}

.pink {
    color: #FF6C89;

}

.center {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.br-sp {
    display: none;
}

.text-left {
    text-align: left;
}

.mt_5vh {
    margin-top: 5vh;
}

.mt_10vh {
    margin-top: 10vh;
}

ul.dot-list {
    list-style-type: disc;
    padding-left: 1.5em;
    font-size: 0.9rem;
}

ol {
    list-style-type: decimal;
    /* 数字 */
    padding-left: 1.5em;
}

.white-circle {
    list-style-type: circle;
    /* 白丸 */
    padding-left: 2em;

}

.white-circle li {
    line-height: 1.5;

}


hr {
    border: none;
    border-top: 1px solid #333;
    margin: 1em 0;
}

@media (max-width: 540px) {
    .br-sp {
        display: block;
    }
}

/* セクションスタイル */
.section {
    padding: 120px 0;
    margin-bottom: 0;
    /* セクション間のマージンをなくす */
}

.section h2 {
    font-size: 2.8rem;
    color: #00B0B0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* 半透明の角丸背景 */

.semi-transparent-bg {
    background-color: rgba(255, 255, 255, 0.7);
    /* 白を70%の透明度で設定 */
    border-radius: 15px;
    /* 角丸の半径 */
    padding: 50px 20px;
    margin-bottom: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 軽い影を追加して浮き上がらせる */
}

/*icon*/
.fa {
    margin-right: 10px;
}

.fa-check-circle {
    color: #44ABE6;
}

/*デモサイトへのリンク*/
.link-demo-button {
    display: block;
    background-color: #FF6C89;
    color: #3C3C3C;
    padding: 10px 20px;
    border-radius: 25px;
    /* 角丸ボタン */
    font-weight: 600;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
    margin: 0 auto;

}


.link-demo-button:hover {
    background-color: #F8C435;
    color: #fff;
}

#tab1 .link-demo-button {
    background-color: #44ABE6;
    color: #fff;
}

#tab1 .link-demo-button:hover {
    background-color: #35599c;
    color: #fff;
}

#tab2 .link-demo-button {
    background-color: #da5b5b;
    color: #fff;
}

#tab2 .link-demo-button:hover {
    background-color: #c52f2f;
    color: #fff;
}



/* プロモーションムービーセクション */
.movie-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* ビューポートの高さに合わせる */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.movie-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    /* コンテンツの下に配置 */
}

.movie-section video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* 動画がセクション全体を覆うように */
}

.movie-section .movie-overlay {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    /* オーバーレイで動画を見やすく */
    padding: 30px 40px;
    border-radius: 10px;
}

.movie-section h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.movie-section p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ファーストビューセクション */
.first-view-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* ブラウザによって全画面表示 */
    overflow: hidden;
    /* はみ出しを隠す */
    background-image: url('../img/bg/meta.jpg');
    /* 背景画像 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.first-view-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff4d;
    /* 背景画像を少し明るくするオーバーレイ */
    z-index: 1;
}

.first-view-section .fv-content {
    position: relative;
    z-index: 2;
    /* 背景オーバーレイより手前に */
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 1200px;
    /* コンテンツの最大幅 */
    margin: 0 auto;
    padding: 10vh 40px 0 40px;
}

.fv-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fv-image {
    max-width: 100%;
    height: auto;
    display: block;
    /*border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);*/
}

.fv-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* ロゴとQR/キャッチフレーズグループを縦に */
    align-items: center;
    /* 中央揃え */
    gap: 20px;
    padding-left: 40px;
    /* 左の画像との間隔 */
}

/* QRコードとキャッチフレーズを横並びにするためのグループ */
.fv-qr-text-group {
    display: flex;
    align-items: center;
    /* 垂直方向中央揃え */
    gap: 20px;
    /* QRコードとテキストの間隔 */
    margin-top: 20px;
    /* ロゴとの間隔 */
}

.fv-logo {
    max-width: 500px;
    height: auto;
}

.fv-qr-code {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

p.fv-catchphrase {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: #666;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    /* margin-top: 20px; /* fv-qr-text-groupに移動したので削除 */
}

/* color_wave.png のコンテナとアニメーション */
.color-wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 600px;
    /*height: 50%;/*250px; /* 波の画像の高さに合わせて調整 */
    overflow: hidden;
    z-index: 0;
    /* FVコンテンツより奥に */
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    /* アニメーションのために幅を広げる */
    height: 100%;
    /*object-fit: cover;*/
    opacity: 0.8;
    animation: wave-scroll 25s linear infinite;
    /* 横スクロールアニメーション */
}

/* 動画再生とキャッチフレーズを横並びにするためのグループ */
.fv-play-text-group {
    display: flex;
    /*align-items: center; /* 垂直方向中央揃え */
    gap: 20px;
    /* QRコードとテキストの間隔 */
    position: absolute;
    /* 親要素 (.first-view-section) に対して絶対配置 */
    bottom: 50px;
    /* FVセクションの下から50px */
    left: 50%;
    /* 水平方向中央 */
    transform: translateX(-50%) translateY(30%);
    /* 中央揃えのための調整 */
    width: 100%;
    /* コンテンツの幅に合わせる -> 親の幅いっぱいに広げる */
    justify-content: center;
    /* flexアイテムを水平中央に配置 */
    z-index: 4;
    /* 波の画像 (z-index:3) より手前に */
}


/* 波のアニメーションを停止させるためのクラス */
.color-wave-container.no-wave-animation .color-wave {
    animation: none;
    /* アニメーションを停止 */
    transform: translateX(0);
    /* 位置をリセット */
    width: 100%;
    /* 幅を通常の100%にリセット */
}


@keyframes wave-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* 幅の半分だけ移動 */
    }
}

.wave-content {
    position: relative;
    z-index: 4;
    /* 波の画像より手前に */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.wave-image {
    max-width: 150px;
    height: clamp(5rem, 3.5vw, 12rem);

    margin-bottom: 10px;
    border-radius: 8px;
    /*box-shadow: 0 5px 15px rgba(0,0,0,0.2);*/
}

p.wave-text {
    /*font-size: 3rem !important;*/
    font-size: clamp(1.4rem, 3.5vw, 3rem);
    line-height: 1;
    font-family: 'Zen Antique Soft';
    font-weight: 400;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

.wave-text-small {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);

}

@media (max-aspect-ratio: 9/16) {
    .fv-play-text-group {
        transform: translateX(-50%) translateY(30%) !important;
    }

    .first-view-section {
        flex-direction: column;
        /* 縦並びにする */
        padding: 30vh 0;
        height: auto;
        /* 高さを自動調整 */
        min-height: 100vh;
        /* 少なくともビューポートの高さ */
    }

    .first-view-section .fv-content {
        flex-direction: column-reverse;
        /* ここを変更: 右のコンテンツが上に表示されるように */
        padding: 0 20px;
        gap: 0px;
        /* 縦方向の隙間 */
    }

    .fv-left {
        width: 100%;
    }

    .fv-right {
        width: 100%;
        padding-left: 0;
        /* パディングをリセット */
        gap: 15px;
    }

    .fv-image {
        width: 80%;
    }

    .fv-play-text-group {
        display: flex;
        align-items: center;
    }

    .first-view-section h1 {
        font-size: 3rem;
    }

    p.fv-catchphrase {
        font-size: 1rem;
    }


    .fv-qr-text-group {
        gap: 10px;
    }


}



/*PLAYMOVIEアイコン*/
/* 親要素のスタイル */
.kv__play-video {
    position: relative;
    /* 子要素の絶対配置の基準にする */
    display: block;
    /* 新しいサイズ設定 */
    width: clamp(106.67px, 10.42vw, 200px);
    /* プレイボタン全体の幅 */
    height: clamp(5rem, 10vw, 12rem);
    max-width: 150px;
    border-radius: 8px;
    /* 角丸を適用 */
    margin-bottom: 10px;

}

/* 回転アニメーションのキーフレーム */
@keyframes rotate-anim {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 外側の円形画像のスタイル */
.kv__play-video__circle {
    -webkit-animation: rotate-anim 15s infinite linear;
    animation: rotate-anim 15s infinite linear;
    width: 100%;
    /* 親要素の幅に合わせる */
    height: 100%;
    /* 親要素の高さに合わせる */
    object-fit: contain;
    /* 画像全体を表示 */
}

/* 中央の再生アイコンのスタイル */
.kv__play-video__play {
    position: absolute;
    /* 親要素の .kv__play-video を基準に絶対配置 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 中央揃え */
    width: clamp(38.4px, 10vw, 150px);
    /* 再生アイコンの幅 */
    aspect-ratio: 1;
    /* 正方形を維持 */
}

/* メディアクエリ（スマートフォン向け） */
@media screen and (max-width: 920px) {
    .kv__play-video {
        width: 23vw;
        height: auto;
        /* 高さを自動調整 */
    }

    .kv__play-video__play {
        width: clamp(38.4px, 23vw, 150px);
    }
}

/*YouTubeモーダル表示*/
.kv__modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .7);
    z-index: 100000
}

.kv__modal__video {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 100;
    margin: auto;
    width: clamp(640px, 62.5vw, 1200px);
    aspect-ratio: 16/9
}

.kv__modal__video iframe {
    width: 100%;
    height: 100%
}

@media screen and (max-width: 767px) {
    .kv__modal__video {
        width: 90%
    }
}




/* TeRA Servantとは？背景 */
.about-bg {
    position: relative;
    /* pseudo-elementを配置するために必要 */
    overflow: hidden;
    /* はみ出しを防ぐ */
    z-index: 0;
    /* コンテンツが手前に来るように */
    /*display: flex; /* コンテンツを中央に配置する場合 */
    align-items: center;
    justify-content: center;
    min-height: 500px;
    /* パララックス効果が見えるように高さを確保 */
}

.about-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg/colorful_powder.jpeg');
    /* 実際の背景画像に置き換える */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* JSで制御するため削除 */
    filter: blur(5px);
    /* ぼかし効果 */
    z-index: -1;
    /* コンテンツの下に配置 */
    transform: scale(1.05) translateY(var(--parallax-y, 0));
    /* ぼかしによる端の切れを隠すため少し拡大し、JSでY軸移動を制御 */
    will-change: transform;
    /* パフォーマンス最適化 */
}

/* 白いオーバーレイ */
.about-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    /* 白い半透明のオーバーレイ */
    z-index: -1;
    /* コンテンツの下に配置 */
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: left;
    color: #3C3C3C;
}

.about-section img {
    width: 100%;

}


/*はじまる*/
.find-code-text {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 3rem);
    font-weight: bold;
    color: #F8C435;
    /* 白色のテキスト */
    text-shadow: 2px 2px 5px rgba(251, 255, 0, 0.904);
    /* 濃い影 */
    position: absolute;
    /* .fv-right を基準に絶対配置 */
    transform: translateY(-50%) rotate(-10deg);
    /* 垂直中央揃えと右上がりの傾き */
    white-space: nowrap;
    /* テキストが改行されないように */
    margin-top: 5vh;
    margin-left: 2vh;
}

.find-badge-group {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    gap: 20px;
    /* バッジとテキストの間に隙間 */
    margin-top: 30px;
    /* 上部に余白 */
    flex-wrap: wrap;
    /* 小さい画面で折り返す */
    justify-content: center;
    /* 水平中央揃え */

}

.badge {
    width: 150px;
    height: 150px;
    background-color: rgba(255, 2, 2, 0.7);
    /* 赤を70%の透明度で設定 */
    border-radius: 50%;
    /* 正円に */
    display: flex;
    /* テキストを中央に配置するため */
    justify-content: center;
    /* 水平方向中央揃え */
    align-items: center;
    /* 垂直方向中央揃え */
    color: #fff;
    /* テキストの色 */
    font-weight: bold;
    font-size: 0.9rem;
    /* テキストサイズ調整 */
    text-align: center;
    /* 複数行の場合の中央揃え */
    line-height: 1.2;
    /* 行の高さ調整 */
    padding: 5px;
    /* テキストが端に寄りすぎないように */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 影を追加 */
    flex-shrink: 0;
    /* 縮小されないように */
    padding: 10px;
}

/* find-badge-group 内のPタグのスタイル */
.find-badge-group p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
    /* テキストの最大幅 */
    text-align: left;
    /* テキストは左揃え */
}

/* スマートフォン向け調整 480 */
@media (max-width: 540px) {
    .find-badge-group {
        display: flex;
        /* flex-direction: column;
        gap: 15px;*/
    }

    .badge {
        width: 100px;
        height: 100px;
        font-size: 0.8rem;
    }

    .find-badge-group p {
        font-size: 1rem;
        text-align: left;
    }
}



/* 困っていませんか */
.about-comparison {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* アイテム間の隙間 */
    margin-bottom: 40px;
    /* 下のコンテンツとの間隔 */
    flex-wrap: wrap;
    /* スマホで折り返す */
}

.about_before,
.about_after {
    flex: 1;
    /* 利用可能なスペースを均等に分配 */
    min-width: 300px;
    /* 最小幅 */
    max-width: 45%;
    /* 親要素の45%の最大幅 */
    background-color: rgba(255, 255, 255, 0.7);
    /* 半透明の白背景 */
    border-radius: 15px;
    /* 角丸 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 軽い影 */
    overflow: hidden;
    /* h3の背景がはみ出さないように */
    display: flex;
    /* h3とulをflexコンテナとして扱う */
    flex-direction: column;
    /* 縦並び */
    align-items: center;
    /* 水平中央揃え */
}

.about_before h3,
.about_after h3 {
    width: 100%;
    /* 親要素の幅いっぱいに広げる */
    padding: 15px 20px;
    color: #fff;
    /* テキスト色 */
    text-align: center;
    margin-top: 0;
    /* デフォルトマージンをリセット */
    margin-bottom: 20px;
    /* リストとの間隔 */
    font-size: 1.5rem;
}

.about_before h3 {
    background-color: #999;
    /* 従来の設備管理の見出し背景色 */
    border-radius: 15px 15px 0 0;
    /* 上部のみ角丸 */
}

.about_after h3 {
    background-color: #44ABE6;
    /* TeRA Servantの見出し背景色 */
    border-radius: 15px 15px 0 0;
    /* 上部のみ角丸 */
}

.about_before ul,
.about_after ul {
    list-style: none;
    /* デフォルトのリストスタイルを無効化 */
    padding: 0 20px 20px;
    /* 内側の余白 */
    width: 100%;
    /* リストが親要素の幅いっぱいに広がるように */
}

.about_before ul li,
.about_after ul li {
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    /* リストアイテム間の区切り線 */
    color: #3C3C3C;
    text-align: left;
    /* テキストを左揃えに */
}

.about_before ul li:last-child,
.about_after ul li:last-child {
    border-bottom: none;
    /* 最後のアイテムの下線はなし */
}





/* 理念 */
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP');

#philosophy {
    position: relative;
    align-items: center;
    background-color: #5f5f5f;
    color: white;
    padding: 100px 0;
}

/* 右下に画像配置・回転 */
#philosophy::after {
    content: "";
    position: absolute;
    bottom: 70px;
    right: 50px;
    width: 300px;
    /* 画像サイズ*/
    height: 100px;
    background-image: url("../img/bgimg_troa.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    transform: rotate(-20deg);
    opacity: 0.2;
    /* 透過 */
    pointer-events: none;
    /* クリックなど無効に */
    z-index: 0;
}

/* セクション内のコンテンツを前面に */
#philosophy>.container {
    position: relative;
    z-index: 1;
}


.philosophy {
    display: flex;
    justify-content: center;
    /*センタリング*/
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy img {
    /* 画像のサイズ調整 */
    height: auto;
    max-width: 300px;
    /* ロゴの幅を調整 */
    object-fit: contain;
    margin-right: 20px;
}

.philosophy-divider {
    width: 4px;
    /* 縦線の太さ */
    max-height: 500px;
    /* 縦線の高さを調整（テキストの高さに合わせる） */
    background-color: white;
    /* 縦線の色 */
    margin: 0 4px;
    /* 画像とテキストの間のスペース */
}

.philosophy p {
    margin: 0;
    padding-left: 20px;
    /* 縦線とテキストの間のスペース */
    font-family: 'Noto Sans JP';
    font-weight: 200;
    /* フォントの太さを調整（例: 700で太字） */
    line-height: 2;
}

/* 特長セクション */
.features-section {
    position: relative;
    /* 疑似要素の位置決めに必要 */
    min-height: 100vh;
    /* 背景画像に関する他のプロパティ */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.features-section::before {
    content: '';
    /* 疑似要素には必須 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg/cyber.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
    /* セクションのコンテンツの裏に配置 */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    /* 3列（レスポンシブ） */
    gap: 30px;
}


.features-section h2 {
    color: #A66CFF;
}


.feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 50%;
    /* 正円に */
    border: 3px solid #A66CFF;
    /* 枠線 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    /* 幅と高さを同じにする */
    display: flex;
    /* コンテンツを中央に配置するためにflexboxを使う */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-item .feature-icon {
    font-size: 3rem;
    color: #A66CFF;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #A66CFF;
}

.feature-item p {
    font-size: 1rem;
    color: #666;
}

/* 機能紹介セクション (タブ切り替え) */
.functions-section {
    background-color: #FFFFFB;
}

.functions-section h3 {
    text-align: center;
    margin-bottom: 50px;
}

.policies a,
small a {
    text-decoration: underline;

}

.tabs {
    max-width: 900px;
    margin: 0 auto;
    background-color: #FFFFFB;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 50px;
}

.tab-buttons {
    display: flex;
    /*border-bottom: 1px solid #ddd;*/
}

.tab-button {
    flex: 1;
    padding: 18px 25px;
    border: none;
    background-color: #f0f0f0;
    color: #999;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 10px 10px 0 0;
    /* 上部のみ角丸 */
}

.tab-button:not(:last-child) {
    border-right: 1px solid #ddd;
    /* ボタン間の区切り線 */
}

/* 各タブボタンのアクティブ時のスタイルを個別に指定 */
.tab-button.active[data-tab="tab1"] {
    background-color: #E5EEFA;
    /* 保全担当者向け機能のアクティブ色 */
    color: #555;

}

.tab-button.active[data-tab="tab2"] {
    background-color: #FFF8F8;
    /* 総合管理機能のアクティブ色 */
    color: #555;

}

.tab-content {
    padding: 30px;
    display: none;
    /* 初期状態では非表示 */
}

.tab-content#tab1 {
    background-color: #E5EEFA;
}

.tab-content#tab2 {
    background-color: #FFF8F8;
}

.tab-content.active {
    display: block;
    /* activeクラスが付いたら表示 */
}

.tab-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.tab-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.tab-content ul li {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.tab-content ul li:last-child {
    border-bottom: none;
}

.tab-content ul li i {
    color: #28a745;
    /* チェックアイコンの色 */
    margin-right: 10px;
    font-size: 1.2rem;
}

.tab-paragraph {
    padding: 20px 0;
    margin: 20px 0;


}

.tab-content p {
    font-size: 1rem;
    text-align: left;
    color: #555;
}

.tab-content small {
    color: #949494;
}

.tab-img-group {
    display: flex;
    align-items: center;
    /* 垂直方向中央揃え */
    gap: 20px;
    /* QRコードとテキストの間隔 */
    margin-top: 20px;
    /* ロゴとの間隔 */
}

.functions-section h4 {
    font-size: 1.6rem;
    text-align: left;
}

.functions-section h5 {
    font-size: 1.3rem;
    margin-bottom: 1.5vh;
    text-align: left;
}

/*.tab-img-group img{
    width: 50%;
}*/
.demo_sp {
    max-height: 300px;
}

.demo_pc {
    max-width: 300px;
}

.demo_img_right {
    margin-left: auto;
}

img.demo_img_right {
    max-height: 300px;
}

.functions-table,
.option-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
}

.functions-table th,
.option-table th {
    border: 1px solid #ddd;
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.8rem;
    background-color: #44ABE6;
    color: #fff;
}

.functions-table td,
.option-table td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.8rem;
}

.functions-table td:first-child,
.option-table td:first-child {
    font-weight: bold;
    width: 20%;
    white-space: nowrap;
    background-color: #f4fbfc;
}

section.option .container {
    max-width: 800px;
    margin: 0 auto;
}

/* スマホ */
@media (max-width: 768px) {
    .functions-section h4 {
        font-size: 1.2rem;
        text-align: left;
    }

    .functions-section h5 {
        font-size: 1rem;
        margin-bottom: 1.5vh;
        text-align: left;
    }


    .functions-table,
    .functions-table tr,
    .functions-table td {
        display: block;
        width: 100%;
    }

    .functions-table td {
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 8px 12px;
    }

    .functions-table td:first-child {
        background-color: transparent;
        font-weight: bold;
        padding-top: 16px;
    }

    .option-table-wrapper {
        overflow-x: auto;
    }

    .option-table-wrapper table {
        min-width: 600px;
    }

    /* 1列目だけ固定 */
    .option-table-wrapper th:first-child {
        position: sticky;
        left: 0;
        background: #44ABE6;
        /* 固定列の背景 */
        z-index: 1;
    }

    .option-table-wrapper td:first-child {
        position: sticky;
        left: 0;
        background: #f4fbfc;
        /* 固定列の背景 */
        z-index: 1;
    }

}


/*オプション*/

.option h3 {
    margin-top: 2em;
    font-size: 1.5rem;
    color: #44ABE6;
}

.option hr {
    margin: 2em 0;
}

.policy-links {
    display: flex;
    gap: 10px;
    /* ボタン間の余白 */
    flex-wrap: wrap;
    /* 横幅が足りない時は折り返し */
}

.policy-links a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #44ABE6;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    /* 角丸 */
    font-size: 0.9rem;
    transition: background 0.3s;
}

.policy-links a:hover {
    background-color: #2c8bc2;
}

.option-caution {
    background-color: #ffffff;
    padding: 20px;
    color: #333;
    font-size: 1rem;
    line-height: 2;

}

/* スマホ時は縦並び */
@media (max-width: 768px) {
    .policy-links {
        flex-direction: column;
        gap: 12px;
    }

    .policy-links a {
        text-align: center;
        /* ボタン内の文字を中央寄せ */
    }
}



/*比較*/
.price-table-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    /*border-radius: 10px;*/
    /*box-shadow: 0 5px 15px rgba(0,0,0,0.1);*/
    /*overflow: hidden; /* 角丸のために必要 */
    overflow-x: auto;
    /* テーブルがはみ出す場合に横スクロールを許可 */
}

/*基本テーブル*/
.basic-table {
    width: 100%;
    border-collapse: collapse;
    /* セルの境界線を結合 */
    min-width: 600px;
    /* テーブルが小さくなりすぎないように最小幅を設定 */
    font-size: 0.8rem;
}

.basic-table th,
.basic-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.basic-table th {
    background-color: #f0f0f0;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    /* ヘッダーが改行されないように */
}

.basic-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
    /* 偶数行の背景色 */
}

/*.basic-table tbody tr:hover {
    background-color: #eef7ff;
}

/* モバイル向け調整 */
@media (max-width: 768px) {
    .basic-table {
        min-width: 100%;
        /* スマホでは幅を100%に */
    }

    .basic-table th,
    .basic-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .tab-img-group {
        flex-direction: column;
        align-items: center;
    }

    .demo_img_right {
        margin-left: 0%;
    }

    .functions-section h5 {
        text-align: center;
    }

    .basic-table th:last-child,
    .basic-table td:last-child {
        min-width: 200px;
    }


}

/* よくある質問 */
.faq-section {
    background-color: #f0f8ff;
    /* 軽い背景色 */
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #fff;
    border-radius: 10px;
    /* 角丸 */
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    /* 角丸からはみ出さないように */
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 25px;
    background-color: #44ABE6;
    /* Qの背景色 */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 10px;
    /* ヘッダーも角丸に */
}

.accordion-item.active .accordion-header {
    border-bottom-left-radius: 0;
    /* 開いた時に下部の角丸を解除 */
    border-bottom-right-radius: 0;
    /* 開いた時に下部の角丸を解除 */
}

.accordion-header:hover {
    background-color: #368bc7;
    /* ホバー時の色 */
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.accordion-icon::before {
    width: 2px;
    height: 12px;
}

.accordion-icon::after {
    width: 12px;
    height: 2px;
}

.accordion-item.active .accordion-icon::before {
    transform: translate(-50%, -50%) rotate(90deg);
    /* "+"が横棒になるように */
}

.accordion-item.active .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(180deg);
    /* 横棒はそのまま */
}

.accordion-content {
    box-sizing: border-box;
    background-color: #fefefe;
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/*2行目の文字を揃える*/
.indented-text {
    text-indent: -1rem;
    padding-left: 3rem;
}


.accordion-content p {
    padding: 20px 0;
}


@media (max-width: 480px) {
    .accordion-header {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .accordion-content p {
        font-size: 0.9rem;
    }
}





/* 関連情報リンク */
.external-links {
    background-color: #f9f9f9;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.link-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 100px;
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.link-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.link-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.link-item p {
    font-size: 0.9rem;
    color: #666;
}


/* フッター */
.footer {
    background-color: #4b4b4b;
    color: #eee;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-icon {
    font-size: 2.5rem;
    color: #007bff !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-icon:hover {
    color: #0056b3;
    transform: translateY(-5px);
}

.footer p {
    font-size: 0.9rem;
    color: #bbb;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-links a {
    color: #eee;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: #eee;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
    transform: translateY(-3px);
}


/*特定商取引*/
.legal-caution {
    background-color: #FCFCFC;
    padding: 20px;
    color: #333;
    font-size: 1rem;
    line-height: 2;

}

/*規約*/
.policies h3 {
    color: #292929;
    margin: 1rem 0;

}

.policies h4 {
    color: #292929;
    margin: 1rem 0;
    font-size: 1rem;

}

.policies p {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;

}

.policies {}

section.policies .container {
    max-width: 800px !important;
}

section.service .basic-table {
    margin: 1em 0;
}

section.policies ul.dot-list {
    font-size: 0.9rem;
    padding-left: 1.5em;
}

section.policies ol {
    list-style-type: decimal;
    /* 数字 */
    font-size: 0.9rem;
    padding-left: 1.5em;
}

section.policies .white-circle {
    list-style-type: circle;
    /* 白丸 */
    padding-left: 2em;

}

section.policies .white-circle li {
    font-size: 0.9rem;
    line-height: 1.5;
}


/* =========================================
   メディアクエリ (レスポンシブ対応)
   ========================================= */

/* ハンバーガーメニューの基本スタイル (デフォルトで非表示) */
.hamburger-menu {
    display: none;
    /* デスクトップでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    /* ナビゲーションより手前に */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    /* バーの色 */
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* ハンバーガーメニューがアクティブになった時のアニメーション */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* タブレット向け (920px 以下) */
@media (max-width: 920px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: row;
        /* ロゴとハンバーガーを横並びに保つ */
        justify-content: space-between;
        /* 左右に配置 */
        width: 100%;
        /* 幅を確保 */
    }

    .header .nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* 初期は画面外に配置 */
        width: 70%;
        /* モバイルメニューの幅 */
        max-width: 300px;
        /* 最大幅を設定 */
        height: 100%;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        padding-top: 80px;
        /* ヘッダーや閉じるボタンのためのスペース */
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 中央揃え */
        justify-content: flex-start;
        /* 上から配置 */
    }

    .header .nav.nav-open {
        right: 0;
        /* スライドインして表示 */
        overflow-y: auto;
        /* スクロール */
    }

    .header .nav ul {
        flex-direction: column;
        /* ナビアイテムを縦並びに */
        width: 100%;
        padding: 20px 0;
        gap: 0;
        /* アイテム間のギャップをリセット */
    }

    .header .nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
        /* マージンをリセット */
    }

    .header .nav ul li a {
        display: block;
        /* リンク全体をクリック可能に */
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        /* アイテム間の区切り線 */
        color: #333;
        /* リンクの色 */
        border-radius: 0;
        /* 角丸をリセット */
    }

    .header .nav ul li:last-child a {
        border-bottom: none;
        /* 最後のアイテムの下線はなし */
    }

    .header .nav ul li .contact-button {
        margin: 10px 0;
    }

    .hamburger-menu {
        display: block;
        /* ハンバーガーメニューを表示 */
        position: relative;
        /* 相対位置に設定 */
    }

    /* ヘッダーがスクロールされた時のハンバーガーメニューのバーの色 */
    .header.scrolled .hamburger-menu .bar {
        background-color: #333;
        /* 白背景時にバーの色を濃く */
    }

    /* ヘッダーが透過時のハンバーガーメニューのバーの色 */
    .header:not(.scrolled) .hamburger-menu .bar {
        background-color: #333;
        /* 透過背景時にバーの色を白く */
    }


    .main-content {
        padding-top: 90px;
        /* ヘッダーの高さに合わせて調整 */
    }

    .movie-section h2 {
        font-size: 2.5rem;
    }

    .movie-section p {
        font-size: 1.2rem;
    }

    .first-view-section {
        flex-direction: column;
        /* 縦並びにする */
        padding: 80px 0;
        height: auto;
        /* 高さを自動調整 */
        min-height: 100vh;
        /* 少なくともビューポートの高さ */
    }

    .first-view-section .fv-content {
        flex-direction: column-reverse;
        /* ここを変更: 右のコンテンツが上に表示されるように */
        padding: 0 20px;
        gap: 0px;
        /* 縦方向の隙間 */
    }

    .fv-left {
        width: 100%;
    }

    .fv-right {
        width: 100%;
        padding-left: 0;
        /* パディングをリセット */
        gap: 15px;
    }

    .fv-image {
        /*width: 80%;*/
        width: 60%;

    }

    .fv-play-text-group {
        display: flex;
        align-items: center;
    }

    .first-view-section h1 {
        font-size: 3rem;
    }

    p.fv-catchphrase {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .about-section p {
        font-size: 1rem;
    }

    .feature-item {
        padding: 25px;
    }

    .feature-item .feature-icon {
        font-size: 2.5rem;
    }

    .feature-item h3 {
        font-size: 1.3rem;
    }

    /*ファーストビューセクション*/
    .fv-qr-text-group {
        /*display:block;*/
        align-items: center;
        text-align: left;
        margin-bottom: 2vh;


    }

    .fv-logo {
        max-width: 300px;
    }


    .tab-button {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .tab-content {
        padding: 25px;
    }

    .tab-content h3 {
        font-size: 1.6rem;
    }

    .tab-content ul li {
        font-size: 1rem;
    }

    .link-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-icon {
        font-size: 2rem;
    }

    .social-links {
        gap: 15px;
    }
}

/* スマートフォン向け (540px 以下) */
@media (max-width: 540px) {
    body {
        font-size: 0.9rem;
    }

    .header {
        padding: 10px 0;
    }

    .header .logo img {
        height: 40px;
    }

    .header .nav ul {
        flex-direction: column;
        /* ナビを縦並びにする */
        gap: 10px;
    }

    .header .nav ul li a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }

    .header .nav ul li .contact-button {
        padding: 7px 14px;
        font-size: 0.9rem;
    }

    .main-content {
        padding-top: 90px;
        /* ヘッダーの高さに合わせて調整 */
    }

    .movie-section h2 {
        font-size: 1.8rem;
    }

    .movie-section p {
        font-size: 1rem;
    }

    .first-view-section h1 {
        font-size: 2.5rem;
    }


    .first-view-section {
        flex-direction: column;
        /* 縦並びにする */
        padding: 80px 0;
        height: auto;
        /* 高さを自動調整 */
        min-height: 100vh;
        /* 少なくともビューポートの高さ */
    }

    .first-view-section .fv-content {
        flex-direction: column-reverse;
        /* ここを変更: 右のコンテンツが上に表示されるように */
        padding: 0 20px;
        gap: 0px;
        /* 縦方向の隙間 */
    }

    .fv-left {
        width: 100%;
    }

    .fv-right {
        width: 100%;
        padding-left: 0;
        /* パディングをリセット */
        gap: 15px;
    }


    .fv-logo {
        max-width: 200px;
    }

    /*.fv-catchphrase {
        font-size: 1.8rem;
    }*/
    .fv-image {
        width: 80%;
    }

    .color-wave-container {
        height: 500px;
        /* スマホでの波の高さ調整 */
    }

    .wave-image {
        max-width: 100px;
    }

    /*p.wave-text {
        font-size: 1.5rem !important;
    }*/

    .fv-play-text-group {
        display: flex;
        align-items: center;
        /* 垂直方向中央揃え */
        gap: 20px;
        /* QRコードとテキストの間隔 */
        /* margin-top: 20px; /* 絶対配置にするため削除 */
        /*position: absolute; /* 絶対配置 */
        /*bottom: 50px; /* 波のコンテナの下から50px */
        /*left: 50%; /* 水平方向中央 */
        transform: translateX(-50%) translateY(30%);
        /* 表示位置調整 */
        /*width: auto; /* コンテンツの幅に合わせる */
    }



    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }


    .find-badge-group {
        width: auto;
    }

    .find-badge-group p {
        text-align: left;
    }

    #philosophy {
        padding: 50px 0;
    }

    .philosophy {
        display: inline;
    }

    .philosophy img {
        display: block;
        margin: 0 auto;
        width: 100%;

    }

    .feature-grid {
        grid-template-columns: 1fr;
        /* 1列表示 */
        gap: 15px;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-item .feature-icon {
        font-size: 2rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .tab-buttons {
        flex-direction: column;
        /* タブボタンを縦並びに */
    }

    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-right: none !important;
        /* スマホでは右線をなくす */
        border-bottom: 1px solid #ddd;
        /* 下線を追加 */
        border-radius: 0;
        /* 角丸をリセット */
    }

    .tab-button:first-child {
        border-radius: 10px 10px 0 0;
        /* 上部のみ角丸 */
    }

    .tab-button:last-child {
        border-bottom: none;
    }

    .tab-content {
        padding: 20px;
    }

    .tab-content h3 {
        font-size: 1.4rem;
    }

    .tab-content ul li {
        font-size: 0.95rem;
    }

    .link-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer p,
    .footer-links a {
        font-size: 0.8rem;
    }

    .social-links a {
        font-size: 1.3rem;
    }


}



/* デスクトップ向け (1000px 以上1200px未満) のスタイル */
@media (min-width: 1000px) and (max-height: 1200px) {

    .first-view-section .fv-content {
        padding-top: 0;

    }

    .fv-right {
        gap: 0;
    }

    .fv-play-text-group {
        display: flex;
        align-items: center;
        transform: translateX(-50%) translateY(30px) !important;
    }
}


/* デスクトップ向け (1000px 以上) のスタイル */
@media (min-width: 1000px) {
    .first-view-section {
        display: flex;
        /*常に画面のセンターに表示*/
    }

    .fv-play-text-group {
        display: flex;
        align-items: center;
        transform: translateX(-50%) translateY(15%) !important;
    }



    .color-wave-container {
        height: 300px;
        /* 波のコンテナの高さを調整 */
    }

    .wave-image {
        max-width: 100px;
    }

    .wave-text {
        line-height: 1.5 !important;
        display: flex;
        flex-direction: column;


    }

    /* color_wave.png のコンテナとアニメーション */
    .color-wave-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 600px;
        /*height: 50%;/*250px; /* 波の画像の高さに合わせて調整 */
        overflow: hidden;
        z-index: 0;
        /* FVコンテンツより奥に */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .color-wave {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 200%;
        /* アニメーションのために幅を広げる */
        height: 100%;
        /*object-fit: cover;*/
        opacity: 0.8;
        animation: wave-scroll 25s linear infinite;
        /* 横スクロールアニメーション */
    }

}


/* 固定キャラクター画像 (デスクトップ用) */
.fixed-character-wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999;
    /* 他の要素より手前に表示 */
    /* 初期状態では右に少しはみ出す */
    transform: translateX(30%);
    transition: transform 0.3s ease-out;
    cursor: pointer;
    display: block;
    /* デスクトップでは表示 */
}

.fixed-character-img {
    width: 200px;
    /* 通常時の表示幅 */
    height: auto;
    display: block;
    /* 余白をなくす */
}

.fixed-character-wrapper:hover {
    transform: translateX(0);
    /* ホバー時に完全に表示 */
}

.speech-bubble {
    position: absolute;
    bottom: 80%;
    /* キャラクターの上 */
    right: 80%;
    /* キャラクターの水平中央に合わせる */
    transform: translateX(50%) translateY(-10px);
    /* 中央揃えと位置調整 */
    background-color: #fff;
    color: #333;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 300px;
    /* 吹き出しの幅 */
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    white-space: normal;
    /* テキストの改行を許可 */
}

.fixed-character-wrapper:hover .speech-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(-20px);
    /* 少し上に移動して表示 */
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    /* 吹き出しの下 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    /* 吹き出しの三角 */
}

.speech-bubble p {
    font-size: 0.85rem;
    font-family: 'Kosugi Maru', sans-serif;

}

.speech-bubble p.text-left {
    font-size: 0.8rem;
    margin-top: 10px;

}

/* モバイル時のキャラクター画像 (ナビ内) */
.mobile-character-container {
    display: none;
    /* デスクトップでは非表示 */
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    /* ナビリンクとの区切り線 */
}

.mobile-character-img {
    width: 150px;
    /* モバイルでのキャラクター画像サイズ */
    height: auto;
    cursor: pointer;
}

.mobile-speech-bubble {
    background-color: #fff;
    color: #333;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 250px;
    /* 吹き出しの幅 */
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: normal;
}

.mobile-speech-bubble.active {
    opacity: 1;
    visibility: visible;
}

.mobile-speech-bubble p {
    font-size: 0.8rem;
    font-family: 'Kosugi Maru', sans-serif;
}

/* メディアクエリでデスクトップ用とモバイル用を切り替え */
@media (max-width: 768px) {
    .fixed-character-wrapper {
        display: none;
        /* モバイルではデスクトップ用を非表示 */
    }

    .mobile-character-container {
        display: flex;
        /* モバイルではモバイル用を表示 */
    }

    /* ハンバーガーメニューが開いているときにモバイルキャラクターを表示 */
    .nav.nav-open .mobile-character-container {
        display: flex;
        /* ナビが開いたら表示 */
    }
}

.contact-txt p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: left;
    color: #3C3C3C;

}