/* Please ❤ this if you like it! */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");
.section-center {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 6;
    text-align: center;
    transform: translateY(-50%);
}

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

.menu-icon:checked + label,
.menu-icon:not(:checked) + label {
    position: fixed;
    top: 63px;
    right: 75px;
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    z-index: 10;
}

.menu-icon:checked + label:before,
.menu-icon:not(:checked) + label:before {
    position: absolute;
    content: "";
    display: block;
    width: 30px;
    height: 20px;
    z-index: 20;
    top: 0;
    left: 0;
    border-top: 2px solid #ececee;
    border-bottom: 2px solid #ececee;
    transition: border-width 100ms 1500ms ease,
        top 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
        height 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
        background-color 200ms ease,
        transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked + label:after,
.menu-icon:not(:checked) + label:after {
    position: absolute;
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    z-index: 20;
    top: 10px;
    right: 4px;
    background-color: #ececee;
    margin-top: -1px;
    transition: width 100ms 1750ms ease, right 100ms 1750ms ease,
        margin-top 100ms ease, transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked + label:before {
    top: 10px;
    transform: rotate(45deg);
    height: 2px;
    background-color: #ececee;
    border-width: 0;
    transition: border-width 100ms 340ms ease,
        top 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
        height 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
        background-color 200ms 500ms ease,
        transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked + label:after {
    width: 30px;
    margin-top: 0;
    right: 0;
    transform: rotate(-45deg);
    transition: width 100ms ease, right 100ms ease, margin-top 100ms 500ms ease,
        transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav {
    position: fixed;
    top: 33px;
    right: 50px;
    display: block;
    width: 80px;
    height: 80px;
    padding: 0;
    margin: 0;
    z-index: 9;
    overflow: hidden;
    box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.3);
    background-color: #afaba3;
    animation: border-transform 7s linear infinite;
    transition: top 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
        right 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
        transform 250ms 1100ms ease,
        width 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1),
        height 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes border-transform {
    0%,
    100% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    }
    14% {
        border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
    }
    28% {
        border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
    }
    42% {
        border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
    }
    56% {
        border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
    }
    70% {
        border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
    }
    84% {
        border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
    }
}

.menu-icon:checked ~ .nav {
    animation-play-state: paused;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 200%;
    height: 200%;
    transition: top 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
        right 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
        transform 250ms 700ms ease,
        width 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1),
        height 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav ul {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 6;
    text-align: center;
    transform: translateY(-50%);
    list-style: none;
}

.nav ul li {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 10px 0;
    text-align: center;
    list-style: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 250ms linear;
}

.nav ul li:nth-child(1) {
    transition-delay: 200ms;
}

.nav ul li:nth-child(2) {
    transition-delay: 150ms;
}

.nav ul li:nth-child(3) {
    transition-delay: 100ms;
}

.nav ul li:nth-child(4) {
    transition-delay: 50ms;
}

.nav ul li a {
    font-family: "Montserrat", sans-serif;
    font-size: 5vh;
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 800;
    display: inline-block;
    position: relative;
    color: #ececee;
    transition: all 250ms linear;
}

.nav ul li a:hover {
    text-decoration: none;
    color: #ffeba7;
}

.nav ul li a:after {
    display: block;
    position: absolute;
    top: 50%;
    content: "";
    height: 2vh;
    margin-top: -1vh;
    width: 0;
    left: 0;
    background-color: #353746;
    opacity: 0.8;
    transition: width 250ms linear;
}

.nav ul li a:hover:after {
    width: 100%;
}

.menu-icon:checked ~ .nav ul li {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 350ms ease, transform 250ms ease;
}

.menu-icon:checked ~ .nav ul li:nth-child(1) {
    transition-delay: 1400ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(2) {
    transition-delay: 1480ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(3) {
    transition-delay: 1560ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(4) {
    transition-delay: 1640ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(5) {
    transition-delay: 1720ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(6) {
    transition-delay: 1800ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(7) {
    transition-delay: 1800ms;
}

.logo {
    position: absolute;
    top: 47px;
    left: 50px;
    display: block;
    z-index: 11;
    transition: all 250ms linear;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.rogo_nav {
    height: 150px;
    width: 100%;
}

.logo p {
    color: rgb(255, 255, 255);
    text-align: left;
}

@media screen and (max-width: 991px) {
    .menu-icon:checked + label,
    .menu-icon:not(:checked) + label {
        right: 55px;
    }
    .logo {
        left: 13px;
    }
    .nav {
        right: 30px;
    }
    .nav ul li a {
        font-size: 5vh;
    }
    .tel img {
        width: 150px;
        height: auto;
    }
}

.tel {
    position: fixed;
    bottom: 16px;
    right: 15px;
    z-index: 1000;
}

.tel img {
    width: 70px;
    height: auto;
}

/* ポップアップのスタイル */

.popup {
    display: none;
    /* 初期状態は非表示 */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #b1a26e;
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 85%;
}

/* 背景のスタイル */

.overlay {
    display: none;
    /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ボタンのスタイル */

.phone-button {
    background: none;
    border: none;
    cursor: pointer;
}

/* メッセージと電話番号のスタイル */

.message_tel,
.phone-number {
    display: none;
    /* 初期状態は非表示 */
}

.tel_butoon {
    margin: 1em auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tel_butoon button {
    width: 48%;
    margin: 1%;
    padding: 1em;
    color: white;
    background-image: radial-gradient(
        circle,
        rgb(220 175 69),
        rgb(227 190 103) 80%
    );
    border: none;
}

button#cancelCall {
    background-image: none;
    background-color: #dc7f7f;
}

/* --- 4つ対応・スマホ最適レイアウト --- */

.rec_fre_bottom {
    position: fixed;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 99;
}

.rec_fre_bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.rec_fre_bottom img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 3px solid #ffeba7;
    background-color: #000;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rec_fre_bottom a:hover img {
    transform: scale(1.08);
    border-color: #fff;
}

.rec_fre_bottom p {
    margin-top: 0.4em;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* ✅ メニュー開いた時だけ出す */

.menu-icon:checked ~ .nav ~ .rec_fre_bottom {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition-delay: 1.4s;
}

@media (max-width: 768px) {
    .rec_fre_bottom {
        width: 71%;
    }
    .rec_fre_bottom img {
        width: 52px !important;
        height: 52px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    .rec_fre_bottom {
        bottom: 14vh !important;
        justify-content: space-evenly !important;
        gap: 0.5em !important;
    }
    .rec_fre_bottom p {
        font-size: 0.7rem !important;
        margin-top: 0.3em !important;
    }
}

@media (max-width: 768px) {
    .rec_fre_bottom::before {
        content: "";
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 10vh;
        z-index: -1;
    }
}
