:root {
    --bg-dark: #0f172a;
    --color-dislike: #7ec8ff;
    --color-interest: #b8ff7e;
    --color-like: #ff7eb3;
    --color-ng: #ef4444;
    --color-neutral: #475569;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    /* ヘッダー/フッター追加に伴いボディ自体のpaddingはリセット */
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    /* フッターを下部に押し下げるため */
}

/* ヘッダー・フッターに挟まれるメインコンテンツ領域 */
.site-main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
}

#capture-area-list {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.jar-maker-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* スマホ等で余白を減らして画面サイズを有効活用 */
@media (max-width: 480px) {
    .jar-maker-container {
        padding: 10px;
    }
}

/* 静的ページ用のコンテンツ背景ブロック */
.content-block {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    .content-block {
        padding: 15px;
    }
}

.main-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.3rem;
    color: #f8fafc;
    letter-spacing: 0.1em;
}

.item-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.25);
    padding: 15px 20px 20px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.05rem;
    color: #e2e8f0;
    margin: 0;
}

/* --- 入力画面用の小瓶（メイソンジャーSVG） --- */
.mini-jar-svg {
    flex-shrink: 0;
    width: 38px;
    height: 56px;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}

.mini-jar-container {
    position: relative;
    flex-shrink: 0;
}

.ng-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-ng);
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    z-index: 10;
}

.ng-btn {
    background: transparent;
    border: 1px solid #475569;
    color: #94a3b8;
    border-radius: 10px;
    padding: 4px 5px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: normal;
    line-height: 1.4;
    word-break: keep-all;
    min-width: 46px;
    max-width: 60px;
    text-align: center;
}

.ng-btn.active {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-ng);
    border-color: var(--color-ng);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.slider-wrapper {
    width: 100%;
    position: relative;
    padding-top: 15px;
    transition: opacity 0.3s;
}

.segments {
    position: relative;
    height: 1.2rem;
    margin-bottom: 8px;
    width: 100%;
}

.segment {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    white-space: nowrap;
}

/* つまみの位置（0〜15の16段階）に合わせた計算値 */
.segment:nth-child(1) {
    left: calc(18.75% + 6.25px);
}

/* 苦手 */
.segment:nth-child(2) {
    left: calc(56.25% - 1.25px);
}

/* 興味 */
.segment:nth-child(3) {
    left: calc(87.5% - 7.5px);
}

/* 好き */

.segment:active {
    transform: translateX(-50%) scale(0.95);
}

.tooltip {
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    background: var(--color-neutral);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.8);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    z-index: 10;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: inherit;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    /* 0%〜31%を苦手(青)、31%〜35%を空(グレー)、35%〜66.67%を興味(緑)、66.67%〜100%を好き(ピンク) */
    background: linear-gradient(to right,
            rgba(148, 163, 184, 0.4) 0%, rgba(148, 163, 184, 0.4) 6.25%,
            rgba(59, 130, 246, 0.3) 6.25%, rgba(59, 130, 246, 0.3) 35.3%,
            rgba(148, 163, 184, 0.4) 35.3%, rgba(148, 163, 184, 0.4) 39.0%,
            rgba(16, 185, 129, 0.3) 39.0%, rgba(16, 185, 129, 0.3) 68.75%,
            rgba(236, 72, 153, 0.3) 68.75%, rgba(236, 72, 153, 0.3) 100%);
    border-radius: 3px;
    outline: none;
    touch-action: pan-y;
    /* 縦スクロールを優先させ、誤動作を防止 */
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* スマホ等（タッチ操作主体）のデバイス向け：誤動作防止のGrab-Only設定 */
@media (pointer: coarse) {

    /* レール部分のタッチ判定を無効化（スクロールが貫通する） */
    input[type="range"] {
        pointer-events: none;
    }

    /* つまみ部分だけタッチ判定を復活＆少し大きくして掴みやすく */
    input[type="range"]::-webkit-slider-thumb {
        pointer-events: auto;
        width: 26px;
        height: 26px;
    }
}

.watermark {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    padding-right: 10px;
}

.action-area-wrapper {
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
}

.action-area {
    display: flex;
    justify-content: center;
}

.save-btn {
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.save-btn:active {
    transform: scale(0.95);
}

.save-btn:disabled {
    background: #475569 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

.btn-summary {
    background: linear-gradient(135deg, var(--theme-color, #ec4899), #8b5cf6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-summary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    filter: brightness(1.15);
}

.reset-area {
    margin-top: 25px;
    /* Increased from 5px to prevent accidental taps */
    text-align: center;
}

.reset-btn {
    width: 100%;
    max-width: 300px;
    /* Match max-width of save-btn */
    margin: 0 auto;
    /* Center the button within the wrapper */
    padding: 15px 0;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.reset-btn:active {
    transform: translateY(1px);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: white;
    text-decoration: underline;
}

/* ========================================== */
/* 性別・SMトグルセレクター（入力画面）         */
/* ========================================== */
/* プロフィール選択カード */
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 12px 12px;
    margin: 10px 0 28px;
}

.profile-card-heading {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 12px;
    letter-spacing: 0.05em;
}

.profile-selectors {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-card-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 10px 0 0;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 6px 12px;
}

.toggle-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    font-size: 1rem;
    font-weight: bold;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 22px;
    /* ピル型：短ければ円、長ければ長方形 */
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.toggle-btn.selected {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
}

.selector-or {
    color: #64748b;
    font-size: 0.8rem;
    user-select: none;
}

/* ========================================== */
/* サマリー出力画像用ヘッダー                    */
/* ========================================== */
.summary-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    /* 元の余白に戻す */
}

.summary-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.summary-info-text {
    font-size: 0.70rem;
    /* 小さめに調整 */
    color: #94a3b8;
    margin: 0;
    font-weight: bold;
    line-height: 1.4;
}

.summary-url-text {
    font-size: 15px !important;
    white-space: nowrap;
    word-break: normal;
    letter-spacing: 0;
    word-spacing: 0;
    display: inline-block;
    font-weight: normal;
    font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

.summary-header-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.summary-selector-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-choice {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    font-size: 1.15rem;
    /* 大きめに調整 */
}

.summary-choice.active {
    color: white;
}

.summary-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.summary-choice.active .summary-circle {
    background: #7c3aed;
    border-color: #7c3aed;
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.7);
}

.summary-or {
    color: #475569;
    font-weight: normal;
    font-size: 0.9rem;
}

/* ========================================== */
/* 一覧画像（7x5）専用スタイル */
/* ========================================== */
#capture-area-summary {
    width: 760px;
    background-color: var(--bg-dark);
    padding: 30px 20px;
    box-sizing: border-box;
    color: white;
    border-radius: 20px;
}

.summary-title {
    text-align: left;
    /* 左揃えに変更 */
    width: 100%;
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    letter-spacing: 0.1em;
}

/* No longer used as we use summary-info-text */
.summary-subtitle {
    display: none;
}

.summary-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Reduced from 30px to fit on 375px screens */
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: bold;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-color.dislike {
    background: var(--color-dislike);
}

.legend-color.interest {
    background: var(--color-interest);
}

.legend-color.like {
    background: var(--color-like);
}

.legend-color.unknown {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    box-sizing: border-box;
}

/* ========================================== */
/* 関連する性癖の瓶                           */
/* ========================================== */
.related-bottles-wrapper {
    margin: -20px 0 40px;
}

.related-title {
    position: relative;
    font-size: 0.75rem;
    color: #9aa3c7;
    margin: 0 0 12px;
    padding-left: 10px;
    letter-spacing: 0.03em;
}

.related-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 0.95em;
    background: var(--theme-color, #8b5cf6);
    transform: translateY(-50%);
}

.related-scroll-area {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-scroll-area::-webkit-scrollbar {
    display: none;
}

.related-chip {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(180deg, rgba(31, 40, 67, 0.96), rgba(22, 29, 48, 0.96));
    color: #e5e7eb;
    border: 1.5px solid rgba(110, 123, 167, 0.38);
    border-radius: 20px;
    font-size: 0.8125rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(3, 7, 18, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-chip:hover,
.related-chip:active {
    background: linear-gradient(180deg, rgba(38, 48, 78, 1), rgba(26, 34, 56, 1));
    color: #ffffff;
    border-color: color-mix(in srgb, var(--theme-color, #8b5cf6) 65%, white 10%);
    box-shadow: 0 8px 18px rgba(8, 12, 28, 0.28), 0 0 0 1px color-mix(in srgb, var(--theme-color, #8b5cf6) 22%, transparent);
}

#summary-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 30px 8px;
    justify-items: center;
}

.summary-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 一覧用ジャー画像 --- */
.summary-jar-container {
    position: relative;
}

.summary-jar-img {
    width: 68px;
    height: 100px;
    display: block;
}

.summary-ng {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: var(--color-ng);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    z-index: 10;
}

.summary-label {
    margin-top: 5px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

/* --- 空瓶プレビュー用スタイル --- */
.empty-preview-wrapper {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    transition: box-shadow 0.3s ease;
}

.empty-preview-wrapper:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.preview-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* var(--bg-dark) with opacity */
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

/* モーダル表示時のスタイル */
.empty-preview-wrapper.is-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
    border: none !important;
    cursor: zoom-out;
}

.empty-preview-wrapper.is-modal .preview-overlay-text {
    opacity: 0;
    pointer-events: none;
}

.empty-preview-wrapper.is-modal #preview-grid {
    flex-shrink: 0;
    /* フレックスコンテナによって元サイズ(760px)が縮小されるのを防ぐ */
    transform-origin: center center !important;
}

/* ========================================== */
/* グローバルヘッダー (Global Header)           */
/* ========================================== */
.site-header {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1005;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* スクロールダウン時にヘッダーを隠すためのクラス */
.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.desktop-nav {
    display: flex;
    gap: 25px;
}

.desktop-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: #ff7eb3;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    padding: 0;
    z-index: 1001;
    /* ドロワーより上に配置 */
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    border-radius: 2px;
}

/* ハンバーガー開いた時の×印 (状態クラス: drawer-open) */
body.drawer-open .hamburger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.drawer-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}

body.drawer-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* スマホ用ドロワーメニュー */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 250px;
    height: 100vh;
    background: #1e293b;
    z-index: 1000;
    padding-top: 80px;
    transition: right 0.2s cubic-bezier(0.1, 0.8, 0.2, 1);
    /* もっさり感を解消するため速めに */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

body.drawer-open .mobile-drawer {
    right: 0;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 0 25px;
}

.drawer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.drawer-link:hover {
    color: #ff7eb3;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.drawer-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
}

/* PC以上の画面ではバーガーメニューを消す */
@media (max-width: 768px) {
    .header-inner {
        padding: 8px 20px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }
}

/* ========================================== */
/* グローバルフッター (Global Footer)           */
/* ========================================== */
.site-footer {
    width: 100%;
    background: #0b1120;
    padding: 40px 0 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-image-decoration {
    width: 100%;
    height: 300px;
    background-image: url('/assets/img/seiheki-footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* マスクの代わりに背景色と同じ色で四辺を覆う（iPhone互換性のため） */
.footer-image-decoration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right, var(--bg-dark) 0%, transparent 15%, transparent 85%, var(--bg-dark) 100%),
        linear-gradient(to bottom, var(--bg-dark) 0%, transparent 15%, transparent 85%, var(--bg-dark) 100%);
}

@media (max-width: 768px) {
    .footer-image-decoration {
        height: 200px;
    }
}

.footer-back-to-top {
    margin-bottom: 30px;
}

.footer-back-to-top a {
    display: inline-block;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-back-to-top a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    background: #050810;
    /* ワンコントラスト落としたさらに暗黒色 */
    padding: 25px 20px 30px;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.8;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright p:first-child {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ========================================== */
/* パンくずリスト (Breadcrumb)                  */
/* ========================================== */
.breadcrumb {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 6px;
    padding: 0 20px;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #94a3b8;
}

.breadcrumb-sep {
    color: #475569;
    font-size: 0.85rem;
}


@media (max-width: 768px) {
    .breadcrumb {
        padding: 0 10px;
    }
}

/* ========================================== */
/*用語解説機能（ツールチップ＆ボトムシート） */
/* ========================================== */
.info-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.info-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: var(--theme-color, #ec4899);
    box-shadow: 0 0 10px var(--theme-color, #ec4899);
    transform: scale(1.1);
}

/* PC用ツールチップ */
.item-description-tooltip {
    position: absolute;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--theme-color, #ec4899);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #f8fafc;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    white-space: pre-wrap;
}

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

/* スマホ用ボトムシート */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    z-index: 10010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.bottom-sheet-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--theme-color, #ec4899);
    border-radius: 24px 24px 0 0;
    padding: 28px 24px 44px;
    z-index: 10011;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -15px 50px rgba(0,0,0,0.8);
}

.bottom-sheet.is-visible {
    transform: translateY(0);
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bottom-sheet-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f8fafc;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom-sheet-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2rem;
    background: var(--theme-color, #ec4899);
    border-radius: 2px;
}

.bottom-sheet-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bottom-sheet-close:active {
    background: rgba(255, 255, 255, 0.2);
}

.bottom-sheet-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #cbd5e1;
    word-break: break-all;
    white-space: pre-wrap;
}

/* ========================================== */
/* 性癖の瓶：シェアボタンエリア                 */
/* ========================================== */
.share-area {
    margin: 30px auto 10px;
    padding: 0 20px;
    max-width: 500px;
}

.share-btn-jar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #1d9bf0, #00ba7c);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(29, 155, 240, 0.3);
    animation: share-pulse 2s infinite;
}

.share-btn-jar:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 30px rgba(29, 155, 240, 0.45);
    filter: brightness(1.1);
}

.share-btn-jar:active {
    transform: scale(0.98);
}

@keyframes share-pulse {
    0% { box-shadow: 0 0 0 0 rgba(29, 155, 240, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(29, 155, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 155, 240, 0); }
}

.share-instruction-tooltip {
    display: inline-block;
    background: rgba(236, 72, 153, 0.15); /* テーマカラーベースのやわらかいピンク */
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f9a8d4;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 12px;
    position: relative;
    animation: float-tooltip 3s ease-in-out infinite;
}

.share-instruction-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(236, 72, 153, 0.4);
}

@keyframes float-tooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.share-btn-icon {
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ========================================== */
/* オーガズムライフ バナー（フッター直前）       */
/* ========================================== */
.ol-banner-wrap {
    width: 100%;
    max-width: 600px;
    padding: 0 10px;
    margin: 0 auto 40px;
}

.ol-banner {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.ol-banner:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.ol-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
