
/* Header Section */
.header-section {
    height: auto; /* 高さを自動にし、パディングで制御 */
    padding: 41px 0; /* FigmaのHeaderフレームの上下パディングを適用 */
    display: flex;
    align-items: center; /* header-container を垂直中央に */
    box-sizing: border-box;
    position: fixed; /* ヘッダーを固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 他の要素より手前に表示 */
}

.header-container {
    width: 100%;
    max-width: 1440px; /* Figmaのフレーム幅 */
    margin: 0 auto;
    padding: 0 64px; /* Figmaデータから Headerフレーム(14:6142)の左右パディング */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* 親要素の高さに合わせる */
    box-sizing: border-box;
    /* 上下パディングをFigmaの指定に合わせる */
    /* padding-top: 53px; */ /* これは .header-section に適用するべきだった */
    /* padding-bottom: 53px; */
}

.header-text {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #1b1464;
    letter-spacing: 0.7px;
    line-height: 48px; /* スタイル情報から */
}

.hamburger-menu {
    width: 48px; /* Figmaデータから */
    height: 48px; /* Figmaデータから */
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: fixed; /* 上部固定 */
    top: 41px;
    right: max(64px, calc( 50vw - 720px + 64px));
    cursor: pointer;
    z-index: 1001; /* モーダルより手前に表示 */
}

.hamburger-icon{
    width: 48px;
    height: 48px;
    position: relative;
    overflow: visible;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hamburger-icon:hover{
    opacity: 0.8;
}

.hamburger-icon .line {
    width: 32px;
    height: 4px;
    background-color: #1B1464;
    border-radius: 2px;
    border: 1px solid #1B1464;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    position: absolute;
    left: 50%;
    top: 50%;
}
.hamburger-icon .line.top{
    transform: translate(-50%, -12px);
}
.hamburger-icon .line.middle{
    transform: translate(-50%, 0px);
}
.hamburger-icon .line.bottom{
    transform: translate(-50%, 12px);
}

.hamburger-menu.is-open .hamburger-icon .line.top {
    transform: translate(-50%, -0px) rotate(45deg);
}

.hamburger-menu.is-open .hamburger-icon .line.middle {
    opacity: 0;
}

.hamburger-menu.is-open .hamburger-icon .line.bottom {
    transform: translate(-50%, 0px) rotate(-45deg);
}

.header-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 217, 37, 1); /* Figmaの濃い青 #1B1464 に透明度 */
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999; /* ヘッダーよりは下、メインコンテンツよりは上 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-modal.is-visible {
    height: 100vh;
    opacity: 1;
}

.header-modal-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-modal-nav a {
    color: #1B1464;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px; /* SP版フッターナビより少し大きめ */
    text-decoration: none;
    margin: 20px 0;
    padding: 10px 20px;
    transition: opacity 0.3s ease;
}

.header-modal-nav a:hover {
    opacity: 0.8;
}

@media (max-width: 900px) {
    /* ブレークポイントを900pxに変更 */
    .header-section {
        height: auto; /* SP版では高さを自動にし、パディングで制御 */
        padding: 16px 0; /* SP版 上下パディング */
    }

    .header-container {
        padding: 0 24px; /* SP版の左右パディング */
        /* align-items: center はPC版から継承 */
    }

    .hamburger-menu{
        top: 16px;
        right: 24px;
    }
}