@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- 1. Core Styles & Variables Reset --- */
:root {
    --primary-brown: #7D6B5D;
    --primary-brown-light: #9A897C;
    --pale-pink: #FDF2F0;
    --text-color: #4A4A4A;
    --white: #FFFFFF;
    --accent-pink: #E8CAC4;
    --soft-shadow: 0 10px 40px rgba(125, 107, 93, 0.08);
    --hover-shadow: 0 20px 60px rgba(125, 107, 93, 0.15);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    letter-spacing: 0.08em;
    font-size: 16px;
    background-color: #FBF9F8;
    overflow-x: hidden;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Base Spacing & Section Card Style */
section {
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    section {
        margin-bottom: 120px;
    }

    .mobile-only {
        display: none;
    }
}

/* --- Premium Box & Shadow Style --- */
.section-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
    padding: 3rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(125, 107, 93, 0.03);
}

@media (min-width: 768px) {
    .section-card {
        padding: 5rem 4rem;
    }
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typography Custom */
h1,
h2,
h3,
h4 {
    font-weight: 700;
}

h2,
h3,
h4 {
    font-family: 'Noto Serif JP', serif;
}

h1 {
    font-family: 'Allura', cursive;
    font-weight: 400;
}

/* Section Header Style (Text Only) */
.section-header {
    text-align: center;
    margin: 0 auto 60px !important;
    max-width: 80% !important;
    /* Adjusted from 50% for text */
}

@media (min-width: 1024px) {
    .section-header {
        margin: 0 auto 80px !important;
    }
}

.section-header .en-title {
    display: block;
    color: var(--primary-brown);
    font-family: 'Allura', cursive;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    text-transform: none;
    margin-bottom: 0rem;
    line-height: 1.2;
}

.section-header .jp-title {
    display: block;
    color: var(--text-color);
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

@media (min-width: 768px) {
    .section-header .jp-title {
        font-size: 2rem;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 1rem 2.5rem;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* CTA Background */
.cta-bg {
    background-color: var(--pale-pink);
}

/* Section Background Images */
#problems {
    position: relative;
    background-image: url('../img/intru.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 60px;
    padding-bottom: 60px;
}

#service {
    position: relative;
    background-image: url('../img/sbg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 60px;
    padding-bottom: 60px;
}

#problems::before,
#service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7); /* Soft white overlay for readability */
    z-index: 0;
}

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

/* Swiper Fade Override */
.swiper-fade .swiper-slide {
    pointer-events: none;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* Header Sticky */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.logo a {
    font-family: 'Allura', cursive;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Image Utilities */
.img-hover-box {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.img-hover-box img {
    transition: transform 1s ease;
}

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

/* Back to Top */
#backToTop {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: var(--primary-brown);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1023px) {
    #backToTop {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Hamburger Menu Overlay */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
}

#mobile-menu.active {
    transform: translateX(0);
}

#menu-overlay {
    background: rgba(0, 0, 0, 0.3);
    position: fixed;
    inset: 0;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Asymmetry / Grid Adjustments */
@media (min-width: 1024px) {
    .grid-asymmetry-4-6 {
        grid-template-columns: 4fr 6fr;
    }

    .grid-asymmetry-6-4 {
        grid-template-columns: 6fr 4fr;
    }
}

/* Image Utilities */
.img-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.spotlight {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.spotlight:hover {
    box-shadow: 0 15px 35px rgba(125, 107, 93, 0.2);
    transform: translateY(-5px);
}

.spotlight:hover .img-fill {
    transform: scale(1.08);
}

/* Table Style */
.menu-table {
    width: 100%;
    border-collapse: collapse;
}

.menu-table tr {
    border-bottom: 2px solid #F5F5F5;
}

.menu-table tr:first-child {
    border-bottom: 3px solid var(--primary-brown);
}

.menu-table td {
    padding: 1.5rem 0.5rem;
}

/* Swiper pagination/navigation custom */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-brown) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-brown) !important;
}

/* Linear Transition for Marquee effect */
.swiper-gallery .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Instagram/LINE Buttons */
.sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1023px) {
    .sns-btn-sm {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

.sns-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sns-line {
    background: linear-gradient(135deg, #06C755 0%, #05B34C 100%);
    color: white;
}

.sns-line:hover {
    background: linear-gradient(135deg, #07e661 0%, #06C755 100%);
}

.sns-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* Voice Card Premium */
.voice-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(253, 242, 240, 0.8);
    box-shadow: 0 10px 40px rgba(125, 107, 93, 0.05);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    height: 100%;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.voice-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-pink);
    opacity: 0;
    transition: all 0.4s ease;
}

.voice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(125, 107, 93, 0.12);
}

.voice-card:hover::before {
    opacity: 1;
}