@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Noto+Serif+JP:wght@700;900&display=swap');

:root {
    --color-main: #4a4a4a;
    /* sosinDark */
    --color-text: #4a4a4a;
    --color-bg-white: #fdfbf7;
    /* sosinBeige */
    --color-bg-light: #e6f7f4;
    /* sosinLight */
    --color-accent: #66cdaa;
    /* sosinGreen */
    --color-yellow: #e9c46a;
    /* sosinYellow */
    --color-orange: #e76f51;
    /* sosinOrange */
    --font-sans: 'Noto Sans JP', sans-serif;
}

html,
body {
    overflow-x: hidden;
}

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

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

/* 親しみやすいカードデザイン */
.service-card {
    position: relative;
    background: #ffffff;
    border: 3px solid var(--color-bg-light);
    border-radius: 16px !important;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(102, 205, 170, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 205, 170, 0.25);
}

.service-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 70px;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.15;
    z-index: 5;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-sans);
    color: var(--color-main);
    letter-spacing: 0.05em;
    font-weight: 700;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (min-width: 1024px) {
    section {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

/* Header Tailwind */


/* FV Stage */
.fv {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    height: calc(100dvh - 90px);
    height: calc(100svh - 90px);
    min-height: 460px;
    background-color: var(--color-bg-white);
    background-image: url('../img/fvbg.png');
    /* washi background */
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    overflow: hidden;
    margin-top: 90px;
}

@media (min-width: 768px) {
    .fv {
        height: calc(100vh - 90px);
        height: calc(100dvh - 90px);
        min-height: 700px;
        background-attachment: fixed;
    }
}

/* FV Copy Box for Mobile & Safari compatibility */
.fv-copy-box {
    position: absolute;
    bottom: 80px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
    -webkit-animation: modalFadeIn 1.2s ease-out forwards 0.2s;
    animation: modalFadeIn 1.2s ease-out forwards 0.2s;
    opacity: 1;
}

@media (min-width: 768px) {
    .fv-copy-box {
        bottom: 6%;
        left: 0;
        right: auto;
        width: auto;
        padding: 16px;
        border-radius: 2px;
    }
}

.fv-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

@media (min-width: 768px) {
    .fv-stage {
        width: 91%;
        height: 85%;
    }
}

.fv-stage-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
}

.fv-stage-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.fv-swiper {
    width: 100%;
    height: 100%;
}

.fv-logo-box {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding: 30px 40px;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .fv-logo-box {
        display: flex;
        bottom: 5%;
        right: 5%;
    }
}

.fv-logo-box img {
    height: 70px;
    object-fit: contain;
}

.fv-copy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    color: #FFFFFF;
    pointer-events: none;
}

.copy-main-text {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Floating Right Buttons (Desktop PC Only) */
.float-right,
.float-btn {
    display: none !important;
}

@media (min-width: 1024px) {
    .float-right {
        position: fixed;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 300;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }

    .float-btn {
        width: 60px;
        padding: 12px 0;
        background: var(--color-accent);
        color: #FFFFFF;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(102, 205, 170, 0.3);
        transition: all .3s ease;
        border: 2px solid #fff;
    }
}


.float-btn:hover {
    background: var(--color-orange);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 16px rgba(244, 162, 97, 0.4);
}

.float-btn-text {
    writing-mode: vertical-rl;
    font-size: 15px;
    margin-top: 8px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Responsive Header Adjustments removed */

/* Section Headings */
.colmo-header {
    width: 100%;
    margin: 0 auto 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .colmo-header {
        margin-bottom: 45px;
    }
}

/* Buttons */
.nui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 25px;
    border: 3px solid var(--color-accent);
    color: var(--color-accent);
    background: #ffffff;
    font-size: 14px;
    letter-spacing: 0.1em;
    font-weight: 900;
    border-radius: 999px !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 var(--color-accent);
    text-decoration: none;
}

@media (min-width: 768px) {
    .nui-btn {
        font-size: 16px;
    }
}

.nui-btn:hover {
    background: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--color-accent);
}

/* CTA SP */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(74, 74, 74, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: #ffffff;
}

.bottom-cta a {
    flex: 1;
    text-align: center;
    padding: 1.2rem 0;
    font-size: 14px;
    font-weight: 900;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-tel {
    background-color: var(--color-accent);
}

.cta-web {
    background-color: var(--color-orange);
}

/* Responsive Grid Helper */
.asym-grid-40-60 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.asym-grid-60-40 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .asym-grid-40-60 {
        grid-template-columns: 4.5fr 5.5fr;
        gap: 80px;
    }

    .asym-grid-60-40 {
        grid-template-columns: 5.5fr 4.5fr;
        gap: 80px;
    }
}

/* Drawer */
#drawer {
    background: var(--color-bg-white);
    visibility: hidden;
    pointer-events: none;
}

#drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

#drawer a {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scroll Top Button */
#scrollTop {
    background: var(--color-accent);
    border-radius: 50% !important;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(102, 205, 170, 0.3);
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    transform: translateX(-40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-zoom {
    transform: scale(0.85);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.animate-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    transition: stroke-dashoffset 0.6s ease-out 0.4s;
}

.reveal.active .animate-check {
    stroke-dashoffset: 0;
}

/* カスタムの画像プレースホルダー枠 */
.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background-color: var(--color-bg-light);
    border: 2px dashed var(--color-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

/* Lightbox Modal */
.zoomable-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: zoom-in;
}

.zoomable-img:hover {
    transform: scale(1.02);
    opacity: 0.95;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 74, 74, 0.95);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 16px !important;
    border: 8px solid #fff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@-webkit-keyframes modalFadeIn {
    from {
        opacity: 0;
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/* Swiper Hardware Acceleration & Performance Fix for iOS Safari */
.price-swiper,
.fv-swiper {
    touch-action: pan-y;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.swiper-wrapper {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.swiper-slide {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, opacity;
}

.swiper-slide img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Sticky Background Images for SP (iOS Safari) and Desktop */
.bg-fixed {
    position: relative;
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
}

@supports (-webkit-touch-callout: none) {
    .bg-fixed {
        background-attachment: scroll !important;
        position: relative !important;
    }

    #about::before,
    #works::before {
        content: '';
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: url('../img/price-bg.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        z-index: 0;
        will-change: transform;
        pointer-events: none;
    }

    #access::before {
        content: '';
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: url('../img/fv01.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        z-index: 0;
        will-change: transform;
        pointer-events: none;
    }
}

/* SP specific overrides */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px !important;
    }

    menu, ol, ul {
        padding-left: 0px !important;
    }

    .p-8, .p-6, .p-4, .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .gap-6 {
        gap: 0.5rem !important;
    }
}