/* ==========================================================================
   Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    background-color: #f5f5f0;
    background-image: url('../images/page_bg_1x.webp');
    background-image: image-set(
        url('../images/page_bg_1x.webp') 1x,
        url('../images/page_bg_2x.webp') 2x
    );
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
}

/* ==========================================================================
   Content Wrapper
   ========================================================================== */
.content-wrapper {
    background-color: #ffffff;
    border-radius: 6.25rem;
    max-width: calc(65rem + 10rem);
    width: 95%;
    margin: 0 auto;
    overflow: visible;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 5rem);
    max-width: 80rem;
    height: clamp(3.5rem, 6.667vw, 5rem);
    border-radius: 2.8125rem;
    overflow: hidden;
    z-index: 100;
}

.header__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.header__bg img {
    width: 150%;
    height: 100%;
    object-fit: cover;
    margin-left: -25%;
}

.header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 clamp(1.5rem, 3.333vw, 2.5rem);
}

/* Header Brand
   ========================================================================== */
.header__brand {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.header__logo {
    width: clamp(2rem, 4.167vw, 3.125rem);
    height: clamp(2.25rem, 4.667vw, 3.5rem);
    flex-shrink: 0;
}

.header__logo img {
    width: 100%;
    height: 100%;
}

.header__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.4;
    color: #ffffff;
    white-space: nowrap;
}

/* Header Actions
   ========================================================================== */
.header__actions {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.header__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: clamp(8rem, 15vw, 11.25rem);
    height: clamp(2.25rem, 4vw, 3rem);
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.4;
    text-decoration: none;
}

.header__btn--phone,
.header__btn--mobile {
    background-color: #ffffff;
    color: #575757;
}

.header__btn--phone img {
    width: 1rem;
    height: 1.0625rem;
}

.header__btn--mobile img {
    width: 0.75rem;
    height: auto;
}

.header__btn--email {
    background-color: #fdd11c;
    color: #468f02;
}

.header__btn--email img {
    width: 1.25rem;
    height: 0.875rem;
}

/* Header Hamburger
   ========================================================================== */
.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.5rem 0;
    padding-left: 0.75rem;
    cursor: pointer;
    background: none;
    border: none;
}

.header__hamburger span {
    display: block;
    width: clamp(1.5rem, 3.333vw, 2.5rem);
    height: 0.25rem;
    background-color: #ffffff;
    border-radius: 1.125rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__hamburger.is-active span:nth-child(1) {
    transform: translateY(calc(0.25rem + 0.625rem)) rotate(45deg);
}

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

.header__hamburger.is-active span:nth-child(3) {
    transform: translateY(calc(-0.25rem - 0.625rem)) rotate(-45deg);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: calc(2.5rem + clamp(3.5rem, 6.667vw, 5rem) + 0.75rem);
    right: max(2.5rem, calc((100% - 80rem) / 2));
    width: clamp(18rem, 30vw, 22rem);
    z-index: 99;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.mobile-menu.is-open {
    max-height: 80vh;
    opacity: 1;
}

.mobile-menu__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mobile-menu__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-menu__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: clamp(2rem, 4vw, 3rem);
    gap: clamp(2rem, 3vw, 2.5rem);
}

.mobile-menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.mobile-menu__link {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: #333333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.mobile-menu__link::before {
    content: '';
    display: inline-block;
    width: 0.375rem;
    height: 1.25rem;
    background-color: #7cc83d;
    border-radius: 0.1875rem;
    flex-shrink: 0;
}

.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.2vw, 1rem);
}

.mobile-menu__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.625rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 2.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    text-decoration: none;
}

.mobile-menu__btn img {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-menu__btn--email {
    background-color: #f5c800;
    color: #468f02;
}

.mobile-menu__btn--phone,
.mobile-menu__btn--mobile {
    background-color: #ffffff;
    color: #333851;
}

.mobile-menu__btn--mobile img {
    width: 0.75rem;
    height: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    width: 100%;
    padding: clamp(3rem, 5.333vw, 5rem) 0 0;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 3.733vw, 3.5rem);
    width: 95%;
    max-width: 65rem;
    margin: auto;
    padding-bottom: clamp(2rem, 3.733vw, 3.5rem);
}

/* Footer Brand
   ========================================================================== */
.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__logo {
    width: clamp(4rem, 6.667vw, 5rem);
}

.footer__logo img {
    width: 100%;
    height: auto;
}

.footer__brand-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.6;
    color: #575757;
    text-align: center;
}

.footer__brand-name {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.4;
    color: #333851;
    text-align: center;
}

.footer__brand-center {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.4;
    color: #333851;
    text-align: center;
    margin-top: 0.5rem;
}

/* Footer Nav
   ========================================================================== */
.footer__nav {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: clamp(1rem, 2.667vw, 2.5rem);
    width: 100%;
}

.footer__nav-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.4;
    color: #333851;
    margin-bottom: clamp(0.5rem, 1.067vw, 1rem);
    white-space: nowrap;
}

.footer__nav-heading a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.footer__nav-heading img {
    width: 0.5rem;
    height: auto;
}

.footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(0.375rem, 0.667vw, 0.625rem);
}

.footer__nav-list li a {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    color: #575757;
    text-decoration: none;
}

.footer__nav-list li a::before {
    content: '・';
}

.footer__nav-list li a:hover {
    text-decoration: underline;
}

/* Footer Bottom
   ========================================================================== */
.footer__bottom {
    display: flex;
    gap: clamp(1.5rem, 2.667vw, 2.5rem);
    width: 100%;
    align-items: flex-end;
}

.footer__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__address {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    color: #575757;
}

.footer__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #468f02;
    font-weight: 700;
    text-decoration: none;
}

.footer__map-link img {
    width: 0.9375rem;
    height: auto;
}

.footer__map-link:hover {
    text-decoration: underline;
}

.footer__info-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.067vw, 1.0625rem);
    line-height: 1.7;
    color: #575757;
}

/* Footer Contact
   ========================================================================== */
.footer__contact {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer__contact-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.4;
    color: #333851;
}

.footer__contact-heading a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.footer__contact-heading img {
    width: 0.5rem;
    height: auto;
}

.footer__contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: clamp(12rem, 18.667vw, 17.5rem);
    height: clamp(2.75rem, 4vw, 3.75rem);
    border-radius: 1.875rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.4;
    text-decoration: none;
}

.footer__contact-btn--phone,
.footer__contact-btn--mobile {
    background-color: #468f02;
    color: #ffffff;
}

.footer__contact-btn--phone img {
    width: 1rem;
    height: 1rem;
    filter: brightness(0) invert(1);
}

.footer__contact-btn--mobile img {
    width: 0.75rem;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer__contact-btn--email {
    background-color: #f5c800;
    color: #468f02;
}

.footer__contact-btn--email img {
    width: 1.25rem;
    height: 0.875rem;
}

.footer__contact-line {
    display: block;
}

.footer__contact-line img {
    width: clamp(2.5rem, 3.333vw, 3.125rem);
    height: auto;
}

/* Footer Copyright
   ========================================================================== */
.footer__copyright {
    position: relative;
    width: 100%;
    height: clamp(3rem, 4.167vw, 3.125rem);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__copyright-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer__copyright-bg img {
    width: 150%;
    height: 100%;
    object-fit: cover;
    margin-left: -25%;
}

.footer__copyright-text {
    position: relative;
    z-index: 1;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: clamp(0.875rem, 1vw, 1rem);
    line-height: 1.7;
    color: #ffffff;
}

/* ==========================================================================
   Hover Effects
   ========================================================================== */
.header__btn,
.cta__btn,
.footer__contact-btn,
.mobile-menu__btn {
    transition: filter 0.2s ease;
}

.header__btn:hover,
.cta__btn:hover,
.footer__contact-btn:hover,
.mobile-menu__btn:hover {
    filter: brightness(0.9);
}

/* ==========================================================================
   Responsive – Tablet (max-width: 1240px)
   ========================================================================== */
@media (max-width: 1240px) {
    .header {
        top: 1.25rem;
        width: calc(100% - 2.5rem);
    }

    .header__btn {
        display: none;
    }

}

/* ==========================================================================
   Responsive – Mobile (max-width: 797px)
   ========================================================================== */
@media (max-width: 797px) {
    .content-wrapper {
        border-radius: 2rem;
    }

    .header {
        top: 0.75rem;
        width: calc(100% - 1.5rem);
        height: 3.25rem;
        border-radius: 1.5rem;
    }

    .header__logo img {
        height: 2rem;
    }

    .header__title {
        font-size: 1rem;
    }

    .header__hamburger {
        gap: 0.375rem;
        padding: 1rem 0;
        padding-left: 0.5rem;
    }

    .header__hamburger span {
        width: 1.5rem;
        height: 0.1875rem;
    }

    .header__hamburger.is-active span:nth-child(1) {
        transform: translateY(calc(0.1875rem + 0.375rem)) rotate(45deg);
    }

    .header__hamburger.is-active span:nth-child(3) {
        transform: translateY(calc(-0.1875rem - 0.375rem)) rotate(-45deg);
    }

    .mobile-menu {
        width: clamp(14rem, 65vw, 18rem);
    }

    .footer__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__brand {
        order: 1;
        text-align: center;
    }

    .footer__nav {
        grid-template-columns: 1fr;
        order: 2;
        width: fit-content;
        margin: 0 auto;
        gap: 1.5rem;
    }

    .footer__nav-col {
        width: 100%;
    }

    .footer__nav-list {
        display: grid;
        grid-template-columns: auto auto;
        gap: 0.25rem 1.5rem;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        order: 3;
        width: 100%;
    }

    .footer__contact {
        width: 100%;
        align-items: center;
        order: 1;
    }

    .footer__contact-btn {
        width: 100%;
        max-width: 20rem;
    }

    .footer__info {
        text-align: center;
        order: 2;
    }

    .footer__copyright-text {
        font-size: 0.875rem;
    }
}
