@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e8ef 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 1rem 0;
    overflow-x: hidden;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    text-align: center;
    perspective: 1000px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* キーホルダー全体のラッパー */
.keychain-wrapper {
    display: inline-block;
    position: relative;
    padding-top: 80px;
    max-width: 100%;
}

/* チェーン */
.chain {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chain-link {
    width: 10px;
    height: 15px;
    border: 2px solid #888;
    border-radius: 6px;
    background: linear-gradient(135deg, #aaa 0%, #777 50%, #999 100%);
    box-shadow:
        inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.chain-link:nth-child(even) {
    transform: rotate(90deg);
    margin: -3px 0;
}

.chain-link::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 4px;
}

/* キーホルダー本体 */
.keychain-body {
    position: relative;
    background: linear-gradient(135deg,
            rgba(138, 180, 248, 0.25) 0%,
            rgba(102, 153, 255, 0.35) 50%,
            rgba(79, 134, 247, 0.3) 100%);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px 45px 35px;
    box-shadow:
        0 15px 45px rgba(102, 153, 255, 0.35),
        0 8px 20px rgba(102, 153, 255, 0.2),
        inset 0 3px 12px rgba(255, 255, 255, 0.5),
        inset 0 -3px 12px rgba(0, 0, 0, 0.15),
        inset -3px 0 8px rgba(0, 0, 0, 0.08),
        inset 3px 0 8px rgba(255, 255, 255, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    transform: rotateX(5deg) rotateY(-2deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.6s ease;
    cursor: pointer;
}

/* ホバー時の3Dインタラクション */
.keychain-body:hover {
    transform: rotateX(8deg) rotateY(5deg) translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(102, 153, 255, 0.45),
        0 12px 30px rgba(102, 153, 255, 0.3),
        inset 0 4px 15px rgba(255, 255, 255, 0.6),
        inset 0 -4px 15px rgba(0, 0, 0, 0.2),
        inset -4px 0 10px rgba(0, 0, 0, 0.1),
        inset 4px 0 10px rgba(255, 255, 255, 0.3);
}

.keychain-body:hover .glitter-effect {
    animation: sparkle 1.5s ease-in-out infinite;
}

.keychain-body:hover .edge-highlight {
    opacity: 0.9;
}

/* レジン充填前の透明な状態 */
.keychain-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(138, 180, 248, 0.6) 0%,
            rgba(102, 153, 255, 0.7) 50%,
            rgba(79, 134, 247, 0.65) 100%);
    border-radius: 27px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* レジン液体の波紋エフェクト */
.keychain-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%);
    border-radius: 27px;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transform: translateY(-100%);
}

/* レジン充填アニメーション */
.keychain-body.filling::before {
    animation: keychainFill 2.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

.keychain-body.filling::after {
    animation: liquidWave 2.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

/* レジン風ボタンの共通スタイル定義 */
:root {
    --resin-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    --resin-border: 1px solid rgba(255, 255, 255, 0.4);
    --resin-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    --resin-backdrop: blur(5px);
    --resin-highlight: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 40%);
}

/* 硬化後のスタイル */
.keychain-body.cured::before {
    opacity: 0.88;
    filter: brightness(1.08) contrast(1.05);
    transition: opacity 1.8s ease-in-out, filter 1.8s ease-in-out;
}

.keychain-body.cured::after {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

/* 硬化後の揺れるアニメーション */
.keychain-body.swaying {
    animation: keychainSway 4s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes keychainSway {
    0%, 100% {
        transform: rotateX(5deg) rotateY(-2deg) rotateZ(-2deg);
    }
    25% {
        transform: rotateX(6deg) rotateY(3deg) rotateZ(2deg);
    }
    50% {
        transform: rotateX(4deg) rotateY(-3deg) rotateZ(-2deg);
    }
    75% {
        transform: rotateX(7deg) rotateY(2deg) rotateZ(1deg);
    }
}

/* レジンの縁のハイライト（光の屈折表現） */
.edge-highlight {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 28px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.6) 0%,
            transparent 15%,
            transparent 85%,
            rgba(255, 255, 255, 0.4) 100%);
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.keychain-body.cured .edge-highlight {
    opacity: 0.7;
}

/* キーホルダーの穴 */
.hole {
    position: absolute;
    /* 修正: topの位置を調整 */
    top: 15px;
    /* 修正: leftの位置を調整 */
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #444 0%, #666 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 5;
}

.hole::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
}

.title-wrapper {
    position: relative;
    z-index: 2;
}

.site-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.1em;
    position: relative;
    z-index: 2;
}

.char {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 2px rgba(150, 150, 150, 0.3);
    text-stroke: 2px rgba(150, 150, 150, 0.3);
}

/* 文字に色をつける疑似要素 */
.char::before {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    overflow: hidden;
    color: transparent;
    background: linear-gradient(180deg,
            #2a5ba8 0%,
            #1e4a8f 50%,
            #163d7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 0px transparent;
    text-stroke: 0px transparent;
    filter: drop-shadow(0 2px 4px rgba(30, 74, 143, 0.4));
}

/* 色がつくアニメーション */
.char.filling::before {
    animation: textFill 2.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

/* 硬化後の文字スタイル */
.char.cured::before {
    opacity: 0.92;
    filter: brightness(1.06) contrast(1.03) saturate(1.1);
    transition: opacity 1.8s ease-in-out, filter 1.8s ease-in-out;
}

/* よりリアルな液体充填アニメーション */
@keyframes textFill {
    0% {
        height: 0%;
        filter: blur(0px) brightness(0.95);
    }

    15% {
        height: 18%;
        filter: blur(0.5px) brightness(0.97);
    }

    30% {
        height: 35%;
        filter: blur(0.3px) brightness(0.98);
    }

    50% {
        height: 58%;
        filter: blur(0.2px) brightness(0.99);
    }

    70% {
        height: 82%;
        filter: blur(0.1px) brightness(1);
    }

    85% {
        height: 102%;
        filter: blur(0px) brightness(1.01);
    }

    92% {
        height: 100.5%;
        filter: blur(0px) brightness(1);
    }

    100% {
        height: 100%;
        filter: blur(0px) brightness(1);
    }
}

/* UV光 */
.uv-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(138, 43, 226, 0.5) 0%,
            rgba(147, 112, 219, 0.35) 25%,
            rgba(138, 43, 226, 0.2) 50%,
            transparent 75%);
    opacity: 0;
    pointer-events: none;
    z-index: 15;
    filter: blur(25px);
}

.uv-light.active {
    animation: uvCure 3s ease-in-out forwards;
}

/* よりリアルなUV硬化アニメーション */
@keyframes uvCure {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        filter: blur(30px) brightness(1.5);
    }

    8% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.7);
        filter: blur(28px) brightness(1.4);
    }

    15% {
        opacity: 0.75;
        transform: translate(-50%, -50%) scale(0.95);
        filter: blur(25px) brightness(1.3);
    }

    25% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.05);
        filter: blur(22px) brightness(1.25);
    }

    40% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1.1);
        filter: blur(20px) brightness(1.2);
    }

    60% {
        opacity: 0.92;
        transform: translate(-50%, -50%) scale(1.08);
        filter: blur(18px) brightness(1.15);
    }

    75% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1.12);
        filter: blur(22px) brightness(1.1);
    }

    88% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.18);
        filter: blur(28px) brightness(1.05);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.25);
        filter: blur(35px) brightness(1);
    }
}

/* UVライトが当たっている間のキーホルダーのスタイル（オプション） */
.uv-light.active~.keychain-wrapper .keychain-body,
.uv-light.active~.keychain-wrapper .char {
    /* UVライトに照らされている効果 */
    box-shadow: 0 0 15px 5px rgba(170, 120, 255, 0.5), inset 0 0 10px rgba(200, 180, 255, 0.4);
}

/* 気泡エフェクト */
.bubble {
    position: absolute;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(200, 220, 255, 0.3) 70%,
            transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    box-shadow:
        inset -2px -2px 4px rgba(255, 255, 255, 0.6),
        inset 2px 2px 4px rgba(0, 0, 0, 0.1),
        0 0 8px rgba(255, 255, 255, 0.3);
}

.bubble.active {
    animation: bubbleRise var(--duration) ease-in forwards;
}

/* 気泡が上昇するアニメーション（よりリアルな動き） */
@keyframes bubbleRise {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.3);
    }

    5% {
        opacity: 0.5;
        transform: translateY(-5%) translateX(calc(var(--wiggle, 0px) * 0.1)) scale(0.6);
    }

    10% {
        opacity: 0.75;
        transform: translateY(-10%) translateX(calc(var(--wiggle, 0px) * 0.3)) scale(0.8);
    }

    20% {
        opacity: 0.85;
        transform: translateY(-20%) translateX(calc(var(--wiggle, 0px) * 0.6)) scale(0.9);
    }

    30% {
        opacity: 0.9;
        transform: translateY(-30%) translateX(calc(var(--wiggle, 0px) * 0.8)) scale(0.95);
    }

    40% {
        opacity: 0.92;
        transform: translateY(-40%) translateX(calc(var(--wiggle, 0px) * 1)) scale(1);
    }

    50% {
        opacity: 0.88;
        transform: translateY(-50%) translateX(calc(var(--wiggle, 0px) * 0.9)) scale(1.05);
    }

    60% {
        opacity: 0.8;
        transform: translateY(-60%) translateX(calc(var(--wiggle, 0px) * 0.7)) scale(1.08);
    }

    70% {
        opacity: 0.65;
        transform: translateY(-70%) translateX(calc(var(--wiggle, 0px) * 0.5)) scale(1.1);
    }

    80% {
        opacity: 0.45;
        transform: translateY(-80%) translateX(calc(var(--wiggle, 0px) * 0.3)) scale(1.12);
    }

    90% {
        opacity: 0.25;
        transform: translateY(-90%) translateX(calc(var(--wiggle, 0px) * 0.1)) scale(1.15);
    }

    100% {
        opacity: 0;
        transform: translateY(-100%) translateX(0) scale(1.18);
    }
}

/* 光の反射エフェクト */
.light-reflection {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 40%;
    height: 30%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    border-radius: 50% 40% 30% 50%;
    filter: blur(8px);
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transform: rotate(-25deg);
}

/* グリッター・ラメエフェクト */
.glitter-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.85) 2px, transparent 2px),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.75) 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 30% 90%, rgba(255, 255, 255, 0.7) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.75) 2px, transparent 2px),
        radial-gradient(circle at 25% 60%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.85) 1.5px, transparent 1.5px),
        radial-gradient(circle at 15% 45%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 55% 25%, rgba(255, 255, 255, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(circle at 35% 10%, rgba(255, 255, 255, 0.75) 1.5px, transparent 1.5px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 25px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
}

.keychain-body.cured .glitter-effect {
    opacity: 0.4;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
    }

    25% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.7;
    }

    75% {
        opacity: 0.45;
    }
}

.keychain-body.filling .light-reflection {
    animation: reflectionAppear 2.5s ease-out forwards;
}

.keychain-body.cured .light-reflection {
    opacity: 0.6;
    filter: blur(6px);
    transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
}

/* レジンの縁の光の屈折エフェクト */
.keychain-body::before {
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.4),
        inset 0 0 10px rgba(102, 153, 255, 0.3);
}

/* 追加の光の反射ポイント */
.light-reflection::before {
    content: '';
    position: absolute;
    top: 60%;
    right: 10%;
    width: 25%;
    height: 20%;
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.2) 40%,
            transparent 70%);
    border-radius: 50%;
    filter: blur(6px);
}

.light-reflection::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 25%;
    width: 20%;
    height: 15%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 80%);
    border-radius: 50%;
    filter: blur(5px);
}

@keyframes reflectionAppear {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.5;
    }
}

/* キーホルダー充填アニメーション - よりリアルな液体の流れ */
@keyframes keychainFill {
    0% {
        opacity: 0;
        clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    10% {
        opacity: 0.6;
        clip-path: polygon(0% 100%, 100% 100%, 100% 90%, 0% 92%);
    }

    30% {
        opacity: 0.75;
        clip-path: polygon(0% 100%, 100% 100%, 100% 70%, 0% 65%);
    }

    50% {
        opacity: 0.85;
        clip-path: polygon(0% 100%, 100% 100%, 100% 45%, 0% 50%);
    }

    70% {
        opacity: 0.92;
        clip-path: polygon(0% 100%, 100% 100%, 100% 20%, 0% 25%);
    }

    90% {
        opacity: 0.98;
        clip-path: polygon(0% 100%, 100% 100%, 100% 5%, 0% 2%);
    }

    100% {
        opacity: 1;
        clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 0%);
    }
}

/* 液体の波紋・揺れアニメーション */
@keyframes liquidWave {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    20% {
        opacity: 0.4;
        transform: translateY(-80%);
    }

    40% {
        opacity: 0.5;
        transform: translateY(-60%) scaleY(1.1);
    }

    60% {
        opacity: 0.45;
        transform: translateY(-40%) scaleY(0.95);
    }

    80% {
        opacity: 0.3;
        transform: translateY(-20%) scaleY(1.05);
    }

    100% {
        opacity: 0.2;
        transform: translateY(0%) scaleY(1);
    }
}

/* キャッチコピー */
.tagline {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e4a8f;
    margin-top: 1.2rem;
    letter-spacing: 0.3em;
    opacity: 0;
    text-shadow: 0 2px 4px rgba(30, 74, 143, 0.2);
}

.tagline.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 紹介文 */
.description {
    margin-top: 2.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.description.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.description p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    line-height: 1.7;
    margin: 0.4rem 0;
}

/* ナビゲーションメニュー */
.navigation {
    margin-top: 2rem;
    padding: 1rem 0.5rem;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.navigation.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    animation: buttonSway 3s ease-in-out infinite;
    transform-origin: top center;
}

.nav-link:nth-child(1) { animation-delay: 0s; }
.nav-link:nth-child(2) { animation-delay: 0.3s; }
.nav-link:nth-child(3) { animation-delay: 0.6s; }
.nav-link:nth-child(4) { animation-delay: 0.9s; }
.nav-link:nth-child(5) { animation-delay: 1.2s; }
.nav-link:nth-child(6) { animation-delay: 1.5s; }

.nav-link .button-content {
    display: inline-block;
    padding: 0.9rem 1.3rem;
    /* レジン風スタイル */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(230, 240, 255, 0.6) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    color: #1e4a8f;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        0 4px 10px rgba(30, 74, 143, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ボタン用の鎖 */
.button-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -2px;
    margin-bottom: -2px;
}

.chain-link-btn {
    width: 6px;
    height: 12px;
    border: 2px solid #888;
    border-radius: 5px;
    background: linear-gradient(135deg, #aaa 0%, #777 50%, #999 100%);
    box-shadow:
        inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: -4px;
}

.chain-link-btn:nth-child(even) {
    transform: rotate(90deg);
}

/* ボタンの揺れるアニメーション */
@keyframes buttonSway {
    0%, 100% {
        transform: rotate(-1deg);
    }
    50% {
        transform: rotate(1deg);
    }
}

/* レジンのハイライト（光沢） */
.nav-link .button-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 25px 25px 100% 100% / 25px 25px 10px 10px;
    opacity: 0.7;
    pointer-events: none;
}

.nav-link .button-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(102, 153, 255, 0.2) 0%,
            rgba(79, 134, 247, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover .button-content {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 20px rgba(30, 74, 143, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 5px rgba(0, 0, 0, 0.05);
    color: #163d7a;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.8) 100%);
}

.nav-link:hover .button-content::before {
    opacity: 1;
}

.nav-link:active .button-content {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(102, 153, 255, 0.3) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* タッチデバイス用の最適化 */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .nav-container {
        gap: 0.7rem;
    }

    .nav-link:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* 販売ページ */
.shop-links {
    margin-top: 2.5rem;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.shop-links.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.shop-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e4a8f;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.shop-container {
    display: flex;
    justify-content: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.shop-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    animation: buttonSway 4s ease-in-out infinite;
    transform-origin: top center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.shop-link .button-content {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    /* レジン風スタイル */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 245, 255, 0.65) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 8px rgba(0, 0, 0, 0.03);
    color: #333;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    box-sizing: border-box;
}

/* レジンのハイライト（光沢） */
.shop-link .button-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px 20px 100% 100% / 20px 20px 10px 10px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* レジン充填エフェクト用の疑似要素 */
.shop-link .button-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(255, 0, 0, 0.15) 0%,
            rgba(255, 0, 0, 0.08) 50%,
            transparent 100%);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    border-radius: 20px;
}

.shop-links.show .shop-link .button-content::before {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.shop-link:hover .button-content {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 15px 40px rgba(30, 74, 143, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 250, 255, 0.8) 100%);
}

.shop-link.yahoo-auction:hover .button-content {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.shop-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.shop-info {
    position: relative;
    z-index: 1;
}

.shop-info h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: #1e4a8f;
}

.shop-info p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* 配信活動 */
.streaming {
    margin-top: 2.5rem;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.streaming.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.streaming-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e4a8f;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.streaming-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.streaming-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    animation: buttonSway 4.5s ease-in-out infinite;
    transform-origin: top center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.streaming-link:nth-child(1) { animation-delay: 0s; }
.streaming-link:nth-child(2) { animation-delay: 0.5s; }

.streaming-link .button-content {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    /* レジン風スタイル */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 245, 255, 0.65) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 8px rgba(0, 0, 0, 0.03);
    color: #333;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    box-sizing: border-box;
}

/* レジンのハイライト（光沢） */
.streaming-link .button-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px 20px 100% 100% / 20px 20px 10px 10px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* レジン充填エフェクト */
.streaming-link .button-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(173, 216, 230, 0.2) 0%,
            rgba(255, 182, 193, 0.15) 50%,
            transparent 100%);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    border-radius: 20px;
}

.streaming.show .streaming-link .button-content::before {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.streaming.show .streaming-links .streaming-link:nth-child(2) .button-content::before {
    transition-delay: 0.5s;
}

.streaming-link.no-icon .button-content {
    justify-content: center;
    text-align: center;
}

.streaming-link.no-icon .streaming-info {
    width: 100%;
}

.streaming-link:hover .button-content {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 15px 40px rgba(30, 74, 143, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.streaming-link.iriam:hover .button-content {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.streaming-link.twitcasting:hover .button-content {
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.3) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.streaming-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    position: relative;
    z-index: 1;
}

.streaming-icon.twitcasting-logo {
    font-size: 0;
}

.streaming-icon.twitcasting-logo img {
    width: 90px;
    height: auto;
    display: block;
}

.streaming-info {
    position: relative;
    z-index: 1;
}

.streaming-info h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: #1e4a8f;
}

.streaming-info p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* X (Twitter) */
.twitter-section {
    margin-top: 2.5rem;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.twitter-section.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.twitter-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e4a8f;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(30, 74, 143, 0.1);
}

.twitter-links {
    display: flex;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.twitter-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    animation: buttonSway 3.5s ease-in-out infinite;
    transform-origin: top center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.twitter-link .button-content {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    /* レジン風スタイル */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 245, 255, 0.65) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 8px rgba(0, 0, 0, 0.03);
    color: #333;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    box-sizing: border-box;
}

/* レジンのハイライト（光沢） */
.twitter-link .button-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px 20px 100% 100% / 20px 20px 10px 10px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* レジン充填エフェクト */
.twitter-link .button-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(29, 161, 242, 0.2) 0%,
            rgba(29, 161, 242, 0.1) 50%,
            transparent 100%);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    border-radius: 20px;
}

.twitter-section.show .twitter-link .button-content::before {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.twitter-link:hover .button-content {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 15px 40px rgba(29, 161, 242, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.15) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.twitter-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.twitter-info {
    position: relative;
    z-index: 1;
}

.twitter-info h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: #1e4a8f;
}

.twitter-info p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* TikTok埋め込み */
.tiktok-section {
    margin-top: 2.5rem;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.tiktok-section.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.tiktok-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e4a8f;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(30, 74, 143, 0.1);
}

.tiktok-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

.tiktok-embed {
    margin: 0 auto;
}

/* TikTokイベント告知 */
.tiktok-events-notice {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa06b 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    animation: eventPulse 2s ease-in-out infinite;
}

.tiktok-events-notice p {
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

@keyframes eventPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
    }
}

/* TikTokリンクコンテナ */
.tiktok-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 2rem;
    box-sizing: border-box;
}

/* TikTokイベントカード (Twitter/Xカード風) */
.tiktok-event-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(30, 74, 143, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tiktok-event-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 35px rgba(30, 74, 143, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* イベントカード画像部分 */
.event-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6eeff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tiktok-event-card:hover .event-card-image img {
    transform: scale(1.03);
}

/* イベントカードコンテンツ部分 */
.event-card-content {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 252, 255, 0.8) 100%);
}

.event-card-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.event-card-info {
    flex: 1;
    text-align: left;
}

.event-card-info h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1e4a8f;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.event-card-info p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* イベントハイライト効果 */
.tiktok-event-card.event-highlight {
    border: 2px solid rgba(255, 165, 0, 0.4);
    animation: eventCardGlow 2s ease-in-out infinite;
}

.tiktok-event-card.event-highlight .event-card-content {
    background: linear-gradient(135deg,
        rgba(255, 240, 220, 0.95) 0%,
        rgba(255, 250, 240, 0.9) 100%);
}

.tiktok-event-card.event-highlight:hover {
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow:
        0 12px 40px rgba(255, 140, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

@keyframes eventCardGlow {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(255, 140, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow:
            0 6px 30px rgba(255, 140, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 1);
    }
}

/* Amazonの欲しいものリスト */
.wishlist {
    margin-top: 2.5rem;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.wishlist.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.wishlist-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e4a8f;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.wishlist-container {
    display: flex;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.wishlist-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    animation: buttonSway 4.2s ease-in-out infinite;
    transform-origin: top center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wishlist-link .button-content {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    /* レジン風スタイル */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 245, 255, 0.65) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 8px rgba(0, 0, 0, 0.03);
    color: #333;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    box-sizing: border-box;
}

/* レジンのハイライト（光沢） */
.wishlist-link .button-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px 20px 100% 100% / 20px 20px 10px 10px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* レジン充填エフェクト */
.wishlist-link .button-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(255, 215, 0, 0.25) 0%,
            rgba(255, 215, 0, 0.12) 50%,
            transparent 100%);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    border-radius: 20px;
}

.wishlist.show .wishlist-link .button-content::before {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.wishlist-link:hover .button-content {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.wishlist-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.wishlist-info {
    position: relative;
    z-index: 1;
}

.wishlist-info h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0rem;
    color: #1e4a8f;
}

/* 作品ギャラリー */
.gallery {
    margin-top: 2.5rem;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery.show {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e4a8f;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

/* スライドショー */
.gallery-slider {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    aspect-ratio: 4 / 3;
    touch-action: pan-y pinch-zoom;
}

.gallery-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    flex-shrink: 0;
    box-sizing: border-box;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* ナビゲーションボタン */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    color: #1e4a8f;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.gallery-prev {
    left: 5px;
}

.gallery-next {
    right: 5px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(30, 74, 143, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* ドットインジケーター */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(30, 74, 143, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: rgba(30, 74, 143, 0.9);
    transform: scale(1.3);
    border-color: rgba(30, 74, 143, 0.9);
}

.gallery-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}


/* レスポンシブ対応（スマホファースト） */

/* タブレット縦向き以上 (481px~) */
@media (min-width: 481px) {
    .container {
        padding: 0 1rem;
    }

    .keychain-wrapper {
        padding-top: 100px;
    }

    .keychain-body {
        padding: 50px 60px 45px;
        border-radius: 28px;
    }

    .site-title {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .description p {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1.8rem;
    }

    .streaming-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* タブレット横向き以上 (769px~) */
@media (min-width: 769px) {
    body {
        padding: 1.5rem 0;
    }

    .container {
        max-width: 750px;
        padding: 0 1.5rem;
    }

    .keychain-wrapper {
        padding-top: 110px;
    }

    .keychain-body {
        padding: 55px 70px 50px;
        border-radius: 30px;
    }

    .site-title {
        font-size: 4rem;
    }

    .tagline {
        font-size: 1.1rem;
        margin-top: 1.4rem;
    }

    .description {
        margin-top: 3rem;
    }

    .navigation {
        margin-top: 2.5rem;
    }

    .nav-container {
        gap: 1rem;
        max-width: 800px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.8rem 2rem;
    }

    .shop-links,
    .streaming,
    .twitter-section,
    .tiktok-section,
    .wishlist,
    .gallery {
        margin-top: 3.5rem;
        padding: 2.5rem 2rem;
    }

    .shop-title,
    .streaming-title,
    .twitter-title,
    .tiktok-title,
    .wishlist-title,
    .gallery-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .shop-link,
    .streaming-link,
    .twitter-link,
    .wishlist-link {
        padding: 1.8rem;
        border-radius: 18px;
        gap: 1.4rem;
    }

    .shop-icon,
    .twitter-icon,
    .wishlist-icon {
        font-size: 2.8rem;
    }

    .streaming-icon {
        font-size: 2.8rem;
        min-width: 70px;
    }

    .streaming-icon.twitcasting-logo img {
        width: 110px;
    }

    .shop-info h3,
    .streaming-info h3,
    .twitter-info h3,
    .wishlist-info h3 {
        font-size: 1.4rem;
    }

    .shop-info p,
    .streaming-info p,
    .twitter-info p {
        font-size: 0.9rem;
    }

    .gallery-slider {
        max-width: 700px;
    }

    .gallery-prev,
    .gallery-next {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
        opacity: 0.85;
    }

    .gallery-prev {
        left: 12px;
    }

    .gallery-next {
        right: 12px;
    }

    .gallery-dot {
        width: 10px;
        height: 10px;
    }
}

/* PC以上 (1025px~) */
@media (min-width: 1025px) {
    body {
        padding: 2rem 0;
    }

    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .keychain-wrapper {
        padding-top: 120px;
    }

    .keychain-body {
        padding: 60px 80px 50px;
    }

    .chain-link {
        width: 12px;
        height: 18px;
        border: 3px solid #888;
    }

    .hole {
        width: 20px;
        height: 20px;
        top: 20px;
    }

    .site-title {
        font-size: 5rem;
    }

    .tagline {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }

    .description {
        margin-top: 4rem;
    }

    .navigation {
        margin-top: 3rem;
    }

    .nav-container {
        gap: 1.2rem;
        max-width: 900px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.9rem 2.2rem;
    }

    .shop-links,
    .streaming,
    .twitter-section,
    .tiktok-section,
    .wishlist,
    .gallery {
        margin-top: 4rem;
        padding: 3rem 2rem;
    }

    .shop-title,
    .streaming-title,
    .twitter-title,
    .tiktok-title,
    .wishlist-title,
    .gallery-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .shop-link,
    .streaming-link,
    .twitter-link,
    .wishlist-link {
        padding: 2rem;
        border-radius: 20px;
        gap: 1.5rem;
    }

    .shop-icon,
    .twitter-icon,
    .wishlist-icon {
        font-size: 3rem;
    }

    .streaming-icon {
        font-size: 3rem;
        min-width: 80px;
    }

    .streaming-icon.twitcasting-logo img {
        width: 120px;
    }

    .shop-info h3,
    .streaming-info h3,
    .twitter-info h3,
    .wishlist-info h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .shop-info p,
    .streaming-info p,
    .twitter-info p {
        font-size: 0.9rem;
    }

    .streaming-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
    }

    .shop-container {
        max-width: 600px;
    }

    .twitter-links {
        max-width: 600px;
    }

    .wishlist-container {
        max-width: 600px;
    }

    .gallery-slider {
        max-width: 800px;
    }

    .gallery-prev,
    .gallery-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        opacity: 0.9;
    }

    .gallery-prev {
        left: 15px;
    }

    .gallery-next {
        right: 15px;
    }

    .gallery-dot {
        width: 11px;
        height: 11px;
    }
}

/* --- 装飾レイヤー (Hanging Charms) --- */
.decorations-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
}

.hanging-charm {
    position: absolute;
    top: -20px;
    /* チェーンの開始位置 */
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: charmSway 4s ease-in-out infinite alternate;
    z-index: 20;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.left-charm {
    left: 5%;
    animation-delay: 0s;
}

.center-charm {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.75s;
}

.right-charm {
    right: 5%;
    animation-delay: 1.5s;
}

.chain-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -2px;
}

.chain-link-v {
    width: 8px;
    height: 14px;
    border: 2px solid #aaa;
    border-radius: 5px;
    background: transparent;
    margin-bottom: -4px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.chain-link-v:nth-child(even) {
    transform: rotate(90deg);
}

.charm-body-wrapper {
    margin-top: -2px;
    position: relative;
    transition: transform 0.3s ease;
}

.charm-body {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 15px;
    /* レジン風の丸み */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
}

.charm-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* レジンの艶（グロス） */
.charm-gloss {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0.4) 100%);
    border-radius: 15px;
    pointer-events: none;
}

/* 揺れるアニメーション */
@keyframes charmSway {
    0% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(3deg);
    }
}

/* ホバー時の反応（pointer-events: autoが必要な場合） */
.hanging-charm {
    pointer-events: auto;
    /* チャーム自体は触れるようにする */
    cursor: grab;
}

.hanging-charm:hover {
    animation-play-state: paused;
}

.hanging-charm:hover .charm-body-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .hanging-charm {
        transform: scale(0.7);
        top: -10px;
    }

    .left-charm {
        left: -10px;
    }

    .right-charm {
        right: -10px;
    }

    /* モバイルではコンテンツを隠さないように少し透明にするか、位置を調整 */
    .decorations-layer {
        height: 0;
        /* 高さをなくして上部だけに */
        overflow: visible;
    }
}

/* 背景の装飾（散りばめられたパーツ） */
.bg-decoration {
    position: fixed;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

.bg-star {
    width: 20px;
    height: 20px;
    background: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.bg-heart {
    width: 20px;
    height: 20px;
    background: #ff69b4;
    clip-path: path('M10 3.224c4.242-6.138 14.142-2.122 14.142 4.95 0 5.656-8.485 11.313-14.142 15.556-5.657-4.243-14.142-9.9-14.142-15.556 0-7.071 9.9-11.088 14.142-4.95z');
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}