/* Common Header Styles for wakame-kusowaro.com */
/* わかめ "チャンキー・ポップ" デザインに刷新（背景順応型） */
/* 注: .header の地は低不透明度のクリームに留め、ダーク背景ゲームの白文字ロゴが */
/*     そのまま読める状態を維持する（ページ側の inline 上書きを壊さない）。 */

@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* Header Base */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* 低不透明度クリーム: 明るい背景では白っぽく、暗い背景では暗いまま見える */
    background: rgba(255, 251, 244, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari対応 */
    border-bottom: 2.5px solid rgba(32, 40, 61, 0.85);
    z-index: 100;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 12px;
}

/* Logo (色はページ側で上書き可: 暗い背景ページは inline で white) */
.logo {
    font-family: 'Mochiy Pop One', system-ui, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: #20283D !important;
    text-decoration: none;
    transition: transform 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.logo:hover {
    transform: translateY(-1px) scale(1.02);
}

.logo span {
    font-size: 1.1rem !important;
    font-weight: 400;
}

/* Logo Image — HP と同じ「わかめSVG」。<img src="/logo.svg"> と同じ絵を CSS でも指定（古いページの weed.png 参照も上書き） */
.logo img {
    width: 40px;
    height: 40px;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 44 44' fill='none'%3E%3Cpath d='M22 41 C13 36 14 30 18 25 C22 20 13 16 18 11 C20.5 7 21 5 22 3 C23 5 23.5 7 26 11 C31 16 22 20 26 25 C30 30 31 36 22 41 Z' fill='%2316A988' stroke='%23133A30' stroke-width='2.6' stroke-linejoin='round'/%3E%3Ccircle cx='18.5' cy='24' r='3.4' fill='%23fff' stroke='%23133A30' stroke-width='1.8'/%3E%3Ccircle cx='25.5' cy='24' r='3.4' fill='%23fff' stroke='%23133A30' stroke-width='1.8'/%3E%3Ccircle cx='19' cy='24.6' r='1.5' fill='%23133A30'/%3E%3Ccircle cx='26' cy='24.6' r='1.5' fill='%23133A30'/%3E%3Ccircle cx='13' cy='28' r='1.7' fill='%23FF8FB8'/%3E%3Ccircle cx='31' cy='28' r='1.7' fill='%23FF8FB8'/%3E%3C/svg%3E");
}

/* Back Link — チャンキーなピル型ボタン（クリーム地＋極太インク枠＋ベタ落ち影） */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    font-family: 'Zen Maru Gothic', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: .01em;
    color: #20283D;
    background: #FFFBF4;
    text-decoration: none;
    border: 2.5px solid #20283D;
    border-radius: 999px;
    box-shadow: 0 3px 0 rgba(32, 40, 61, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(32, 40, 61, 0.2);
}

/* Navigation - Removed as per unified design */

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        font-size: 1rem !important;
    }

    .logo span {
        font-size: 1rem !important;
        display: none; /* 狭い画面ではワードマークを隠しアイコンのみ */
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .back-link {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.375rem 0.75rem;
    }

    .logo {
        font-size: 0.95rem !important;
    }

    .logo span {
        font-size: 0.95rem !important;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .back-link {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
        box-shadow: 0 2px 0 rgba(32, 40, 61, 0.18);
    }
}
