@charset "utf-8";

/* Header */
.header {
    color: var(--primary-bg);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    /* スムーズな変化のためのtransitionを追加 */
    transition: padding 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* .header_top {
    padding: 20px 50px 50px;
} */

/* ヘッダーの背景と曲線を描画するための疑似要素 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-gradation);
    /* clip-path: url(#wave-clip); */
    /* z-index: -1で、ヘッダー内のコンテンツ(h1やハンバーガー)の背後に配置 */
    z-index: -1; 
    transition: opacity 0.3s ease-in-out;
}

.header::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

/* .header_top.is-scrolled {
    padding-top: 20px;
    padding-bottom: 20px;
    background: var(--main-color); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
} */

/* スクロールしたら疑似要素を非表示にする */
/* .header_top.is-scrolled::before {
    opacity: 0;
} */

.header h1 {
    font-size: 22px;
    font-weight: bold;
}

.header p {
    font-size: 22px;
    font-weight: bold;
}

.header p a {
    color: white;
}

.header p a:hover {
    opacity: .8;
}

.hamburger-menu {
    width: 30px;
    height: 21px;
    position: fixed;
    top: 25px;
    right: 50px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-bg);
    position: absolute;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { bottom: 0; }

/* ハンバーガーメニュー active時 */
.hamburger-menu.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.is-active span:nth-child(2) { opacity: 0; }
.hamburger-menu.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Global Navigation */
.global-nav {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態は画面外 */
    width: 300px;
    height: 100vh;
    background-color: var(--accent-color);
    padding-top: 80px;
    transition: right 0.5s;
    z-index: 1009;
}

.global-nav.is-active {
    right: 0; /* active時に画面内に表示 */
}

.global-nav ul { list-style: none; }
.global-nav li a {
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    border-bottom: 1px solid white;
    transition: background-color 0.3s;
    color: white;
}
.global-nav li a:hover { background-color: var(--main-color); background-color: var(--hover-link-color); }


/* SVGのクリップパスを定義（画面には表示されない） */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
}


@media screen and (max-width: 768px) {
    .header {
        padding: 20px;
    }
    .header p a {
        font-size: 20px;
    }
    .hamburger-menu {
        right: 20px;
    }
}