@charset "UTF-8";

/* Variables mapped to Tera Cafe Colors (Synchronized with Tailwind) */
:root {
    --cream: #F9F6F0;
    --warm-white: #F9F6F0;
    --charcoal: #4A3E35;
    --dark-brown: #3E342F;
    --gold: #A68364;
    --light-gold: #D4C1B3;
    --red-accent: #9D402F;
    --muted: #8F8177;
    --border: rgba(166, 131, 100, 0.3);
}

/* Reset & Base */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 72px; /* For fixed header */
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--warm-white);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (max-width: 600px) {
    body {
        padding-top: 60px;
    }
}

/* Vertical Writing */
.writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

img {
    border-radius: 4px !important;
    box-shadow: none !important;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    section {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

/* -------------------------------------------------------------
   Layout Phase 2 (Existing Content Wrapper)
------------------------------------------------------------- */
@media (min-width: 1024px) {
    .layout-phase-2 {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 4rem;
        position: relative;
        z-index: 20;
    }

    .break-out-full-width {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        max-width: 100vw;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* -------------------------------------------------------------
   Header Styles
------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(249, 246, 240, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 40px;
}
.hd-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.hd-logo-bar { width: 3px; height: 40px; background: var(--red-accent); border-radius: 2px; }
.hd-logo-text { display: flex; flex-direction: column; line-height: 1; }
.hd-logo-ja { font-size: 20px; font-weight: 700; color: var(--dark-brown); letter-spacing: 0.1em; }
.hd-logo-en { font-size: 10px; letter-spacing: 0.3em; color: var(--muted); margin-top: 4px; }

.hd-nav { display: flex; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); gap: 0; }
.hd-nav a { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--charcoal); text-decoration: none; padding: 0 22px; height: 72px; display: flex; align-items: center; position: relative; transition: color 0.2s; opacity: 0.85; }
.hd-nav a::after { content: ''; position: absolute; bottom: 0; left: 22px; right: 22px; height: 2px; background: var(--red-accent); transform: scaleX(0); transition: transform 0.25s ease; }
.hd-nav a:hover, .hd-nav a.active { color: var(--red-accent); opacity: 1; }
.hd-nav a:hover::after, .hd-nav a.active::after { transform: scaleX(1); }

.hd-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.hd-btn-reserve { display: flex; align-items: center; gap: 8px; padding: 0 22px; height: 40px; background: var(--red-accent); color: var(--cream); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; border-radius: 40px; transition: background 0.25s, transform 0.2s; white-space: nowrap; }
.hd-btn-reserve:hover { background: var(--gold); color: var(--cream); transform: translateY(-1px); }
.hd-btn-insta { display: flex; align-items: center; gap: 8px; padding: 0 18px; height: 40px; border: 1.5px solid var(--red-accent); color: var(--red-accent); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; border-radius: 40px; transition: background 0.25s, color 0.25s, transform 0.2s; white-space: nowrap; }
.hd-btn-insta:hover { background: var(--red-accent); color: var(--cream); transform: translateY(-1px); }

.hd-hamburger { display: none; background: transparent; border: none; cursor: pointer; width: 32px; height: 32px; position: relative; z-index: 201; margin-left: auto; padding: 0; }
.hd-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--dark-brown); position: absolute; left: 4px; transition: transform 0.35s ease, opacity 0.25s ease; transform-origin: center; }
.hd-hamburger span:nth-child(1) { top: 8px; } .hd-hamburger span:nth-child(2) { top: 15px; } .hd-hamburger span:nth-child(3) { top: 22px; }
.hd-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hd-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-menu-overlay { position: fixed; inset: 0; background: rgba(249, 246, 240, 0.98); z-index: 190; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.sp-menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.sp-menu-inner { text-align: center; padding: 40px 32px; width: 100%;}
.sp-menu-link { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--dark-brown); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--border); display: block; transition: color 0.2s; }

@media (max-width: 900px) {
    .hd-nav { display: none; }
    .site-header { padding: 0 20px; }
}
@media (max-width: 600px) {
    .site-header { height: 60px; padding: 0 16px; }
    .hd-logo-ja { font-size: 16px; }
    .hd-logo-en, .hd-actions { display: none; }
    .hd-hamburger { display: block; }
}

/* -------------------------------------------------------------
   FV Styles
------------------------------------------------------------- */
.fv { position: relative; width: 100%; min-height: calc(100vh - 72px); background: var(--warm-white); overflow: hidden; display: flex; flex-direction: column; }
.petal { position: absolute; background: rgba(157, 64, 47, 0.12); border-radius: 50% 0 50% 0; pointer-events: none; animation: floatPetal 8s ease-in-out infinite; }
.petal:nth-child(1) { width: 28px; height: 28px; top: 12%; left: 8%; animation-delay: 0s; }
.petal:nth-child(2) { width: 18px; height: 18px; top: 30%; left: 22%; animation-delay: 1.5s; }
.petal:nth-child(3) { width: 22px; height: 22px; top: 55%; left: 6%; animation-delay: 3s; }
.petal:nth-child(4) { width: 16px; height: 16px; top: 75%; left: 18%; animation-delay: 2s; }
.petal:nth-child(5) { width: 24px; height: 24px; top: 20%; right: 16%; animation-delay: 1s; }
.petal:nth-child(6) { width: 14px; height: 14px; top: 60%; right: 8%; animation-delay: 3.5s; }
@keyframes floatPetal { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; } 50% { transform: translateY(-14px) rotate(15deg); opacity: 1; } }

.fv-body { position: relative; flex: 1; display: grid; grid-template-columns: 200px 1fr 300px; padding: 0 80px 40px 56px; align-items: center; min-height: calc(100vh - 72px); z-index: 1; }
.fv-sp-text { display: contents; }
.fv-left-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; height: 100%; padding-top: 60px; animation: fadeIn 1.2s 0.3s both; position: relative; z-index: 15; pointer-events: none; }
.fv-vertical-copy { writing-mode: vertical-rl; font-size: 16px; font-weight: 500; line-height: 2.2; letter-spacing: 0.15em; color: var(--dark-brown); margin-left: 24px; }
.fv-right-col { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; height: 100%; padding-left: 24px; padding-bottom: 80px; animation: fadeIn 1.2s 0.5s both; position: relative; z-index: 15; pointer-events: none; }
.fv-catchcopy-wrap { display: flex; align-items: flex-start; gap: 0; justify-content: flex-end; padding: 24px 0; }
.fv-catch-border { width: 2px; background: var(--red-accent); align-self: stretch; margin-right: 24px; opacity: 0.4; }
.fv-catch-lines { display: flex; gap: 14px; align-items: flex-start; }
.fv-catch-line { writing-mode: vertical-rl; font-weight: 700; line-height: 1.1; letter-spacing: 0.08em; color: var(--dark-brown); }
.fv-catch-line.large { font-size: clamp(40px, 5vw, 62px); }
.fv-catch-line.medium { font-size: clamp(32px, 4vw, 50px); }

.fv-cards-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.fv-card { position: absolute; overflow: hidden; pointer-events: auto; transition: top 1s cubic-bezier(0.77, 0, 0.175, 1), left 1s cubic-bezier(0.77, 0, 0.175, 1), width 1s cubic-bezier(0.77, 0, 0.175, 1), height 1s cubic-bezier(0.77, 0, 0.175, 1), border-radius 1s ease, box-shadow 1s ease, opacity 0.6s ease; will-change: top, left, width, height, opacity; }
.fv-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-card.pos-center { top: 0; left: 0; width: 700px; height: 540px; border-radius: 28px; box-shadow: 8px 24px 64px rgba(0, 0, 0, 0.15); z-index: 4; opacity: 1; }
.fv-card.pos-center img { transform: scale(1.1); transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; }
.fv-card.pos-topright { top: 56px; left: calc(100% - clamp(155px, 13vw, 195px) - 120px); width: clamp(145px, 13vw, 195px); height: clamp(170px, 15vw, 230px); border-radius: 16px; box-shadow: 4px 10px 28px rgba(0, 0, 0, 0.1); z-index: 4; opacity: 1; }
.fv-card.pos-topright img { transform: scale(1); transition: transform 1s ease !important; }
.fv-card.pos-botleft { top: calc(100% - clamp(170px, 15vw, 220px) - 40px); left: 28px; width: clamp(135px, 12vw, 178px); height: clamp(160px, 14vw, 210px); border-radius: 16px; box-shadow: 4px 10px 28px rgba(0, 0, 0, 0.1); z-index: 4; opacity: 1; }
.fv-card.pos-botleft img { transform: scale(1); transition: transform 1s ease !important; }
.fv-card.pos-hidden { top: 56px; left: calc(100% - clamp(155px, 13vw, 195px) - 120px); width: clamp(145px, 13vw, 195px); height: clamp(170px, 15vw, 230px); border-radius: 16px; opacity: 0; z-index: 1; pointer-events: none; }

.fv-dot-row { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 20; pointer-events: auto; }
.fv-sdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(91, 75, 67, 0.2); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.fv-sdot.active { background: var(--red-accent); transform: scale(1.5); }

@media (max-width: 600px) {
    .fv { min-height: auto; overflow: hidden; background: var(--warm-white); }
    .fv-body { display: flex; flex-direction: column; padding: 0; align-items: stretch; position: relative; min-height: 0; }
    #fvCardsLayer { display: none !important; }
    #spSliderWrap { position: relative !important; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; margin-top: -20px; }
    .fv-sp-text { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; padding: 20px 20px 10px; gap: 16px; background: var(--warm-white); position: relative; z-index: 10; }
    .fv-left-text { padding-top: 0; height: auto; flex-shrink: 0; }
    .fv-vertical-copy { font-size: 11px; letter-spacing: 0.18em; line-height: 2; margin-left: 0; }
    .fv-right-col { align-items: flex-end; padding: 0; height: auto; flex: 1; }
    .fv-catch-border { display: none; }
    .fv-catch-lines { gap: 6px; }
    .fv-catch-line.large { font-size: clamp(26px, 7vw, 36px); }
    .fv-catch-line.medium { font-size: clamp(20px, 5vw, 28px); }
    .fv-dot-row { bottom: 8px !important; }
    .petal:nth-child(n+4) { display: none; }
    .fv-center-spacer { display: none; }
}

/* -------------------------------------------------------------
   ABOUT (CONCEPT) Styles
------------------------------------------------------------- */
.concept { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; padding: 0; background: #FFFFFF; margin-bottom: 0;}
.concept-image { position: relative; overflow: hidden; }
.concept-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.concept-image:hover img { transform: scale(1.04); }
.concept-text { padding: 80px 72px; display: flex; flex-direction: column; justify-content: center; }
.section-label { font-size: 10px; letter-spacing: 0.6em; color: var(--gold); margin-bottom: 16px; display: block; }
.section-title { font-size: clamp(24px, 3.5vw, 38px); font-weight: 700; color: var(--dark-brown); line-height: 1.5; letter-spacing: 0.08em; }
.divider { width: 48px; height: 1px; background: var(--gold); margin: 24px 0; }
.section-desc { font-size: 16px; line-height: 2; color: var(--charcoal); letter-spacing: 0.06em; max-width: 500px; margin-top: 20px; }

@media (max-width: 900px) {
    .concept { grid-template-columns: 1fr; }
    .concept-image { height: 300px; }
    .concept-text { padding: 48px 40px; }
}
@media (max-width: 600px) {
    .concept-image { height: 260px; }
    .concept-text { padding: 40px 24px; }
    .section-title { font-size: clamp(22px, 6vw, 32px); }
    .section-desc { font-size: 14px; }
    .sp-only { display: block; }
}

/* -------------------------------------------------------------
   Animations & Reveals
------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.fade-in-up { opacity: 0; animation-fill-mode: forwards; }
.fade-in-valid { animation: fadeInUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-100 { animation-delay: 0.1s; }

/* -------------------------------------------------------------
   MESSAGE SECTION
------------------------------------------------------------- */
#message {
    background-image: linear-gradient(rgba(249, 246, 240, 0.85), rgba(249, 246, 240, 0.85)), url('../img/message_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #message {
        background-attachment: scroll; /* Mobile fix */
    }
}

/* -------------------------------------------------------------
   COMMITMENT (SERVICE) BG ANIMATION
------------------------------------------------------------- */
.zen-mist-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.zen-mist-svg {
    width: 200%;
    height: 100%;
    animation: drift 35s linear infinite;
    opacity: 0.8;
}
@keyframes drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------
   FALLING LEAVES ANIMATION
------------------------------------------------------------- */
.falling-leaves-container {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 120%;
    pointer-events: none;
    z-index: 1;
}

.leaf {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--gold);
    border-radius: 80% 0 55% 50% / 80% 0 55% 50%;
    opacity: 0.15;
    animation: fall linear infinite, sway ease-in-out infinite;
}

.leaf-1 { left: 10%; width: 20px; height: 20px; animation-duration: 12s, 4s; animation-delay: 0s, 0s; }
.leaf-2 { left: 35%; width: 24px; height: 24px; animation-duration: 15s, 5s; animation-delay: 2s, 1s; opacity: 0.1; }
.leaf-3 { left: 60%; width: 18px; height: 18px; animation-duration: 10s, 3.5s; animation-delay: 4s, 0.5s; }
.leaf-4 { left: 80%; width: 22px; height: 22px; animation-duration: 18s, 6s; animation-delay: 1s, 2s; opacity: 0.12; }
.leaf-5 { left: 95%; width: 16px; height: 16px; animation-duration: 14s, 4.5s; animation-delay: 3s, 1.5s; }

@keyframes fall {
    0% { top: -50px; }
    100% { top: 100%; }
}

@keyframes sway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(40px) rotate(45deg); }
}

/* -------------------------------------------------------------
   VOICE (REVIEWS) STYLES
------------------------------------------------------------- */
.voice-card {
    transition: all 0.3s ease;
}
.voice-content-wrap {
    max-height: none; /* No restriction */
    overflow: visible;
    position: relative;
}

::selection { background: var(--red-accent); color: #fff; }

/* PC font-size adjustments */
@media (min-width: 768px) {
    .text-sm {
        font-size: 16px !important;
    }
}

@media (min-width: 1024px) {
    .lg\:text-lg {
        font-size: 16px !important;
    }
}

/* SP section adjustments */
@media (max-width: 767px) {
    #service p {
        font-size: 14px !important;
    }
    #recommend .text-base {
        font-size: 14px !important;
    }
    #message p {
        font-size: 14px !important;
    }
    #access .tracking-wider {
        font-size: 14px !important;
    }
    .p-8 {
        padding: 1.5rem !important;
    }
}
