/*
Theme Name: Daylu Original Theme
Author: Assistant
Description: Custom theme for Daylu Hair Salon (Redesign).
Version: 2.0.0
Text Domain: daylu
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&family=Noto+Serif+JP:wght@300;400&family=Cormorant+Garamond:wght@300;400;600&display=swap');

:root {
    --color-bg-body: #ffffff;
    --color-text-main: #333333;
    --color-text-light: #888888;
    --color-border: #e0e0e0;
    --color-accent: #000000;

    --font-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    --width-container: 1080px;
    --spacing-section: 60px;
    /* Halved from 120px */
    --spacing-section-sp: 40px;
    /* Halved from 80px */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.8;
    font-size: 15px;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #000;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #C5A059;
    /* Gold color */
    margin: 15px auto 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 15px 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-align: center;
    border: 1px solid #000;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #000;
    padding: 12px 40px;
    border: 1px solid #000;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    /* Safe padding */
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Ensure no horizontal scroll on body */
body,
html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

.site-logo {
    display: block;
    max-width: 150px;
}

.site-logo img {
    height: auto;
    max-height: 50px;
    width: auto;
}

.site-branding a.site-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    letter-spacing: 0.1em;
    color: #000;
    text-decoration: none;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap to fit better */
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Instagram Icon */
.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #000;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    color: #E1306C;
    transform: scale(1.1);
    opacity: 1;
}

.instagram-link svg {
    width: 20px;
    height: 20px;
}

/* Phone Icon */
.phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #000;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #000;
    transform: scale(1.1);
    opacity: 0.7;
}

.phone-link svg {
    width: 22px;
    height: 22px;
}

/* Hamburger Button - ALWAYS VISIBLE */
.hamburger-toggle {
    display: flex !important;
    /* Changed from none to flex - always visible */
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    transition: all 0.3s;
}

.hamburger-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-toggle.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Navigation - Drawer Style for ALL devices */
/* Navigation - Full Screen Overlay Style (Robust Fix) */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 9999;
    /* Boosted Z-Index */
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure hamburger is above menu */
.hamburger-toggle {
    z-index: 10000 !important;
}

.nav-menu-wrapper {
    padding: 80px 30px 30px;
}

.nav-menu-wrapper ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items */
    gap: 30px;
    /* More spacing for full screen */
    width: 100%;
}



.main-navigation a {
    font-family: var(--font-serif);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    white-space: nowrap;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #000;
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Body overlay when menu open */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}



/* Hero Slider Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Hero Slider - Swiper */
.hero-swiper {
    width: 100%;
    height: 100%;
    /* Must match parent .hero-section height */
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

/* Ensure swiper-slide behaves correctly */
.swiper-slide {
    height: 100%;
    width: 100%;
}

/* Hide fallback native slider if present */
.hero-slider {
    display: none;
}

/* Show at least something if JS fails */
.hero-slide:first-child {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 10;
}

.hero-catch {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #fff;
    line-height: 2;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 40px;
}


/* Concept */
.section-concept {
    padding: var(--spacing-section) 0;
}

.concept-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.concept-image {
    flex: 1;
}

.concept-image img {
    width: 100%;
    height: auto;
    filter: brightness(0.95);
}

.concept-text-area {
    flex: 1;
    padding: 40px;
}

.concept-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: var(--font-serif);
}

.concept-lead {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 2;
}

.concept-body {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Menu List Style */
.section-menu {
    padding: var(--spacing-section) 0;
    background-color: #fbfbfb;
    /* Very subtle grey */
}

/* New Category based layout */
.menu-category-block {
    margin-bottom: 60px;
}

.menu-category-title {
    text-align: center;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    display: inline-block;
    padding-bottom: 10px;
    min-width: 200px;
}

.menu-dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
}

.menu-dl-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.menu-dt {
    font-weight: 500;
    font-size: 1rem;
}

.menu-dd {
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

.menu-desc-small {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
    font-weight: normal;
}

/* Dynamic Menu Styles */
.menu-item-wrap {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
}

.menu-item-wrap .menu-dl-row {
    border-bottom: none;
    padding-bottom: 10px;
    /* Reduced padding since wrapper handles it */
}

/* Adjust button placement */
.menu-res-btn {
    padding-bottom: 20px;
}

/* Gallery - Minimal Grid */
.section-gallery {
    padding: var(--spacing-section) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* Tighter gap */
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    /* Square */
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Staff */
.section-staff {
    padding: var(--spacing-section) 0;
    background-color: #fff;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px 20px;
}

.staff-card {
    text-align: center;
}

.staff-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 20px;
}

.staff-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.staff-card:hover .staff-thumb img {
    filter: grayscale(0%);
}

.staff-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.staff-pos {
    font-size: 0.8rem;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

/* Blog Section (NEW) */
.section-blog {
    padding: var(--spacing-section) 0;
    background-color: #f9f9f9;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    font-size: 0.8rem;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #000;
}

.blog-title a:hover {
    opacity: 0.7;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Access */
.section-access {
    padding-bottom: 0;
    /* Full width map maybe? */
}

.access-bg-area {
    position: relative;
    padding: var(--spacing-section) 0;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.access-bg-overlay {
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.access-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 80px;
}

.access-info-box {
    text-align: left;
}

.access-info-box h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: var(--font-serif);
}

.access-info-box p {
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 80px 0 30px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 40px;
    display: block;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-nav a {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.1em;
}

.copyright {
    color: #555;
    font-size: 0.7rem;
}

/* Close Button in Menu */
.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 3rem;
    color: #000;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
}

/* Access Map Spacing */
.section-access {
    padding-bottom: 120px;
    /* Increased spacing before footer */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-access {
        padding-bottom: 80px;
    }

    .menu-close-btn {
        top: 15px;
        right: 15px;
    }

    .site-header {
        height: 60px;
        padding: 0 5px 0 10px;
        /* Minimal padding on mobile */
    }

    .site-logo img {
        max-height: 35px;
    }

    .site-branding a.site-logo {
        font-size: 22px;
    }

    .header-right {
        gap: 10px;
    }

    .hero-section {
        height: 85vh;
        /* Increased from 66vh (approx 1.3x) */
        min-height: 600px;
        /* Increased from 450px */
    }

    .hero-catch {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .concept-inner {
        flex-direction: column;
        gap: 30px;
    }

    .concept-text-area {
        padding: 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .access-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .access-info-box {
        text-align: center;
    }
}