@charset "utf-8";

/* 共通設定 */
html {
    font-size: 100%;
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: #ffffff;
    font-family: 'Playfair Display', 'Noto Serif JP', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #102337;

}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

li {
    list-style: none;
}

a {
    color: #000;
    text-decoration: none;
}

/* ヘッダー設定スクロールすると出現する */
#header-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}


.header-content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 50px 0 20px;
}

.logo img {
    max-width: 80px;

}

.navi .menu {
    display: flex;
    align-items: center;

}

.navi .menu li {
    font-size: 14px;
    margin-left: 40px;

}


.navi .menu li a {
    color: white;
    padding: 10px 0;
    text-decoration: none;
    transition: color 0.3s;
}

.navi .menu li a:hover {
    color: #4dd0e1;

}


/* JavaScriptによって 'color-on' クラスが付いたときに適用 */
.color-on {
    /* 半透明の濃い青色を設定（RGB AでAが透明度） */
    background-color: rgba(14, 24, 45, 0.8);
    /* 背景にあるものを少しぼかす「すりガラス効果」 */
    backdrop-filter: blur(10px);
}

/* スクロールで現れるヘッダーここまで */

/*  宝の山（ハンバーガーメニュー内装飾）ここから  */

.treasure-display {
    position: absolute;
    /* 画面に固定 */
    left: 50%;
    /* 左からの距離 */
    bottom: 20px;
    /* 下からの距離 */
    transform: translate(-50%, -50%);
    /* 画像のサイズ調整 */
    width: 200px;
    /* 幅200px */
    height: 125px;
    /* 元の画像のアスペクト比(800x500)を保つ (200/800 * 500 = 125) */

    /* ご提供いただいた画像を背景として設定 */
    background-image: url('../img/takara1.svg');
    /* ここに画像ファイルのパスを指定 */
    background-size: contain;
    /* コンテナに合わせて画像を縮小 */
    background-repeat: no-repeat;
    background-position: 80% center;

    /* 初期状態は非表示 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    /* 表示・非表示を滑らかに */
}

.shimmer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* 下の画像をクリックできるように透過させる */
}

/* --- キラキラ要素の共通スタイル --- */
.shining-dot {
    position: absolute;
    width: 8px;
    /* 光る点のサイズをさらに小さく */
    height: 8px;
    background-color: #fff;
    /* 白い光 */
    border-radius: 50%;
    box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.7),
        /* 拡散光 */
        0 0 6px 3px rgba(255, 255, 255, 0.4);
    /* さらに広い拡散光 */
    opacity: 0;
    /* 初期状態では見えない */
    animation: shimmer 1.5s infinite ease-out;
    /* アニメーション速度を少し速く */
    pointer-events: none;
    /* クリックイベントを透過させる */
}

/* --- キラキラアニメーションの定義 --- */
@keyframes shimmer {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    10% {
        opacity: 1;
        /* 瞬間的に強く光る */
        transform: scale(1.2);
        /* 少し大きくなる */
    }

    20% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 0;
        /* 残りの時間は消えたまま */
    }
}

/* --- 20個の光る点の個別設定 --- */
.dot-1 {
    top: 60%;
    left: 10%;
    animation-delay: 0.1s;
}

.dot-2 {
    top: 75%;
    left: 20%;
    animation-delay: 0.5s;
}

.dot-3 {
    top: 80%;
    left: 5%;
    animation-delay: 1.0s;
}

.dot-4 {
    top: 50%;
    left: 30%;
    animation-delay: 0.2s;
}

.dot-5 {
    top: 85%;
    left: 40%;
    animation-delay: 0.7s;
}

.dot-6 {
    top: 90%;
    left: 60%;
    animation-delay: 1.2s;
}

.dot-7 {
    top: 65%;
    left: 70%;
    animation-delay: 0.4s;
}

.dot-8 {
    top: 70%;
    left: 85%;
    animation-delay: 0.9s;
}

.dot-9 {
    top: 40%;
    left: 45%;
    animation-delay: 1.4s;
}

.dot-10 {
    top: 78%;
    left: 15%;
    animation-delay: 0.6s;
}

.dot-11 {
    top: 55%;
    left: 25%;
    animation-delay: 1.1s;
}

.dot-12 {
    top: 82%;
    left: 35%;
    animation-delay: 0.3s;
}

.dot-13 {
    top: 95%;
    left: 50%;
    animation-delay: 0.8s;
}

.dot-14 {
    top: 45%;
    left: 60%;
    animation-delay: 1.3s;
}

.dot-15 {
    top: 68%;
    left: 80%;
    animation-delay: 0.5s;
}

.dot-16 {
    top: 88%;
    left: 75%;
    animation-delay: 1.0s;
}

.dot-17 {
    top: 35%;
    left: 50%;
    animation-delay: 0.0s;
}

/* 山頂付近 */
.dot-18 {
    top: 72%;
    left: 5%;
    animation-delay: 0.7s;
}

.dot-19 {
    top: 58%;
    left: 18%;
    animation-delay: 1.2s;
}

.dot-20 {
    top: 92%;
    left: 30%;
    animation-delay: 0.4s;
}

/* 宝の山pcで非表示 */
@media screen and (min-width: 768px) {

    /* PCではハンバーガーメニューがないため、常に非表示（または常に表示など） */
    .treasure-display {
        display: none;
    }
}

/* 宝の山ここまで */
/* 背景の気泡アニメーション */
@keyframes rise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(0.5) rotate(720deg);
        opacity: 0;
    }
}



.bubble {
    position: fixed;
    bottom: -100px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: rise 20s infinite ease-in-out;
}

/* バブルに光の反射（ハイライト）を追加 */
.bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    transform: rotate(45deg);
    opacity: 0.8;
}

/* 泡ごとの大きさや位置をランダムにする (15個分) */
.bubble:nth-child(1) {
    left: 10%;
    animation-duration: 25s;
    animation-delay: -18s;
}

.bubble:nth-child(2) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-duration: 20s;
    animation-delay: -2s;
}

.bubble:nth-child(3) {
    left: 35%;
    width: 30px;
    height: 30px;
    animation-duration: 30s;
    animation-delay: -10s;
}

.bubble:nth-child(4) {
    left: 50%;
    animation-duration: 18s;
    animation-delay: -22s;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.bubble:nth-child(5) {
    left: 65%;
    width: 15px;
    height: 15px;
    animation-duration: 18s;
    animation-delay: -1.8s;
}

.bubble:nth-child(6) {
    left: 75%;
    width: 25px;
    height: 25px;
    animation-duration: 22s;
    animation-delay: -5s;
}

.bubble:nth-child(7) {
    left: 85%;
    animation-duration: 16s;
    animation-delay: -15s;
}

.bubble:nth-child(8) {
    left: 5%;
    width: 18px;
    height: 18px;
    animation-duration: 24s;
    animation-delay: -5.5s;
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
}

.bubble:nth-child(9) {
    left: 90%;
    width: 22px;
    height: 22px;
    animation-duration: 28s;
    animation-delay: -17.5s;
}

.bubble:nth-child(10) {
    left: 55%;
    animation-duration: 26s;
    animation-delay: -4.8s;
}

.bubble:nth-child(11) {
    left: 15%;
    width: 16px;
    height: 16px;
    animation-duration: 23s;
    animation-delay: -8s;
}

.bubble:nth-child(12) {
    left: 25%;
    width: 28px;
    height: 28px;
    animation-duration: 29s;
    animation-delay: -14s;
    border-radius: 30% 70% 50% 50% / 40% 40% 60% 60%;
}

.bubble:nth-child(13) {
    left: 45%;
    width: 14px;
    height: 14px;
    animation-duration: 17s;
    animation-delay: -20s;
}

.bubble:nth-child(14) {
    left: 80%;
    width: 26px;
    height: 26px;
    animation-duration: 21s;
    animation-delay: -3s;
    border-radius: 70% 30% 40% 60% / 60% 70% 30% 40%;
}

.bubble:nth-child(15) {
    left: 95%;
    width: 18px;
    height: 18px;
    animation-duration: 27s;
    animation-delay: -12s;
}

/* 泡ここまで */
/* フッター */
footer {
    background-color: #0F1D32;
    backdrop-filter: blur(10px);
    display: block;
    text-align: center;
}

footer p {
    font-size: small;
}

/* 前頁共通スタイルここまで */

/* indexページ装飾について */
/* クラゲここから */
.jellyfish-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 背景の後ろへ */
    pointer-events: none;
    overflow: hidden;
}

.jellyfish {
    position: absolute;
    bottom: -150px;
    opacity: 0.7;
}

/* --- 1匹目：標準的な動きとふわっとした落下 (光の基準) --- */
.type1 {
    width: 100px;
    left: 15%;
    animation: float-1 25s infinite ease-in-out;
    /* 💡 修正: 光るfilterをここで明確に設定します */
    filter:
        brightness(1.8) contrast(1.2) grayscale(0.3) drop-shadow(0 0 25px rgba(255, 255, 255, 1.0));

}

@keyframes float-1 {
    0% {
        bottom: -20%;
        transform: translateX(0) scale(1);
    }

    30% {
        bottom: 40%;
        transform: translateX(50px) scale(0.9);
    }

    50% {
        bottom: 30%;
        transform: translateX(-30px) scale(1.05);
    }

    70% {
        bottom: 70%;
        transform: translateX(20px) scale(0.95);
    }

    100% {
        bottom: 120%;
        transform: translateX(0) scale(1);
    }
}

/* --- 2匹目：速く、大きく揺れながら進む (光 + ぼかし) --- */
.type2 {
    width: 60px;
    left: 85%;
    animation: float-2 18s infinite linear;
    animation-delay: 5s;
    opacity: 0.7;
    filter:
        brightness(1.8) contrast(1.2) grayscale(0.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) blur(1.5px);
    filter: brightness(1.8) contrast(1.2) grayscale(0.3) drop-shadow(0 0 10px #4dd0e1) drop-shadow(0 0 20px #4dd0e1) blur(1.5px);

}

@keyframes float-2 {
    0% {
        bottom: -10%;
        transform: translateX(0) rotate(0deg);
    }

    40% {
        bottom: 60%;
        transform: translateX(-80px) rotate(-5deg) scale(0.9);
    }

    55% {
        bottom: 50%;
        transform: translateX(-70px) rotate(-2deg) scale(1.1);
    }

    80% {
        bottom: 90%;
        transform: translateX(30px) rotate(5deg) scale(0.9);
    }

    100% {
        bottom: 120%;
        transform: translateX(-10px) rotate(0deg);
    }
}

/* --- 3匹目：奥の方をゆっくり漂い、横の動きがメイン (強く光らせて不透明度を補う) --- */
.type3 {
    width: 70px;
    left: 40%;
    animation: float-3 30s infinite ease-out;
    animation-delay: 10s;
    opacity: 0.55;

    filter:
        brightness(2.2)
        /* 2.2倍の輝度で光を強調 */
        contrast(1.2) grayscale(0.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) blur(1.5px);

}

@keyframes float-3 {
    0% {
        bottom: -30%;
        transform: translateX(0) scale(1);
    }

    20% {
        bottom: 10%;
        transform: translateX(100px) scale(0.9);
    }

    40% {
        bottom: 5%;
        transform: translateX(-50px) scale(1.05);
    }

    60% {
        bottom: 40%;
        transform: translateX(50px) scale(0.95);
    }

    80% {
        bottom: 35%;
        transform: translateX(-10px) scale(1);
    }

    100% {
        bottom: 120%;
        transform: translateX(0) scale(1);
    }
}

/* クラゲはここまで */

/* first-view エリア */
/* first-view 文字がじわっとでる */
.blur {
    animation-name: blurAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}

@keyframes blurAnime {
    from {
        filter: blur(10px);
        transform: scale(1.02);
        opacity: 0;
    }

    to {
        filter: blur(0);
        transform: scale(1);
        opacity: 1;
    }
}

h2 .blurTrigger {
    animation: blurAnime 2.5s forwards;
    opacity: 0;
}

p .blurTrigger {
    /* アニメーションの適用: [名前] [時間] [イージング] [ディレイ] [モード] */
    /* 2秒後に開始 (タイトルより1秒遅い) */
    animation: blurAnime 3s ease-in-out 0.5s forwards;
    opacity: 0;
}

/* 文字がじわっと出るここまで */

.first-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.first-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(ellipse at center,
            rgba(25, 41, 76, 0.3) 0%,
            rgba(17, 27, 48, 0.9) 100%), url(../img/seabottom.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.first-view-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    text-align: center;
    z-index: 1;
    margin: 0 auto;

}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    margin-top: -100px;
}

.section-description {
    line-height: 2rem;
}

.btn {
    color: #ffffff;
    background-color: #00ffff99;
    border-radius: 50px;
    display: block;
    margin-top: 50px;
    width: 200px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 50px;
    font-weight: 700;
}

.btn:hover {
    background-color: aqua;
    transform: scale(1.05);
    box-shadow: 0 0 15px #fff;
}

/* first-view ここまで */
/* 診断セクション */
.diagnosis-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -2;

}

.diagnosis-container {
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;

}

.diagnosis-screen {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    text-align: center;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;

}

.diagnosis-screen .section-title {
    margin-top: 0;
}

.diagnosis-container.active-design {
    background-color: rgba(207, 172, 231, 0.1);
    /* 半透明の白 */
    backdrop-filter: blur(10px);
    /* すりガラス効果 */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 質問エリア */
#question-text {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    min-height: 60px;
    text-align: center;
}

.question-indicator {
    color: #8cc;
    font-size: 14px;
    margin-bottom: 5px;
    text-align: center;
}

/* 結果エリア */
.result-title {
    font-size: 18px;
    color: #00d4ff;
    text-align: center;
}

.result-post {
    font-size: 32px;
    margin: 10px 0;
    text-align: center;
}

.result-box p {
    font-size: 14px;
    color: #ccc;
}

/* ボタンエリア */
#options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 選択肢ボタン */
.selection-btn {
    background-color: rgba(0, 20, 40, 0.6);
    /* 暗い半透明 */
    color: #fff;
    /* 青緑色の文字 */
    border: 1px solid #fff;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.selection-btn:hover {
    background-color: #00d4ff;
    color: #001f3f;
    /* ホバー時は文字を暗く */
}

/* アクションボタン（開始・リセット） */
.action-btn {
    color: #ffffff;
    background-color: #00ffff99;
    border-radius: 50px;
    display: block;
    margin-top: 50px;
    width: 200px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 50px;
    font-weight: 700;
}

.action-btn:hover {
    background-color: aqua;
    transform: scale(1.05);
    box-shadow: 0 0 15px #fff;
}

/* 結果画面の装飾 */
.result-box {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    text-align: center;
}

.book-title {
    font-size: 24px;
    color: #ffd700;
    /* 本のタイトルは金色 */
    margin: 10px 0;
    font-weight: bold;
    text-align: center;
}

.hidden {
    display: none !important;

}

/* 診断セクションここまで */
/* indexページpCここまで */

/* 会社概要ページpcここから */
.company-section {
    width: 100%;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    padding-top: 200px;
    display: block;
    text-align: center;
    margin-bottom: 30px;

}


.company-container {
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 30px 10px 30px;
    background-color: rgba(207, 172, 231, 0.1);
    /* 半透明の白 */
    backdrop-filter: blur(10px);
    /* すりガラス効果 */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.company-info-list {
    display: flex;
    /* モバイル（smブレイクポイント未満）では1カラム */
    flex-wrap: wrap;
    width: 100%;
    text-align: start;
}

.company-info-list dt {
    width: 30%;
    margin-bottom: 10px;
}

.company-info-list dd {
    width: 70%;
    padding-bottom: 20px;

}

/* 基本的なリセット */
#access-info {
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
    margin-bottom: 100px;
    padding-top: 100px;
}

.address-info {
    display: flex;
    flex-wrap: wrap;
    /* dtとddがセットで折り返されるように */
    flex-direction: row;
    /* 横並びの方向を明示 */
    width: 100%;
    max-width: 600px;
    /* 見やすさのため最大幅を制限 */
    margin: 20px auto;
    /* #access-info の中央に配置 */
    padding: 10px;
    text-align: start;
}

.address-info dt {
    width: 30%;
}

.address-info dd {
    width: 70%;
}

/* 地図コンテナ */
.map-container {
    flex: 2;
    /* 住所エリアの2倍の幅を占有 (比率の調整) */
    min-width: 300px;
    /* 最小幅 */
    height: 400px;
    /* 高さを設定 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

}

/* 埋め込んだ地図 (iframe) のスタイル */
.map-container iframe {
    width: 100%;
    /* 親要素の幅いっぱいに */
    height: 100%;
    /* 親要素の高さいっぱいに */
    border: 1px solid #ccc;
    /* 境界線を追加 */
    border-radius: 20px;
    /* 角を丸く */
}

/* 深海探査機のスタイル */
.rov-container {
    position: relative;
    margin-top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 15;
    /* 気泡(z-10)より手前、コンテンツ(z-20)より奥 */
    pointer-events: none;
    overflow: hidden;
    /* 探査機が画面外に出るまで隠す */
}

.rov-image {
    /* .rov から .rov-image に変更 */
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    /* 画像のサイズに合わせて調整 */
    height: auto;
    /* アスペクト比を維持 */
    opacity: 0.6;
    /* 透明度を調整 */
    filter: drop-shadow(0 0 8px rgba(64, 164, 255, 0.8)) brightness(2.2);
    /* 2.2倍の輝度で光を強調 */
    display: block;
    /* 中央寄せのためブロック要素化 */
    margin-left: auto;
    /* 左右中央寄せ */
    margin-right: auto;
    /* 左右中央寄せ */
    /* 画面外からスタート（画像の幅に合わせて調整） */
    animation: rov-drift 60s linear infinite;
    /* 60秒かけて画面を横切る */
}


/* 探査機がゆっくりと画面を横切るアニメーション */
@keyframes rov-drift {
    0% {
        transform: translateX(calc(-50vw - 60px));
        /* -50vw (画面左端) - 60px (画像幅の半分) */
    }

    100% {
        transform: translateX(calc(50vw + 60px));
        /* 50vw (画面右端) + 60px (画像幅の半分) */

    }
}

/* ここまで　追加箇所 */
/* 会社概要ページpcここまで */
/* aboutページpcここから */
.about-layout {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 垂直方向中央寄せ */
    padding-top: 200px;
    gap: 60px;
}

.container {
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
}

.image-area {
    flex: 1;
    position: relative;
    padding: 40px 0;
    /* 画像重なり分の余白 */
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 0.8;
}

/* 画像の共通スタイル */
.image-wrapper figure {
    margin: 0;
    position: absolute;
    width: 70%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-wrapper figure img {
    display: block;
    /* 画像下の隙間をなくす */
}

/* 上の画像（左上） */
.img-top {
    top: -40px;
    left: -20px;
    z-index: 2;
}

/* 下の画像（右下） */
.img-bottom {
    bottom: 0;
    right: 0;
    z-index: 1;
}

/* 右側：テキストエリア*/
.text-area {
    flex: 1;
    padding-left: 20px;
    line-height: 1.8;
}

.text-body p {
    text-align: justify;
}

.section-sub-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 50px;
}



/* チョウチンアンコウエリアここから */
.anglerfish-container {
    width: 300px;
    margin-left: auto;
    margin-right: 20%;
    padding: 50px 0 30px;
    position: relative;
    height: 200px;
    overflow: visible;
}

.anglerfish {
    position: relative;
    margin-left: auto;
    max-width: 100px;
    z-index: 1;
    animation: float-up-down 6s ease-in-out infinite alternate;
}

.anglerfish-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* 光る部分（エスカ） */
.light-bulb {
    position: absolute;
    top: 17px;
    /* 柄の先端に合わせる */
    right: 80px;
    width: 15px;
    height: 15px;
    background-color: #fff;
    /* 基本の色 */
    border-radius: 50%;
    z-index: 2;

    /* ここでアニメーションを指定 */
    animation: flicker 3s infinite;
}

/* 【重要】光の明滅アニメーション設定 */
@keyframes flicker {
    0% {
        background-color: #ffffcc;
        box-shadow: 0 0 10px 2px #ffffcc;
        /* 小さな光 */
        opacity: 0.7;
    }

    50% {
        background-color: #fff;
        box-shadow: 0 0 40px 10px #aaffff;
        /* 強い光（青白く） */
        opacity: 1;
    }

    60% {
        background-color: #ffffaa;
        box-shadow: 0 0 15px 4px #ffffaa;
        /* 一瞬弱まる */
        opacity: 0.8;
    }

    100% {
        background-color: #ffffcc;
        box-shadow: 0 0 10px 2px #ffffcc;
        /* 元に戻る */
        opacity: 0.7;
    }
}

/* 水中のチリ（雰囲気用） */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatUp 10s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh);
    }

    100% {
        transform: translateY(-100vh);
    }
}

/* アンコウここまで */
/* aboutページpcここまで */

/* お問い合わせページpcここから */
.contact-section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 100px;
    text-align: center;
}

/* フォームコンテナ */
.form-container {
    max-width: 600px;
    /* PC版の最大幅 */
    margin: 30px auto;
    /* 上下にスペース、中央寄せ */
    padding: 40px;
    background-color: rgba(207, 172, 231, 0.1);
    /* フォームの背景色 */
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.policy-link {
    color: #fc8f13;
    text-decoration: none;
    font-weight: bold;
}

.special-link:hover,
.business-link:hover,
.policy-link:hover {
    text-decoration: underline;
}

/* 必須マーク */
.required {
    color: #ff0000;
    margin-left: 5px;
}

/* フォーム要素の共通スタイル */
.form-field {
    margin-bottom: 20px;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    box-sizing: border-box;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

textarea {
    resize: vertical;
}

/* 氏名（姓・名）を横並びにするグループ (PCは横並び) */
.form-group-inline {
    display: flex;
    gap: 20px;
}

.form-field.half {
    flex: 1;
}

/* ヘルプテキスト */
.help-text {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 5px;
}

/* チェックボックスグループのスタイル */
.checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-group .checkbox-options {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 4px;
    color: #333;
}

.checkbox-group .checkbox-options label {
    color: #333;
    /* 確実に子要素の文字色を黒に設定する */
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    /* 省略: カスタムチェックボックスのスタイルは前のコードと同じ */
    appearance: none;
    border: 2px solid #555;
    border-radius: 3px;
    background-color: #eee;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #ff0000;
    border-color: #ff0000;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* プライバシーポリシー同意 */
.privacy-policy {
    background-color: #1a324b;
    padding: 15px 0;
}

.privacy-text {
    margin-bottom: 10px;
}

.consent-label {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 1em;
}



.consent-label input[type="checkbox"] {
    /* 省略: カスタムチェックボックスのスタイルは前のコードと同じ */
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    background-color: #1a324b;
    appearance: none;
    position: relative;
    cursor: pointer;
}

.consent-label input[type="checkbox"]:checked {
    background-color: #ff0000;
    border-color: #ff0000;
}

.consent-label input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* お問い合わせページpcここまで */
/* プライバシーポリシーここから */
.policy-container .section-title {
    margin-top: 100px;
    text-align: center;
}

.policy-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.policy-list {
    list-style-type: decimal;
    padding-left: 2em;
}

.policy-list li {

    list-style: decimal;

    /* カスタムカウンターの設定が残っている場合を考慮して、強制的にlist-styleプロパティを再適用 */
}

.policy-list ol li {
    margin-left: 1em;
    padding-left: 1.5em;
}

.policy-contact dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-gap: 10px 15px;
    padding-top: 30px;
}

.policy-contact dt {
    grid-column: 1 / 2;

}

.policy-contact dd {
    grid-column: 2 / 3;

}

.policy-end {
    width: fit-content;
    margin: 50px 0 100px auto;
}

/* プライバシーポリシーここまで */
/*スマートフォンここから*/
/* 共通スタイル */
@media screen and (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    /*ヘッダー*/
    #header-bar {
        height: 70px;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        z-index: 99;
        /* .basic-headerのスタイルをここに含める */
        transition: background-color 0.3s, backdrop-filter 0.3s;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    #header-bar .logo img {
        max-width: 60px;

    }

    .header-content {
        height: 60px;
    }

    #header-bar .navi {
        width: 60%;
        height: 100vh;
        background-color: rgba(16, 35, 55, 0.9);
        /* フォームの背景色 */
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        position: fixed;
        top: 0;
        right: -60%;
        z-index: 20;
        transition: all 0.6s;
    }

    #header-bar .navi.active {
        right: 0;
    }

    #header-bar .navi .menu {
        width: 100%;
        height: 100vh;
        flex-direction: column;
        padding: 60px 0;
        overflow: auto;
    }

    #header-bar .navi .menu li {
        padding: 10px 0;
        margin-left: 0;
    }

    #header-bar .hamburger {
        width: 50px;
        height: 50px;
        cursor: pointer;
        position: absolute;
        top: 5px;
        right: 10px;
        z-index: 30;
    }

    #header-bar .hamburger span {
        width: 30px;
        height: 3px;
        background-color: #ffffff;
        display: inline-block;
        position: absolute;
        left: 10px;
        transition: all 0.4s;
    }

    #header-bar .hamburger span:nth-of-type(1) {
        top: 16px;
    }

    #header-bar .hamburger span:nth-of-type(2) {
        top: 25px;
    }

    #header-bar .hamburger span:nth-of-type(3) {
        top: 34px;
    }

    #header-bar .hamburger.active span:nth-of-type(1) {
        top: 24px;
        transform: rotate(-45deg);
    }

    #header-bar .hamburger.active span:nth-of-type(2) {
        opacity: 0;
    }

    #header-bar .hamburger.active span:nth-of-type(3) {
        top: 24px;
        transform: rotate(45deg);
    }

    /* ハンバーガー内宝の山 */

    .navi.active .treasure-display {
        opacity: 1;
        visibility: visible;
    }

    /* ヘッダーここまで */
    /* 共通スタイルここまで */
    /* first-view ここから*/
    /* クラゲ */
    .type1 {
        width: 50px;
    }

    .type2 {
        width: 30px;
    }

    .type3 {
        width: 30px;
    }

    /* クラゲここまで */

    .first-view-container {
        max-width: 340px;

    }

    .section-title {
        font-size: 1.5rem;
    }

    .pc {
        display: none;
    }

    .first-view-container p {
        line-height: 1.2rem;

    }

    /* firstviewここまで */
    /* 診断セクション */
    .diagnosis-container {
        max-width: 340px;
    }

    /* 診断セクションここまで */
    /* indexページここまで */
    /* 会社概要ページここから */
    .company-section {
        padding-top: 150px;
        margin-bottom: 50px;
    }

    .company-container {
        max-width: 340px;
    }

    .company-info-list {
        flex-flow: column;
    }

    .company-info-list dd {
        width: 100%;
    }

    /* アクセス */
    .access-content {
        flex-direction: column;
        /* 画面幅が768px以下になったら縦並びにする */
    }

    .map-section {
        max-width: 340px;
        margin-top: 0;
    }

    /* アクセスここまで */
    /* 会社概要ページここまで */

    /* aboutページここから */
    .about-main {
        padding: 80px 20px;
        padding-top: 100px;
        /* ヘッダー分を避ける */
    }

    .about-layout {
        flex-direction: column;
        /* 縦並びにする */
        gap: 40px;
        padding-top: 100px;
    }

    .image-area {
        padding: 0;
        /* スマホでは画像の重なりをやめる、またはシンプルにする */
    }

    .image-wrapper {
        aspect-ratio: 1 / 1.1;
        /* スマホ用に縦長に調整 */
    }

    .image-wrapper figure {
        /* スマホでは重ねずに、メイン画像を大きく表示 */
        position: relative;
        width: 95%;
        /* 画面幅に近いサイズ */
        margin: 0 auto 20px auto;
        box-shadow: none;
        /* 影を消す */
    }

    .img-top {
        position: relative;
        top: auto;
        left: auto;
        z-index: 1;
    }

    .img-bottom {
        display: none;

        /* position: relative; 
        top: 10px;
        right: 10px;
        z-index: 2;*/
    }

    .text-area {
        padding-left: 0;
    }

    .text-area h1 {
        text-align: center;
        /* 見出しを中央寄せ */
        margin-bottom: 20px;
        font-size: 2rem;
    }

    .text-body p {
        text-align: left;
    }

    /* aboutページここまで */
    /* お問い合わせページここから */
    .form-container {
        max-width: 90%;
        /* モバイル向けに幅を広く */
        padding: 20px;
        margin: 20px auto;
    }



    /* 氏名（姓・名）を縦積みに戻す */
    .form-group-inline {
        flex-direction: column;
        /* 縦に並べる */
        gap: 0;
    }

    .form-field.half {
        flex: none;
        /* 縦積みの場合は幅の均等割り当てを解除 */
    }

    .form-field-company-name {
        margin-top: 20px;
    }


    /* 姓・名の間隔調整（縦積みになったため） */
    .form-group-inline .form-field {
        margin-bottom: 20px;
    }

    .form-group-inline .form-field:last-child {
        margin-bottom: 0;
        /* 最後のフィールド下の余白は親要素に任せる */
    }

    /* お問い合わせページここまで */
    /* プライバシーポリシーここから */
    .policy-container {
        max-width: 340px;
    }

    /* プライバシーポリシーここまで */
}

/* スマートフォンここまで */