:root {
    --color-navy: #081451;
    --color-rose: #800D3E;
    --color-white: #FFFFFF;
    --color-gray-light: #F8F9FA;
    --color-bg-gray: #f0f0f0;
}

body {
    background-color: var(--color-white);
    color: var(--color-navy);
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .font-serif {
    font-family: 'Noto Serif JP', serif;
}

/* カスタムイージング */
.cute-transition {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* スクロールガイドの茎 */
#stem-container {
    position: fixed;
    top: 53px;
    left: -25px; /* スマホでの位置調整 */
    width: 120px;
    height: 100vh;
    pointer-events: none;
    z-index: 60; 
}

@media (min-width: 768px) {
    #stem-container {
        left: -36px;
        width: 180px;
        top: 70px;
    }
}

#stem-path {
    fill: none;
    stroke: var(--color-rose);
    stroke-width: 3;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* ヒーロー動画エリア */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 20, 81, 0.2);
    z-index: 1;
}

.btn-round {
    background-color: var(--color-rose);
    color: white;
    padding: 12px 32px;
    border-radius: 999px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-round:hover {
    transform: scale(1.05);
}

/* --- Monokoto-Inspired Styles (About & Service) --- */

.p-topSection02 {
    padding-top: 120px;
    padding-bottom: 200px; 
    position: relative;
    background-color: var(--color-bg-gray);
    border-radius: 40px 40px 0 0; /* About用の角丸 */
}

/* 【修正】Serviceセクション（反転レイアウト）の場合は角丸をなくす */
.p-topSection02--reverse {
    border-radius: 0 !important;
}

/* Serviceセクション用の背景色上書き */
.p-topSection02.bg-white {
    background-color: #FFFFFF;
    border-radius: 0 !important;
}

@media (min-width: 768px) {
    .p-topSection02 {
        padding-top: 160px;
        padding-bottom: 300px;
        border-radius: 80px 80px 0 0; /* PC版About用の角丸 */
    }
    
    /* 【修正】PC版Serviceセクションも角丸なし */
    .p-topSection02--reverse {
        border-radius: 0 !important;
    }

    .p-topSection02.bg-white {
        border-radius: 0 !important;
    }
}

.p-topSection02__inner {
    width: 100%;
    max-width: none; 
    margin: 0;
    padding: 0;
    position: relative;
}

/* 背景の巨大な英語タイトル */
.p-topSection02__titleEn {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: clamp(100px, 18vw, 250px);
    line-height: 0.85;
    color: #FFFFFF;
    opacity: 0.75;
    position: absolute;
    
    /* 位置を上に戻す */
    top: 40px !important; 
    bottom: auto !important;
    transform: none !important;
    
    /* 少し右にずらす */
    left: 60px; 
    
    /* 画像より手前 */
    z-index: 10; 
    
    text-transform: uppercase;
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
}

/* Serviceセクション（白背景）の時の文字色調整 */
.p-topSection02.bg-white .p-topSection02__titleEn {
    color: #f0f0f0; 
    opacity: 1;
}

@media (min-width: 768px) {
    .p-topSection02__titleEn {
        /* PCでも位置を上に戻す */
        top: 0 !important;
        left: calc(5% + 60px);
    }
}

/* レイアウトコンテナ */
.p-topSection02__layout {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
}

@media (min-width: 768px) {
    .p-topSection02__layout {
        flex-direction: row;
        align-items: flex-end;
    }
}

/* 画像エリア */
.p-topSection02__imgWrapper {
    width: 100%;
    position: relative;
    z-index: 1; 
    margin-left: auto; 
    margin-right: 0;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .p-topSection02__imgWrapper {
        width: 60%;
        margin-top: 80px;
    }
}

.p-topSection02__img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 40px 0 0 40px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: block;
}

/* コンテンツカード */
.p-topSection02__card {
    background-color: #FFFFFF;
    border-radius: 30px;
    padding: 100px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    width: 100%;
    position: relative;
    z-index: 2; 
    margin-top: -60px; 
}

/* Serviceセクション（白背景）の時のカード背景色調整 */
.p-topSection02.bg-white .p-topSection02__card {
    background-color: #F8F9FA;
}

@media (min-width: 768px) {
    .p-topSection02__card {
        width: 660px; /* サイズ固定 */
        height: 433px; /* サイズ固定 */
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 80px;

        margin-right: -5%;
        margin-bottom: -100px; 
        margin-top: 0;
        left: 10%; 
    }
}

/* カード内要素 */
.p-topSection02__cardHeader {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.p-topSection02__accentLine {
    width: 4px;
    height: 36px;
    background-color: var(--color-rose);
    border-radius: 2px;
    margin-right: 16px;
}

.p-topSection02__cardTitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
    font-family: 'Noto Serif JP', serif;
    line-height: 1.4;
}

.p-topSection02__cardTxt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

/* ボタン */
.p-topSection02__btnArea {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    width: fit-content;
}

.p-topSection02__btnTxt {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    transition: color 0.3s;
}

.p-topSection02__btnCircle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}

.p-topSection02__btnArrow {
    color: white;
    font-size: 20px;
}

.p-topSection02__btnArea:hover .p-topSection02__btnTxt {
    color: var(--color-rose);
}

.p-topSection02__btnArea:hover .p-topSection02__btnCircle {
    transform: translateX(5px);
    background-color: var(--color-navy);
}

/* ---------------------------------------------------- */
/*  Service Section Reverse Styles (左右反転・ジグザグ)  */
/* ---------------------------------------------------- */

/* レイアウト反転 */
@media (min-width: 768px) {
    .p-topSection02--reverse .p-topSection02__layout {
        flex-direction: row-reverse;
    }
}

/* 画像：左寄せ・右角丸 */
.p-topSection02--reverse .p-topSection02__imgWrapper {
    margin-left: 0;
    margin-right: auto;
}

.p-topSection02--reverse .p-topSection02__img {
    border-radius: 0 40px 40px 0;
}

/* カード：右寄せ・左はみ出し */
@media (min-width: 768px) {
    .p-topSection02--reverse .p-topSection02__card {
        margin-right: 0;
        margin-left: -5%;
        left: auto;
        right: 10%;
    }
}

/* 背景文字：右寄せ */
.p-topSection02--reverse .p-topSection02__titleEn {
    left: auto;
    right: 60px;
}

@media (min-width: 768px) {
    .p-topSection02--reverse .p-topSection02__titleEn {
        left: auto;
        right: calc(5% + 60px);
    }
}


/* Note Section: News Ticker Style */
.note-container {
    border-top: 1px solid #e2e8f0;
}

.note-item {
    display: block;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
    transition: background-color 0.3s;
}

.note-item:hover {
    background-color: #f8fafc;
}

.note-item-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .note-item-inner {
        flex-direction: row;
        align-items: baseline;
        gap: 3rem;
    }
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.note-date {
    font-family: 'Noto Serif JP', serif;
    color: var(--color-navy);
    font-weight: 500;
}

.note-tag {
    background-color: var(--color-rose);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 2px;
}

.note-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-navy);
    flex: 1;
    transition: color 0.3s;
}

.note-item:hover .note-title {
    color: var(--color-rose);
}

.arrow-icon {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-rose);
}

.note-item:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Recruit Section: Immersive */
.recruit-bg {
    background-color: var(--color-navy);
    color: white;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.recruit-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.recruit-catch {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Noto Serif JP', serif;
}

.recruit-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128,13,62,0.4) 0%, rgba(128,13,62,0) 70%);
    filter: blur(40px);
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* --- アニメーション関連 --- */

/* 背景文字用アニメーション */
.reveal-text {
    opacity: 0;
    margin-top: 100px;
    transition: all 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.is-visible {
    opacity: 0.75 !important;
    margin-top: 0;
}

/* カード用アニメーション */
.reveal-card {
    opacity: 0;
    transform: translateY(100px);
    transition: all 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* フェードイン専用アニメーション */
.reveal-fade {
    opacity: 0;
    transition: opacity 2.0s ease-out;
}

.reveal-fade.is-visible {
    opacity: 1 !important;
}

/* --- スマホ専用レイアウト修正（PCには一切影響しません） --- */
@media screen and (max-width: 767px) {
    /* 1. レイアウトを縦並びにし、画像を上に持ってくる */
    .p-topSection02__layout {
        display: flex !important;
        flex-direction: column !important; /* 縦並び */
        padding-top: 0 !important;
    }

    /* 画像エリアの設定 */
    .p-topSection02__imgWrapper {
        order: -1 !important; /* 順序を強制的に一番上に */
        width: 100% !important;
        margin-top: 20px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    /* 画像本体の設定 */
    .p-topSection02__img {
        width: 100% !important;
        height: 250px !important; /* スマホで見やすい高さに固定 */
        object-fit: cover !important;
        border-radius: 20px 20px 0 0 !important; /* 上側だけ角丸 */
    }

    /* カード（テキスト部分）の設定 */
    .p-topSection02__card {
        order: 2 !important; /* 画像の下に配置 */
        width: 90% !important; /* 画面幅の90% */
        margin: -50px auto 0 auto !important; /* ★画像の上に50px重ねる */
        padding: 40px 30px !important;
        border-radius: 20px !important;
        position: relative !important;
        top: 0 !important; /* PCの位置指定をリセット */
        left: 0 !important;
        right: 0 !important;
        height: auto !important;
    }

    /* Serviceセクション（逆向きレイアウト）のスマホ対応 */
    /* スマホでは逆向きにせず、Companyと同じ「画像上・カード下」に統一して見やすくする */
    .p-topSection02--reverse .p-topSection02__layout {
        flex-direction: column !important;
    }
    
    .p-topSection02--reverse .p-topSection02__imgWrapper {
        margin-right: 0 !important;
    }
    
    .p-topSection02--reverse .p-topSection02__card {
        margin-left: auto !important;
        margin-right: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* Serviceセクションの画像角丸調整 */
    .p-topSection02--reverse .p-topSection02__img {
        border-radius: 20px 20px 0 0 !important;
    }

    /* 背景の巨大文字調整 */
    .p-topSection02__titleEn {
        font-size: 18vw !important;
        top: 0 !important;
        left: 10px !important;
        right: auto !important;
        transform: none !important;
    }
    
    /* セクション全体の余白調整 */
    .p-topSection02 {
        padding-top: 60px !important;
        padding-bottom: 80px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .p-topSection02__inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

