/* =====================================================
   index.css - 初期ページ固有スタイル（水族館テーマ）
   ===================================================== */

/* ===== テーマカラー上書き ===== */
:root {
    /* 水族館・アクアリウム風カラー */
    --color-gold: #4ECDC4;
    --color-gold-light: #A8E6CF;
    --color-gold-dark: #2C8A7E;
    --color-indigo: #1A5276;
    --color-indigo-deep: #0E2F44;
    --color-forest: #00B4D8;
    --color-forest-deep: #0077B6;
    --color-washi: #E8F4F8;
    --color-washi-dark: #CAE9F5;
    
    /* 水族館専用カラー */
    --aqua-deep: #0A1628;
    --aqua-mid: #1A3A5C;
    --aqua-light: #2E6B8A;
    --aqua-glow: #00D4FF;
    --aqua-surface: rgba(255, 255, 255, 0.95);
    
    /* フッターエリア用 */
    --color-footer-bg: #E8F4F8;
}

body {
    background: var(--color-washi);
}

/* ===== メインコンテナ ===== */
.main-container {
    overflow: hidden;
    background: transparent;
    z-index: 2;
}

/* 水中の光の揺らぎエフェクト */
.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 100% 60% at 30% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 70% 5%, rgba(78, 205, 196, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 8%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        linear-gradient(90deg, rgba(0, 180, 216, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 180, 216, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 25px 25px, 25px 25px;
    pointer-events: none;
    z-index: 1;
}

/* 魚の背景レイヤー */
.main-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

/* ===== 背景：海の生き物 ===== */
.swimming-creatures {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.creature {
    position: absolute;
    pointer-events: none;
    opacity: 0.8;
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(0 2px 6px rgba(10, 60, 100, 0.10));
}

/* ===== ヒーローセクション ===== */
.hero-section {
    position: relative;
    z-index: 2;
    padding: 50px 24px 24px;
    text-align: center;
    overflow: hidden;
    min-height: auto;
}

/* 装飾の泡 */
.cloud {
    position: absolute;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.cloud svg {
    filter: drop-shadow(0 2px 6px rgba(0, 150, 200, 0.1));
}

.cloud-1 { top: 12px; right: 25px; }
.cloud-2 { top: 90px; left: 15px; }
.cloud-3 { top: 160px; right: 40px; }

/* 水中パーティクル（静止した泡） */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.sparkle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(0, 150, 200, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    border: 1px solid rgba(0, 180, 220, 0.15);
}

.sparkle:nth-child(1) { left: 10%; top: 80px; width: 7px; height: 7px; opacity: 0.5; }
.sparkle:nth-child(2) { left: 25%; top: 140px; width: 10px; height: 10px; opacity: 0.4; }
.sparkle:nth-child(3) { left: 42%; top: 60px; width: 5px; height: 5px; opacity: 0.55; }
.sparkle:nth-child(4) { left: 58%; top: 120px; width: 8px; height: 8px; opacity: 0.45; }
.sparkle:nth-child(5) { left: 75%; top: 90px; width: 9px; height: 9px; opacity: 0.35; }
.sparkle:nth-child(6) { left: 90%; top: 160px; width: 6px; height: 6px; opacity: 0.5; }
.sparkle:nth-child(7) { left: 15%; top: 200px; width: 8px; height: 8px; opacity: 0.4; }
.sparkle:nth-child(8) { left: 52%; top: 180px; width: 5px; height: 5px; opacity: 0.45; }

/* ===== スライドショー ===== */
.ar-slideshow {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 20px;
    z-index: 2;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: min(56vw, 240px);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--color-gold);
}

.ar-slideshow .slide-indicators {
    padding: 0 24px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--color-gold);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--color-gold-light);
}

/* ===== タイトル ===== */
.hero-title-wrapper {
    position: relative;
    z-index: 2;
}

.hero-subtitle-en {
    font-size: 11px;
    color: var(--color-gold-dark);
    letter-spacing: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-rounded);
    font-size: 36px;
    color: var(--color-ink);
    letter-spacing: 12px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 rgba(0, 180, 216, 0.3);
    animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
    0%, 100% { text-shadow: 2px 2px 0 rgba(0, 180, 216, 0.3); }
    50% { text-shadow: 2px 2px 12px rgba(0, 212, 255, 0.6); }
}

.hero-description {
    font-size: 14px;
    color: var(--color-ink);
    opacity: 0.8;
    letter-spacing: 2px;
}

.hero-description-heading {
    font-size: 20px;
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

/* ===== 金の区切り線（位置調整） ===== */
.gold-divider {
    position: relative;
    z-index: 1;
    gap: 16px;
    margin: 32px 24px;
}

.gold-line {
    flex: 1;
    height: 2px;
}

.gold-diamond {
    width: 12px;
    height: 12px;
}

/* ===== 3ステップガイド ===== */
.steps-guide {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 24px;
    margin: 0 24px 16px;
    background: var(--color-white);
    border: 2px solid var(--color-gold-light);
    border-radius: 12px;
}

.steps-guide-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.steps-guide-content .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.step-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-white);
    font-weight: bold;
}

.step-text {
    font-size: 9px;
    color: var(--color-ink);
    text-align: center;
    line-height: 1.3;
}

.step-arrow {
    color: var(--color-gold);
    font-size: 14px;
    opacity: 0.6;
}

/* ===== 遊び方ボタン ===== */
.howto-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
}

.howto-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border: 2px solid var(--color-gold-light);
    border-radius: 30px;
    color: var(--color-white);
    font-family: var(--font-rounded);
    font-size: 16px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(78, 205, 196, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.howto-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerButton 2s ease-in-out infinite;
}

@keyframes shimmerButton {
    0% { left: -100%; }
    100% { left: 100%; }
}

.howto-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(78, 205, 196, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.howto-button:active {
    transform: translateY(-1px) scale(0.98);
}

.howto-button-icon {
    font-size: 18px;
    animation: bookBounce 2s ease-in-out infinite;
}

@keyframes bookBounce {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* ===== 遊び方ポップアップ ===== */
.howto-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.howto-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.howto-popup {
    position: relative;
    width: calc(100% - 20px);
    max-width: 520px;
    max-height: 92vh;
    background: linear-gradient(180deg, #1A3A5C 0%, #0A1628 100%);
    border: 3px solid var(--color-gold);
    border-radius: 16px;
    padding: 24px 22px;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(78, 205, 196, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.howto-popup-overlay.active .howto-popup {
    transform: scale(1) translateY(0);
}

.howto-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.howto-popup-close:hover {
    background: var(--color-gold);
    color: var(--aqua-deep);
    transform: rotate(90deg);
}

.howto-popup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

.howto-popup-icon {
    font-size: 32px;
    animation: gameIconPulse 1.5s ease-in-out infinite;
}

@keyframes gameIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.howto-popup-title {
    font-family: var(--font-rounded);
    font-size: 24px;
    color: var(--color-gold);
    letter-spacing: 5px;
    text-shadow: 0 2px 10px rgba(78, 205, 196, 0.5);
}

/* 基本の遊び方ステップ */
.howto-basic {
    margin-bottom: 20px;
    padding: 14px;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
}

.howto-basic-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.howto-basic-step {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--color-gold-light);
}

.howto-basic-num {
    font-size: 14px;
    color: var(--color-gold);
}

.howto-basic-arrow {
    color: var(--color-gold);
    font-size: 12px;
    opacity: 0.6;
}

/* 体験タブ */
.howto-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 12px;
}

.howto-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-rounded);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.howto-tab:hover {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.4);
    color: var(--color-gold-light);
}

.howto-tab.active {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(78, 205, 196, 0.1));
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.howto-tab-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.howto-tab.active .howto-tab-icon {
    transform: scale(1.1);
    animation: tabIconPulse 1s ease-in-out infinite;
}

@keyframes tabIconPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

/* 体験説明パネル */
.howto-panels {
    position: relative;
    min-height: 100px;
}

.howto-panel {
    display: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 10px;
    animation: panelFadeIn 0.3s ease;
}

.howto-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.howto-panel-title {
    font-family: var(--font-rounded);
    font-size: 16px;
    color: var(--color-gold);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
    letter-spacing: 2px;
}

.howto-panel-desc {
    font-size: clamp(13px, 3.5vw, 15px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.howto-panel-image {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(78, 205, 196, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.howto-panel-image img {
    max-height: 180px;
    width: 100%;
    object-fit: contain;
}

.image-with-pin {
    position: relative;
    display: block;
}

.image-with-pin img {
    width: 100%;
    height: auto;
    display: block;
}

.location-pin {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    animation: pinBounce 1s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.pin-pulse {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 100, 100, 0.4);
    border: 2px solid rgba(255, 100, 100, 0.8);
    border-radius: 50%;
    animation: pinPulse 1.5s ease-out infinite;
    z-index: 1;
}

.pin-pulse-2 {
    animation-delay: 0.5s;
}

@keyframes pinPulse {
    0% {
        transform: translateX(-50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(2);
        opacity: 0;
    }
}

.howto-panel-image-caption {
    padding: 6px 10px;
    background: rgba(78, 205, 196, 0.15);
    font-size: 11px;
    color: var(--color-gold);
    text-align: center;
    letter-spacing: 1px;
}

/* ===== 体験カードセクション ===== */
.experience-section {
    padding: 0;
    margin: 0 24px 32px;
    overflow: hidden;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.experience-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.experience-item .accordion {
    margin-bottom: 0;
}

.experience-card {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    border: 2px solid var(--color-gold-light);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(38, 68, 120, 0.1);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
    transition: left 0.5s ease;
}

.experience-card:hover::before {
    left: 100%;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(38, 68, 120, 0.18);
    border-color: var(--color-gold);
}

.experience-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 12px rgba(38, 68, 120, 0.2);
}

.card-icon-wrapper {
    width: 100%;
    height: 100px;
    margin: 0 0 12px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.card-icon-wrapper.character-icon img {
    object-fit: contain;
    background: linear-gradient(135deg, var(--color-forest), var(--color-forest-deep));
}

.card-icon-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-forest), var(--color-forest-deep));
}

.card-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.card-title {
    font-family: var(--font-rounded);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-indigo-deep);
    margin: 0;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

/* CTAテキスト（ボタン風） */
.card-cta-text {
    font-family: var(--font-rounded);
    font-size: 12px;
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}

.experience-card:hover .card-cta-text {
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.5);
    transform: translateX(2px);
}

.experience-card:active .card-cta-text {
    transform: scale(0.95);
}

.card-catch {
    font-size: 11px;
    color: var(--color-ink);
    opacity: 0.7;
    line-height: 1.6;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTAボタン */
.card-cta {
    margin-top: auto;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border: none;
    border-radius: 25px;
    color: var(--color-white);
    font-family: var(--font-rounded);
    font-size: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.5);
}

.card-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.card-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    border-radius: 25px;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* テーマ別CTAボタン */
.card-ocean .card-cta {
    background: linear-gradient(135deg, var(--color-indigo), var(--color-indigo-deep));
    box-shadow: 0 4px 15px rgba(38, 68, 120, 0.4);
}

.card-ocean .card-cta::after {
    border-color: var(--color-indigo);
}

.card-forest .card-cta {
    background: linear-gradient(135deg, var(--color-forest), var(--color-forest-deep));
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.4);
}

.card-forest .card-cta::after {
    border-color: var(--color-forest);
}

.card-sunset .card-cta {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.card-sunset .card-cta::after {
    border-color: #e74c3c;
}

.card-rainbow .card-cta {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.card-rainbow .card-cta::after {
    border-color: #9b59b6;
}

/* ジェスチャーヒント */
.gesture-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 10px;
    color: var(--color-ink);
    opacity: 0.6;
    min-height: 1.4em;
    white-space: nowrap;
}

.gesture-icon {
    display: inline-block;
    animation: gestureMove 2s ease-in-out infinite;
}

@keyframes gestureMove {
    0%, 100% { transform: translateX(5px) rotate(-5deg); }
    50% { transform: translateX(-5px) rotate(5deg); }
}

/* 所要時間バッジ */
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 10px;
    color: var(--color-ink);
    opacity: 0.7;
}

.time-badge::before {
    content: '⏱';
    font-size: 11px;
}

/* ===== アコーディオン ===== */
.accordion {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    border: 2px solid var(--color-gold-light);
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-rounded);
    font-size: 14px;
    color: var(--color-ink);
    transition: background 0.3s ease;
}

.accordion-header > span:first-child {
    flex: 1;
    min-width: 0;
    white-space: normal;
    word-break: keep-all;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    padding-right: 8px;
}

.accordion-header:hover {
    background: rgba(201, 168, 76, 0.1);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion.open .accordion-content {
    max-height: 600px;
}

.accordion-body {
    padding: 0 20px 20px;
    font-size: 13px;
    line-height: 2;
    color: var(--color-ink);
    opacity: 0.85;
}

.accordion-body h4 {
    font-family: var(--font-rounded);
    font-size: 14px;
    margin: 16px 0 8px;
    color: var(--color-ink);
    border-left: 3px solid var(--color-gold);
    padding-left: 12px;
}

.accordion-body ul {
    list-style: none;
    margin: 8px 0;
}

.accordion-body li {
    padding: 4px 0 4px 20px;
    position: relative;
}

.accordion-body li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 8px;
    top: 8px;
}

/* ===== 波エフェクト ===== */
.wave-section {
    position: relative;
    height: 80px;
    overflow: hidden;
    margin-top: 32px;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q150,100 300,60 Q450,20 600,60 Q750,100 900,60 Q1050,20 1200,60 L1200,120 L0,120 Z' fill='%2300B4D8' opacity='0.3'/%3E%3Cpath d='M0,70 Q150,110 300,70 Q450,30 600,70 Q750,110 900,70 Q1050,30 1200,70 L1200,120 L0,120 Z' fill='%230077B6' opacity='0.5'/%3E%3Cpath d='M0,80 Q150,120 300,80 Q450,40 600,80 Q750,120 900,80 Q1050,40 1200,80 L1200,120 L0,120 Z' fill='%231A5276' opacity='0.8'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: 600px 120px;
    animation: waveMove 8s linear infinite;
}

.wave-2 {
    animation-delay: -4s;
    opacity: 0.5;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== フッターエリア ===== */
.app-link-section {
    position: relative;
    z-index: 10;
    background: var(--color-footer-bg);
    padding: 30px var(--base-padding) 20px;
}

.footer {
    background: transparent;
    padding: 20px var(--base-padding) 40px;
    border-top: none;
}

/* ===== ひょこっとキャラクター ===== */
.peek-character {
    position: absolute;
    z-index: 100;
    width: 60px;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.peek-character:hover {
    transform: scale(1.1) !important;
}

.peek-left {
    left: 0;
    transform: translateX(-70%);
}

.peek-left.show {
    transform: translateX(-35%);
}

.peek-right {
    right: 0;
    transform: translateX(70%);
}

.peek-right.show {
    transform: translateX(35%);
}

.peek-char-1 { top: 520px; }
.peek-char-2 { top: 580px; }
.peek-char-3 { top: 850px; }
.peek-char-4 { top: 920px; }

@keyframes peekBounce {
    0%, 100% { transform: translateX(-35%) translateY(0); }
    50% { transform: translateX(-35%) translateY(-6px); }
}

@keyframes peekBounceRight {
    0%, 100% { transform: translateX(35%) translateY(0); }
    50% { transform: translateX(35%) translateY(-6px); }
}

.peek-left.show.bounce {
    animation: peekBounce 2s ease-in-out infinite;
}

.peek-right.show.bounce {
    animation: peekBounceRight 2s ease-in-out infinite;
}

/* ===== ページ読み込みアニメーション ===== */
.hero-section,
.experience-card,
.accordion {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-section { animation-delay: 0.2s; }
.experience-item:nth-child(1) .experience-card { animation-delay: 0.4s; }
.experience-item:nth-child(2) .experience-card { animation-delay: 0.5s; }
.experience-item:nth-child(3) .experience-card { animation-delay: 0.6s; }
.experience-item:nth-child(4) .experience-card { animation-delay: 0.7s; }
.experience-item:nth-child(1) .accordion { animation-delay: 0.8s; }
.experience-item:nth-child(2) .accordion { animation-delay: 0.9s; }
.experience-item:nth-child(3) .accordion { animation-delay: 1.0s; }
.experience-item:nth-child(4) .accordion { animation-delay: 1.1s; }

/* =====================================================
   レスポンシブ対応 - 主要端末ブレークポイント
   ===================================================== */

/* ----- clamp関数でベーススタイルを滑らかに調整 ----- */
.hero-section {
    padding: clamp(40px, 10vw, 70px) var(--base-padding) var(--base-padding);
}

.hero-title {
    font-size: clamp(28px, 8vw, 48px);
    letter-spacing: clamp(6px, 2.5vw, 16px);
}

.hero-subtitle-en {
    font-size: clamp(10px, 2.5vw, 14px);
    letter-spacing: clamp(4px, 1.5vw, 10px);
}

.hero-description {
    font-size: clamp(12px, 3vw, 18px);
    letter-spacing: clamp(1px, 0.5vw, 4px);
}

.hero-description-heading {
    font-size: clamp(18px, 4.2vw, 26px);
    letter-spacing: clamp(2px, 0.8vw, 6px);
}

.slideshow-container {
    height: clamp(180px, 45vw, 360px);
}

.steps-guide {
    padding: clamp(12px, 3vw, 24px) var(--base-padding);
    margin: 0 var(--base-padding) clamp(12px, 3vw, 24px);
    gap: clamp(6px, 1.5vw, 16px);
}

.steps-guide-content {
    gap: clamp(6px, 1.5vw, 16px);
}

.step-icon {
    width: clamp(32px, 8vw, 52px);
    height: clamp(32px, 8vw, 52px);
    font-size: clamp(14px, 3.5vw, 22px);
}

.step-text {
    font-size: clamp(8px, 2vw, 13px);
}

.step-arrow {
    font-size: clamp(12px, 3vw, 20px);
}

.howto-button {
    padding: clamp(10px, 2.5vw, 18px) clamp(24px, 6vw, 44px);
    font-size: clamp(14px, 3.5vw, 20px);
    letter-spacing: clamp(2px, 0.5vw, 4px);
}

.experience-section {
    margin: 0 var(--base-padding) clamp(24px, 6vw, 48px);
}

.experience-grid {
    gap: clamp(14px, 3.5vw, 28px);
}

.experience-card {
    padding: clamp(16px, 4vw, 32px) clamp(14px, 3.5vw, 28px);
}

.card-title {
    font-size: clamp(15px, 3.8vw, 26px);
    letter-spacing: clamp(1px, 0.4vw, 4px);
}

.card-cta-text {
    font-size: clamp(11px, 2.8vw, 16px);
    padding: clamp(8px, 2vw, 14px) clamp(12px, 3vw, 24px);
    width: 100%;
    max-width: clamp(160px, 40vw, 220px);
}

.gold-divider {
    margin: clamp(24px, 6vw, 48px) var(--base-padding);
}

.howto-popup {
    max-width: clamp(300px, 85vw, 700px);
    padding: clamp(16px, 4vw, 32px) clamp(14px, 3.5vw, 30px);
}

.howto-popup-title {
    font-size: clamp(20px, 5vw, 32px);
    letter-spacing: clamp(3px, 0.8vw, 6px);
}

.howto-tab {
    font-size: clamp(11px, 2.8vw, 17px);
    padding: clamp(10px, 2.5vw, 18px) clamp(6px, 1.5vw, 14px);
}

.howto-panel-title {
    font-size: clamp(14px, 3.5vw, 22px);
}

.howto-panel-desc {
    font-size: clamp(12px, 3vw, 17px);
}

.howto-panel-image img {
    max-height: clamp(150px, 35vw, 280px);
}

.wave-section {
    height: clamp(60px, 15vw, 120px);
}

/* ----- 小型スマホ（~374px）: iPhone SE等 ----- */
@media (max-width: 374px) {
    .howto-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .cloud { display: none; }
    
    .sparkle:nth-child(n+5) { display: none; }
}

/* ----- 大型スマホ（414px~599px）: iPhone Plus/Pro Max ----- */
@media (min-width: 414px) and (max-width: 599px) {
    .howto-tabs {
        gap: 8px;
    }
}

/* ----- 小型タブレット（600px~767px）: iPad mini縦 ----- */
@media (min-width: 600px) and (max-width: 767px) {
    .howto-popup {
        max-height: 85vh;
    }
    
    .howto-panel-image img {
        max-height: 200px;
    }
}

/* ----- タブレット標準（768px~1023px）: iPad縦 ----- */
@media (min-width: 768px) and (max-width: 1023px) {
    .howto-popup {
        max-height: 88vh;
    }
    
    .howto-tabs {
        gap: 10px;
    }
    
    .howto-panel {
        padding: 18px;
    }
    
    .howto-panel-image img {
        max-height: 240px;
    }
}

/* ----- スマホ横向き対応 ----- */
@media (min-width: 600px) and (max-width: 1023px) and (orientation: landscape) {
    body {
        background: linear-gradient(180deg,
            #E8F4F8 0%,
            #D4EEF5 30%,
            #C0E8F0 60%,
            #E8F4F8 100%
        );
    }
    
    .main-container {
        max-width: 100%;
        background: transparent;
    }
    
    .swimming-creatures {
        position: fixed;
        left: 0;
        right: 0;
        width: 100vw;
    }
    
    .ar-slideshow {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
    
    .slideshow-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .steps-guide {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .experience-section {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gold-divider {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .howto-button-wrapper {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .wave-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .app-link-section {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ----- 大画面（1024px~）: iPad横、PC ----- */
@media (min-width: 1024px) {
    /* 背景を画面全体に広げる */
    body {
        background: linear-gradient(180deg,
            #E8F4F8 0%,
            #D4EEF5 30%,
            #C0E8F0 60%,
            #E8F4F8 100%
        );
    }
    
    /* 背景の生き物を画面全体に */
    .swimming-creatures {
        position: fixed;
        left: 0;
        right: 0;
        width: 100vw;
    }
    
    /* メインコンテナの背景を透過 */
    .main-container {
        background: transparent;
    }
    
    .main-container::before {
        left: -50vw;
        right: -50vw;
        width: 200vw;
    }
    
    .hero-section {
        padding-top: 80px;
    }
    
    /* スライドショーの幅を制限 */
    .ar-slideshow {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
    
    .slideshow-container {
        max-width: 800px;
        margin: 0 auto;
        border-width: 4px;
        border-radius: 4px;
    }
    
    .steps-guide {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 16px;
        border-width: 3px;
    }
    
    .experience-section {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .experience-card {
        border-radius: 16px;
    }
    
    .gold-divider {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .howto-button-wrapper {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .howto-popup {
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .howto-tabs {
        gap: 12px;
    }
    
    .howto-tab {
        border-radius: 12px;
    }
    
    .howto-panel {
        padding: 20px;
        border-radius: 14px;
    }
    
    .howto-panel-image {
        border-radius: 12px;
    }
    
    .howto-panel-image img {
        max-height: 280px;
    }
    
    /* 波エフェクトを画面全体に */
    .wave-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    /* フッターエリアを画面全体に */
    .app-link-section {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ----- キャラクター表示制御 ----- */
@media (max-width: 600px) {
    .peek-character {
        width: clamp(35px, 9vw, 50px);
    }
    
    .peek-left.show { transform: translateX(-40%); }
    .peek-right.show { transform: translateX(40%); }
}

@media (min-width: 601px) {
    .peek-character {
        width: clamp(50px, 8vw, 80px);
    }
}

