/*------------------------
    ヘッダー
-------------------------*/

#header {
    height: 100px;
}

#header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#header__logo {
    width: clamp(220px, calc(180px + 7.5vw), 350px);
}

#hamburger-menu {
    position: fixed;
    right: 22px;
    z-index: 2000;
    width: 45px;
    height: 45px;
    background-color: var(--color-pink-primary);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all 0.23s;
}

#hamburger-menu:hover {
    background-color: var(--color-white);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    position: absolute;
    background: var(--color-white);
    left: 0;
    right: 0;
    margin: auto;
    transition: all 0.23s cubic-bezier(0.5, 0.1, 0.3, 1.8);
    border-radius: var(--border-radius-sm);
}

#hamburger-menu:hover .hamburger-line {
    background: var(--color-pink-primary);
}

.hamburger-line:nth-child(1) {
    top: calc(50% - 5.5px);
}

.hamburger-line:nth-child(2) {
    top: 50%;
    width: 15px;
}

.hamburger-line:nth-child(3) {
    top: calc(50% + 4.5px);
    width: 9px;
}

#hamburger-menu.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    width: 21px;
    top: calc(50% - 1.5px);
}

#hamburger-menu.is-active .hamburger-line:nth-child(2) {
    left: 5px;
    opacity: 0;
}

#hamburger-menu.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    width: 20px;
    top: calc(50% - 1.5px);
}

#drawer-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-pink-secondary);
    color: var(--color-white);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    padding-top: 80px;
}

#drawer-menu.open {
    right: 0;
}

#drawer-menu__container {
    display: flex;
    flex-direction: column;
    row-gap: var(--spacing-xl);
}

#language-switcher {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-white-opacity20);
    border-radius: var(--border-radius-lg);
    height: 60px;
    position: absolute;
    top: 20px;
}

.language-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-white);
    font-family: var(--font-family-latin);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.language-button.active {
    background: var(--color-pink-primary);
    cursor: default;
    pointer-events: none;
}

.language-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

.language-button.disabled .globe-icon {
    animation: none;
}

.language-button.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transform: translateY(-50%);
    z-index: 2;
}

.language-button:not(.active):not(.disabled)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-pink-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.language-button:not(.active):not(.disabled):hover::before {
    opacity: 0.6;
}

.language-button:not(.active):not(.disabled) {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.language-button:not(.active):not(.disabled):hover {
    color: var(--color-pink-primary);
}

.language-button:not(.active):not(.disabled) .globe-icon {
    transition: all 0.3s ease;
    color: var(--color-white);
}

.language-button:not(.active):not(.disabled):hover .globe-icon {
    animation: rotateGlobe 2s linear infinite;
    color: var(--color-pink-primary);
}

.language-button span {
    position: relative;
    z-index: 1;
}

#globe-icon {
    width: 16px;
    height: 16px;
}

.language-button .globe-icon {
    width: 16px;
    height: 16px;
}

#drawer-menu ul {
    display: flex;
    flex-direction: column;
    row-gap: var(--spacing-lg);
}

#drawer-menu ul li a {
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
}

#drawer-menu ul li a p {
    font-size: var(--font-size-lg-en);
    font-family: var(--font-family-latin);
    font-weight: var(--font-weight-extra-bold);
    line-height: var(--line-height-compressed);
}

#drawer__sns {
    display: flex;
    gap: var(--spacing-sm);
}

#drawer__sns .sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    border: 2.3px solid var(--color-white);
    transition: transform 0.4s ease-in-out;
}

#drawer__sns .sns-icon:hover {
    transform: scale(1.1);
    background-color: var(--color-pink-primary);
    border-color: var(--color-pink-primary);
}

#drawer__sns .sns-icon svg {
    width: 50%;
    height: 50%;
}

@keyframes rotateGlobe {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media screen and (min-width: 768px) {
    #hamburger-menu {
        width: 60px;
        height: 60px;
        right: 4vw;
    }

    #drawer__sns .sns-icon {
        width: 45px;
        height: 45px;
    }
}

@media screen and (min-width: 1024px) {
    #header {
        height: 120px;
    }

    #hamburger-menu {
        right: clamp(80px, 6vw, 100px);
    }

    #drawer-menu {
        align-items: flex-start;
        padding: 120px 0 30px var(--spacing-2xl);
        right: -520px;
        width: 520px;
        height: fit-content;
        border-radius: 0 0 0 var(--border-radius-xl);
        box-shadow: 0 0 20px color-mix(in srgb, var(--color-pink-primary) 20%, transparent);
        overflow-y: visible;
    }

    #drawer-menu ul li a span {
        font-size: var(--font-size-md-px);
    }

    #drawer-menu__container {
        gap: var(--spacing-lg);
    }

    #language-switcher {
        top: 23.5px;
        left: var(--spacing-2xl);
        height: 75px;
    }

    .language-button {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    #floating-btn {
        padding: var(--spacing-lg);
        right: 20px;
    }
}

/*------------------------
    フローティングボタン
-------------------------*/

#floating-btn {
    position: fixed;
    padding: var(--spacing-md);
    right: 16px;
    bottom: 20px;
    width: 145px;
    height: 145px;
    border-radius: var(--border-radius-full);
    border: 2px solid var(--color-white);
    box-shadow: 0px 0px 35px 0px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    transform: translateY(20px);
    background: linear-gradient(to top left,
            rgba(238, 131, 145, 1) 0%,
            rgba(255, 217, 232, 1) 40%,
            rgba(255, 217, 232, 1) 78%,
            rgba(245, 229, 233, 1) 84%,
            rgba(255, 246, 235, 1) 89%,
            rgba(255, 255, 255, 1) 100%);
}

#floating-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

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

#floating-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#floating-btn.show:hover {
    border-color: var(--color-pink-primary);
    transform: translateY(-20px);
}

#floating-btn .text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

#floating-btn .text-wrapper p {
    font-size: var(--font-size-sm-px);
    font-weight: var(--font-weight-default);
    text-align: var(--text-align-center);
    letter-spacing: var(--letter-spacing-default);
    line-height: var(--line-height-moderate);
}

body[class*="lang-en"] #floating-btn .text-wrapper p {
    font-weight: var(--font-weight-bold);
}

#floating-btn .img-wrapper img {
    position: absolute;
    z-index: 1;
}

#floating-btn .img-wrapper img:first-of-type {
    width: 20px;
}

#floating-btn .img-wrapper img:first-of-type {
    width: 29%;
    left: 20%;
    bottom: 25%;
}

#floating-btn .img-wrapper img:nth-of-type(2) {
    width: 35%;
    right: 15%;
    bottom: 7%;
    animation: horizontalShake 5s ease-in-out infinite;
}

@keyframes horizontalShake {

    0%,
    100% {
        transform: translateY(0);
    }

    5% {
        transform: translateY(-8px);
    }

    10% {
        transform: translateY(0);
    }

    15% {
        transform: translateY(-4px);
    }

    20% {
        transform: translateY(0);
    }
}

@media screen and (min-width: 768px) {
    #floating-btn {
        bottom: 40px;
        width: 185px;
        height: 185px;
        right: 4vw;
    }

    #floating-btn .img-wrapper img:first-of-type {
        width: 29%;
        left: 15%;
        bottom: 26%;
    }

    #floating-btn .img-wrapper img:nth-of-type(2) {
        width: 35%;
        right: 17%;
        bottom: 7.5%;
    }
}

/*------------------------
    言語切り替えポップアップ
-------------------------*/

.language-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-pink-light-opacity80);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.language-popup.show {
    opacity: 1;
    visibility: visible;
}

.language-popup__container {
    background: var(--color-pink-secondary);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    margin: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.language-popup.show .language-popup__container {
    transform: scale(1);
}

.language-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.language-popup__button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    padding-left: var(--spacing-lg);
    background: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: var(--border-radius-md);
    color: var(--color-pink-primary);
    font-family: var(--font-family-latin);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-md);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    min-width: 120px;
    height: 50px;
}

.language-popup__button .globe-icon {
    width: 20px;
    height: 20px;
    color: var(--color-pink-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
}

.language-popup__button span {
    flex-shrink: 0;
}

.language-popup__button:hover {
    background: var(--color-pink-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.language-popup__button:hover .globe-icon {
    color: var(--color-white);
    animation: rotateGlobe 2s linear infinite;
}

.language-popup__button:active {
    transform: translateY(0);
}

@media screen and (min-width: 768px) {
    .language-popup__container {
        padding: var(--spacing-2xl);
        margin: 0;
    }

    .language-popup__buttons {
        flex-direction: row;
        gap: var(--spacing-lg);
    }

    .language-popup__button {
        justify-content: center;
        padding: var(--spacing-lg) var(--spacing-xl);
        font-size: var(--font-size-lg);
        min-width: 140px;
        height: 60px;
    }

    .language-popup__button .globe-icon {
        width: 24px;
        height: 24px;
        margin-right: 0;
    }
}