/* ヘッダー全体のスタイル */
.site-header {
    position: fixed;
    /* 追従固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    animation: fadeInDown 0.6s ease-out;
}

/* スクロール時のヘッダー効果 */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* ヘッダー内部コンテナ */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 1001;
}

/* サイトブランディング */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
}

/* ロゴ画像 */
.site-logo img {
    max-height: 50px;
    width: 100%;
    transition: transform 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
}

/* h1.site-title の文字色変更 + hover */
.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: #1b1b1b;
    /* 通常文字色 */
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.site-title a:hover {
    color: #ffdb76;
    /* hover時の色 */
}

/* サイト説明文 */
.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: #1b1b1b;
    /* 文字色 */
    font-weight: 400;
}

/* メインナビゲーション */
.main-navigation {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #1b1b1b;
    /* ナビリンクの文字色 */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffdb76;
}

.nav-menu a:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffdb76;
    transition: width 0.3s ease;
}

.nav-menu a:hover:before {
    width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    margin-left: 20px;
    position: relative;
    z-index: 1003;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #1b1b1b;
    /* 背景に合わせて黒に変更 */
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 1px;
}

/* モバイルメニューが開いているときのハンバーガーアニメーション */
.hamburger.active span {
    background: #1b1b1b;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* モバイルナビゲーション */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav .nav-menu li {
    border-bottom: 1px solid #eee;
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

/* モバイルナビがアクティブな時のアニメーション */
.mobile-nav.active .nav-menu li {
    animation: slideInUp 0.5s ease forwards;
}

.mobile-nav.active .nav-menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav.active .nav-menu li:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-nav.active .nav-menu li:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-nav.active .nav-menu li:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-nav .nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav .nav-menu a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    color: #1b1b1b;
    font-weight: 500;
}

.mobile-nav .nav-menu a:before {
    display: none;
}

.mobile-nav .nav-menu a:hover {
    color: #ffdb76;
    padding-left: 10px;
    transition: all 0.3s ease;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
        padding: 0 15px;
    }

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

    .site-logo img {
        width: 40vw;
        max-height: 40px;
    }

    .main-navigation .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 60px;
        padding: 0 10px;
    }

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

    .site-logo img {
        max-height: 35px;
    }

    .mobile-nav {
        padding-top: 60px;
    }

    .mobile-nav .nav-menu {
        padding: 15px;
    }

    .mobile-nav .nav-menu a {
        padding: 12px 0;
        font-size: 1rem;
    }
}

/* メインビジュアルやコンテンツがヘッダーに隠れないよう調整 */
.main-visual,
.content-wrapper {
    padding-top: 80px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* モバイルナビアニメーション */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スクロール防止用のスタイル */
body.no-scroll {
    overflow: hidden;
}