/* =========================================
   1. Design Tokens (CSS Variables)
   ========================================= */
:root {
    --color-main: #080830;
    --color-sub: #F5F5F5;
    --color-accent: #C5A059;
    --color-text-main: #333333;
    --color-text-sub: #9A9A9A;
    --color-white: #FFFFFF;
    --color-decor: #EEEEEE;
    --color-border: #E0E0E0;
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-decor: 'Cormorant Garamond', serif;
    --bp-tab: 1024px;
}

/* =========================================
   2. Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0; padding: 0;
    font-family: var(--font-body); color: var(--color-text-main);
    background-color: var(--color-sub); line-height: 1.8; font-feature-settings: 'palt' on;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
    opacity: 0; transition: opacity 0.5s ease;
}
body.loaded { opacity: 1; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
.en-label { font-family: var(--font-decor); text-transform: uppercase; }
.sp-only-br { display: none; } .pc-only-br { display: block; }

/* =========================================
   Animation Classes
   ========================================= */
.js-anim-fadeUp {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-anim-fadeUp.is-visible { opacity: 1; transform: translateY(0); }

.js-anim-stagger .stagger-item {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.js-anim-stagger.is-visible .stagger-item { opacity: 1; transform: translateY(0); }
.js-anim-stagger.is-visible .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.js-anim-stagger.is-visible .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.js-anim-stagger.is-visible .stagger-item:nth-child(3) { transition-delay: 0.3s; }

.graph-bar {
    transform-origin: bottom; transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.foundation-graph-area.is-visible .graph-bar { transform: scaleY(1); }

body.fs-open { overflow: hidden; }

/* =========================================
   3. Layout Structure
   ========================================= */
.layout-wrapper { display: flex; flex-direction: column; width: 100%; min-height: 100vh;}
.main-content { flex: 1; position: relative; background-color: var(--color-sub); width: 100%; max-width: 100vw; height: auto; min-height: 100vh; overflow-x: hidden; }

/* PC Layout */
@media (min-width: 1024px) {
    .layout-wrapper { flex-direction: row; }
    .pc-sidebar {
        width: 300px; height: 100vh; position: sticky; top: 0; left: 0;
        background-color: var(--color-main); color: var(--color-white);
        padding: 60px 0 0 30px; display: flex; flex-direction: column;
        z-index: 100; flex-shrink: 0;
    }
    .sp-header, .sp-menu-overlay { display: none !important; }
    .sp-only-br { display: none; } .pc-only-br { display: block; }
}
/* SP Layout */
@media (max-width: 1023px) {
    .pc-sidebar, .pc-decor-text { display: none !important; }
    .main-content { padding-top: 70px; }
    .sp-only-br { display: block; } .pc-only-br { display: none; }
}

/* =========================================
   4. Components
   ========================================= */
.pc-logo { font-family: var(--font-decor); font-size: 24px; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.pc-sub-logo { font-family: var(--font-decor); font-size: 10px; opacity: 0.8; letter-spacing: 0.05em; display: block; }
.pc-nav-wrapper { margin-top: auto; padding-bottom: 10vh; }
.pc-nav ul { list-style: none; padding: 0; margin: 0; }
.pc-nav li { margin-bottom: 15px; }
.pc-nav a {
    color: var(--color-white); font-family: var(--font-heading);
    font-size: 20px; font-weight: 500; display: inline-block;
    position: relative; transition: color 0.3s;
}
.pc-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 1px; background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.pc-nav a.active { color: var(--color-accent); }
.pc-nav a.active::after { width: 100%; }
.pc-nav a:hover { opacity: 0.8; }
.pc-race {margin:40px 30px 0 0;  background-color:var(--color-white); padding:10px 5px; border-radius:3px; position:relative; display:flex;}
.pc-race img {width:60px; height:60px; object-fit:contain;}
.pc-race span {display:inline-block; color:var(--color-main); font-size:16px; line-height:1.3; margin:auto 3px;}
.pc-race::after {content:''; position:absolute; top:50%;  right:20px; transform: translateY(-50%); background-image:url('../images/LinkOut-Icon.svg'); display:inline-block; width:20px; height:20px; background-size:contain; }

.sp-header { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background-color: var(--color-main); display: flex; align-items: center; justify-content: space-between; padding: 0 25px; z-index: 1000; }
.sp-logo { color: var(--color-white); font-family: var(--font-decor); font-size: 20px; letter-spacing: 0.1em; }
.hamburger-btn { width: 30px; height: 20px; position: relative; cursor: pointer; z-index: 1001; }
.hamburger-btn span { display: block; position: absolute; width: 100%; height: 1px; background-color: var(--color-white); transition: 0.3s; }
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-btn span:nth-child(3) { bottom: 0; }
.hamburger-btn.is-active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }
.sp-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--color-main); z-index: 999; padding: 100px 9.3%; opacity: 0; visibility: hidden; transition: 0.4s; display: flex; flex-direction: column; justify-content: start; }
.sp-menu-overlay.is-active { opacity: 1; visibility: visible; }
.sp-menu-list { list-style: none; padding: 0; margin-top: 0; }
.sp-menu-list li { margin-bottom: 20px; }
.sp-menu-list a { font-family: var(--font-heading); color: var(--color-white); font-size: 20px; font-weight: 500; display: block; }
.sp-menu-race img {width:50px; height:50px; object-fit:contain;}
.sp-menu-race span {display:inline-block; color:var(--color-main); font-size:14px; margin-left:5px; line-height:50px;}
.sp-menu-race {margin-top:30px;  background-color:var(--color-white); padding:15px 10px; border-radius:5px; position:relative;}
.sp-menu-race::after {content:''; position:absolute; top:50%;  right:20px; transform: translateY(-50%); background-image:url('../images/LinkOut-Icon.svg'); display:inline-block; width:20px; height:20px; background-size:contain; }
/* =========================================
   5. Hero Section
   ========================================= */
.hero { width: 100%; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero { justify-content:center; padding-left: 4.2%; padding-right: 8.3%; padding-bottom: 10vh; } }
@media (max-width: 1023px) { .hero { min-height: 650px; padding-left: 9.3%; padding-right: 9.3%; padding-top: 50px; } }

.hero-tags { margin-bottom: 40px; display: flex; align-items: center; gap: 20px; }
@media (max-width: 1023px) { .hero-tags { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 30px; } }

.tag-box { background-color: #8f0303; padding: 8px 24px; font-family: var(--font-heading); font-size: 16px; color: var(--color-white); }

@media (max-width: 1023px) { 
.tag-box, .tag-filled {font-size:14px; padding: 7px 15px; line-height: 1;}
.hero-text-group { width: 100%; margin-bottom: 40px; } }

.hero-lead { font-family: var(--font-heading); color: var(--color-main); font-size: 3.1vw; font-weight: 400; letter-spacing: 0.03em; margin-bottom: 10px; }
@media (max-width: 1023px) { .hero-lead { font-size: 6.5vw; font-weight: 600; letter-spacing: 0; } }

.hero-main-copy { font-family: var(--font-heading); color: var(--color-main); font-size: 7vw; font-weight: 700; letter-spacing: 0.03em; line-height: 1.1; position: relative; white-space: nowrap; }
.hero-main-copy::after { content: ''; display: block; width: 100%; height: 4px; background-color: var(--color-accent); margin-top: 5px; }
@media (max-width: 1023px) { .hero-main-copy { font-size: 12vw; font-weight: 600; letter-spacing: 0; } .hero-main-copy::after { height: 3px; } }

.hero-sub-info { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 20px; width: 100%; }
@media (max-width: 1023px) { .hero-sub-info { gap: 10px; } }

.hero-en-sub { font-family: var(--font-decor); color: var(--color-text-sub); font-size: 20px; line-height: 1.3; letter-spacing: 0.05em; }
@media (max-width: 1023px) { 
.hero-sub-info { align-items: center; margin-top: 15px; }
.hero-en-sub { font-size: 12px; } 
}

.hero-salary { font-family: var(--font-heading); color: var(--color-text-sub); font-size: 28px; white-space: nowrap; }
.hero-salary .salary-price { font-size: 34px; color: var(--color-text-sub); margin-left: 10px; font-family: var(--font-heading); }
@media (max-width: 1023px) { 
.hero-salary { font-size: 18px; margin-left: 5px; } 
.hero-salary .salary-price { font-size: 24px; margin-left: 5px; } }

.hero-message { margin-top: 40px; color: var(--color-text-main); font-family: var(--font-heading); }
.hero-message-highlight { font-size: 3.1vw; font-weight: 600; letter-spacing: 0.1em; border-bottom: none; display: inline-block; line-height: 1.4; margin-bottom: 25px; }
.hero-message-body { font-size: 2.5vw; font-weight: 600; letter-spacing: 0.1em; line-height: 1.6; display: block; }
@media (max-width: 1023px) { .hero-message { margin-top: 0px; } .hero-message-highlight { font-size: 6vw; line-height: 1.5; margin-bottom: 20px; } .hero-message-body { font-size: 6vw; } }
.scroll-indicator { position: absolute; text-align: center; bottom: 60px; right: 18.2%; }
@media (max-width: 1023px) { .scroll-indicator { left: 50%; right: auto; bottom: 60px; transform: translateX(-50%); } }
.scroll-text { font-family: var(--font-decor); font-size: 12px; color: var(--color-main); display: block; margin-bottom: 5px; }
.scroll-arrow { display: inline-block; width: 15px; height: 15px; border-bottom: 1px solid var(--color-accent); border-right: 1px solid var(--color-accent); transform: rotate(45deg); position: relative; animation: bounce 3s infinite;}
.scroll-arrow::before { content: ''; position: absolute; top: -6px; left: -6px; width: 100%; height: 100%; border-bottom: 1px solid var(--color-accent); border-right: 1px solid var(--color-accent);}
@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {transform: translateY(0) rotate(45deg);}
	40% {transform: translateY(-8px) rotate(45deg);}
	60% {transform: translateY(-4px) rotate(45deg);}
        }
.pc-decor-text { position: absolute; top: 0; right: 0; height: 100vh; padding-right: 60px; display: flex; align-items: flex-end; justify-content: center; z-index: 0; pointer-events: none; transform-origin: center; }
.pc-decor-text span { writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--font-decor); font-size: 19vh; font-weight: 700; color: var(--color-decor); line-height: 1; white-space: nowrap; transform: rotate(180deg); }

/* =========================================
   6. About Section
   ========================================= */
.section-about { background-color: var(--color-white); position: relative; z-index: 1; padding: 100px 0 130px; }
@media (max-width: 1023px) { .section-about { padding: 60px 25px; } }

.about-container { width: 100%; margin: 0 auto; text-align: center; }
.about-en-title { display: block; font-family: var(--font-decor); color: var(--color-accent); letter-spacing: 0.2em; line-height: 1; margin-bottom: 15px; font-size: 14px; }
.about-jp-title { font-family: var(--font-heading); color: var(--color-main); font-size: 36px; line-height: 1.5; font-weight: 700; letter-spacing: 0; margin-bottom: 40px; }
.about-sub-lead { font-family: var(--font-heading); color: var(--color-main); line-height: 1.7; letter-spacing: 0; margin-bottom: 5px; font-weight: 700; }
.about-main-lead { font-family: var(--font-heading); color: var(--color-main); font-size:24px; line-height: 1.7; letter-spacing: 0; font-weight: 700; margin-bottom: 40px; display: inline-block; }
.lead-underline { display: inline-block; border-bottom: 2px solid var(--color-accent); }
.lead-inner { font-size: 30px;  border: none; }
.about-body-text { font-family: var(--font-body); color: var(--color-text-main); font-size: 18px; line-height: 2.0; letter-spacing: 0; }
.about-body-text p { margin: 0; margin-bottom: 30px; }
.about-body-text p:last-child { margin-bottom: 0; }
@media (min-width: 1024px) { .section-about { padding: 100px 0 130px; } }
@media (max-width: 1023px) {
    .section-about { padding: 60px 25px; }
    .about-en-title { margin-bottom: 10px;}
    .about-jp-title { font-size: 24px; line-height: 1.5; margin-bottom: 25px; }
    .about-main-lead { font-size: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 35px; line-height: 1.0; }
    .about-body-text { font-size: 15px; text-align: left; }
    .about-body-text p {margin-bottom: 15px;}
    .lead-underline { border-bottom: none; display: contents; }
    .lead-inner { font-size: 24px; display: inline-block; width: fit-content; border-bottom: 1px solid var(--color-accent); padding-bottom: 5px; }
}

/* =========================================
   7. Race Group Section
   ========================================= */
.section-race-group { background-color: var(--color-sub); position: relative; z-index: 1; padding: 100px 0 130px; }
@media (max-width: 1023px) { .section-race-group { padding: 60px 25px; } }

.race-group-container { width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 1024px) { .race-group-container { text-align: center; } }
@media (max-width: 1023px) { .race-group-container { align-items: flex-start; text-align: left; } }

.race-header { margin-bottom: 40px; width: 100%; }
.race-en-title { display: block; font-family: var(--font-decor); color: var(--color-accent); letter-spacing: 0.25em; line-height: 1; margin-bottom: 15px; font-size: 14px; }
.race-jp-title { font-family: var(--font-heading); color: var(--color-main); font-size: 36px; font-weight: 700; line-height: 1.7; margin-bottom: 40px; }
.race-main-lead { font-family: var(--font-heading); color: var(--color-main); font-size: 30px; font-weight: 700; line-height: 1.7; margin-bottom: 0; }
.race-main-lead span { border-bottom: 2px solid var(--color-accent); display: inline; padding-bottom: 5px; }
@media (max-width: 1023px) { 
.race-en-title { margin-bottom: 10px;}
.race-jp-title { font-size: 24px; margin-bottom: 25px;}
.race-main-lead { font-size: 20px; } 
.race-main-lead span { border-bottom-width: 1px; } }

.race-body-text { width: 100%; font-family: var(--font-body); color: var(--color-text-main); font-size: 18px; line-height: 2.0; }
@media (min-width: 1024px) { .race-body-text { text-align: center; } }
@media (max-width: 1023px) { .race-body-text { text-align: left; font-size: 15px; } }
.race-body-text p { margin: 0 0 15px 0; }
.top-text { margin-bottom: 60px; } .bottom-text { margin-top: 60px; }
@media (max-width: 1023px) { .top-text { margin-bottom: 40px; } .bottom-text { margin-top: 40px; } }


/* =========================================
   Scroll Telling (Horizontal)
   ========================================= */
/* スクロール領域全体の高さ確保 */
.story-scroll-section {
    /* スライド枚数に応じて調整（13枚なら1300vh + α） */
    height: 1300vh; 
    width: 100%;
    position: relative;
    background-color: var(--color-main);
}

/* 画面に張り付くビューポート */
.story-sticky-view {
    height: 100vh;
    position: absolute; /* JSで fixed に切り替えるため初期値は absolute */
    top: 0;
    left: 0;
    overflow: hidden;
    
    /* 画面幅一杯に広げる設定 */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    
    /* 配色固定（濃紺背景・白文字） */
    background-color: var(--color-main);
    color: #ffffff;
}

/* 内部テキストの強制色指定 */
.story-sticky-view .text-fluid-h1,
.story-sticky-view .text-fluid-h2,
.story-sticky-view .text-white { color: #ffffff; }

.story-sticky-view .text-fluid-body,
.story-sticky-view .text-fluid-sm,
.story-sticky-view .text-gray { color: #e5e7eb; }

/* スクロール中は固定表示 */
.story-sticky-view.is-fixed {
    position: fixed;
    z-index: 500;
}

/* PC版サイドバーがある場合の調整 */
@media (min-width: 1024px) {
    .story-sticky-view.is-fixed {
        left: 300px;
        width: calc(100vw - 300px);
        margin-left: 0;
    }
    /* absolute時も位置を合わせる */
    .story-sticky-view {
    	left: 0;
    	width: 100%; 
    	margin-left: 0;
    }
}

/* スクロール終了後は下に配置 */
.story-sticky-view.is-bottom {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
}

/* 横並びのトラック（スライド全体） */
.story-track {
    display: flex;
    height: 100%;
    width: max-content;
    will-change: transform; /* アニメーション最適化 */
}

/* 各スライドの個別の箱 */
.story-item {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* PC版スライド幅調整 */
@media (min-width: 1024px) {
    .story-item {
        width: calc(100vw - 300px);
        max-width: 1000px;
    }
}

/* Slide Layouts */
.text-fluid-h1 { font-size: clamp(1.5rem, 1rem + 2.5vw, 3rem); line-height: 1.2; font-weight: 700; font-family: var(--font-heading); }
.text-fluid-h2 { font-size: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); font-weight: 700; font-family: var(--font-heading); }
.text-fluid-body { font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1.25rem); line-height: 1.8; font-family: var(--font-heading); }
.text-fluid-sm { font-size: clamp(0.75rem, 0.7rem + 0.25vw, 1rem); font-family: var(--font-decor); }
.text-gold { color: var(--color-accent); }
.font-eng { font-family: var(--font-decor); }
.tracking-wider { letter-spacing: 0.05em; }
.border-b-gold { border-bottom: 1px solid var(--color-accent); display: inline-block; margin-top: 0.5rem; }

/* SP調整 */
@media (max-width: 1023px) {
    .text-fluid-h1 { font-size: 5vw; }
    .text-fluid-h2 { font-size: 4vw; }
    .text-fluid-body { font-size: 14px; line-height: 1.6; }
    .text-fluid-sm { font-size: 2.5vw; }
}

.slide-content-center { padding: 30px; height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.slide-grid-layout { display: grid; grid-template-columns: 1fr; height: 100%; width: 100%; }
@media (min-width: 768px) { .slide-grid-layout { grid-template-columns: 1fr 1fr; } }
.slide-col-text { display: flex; flex-direction: column; justify-content: center; padding: 2rem 4rem; }
.slide-col-img { background-color: #1f2937; position: relative; display: none; }
.slide-img { width: 100%; height: 100%; object-fit: cover;}
@media (min-width: 768px) { .slide-col-img { display: block; } }
@media (max-width: 768px) { .slide-col-text { padding: 2rem; text-align: center; } }
.slide-label { font-family: var(--font-decor); color: var(--color-accent); font-size: 14px; letter-spacing: 0.2em; margin-bottom: 10px; display: block; text-transform: uppercase; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; background: rgba(8,8,48,0.5); transition: 0.3s; }
.slide-nav:hover { background: rgba(255,255,255,0.1); border-color: var(--color-accent); }
.slide-nav span { display: block; width: 0.8rem; height: 0.8rem; border-style: solid; border-color: white; border-width: 0 0 2px 2px; }
.slide-prev { left: 2rem; } .slide-prev span { transform: rotate(45deg); }
.slide-next { right: 2rem; } .slide-next span { transform: rotate(-135deg); }
.slide-fs-btn { position: absolute; bottom: 2rem; right: 2rem; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; color: white; }
.slide-close-btn { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; color: white; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 24px; z-index: 100; }

/* SP Controls Adjust */
@media (max-width: 1023px) { 
    .slide-nav { width: 2rem; height: 2rem; }
    .slide-nav span { width: 0.5rem; height: 0.5rem; border-width: 0 0 1px 1px; }
    .slide-prev { left: 0.5rem; } .slide-next { right: 0.5rem; }
    .slide-fs-btn { width: 2rem; height: 2rem; bottom: 0.5rem; right: 0.5rem; }
    .slide-fs-btn svg { width: 12px; height: 12px; }
}

.dots-container { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; z-index: 20; }
@media (max-width: 1023px) { .dots-container { bottom: 0.5rem; gap: 0.3rem; } }
.slide-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background-color: #4B5563; cursor: pointer; }
@media (max-width: 1023px) { .slide-dot { width: 0.3rem; height: 0.3rem; } }
.slide-dot.active { background-color: var(--color-accent); }

#fs-modal { position: fixed; inset: 0; background: #000; z-index: 9999; display: none; }
#fs-modal.active { display: flex; align-items: center; justify-content: center; }
#fs-modal .slide-embed-wrapper { width: 100%; height: 100vh; aspect-ratio: auto; box-shadow: none; }
#fs-modal .slide-close-btn { display: flex; }

@media (max-width: 1023px) {
    #fs-modal .slide-embed-wrapper {
        /* Remove aspect ratio lock in fullscreen to fill screen better if needed, or keep it */
        aspect-ratio: auto; 
        width: 100%; height: 100%;
    }
    
    /* Reset fonts to readable size in fullscreen */
    #fs-modal .text-fluid-h1 { font-size: 24px; }
    #fs-modal .text-fluid-h2 { font-size: 20px; }
    #fs-modal .text-fluid-body { font-size: 15px; line-height: 1.8; text-align: left;}
    #fs-modal .text-fluid-sm { font-size: 14px; }
    
    /* Restore layout flexibility in fullscreen if needed (e.g. stack for readability) */
    /* But user asked for scale down thumbnail, so fullscreen should probably be readable. */
    /* Let's keep grid but ensure text is readable. */
    #fs-modal .slide-grid-layout { display: flex; flex-direction: column; }
    #fs-modal .slide-col-img { height: 40%; flex: none; }
    #fs-modal .slide-col-text { padding: 20px; height: auto; flex: 1; overflow-y: auto; }
    #fs-modal .slide-item { flex-direction: column; }
    #fs-modal .slide-content-center { padding: 40px; }
}
/* =========================================
   8. Growth
   ========================================= */
.section-growth { background: #fff; padding: 100px 0 130px; position: relative; z-index: 1; }
@media (max-width: 1023px) { .section-growth { padding: 60px 25px; } }

.growth-container { width: 100%; margin: 0 auto; text-align: center; }
@media (min-width: 1024px) { .growth-container { max-width: 1440px; padding: 0 60px; } }
@media (max-width: 1023px) { .growth-container { text-align: left; } }

.growth-en-title { display: block; font-family: var(--font-decor); color: var(--color-accent); letter-spacing: 0.2em; margin-bottom: 15px; font-size: 14px; }
.growth-jp-title { font-family: var(--font-heading); color: var(--color-main); font-size: 36px; font-weight: 700; line-height: 1.5; margin-bottom: 40px; }
.growth-lead { font-family: var(--font-body); font-size: 18px; line-height: 2.0; display: inline-block; text-align: left; }
@media (min-width: 1024px) { 
.growth-lead { text-align: center; } }

@media (max-width: 1023px) { 
.growth-en-title { margin-bottom: 10px;}
.growth-jp-title { font-size: 24px; margin-bottom: 25px;}
.growth-lead { font-size: 15px; margin-bottom: 30px;}}

.growth-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 60px 0 80px; text-align: left; }
@media (max-width: 1023px) { .growth-points { grid-template-columns: 1fr; gap: 50px; margin:0 10px 50px; } }

.growth-item-top { display: flex; align-items: baseline; margin-bottom: 10px; }
.growth-num { font-family: var(--font-decor); font-style: italic; color: var(--color-accent); font-size: 60px; margin-right: 15px; line-height: 1; }
.growth-item-head { font-family: var(--font-heading); color: var(--color-main); font-size: 30px; font-weight: 700; border-bottom: 1px solid var(--color-accent); padding-bottom: 5px; }
.growth-item-sub { font-family: var(--font-body); color: var(--color-main); font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.growth-item-desc { font-family: var(--font-body); font-size: 16px; line-height: 2.0; }
@media (max-width: 1023px) { 
.growth-item-top { margin-bottom: 0;}
.growth-item-flex { display: flex; align-items: baseline; gap:10px; border-bottom: 1px solid var(--color-accent); margin-bottom: 10px;}
.growth-num { font-size: 50px; }
.growth-item-head { font-size: 24px;  border-bottom: none; padding-bottom: 0;} 
.growth-item-sub { font-size: 20px;  margin-bottom: 0;} 
.growth-item-desc { font-size: 15px; } }
.growth-footer-msg { font-family: var(--font-body); font-size: 18px; line-height: 2.0; }

@media (min-width: 1024px) { .growth-footer-msg { text-align: center; } }
@media (max-width: 1023px) { .growth-footer-msg { font-size: 15px; text-align: left; } }

/* =========================================
   9. Foundation
   ========================================= */
.section-foundation { background: var(--color-main); padding: 100px 0 130px; color: white; position: relative; z-index: 1; }
.foundation-container { max-width: 1200px; margin: 0 auto; }
@media (min-width: 1024px) { .foundation-container { max-width: 1440px; padding: 0 120px; } }
@media (max-width: 1023px) {.section-foundation { padding: 60px 25px;}}

.foundation-en-title { display: block; font-family: var(--font-decor); color: var(--color-accent); letter-spacing: 0.2em; margin-bottom: 15px; font-size: 14px; }
.f-jp-title { font-family: var(--font-heading); font-size: 36px; font-weight: 700; line-height: 1.5; margin-bottom: 30px; }
.foundation-lead { font-size: 18px; line-height: 2; margin-bottom: 60px;}
@media (max-width: 1023px) { 
.foundation-en-title { margin-bottom: 10px;}
.f-jp-title { font-size: 24px; margin-bottom: 20px; }
.foundation-lead { font-size: 15px; line-height: 2; margin-bottom: 50px;}
}

.foundation-graph-area { margin-bottom: 80px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.graph-area-left { width: 100%; text-align: left; margin-bottom: 20px; display: flex; justify-content: flex-start; }
.graph-title-h3 { font-family: var(--font-heading); font-size: 24px; border-bottom: 1px solid var(--color-accent); padding-bottom: 5px; font-weight: 700; margin: 0; }
.graph-container-wrapper { position: relative; width: 80%; height: 450px; margin-top: 50px;}

@media (max-width: 1023px) { 
.graph-title-h3 { font-size: 20px; }
.graph-container-wrapper { width: 100%; height: 300px;  margin-top: 100px;} }

.graph-container { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; height: 100%; margin-bottom;40px; position:relative;}
.graph-bar-group { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1; margin: 0 10px; position: relative; }
.graph-bar { width: 100%; max-width: 40px; background: linear-gradient(to bottom, #8ea5ff, #080830); border-radius: 0; height: var(--bar-height); }
.graph-bar.gold-bar { background: linear-gradient(to bottom, #E8C57F, #C5A059); max-width: 40px; }
.graph-bar-val { font-family: var(--font-heading); font-size: 34px; font-weight: 700; position: absolute; bottom: calc(var(--bar-height) + 30px); white-space: nowrap; }
.graph-bar-unit {font-size: 20px;}
.graph-year {font-family: var(--font-body); font-size: 14px; font-weight: 400; position:absolute; bottom:-30px;}
.graph-dots { flex: 1; height: 63.5%; margin: 0 10px; position: relative; top: calc(30% - 63.5%); z-index: 0; background-image: radial-gradient(circle, #fff 2px, transparent 3px); background-size: 12px 12px; background-position: bottom; background-repeat: repeat-x; }
.graph-bar-group.group-2030 { overflow: visible; }
.pc-goal-label { position: absolute; bottom: calc(100% + 15px); left: 50%; transform: translateX(-50%); text-align: center; width: 250px; }
.pc-goal-label-text { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--color-accent); line-height: 1.2; }
.pc-goal-label-year { font-family: var(--font-heading); font-size: 24px; font-weight: 400; display: block; }
.pc-goal-number { font-size: 48px;}

@media (max-width: 1023px) { 
.pc-goal-label { display: none; } 
.graph-bar-val { font-size: 18px; bottom: calc(var(--bar-height) + 30px); white-space: nowrap; }
.graph-bar-unit {font-size: 12px;}
.graph-year { width:150%; margin-top: 15px; font-family: var(--font-body); font-size: 12px; font-weight: 400; text-align: center;}
.graph-dots { flex: 1; height: 63.5%; margin: 0; position: relative; top: calc(30% - 63.5%); z-index: 0; background-image: radial-gradient(circle, #fff 2px, transparent 2px); background-size: 12px 12px; background-position: bottom; background-repeat: repeat-x; }
}
.sp-goal-label { 
    display: none; position: absolute; bottom: 100%; right: 50%; 
    margin-bottom: 15px; margin-right: 15px;
    width: 200px; height: 40px; 
    pointer-events: none; z-index: 1;
}
.sp-goal-text { position: absolute; bottom: 5px; left: 0; text-align: left; white-space: nowrap; font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--color-accent); }
.sp-goal-text span { margin-bottom: 2px; }
.sp-goal-label-year { color: white;}
.sp-goal-label-text { display: block; color: var(--color-accent);}
.sp-goal-number { font-size: 40px; line-height: 1;}
.sp-goal-line { position: absolute; bottom: -15px; right: 0; width: 200px; height: 16px; overflow: visible; }

@media (max-width: 1023px) { 
.sp-goal-label { display: block; } }

.foundation-metrics { display: flex; flex-direction: column; gap: 40px; max-width: 800px; margin: 0 auto; }
@media (max-width: 1023px) { .foundation-metrics { gap: 60px; } }

.metric-item { text-align: left; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 40px; }
.metric-title { font-family: var(--font-heading); font-size: 30px; font-weight: 700; border-bottom: 1px solid var(--color-accent); padding-bottom: 5px; margin-bottom: 15px; display: inline-block; }
.metric-val { font-size: 50px; font-weight: 700; line-height: 1; }
.metric-unit { font-size: 35px; font-weight: 700; }
.metric-note { margin-left: 10px;}
.metric-desc { font-size: 18px; line-height: 2; font-weight: 400;}
@media (min-width: 1024px) { .foundation-metrics .metric-item:nth-child(3) .metric-title { font-size: 40px; } }
@media (max-width: 1023px) { 
.metric-title { font-size: 20px; }
.metric-desc { font-size: 15px; margin-top: 10px; }
.foundation-metrics .metric-item:nth-child(3) .metric-title { font-size: 35px; } }

/* =========================================
   10. Career
   ========================================= */
.section-career { background: white; padding: 100px 0 130px; position: relative; z-index: 1; }
.career-container { width: 100%; max-width: 1200px; margin: 0 auto; }
@media (min-width: 1024px) { .career-container { max-width: 1440px; padding: 0 60px; } }
@media (max-width: 1023px) { .section-career {padding: 60px 25px;}}

.career-en-title { display: block; font-family: var(--font-decor); color: var(--color-accent); letter-spacing: 0.2em; margin-bottom: 15px; font-size: 14px; }
.career-jp-title { font-family: var(--font-heading); color: var(--color-main); font-size: 36px; font-weight: 700; line-height: 1.5; margin-bottom: 30px; }
.career-lead { font-size: 18px; line-height: 2; margin-bottom: 60px;}
.career-item { padding: 60px 0; border-bottom: 1px solid var(--color-border); display: grid; grid-template-columns: 32% 30% 32%; gap: 30px; }
@media (max-width: 1023px) { 
.career-item { display: flex; flex-direction: column; gap: 20px; padding:60px 0; } 
.career-en-title { margin-bottom: 10px; }
.career-jp-title { font-size: 24px; margin-bottom: 25px; }
.career-lead { font-size: 15px; line-height: 2; margin-bottom: 0;}
}

.career-age { font-family: var(--font-heading); color: var(--color-main); font-size: 36px; font-weight: 700; margin-right: 30px; }
.career-unit { font-family: var(--font-heading); color: var(--color-main); font-size: 24px; font-weight: 700; margin-left: 10px; }
.career-univ { color: var(--font-text-main); font-size: 16px; border: 1px solid var(--color-text-main); line-height: 1;  padding: 5px 15px; vertical-align: super;}
.career-role { font-family: var(--font-heading); color: var(--color-main); font-size: 30px; font-weight: 700; line-height:1.5; margin: 15px 0; }
.career-salary { font-family: var(--font-heading); color: var(--color-accent); font-size: 24px; font-weight: 700; line-height:1; }
.career-desc { color: var(--font-text-main); font-size:18px; line-height:2;}
.career-img-area { width: 100%; height: auto;}
.career-img { object-fit:contain; width: 100%; align-items: center;}

@media (max-width: 1023px) { 
.career-age { font-size: 32px; line-height: 1; }
.career-unit { font-size: 20px; }
.career-role { font-size: 24px; margin: 15px 0;}
.career-salary  { font-size: 20px;}
.career-desc  { font-size: 15px; }
.career-img-area { width: 100%; }
.career-img { width: 100%; align-items: center;}

}

 /* =========================================
   11. Voices
   ========================================= */
.section-voices { background: var(--color-sub); padding: 100px 0 130px; position: relative; z-index: 1; }
.voices-container { max-width: 1200px; margin: 0 auto; }
@media (min-width: 1024px) { .voices-container { max-width: 1440px; padding: 0 120px; } }
@media (max-width: 1023px) { 
.section-voices  { padding: 60px 25px 0;}
}

.voices-en-title { display: block; font-family: var(--font-decor); color: var(--color-accent); letter-spacing: 0.2em; margin-bottom: 15px; font-size: 14px; }
.voices-jp-title { font-family: var(--font-heading); color: var(--color-main); font-size: 36px; font-weight: 700; line-height: 1.5; margin-bottom: 80px;  }
@media (max-width: 1023px) { 
.voices-en-title { margin-bottom: 10px;}
.voices-jp-title { font-size: 24px;  margin-bottom: 50px;  }
}

.voice-item { width: 100%; display: flex; flex-direction: column; margin-bottom: 100px;}
.voice-catch-text { font-family: var(--font-heading); font-weight: 700; font-size: 30px; color: white; background: var(--color-main); display: inline; padding: 0px 15px; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.9; border-bottom: 5px solid var(--color-sub); background-clip: padding-box; }
.voice-middle-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.voice-profile-area { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.voice-img-area { width: 130px; height: 130px; flex-shrink: 0; }
.voice-img { width: 100%; object-fit: contain;}


@media (max-width: 1023px) { 
.voice-middle-row { gap: 20px; } 
.voice-img-area { width: 100px; } 
.voice-img-placeholder { aspect-ratio: 1/1; font-size: 14px; }
.voice-profile-area { justify-content: flex-end; padding-bottom: 5px; } 

.voice-item { width: 100%; display: flex; flex-direction: column; margin-bottom: 100px;}
.voice-catch-text { font-size: 20px; padding: 0 5px;}
.voice-img-area { width: 90px; height: 90px; flex-shrink: 0; }
}

.voice-univ, .voice-offer { font-family: var(--font-heading);  color: var(--color-main); font-weight: 700; line-height: 1.5; font-size: 20px; display: block; }

.voice-body { font-family: var(--font-body); font-size: 18px; line-height: 2.0; text-align: justify; margin: 0; }

@media (max-width: 1023px) { 
.voice-univ, .voice-offer { font-size: 15px; display: block; }

.voice-body { font-size: 15px; text-align: left; } }

/* =========================================
   12. Footer
   ========================================= */
.section-footer { background: var(--color-main); color: white; padding: 100px 0 40px; position: relative; z-index: 1; }
.footer-container { max-width: 1440px; margin: 0 auto; padding: 0 25px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-title { font-family: var(--font-body); font-size: 28px; font-weight: 700; margin-bottom: 40px; }
.footer-text { font-family: var(--font-body); font-size: 18px; line-height: 2.0; margin-bottom: 60px; text-align: center; width: 100%; }
.footer-contact-box { width: 100%; max-width: 500px; background: #1F2937; padding: 40px; margin-bottom: 80px; text-align: center; border-radius: 4px; }
.footer-contact-label { font-family: var(--font-body); font-weight: 700; font-size: 18px; margin-bottom: 10px; display: block; }
.footer-contact-email { font-family: var(--font-body); font-size: 22px; display: block; }
.footer-copyright { font-family: var(--font-body); font-size: 12px; opacity: 0.6; }

@media (max-width: 1023px) { 
.footer-container { align-items: start;}
.footer-title { font-size: 24px; margin-bottom: 20px;} 
.footer-text { font-size: 15px; text-align: left; margin-bottom: 20px;} 
.footer-contact-box { padding: 15px 10px;}
.footer-contact-label { font-size: 15px; margin-bottom: 10px; display: block; }
.footer-contact-email { font-size: 15px; display: block; }

}
