﻿/* //////////////////////////////////////////////////////////////////////////
   共通・PC用のベーススタイル
   ////////////////////////////////////////////////////////////////////////// */

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

a {
    text-decoration: none;
    color: #333;
}

.container > header {   
    padding: 0;
    width: 100vw;
    max-width: none;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    transform: translateZ(9999px);
    background: linear-gradient(to bottom,
    rgba(247, 251, 255, 1) 0%,
    rgba(247, 251, 255, 1) 85%, 
    rgba(247, 251, 255, 0) 100% 
    );
}

    .container > header::after {
        content: "";
        display: block;
        clear: both;
    }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0% 20px 0%;
    background: transparent;
    position: relative;
    z-index:999;
}

.logo {
    margin-left: -40px;
    position: absolute;
    top: 25px;
    max-width: 60%; 
    flex-shrink: 1; 
}

.logo a {
    font-weight: bold;
    font-size: 1.4rem;
}
    .logo img {
        width: 100%;
        height: auto; 
        display: block;
    }

.menu-item > a,
.dropdown-menu a {
    position: relative; 
    display: inline-block;
    transition: color 0.3s ease;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-item > a:hover {
    color: #007bff; 
}

.dropdown-menu a:hover {
    background-color: #e6f2ff; 
    color: #0056b3;
}

.menu-item > a::after,
.dropdown-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px; 
    left: 15px; 
    right: 15px; 
    height: 2px; 
    background-color: #007bff; 
    transform: scaleX(0);
    transform-origin: left; 
    transition: transform 0.3s ease;
}

.dropdown-menu a::after {
    left: 20px;
    right: 20px;
    background-color: #0056b3;
}

.menu-item > a:hover::after{
    transform: scaleX(1); 
}


.menu-list {
    display: flex;
    gap: 0px;
    margin-left: auto;
}

.menu-item {
    position: relative;
    font-weight: 500;
    font-size:0.9rem;
}

.menu-item a {
    padding: 10px 20px;
    display: block;
}

.menu-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0; 
    transform: translateY(-50%); 
    width: 1px;
    height: 16px; 
    background-color: #ccc; 
}

/* PC用ドロップダウン */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
}

    .dropdown-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ハンバーガーボタンはPCでは非表示 */
.menu-btn {
    display: none;
}

/* header追従 */
#header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
    #header-area.is-subpage {
        background: linear-gradient(to bottom, rgba(247, 251, 255, 1) 0%, rgba(247, 251, 255, 1) 85%, rgba(247, 251, 255, 0) 100% );
    }



/* //////////////////////////////////////////////////////////////////////////
   　スマホ用のスタイル（1024px以下）
   ////////////////////////////////////////////////////////////////////////// */
@media screen and (max-width: 1024px) {

    .menu-item:not(:last-child)::before {
        display: none;
    }

    .menu-btn {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 1000;
    }

        .menu-btn span {
            display: block;
            height: 3px;
            width: 100%;
            background: #333;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        /* 開閉アニメーション */
        .menu-btn.is-active span:nth-child(1) {
            transform: translateY(8.5px) rotate(45deg);
        }

        .menu-btn.is-active span:nth-child(2) {
            opacity: 0;
        }

        .menu-btn.is-active span:nth-child(3) {
            transform: translateY(-8.5px) rotate(-45deg);
        }

    /* メニューリストを画面全体に固定 */
    .menu-list {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.88);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 999;
        padding-top: 60px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

        .menu-list.is-active {
            transform: translateX(0);
        }

    .menu-item {
        width: auto;
        text-align: center;
    }

    .menu-item a {
        font-size: 1.3rem;
        font-weight: bold;
        padding: 10px 15px;
    }
    .menu-item > a::after,
    .dropdown-menu a::after {
        left: 0;
        right: 0;
    }

    .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        background: #f4f4f4;
        width: 100%;
        margin-top: 5px;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }

        .dropdown-menu.is-open {
            max-height: 300px; 
        }

        .dropdown-menu a {
            font-size: 1rem;
            font-weight: normal;
            padding: 12px;
        }

    .arrow {
        display: inline-block;
        transition: transform 0.3s;
    }

    .dropdown-trigger.is-open .arrow {
        transform: rotate(180deg);
    }
    .menu-item > a:hover {
        border-radius: 4px; 
    }

    .dropdown-menu a:hover {
    }
}

