:root {
    --base-font-size: 14px;
    --heading-font-size: 24px;
    --section-title-size: 52px;
    --accent-color: #586A78;
    --karasumi-color: #141414;
    --text-color: #333;
}

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;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p {
    font-size: 14px !important;
}

@media (min-width: 768px) {
    p {
        font-size: 16px !important;
    }
}

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%;
}

/* 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;
}

/* Instagram Square Buttons */
.insta-btn-square-black,
.insta-btn-square-white,
.insta-btn-square-gradient {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
}

.insta-btn-square-black {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}

.insta-btn-square-black:hover {
    background-color: transparent;
    color: #000;
}

.insta-btn-square-white {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
}

.insta-btn-square-white:hover {
    background-color: transparent;
    color: #fff;
}

.insta-btn-square-gradient {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border: none;
}

.insta-btn-square-gradient:hover {
    opacity: 0.8;
    color: #fff;
}

/* Button 15 Custom Style */
.button-15 a {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-weight: 400;
    border-top: solid 1px var(--accent-color);
    border-bottom: solid 1px var(--accent-color);
    display: block;
    position: relative;
    rotate: -6deg;
    transform: skewX(-6deg);
    box-sizing: border-box;
    max-width: 260px;
    text-align: center;
    padding: 16px;
    margin: 40px auto 24px;
    /* テキストとの間隔を40pxに調整 */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.button-15 a::before {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 20px;
    border-left: solid 1px var(--accent-color);
    top: 0;
    left: 0;
    transition: all 0.3s;
}

.button-15 a::after {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 20px;
    border-right: solid 1px var(--accent-color);
    top: 0;
    right: 0;
    transition: all 0.3s;
}

.button-15 a:hover {
    color: #fff;
    background: var(--accent-color);
    transition: all 0.3s;
}

/* 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);
    /* 選択されたサムネイルだけモノクロ */
}

/* ---- Message Section: Round Image with Stripy Border ---- */
.msg-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-img-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 5px;
    background: conic-gradient(var(--accent-color) 0deg 20deg,
            white 20deg 40deg,
            var(--accent-color) 40deg 60deg,
            white 60deg 80deg,
            var(--accent-color) 80deg 100deg,
            white 100deg 120deg,
            var(--accent-color) 120deg 140deg,
            white 140deg 160deg,
            var(--accent-color) 160deg 180deg,
            white 180deg 200deg,
            var(--accent-color) 200deg 220deg,
            white 220deg 240deg,
            var(--accent-color) 240deg 260deg,
            white 260deg 280deg,
            var(--accent-color) 280deg 300deg,
            white 300deg 320deg,
            var(--accent-color) 320deg 340deg,
            white 340deg 360deg);
    box-shadow: 0 8px 32px rgba(88, 106, 120, 0.25);
    animation: ringRotate 12s linear infinite;
    flex-shrink: 0;
}

.msg-img-ring:hover {
    animation-duration: 4s;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.msg-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    animation: ringRotateReverse 12s linear infinite;
}

.msg-img-ring:hover .msg-img-inner {
    animation-duration: 4s;
}

@keyframes ringRotateReverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.msg-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

@media (min-width: 768px) {
    .msg-img-ring {
        width: 260px;
        height: 260px;
    }
}

/* =====================
   HERO / FV SECTION
   ===================== */
.hero-split {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Fullscreen background image per slide */
.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 8s ease-out;
}

.hero-slide.active .hero-image,
.hero-slide.is-animating .hero-image {
    animation: fvKenBurns 8s ease-out forwards;
}

@keyframes fvKenBurns {
    0% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1.00);
    }
}

/* Gradient overlay - vignette style */
.fv-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.10) 40%,
            rgba(0, 0, 0, 0.10) 60%,
            rgba(0, 0, 0, 0.55) 100%);
}

/* Center content wrapper */
.hero-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

/* FV content block */
.fv-content {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    animation: fvContentIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes fvContentIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Text Logo ---- */
.fv-text-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.fv-text-logo-sub {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    margin: 0;
    text-transform: uppercase;
}

.fv-text-logo-main {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: clamp(2.6rem, 8vw, 5rem);
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.1;
}

.fv-text-logo-jp {
    font-family: 'Zen Old Mincho', serif;
    font-size: 14px;
    letter-spacing: 0.45em;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Decorative horizontal line */
.fv-deco-line {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
}

/* Main title */
.fv-main-title {
    font-family: 'Zen Old Mincho', serif;
    font-size: clamp(1.6rem, 4.5vw, 3rem);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.25em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
    margin: 0;
}

/* Sub text */
.fv-sub-text {
    font-size: 13px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* CTA row */
.fv-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

/* Both buttons: same base size */
.fv-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 16px 24px;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    white-space: nowrap;
}

.fv-cta-main {
    background: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.fv-cta-main:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.fv-cta-sub {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.fv-cta-sub:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Slide dots */
.fv-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.fv-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.fv-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Scroll indicator */
.fv-scroll-indicator {
    position: absolute;
    bottom: 28px;
    right: 32px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fv-scroll-text {
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
    writing-mode: vertical-rl;
}

.fv-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.1);
    }
}

@media (max-width: 767px) {

    /* Set layout of FV container to vertical stack */
    .hero-split {
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        background-color: #fcfcfc !important;
    }

    /* Slides container is relative and takes 45vh height */
    .hero-slides {
        position: relative !important;
        width: 100% !important;
        height: 45vh !important;
        min-height: 280px !important;
    }

    /* Hide vignette overlay so slide images are clear */
    .fv-gradient-overlay {
        display: none !important;
    }

    /* Content block goes below slides */
    .hero-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 40px 20px 48px 20px !important;
        background: #fcfcfc !important;
        display: block !important;
        inset: auto !important;
    }

    .fv-content {
        color: #333 !important;
        gap: 16px !important;
    }

    /* Change text colors to be readable on light background */
    .fv-text-logo-main {
        color: var(--accent-color) !important;
        text-shadow: none !important;
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
    }

    .fv-deco-line {
        background: rgba(88, 106, 120, 0.3) !important;
    }

    .fv-main-title {
        color: var(--karasumi-color) !important;
        text-shadow: none !important;
        font-size: 1.4rem !important;
        line-height: 1.6 !important;
        letter-spacing: 0.15em !important;
    }

    .fv-sub-text {
        color: #666 !important;
        text-shadow: none !important;
        font-size: 13px !important;
    }

    /* Slide dots styling position adjustment on SP */
    .fv-dots {
        bottom: 12px !important;
    }

    /* Adjust CTA buttons for SP */
    .fv-cta-row {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 8px !important;
    }

    .fv-cta-btn {
        width: 100% !important;
        max-width: 280px !important;
        min-width: unset !important;
        padding: 14px 20px !important;
        font-size: 13px !important;
    }

    .fv-cta-main {
        background: var(--accent-color) !important;
        color: #fff !important;
        border: 1px solid var(--accent-color) !important;
    }

    .fv-cta-main:hover {
        background: #475865 !important;
        color: #fff !important;
    }

    .fv-cta-sub {
        background: transparent !important;
        color: var(--accent-color) !important;
        border: 1px solid var(--accent-color) !important;
        backdrop-filter: none !important;
    }

    .fv-cta-sub:hover {
        background: rgba(88, 106, 120, 0.05) !important;
    }

    .fv-scroll-indicator {
        display: none !important;
    }
}

/* Top Button */
#top-button {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 50;
}

@media (max-width: 767px) {
    #top-button {
        bottom: 30px;
    }
}



/* 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: #fff;
    transition: all 0.3s ease;
}

.reserve-btn-phone:hover {
    background-color: #fff;
    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;
}

.fv .reveal-delay-3 {
    transition-delay: 1.6s;
}

/* Logo Marquee Slider */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
}

.marquee-content {
    display: flex;
    animation: marquee 80s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.marquee-content span {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 0.1em;
    padding: 0 15px;
    color: var(--text-color);
    flex-shrink: 0;
    display: inline-block;
}

@media (min-width: 768px) {
    .marquee-content span {
        font-size: 28px;
        padding: 0 25px;
    }
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Diagonal Strikethrough */
.strike-diagonal {
    position: relative;
    display: inline-block;
}

.strike-diagonal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 2px;
    background-color: #9ca3af;
    /* Tailwind gray-400 */
    transform: translateY(-50%) rotate(-15deg);
}

/* Style View (SV) Slider Premium Sizing */
#sv-slider img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    #sv-slider img {
        height: 160px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .px-8, .container-custom {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .p-8 {
        padding: 40px 10px !important;
    }
}

/* Troubles List Left-to-Right Hover BG Effect */
.trouble-card {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    background-color: #fff !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.trouble-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: var(--accent-color) !important;
    z-index: -1 !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.trouble-card:hover::before {
    transform: scaleX(1) !important;
}

.trouble-card p,
.trouble-card span {
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.trouble-card:hover p {
    color: #fff !important;
}

.trouble-card:hover span {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* Service Section Image Sizing */
#service .img-container {
    width: 100% !important;
    height: 400px !important;
    overflow: hidden !important;
}

#service .img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Gallery Thumbnail Sizing Fix */
.purple-mono .cursor-pointer {
    position: relative !important;
    overflow: hidden !important;
}

.purple-mono .cursor-pointer img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}