/* ========== Reset / Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== Themes (vars only) ========== */
/* GenereQ Original */
.theme-1 {
    --primary: #b5005b;
    --secondary: #008CB3;
    --accent: #87CEEB;
    --text: #2C2C2C;
    --bg: #FFFFFF;
    --card-bg: rgba(255, 255, 255, .9);
    --shadow: rgba(139, 75, 107, .1);
}

/* Warm Modern */
.theme-2 {
    --primary: #E85A4F;
    --secondary: #C2CAD0;
    --accent: #FFB347;
    --text: #2C3E50;
    --bg: #F8F9FA;
    --card-bg: rgba(255, 255, 255, .95);
    --shadow: rgba(232, 90, 79, .15);
}

/* Cool Professional */
.theme-3 {
    --primary: #2C3E50;
    --secondary: #3498DB;
    --accent: #1ABC9C;
    --text: #2C3E50;
    --bg: #ECF0F1;
    --card-bg: rgba(255, 255, 255, .95);
    --shadow: rgba(52, 152, 219, .1);
}

/* 体裁は body に theme-x クラスを付けて反映 */
body.theme-1,
body.theme-2,
body.theme-3 {
    background: var(--bg);
    color: var(--text);
}

/* ========== Header ========== */
.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    padding: 15px 20px;
    transition: all .3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: .3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}

/* ========== Nav / CTA ========== */
.sp-cta {
    display: none;
}

/* スマホ専用CTAは後述の @media で出す */

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-test {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 9999px;
    background: rgba(126, 25, 30);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
    border: 2px solid rgba(255, 255, 255, .3);
    transition: all .3s ease;
    opacity: 0;
    animation: slideUp .8s ease .4s forwards;
}

.nav-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    background: rgba(160, 4, 12);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: .3s;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========== Header actions / Theme buttons ========== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    display: flex;
    gap: 8px;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.theme-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, .3);
    border-radius: 50%;
    transition: .3s;
}

.theme-btn:hover::after {
    width: 100%;
    height: 100%;
}

/* ========== Mobile menu button ========== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* ========== Animations ========== */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ========== Responsive (≤768px) ========== */
@media (max-width:768px) {

    html,
    body {
        overflow-x: hidden;
    }

    /* ナビ：リンクはハンバーガーに入れる */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions {
        gap: 10px;
    }

    .theme-toggle {
        gap: 5px;
    }

    .theme-btn {
        width: 25px;
        height: 25px;
    }

    /* スマホCTAを表示 */
    .sp-cta {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        padding: 16px 12px;
        border-radius: 30px;
        /* background: rgba(126, 25, 30, .8); */
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        /* box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
        border: 2px solid rgba(255, 255, 255, .3); */
        transition: all .3s ease;
        opacity: 0;
        animation: slideUp .8s ease .4s forwards;
        font-size: clamp(.8rem, 3vw, 1.1rem);
    }

}


.header {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    display: flex;
    gap: 8px;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-btn:hover::after {
    width: 100%;
    height: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    display: flex;
    gap: 8px;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-btn:hover::after {
    width: 100%;
    height: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

.header {
    position: relative;
    z-index: 1003;
    overflow: visible;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions {
        gap: 10px;
    }

    .theme-toggle {
        gap: 5px;
    }

    .theme-btn {
        width: 25px;
        height: 25px;
    }

    .sp-cta {
        font-size: clamp(0.8rem, 3vw, 1.1rem);
        /* display: block !important; */
        padding: 16px 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-radius: 30px;
        /* background: rgba(126, 25, 30, 0.8); */
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        /* box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
        border: 2px solid rgba(255, 255, 255, 0.3); */
        transition: all 0.3s ease;
        opacity: 0;
        animation: slideUp 0.8s ease 0.4s forwards;
    }

    .nav-sp-test {
        color: #fff;
        text-decoration: none;
        display: inline-block;
        padding: 2px 16px;
        background: rgba(126, 25, 30);
        color: white;
        font-weight: 700;
        text-decoration: none;
        border-radius: 30px;
        box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        font-size: clamp(0.8rem, 3vw, 1.1rem);
    }


    .sp-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        /* background: rgba(255, 255, 255, 0.3); */
        background: rgba(160, 4, 12);
    }

    .nav-test {
        display: none;
    }

    /* 1) とにかく表示される状態にする（display/visibility/opacity） */

    .nav.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    /* 2) クリッピング対策（親のoverflowで切られないように） */
    .header,
    .header-content {
        overflow: visible !important;
        z-index: 1003;
    }

    /* 3) リスト自体も確実に表示 */
    .nav .nav-links {
        display: block !important;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav .nav-links li {
        margin: 0;
    }

    .nav .nav-links a {
        display: block;
        padding: 14px 8px;
        /* 白背景で読めるよう強制 */
        text-decoration: none;
        font-weight: 600;
    }

    /* 4) バックドロップ（任意機能を使う場合） */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 1004;
        display: block;
    }

    .nav-backdrop[hidden] {
        display: none;
    }
}



/* 診断結果一部ぼかし */
/* 親を基準にボタンを重ねる */
.dna-stress-grid {
    position: relative;
}

/* チェックボックスは非表示 */
input.netabare02_checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ボタン（ラベル） */
label.netabare02_label {
    display: inline-block;
    position: absolute;
    /* グリッドの上に重ねる */
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    z-index: 5;
    cursor: pointer;
    /* padding:10px 16px; */
    border-radius: 9999px;
    /* background:#1a73e8; color:#fff; font-weight:700; */
    box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
}

/* === ここが肝 ===
#bokasi01 以降の兄弟 .personality-card を初期ぼかし */
#bokasi01:not(:checked)~.personality-card {
    filter: blur(8px);
    pointer-events: none;
    /* クリックさせない */
}

/* backdrop-filter で柔らかく覆いたい場合はラベルに膜を足す */
label.netabare02_label::after {
    content: "";
    position: absolute;
    inset: -24px -40px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: -1;
    border-radius: 9999px;
}


/* Valueぼかし */
/* 親を基準に重ねるために relative を付与 */
.personality-grid {
    position: relative;
}

/* 4枚目以降のカードを個別にぼかす（オーバーレイで） */
.personality-grid .personality-card:nth-of-type(n+4) {
    position: relative;
    overflow: hidden;

}

.personality-grid .personality-card:nth-of-type(n+4)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    pointer-events: none;
    /* 背景はクリック不可に */
}

/* backdrop 未対応ブラウザのフォールバック */
.no-backdrop .personality-grid .personality-card:nth-of-type(n+4) {
    filter: blur(8px);
}

.no-backdrop .personality-grid .personality-card:nth-of-type(n+4)::after {
    background: rgba(255, 255, 255, .50);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* チェックボックスは非表示（そのままでOK） */
input.netabare03_checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* ▼ CTA ラベル（チェック用ラベル）を
「グリッドの一番下・中央」に”重ねて”表示する */
.netabare03_label {
    position: absolute;
    left: 50%;
    bottom: 16px;
    /* 最下部からの距離。お好みで調整 */
    transform: translateX(-50%);
    z-index: 100;
    /* カードより前面に */
    display: inline-flex;
    /* ボタンのための整形（中の <a> をそのまま使う） */
    align-items: center;
    justify-content: center;

    /* ラベル自体の背景は不要なら透明でOK。
既存のデザインを活かすならコメントアウトを外してください。 */
    /* background: rgba(255,255,255,.15);
border-radius: 9999px; */
}

/* ラベルの中のボタンがクリックできるように */
.netabare03_label .cta-button {
    pointer-events: auto;
}

/* .cta-button-d{
    background-color: #1c55e4;
}

.cta-button-v{
    background-color: #E6395A;
} */

/* もし label の背景が不要で余計に広がる場合は内部 a だけ表示に */
.netabare03_label {
    background: transparent;
    padding: 0;
}



/* オーバーレイ（カード上に重ね、ボタンを下中央に） */
.personality-card.is-locked .card-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    /* 下寄せ */
    justify-content: center;
    /* 中央寄せ */
    padding-bottom: 14px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    /* 背景は掴まない */
}

/* CTA ボタンだけクリック可（重ねたまま） */
.personality-card.is-locked .cta-button {
    position: static;
    /* 通常フローでOK（下中央に来る） */
    z-index: 60;
    pointer-events: auto;
}

/* フォールバック（backdrop 未対応） */
.no-backdrop .personality-card.is-locked .card-inner {
    filter: blur(8px);
}

.no-backdrop .personality-card.is-locked .card-overlay {
    background: rgba(255, 255, 255, .5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}



/* PCでは label が邪魔しないように（使わないなら隠す） */
/* チェックボックスは非表示 */
input.netabare03_checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    display: none;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features {
    padding: 100px 20px;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.feature-card p {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
}

.test-preview {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    padding: 100px 20px;
    color: white;
}

.test-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.question-counter {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

.options {
    display: grid;
    gap: 15px;
}

.option {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.option a {
    text-decoration: none;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title2 {
    font-size: clamp(2.35rem, 5vw, 4rem);
    font-weight: 700;
    color: #7e191e;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 40px;
}

.diagnosis-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.results-section {
    display: none;
}

.results-section.active {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.personalities {
    margin-bottom: 30px;
}

.personality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.dna-stress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.personality-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.personality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.personality-header {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.personality-header img {
    width: 20%;
    aspect-ratio: 4 / 4;
}

.personality-type {
    /* font-size: 1.3rem; */
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 700;
    color: #8b4b6b;
    text-align: center;
    margin-bottom: 10px;
}

.personality-type {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8b4b6b;
    text-align: center;
    margin-bottom: 10px;
}

.personality-desc {
    font-size: 1rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
}

.stress-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.stress-level {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.stress-level.high {
    background: #ff6b6b;
    border-color: #ff5252;
}

.stress-level.medium {
    background: #ffd93d;
    border-color: #ffc107;
}

.stress-level.low {
    background: #51cf66;
    border-color: #4caf50;
}

.stress-label {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin-top: 5px;
}

.category-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    /* color: white; */
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}


.stats {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}



/* 終了診断結果一部ぼかし */

/* 診断結果一部ぼかし */

/* スマホのみ適用。PCは崩さない */
@media screen and (max-width: 768px) {


    .personality-grid {
        display: none;
    }

    .swiper-value {
        display: block;
        width: 100%;
        padding: 20px 20px 40px 20px;
    }

    .swiper-value .swiper-slide {
        width: 80%;
        margin: auto;
        padding: 20px;
    }
}

@media screen and (min-width: 769px) {
    .swiper-value {
        display: none;
    }
}

@media (max-width: 768px) {

    /* 対象カードの土台 */
    .personality-card.is-locked {
        position: relative;
        overflow: hidden;
        /* はみ出し防止 */
    }

    /* 中身は触れさせない＋ぼかす（backdrop非対応のフォールバック） */
    .no-backdrop .personality-card.is-locked .card-inner {
        filter: blur(8px);
    }

    .personality-card.is-locked .card-inner {
        pointer-events: none;
    }

    /* オーバーレイ（ここで backdrop-filter で下をぼかすのが本命） */
    .personality-card.is-locked .card-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, .18);
        /* ほんのり膜 */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 5;
        pointer-events: auto;
        /* ボタンは押せる */
    }

    /* CTAボタンの見た目（あなたの指定に準拠） */
    .personality-card.is-locked .cta-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 9999px;
        background: rgba(126, 25, 30);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
    }

    .personality-card.is-locked .cta-button:active {
        transform: translateY(1px);
    }

    .cta-button {
        margin-bottom: 10px;
    }
}

/* スマホだけ個別ぼかし（PCにも効かせたいなら @media を外す） */
@media (max-width: 768px) {
    .personality-card.is-locked {
        position: relative;
        overflow: hidden;
        overflow: visible !important;
    }

    .personality-card.is-locked .card-inner {
        pointer-events: none;
    }

    /* backdrop-filter 本命（下の中身をぼかす） */
    .personality-card.is-locked .card-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, .18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 5;
        pointer-events: auto;
    }

    /* fallback: backdrop 未対応ブラウザは中身を直接ぼかす */
    .no-backdrop .personality-card.is-locked .card-inner {
        filter: blur(8px);
    }

    .no-backdrop .personality-card.is-locked .card-overlay {
        background: rgba(255, 255, 255, .5);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* CTA ボタン */
    .personality-card.is-locked .cta-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 9999px;
        background: rgba(126, 25, 30);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
    }

    .personality-card.is-locked .cta-button:active {
        transform: translateY(1px);
    }
}


/* PC/スマホ共通（必要なら @media を外さず共用でOK） */
.personality-card.is-locked {
    position: relative;
    overflow: hidden;
}

.personality-card.is-locked .card-inner {
    pointer-events: none;
}

/* 本命：オーバーレイで下の中身をぼかす */
.personality-card.is-locked .card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    /* ← スワイプやスクロールを邪魔しない */
    pointer-events: none;
}

/* backdrop 未対応ブラウザのフォールバック（中身を直接ぼかす） */
.no-backdrop .personality-card.is-locked .card-inner {
    filter: blur(8px);
}

.no-backdrop .personality-card.is-locked .card-overlay {
    background: rgba(255, 255, 255, .5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* CTAボタン：クリックは通す（ボタンだけ pointer-events: auto） */
.personality-card.is-locked .cta-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 9999px;
    background: rgba(126, 25, 30);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
    pointer-events: auto;
}

.personality-card.is-locked .cta-button:active {
    transform: translateY(1px);
}



/* ===== Swiper（モバイルの安全策） ===== */
@media (max-width:768px) {
    .swiper-block .swiper-slide {
        width: 100% !important;
    }

    /* ロック状態のスライド */
    .swiper-value .swiper-slide.is-locked {
        position: relative;
        overflow: hidden;
    }

    .swiper-value .swiper-slide.is-locked .slide-inner {
        pointer-events: none;
    }

    .swiper-value .swiper-slide.is-locked .slide-overlay {
        position: absolute;
        inset: 0;
        z-index: 2000;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 12px;
        background: rgba(255, 255, 255, .18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        pointer-events: none;
        /* ドラッグ/スクロールは通す */
    }

    .no-backdrop .swiper-value .swiper-slide.is-locked .slide-inner {
        filter: blur(8px);
    }

    .no-backdrop .swiper-value .swiper-slide.is-locked .slide-overlay {
        background: rgba(255, 255, 255, .5);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .swiper-value .swiper-slide.is-locked .cta-button {
        pointer-events: auto;
        display: inline-flex;
        gap: 8px;
        align-items: center;
        padding: 12px 16px;
        border-radius: 9999px;
        background: rgba(126, 25, 30);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(26, 115, 232, .25);
    }

    /* ドットと重ならないように */
    .swiper-value .swiper-pagination {
        bottom: 44px;
    }

    /* スライダー余白＆ドット配置（重複を集約） */
    .swiper-block {
        position: relative;
        padding-bottom: 20px;
    }

    .swiper-block .swiper-pagination {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 8px;
        display: flex;
        justify-content: center;
        pointer-events: auto;
    }

    .swiper-block .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
        opacity: .35;
        transition: transform .2s ease, opacity .2s ease;
    }

    .swiper-block .swiper-pagination-bullet-active {
        transform: scale(1.25);
        opacity: 1;
    }

    .swiper-backface-hidden .swiper-slide {
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }

    /* スライド基本 */
    .swiper-slide {
        box-sizing: border-box;
        padding: 20px;
    }

    /* 画像センタリング */
    .personality-card {
        text-align: center;
    }

    .personality-header {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .personality-header img {
        max-width: 80%;
        height: auto;
        display: block;
    }

    /* .swiper-container や独自幅指定があると崩れやすい → 余計な内側余白は0に */
    .swiper-container {
        width: 100%;
        padding: 0;
        overflow: visible !important;
    }
}

/* ===== Hero ===== */
.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* padding-top: 80px; */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s infinite linear;
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp .8s ease forwards;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp .8s ease .2s forwards;
}

@media (max-width:768px) {
    .hero {
        padding: 0 15px;
    }
}

/* ===== CTA（共通） ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: rgba(126, 25, 30);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(.8rem, 3vw, 1.1rem);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, .3);
    transition: all .3s ease;
    opacity: 0;
    animation: slideUp .8s ease .4s forwards;
    z-index: 2;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    background: rgba(196, 3, 13);
}

/* ===== セクション共通 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2vw 20px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fff;
    z-index: 2;
}

/* ===== Features / Test / Stats（元の見た目は維持） ===== */
.features {
    padding: 100px 20px;
    background: var(--bg);
}


@media (max-width:768px) {
    .features {
        padding: 60px 15px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}



.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
    transition: left .5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.feature-card p {
    color: var(--text);
    opacity: .8;
    line-height: 1.6;
}

.test-preview {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    padding: 100px 20px;
    color: #fff;
}

@media (max-width:768px) {
    .test-preview {
        padding: 60px 15px;
    }
}

.personality-card {
    padding: 25px;
}

@media (max-width:768px) {
    .personality-card {
        padding: 20px;
    }
}

.stats {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-align: center;
}

@media (max-width:768px) {
    .stats {
        padding: 60px 15px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: .9;
}

/* ===== About / CTAセクション ===== */
.about {
    padding: 100px 20px;
    background: var(--bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

@media (max-width:768px) {
    .about {
        padding: 60px 15px;
    }
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.highlight-box a {
    text-decoration: none;
    color: #fff;
    padding: 3vw;
}

@media (max-width:768px) {
    .highlight-box a {
        padding: 0 !important;
    }
}

.highlight-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%
    }

    100% {
        left: 100%
    }
}

.cta-section {
    padding: 100px 20px;
    background: var(--bg);
    text-align: center;
}

@media (max-width:768px) {
    .cta-section {
        padding: 60px 15px;
    }
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 40px;
    opacity: .8;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all .3s ease;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow);
}

/* ===== Genetics Table（そのままの見た目で整理） ===== */
.genetics-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width:768px) {
    .genetics-section {
        padding: 60px 15px;
    }
}

.genetics-table {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.genetics-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: #5a5a5a;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    /* border: 1px solid rgb(192, 188, 188); */
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.genetics-table th {
    background: #f0f0f0;
    color: #5a5a5a;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 18px;
    border-bottom: 1px solid rgb(192, 188, 188);
}

.genetics-table td {
    background: #f0f0f0;
    color: #5a5a5a;
    padding: 20px;
    border-bottom: 1px solid rgb(192, 188, 188);
    font-size: 1rem;
    line-height: 1.7;
    border-left: 1px solid rgb(192, 188, 188);
}

.genetics-table td:nth-child(1),
.genetics-table td:nth-child(2),
.genetics-table td:nth-child(3) {
    background: #fff;
}

.genetics-table td:nth-child(1) {
    font-weight: bold;
    width: 15%;
}

.genetics-table td:nth-child(2) {
    font-weight: 600;
    width: 20%;
    /* background: rgba(255, 255, 255, .06); */
}

.genetics-table td:nth-child(3) {
    font-weight: 600;
    /* background: rgba(255, 255, 255, .03); */
}

td[rowspan="4"],
td[rowspan="5"] {
    border-right: 1px solid rgb(192, 188, 188);
}

.genetics-table td.category-acceler {
    background: rgba(50, 130, 220, .9);
    font-weight: bold;
    color: #fff;
}

.genetics-table td.category-brake {
    background: rgba(120, 80, 200, .9);
    font-weight: bold;
    color: #fff;
}

.genetics-table td.category-clutch {
    background: rgba(181, 0, 91, .9);
    font-weight: bold;
    color: #fff;
}

@media screen and (max-width: 768px) {

    .category-clutch,
    .category-brake,
    .category-acceler {
        display: none;
    }

    .category-clutch-sp,
    .category-brake-sp,
    .category-acceler-sp {
        display: table-row;
    }
}

@media screen and (min-width: 769px) {

    .category-clutch-sp,
    .category-brake-sp,
    .category-acceler-sp {
        display: none;
    }
}

@media (max-width:768px) {

    .genetics-table td,
    .genetics-table th {
        padding: 12px;
        font-size: .9rem;
    }
}

/* ===== Floating shapes ===== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    animation: float-around 15s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

/* ===== Animations ===== */
@keyframes float {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(-60px)
    }
}

@keyframes float-around {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    33% {
        transform: translateY(-20px) rotate(120deg)
    }

    66% {
        transform: translateY(10px) rotate(240deg)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===== Utility ===== */
.mobile-only {
    display: none;
}

@media (max-width:768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width:768px) {
    .section-title {
        font-size: 2rem;
    }

    .diagnosis-tabs {
        align-items: center;
    }

    .personality-grid,
    .dna-stress-grid {
        grid-template-columns: 1fr;
    }

    .test-items {
        grid-template-columns: 1fr;
    }

    .test-name {
        border-right: none;
        border-bottom: none;
        background: rgba(255, 255, 255, .1);
        font-weight: 700;
    }
}








/* ===== PC ===== */
@media (min-width:769px) {
    .nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* ===== モバイル（オフキャンバス＋はみ出し対策） ===== */
@media (max-width:768px) {

    /* はみ出し抑止（共通） */
    html,
    body {
        overflow-x: hidden;
    }

    /* 画像/メディアは親幅内に */
    img,
    video,
    canvas {
        max-width: 100%;
        height: auto;
    }

    /* 擬似要素のはみ出し対策（ラベル系） */
    .netabare02_label:after,
    .netabare03_label:after {
        left: 0 !important;
        width: 100% !important;
    }

    /* カードやスライドのオーバーフロー抑止 */
    .personality-card,
    .personality-grid,
    .swiper-value,
    .swiper-slide {
        overflow: hidden;
    }

    /* オフキャンバスナビ */
    .nav {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80vw;
        max-width: 320px;
        background: #fff;
        box-shadow: -12px 0 24px rgba(0, 0, 0, .12);
        transform: translateX(calc(100% + 1px));
        /* 初期は非表示（+1pxで安全逃がし） */
        opacity: 0;
        visibility: hidden;
        transition: transform .25s ease, opacity .2s ease, visibility .2s;
        padding: 72px 20px 20px;
        /* ヘッダー分の余白 */
        overflow-y: auto;
        z-index: 1002;
        /* ボタンより下、Backdropより上 */
        min-height: 100vh;
    }

    .nav.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        cursor: pointer;
        z-index: 1004;
        position: relative;
    }

    /* Backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 1001;
        display: block;
    }

    .nav-backdrop[hidden] {
        display: none !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    /* メニュー開閉時のアイコン切り替え＆スクロールロック */
    .mobile-menu-btn .icon-close {
        display: none;
    }

    body.menu-open .mobile-menu-btn .icon-open {
        display: none;
    }

    body.menu-open .mobile-menu-btn .icon-close {
        display: inline-block;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Swiper 安定化 */
    .swiper,
    .swiper-container {
        width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
        /* 端のはみ出しを隠す */
    }

    .swiper-wrapper {
        display: flex;
    }

    .swiper-slide {
        flex: 0 0 100%;
    }

    /* slidesPerView:1 と揃える */
    .swiper-slide img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* ぼかしオーバーレイがタッチを奪わないように */
    .personality-card.is-locked .card-overlay {
        pointer-events: none;
    }

    .personality-card.is-locked .cta-button {
        pointer-events: auto;
        margin-top: 30%;
    }
}

/* ===== ナビ内リンクの基本スタイル（共通） ===== */
.nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav .nav-links li {
    margin: 0;
}

.nav .nav-links a {
    display: block;
    padding: 14px 8px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

/* ===== Swiper ドット（共通） ===== */
.swiper-value .swiper-pagination {
    position: relative;
    /* 好きな位置に変更可 */
    margin-top: 8px;
    pointer-events: auto;
    z-index: 5;
}

.swiper-value .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    opacity: .35;
    transition: transform .2s ease, opacity .2s ease;
    pointer-events: auto;
}

.swiper-value .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.25);
}


/* フッター */
/* ベース */
.page-footer.teal {
    background: #fff !important;
    /* 白ベース */
    color: var(--text) !important;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .08);
    /* 上方向の柔らかい影 */
    margin-top: 32px;
    padding-top: 24px;
    position: relative;
    overflow: hidden;
    /* 角丸を効かせる */
}

/* 上端に細いアクセントバー（グラデ） */
.page-footer.teal::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: .9;
}

/* コンテンツ */
.page-footer .container {
    /* padding: 8px 16px 0; */
    width:85%;
}

.page-footer .row {
    margin-bottom: 0;
}

.page-footer h5 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

/* リスト */
.page-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-footer li+li {
    margin-top: 8px;
}

/* Materialize の .white-text を上書き（白地でも見えるように） */
.page-footer .white-text {
    color: #374151 !important;
}

/* リンク */
.page-footer a {
    color: #374151;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

.page-footer a:hover {
    color: var(--primary);
}

/* コピーライト帯 */
.footer-copyright {
    background: transparent !important;
    border-top: 1px solid #EEF2F7;
    margin-top: 18px;
}

.footer-copyright .container {
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    padding: 14px 16px 18px;
}

/* レスポンシブ（必要なら） */
@media (max-width: 768px) {
    .page-footer.teal {
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
        box-shadow: 0 -8px 22px rgba(0, 0, 0, .08);
    }
}

/* PC（>=769px）：見出しとリンクを横並び、リンクも横並び */
@media (min-width: 769px) {
    .page-footer .col {
        display: flex;
        /* 見出し(h5)とulを横並び */
        align-items: center;
        gap: 20px;
    }

    .page-footer .col ul {
        display: flex;
        /* リンクも横並び */
        gap: 16px 24px;
    }

    /* 既存の「li + li {margin-top:8px;}」を打ち消す */
    .page-footer .col li+li {
        margin-top: 0;
    }
}

/* SP（<=768px）：縦積み（従来どおり） */
@media (max-width: 768px) {
    .page-footer .col {
        display: block;
        align-items: center;
        text-align: center;
        /* 見出しの下にulが来る縦レイアウト */
    }

    .page-footer .col ul {
        display: block;
        /* リンクは縦並び */
    }

    .page-footer .col li+li {
        margin-top: 8px;
    }
}

/* 終了フッター */