/* ========================================
   Common Styles for All Pages
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Shippori+Mincho+B1:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

/* ========================================
   Base HTML & Body Settings
   ======================================== */
html {
    overflow-x: hidden;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ========================================
   Color & Typography Utilities
   ======================================== */
.bg-neutral-50 {
    background-color: #EFEFEF !important;
}

.text-neutral-500 {
    color: #917A64 !important;
}

.text-neutral-800 {
    color: #383838 !important;
}

.font-serif {
    font-family: 'Shippori Mincho B1', serif;
}

.font-latin {
    font-family: 'Libre Baskerville', serif;
}

/* ========================================
   Hero & Service Styles
   ======================================== */
.hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
}

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

.service-card img {
    transition: transform 0.6s ease;
}

.service-img {
    transition: opacity 0.8s ease;
}

/* ========================================
   Navigation Link Styles
   ======================================== */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Current Page Navigation Indicator
   ======================================== */
/* スクリーンリーダー専用テキスト（視覚的に非表示） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* グローバルナビゲーション用の現在ページ表示 */
#header nav a.current-page {
    font-weight: 700;
    color: #917A64;
    border-bottom: 2px solid currentColor;
    pointer-events: none;
    cursor: default;
}

#header nav a.current-page:hover {
    opacity: 1;
}

/* モバイルナビゲーション用の現在ページ表示 */
#mobile-menu a.current-page {
    font-weight: 700;
    color: #917A64;
    background-color: rgba(145, 122, 100, 0.08);
    border-left: 4px solid currentColor;
    padding-left: calc(1em - 4px);
}

/* キーボードフォーカス時の視認性向上 */
#header nav a:focus-visible,
#mobile-menu a:focus-visible {
    outline: 2px solid #917A64;
    outline-offset: 2px;
}

#header nav a.current-page:focus-visible,
#mobile-menu a.current-page:focus-visible {
    outline-color: #917A64;
    outline-width: 3px;
}

/* ========================================
   Button Styles
   ======================================== */
/* LINE Button */
.line-button {
    background: #fff;
    border: 1px solid #D9D9D9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.line-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(6, 199, 85, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.line-button:hover {
    background: #06C755;
    border-color: #06C755;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 199, 85, 0.3);
}

.line-button:hover::before {
    width: 300px;
    height: 300px;
}

.line-button span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.line-button:hover span {
    color: #fff;
}

.line-button img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-button:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Web Reservation Button */
.web-button {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.web-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.web-button:hover {
    background: #fff;
    border-color: #fff;
    color: #383838;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}

.web-button:hover::before {
    width: 300px;
    height: 300px;
}

.web-button span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.web-button svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.web-button:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Layout Utilities
   ======================================== */
.max-w-container {
    max-width: 1920px;
}

#campaign-grid {
    list-style: none;
}

#footer-social {
    list-style: none;
}

/* ========================================
   Back to Top Button
   ======================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #917A64;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 40;
    border: none;
}

@media screen and (max-width: 768px) {
    #back-to-top {
        right: 8px;
    }
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #7A6452;
}

/* ========================================
   Header Styles
   ======================================== */
#hero-visual img {
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
}

#header {
    background: transparent;
    height: 100px;
    z-index: 70;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

#about-image img {
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
}

.service-title {
    font-size: 32px;
}

/* ========================================
   Round Button Styles
   ======================================== */
.button-round {
    font-family: 'Shippori Mincho B1', serif;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 200px;
    padding: 8px 24px;
    border: 1px solid #ECE7E1;
    border-radius: 60px;
    margin-top: 30px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.button-round::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(145, 122, 100, 0.1), transparent);
    transition: left 0.6s ease;
}

.button-round:hover {
    border-color: #917A64;
    background: rgba(145, 122, 100, 0.05);
    transform: translateX(8px);
}

.button-round:hover::before {
    left: 100%;
}

.button-round span {
    transition: transform 0.3s ease;
}

.button-round:hover span:first-child {
    transform: translateX(-4px);
}

.button-round .arrow {
    background: #ECE7E1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    width: 40px;
    height: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-round:hover .arrow {
    background: #917A64;
    transform: translateX(6px) scale(1.05);
}

.button-round:hover .arrow svg {
    stroke: #fff;
}

.button-round .arrow svg {
    transition: all 0.3s ease;
}

/* ========================================
   Hamburger Menu Styles
   ======================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 70;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #383838;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

#header.scrolled .hamburger span {
    background: #383838;
}

/* ========================================
   Mobile Menu Styles
   ======================================== */
/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
    transition: right 0.3s ease;
}

.mobile-menu-overlay.active {
    right: 0;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 60;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 120px 24px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu .nav-link {
    font-size: 14px;
    color: #383838;
    padding: 10px 0;
    border-bottom: 1px solid #EFEFEF;
}

.mobile-menu .line-button {
    margin-top: 20px;
    justify-content: center;
}

/* ========================================
   Typography & Spacing
   ======================================== */
.mv-text {
    font-size: 48px;
}

/* ========================================
   Border Radius Utilities
   ======================================== */
.rounded-4xl {
    border-radius: 2.0rem;
}

.rounded-5xl {
    border-radius: 2.5rem;
}

.rounded-6xl {
    border-radius: 3.0rem;
}

.rounded-7xl {
    border-radius: 3.5rem;
}

.rounded-8xl {
    border-radius: 4.0rem;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }

    #main-nav {
        display: none !important;
    }
}

@media (max-width: 768.9px) {
    .mv-text {
        font-size: 36px;
    }
}

@media (max-width: 425px) {
    .mv-text {
        font-size: 18px;
    }

    .rounded-8xl {
        border-radius: 2.0rem;
    }
}