/* ====================
 * ヘッダー
 * ==================== */
 .header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 32px;
    z-index: 101; 
}

.home-icon-link {
    display: block;
    line-height: 0;
    z-index: 200;
    transition: opacity 0.3s, visibility 0.3s;
}
.home-icon-link img {
    width: 32px;
    height: 32px;
    transition: opacity 0.3s;
    margin-top: 5px;
}
.home-icon-link:hover img {
    opacity: 0.7;
}

/* メニューオープン時にホームアイコンを非表示にする */
body.nav-open .home-icon-link {
    opacity: 0;
    visibility: hidden;
}

.hamburger-menu {
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 200; 
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 11px; }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.global-nav.active {
    visibility: visible;
    opacity: 1;
}

.global-nav-logo {
    width: 220px;
    height: auto;
    margin-bottom: 40px;
}

.global-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.global-nav li {
    margin: 30px 0;
}

.global-nav a {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}
.global-nav a:hover {
    opacity: 0.7;
}

.global-nav a span {
    display: block;
    font-size: 14px;
    font-weight: normal;
    margin-top: 4px;
    color: #555;
}

.global-nav .social-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 40px; 
}

.global-nav .social-links img {
    width: 40px;
    height: 40px;
    transition: opacity 0.3s;
}

.global-nav .social-links a:hover img {
    opacity: 0.7;
}