/* --------------------------------------------------
   General Settings
-------------------------------------------------- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    line-height: 1.8;
    /* ゆとりを持たせる */
    letter-spacing: 0.1em;
    /* 上品さを出す */
    color: #4A4A4A;
    overflow-x: hidden;
}

/* Global Icon Spacing */
.fa-phone:before {
    margin-right: 10px;
}

.fa-solid,
.fas {
    font-weight: 600;
}

/* Tailwind Override */
.py-2\.5 {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.bg-brand-beige {
    --tw-bg-opacity: 1 !important;
    background: #f9eade !important;
}

.bg-brand-orange\/10 {
    background-color: #f9eade !important;
}

.bg-brand-orange\/5 {
    background-color: #f9eade !important;
}

.bg-gray-50 {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1200px) {
    #about .container.mx-auto.px-4.relative {
        width: 1110px !important;
        max-width: none !important;
    }
}

/* Section Margins / Padding */
.section-margin {
    margin-bottom: 0;
}

/* Swiper Linear Transition */
.swiper-wrapper {
    transition-timing-function: linear;
}

section {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}

/* --------------------------------------------------
   Logo Design
-------------------------------------------------- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container:hover {
    transform: translateY(-1px);
}



.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-brand-name {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #F4A261;
    letter-spacing: 0.12em;
    line-height: 1.1;
}

.logo-brand-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.7rem;
    color: #4A4A4A;
    letter-spacing: 0.3em;
    font-weight: 500;
    opacity: 0.6;
    margin-top: 2px;
}

/* Footer version / Inverse */
.logo-container.is-light .logo-brand-name {
    color: #fff;
}

.logo-container.is-light .logo-brand-sub {
    color: #fff;
    opacity: 0.8;
}



@media (max-width: 768px) {
    .logo-brand-name {
        font-size: 1.1rem;
    }

    .logo-brand-sub {
        font-size: 0.6rem;
    }


}

/* Hamburger Animation */
#js-hamburger {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

#js-hamburger.is-active {
    background-color: #fff !important;
    border-color: #F4A261 !important;
}

#js-hamburger.is-active span {
    background-color: #F4A261 !important;
}

#js-sp-menu.is-open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

#js-sp-menu {
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#js-hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#js-hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#js-hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Header Container SP Utility */
@media (max-width: 767px) {
    .main-header .container.px-4 {
        padding-right: 20px !important;
    }
}

.main-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 247, 242, 0.95) 100%);
    backdrop-filter: blur(10px);
}

/* --------------------------------------------------
   Typography
-------------------------------------------------- */
h1,
h2,
h3,
.font-serif {
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.15em;
}

/* --------------------------------------------------
   FV (First View)
-------------------------------------------------- */
#fv {
    height: auto;
}

.vertical-bottom {
    vertical-align: bottom;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.scroll-down::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 1px;
    height: 60px;
    background: #fff;
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* --------------------------------------------------
   Parallax
-------------------------------------------------- */
.parallax-bg {
    background-attachment: fixed;
}

@media (max-width: 1024px) {

    /* Mobile parallax is often janky, disabling for performance */
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Page Top Button Visibility */
#js-pagetop {
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#js-pagetop.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --------------------------------------------------
   Swiper Customization
-------------------------------------------------- */
.swiper-pagination-bullet-active {
    background: #F4A261 !important;
}

.gallery-swiper .swiper-slide img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-swiper .swiper-slide img:hover {
    transform: scale(1.02);
}

/* --------------------------------------------------
   Section Titles (Minimal Modern Style)
-------------------------------------------------- */
.section-header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 100px;
        padding: 0;
    }
}

/* Rounded background text (Pastel brand color) */
.section-header .en-bg-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Green leaf icon accent (Centered) */
.section-header .leaf-icon {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%) rotate(15deg);
    width: 42px;
    height: 42px;
    opacity: 0.4;
}

.section-header .en-bg {
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    font-size: 70px;
    color: #F4A261;
    opacity: 0.4;
    letter-spacing: 0.05em;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
    /* Soft rounded feel */
    border-radius: 50px;
}

/* Clean Japanese typography (Center) */
.section-header .jp-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #4A4A4A;
    letter-spacing: 0.2em;
    white-space: nowrap;
    z-index: 2;
}

@media (max-width: 767px) {
    .section-header .en-bg {
        font-size: 13vw !important;
    }

    .section-header .leaf-icon {
        top: 12vw !important;
        width: 30px !important;
        height: 30px !important;
    }

    .section-header .jp-text {
        font-size: 14px !important;
    }
}

@media (min-width: 768px) {
    .section-header .jp-text {
        font-size: 16px;
        margin-top: 15px;
    }
}

/* --------------------------------------------------
   CTA Sections
-------------------------------------------------- */
.cta-section {
    position: relative;
    padding: 70px 0 !important;
    overflow: hidden;
    background-color: #F4A261;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F4A261 0%, #e76f51 100%);
    opacity: 0.9;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* CTA Buttons */
.btn-cta-insta {
    background: #fff;
    color: #F4A261 !important;
    padding: 18px 0;
    width: 320px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.btn-cta-insta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn-cta-tel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    padding: 10px 0;
    width: 320px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Noto Serif JP', serif;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-cta-tel:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: scale(1.02);
}

@media (max-width: 768px) {

    .btn-cta-insta,
    .btn-cta-tel {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .btn-cta-insta {
        font-size: 1rem;
    }

    .btn-cta-tel {
        font-size: 1.4rem;
    }
}

/* --------------------------------------------------
   Buttons & Links
-------------------------------------------------- */
a {
    transition: opacity 0.3s ease;
}

/* TOP Page button behavior */
#js-pagetop.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------
   UI - Micro Interactions
-------------------------------------------------- */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Responsive adjustment for images to not overflow width */
img {
    max-width: 100%;
    height: auto;
}

/* Section specific: Recommend Section (#tv) */
#tv {
    background: #ffecdd;
}

/* Recommend Section Text Box Styling (Mobile & Desktop) */
#tv .flex>div:last-child {
    background: white;
    padding: 30px 20px;
    /* Mobile padding */
    border: 2px solid #F4A261;
    border-radius: 10px 80px 10px 10px;
    /* Softer radius for mobile */
}

@media (min-width: 768px) {
    #tv .flex.md\:flex-row {
        width: 860px;
        margin: 0 auto;
        gap: 30px !important;
    }

    #tv .md\:w-1\/2:first-child {
        width: 50% !important;
        flex-shrink: 0;
    }

    #tv .md\:w-1\/2:last-child {
        width: 50% !important;
        padding: 50px 20px;
        /* Desktop padding */
        border-radius: 10px 164px 10px 10px;
        /* Larger radius for desktop */
    }
}

#tv ul li p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Section specific: About Section (#about) */
#about.bg-brand-beige {
    background: #F4A261 !important;
}

#about .section-header .en-bg {
    color: #ffffff;
    opacity: 0.7;
}

@media (min-width: 768px) {
    #about .md\:w-\[55\%\] {
        border: 7px solid #F4A261 !important;
        border-radius: 20px !important;
        padding: 30px !important;
    }
}

#service {
    background-image: url('../img/ServiceBg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffecdd;
    /* 読みやすくするためのオーバーレイ */
    z-index: 0;
}

#service>* {
    position: relative;
    z-index: 1;
}

#service .container {
    max-width: 1060px !important;
}

/* Service Items Stylistic Design */
.service-item {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.service-item .service-img-wrapper {
    border-radius: 0;
    /* Reset previous */
    box-shadow: none;
    /* Reset previous */
}

.service-item .service-img-wrapper img {
    height: 370px;
}

.service-content {
    background: #fff;
    padding: 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .service-content {
        padding: 30px !important;
    }

    .service-item .md\:w-\[50\%\] {
        width: 90% !important;
    }
}

.service-content h3 {
    color: #F4A261;
}

.service-content p {
    color: #555;
    line-height: 1.8;
}

/* Promo Card */
.service-promo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 790px;
    margin: 0 auto;
}

.service-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(244, 162, 97, 0.2);
}

@media (min-width: 768px) {
    .service-promo-card .md\:p-12 {
        padding: 20px !important;
    }
}

@media (max-width: 768px) {
    .service-promo-card {
        padding: 30px 20px !important;
    }
}

/* Service Section Spacing Override */
@media (min-width: 768px) {
    #service .md\:space-y-32> :not([hidden])~ :not([hidden]) {
        margin-top: 70px !important;
    }
}

/* Section specific: Access Section (#access) */
/* GLightbox Custom Styling */
.glightbox-container .gclose,
.glightbox-container .gnext,
.glightbox-container .gprev {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(5px);
    border: none !important;
}

.glightbox-container .gclose:hover,
.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
    background-color: #F4A261 !important;
}

.glightbox-container .gclose svg {
    width: 20px;
    height: 20px;
}

.glightbox-container .gnext svg,
.glightbox-container .gprev svg {
    width: 25px;
    height: 25px;
}

#access {
    background: #f9eade;
}

@media (max-width: 781px) {
    #menu .grid.grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* Responsive Padding Adjustments (Tablet/Mobile) */
@media (max-width: 991.98px) {
    #about .p-8 {
        padding: 10px !important;
    }

    .service-content {
        padding: 10px !important;
    }

    #menu .p-6 {
        padding: 10px !important;
    }

    /* Page Top Button */
    a#js-pagetop {
        margin-right: 0px;
    }
}