:root {
    --accent: #c67031;    /* 焚き火の火の色 */
    --primary-dark: #2e3837; /* 炭や夜空の色 */
    --forest: #248471;
    --deep-blue: #1E3655;
    --bg-light: #fdfdfd;
    --bg-cream: #f7dcc7;  /* 波型区切り・偶数セクション背景 */
}

body {
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    color: var(--primary-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.hero-text {
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.hero-visual {
    min-height: 540px;
    perspective: 1100px;
}

.hero-video-stack {
    position: relative;
    width: min(100%, 560px);
    height: 500px;
    isolation: isolate;
}

.hero-flame {
    position: absolute;
    z-index: 0;
    filter: blur(0.2px);
    pointer-events: none;
}

.hero-flame-1 {
    left: -58px;
    top: 16px;
    width: 440px;
    height: 520px;
    border-radius: 62% 38% 54% 46% / 34% 46% 54% 66%;
    background: rgba(198, 112, 49, 0.34);
    --flame-transform: rotate(-16deg);
    animation: hero-flame-drift 28s linear infinite;
}

.hero-flame-2 {
    left: 50%;
    top: -44px;
    width: 470px;
    height: 600px;
    border-radius: 56% 44% 50% 50% / 28% 36% 64% 72%;
    background: rgba(46, 56, 55, 0.18);
    --flame-transform: translateX(-50%) rotate(3deg);
    animation: hero-flame-drift 34s linear infinite reverse;
}

.hero-stack-card {
    position: absolute;
    z-index: 2;
    overflow: hidden;
    width: 208px;
    aspect-ratio: 9 / 16;
    border: 8px solid #fff;
    border-radius: 24px;
    background: #111817;
    box-shadow: 0 34px 90px -32px rgba(46, 56, 55, 0.66);
    transform: var(--card-transform);
    animation: hero-card-float 7s ease-in-out infinite;
    will-change: transform;
}

.hero-stack-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 32%, rgba(0, 0, 0, 0.16));
    pointer-events: none;
}

.hero-stack-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-stack-card span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.5rem 0.65rem;
    color: var(--primary-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.hero-stack-card-1 {
    left: 24px;
    top: 94px;
    --card-transform: rotate(-9deg) translateY(0);
    animation-delay: -1.6s;
}

.hero-stack-card-2 {
    left: 50%;
    top: 42px;
    z-index: 3;
    --card-transform: translateX(-50%) rotate(2deg) translateY(0);
    animation-delay: -3.2s;
}

.hero-stack-card-3 {
    right: 24px;
    top: 116px;
    --card-transform: rotate(9deg) translateY(0);
    animation-delay: -0.4s;
}

@keyframes hero-card-float {
    0%, 100% {
        transform: var(--card-transform);
    }
    50% {
        transform: var(--card-transform) translateY(-10px);
    }
}

@keyframes hero-flame-drift {
    0% {
        transform: var(--flame-transform) rotate(0deg);
    }
    100% {
        transform: var(--flame-transform) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stack-card,
    .hero-flame {
        animation: none;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-top: 6.5rem;
        padding-bottom: 3rem;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-visual {
        min-height: 315px;
        margin-top: 0.5rem;
    }

    .hero-video-stack {
        width: min(100%, 360px);
        height: 310px;
    }

    .hero-flame-1 {
        left: -18px;
        top: 32px;
        width: 265px;
        height: 285px;
        background: rgba(198, 112, 49, 0.38);
    }

    .hero-flame-2 {
        top: 4px;
        width: 300px;
        height: 330px;
        background: rgba(46, 56, 55, 0.2);
    }

    .hero-stack-card {
        width: clamp(112px, 34vw, 138px);
        border-width: 5px;
        border-radius: 18px;
        box-shadow: 0 24px 54px -28px rgba(46, 56, 55, 0.72);
    }

    .hero-stack-card span {
        right: 7px;
        bottom: 7px;
        left: 7px;
        padding: 0.36rem 0.45rem;
        font-size: 0.48rem;
        letter-spacing: 0.08em;
    }

    .hero-stack-card-1 {
        left: 8px;
        top: 72px;
        --card-transform: rotate(-10deg) translateY(0);
    }

    .hero-stack-card-2 {
        top: 34px;
        --card-transform: translateX(-50%) rotate(2deg) translateY(0);
    }

    .hero-stack-card-3 {
        right: 8px;
        top: 86px;
        --card-transform: rotate(10deg) translateY(0);
    }

    .hero-text {
        letter-spacing: 0.08em;
        line-height: 1.16;
    }

    .hero-section h1 {
        font-size: clamp(3rem, 14vw, 4.25rem);
        margin-bottom: 1.25rem;
    }

    .hero-section p {
        margin-bottom: 1.75rem;
    }
}

.work-desktop-heading {
    display: none;
}

.work-mobile-heading {
    display: block;
}

/* Works: 交互レイアウト用のスタイル (PCのみ) */
@media (min-width: 768px) {
    .work-container {
        display: grid;
        grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
        column-gap: clamp(4rem, 7vw, 7rem);
        align-items: center;
    }

    .work-reverse .work-container {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    }

    .work-media-col {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .work-media-col > div {
        margin-left: auto;
        margin-right: auto;
    }

    .work-copy-col {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
    }

    .work-reverse .work-media-col {
        grid-column: 2;
    }

    .work-reverse .work-copy-col {
        grid-column: 1;
    }

    .work-desktop-heading {
        display: block;
    }

    .work-mobile-heading {
        display: none;
    }
}

.bg-cream { background-color: var(--bg-cream); }
.bg-deep-blue { background-color: var(--deep-blue); }

.btn-ar {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-ar:hover {
    background: #a35a26;
    box-shadow: 0 4px 12px rgba(198, 112, 49, 0.3);
    transform: translateY(-2px);
}

.accent-border { border-color: var(--accent); }
.text-accent { color: var(--accent); }
.bg-primary-dark { background-color: var(--primary-dark); }

.about-heading {
    color: var(--accent);
}

.about-value {
    color: var(--accent);
    margin: 0 0.18rem;
    font-weight: 700;
    white-space: nowrap;
}

.service-feature-card {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(46, 56, 55, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 2rem;
    box-shadow: 0 24px 70px -50px rgba(46, 56, 55, 0.52);
}

.service-feature-card::before {
    content: '';
    position: absolute;
    right: -36px;
    bottom: -1px;
    width: 170px;
    height: 88px;
    background: var(--bg-cream);
    clip-path: polygon(0 100%, 26% 44%, 46% 72%, 66% 28%, 100% 100%);
    opacity: 0.72;
    pointer-events: none;
}

.service-feature-card:nth-child(2)::before {
    background: rgba(36, 132, 113, 0.16);
}

.service-feature-card:nth-child(3)::before {
    background: rgba(30, 54, 85, 0.13);
}

.service-feature-number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin-right: 1rem;
    border: 1px solid rgba(198, 112, 49, 0.24);
    border-radius: 999px;
    background: rgba(198, 112, 49, 0.1);
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
    list-style: none;
    padding: 3.5rem 0 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--forest), var(--deep-blue));
    opacity: 0.34;
}

.process-step-card {
    position: relative;
    border: 1px solid rgba(46, 56, 55, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    padding: 3.2rem 1.35rem 1.5rem;
    box-shadow: 0 24px 70px -52px rgba(46, 56, 55, 0.54);
}

.process-step-icon {
    position: absolute;
    top: -1.35rem;
    left: 1.35rem;
    z-index: 2;
    display: flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(46, 56, 55, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.52);
}

.process-step-body {
    position: relative;
}

@media (max-width: 767px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0 0 1.75rem;
    }

    .process-timeline::before {
        top: 0.5rem;
        bottom: 0.5rem;
        left: 0.35rem;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--accent), var(--forest), var(--deep-blue));
    }

    .process-step-card {
        padding: 1.4rem 1.35rem 1.4rem 2.25rem;
    }

    .process-step-icon {
        top: 1.1rem;
        left: -1.5rem;
    }
}

/* アニメーション */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

.qr-img {
    width: 130px;
    height: 130px;
}

.logo-img {
    height: 48px; /* ロゴのサイズ調整 */
    width: auto;
}

/* 波型区切り */
.work-wave-divider,
.section-organic-divider {
    line-height: 0;
    overflow: hidden;
    margin-top: -1px;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.work-wave-divider svg {
    width: 100%;
    height: 76px;
    display: block;
    transform: scaleY(1.02);
    transform-origin: center;
}

.section-organic-divider svg {
    width: 100%;
    height: 88px;
    display: block;
    transform: scaleY(1.02);
    transform-origin: center;
}

/* Coming Soon オーバーレイ */
.work-coming-soon {
    position: relative;
}

.work-coming-soon .work-container {
    opacity: 0.35;
    pointer-events: none;
}

.work-coming-soon::after {
    content: 'COMING SOON';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--primary-dark);
}
