:root {
    --base-font-size: 14px;
    --heading-font-size: 24px;
    --section-title-size: 52px;
    --accent-color: rgb(194 8 126);
    --karasumi-color: #141414;
    --text-color: #333;
    --font-en: 'Montserrat', sans-serif;
    --font-serif-en: 'Cormorant Garamond', serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Header height offset */
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: var(--base-font-size);
    color: var(--text-color);
    background-color: #fcfcfc;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

h1,
h2,
h3,
.font-serif {
    font-family: 'Zen Old Mincho', serif;
    font-weight: 400;
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: var(--section-title-size);
    line-height: 1.1;
}

.heading-text {
    font-size: var(--heading-font-size);
}

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

.container-custom {
    max-width: 1152px;
    /* 6xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    /* px-6 */
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container-custom {
        padding-left: 3rem;
        /* px-12 */
        padding-right: 3rem;
    }
}

.img-container {
    overflow: hidden;
    background-color: #eee;
    position: relative;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nav Animation */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Rapid Shutter Flash Animation */
@keyframes camera-flash {
    0%, 10%, 20%, 30%, 100% { 
        opacity: 0.3; 
        filter: brightness(1) blur(0px);
    }
    5%, 15%, 25% { 
        opacity: 1; 
        filter: brightness(10) blur(2px);
    }
}

.flash-text {
    animation: camera-flash 3s infinite;
}

/* Stronger Camera Flash for Images */
@keyframes camera-flash-img {
    0%, 85%, 95%, 100% { 
        filter: brightness(1) contrast(1);
    }
    90% { 
        filter: brightness(5) contrast(1.5);
    }
}

.flash-image {
    animation: camera-flash-img 4s infinite;
}

/* Melt-in Animation for Concept Text */
@keyframes melt-in {
    0% {
        opacity: 0;
        filter: blur(15px);
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.melt-in {
    opacity: 0;
    filter: blur(15px);
}

.melt-in.active {
    animation: melt-in 1.5s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

/* Gallery Slider */
.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    /* スライドアニメーションのためにabsoluteを外す */
}

.thumb-active {
    outline: 1px solid var(--accent-color);
    outline-offset: 4px;
}



/* Purple Monochrome Filter for Gallery */
.purple-mono img {
    filter: none;
    transition: filter 0.3s ease;
}

.purple-mono .thumb-active img {
    filter: grayscale(100%) sepia(100%) hue-rotate(225deg) saturate(0.5) brightness(0.9) contrast(1.1);
    /* 選択されたサムネイルだけモノクロ */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 100;
    padding: 8px 0;
    height: auto;
    min-height: 60px;
}

.header__logo {
    height: 48px; /* Significantly increased from 34px */
    width: auto;
    filter: brightness(0);
    transition: opacity 0.3s ease;
}

.nav__list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px; /* Slightly reduced for more items */
}

.nav__list a {
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
    transition: opacity 0.3s ease, color 0.3s ease;
    opacity: 0.8;
    color: #000;
}

.nav__list a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* FV Main Container */
.fv {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background-color: #fff;
}

/* Background Sliders Container */
.fv__bg-pc, .fv__bg-sp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fv__bg-pc {
    display: flex;
}

.fv__bg-sp {
    display: none;
}

.slide-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.left-container, .right-container {
    flex: 1;
}

.full-container {
    width: 100%;
}

.slide-img {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    transform: scale(1);
}

/* Ken Burns Animation */
.ken-burns {
    animation: kenBurns 10s ease-out forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

/* Color Block Transition Overlay */
.color-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 5;
}

/* Overlay for text readability */
.fv::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
}

/* FV Decorations */
.vertical-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    color: #000;
    font-family: var(--font-serif-en);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.2em;
    opacity: 0.9;
    z-index: 20;
    text-transform: lowercase;
    text-shadow: 0 0 0.5px rgba(0,0,0,0.5);
}

.left-text {
    left: 30px;
    transform: translateY(-50%) rotate(180deg);
}

.right-text {
    right: 30px;
}

.slide-number {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 20;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    font-size: 20px;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.slide-number .line {
    width: 25px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    color: #000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.scroll-indicator span {
    font-size: 10px;
    letter-spacing: 0.25em;
    font-weight: 300;
}

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

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #000;
    animation: scrollLine 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollLine {
    0% { left: -100%; }
    40%, 60% { left: 0; }
    100% { left: 100%; }
}

/* FV Content (Logo & Text) */
.fv__content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.logo-wrapper {
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Typography Reveal Animations */
.logo-overflow {
    overflow: hidden;
    padding-bottom: 10px;
}

.reveal-logo {
    width: 100%;
    height: auto;
    transform: translateY(105%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-logo.active {
    transform: translateY(0);
}

.tagline {
    font-family: var(--font-serif-en);
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: #fff;
    margin-top: 40px;
    font-style: italic;
    opacity: 0.95;
    overflow: hidden;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

/* Responsive (Smartphone) */
@media screen and (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0; /* Remove padding to use flex centering */
    }

    .header > div {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .header__logo {
        height: 32px;
        margin-bottom: 0; /* Remove margin in flex layout */
    }
    
    .nav__list {
        gap: 15px;
    }
    
    .nav__list a {
        font-size: 11px;
    }

    .fv__bg-pc {
        display: none;
    }

    .fv__bg-sp {
        display: block;
    }

    .slide-img {
        background-position: center;
    }

    .logo-wrapper {
        max-width: 320px;
        margin-bottom: 15px;
    }

    .tagline {
        font-size: 22px;
        margin-top: 30px;
    }

    .vertical-text {
        font-size: 13px;
        letter-spacing: 0.2em;
    }

    .left-text {
        left: 15px;
    }

    .right-text {
        right: 15px;
    }

    .slide-number {
        bottom: 25px;
        left: 20px;
        gap: 14px;
        font-size: 18px;
    }

    .scroll-indicator {
        bottom: 25px;
        right: 20px;
        gap: 10px;
    }

    .scroll-indicator .line {
        width: 25px;
    }
}


/* Text Marquee */
.marquee-container {
    background-color: #fff;
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: flex;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-content span {
    font-family: var(--font-en);
    font-size: 64px;
    font-weight: 200;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 100px;
    flex-shrink: 0;
}

.marquee-content span::after {
    content: "/";
    margin-left: 100px;
    opacity: 0.2;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .marquee-container {
        padding: 20px 0;
    }
    .marquee-content span {
        font-size: 32px;
        margin-right: 50px;
    }
    .marquee-content span::after {
        margin-left: 50px;
    }
}

/* Slant Lines */
.slant-line,
.slant-line-rev {
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    margin: 140px 0;
}

/* 傾斜とアニメーションの競合を解消 */
.slant-line.reveal {
    transform: rotate(-8deg) translateY(30px);
}

.slant-line.reveal.active {
    transform: rotate(-8deg) translateY(0);
}

.slant-line-rev.reveal {
    transform: rotate(8deg) translateY(30px);
}

.slant-line-rev.reveal.active {
    transform: rotate(8deg) translateY(0);
}

/* Custom Reserve Button Styles for Dark Section */
.reserve-btn-phone {
    border: 1px solid #fff;
    color: #000;
    transition: all 0.3s ease;
}

.reserve-btn-phone:hover {
    background-color: #000;
    color: var(--karasumi-color);
}

/* Scroll Animations (Default Snap) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* FV Specific Slow Animations */
.fv .reveal {
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fv .reveal-delay-2 {
    transition-delay: 0.8s;
}

/* --- Block Reveal Animation --- */
.block-reveal {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.block-reveal img {
    opacity: 0;
    transition: opacity 0s;
}

.block-reveal.active img {
    opacity: 1;
    transition: opacity 0.3s ease 0.5s; /* Fade in after block passes */
}

.block-reveal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F6D1D1; /* Default: Pink */
    transform: translateX(-101%);
    z-index: 2;
}

/* Color Variants */
.reveal-black::after { background-color: #ffffff; }
.reveal-gray::after { background-color: #888888; }
.reveal-darkpink::after { background-color: #D12D6A; }

.block-reveal.active::after {
    animation: blockRevealAnim 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes blockRevealAnim {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}


/* --- Real Continuous Gradient (Single Flow across Screen) --- */

/* Left Side (Text) - Shows the first 50% of the gradient */
.melt-gradient-text {
    background: linear-gradient(90deg, #FFE5EC, #FFB3C6, #FFC2D1, #FFFFFF, #FFE5EC);
    background-size: 200% 100%; /* 200% of the element = 100vw total */
    background-position: 0% 0%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: meltFlowLeft 15s linear infinite;
}

/* Right Side (Background) - Shows the second 50% of the gradient */
.melt-gradient-bg {
    background: linear-gradient(90deg, #FFE5EC, #FFB3C6, #FFC2D1, #FFFFFF, #FFE5EC);
    background-size: 200% 100%; /* 200% of the element = 100vw total */
    background-position: 100% 0%; /* Offset by 100% to connect with Left */
    animation: meltFlowRight 15s linear infinite;
}

@keyframes meltFlowLeft {
    0% { background-position: 0% 0%; }
    100% { background-position: -200% 0%; }
}

@keyframes meltFlowRight {
    0% { background-position: -100% 0%; }
    100% { background-position: -300% 0%; }
}

/* --- SVG Text Gradient Toggle --- */
#melt-svg-text {
    fill: url(#gradientPC);
}

@media (max-width: 768px) {
    #melt-svg-text {
        fill: url(#gradientSP);
    }
}

/* --- Real Continuous Gradient (Single Flow across Screen) from Copy (12) --- */

/* Left Side (Text) - Shows the first 50% of the gradient */
.melt-gradient-text {
    background: linear-gradient(90deg, #FFE5EC, #FFB3C6, #FFC2D1, #FFFFFF, #FFE5EC);
    background-size: 200% 100%; /* 200% of the element = 100vw total */
    background-position: 0% 0%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: meltFlowLeft 15s linear infinite;
}

/* Right Side (Background) - Shows the second 50% of the gradient */
.melt-gradient-bg {
    background: linear-gradient(90deg, #FFE5EC, #FFB3C6, #FFC2D1, #FFFFFF, #FFE5EC);
    background-size: 200% 100%; /* 200% of the element = 100vw total */
    background-position: 100% 0%; /* Offset by 100% to connect with Left */
    animation: meltFlowRight 15s linear infinite;
}

@keyframes meltFlowLeft {
    0% { background-position: 0% 0%; }
    100% { background-position: -200% 0%; }
}

@keyframes meltFlowRight {
    0% { background-position: -100% 0%; }
    100% { background-position: -300% 0%; }
}

/* --- Mobile Specific: Synchronized Start (No Offset) --- */
@media (max-width: 768px) {
    #about {
        background: none;
        animation: none;
    }

    .melt-gradient-text, .melt-gradient-bg {
        background-size: 200% 100%; /* Must be larger than 100% to animate position */
        background-position: 0% 0%;
        animation: meltFlowMobile 15s linear infinite;
    }

    @keyframes meltFlowMobile {
        0% { background-position: 0% 0%; }
        100% { background-position: -200% 0%; }
    }
}

@keyframes meltFlowSP {
    0% { background-position: 0% 0%; }
    100% { background-position: -200% 0%; }
}

@keyframes meltFlowVertical {
    0% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* --- Mobile Specific: Static View --- */
@media (max-width: 768px) {
    .melt-gradient-text, .melt-gradient-bg {
        background-position: 0% 0%;
    }
}

/* Custom Font Utility */
.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}



/* Staff Member Dividers */
.staff-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .staff-card {
        border-bottom: none;
        padding-bottom: 0;
        border-right: 1px solid #eee;
        padding-right: 2rem;
    }
    /* Remove right border on the last item of each row */
    .staff-card:nth-child(2n) {
        border-right: none;
    }
}

@media (min-width: 1024px) {
    .staff-card:nth-child(2n) {
        border-right: 1px solid #eee;
    }
    .staff-card:nth-child(3n) {
        border-right: none;
    }
}

/* Remove bottom border from the last few items on mobile */
@media (max-width: 767px) {
    .staff-card:last-child {
        border-bottom: none;
    }
}


/* Pattern 2: Auto-Flowing Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background-color: #fff;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: carousel-flow 60s linear infinite;
}

.carousel-item {
    flex-shrink: 0;
    width: 350px;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #111;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

@keyframes carousel-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Halfway point for seamless loop */
}

@media (max-width: 768px) {
    .carousel-item {
        width: 240px;
    }
    .carousel-track {
        animation: carousel-flow 40s linear infinite; /* Speed up a bit on mobile */
    }
}

/* --- MENU Dark Mode --- */
#menu {
    background-color: #fff !important;
    position: relative;
    overflow: hidden;
    clip-path: inset(0); /* iOS Parallax fix */
    color: #000;
    box-shadow: inset 0 0 20px rgba(255, 182, 193, 0.4), 
                inset 0 0 60px rgba(255, 192, 203, 0.3), 
                inset 0 0 120px rgba(255, 105, 180, 0.15);
}

#menu::before {
    content: "";
    position: fixed; /* iOS Parallax fix */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* iOS Parallax fix */
    background-image: url('../img/menu_bg.jpg');
    background-size: cover;
    background-position: top;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    will-change: transform; /* Smooth scrolling for iOS */
}

#menu .container-custom {
    position: relative;
    z-index: 1;
}

#menu h2, #menu h3, #menu p:not(.text-gray-400), #menu li {
    color: #000 !important;
}

#menu .text-gray-500, #menu .text-gray-400 {
    color: #666 !important;
}

#menu .border-gray-50 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}



/* News Section Dual Background */
.news-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out; 
    z-index: 0;
    will-change: transform;
}

.news-bg-item.active {
    opacity: 0.6;
}

@media (min-width: 769px) {
    .news-bg-item {
        opacity: 0.6 !important; /* Always show all on PC */
    }
    .news-bg-1 { left: 0; width: 25%; }
    .news-bg-2 { left: 25%; width: 25%; }
    .news-bg-3 { left: 50%; width: 25%; }
    .news-bg-4 { left: 75%; width: 25%; }
}

/* Mobile Grayscale also (removed) */
@media (max-width: 768px) {
    .news-bg-2, .news-bg-3, .news-bg-4 {
        /* filter: grayscale(100%); */
    }
}

/* Purple/Light Pink Gradient Background */
.purple-pink-gradient-bg {
    background: linear-gradient(90deg, #EADDFF, #F4D9FF, #FFD1ED, #F4D9FF, #EADDFF);
    background-size: 200% 100%;
    animation: meltFlowRight 15s linear infinite;
}

