html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Serif JP', serif;
    user-select: none;
    -webkit-user-select: none;
    letter-spacing: 0.05em;
}

/* Custom Animations */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-1 {
    background: linear-gradient(-45deg, #e0eaf5, #cfdef3, #e6f0fa, #ffffff);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

.bg-gradient-2 {
    background: linear-gradient(-45deg, #f0f4f8, #d9e2ec, #bcccdc, #f8fafc);
    background-size: 400% 400%;
    animation: gradientMove 18s ease infinite;
}

.wow-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wow-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-infinite-scroll {
    animation: infiniteScroll 60s linear infinite;
    display: flex;
    width: max-content;
}

.animate-infinite-scroll:hover {
    animation-play-state: paused;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.text-shine {
    background: linear-gradient(to right, rgba(0,128,0,0.5) 20%, #ffa500 40%, #ffa500 60%, rgba(0,128,0,0.5) 80%);
    background-size: 200% auto;
    color: rgba(0,128,0,0.5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hover-glow {
    transition: all 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 20px 40px -15px rgba(30, 60, 114, 0.2);
    transform: translateY(-8px);
}

/* Fix for no-copy */
.no-copy {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* --- Craftsman (A案：職人・信頼) Styles --- */
.font-serif-title {
    font-family: 'Noto Serif JP', serif;
}

/* 職人の格子や看板をイメージした上品な和モダン枠飾り */
.heading-craftsman {
    font-family: 'Noto Serif JP', serif;
    display: inline-block;
    position: relative;
    padding: 0.5rem 2rem;
    letter-spacing: 0.05em;
}


/* 技術職人の手仕事を表現した上品なボタン（少し丸みを持たせ影を付ける） */
.btn-craftsman-cta {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-craftsman-cta::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: all 0.3s ease;
}

.btn-craftsman-cta:hover::before {
    inset: 1px;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-craftsman-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn-craftsman-cta:hover::after {
    left: 150%;
    transition: all 0.75s ease-in-out;
}

/* 建築設計図を連想させる緻密な極細格子・ドット背景 */
.bg-subtle-grid {
    background-image: linear-gradient(rgba(30, 60, 114, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 60, 114, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
}

.bg-subtle-dot {
    background-image: radial-gradient(rgba(30, 60, 114, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* 和紙風テクスチャ */
.bg-washi {
    background-color: #e8f5e9;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
}
