@charset "UTF-8";

/* ==========================================================================
   Pattern 47: Moving
   Designer: "ダイナミックな演出を得意とするクリエイティブ・コーダー"
   Concept: CSS変数の徹底活用、Horizontal Scroll、巨大タイポグラフィ、BEMとUTILITYの融合
   ========================================================================== */

:root {
    /* Theme Colors (CSS変数で管理) */
    --color-dark: #0D0D0D;
    --color-light: #F4F4F4;
    --color-accent: #FF3B00;
    /* エネルギッシュなオレンジ・レッド */
    --color-text-main: #FFFFFF;

    /* Typography */
    --font-en: 'Oswald', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;

    /* Variables for Interaction */
    --vh: 100vh;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-dark);
    color: var(--color-text-main);
    font-family: var(--font-ja);
    -webkit-font-smoothing: antialiased;
    /* JSでスクロールを制御するため、bodyの横方向のスクロールバーは隠す */
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================
   Utilities (u-*) 
========================================= */
.u-text-stroke {
    -webkit-text-stroke: 2px var(--color-text-main);
    color: transparent;
}

.u-text-accent {
    color: var(--color-accent);
}

.u-text-dark {
    color: var(--color-dark);
}

/* =========================================
   Components (c-*)
========================================= */
/* Typography */
.c-title-xl {
    font-family: var(--font-en);
    font-size: 15vw;
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.c-title-l {
    font-family: var(--font-ja);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.c-desc-l {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-top: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.c-desc-m {
    font-size: 1.25rem;
    line-height: 2;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.c-desc-s {
    font-size: 1rem;
    color: #999;
}

/* Button */
.c-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-en);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: none;
}

.c-btn:hover {
    transform: scale(1.05);
}

.c-btn--outline {
    background: transparent;
    border: 2px solid var(--color-text-main);
    color: var(--color-text-main);
}

.c-btn--outline:hover {
    background: var(--color-text-main);
    color: var(--color-dark);
}

.c-btn--primary {
    background: var(--color-accent);
    color: var(--color-text-main);
}

/* Logo */
.c-logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

/* Progress Bar */
.c-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.c-progress__bar {
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform-origin: 0% 50%;
    transform: scaleX(0);
    /* JSで制御 */
    will-change: transform;
}

/* Hero Image */
.c-hero-img {
    position: absolute;
    top: 50%;
    right: -20vw;
    transform: translateY(-50%);
    width: 60vw;
    height: 70vh;
    z-index: 1;
    overflow: hidden;
}

.c-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* Background Giant Text */
.c-bg-text {
    position: absolute;
    top: 50%;
    left: 10vw;
    transform: translateY(-50%);
    font-family: var(--font-en);
    font-size: 25vw;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    z-index: 1;
    white-space: nowrap;
    will-change: transform;
}

/* Service Cards */
.c-grid-wrap {
    display: flex;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

.c-card {
    width: 400px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
    transition-delay: var(--delay, 0s);
}

.c-card.is-active {
    opacity: 1;
    transform: translateY(0);
}

.c-card__img {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 2rem;
}

.c-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.c-card:hover .c-card__img img {
    transform: scale(1.05);
}

.c-card__title {
    font-family: var(--font-en);
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--color-dark);
    line-height: 1;
    margin-bottom: 1rem;
}

.c-card__desc {
    color: #666;
    line-height: 1.8;
}

/* Contact Info */
.c-contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.c-tel {
    font-family: var(--font-en);
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    border-bottom: 4px solid var(--color-accent);
}

/* =========================================
   Layout (l-*)
========================================= */
.l-hdr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    /* コンテンツ操作の邪魔にならないように */
}

.l-hdr>* {
    pointer-events: auto;
}

/* 横スクロール制御の要 */
.l-main {
    /* containerの高さはJSで動的に設定（仮想縦スクロール領域） */
    width: 100%;
}

.l-horizontal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    /* セクションを横に並べる */
    will-change: transform;
    /* アニメーションの最適化 */
}

/* 個別のセクション */
.c-sec {
    position: relative;
    height: 100vh;
    /* CSS変数で背景色を設定し、それぞれに適用 */
    background-color: var(--bg-color);
    flex-shrink: 0;
    /* 縮むのを防ぐ */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.c-sec__inner {
    padding: 0 10vw;
    width: 100%;
}

/* 横幅の定義 (コンテンツ量に応じて広げる) */
.c-sec--hero {
    width: 100vw;
}

.c-sec--statement {
    width: 120vw;
}

.c-sec--service {
    width: 180vw;
}

.c-sec--faq {
    width: 120vw;
}

.c-sec--contact {
    width: 100vw;
    position: relative;
}

/* FAQ Component */
.c-faq {
    width: 100%;
    max-width: 900px;
}

.c-faq__item {
    border-bottom: 2px solid var(--color-dark);
    margin-bottom: 1rem;
}

.c-faq__q {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    user-select: none;
}

.c-faq__q span:first-child {
    font-family: var(--font-en);
    color: var(--color-accent);
    margin-right: 1.5rem;
    font-size: 2rem;
}

.c-faq__q::-webkit-details-marker {
    display: none;
}

.c-faq__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.c-faq__icon::before,
.c-faq__icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-dark);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
}

.c-faq__icon::before {
    width: 100%;
    height: 3px;
}

.c-faq__icon::after {
    width: 3px;
    height: 100%;
}

details[open] .c-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.c-faq__a {
    padding: 0 0 2rem 3.5rem;
    color: #444;
    font-weight: 500;
    line-height: 1.8;
}

/* Contact Flex */
.l-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10vw;
}

/* Footer (Contactセクション内に内包) */
.l-ftr {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.l-ftr__btm {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-en);
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
}

/* =========================================
   Responsive
========================================= */
@media screen and (max-width: 900px) {

    /* スマホでは横スクロールを解除し、通常の縦スクロールに戻す (UX優先) */
    .l-main {
        height: auto !important;
        /* JSによる高さ設定を上書き */
    }

    .l-horizontal-wrap {
        position: relative;
        height: auto;
        display: block;
        /* 縦並びに戻す */
        transform: none !important;
        /* JSによる移動を無効化 */
    }

    .c-sec {
        height: auto;
        min-height: 100vh;
        width: 100% !important;
        /* 横幅を画面サイズに合わせる */
        padding: 100px 0;
    }

    .l-hdr {
        padding: 1.5rem;
    }

    .c-title-xl {
        font-size: 25vw;
    }

    .c-title-l {
        font-size: 2.5rem;
    }

    .c-desc-l {
        font-size: 1.25rem;
    }

    .c-hero-img {
        position: relative;
        width: 100%;
        height: 50vh;
        right: 0;
        top: 0;
        transform: none;
        margin-top: 40px;
    }

    .c-bg-text {
        display: none;
    }

    .c-grid-wrap {
        flex-direction: column;
        gap: 2rem;
    }

    .c-card {
        width: 100%;
    }

    .l-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    .c-tel {
        font-size: 3rem;
    }
}