/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-primary: #FAF8F5;    /* 温かみのあるアイボリー */
    --color-bg-secondary: #F4EFEA;  /* やや濃い目のアースベージュ */
    --color-bg-light: #FBFBFA;      /* 非常に明るいオフホワイト */
    --color-text-primary: #3C3530;   /* ソフトダークブラウン (黒の代わり) */
    --color-text-muted: #70655E;     /* 薄いブラウン */
    --color-accent: #C4A484;         /* 上品なゴールドベージュ */
    --color-accent-dark: #A88663;    /* 濃い目のゴールドベージュ */
    --color-accent-light: #E5D5C5;   /* 淡いゴールドベージュ */
    --color-border: #E8E2DA;         /* 薄いベージュの境界線 */
    --color-white: #FFFFFF;
    --color-error: #C85A5A;          /* 落ち着いた赤 */
    --color-success: #6E8E75;        /* 落ち着いた緑 */

    /* Typography */
    --font-en: 'Cormorant Garamond', serif;
    --font-jp-serif: 'Noto Serif JP', serif;
    --font-jp-sans: 'Noto Sans JP', sans-serif;

    /* Transitions */
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-jp-sans);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Helpers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-secondary);
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.hide { display: none !important; }
.overflow-hidden { overflow: hidden; }

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-jp-serif);
    font-weight: 500;
    line-height: 1.4;
}

.section-title-wrap {
    margin-bottom: 60px;
}

.sub-title {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 400;
    font-style: italic;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
}

.section-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 164, 132, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-text-primary);
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-bg-primary);
    transform: translateY(-2px);
}

.btn-wide {
    width: 100%;
    max-width: 320px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-medium);
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background-color: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-btn {
    background-color: var(--color-text-primary);
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: 0;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
    transform-origin: left center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomOutHero 12s ease-out forwards;
}

@keyframes zoomOutHero {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 53, 48, 0.4); /* 深いブラウンオーバーレイ */
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    max-width: 800px;
}

.hero-sub {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    color: var(--color-accent-light);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 25px;
    font-family: var(--font-jp-serif);
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero-text {
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-buttons .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-text-primary);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-text {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.7);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background-color: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--color-accent);
    animation: scrollAnimation 2s infinite ease-in-out;
}

@keyframes scrollAnimation {
    0% { transform: translateY(-20px); }
    80% { transform: translateY(50px); }
    100% { transform: translateY(50px); }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: var(--transition-medium);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.feature-img-wrap {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.feature-card:hover .feature-img {
    transform: scale(1.06);
}

.feature-info {
    padding: 35px 30px;
    position: relative;
}

.feature-num {
    font-family: var(--font-en);
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-accent-light);
    position: absolute;
    top: -20px;
    right: 30px;
    background-color: var(--color-white);
    padding: 0 10px;
}

.feature-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-primary);
}

.feature-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Menu Section
   ========================================================================== */
.menu-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.menu-category {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 40px 50px;
}

.category-title {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-accent-dark);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.menu-item-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-weight: 500;
}

.menu-item-name {
    font-family: var(--font-jp-serif);
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.menu-item-price {
    font-family: var(--font-en);
    font-size: 1.25rem;
    color: var(--color-accent-dark);
    font-weight: 500;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.menu-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.access-content {
    display: grid;
    grid-template-columns: 1.1fr 1.8fr;
    gap: 50px;
    align-items: stretch;
}

.access-info-wrap {
    padding: 20px 0;
}

.salon-name-jp {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.salon-name-en {
    font-family: var(--font-en);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 35px;
    letter-spacing: 0.1em;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-list li {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.info-label i {
    font-size: 1rem;
    color: var(--color-accent);
}

.info-value {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.7;
}

.tel-link {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text-primary);
    border-bottom: 1px solid transparent;
}

.tel-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.access-map-wrap {
    width: 100%;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.access-map-wrap iframe {
    vertical-align: middle;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 60px 80px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.02);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: opacity 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.required {
    font-size: 0.75rem;
    color: var(--color-error);
    margin-left: 5px;
    background-color: rgba(200, 90, 90, 0.08);
    padding: 2px 6px;
    font-weight: normal;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    border-radius: 0;
    color: var(--color-text-primary);
}

.form-control:focus {
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(196, 164, 132, 0.1);
}

.form-control.invalid {
    border-color: var(--color-error);
    background-color: rgba(200, 90, 90, 0.01);
}

.error-message {
    font-size: 0.8rem;
    color: var(--color-error);
    margin-top: 3px;
    min-height: 18px;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233C3530' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 15px;
}

.form-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    padding-bottom: 20px;
}

.form-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.form-privacy label {
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.form-privacy .error-message {
    position: absolute;
    bottom: -5px;
    left: 0;
}

/* Success Message */
.form-success-msg {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.form-success-msg i {
    font-size: 4rem;
    color: var(--color-success);
}

.form-success-msg h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

.form-success-msg p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 450px;
    line-height: 1.8;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer {
    background-color: var(--color-text-primary);
    color: var(--color-bg-primary);
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-white);
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.7);
    line-height: 1.8;
    max-width: 400px;
}

.footer-links h4,
.footer-sns h4 {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.7);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.sns-icons {
    display: flex;
    gap: 15px;
}

.sns-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(250, 248, 245, 0.2);
    color: rgba(250, 248, 245, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.sns-icons a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 248, 245, 0.1);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(250, 248, 245, 0.4);
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
/* Scroll Reveal base state */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

/* Initial Load Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.hero-sub.fade-in-up { animation-delay: 0.2s; }
.hero-title.fade-in-up { animation-delay: 0.4s; }
.hero-text.fade-in-up { animation-delay: 0.6s; }
.hero-buttons.fade-in-up { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .features-grid {
        gap: 25px;
    }

    .feature-info {
        padding: 30px 20px;
    }

    .menu-category {
        padding: 35px 40px;
    }

    .access-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .access-map-wrap {
        height: 350px;
    }

    .access-map-wrap iframe {
        height: 100%;
    }

    .footer-grid {
        gap: 40px;
    }
}

/* Mobile Navigation Transition (max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Navigation */
    .hamburger {
        display: flex;
    }

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

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

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-primary);
        z-index: 999;
        transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex;
        justify-content: center;
        align-items: center;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.3rem;
        font-family: var(--font-jp-serif);
    }

    .nav-btn {
        padding: 12px 36px;
        font-size: 1.1rem;
    }

    /* Hero */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 1.1rem;
        letter-spacing: 0.25em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 40px;
    }

    /* Menu */
    .menu-category {
        padding: 30px 20px;
    }

    .menu-item-header {
        flex-direction: column;
        gap: 5px;
    }

    /* Contact Form */
    .contact-box {
        padding: 40px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand, .footer-desc {
        align-items: center;
        margin: 0 auto;
    }

    .footer-links ul {
        align-items: center;
    }

    .sns-icons {
        justify-content: center;
    }
}
