/* ==========================================
   ARKWAY Partners株式会社 - Corporate Website
   ==========================================

   意味：企業の「方舟（ARK）」として経営を支える道（WAY）
   ========================================== */

/* ==========================================
   リセットと基本設定
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2744;
    --navy-dark: #0f1a2e;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #666666;
    --gray-dark: #333333;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-number: 'Noto Serif JP', serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-dark);
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 数字用の明朝体クラス（全ページ共通） */
.num {
    font-family: 'Noto Serif JP', Georgia, serif !important;
}

/* ==========================================
   背景レイヤー構造
   ========================================== */

/* 最下層：紺色背景（全体に敷く） */
.bg-layer-base {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy);
    z-index: -100;
}

/* ==========================================
   コンテンツラッパー
   ========================================== */
.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================================
   ヘッダー
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--navy);
    z-index: 1000;
}

.header-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    color: var(--white);
    letter-spacing: 2px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo-sub {
    font-size: 10px;
    display: block;
    letter-spacing: 1px;
    margin-top: 2px;
}

.header-menu {
    width: 40px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
}

.header-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
}

/* ==========================================
   セクション1: FV (First View)
   ========================================== */
.section-fv {
    position: relative;
    height: 100vh;
    min-height: 700px;
}

/* FV: 右から75%白背景 */
.section-fv::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-color: var(--white);
    z-index: 1;
}

/* FVの写真：右から7/8の横幅 */
.fv-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 87.5%;
    height: 100%;
    z-index: 10;
}

.fv-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/fv/main-visual.jpg');
    background-size: cover;
    background-position: center top;
}

/* FVのタイトルボックス：左端から画面中央まで */
.fv-title-box {
    position: absolute;
    top: 42%;
    left: 0;
    transform: translateY(-50%);
    width: 55%;
    background-color: rgba(255, 255, 255, 0.97);
    padding: 60px 80px;
    z-index: 20;
}

.fv-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--navy);
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0.7;
}

.fv-title {
    font-family: var(--font-sans);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.5;
    color: var(--navy);
    margin-bottom: 20px;
}

.fv-divider {
    width: 60px;
    height: 1px;
    background-color: var(--navy);
    opacity: 0.3;
    margin-bottom: 30px;
}

.fv-description {
    font-size: 14px;
    line-height: 2;
    color: var(--gray);
    letter-spacing: 0.5px;
}

/* ==========================================
   共通セクションスタイル
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--navy);
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.section-title-ja {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.section-header-light .section-title,
.section-header-light .section-title-ja {
    color: var(--white);
}

.section-header-light .section-title::after {
    background: linear-gradient(90deg, transparent, var(--white), transparent);
}

.btn-more {
    display: inline-block;
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.btn-more:hover {
    opacity: 0.7;
}

/* サイドテキスト（BUSINESS, PARTNER） */
.side-text {
    position: absolute;
    font-family: 'Noto Serif JP', serif;
    font-size: 120px;
    font-weight: 400;
    letter-spacing: 10px;
    color: rgba(26, 39, 68, 0.05);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    pointer-events: none;
}

.side-text-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.side-text-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================
   セクション2: About Us
   ========================================== */
.section-about {
    position: relative;
    padding: 120px 80px;
    background: transparent;
}

/* About: 右から75%白（既存のbg-layer-white-rightでカバー） */
.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-color: var(--white);
    z-index: -1;
}

.about-content {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.about-image-single {
    width: 420px;
    height: 280px;
    background-image: url('../images/about/team-main.jpg');
    background-size: cover;
    background-position: center;
}

.about-text {
    flex: 1;
}

.about-heading {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--navy);
}

.about-description {
    font-size: 14px;
    line-height: 2.2;
    color: var(--gray);
    margin-bottom: 30px;
}

/* ==========================================
   セクション3: Service
   ========================================== */
.section-service {
    position: relative;
    padding: 120px 80px;
    background: transparent;
}

/* Service: 白背景をFeatureタイトルまで伸ばす */
.section-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 200px);
    background-color: var(--white);
    z-index: -2;
}

/* Service: 下半分に灰色オブジェクト（白と文字の間） */
.section-service::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #f5f5f5;
    z-index: -1;
}

.service-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.service-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
}

.service-card:nth-child(2) {
    margin-top: 40px;
}

.service-card:nth-child(3) {
    margin-top: 80px;
}

.service-image {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    margin-bottom: 25px;
}

.service-image-1 {
    background-image: url('../images/service/corporate.jpg');
    background-size: cover;
    background-position: center;
}

.service-image-2 {
    background-image: url('../images/service/personal.jpg');
    background-size: cover;
    background-position: center;
}

.service-image-3 {
    background-image: url('../images/about/consulting-man.jpg');
    background-size: cover;
    background-position: center;
}

.service-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--navy);
}

.service-desc {
    font-size: 13px;
    line-height: 2;
    color: var(--gray);
    margin-bottom: 20px;
}

/* ==========================================
   セクション4: Feature
   ========================================== */
.section-feature {
    position: relative;
    padding: 120px 80px;
    background: transparent;
}

/* Feature: 左から75%白（右25%に紺色が見える） */
.section-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: var(--white);
    z-index: -1;
}

.feature-content {
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item-right {
    flex-direction: row;
}

.feature-item-left {
    flex-direction: row-reverse;
}

.feature-image {
    width: 480px;
    height: 320px;
    flex-shrink: 0;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.feature-image-1 {
    background-image: url('../images/feature/feature-01.jpg');
    background-size: cover;
    background-position: center;
}

.feature-image-2 {
    background-image: url('../images/feature/feature-02.jpg');
    background-size: cover;
    background-position: center;
}

.feature-image-3 {
    background-image: url('../images/feature/feature-03.jpg');
    background-size: cover;
    background-position: center;
}

.feature-text {
    flex: 1;
    position: relative;
}

.feature-number {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    font-family: 'Noto Serif JP', serif;
    font-size: 80px;
    font-weight: 400;
    color: rgba(26, 39, 68, 0.08);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* 01, 03: 画像が左、テキストが右 → 数字はタイトル末尾 */
.feature-item-right .feature-number {
    right: -60px;
    left: auto;
}

/* 02: 画像が右、テキストが左 → 数字はタイトル末尾 */
.feature-item-left .feature-number {
    right: -60px;
    left: auto;
}

.feature-text p,
.feature-text a {
    position: relative;
    z-index: 1;
}

.feature-heading {
    position: relative;
    display: inline-block;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--navy);
    z-index: 1;
}

.feature-desc {
    font-size: 14px;
    line-height: 2;
    color: var(--gray);
    margin-bottom: 25px;
}

/* ==========================================
   セクション5: Case
   ========================================== */
.section-case {
    position: relative;
    padding: 120px 80px;
}

/* Case: 左から75%白（右25%に紺色が見える） */
.section-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: var(--white);
    z-index: -1;
}

.case-content {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.case-card {
    flex: 1;
    max-width: 350px;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
}

.case-card-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.case-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-category {
    display: inline-block;
    background-color: var(--navy);
    color: var(--white);
    font-size: 11px;
    padding: 5px 12px;
    margin: 15px 20px 0;
    letter-spacing: 1px;
}

.case-image {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.case-image-1 {
    background-image: url('https://images.pexels.com/photos/1108101/pexels-photo-1108101.jpeg?auto=compress&cs=tinysrgb&w=400');
    background-size: cover;
    background-position: center;
}

.case-image-2 {
    background-image: url('https://images.pexels.com/photos/262978/pexels-photo-262978.jpeg?auto=compress&cs=tinysrgb&w=400');
    background-size: cover;
    background-position: center;
}

.case-image-3 {
    background-image: url('https://images.pexels.com/photos/247786/pexels-photo-247786.jpeg?auto=compress&cs=tinysrgb&w=400');
    background-size: cover;
    background-position: center;
}

.case-name {
    font-size: 16px;
    font-weight: 500;
    padding: 15px 20px 10px;
    color: var(--navy);
    line-height: 1.6;
}

.case-desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray);
    padding: 0 20px 25px;
}

.case-more {
    text-align: center;
    margin-top: 50px;
}

.btn-case-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--navy) 0%, #2a3a5c 100%);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-case-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 39, 68, 0.3);
}

/* ==========================================
   セクション6: Contact
   ========================================== */
.section-contact {
    position: relative;
    padding: 50px 80px;
    text-align: center;
    background-image: url('https://images.pexels.com/photos/16348553/pexels-photo-16348553.jpeg?auto=compress&cs=tinysrgb&w=1200');
    background-size: cover;
    background-position: center;
}

.contact-inner {
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 45px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-left {
    text-align: left;
}

.contact-lead {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.contact-tel {
    font-size: 26px;
    color: var(--navy);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.contact-tel .num {
    font-family: 'Noto Serif JP', serif !important;
}

.contact-time {
    font-size: 11px;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.btn-contact {
    display: inline-block;
    padding: 18px 45px;
    flex-shrink: 0;
    background-color: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: var(--navy-dark);
}

/* ==========================================
   フッター
   ========================================== */
.footer {
    position: relative;
    padding: 60px 80px 30px;
    background-color: var(--navy);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    color: var(--white);
    letter-spacing: 2px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-sub {
    font-size: 10px;
    display: block;
    letter-spacing: 1px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-copyright {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   レスポンシブ対応
   ========================================== */
@media (max-width: 1200px) {
    .fv-title-box {
        width: 60%;
    }

    .fv-title {
        font-size: 32px;
    }

    .feature-item {
        flex-direction: column !important;
        text-align: center;
    }
    
    .feature-image {
        width: 100%;
        max-width: 500px;
    }
    
    .feature-number {
        right: 10px !important;
        left: auto !important;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image-single {
        width: 100%;
        max-width: 500px;
        height: 300px;
    }
    
    .service-content {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        max-width: 100%;
        margin-top: 0 !important;
    }
    
    .case-content {
        flex-direction: column;
        align-items: center;
    }
    
    .section-fv::before,
    .section-about::before,
    .section-service::before,
    .section-service::after,
    .section-feature::before,
    .section-case::before {
        width: 100%;
    }

    .contact-inner {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .contact-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header-logo {
        font-size: 16px;
    }
    
    .fv-title-box {
        width: calc(100% - 30px);
        max-width: 100%;
        padding: 25px 20px;
        top: auto;
        bottom: 20px;
        transform: none;
        left: 15px;
        right: 15px;
    }
    
    .fv-image {
        background-image: url('../images/fv/mobile-visual.jpg');
        background-position: center top;
    }

    .fv-label {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .fv-title {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .fv-divider {
        margin-bottom: 20px;
    }

    .fv-description {
        font-size: 12px;
        line-height: 1.8;
    }
    
    .section-about,
    .section-service,
    .section-feature,
    .section-case {
        padding: 80px 20px;
    }
    
    .section-contact {
        padding: 30px 20px;
    }
    
    .contact-inner {
        flex-direction: column;
        gap: 25px;
        padding: 30px 25px;
        text-align: center;
    }

    .contact-left {
        text-align: center;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .side-text {
        display: none;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* ==========================================
   モバイルナビゲーションメニュー
   ========================================== */

/* ハンバーガーメニューボタンのアニメーション */
.header-menu {
    position: relative;
    z-index: 1002;
}

.header-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header-menu.active span:nth-child(2) {
    opacity: 0;
}

.header-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.header-menu span {
    transition: all 0.3s ease;
}

/* モバイルナビゲーションオーバーレイ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 26, 46, 0.95);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* モバイルナビゲーション本体 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: var(--navy);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

/* モバイルナビゲーションヘッダー */
.mobile-nav-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    color: var(--white);
    letter-spacing: 2px;
    text-decoration: none;
}

.mobile-nav-logo-sub {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.7;
}

/* モバイルナビゲーションリンク */
.mobile-nav-links {
    flex: 1;
    padding: 30px 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #c9a961;
}

.mobile-nav-links a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: #c9a961;
}

.mobile-nav-links .nav-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    padding: 15px 30px 10px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* モバイルナビゲーションフッター */
.mobile-nav-footer {
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.mobile-nav-contact {
    margin-bottom: 20px;
}

.mobile-nav-tel {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.mobile-nav-tel .num {
    font-family: 'Noto Serif JP', serif;
}

.mobile-nav-tel i {
    font-size: 16px;
    color: #c9a961;
}

.mobile-nav-hours {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    padding-left: 26px;
}

.mobile-nav-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #c9a961;
    color: var(--navy);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
    background-color: #e8d9a8;
}

/* body スクロール防止 */
body.nav-open {
    overflow: hidden;
}

/* ==========================================
   アニメーション - コーポレートサイト向け
   ========================================== */

/* ページ読み込みアニメーション */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.page-loaded {
    opacity: 1;
}

/* フェードインアニメーション */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FVタイトルボックスのアニメーション */
.fv-title-box {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.fv-title-box.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ページヒーローのアニメーション */
.page-hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s,
                transform 0.8s ease 0.2s;
}

.page-hero-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ヘッダースクロール効果 */
.header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
    background-color: rgba(26, 39, 68, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* カードホバーアニメーション */
.service-card,
.case-card,
.member-card,
.feature-block,
.related-card,
.case-card-link-wrapper,
.testimonial-card,
.position-card,
.benefit-item {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.service-card:hover,
.case-card:hover,
.member-card:hover,
.related-card:hover,
.case-card-link-wrapper:hover,
.testimonial-card:hover,
.position-card:hover,
.benefit-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ボタンリップルエフェクト */
.btn-primary,
.btn-submit,
.btn-more {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* リンクホバーアニメーション */
.btn-more,
.btn-case-more,
.footer-nav a {
    position: relative;
}

.btn-more::after,
.btn-case-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.btn-more:hover::after,
.btn-case-more:hover::after {
    width: 100%;
}

/* セクションタイトルのライン */
.section-title {
    position: relative;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--navy), transparent);
    transition: width 0.8s ease 0.3s;
    z-index: 0;
}

.section-header.is-visible .section-title::after {
    width: 60px;
}

/* 画像ホバーエフェクト */
.about-image-single,
.company-image-main,
.feature-image,
.service-section-image .service-image {
    overflow: hidden;
}

.about-image-single::after,
.company-image-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* フォームフォーカスアニメーション */
.form-group.is-focused label {
    color: var(--navy);
}

.form-group.is-focused input,
.form-group.is-focused textarea,
.form-group.is-focused select {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

/* 数字カウントアップ用 */
.number-value .num,
.num {
    display: inline-block;
}

/* スムーズなページ内遷移 */
html {
    scroll-behavior: smooth;
}

/* アクセシビリティ - モーション軽減設定対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in-element {
        opacity: 1;
        transform: none;
    }
    
    body {
        opacity: 1;
    }
    
    .fv-title-box,
    .page-hero-content {
        opacity: 1;
        transform: none;
    }
}

/* インダストリーアイテムホバー */
.industry-item {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-5px);
}

/* FAQ アコーディオンアニメーション */
.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* フローステップアニメーション */
.flow-step {
    transition: transform 0.3s ease;
}

.flow-step:hover {
    transform: translateX(5px);
}

/* VMVアイテムアニメーション */
.vmv-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vmv-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 連続遅延アニメーション用クラス */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
