/*
Theme Name:   Arkhe Child
Template:     arkhe
Description:  Arkhe の子テーマです。
Author:       株式会社REWARD
Version:      1.0.0
*/


/* ========================================
   1. カスタムプロパティ
======================================== */

:root {
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --color-black: #000;
    --color-dark: #0a0a0a;
    --color-dark-bg: #1a1a1a;
    --color-footer-bg: #353535;
    --color-white: #fff;
    --color-off-white: #fafafa;
    --color-light-gray: #f5f5f5;
    --color-mid-gray: #999;
    --color-text-muted: #666;
    --color-text-dim: #444;
    --color-overlay: rgba(0, 0, 0, 0.3);
    --color-overlay-dark: rgba(0, 0, 0, 0.4);
}


/* ========================================
   2. グローバルリセット
======================================== */

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

body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}


/* ========================================
   3. WordPress コンテンツエリアの調整
======================================== */

body.home .l-header,
body.page-template-custom-homepage .l-header {
    border-bottom: none;
    transition: background-color 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body.home,
body.page-template-custom-homepage {
    padding-top: 0 !important;
}

body.home .site-main,
body.page-template-custom-homepage .site-main,
body.home .content-area,
body.page-template-custom-homepage .content-area,
body.home article,
body.page-template-custom-homepage article,
body.home .entry-content,
body.page-template-custom-homepage .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* ========================================
   4. フルスクリーンコンテナ・セクション基本
======================================== */

.fullscreen-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.fullscreen-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 1;
}


/* ========================================
   5. 動画セクション
======================================== */

.fullscreen-section.video-section {
    background-color: transparent;
}

.video-section .section-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    max-width: none;
}

.video-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}

/* 動画オーバーレイ（セクション0以外） */
.fullscreen-section.video-section:not([data-section="0"]) .section-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    z-index: 1;
    pointer-events: none;
}

/* セクション1・2はやや濃いオーバーレイ */
.fullscreen-section.video-section[data-section="1"] .section-content::before,
.fullscreen-section.video-section[data-section="2"] .section-content::before {
    background-color: var(--color-overlay-dark);
}

/* レスポンシブ動画切り替え */
.video-desktop {
    display: block !important;
}

.video-mobile {
    display: none !important;
    visibility: hidden;
}


/* ========================================
   6. 動画オーバーレイテキスト（セクション1・2）
======================================== */

.video-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    pointer-events: none;
}

.video-text-wrapper {
    position: relative;
    padding: 0 0 clamp(60px, 15vh, 15vh) 10vw;
    max-width: 600px;
    pointer-events: auto;
}

.video-label {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: clamp(12px, 4vh, 30px);
    text-transform: uppercase;
}

.video-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 100;
    letter-spacing: 0.02em;
    color: var(--color-white) !important;
    margin-bottom: clamp(8px, 2.5vh, 20px);
    line-height: 1.1;
}

.video-subtitle {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 300;
    color: var(--color-white) !important;
    margin-bottom: clamp(10px, 3.5vh, 30px);
    letter-spacing: 0.05em;
}

.video-description {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: clamp(20px, 5vh, 50px);
    letter-spacing: 0.05em;
}

.video-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-white) !important;
    text-decoration: none;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.video-link:hover {
    padding-right: 20px;
    border-bottom-color: var(--color-white) !important;
}


/* ========================================
   7. セクション3: 会社を知る（About）
======================================== */

.section-about {
    background: var(--color-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
}

.about-content {
    position: absolute;
    left: 10vw;
    bottom: clamp(60px, 15vh, 15vh);
}

.about-label {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--color-mid-gray);
    margin-bottom: clamp(16px, 4vh, 40px);
}

.about-title {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 100;
    letter-spacing: -0.02em;
    line-height: 1.0;
    color: var(--color-black);
    margin-bottom: clamp(20px, 6vh, 60px);
}

.about-subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.about-circle {
    position: absolute;
    right: -20vw;
    top: 50%;
    transform: translateY(-50%);
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: var(--color-light-gray);
    overflow: hidden;
}

.about-image {
    position: absolute;
    right: 10vw;
    top: 50%;
    transform: translateY(-50%);
    width: 35vw;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.minimal-link {
    position: absolute;
    bottom: clamp(40px, 10vh, 10vh);
    right: 10vw;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-black);
    text-decoration: none;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--color-black);
    transition: padding-right 0.6s var(--ease-smooth);
}

.minimal-link:hover {
    padding-right: 30px;
}


/* ========================================
   8. セクション4: サービス（Service）
======================================== */

.section-service {
    background: var(--color-dark);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10vw;
}

.service-title-area {
    position: absolute;
    left: 10vw;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.service-title {
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.service-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vh, 48px);
    justify-content: center;
    padding-top: calc(82px + clamp(16px, 3vh, 32px));
}

.service-item {
    display: flex;
    align-items: baseline;
    gap: clamp(30px, 4vw, 60px);
    padding-left: 20%;
}

.service-index {
    font-size: clamp(70px, 10vw, 160px);
    font-weight: 100;
    color: rgba(255, 255, 255, 0.1);
    line-height: 0.8;
    min-width: clamp(70px, 10vw, 160px);
}

.service-content {
    flex: 1;
    padding-top: clamp(16px, 2vh, 30px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(30px, 4vw, 60px);
}

.service-text {
    flex: 1;
}

.service-name {
    font-size: clamp(36px, 3.5vw, 52px);
    font-weight: 200;
    letter-spacing: 0.02em;
    margin-bottom: clamp(12px, 1.5vh, 24px);
    color: var(--color-white);
}

.service-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
}

.service-desc--sp {
    display: none;
}

.service-visual-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-visual-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-visual-link .service-visual img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-visual-link:hover .service-visual img {
    opacity: 1;
    transform: scale(1.05);
}

.service-visual {
    width: clamp(220px, 23vw, 350px);
    height: clamp(147px, 15.3vw, 233px);
    background: var(--color-dark-bg);
    overflow: hidden;
    position: relative;
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.service-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.6s var(--ease-smooth);
    align-self: flex-end;
}

.service-link:hover {
    padding-right: 20px;
    border-bottom-color: var(--color-white);
}


/* ========================================
   9. セクション5: 採用情報（Recruit）
======================================== */

.section-recruit {
    background: var(--color-white);
    position: relative;
}

.recruit-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruit-center {
    text-align: center;
    position: relative;
}

.recruit-title {
    font-size: clamp(80px, 10vw, 160px);
    font-weight: 100;
    letter-spacing: -0.03em;
    color: var(--color-black);
    margin-bottom: clamp(16px, 4vh, 40px);
    line-height: 0.9;
}

.recruit-subtitle {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--color-mid-gray);
    text-transform: uppercase;
    margin-bottom: clamp(40px, 12vh, 120px);
}

.recruit-links {
    display: flex;
    gap: clamp(30px, 8vw, 80px);
    justify-content: center;
    align-items: center;
}

.recruit-link {
    text-decoration: none;
    color: var(--color-black);
    position: relative;
    padding: 20px 0;
}

.recruit-link-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.1em;
    position: relative;
    transition: transform 0.3s ease;
}

.recruit-link::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 0.5px;
    background: var(--color-black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.recruit-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.recruit-link:hover .recruit-link-text {
    transform: translateY(-2px);
}

.recruit-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40vw;
    font-weight: 900;
    color: var(--color-off-white);
    letter-spacing: -0.05em;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}


/* ========================================
   10. セクション6: フッター（動画＋フッター）
======================================== */

.fullscreen-section.with-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    height: 100vh;
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

.video-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.video-area video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    z-index: 1;
    pointer-events: none;
}

.l-footer {
    width: 100%;
    padding: 0;
    background-color: var(--color-footer-bg);
}

.with-footer .l-footer {
    flex-shrink: 0;
}

.l-footer__inner {
    padding: 0;
}

.l-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#footer .l-footer__main {
    padding: clamp(30px, 8vh, 80px) 0 clamp(20px, 6vh, 60px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-dark-bg);
}

#footer .l-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 4vw, 60px);
}

@media (max-width: 1024px) {
    #footer .l-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 40px;
        max-width: 600px;
        margin: 0 auto;
    }
    #footer .l-footer__column:nth-child(1) { grid-column: 1; grid-row: 1; }
    #footer .l-footer__column:nth-child(2) { grid-column: 1; grid-row: 2; }
    #footer .l-footer__column:nth-child(3) { grid-column: 2; grid-row: 1; }
    #footer .l-footer__column:nth-child(4) { grid-column: 2; grid-row: 2; }
}

#footer .l-footer__heading {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: clamp(10px, 2.5vh, 24px);
    color: var(--color-white);
    text-transform: uppercase;
}

#footer .l-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .l-footer__list li {
    margin-bottom: clamp(4px, 1.2vh, 12px);
}

#footer .l-footer__list a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    display: inline-block;
}

#footer .l-footer__list a:hover {
    opacity: 0.7;
}

#footer .l-footer__bottom {
    padding: clamp(12px, 3vh, 24px) 0;
    background-color: var(--color-dark-bg);
}

#footer .l-footer__bottom-inner {
    text-align: center;
}

#footer .l-footer__bottom-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 clamp(8px, 2vh, 20px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(4px, 1vh, 8px);
}

#footer .l-footer__bottom-nav li {
    position: relative;
    padding: 0 16px;
}

#footer .l-footer__bottom-nav li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

#footer .l-footer__bottom-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

#footer .l-footer__bottom-nav a:hover {
    opacity: 0.7;
}

#footer .c-copyright {
    color: var(--color-white);
    font-size: 12px;
    margin: 0;
    letter-spacing: 0.05em;
}


/* ========================================
   11. ドットナビゲーション
======================================== */

.dot-navigation {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    transition: opacity 0.3s ease;
    width: auto;
    pointer-events: none;
}

.dot-nav-item {
    display: block;
    width: 12px;
    height: 12px;
    margin: 16px 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.1s ease;
    outline: none;
    position: relative;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    touch-action: manipulation;
    pointer-events: auto;
}

.dot-nav-item:hover {
    transform: scale(1.3);
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.3);
}

.dot-navigation .dot-nav-item.active {
    background-color: var(--color-white) !important;
    border-color: var(--color-white) !important;
    width: 16px;
    height: 16px;
    margin: 14px -2px;
}

.dot-navigation .dot-nav-item.active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-white);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 1.5s infinite;
}


/* ========================================
   12. アニメーション定義
======================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes simpleFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}


/* ========================================
   13. セクション別アニメーション適用
======================================== */

/* 初期状態（非表示） */
.video-text-wrapper > *,
.about-content > *,
.minimal-link,
.service-name,
.service-desc,
.service-link,
.recruit-title,
.recruit-subtitle,
.recruit-link {
    opacity: 0;
    transform: translateY(12px);
}

.service-title {
    opacity: 0;
}

.about-circle,
.about-image,
.service-index,
.service-visual,
.recruit-bg {
    opacity: 0;
}

/* セクション1・2: 動画オーバーレイ */
.fullscreen-section.active .video-label       { animation: fadeUp 0.8s var(--ease-out) 0.10s forwards; }
.fullscreen-section.active .video-title       { animation: fadeUp 1.0s var(--ease-out) 0.20s forwards; }
.fullscreen-section.active .video-subtitle    { animation: fadeUp 0.9s var(--ease-out) 0.35s forwards; }
.fullscreen-section.active .video-description { animation: fadeUp 0.9s var(--ease-out) 0.50s forwards; }
.fullscreen-section.active .video-link        { animation: fadeUp 0.8s var(--ease-out) 0.65s forwards; }

/* セクション3: About */
.section-about.active .about-label    { animation: fadeUp     0.8s var(--ease-out) 0.10s forwards; }
.section-about.active .about-title    { animation: fadeUp     1.0s var(--ease-out) 0.20s forwards; }
.section-about.active .about-subtitle { animation: fadeUp     0.9s var(--ease-out) 0.35s forwards; }
.section-about.active .minimal-link   { animation: fadeUp     0.8s var(--ease-out) 0.50s forwards; }
.section-about.active .about-circle   { animation: simpleFade 1.2s var(--ease-out) 0.20s forwards; }
.section-about.active .about-image    { animation: simpleFade 1.2s var(--ease-out) 0.25s forwards; }

/* セクション4: Service */
.section-service.active .service-title { animation: simpleFade 0.9s var(--ease-out) 0.10s forwards; }

.section-service.active .service-item:nth-child(1) .service-index  { animation: simpleFade 1.0s var(--ease-out) 0.20s forwards; }
.section-service.active .service-item:nth-child(1) .service-name   { animation: fadeUp     0.9s var(--ease-out) 0.35s forwards; }
.section-service.active .service-item:nth-child(1) .service-desc   { animation: fadeUp     0.9s var(--ease-out) 0.50s forwards; }
.section-service.active .service-item:nth-child(1) .service-visual { animation: simpleFade 1.1s var(--ease-out) 0.55s forwards; }
.section-service.active .service-item:nth-child(1) .service-link   { animation: fadeUp     0.8s var(--ease-out) 0.65s forwards; }

.section-service.active .service-item:nth-child(2) .service-index  { animation: simpleFade 1.0s var(--ease-out) 0.50s forwards; }
.section-service.active .service-item:nth-child(2) .service-name   { animation: fadeUp     0.9s var(--ease-out) 0.65s forwards; }
.section-service.active .service-item:nth-child(2) .service-desc   { animation: fadeUp     0.9s var(--ease-out) 0.80s forwards; }
.section-service.active .service-item:nth-child(2) .service-visual { animation: simpleFade 1.1s var(--ease-out) 0.85s forwards; }
.section-service.active .service-item:nth-child(2) .service-link   { animation: fadeUp     0.8s var(--ease-out) 0.95s forwards; }

/* セクション5: Recruit */
.section-recruit.active .recruit-bg                { animation: simpleFade 1.4s var(--ease-out) 0.00s forwards; }
.section-recruit.active .recruit-title             { animation: fadeUp     1.0s var(--ease-out) 0.10s forwards; }
.section-recruit.active .recruit-subtitle          { animation: fadeUp     0.9s var(--ease-out) 0.25s forwards; }
.section-recruit.active .recruit-link:nth-child(1) { animation: fadeUp     0.8s var(--ease-out) 0.40s forwards; }
.section-recruit.active .recruit-link:nth-child(2) { animation: fadeUp     0.8s var(--ease-out) 0.50s forwards; }
.section-recruit.active .recruit-link:nth-child(3) { animation: fadeUp     0.8s var(--ease-out) 0.60s forwards; }


/* ========================================
   14. パフォーマンス最適化
======================================== */

.video-text-wrapper > *,
.about-content > *,
.about-circle,
.about-image,
.minimal-link,
.service-index,
.service-name,
.service-desc,
.service-visual,
.service-link,
.recruit-title,
.recruit-subtitle,
.recruit-link,
.recruit-bg {
    will-change: opacity, transform;
}

.fullscreen-section.animated-complete * {
    will-change: auto;
}


/* ========================================
   15. デスクトップ: スクロール制御
======================================== */

@media (min-width: 769px) {
    body {
        height: 100vh;
        overflow-y: scroll;
    }
}


/* ========================================
   16. デスクトップ: 画面高さが小さい場合
======================================== */

@media (min-width: 769px) and (max-height: 900px) {
    .service-items { gap: clamp(30px, 6vh, 70px); }
    .service-index {
        font-size: clamp(70px, 10vw, 160px);
        min-width: clamp(70px, 10vw, 160px);
    }
    .service-name { font-size: clamp(32px, 3.5vw, 50px); }
}

@media (min-width: 769px) and (max-height: 768px) {
    .service-items { gap: clamp(25px, 5vh, 50px); }
    .service-index {
        font-size: clamp(60px, 8vw, 130px);
        min-width: clamp(60px, 8vw, 130px);
    }
    .service-content {
        padding-top: clamp(15px, 2vh, 30px);
        gap: clamp(25px, 3vw, 50px);
    }
    .service-name {
        font-size: clamp(28px, 3vw, 45px);
        margin-bottom: clamp(12px, 1.5vh, 20px);
    }
    .service-desc { font-size: 13px; line-height: 1.7; }
    .service-visual {
        width: clamp(200px, 22vw, 300px);
        height: clamp(133px, 14.7vw, 200px);
    }
}

@media (min-width: 769px) and (max-height: 650px) {
    .service-items { gap: clamp(20px, 4vh, 40px); }
    .service-index {
        font-size: clamp(50px, 7vw, 100px);
        min-width: clamp(50px, 7vw, 100px);
    }
    .service-content {
        padding-top: clamp(10px, 1.5vh, 20px);
        gap: clamp(20px, 2.5vw, 40px);
    }
    .service-name {
        font-size: clamp(24px, 2.5vw, 38px);
        margin-bottom: clamp(10px, 1.2vh, 18px);
    }
    .service-desc { font-size: 12px; line-height: 1.6; }
    .service-visual {
        width: clamp(160px, 18vw, 240px);
        height: clamp(107px, 12vw, 160px);
    }
    .service-item { gap: clamp(20px, 3vw, 40px); }
}


/* ========================================
   17. レスポンシブ: タブレット〜スマホ（768px以下）
======================================== */

@media (max-width: 768px) {

    /* 基本レイアウト */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        position: relative !important;
        overflow-y: auto !important;
        height: auto !important;
        scroll-snap-type: none;
    }

    .fullscreen-container { position: relative !important; }

    .fullscreen-section {
        position: relative;
        height: 100vh;
        height: 100dvh;
        min-height: -webkit-fill-available;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .l-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    /* セクション0: メインビジュアル */
    .fullscreen-section[data-section="0"] .section-content video {
        transform: none;
    }

    /* レスポンシブ動画切り替え */
    .video-desktop { display: none !important; visibility: hidden; }
    .video-mobile  { display: block !important; visibility: visible; }

    /* 動画オーバーレイテキスト */
    .video-text-wrapper { padding: 0 0 clamp(50px, 15vh, 15vh) 8vw; max-width: 90%; }
    .video-label    { font-size: 11px; margin-bottom: clamp(8px, 3vh, 20px); }
    .video-title    { font-size: clamp(36px, 8vw, 48px); margin-bottom: clamp(6px, 2vh, 15px); }
    .video-subtitle { font-size: clamp(18px, 4vw, 24px); margin-bottom: clamp(8px, 3vh, 20px); }
    .video-description { font-size: 14px; margin-bottom: clamp(12px, 4vh, 30px); }

    /* ドットナビゲーション */
    .dot-navigation { left: 20px; }
    .dot-nav-item {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    .dot-nav-item::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 44px;
        height: 44px;
        background: transparent;
    }

    /* About セクション */
    .about-content { left: 8vw; bottom: clamp(80px, 25vh, 25vh); right: 8vw; }
    .about-label    { font-size: 12px; margin-bottom: 5vw; }
    .about-title    { font-size: clamp(48px, 12vw, 72px); margin-bottom: 8vw; }
    .about-subtitle { font-size: clamp(14px, 3.8vw, 16px); line-height: 1.7; }
    .minimal-link   { bottom: clamp(50px, 15vh, 15vh); right: 8vw; font-size: 12px; }
    .about-circle   { width: 80vw; height: 80vw; right: -40vw; }
    .about-image    { right: 0; width: 85vw; top: 35%; transform: translateY(-50%); aspect-ratio: auto; height: max(45vw, 30vh); }

    /* Service セクション */
    .section-service { padding: 0; }
    .service-wrapper { padding: 0; }
    .service-title-area {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        padding: calc(82px + 2vh) 0 2vh 8vw;
    }
    .service-title { font-size: 12px; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.45); }
    .service-items { gap: 0; padding: 0 0 2vh 0; justify-content: flex-start; }
    .service-item {
        flex-direction: column;
        gap: 0;
        padding: 2.5vh 8vw 0;
        align-items: flex-start;
        position: relative;
    }
    .service-index {
        font-size: clamp(50px, 12vw, 80px);
        min-width: auto;
        line-height: 0.9;
        position: absolute;
        top: 2.5vh;
        right: 8vw;
        left: auto;
        opacity: 0.15;
    }
    .service-content { flex-direction: column; gap: 0; padding-top: 0; width: 100%; }
    .service-text { width: 100%; margin-bottom: 2vw; }
    .service-name { font-size: clamp(28px, 6vw, 40px); margin-bottom: 2vw; }
    .service-desc--pc { display: none; }
    .service-desc--sp {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 4vw;
        padding-right: 0;
        font-size: clamp(13px, 3.5vw, 15px);
        line-height: 1.8;
        max-width: 70%;
        color: rgba(255, 255, 255, 0.9);
        z-index: 2;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }
    .service-visual-wrapper { width: 100%; gap: 0; }
    .service-visual { width: 100%; height: max(30vw, 20vh); margin-bottom: 0; }
    .service-visual::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        pointer-events: none;
        z-index: 1;
    }
    .service-link { display: none; }

    /* Recruit セクション */
    .recruit-wrapper { padding: 0 8vw; }
    .recruit-title    { font-size: clamp(56px, 15vw, 100px); margin-bottom: 6vw; }
    .recruit-subtitle { font-size: clamp(13px, 3.5vw, 15px); margin-bottom: 8vw; letter-spacing: 0.25em; }
    .recruit-bg       { font-size: 50vw; }
    .recruit-links    { flex-direction: column; gap: 4vw; align-items: center; width: 100%; }
    .recruit-link     { width: 100%; text-align: center; padding: 4vw 0; }
    .recruit-link-text { font-size: clamp(14px, 3.8vw, 16px); }
    .recruit-link::after { bottom: 2vw; }

    /* フッター */
    .fullscreen-section.with-footer {
        height: 100vh !important;
        min-height: 100vh !important;
        padding: 0;
        margin: 0;
    }
    .fullscreen-section.with-footer .video-area { display: none; }
    .fullscreen-section.with-footer .section-wrapper {
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    .fullscreen-section.with-footer .l-footer {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100vh;
    }
    .fullscreen-section.with-footer .l-footer__inner {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .fullscreen-section.with-footer .l-footer__main {
        flex: 0 0 60%;
        height: 60%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 60px 20px 0;
    }
    .fullscreen-section.with-footer .l-footer__bottom {
        flex: 0 0 40%;
        height: 40%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 20px;
    }
    .l-footer__grid { max-width: 500px; gap: 24px 20px; }
    .l-footer__heading { font-size: 13px; margin-bottom: 16px; }
    .l-footer__list li { margin-bottom: 8px; }
    .l-footer__list a  { font-size: 12px; }
    .l-footer__bottom-nav { flex-direction: column; gap: 8px; }
    .l-footer__bottom-nav li { padding: 0; }
    .l-footer__bottom-nav li:not(:last-child)::after { display: none; }

    /* アニメーション時間短縮 */
    .video-text-wrapper > *,
    .about-content > *,
    .service-name,
    .service-desc,
    .recruit-link {
        animation-duration: 0.7s !important;
    }
}


/* ========================================
   18. レスポンシブ: 小さいスマホ（480px以下）
======================================== */

@media (max-width: 480px) {
    .video-text-wrapper { padding: 0 0 clamp(40px, 12vh, 12vh) 6vw; }
    .video-title    { font-size: 32px; }
    .video-subtitle { font-size: 18px; }
    .video-description { font-size: 13px; line-height: 1.6; }

    .about-content  { left: 6vw; bottom: clamp(60px, 20vh, 20vh); }
    .about-label    { font-size: 11px; }
    .about-title    { font-size: clamp(40px, 10vw, 60px); }
    .about-subtitle { font-size: 14px; }
    .minimal-link   { font-size: 11px; right: 6vw; bottom: clamp(40px, 12vh, 12vh); }
    .about-image    { top: 35%; transform: translateY(-50%); }

    .service-title-area { padding: 6vh 0 3vh 6vw; }
    .service-title  { font-size: 11px; }
    .service-item   { padding-left: 6vw; padding-right: 6vw; }
    .service-index  { font-size: clamp(45px, 11vw, 75px); right: 6vw; }
    .service-name   { font-size: clamp(28px, 7vw, 40px); margin-bottom: 2.5vw; }
    .service-desc   { font-size: clamp(12px, 3.2vw, 14px); line-height: 1.7; }
    .service-text   { margin-bottom: 3vw; }
    .service-visual { height: max(38vw, 24vh); margin-bottom: 3vw; }
    .service-link   { font-size: 11px; }
    .service-visual-wrapper { gap: 0; }

    .recruit-title     { font-size: clamp(48px, 13vw, 80px); }
    .recruit-subtitle  { font-size: 12px; }
    .recruit-links     { gap: 2vw; }
    .recruit-link-text { font-size: 14px; }

    .l-footer__grid { grid-template-columns: 1fr 1fr !important; gap: 24px 16px !important; }
    .l-footer__main { padding: 60px 16px 0 !important; }
    .l-footer__heading { font-size: 12px; }
    .l-footer__list a  { font-size: 11px; }

    .dot-nav-item {
        width: 10px !important;
        height: 10px !important;
        margin: 16px 0 !important;
    }
    .dot-nav-item.active {
        width: 12px !important;
        height: 12px !important;
        margin: 10px -1px !important;
    }
}


/* ========================================
   19. レスポンシブ: 非常に小さいスマホ（375px以下）
======================================== */

@media (max-width: 375px) {
    .about-title    { font-size: clamp(36px, 9vw, 52px); }
    .about-subtitle { font-size: 13px; }

    .service-index  { font-size: clamp(40px, 10vw, 65px); right: 6vw; }
    .service-name   { font-size: clamp(24px, 6.5vw, 36px); margin-bottom: 2vw; }
    .service-desc   { font-size: 12px; }
    .service-text   { margin-bottom: 2.5vw; }
    .service-visual { margin-bottom: 2.5vw; }

    .recruit-title     { font-size: clamp(44px, 12vw, 72px); }
    .recruit-subtitle  { font-size: 11px; }
    .recruit-links     { gap: 2vw; }
    .recruit-link-text { font-size: 13px; }
}


/* ========================================
   20. iOS Safari 対応
======================================== */

@supports (-webkit-touch-callout: none) {
    html { height: 100%; }

    body {
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fullscreen-container { position: relative; }

    .fullscreen-section {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }

    .fullscreen-section.with-footer {
        height: 100vh;
        min-height: 100vh;
    }
}


/* ========================================
   21. アクセシビリティ: モーション軽減
======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}