@charset "UTF-8";

/* ==========================================================================
   Config & Base Styles
   ========================================================================== */
:root {
    --text-color: #333333;
    --bg-color: #ffffff;
    --accent-color: #e67e22;
    /* カジュアルな和のアクセントカラー */
    --line-color: #000000;
    --section-margin-pc: 120px;
    --section-margin-sp: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-weight: 700;
}

/* ==========================================================================
   Layout & Spacing
   ========================================================================== */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-spacing {
    margin-bottom: var(--section-margin-sp);
}

@media (min-width: 1024px) {
    .section-spacing {
        margin-bottom: var(--section-margin-pc);
    }
}

/* ==========================================================================
   Section Title (Image Overlay)
   ========================================================================== */
.section-title-container {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-img {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-title-img img {
    display: none;
    /* Deleting title background */
}

.section-title-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.section-name-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    display: block;
}

@media (max-width: 767px) {
    .section-name-main {
        font-size: 1.5rem;
    }

    .section-title-container {
        margin-bottom: 40px;
    }
}

.section-title-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    transition: background-color 0.3s;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FV
   ========================================================================== */
/* ==========================================================================
   FV
   ========================================================================== */
#fv {
    width: 100%;
    margin-top: 96px; /* Adjust according to header height */
}

#fv img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    #fv {
        padding-bottom: 80px; /* Buffer space so the sticky CTA doesn't cover the bottom of the FV image */
    }
}


/* ==========================================================================
   Parallax
   ========================================================================== */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
        /* Mobile compatibility */
    }
}

/* ==========================================================================
   Components (CTA, Buttons, etc.)
   ========================================================================== */
.cta-btn {
    transition: transform 0.3s, background-color 0.3s;
}

/* ==========================================================================
   Service Section Refinement
   ========================================================================== */
#service,
#tv {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#service {
    background-color: #fdfcf8;
}

#tv {
    background-color: #faf9f6;
}

#service::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.02) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.service-item-wrapper {
    position: relative;
    z-index: 1;
}

.service-item-num {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(230, 126, 34, 0.1);
    line-height: 1;
    margin-bottom: -1rem;
    display: block;
    font-family: serif;
}

.service-img-frame {
    position: relative;
    box-shadow: 20px 20px 0 rgba(230, 126, 34, 0.05);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-img-frame:hover {
    transform: translate(-5px, -5px);
}

.service-item-title {
    position: relative;
    padding-left: 20px;
}

.concept-list li {
    position: relative;
    padding-left: 1.8em;
    border-bottom: 1px dashed rgba(230, 126, 34, 0.2);
    padding-bottom: 15px;
}

.concept-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8em;
    top: 0.2em;
}

.concept-img-frame {
    position: relative;
    padding: 15px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* ==========================================================================
   Watermark Removal & Visual Fixes
   ========================================================================== */
img:not([src*="logo"]):not([src*="favicon"]) {
    clip-path: inset(0 20px 20px 0);
}

.parallax-bg {
    background-size: 105% auto !important;
    background-position: left top !important;
}

.fv-swiper img {
    clip-path: none !important;
    /* FV images already fixed or shouldn't be cropped this way */
    width: 100%;
    height: auto;
}

.sticky-cta {
    display: none;
}

@media (max-width: 767px) {
    .sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* ==========================================================================
   Voice & Gallery
   ========================================================================== */
#voice {
    background-color: #fdfaf5;
    background-image: radial-gradient(rgba(230, 126, 34, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 100px 0;
    position: relative;
}

.voice-card {
    background: #ffffff;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    transition: transform 0.3s ease;
}

.voice-card:hover {
    transform: translateY(-5px);
}

.voice-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e67e22' opacity='0.1'%3E%3Cpath d='M14.017 21L14.017 18C14.017 16.8954 14.9124 16 16.017 16H19.017V14H15.017C13.9124 14 13.017 13.1046 13.017 12V6C13.017 4.89543 13.9124 4 15.017 4H21.017C22.1216 4 23.017 4.89543 23.017 6V12C23.017 13.1046 22.1216 14 21.017 14H21.017V16C21.017 18.7614 18.7784 21 16.017 21H14.017ZM3.017 21L3.017 18C3.017 16.8954 3.91243 16 5.017 16H8.017V14H4.017C2.91243 14 2.017 13.1046 2.017 12V6C2.017 4.89543 2.91243 4 4.017 4H10.017C11.1216 4 12.017 4.89543 12.017 6V12C12.017 13.1046 11.1216 14 10.017 14H10.017V16C10.017 18.7614 7.77843 21 5.017 21H3.017Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}


/* ==========================================================================
   Utility Classes & Footer Fixes
   ========================================================================== */
.object-cover {
    object-fit: cover;
}

.split-layout-40-60>div:first-child {
    flex-basis: 40%;
}

.split-layout-40-60>div:last-child {
    flex-basis: 60%;
}

/* ==========================================================================
   Top Back Button
   ========================================================================== */
#top-back-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--line-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99;
}

#top-back-btn.visible {
    opacity: 1;
}

@media (max-width: 767px) {
    #top-back-btn {
        bottom: 85px; /* Shift up by 65px to clear the sticky CTA on SP */
    }
}

/* ==========================================================================
   Gallery Slider Improvements
   ========================================================================== */
.gallery-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .gallery-item {
        aspect-ratio: 1/1;
    }
}

/* Modal for Gallery */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    /* Use flexbox for perfect centering */
    display: none;
    /* Controlled by JS display property, but keeping for reference */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    /* Use vh to ensure vertical fit */
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 0;
}


/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

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

.reveal.fade-in {
    transform: none;
}

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

/* Staggered delay for children if needed */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Swiper Linear Scrolling */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}