﻿/* CSS Reset & Core */
:root {
    --primary-beige: #f9f7f2;
    --accent-red: #9c3d3d;
    --accent-green: #2d6a4f;
    --onzs-dark: #2c2c2c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 閭梧勹繧堤區縺ｫ螟画峩 */
body {
    background-color: #ffffff;
    color: var(--onzs-dark);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    user-select: none;
}

/* FV Section */
.fv-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    overflow: hidden;
    padding: 0;
}

.fv-container {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45% 55%;
}

.fv-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 110px 8px 60px;
    /* fvbg.png 繧貞ｷｦ繝代ロ繝ｫ閭梧勹縺ｫ */
    background-image: url('img/fvbg.png');
    background-size: cover;
    background-position: left top;
    background-color: #f8f7f3;
    /* 蜊企乗・繝吶・繧ｸ繝･繧ｪ繝ｼ繝舌・繝ｬ繧､ */
    isolation: isolate;
}

.fv-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 247, 243, 0.78);
    z-index: 0;
}

/* 蟾ｦ蜿ｳ縺ｮ蠅・阜縺ｫ繧､繧ｿ繝ｪ繧｢蝗ｽ譌励き繝ｩ繝ｼ縺ｮ郢ｰ繧願ｿ斐＠邵槭・繝ｼ繝繝ｼ */
.fv-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 12px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        #2d6a4f 0px,
        #2d6a4f 14px,
        #ffffff 14px,
        #ffffff 28px,
        #ce2b37 28px,
        #ce2b37 42px
    );
    z-index: 10;
}

.fv-left-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0 16px 0 20px;
    text-align: center;
}

/* 閭梧勹繝・さ繝ｬ繝ｼ繧ｷ繝ｧ繝ｳ繝・く繧ｹ繝茨ｼ・asino・・*/
.fv-bg-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Damion', cursive;
    font-size: clamp(7rem, 22vw, 16rem);
    color: rgba(45, 106, 79, 0.13);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    line-height: 1;
    letter-spacing: -0.02em;
    top: auto;
    bottom: auto;
}

/* 繧｢繧､繧ｳ繝ｳ逕ｻ蜒・*/
.fv-icon-img {
    display: block;
    width: min(100%, 72px);
    height: auto;
    margin: 0 auto 8px;
    object-fit: contain;
}

.fv-logo-image {
    display: block;
    width: min(100%, 300px);
    margin: 0 auto 32px;
}

.fv-catch {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.75;
    color: var(--onzs-dark);
    letter-spacing: 0.12em;
    margin-bottom: 34px;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    padding-bottom: 20px;
    white-space: nowrap;
}

.fv-catch::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, #2d6a4f 33%, #ffffff 33%, #ffffff 66%, #ce2b37 66%);
    border-radius: 2px;
}

.fv-catch-line {
    display: block;
}

.fv-points {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.fv-point {
    width: 128px;
    height: 128px;
    border: 2px solid rgba(45, 106, 79, 0.7);
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 14px;
    color: var(--accent-green);
    background: #f5c842;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.fv-point--accent {
    background: #ce2b37;
    border-color: #ce2b37;
    color: #ffffff;
}

.fv-right {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* FV Swiper */
.fv-swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

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

.fv-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 1024px) {
    .fv-container {
        grid-template-columns: 45% 55%;
    }

    .fv-left {
        padding-inline: 6px;
    }
}

@media (max-width: 768px) {
    .fv-section {
        min-height: auto;
    }

    .fv-container {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .fv-left {
        min-height: auto;
        padding: 100px 6px 42px;
    }

    .fv-logo-image {
        width: min(68vw, 250px);
        margin-bottom: 24px;
    }

    .fv-right {
        min-height: 52vh;
    }

    .fv-main-image {
        object-position: center;
    }

    .fv-icon-img {
        width: 44px;
        margin-bottom: 6px;
    }

    .fv-point {
        width: 100px;
        height: 100px;
        font-size: 12px;
        letter-spacing: 0;
        padding: 8px;
        line-height: 1.45;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    /* SP 縺ｧ縺ｯ蠅・阜邵槭ｒ髱櫁｡ｨ遉ｺ */
    .fv-left::after {
        display: none;
    }
}

/* Section Titles with Italian Colors Underline */
.section-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
}

.section-title h2 {
    color: var(--onzs-dark);
    position: relative;
}

/* 繧､繧ｿ繝ｪ繧｢繝ｳ繧ｫ繝ｩ繝ｼ縺ｮ荳狗ｷ・*/
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -27px;
    left: 50%;
    width: 60px;
    height: 11px;
    background: linear-gradient(to right, #2d6a4f 33%, #ffffff 33%, #ffffff 66%, #9c3d3d 66%);
    transform: translateX(-50%);
}

/* Header 窶・蟶ｸ譎りレ譎ｯ陦ｨ遉ｺ */
#header {
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Scroll Animation */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fixed-background sections must not have transforms applied. */
.has-fixed-bg.scroll-fade-up,
.has-fixed-bg.scroll-fade-up.is-visible {
    transform: none !important;
}

#service {
    background-image: url('img/servicebg.jpeg') !important;
    background-attachment: fixed !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#menu {
    background-image: url('img/menubg.png') !important;
    background-attachment: fixed !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Back to top */
#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* Menu Links */
.menu-link:hover::after {
    width: 100%;
}

main {
    padding-bottom: 0;
}

.access-map {
    height: 500px;
}

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

@media (max-width: 767px) {
    body {
        background-color: rgb(212, 72, 72);
    }

    .site-footer {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .access-map {
        height: 520px;
        min-height: 520px;
    }
}

/* SP Fixed Background */
@media (max-width: 767px),
(max-width: 1024px) and (hover: none) and (pointer: coarse) {
    /*
     * 驥崎ｦ・ transform繧呈戟縺､陲ｫ蜈郁ｦ∫ｴ縺ｮ荳ｭ縺ｧ縺ｯ position: fixed 縺後後ン繝･繝ｼ繝昴・繝亥崋螳壹阪〒縺ｪ縺・     * 縲後◎縺ｮ隕∫ｴ蜀・崋螳壹阪↓縺ｪ繧九・縺､縺ｮ髢｢騾｣繧ｨ繝ｩ繝ｼ繧貞酔譎ゆｿｮ豁｣縺励∪縺吶・     * (1) scroll-fade-up 縺ｮ transform 繧堤┌蜉ｹ蛹問・ position:fixed縺梧ｭ｣蟶ｸ蜍穂ｽ懊☆繧・     * (2) overflow:hidden 繧呈崛縺医ｋ 竊・逍台ｼｼ隕∫ｴ縺後け繝ｪ繝・・縺輔ｌ縺ｪ縺・     */

    /* transform繧剃ｽｿ繧上★ opacity縺ｮ縺ｿ縺ｧ繝輔ぉ繝ｼ繝峨☆繧・*/
    .has-fixed-bg.scroll-fade-up {
        transform: none !important;
        transition: opacity 0.8s ease-out !important;
    }

    .has-fixed-bg.scroll-fade-up.is-visible {
        transform: none !important;
    }

    #service.has-fixed-bg,
    #menu.has-fixed-bg {
        position: relative;
        background: none !important;
        background-attachment: scroll !important;
        isolation: isolate;
        -webkit-clip-path: inset(0);
        clip-path: inset(0);
    }

    .has-fixed-bg::before {
        content: '';
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 0;
        pointer-events: none;
        background-image: var(--bg-img);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .has-fixed-bg > * {
        position: relative;
        z-index: 1;
    }
}

