@import url('https://fonts.googleapis.com/css2?family=Zen+Antique+Soft&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yuji+Syuku&display=swap');

@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap');


/*====================================================================
ナビバー
====================================================================*/
.navbar {
    padding: 0.7rem 0.5rem;
    background-color: #f9c264;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    margin: 0;
}

@media (min-width: 768px) {
    .navbar {
        padding: 0.5rem 2rem;
    }
}

.navbar a {
    text-decoration: none;
    color: inherit;
    /* 親要素の色を継承する */
}


.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

}

.navbar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.navbar-right img {
    width: 32px;
    /* お好みで調整 */
    height: auto;
    /* アスペクト比を保つ */
    margin-left: 16px;
    transition: transform 0.3s;
    margin-right: 20px;
}

.navbar-right img:hover {
    transform: scale(1.1);
    /* ホバー時に少し大きくする */
}

.navbar-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}

.navbar-brand {
    font-size: 1rem;
    line-height: 1;
    /* font-family: "New Tegomin"; */
    color: black;
}

.header-logo {
    height: 37px;
    width: auto;
    margin-right: 1rem;
}

@media (min-width: 768px) {
    .header-logo {
        height: 40px;
    }
}

/*====================================================================
　言語ボタン
====================================================================*/

.language-toggle {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    padding: 0.25rem 1rem;
    margin: auto;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    color: #333;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 60px;
}


.language-btn.active,
.language-btn:hover {
    background-color: #ffffff;
    color: #6c757d;
}

.language-btn::after {
    content: "▼";
    font-size: 0.7rem;
    margin: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0 0.5rem;
    width: 100%;
    z-index: 1000;
}

.dropdown-menu li {
    border-bottom: 1px solid #ddd;
}

.dropdown-menu li a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #6c757d;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu li a.active,
.dropdown-menu li a:hover {
    background-color: #6c757d;
    color: #fff;
}

.language-dropdown.open .dropdown-menu {
    display: block;
}

.language-dropdown.open .language-btn::after {
    content: "▲";
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .language-btn {
        padding: 0.25rem 1rem;
        border: 1px solid #ffffff;
        background-color: #ffffff;
        color: #333;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-width: 60px;
    }
}


/*====================================================================
スクロールエリア
====================================================================*/


.header-scroll-infinity {
    padding-top: 10px;
    padding-bottom: 10px;
}

.header-scroll-infinity__wrap {
    display: flex !important;
    overflow: hidden !important;
    height: 120px !important;
}

.header-scroll-infinity__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-scroll-infinity__list--left {
    animation: infinity-scroll-left 40s infinite linear 0.5s both;
}

.header-scroll-infinity__item-02 {
    flex-shrink: 0;
    margin-right: -40px;
    margin-left: 0px;
}

.header-scroll-infinity__item-02>img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.image-container {
    position: relative;
}

.image-container img {
    height: 120px;
    width: auto;
    display: block;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    /* 背景付きで読みやすく */
    padding: 0.4em 0.8em;
    margin-left: 2px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    max-width: 70%;
    white-space: normal;
    /* 折り返し可 */
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(97, 97, 97, 0.7);
    /* ← 追加部分 */
}


@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* PC */
@media (min-width: 768px) {
    .header-scroll-infinity__wrap {
        display: flex !important;
        overflow: hidden !important;
        height: 180px !important;
    }

    .image-container img {
        height: 180px;
    }

    .overlay-text {
        font-size: 1.1rem;
    }


}

/*====================================================================
メニュー
====================================================================*/

.hamburger-menubox {
    margin: 0 auto;
    padding: 0;
}

/* Nav items */
.menu {
    list-style: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
    background-color: var(--background-navbar, #ffffff);
    /* 背景色調整 */
    padding: 10px 0;
    margin: 0;
    box-sizing: border-box;
    /* 幅を親要素内に収める */
    overflow-x: hidden;
    /* 横スクロールを防止 */
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    z-index: 1000;
}

/* Hamburger menu button */
.menu-btn:checked~.menu {
    transform: scale(1, 1);
    transform-origin: top;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger menbu text */
.menu a {
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 16px;
    color: #242424;
    opacity: 0;
    transition: 0.5s;
}

.menu li {
    border-top: 1px solid rgb(75, 75, 75);
    padding: 10px;
    margin: 0 30px;
    opacity: 0;
    transition: 0.5s;
}

.menu-btn:checked~.menu a,
.menu-btn:checked~.menu li {
    opacity: 1;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
}

.menu-btn {
    display: none;
    color: black;
}

.menu-icon {
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding: 5px 14px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.navicon {
    background: #242424;
    display: block;
    height: 3px;
    width: 26px;
    position: relative;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    background: #242424;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
    top: 9px;
}

.navicon:after {
    bottom: 9px;
}

/* Hamburger Menu Animation Start */
.menu-btn:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.menu-btn:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
}

.menu-btn:checked~.menu-icon:not(.steps) .navicon:before {
    top: 0;
}

.menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
    bottom: 0;
}

.menu-btn:checked~.menu-icon .navicon {
    background: rgba(0, 0, 0, 0);
    transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger Menu Animation End */

/* Navbar Container */
.navtext-container {
    width: 100%;
    height: 52px;
    position: absolute;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navbar Text */
.navtext {
    position: absolute;
    text-transform: uppercase;
    color: #ddd;
    letter-spacing: 4px;
    font-size: 20px;
}

/* 暗くする背景 */
.menu-overlay {
    position: fixed;
    /* 画面全体 */
    top: 100px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明の黒 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

/* チェックされたら表示 */
.menu-btn:checked~.menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* クリック可能に */
}

.logout-button {
    background-color: transparent;
    letter-spacing: 2px;
    font-size: 16px;
    color: #242424;
    transition: 0.5s;
    margin: 0;
    padding: 0;
    border: none;
}

.logout-button:hover {
    background-color: transparent;
    letter-spacing: 2px;
    font-size: 16px;
    color: #242424;
    transition: 0.5s;
    margin: 0;
    padding: 0;
    border: none;
}

@media (min-width: 768px) {
    .menu li {
        text-align: right;
        margin-left: auto;

    }

    .logout-button {
        margin-left: auto;
    }
}