/* HTMLとBodyに明示的に白背景を指定 */
html, body {
    background-color: #ffffff;
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
    overflow-y: scroll;
}

/* --- メニューアニメーション関連 --- */
#headerButtons {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#headerButtons.slide-down {
    transform: translateY(100vh);
}

.menu-overlay {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(-100%);
    pointer-events: none;
}
.menu-overlay.active {
    transform: translateY(0);
    pointer-events: auto;
}

/* 背景レイヤー */
.menu-bg-blue {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    z-index: -1;
    background: #3d9cd6;
    width: calc(100% - 76px);
}

.menu-bg-white {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    z-index: -1;
    width: 76px;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,1) 0px, 
        rgba(255,255,255,1) 96px, 
        rgba(255,255,255,0.6) 116px, 
        rgba(255,255,255,0.6) 100%
    );
}

.menu-bg-white::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 1; 
    transition: opacity 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .menu-bg-blue { width: calc(100% - 276px); }
    .menu-bg-white { width: 276px; }
}

.menu-overlay.active .menu-bg-white::after {
    opacity: 0; 
    transition-delay: 0.3s;
}

/* ハンバーガーメニューボタンのホバーアニメーション */
#menuButton span {
    transition: transform 0.3s ease, width 0.3s ease;
}
#menuButton:hover span:nth-child(1) {
    transform: translateY(2px);
}
#menuButton:hover span:nth-child(3) {
    transform: translateY(-2px);
}

/* --- その他スタイル --- */
.header-logo-bg { border-bottom-right-radius: 38px; }
.header-entry-bg { border-bottom-left-radius: 38px; }
.header-menu-bg { border-bottom-right-radius: 38px; }

.main-text-bg {
    border-top-left-radius: 190px;
}

.text-shadow { text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* --- フッターリンクのアニメーション --- */
/* 共通設定: 常時下線（グレー） + ホバーで濃い線アニメーション */
.footer-link-anim {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 5px; /* 文字下の余白 */
    border-bottom: 1px solid #d1d5db; /* 常時表示される薄い線 (Tailwind gray-300相当) */
}

.footer-link-anim::after {
    content: '';
    position: absolute;
    bottom: -1px; /* 薄い線の上に重ねる */
    left: 0;
    width: 0;
    height: 2px; /* ホバー時の線は少し太く */
    background-color: #252E3C;
    transition: width 0.3s ease-in-out;
}

.footer-link-anim:hover::after {
    width: 100%;
}

/* 白背景用（下部のリンク、およびメニュー内リンク用） */
.footer-link-light-anim {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* 薄い白 */
}

.footer-link-light-anim::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
}

.footer-link-light-anim:hover::after {
    width: 100%;
}

/* メニュー内のリンク用調整 */
.menu-nav-link {
    font-size: 1.5rem; /* 大きめ */
    font-weight: 700;
}
@media (min-width: 768px) {
    .menu-nav-link {
        font-size: 2rem;
    }
}

/* カスタムスクロールバー（メニュー内用） */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

@media (max-width: 1080px) {
    .custom-header-logo {
        width: auto !important;
        padding-right: 1rem !important; 
    }
    .custom-header-buttons {
        right: 0 !important;
    }
    .hero-heading {
        padding-left: 5vw !important; 
    }
}

@media (max-width: 768px) {
    .main-text-bg {
        padding-left: 80px !important; 
        padding-top: 50px !important;
        border-top-left-radius: 60px !important;
    }
    .hero-heading h2 {
        font-size: 2.2rem !important;
    }
    .custom-header-logo {
        width: 50vw !important;
    }
}

@media (max-width: 480px) {
     .main-text-bg {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
    .hero-heading {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}