/* ミニマル・モダンタイトルスタイル */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;700&family=Montserrat:wght@200;300;400;600&display=swap');

.minimal-title {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 50%, #E0F7FA 100%);
    overflow: hidden;
    padding-top: 30px;
}

.title-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 波紋エフェクト（イノーの水面を表現） */
.ripple-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 150, 200, 0.1);
    animation: rippleEffect 6s linear infinite;
}

.ripple-1 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.ripple-2 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.ripple-3 {
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes rippleEffect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* メインコンテンツ */
.title-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.location-badge {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #FF6B9D;
    letter-spacing: 3px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.main-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 56px;
    font-weight: 100;
    color: #0096C7;
    margin: 0;
    padding: 0;
    letter-spacing: 12px;
    line-height: 1.2;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0096C7, transparent);
}

.subtitle {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #48CAE4;
    margin-top: 20px;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* 装飾的な要素（サンゴ礁を抽象化） */
.decorative-element {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 150, 199, 0.05) 50%,
        rgba(0, 150, 199, 0.1) 100%
    );
}

.decorative-element::before,
.decorative-element::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
}

.decorative-element::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 150, 199, 0.2) 20%,
        rgba(0, 150, 199, 0.1) 50%,
        rgba(0, 150, 199, 0.2) 80%,
        transparent
    );
}

.decorative-element::after {
    bottom: 5px;
    background: linear-gradient(90deg,
        transparent,
        rgba(72, 202, 228, 0.1) 30%,
        rgba(72, 202, 228, 0.05) 50%,
        rgba(72, 202, 228, 0.1) 70%,
        transparent
    );
}

/* ホバーエフェクト */
.main-title {
    transition: all 0.3s ease;
}

.minimal-title:hover .main-title {
    letter-spacing: 14px;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-badge {
    animation: fadeIn 0.8s ease-out;
}

.main-title {
    animation: fadeIn 1s ease-out 0.2s both;
}

.subtitle {
    animation: fadeIn 1.2s ease-out 0.4s both;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .minimal-title {
        height: 120px;
        padding-top: 15px;
    }

    .main-title {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .location-badge {
        font-size: 10px;
        letter-spacing: 1.5px;
        padding: 3px 10px;
    }

    .subtitle {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .ripple {
        display: none; /* モバイルでは波紋を非表示 */
    }

    .decorative-element {
        width: 60px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .minimal-title {
        height: 100px;
        padding-top: 10px;
    }

    .main-title {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .location-badge {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 9px;
    }
}

/* 南十字星のスタイル（ライトモードでは非表示） */
.southern-cross {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 南十字星の正確な配置（十字架の形を再現） */
/* ガクルックス（γ星）- 最上部の赤い星 */
.star-gamma {
    width: 4px;
    height: 4px;
    top: 20%;
    right: 18%;
    background: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.9);
    animation: twinkle 3s infinite;
}

/* アクルックス（α星）- 最下部の最も明るい青白い星 */
.star-alpha {
    width: 5px;
    height: 5px;
    top: 55%;
    right: 18%;
    background: #a0d8ff;
    box-shadow: 0 0 20px rgba(160, 216, 255, 1);
    animation: twinkle 2s infinite;
}

/* ベクルックス（β星）- 左側の青白い星 */
.star-beta {
    width: 4px;
    height: 4px;
    top: 38%;
    right: 25%;
    background: #b8e0ff;
    box-shadow: 0 0 15px rgba(184, 224, 255, 0.9);
    animation: twinkle 2.5s infinite 0.5s;
}

/* δ星 - 右側の星 */
.star-delta {
    width: 3px;
    height: 3px;
    top: 38%;
    right: 11%;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    animation: twinkle 2.3s infinite 0.3s;
}

/* ε星 - 十字の中心付近の小さな星 */
.star-epsilon {
    width: 2px;
    height: 2px;
    top: 40%;
    right: 16%;
    background: #ffd4a3;
    box-shadow: 0 0 8px rgba(255, 212, 163, 0.7);
    animation: twinkle 2.7s infinite 0.7s;
}

/* ポインター星（ケンタウルス座の二つの明るい星） */
.pointer-alpha {
    width: 4px;
    height: 4px;
    top: 45%;
    right: 32%;
    background: #ffffcc;
    box-shadow: 0 0 15px rgba(255, 255, 204, 0.9);
    animation: twinkle 3.5s infinite 1.2s;
}

.pointer-beta {
    width: 3px;
    height: 3px;
    top: 50%;
    right: 35%;
    background: #ffffcc;
    box-shadow: 0 0 12px rgba(255, 255, 204, 0.8);
    animation: twinkle 3.8s infinite 1.5s;
}

/* コールサック（石炭袋）暗黒星雲 */
.coalsack {
    position: absolute;
    width: 40px;
    height: 30px;
    top: 42%;
    right: 12%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
}


/* 流れ星 */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    top: 20%;
    right: -5%;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.shooting-star-2 {
    top: 60%;
    animation-delay: 7s;
}

/* 星の瞬きアニメーション */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 流れ星のアニメーション */
@keyframes shooting {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0);
    }
    5% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-200px) translateY(100px);
    }
}

/* ダークモード時のスタイル */
@media (prefers-color-scheme: dark) {
    .minimal-title {
        background: linear-gradient(135deg, #0a0e27 0%, #151b3d 50%, #0a0e27 100%);
    }

    /* 南十字星を表示 */
    .southern-cross {
        opacity: 1;
    }

    .shooting-star {
        animation: shooting 10s infinite linear;
    }

    .shooting-star-2 {
        animation: shooting 10s infinite linear 7s;
    }

    /* タイトルのカラー調整 */
    .main-title {
        color: #B0E0E6;
        text-shadow: 0 0 20px rgba(176, 224, 230, 0.3);
    }

    .subtitle {
        color: #E0FFFF;
    }

    .location-badge {
        color: #FFB6C1;
        text-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
    }

    .main-title::after {
        background: linear-gradient(90deg, transparent, #B0E0E6, transparent);
    }

    /* 波紋を夜の海のように */
    .ripple {
        border-color: rgba(176, 224, 230, 0.1);
    }

    /* 背景に星空のような点を追加 */
    .minimal-title::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(1px 1px at 20% 30%, white, transparent),
            radial-gradient(1px 1px at 40% 70%, white, transparent),
            radial-gradient(1px 1px at 60% 40%, white, transparent),
            radial-gradient(1px 1px at 80% 60%, white, transparent),
            radial-gradient(1px 1px at 10% 80%, white, transparent);
        background-size: 200% 200%;
        animation: starfield 30s linear infinite;
        opacity: 0.4;
    }
}

/* 星空の動き */
@keyframes starfield {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}