/* ==========================================================================
   株式会社コモリ 
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Yuji+Syuku&family=Yuji+Boku&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Antique+Soft&display=swap');

/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Home: タイトル画像を中央やや右にオーバーレイ */
.home .hero-title-overlay {
    position: static;
    transform: none;
    width: clamp(220px, 36vw, 520px);
    height: auto;
    margin-bottom: 12px;
    pointer-events: none;
    display: block;
    align-self: flex-start;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.80)) drop-shadow(0 12px 24px rgba(0,0,0,.40));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff; /* Pull-to-refresh時の露出色を白で固定 */
    position: relative;
    overflow-x: hidden;
}
html, body { overscroll-behavior-y: none; }
body { -webkit-overflow-scrolling: touch; }

body::before { content: none !important; display: none !important; }

body::after { content: none !important; display: none !important; }

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* カラーパレット */
:root {
    --primary-blue: #0066cc;        
    --deep-blue: #003d7a;         
    --light-blue: #4da6ff;         
    --ocean-blue: #001a33;        
    --sky-blue: #e6f3ff;            
    --accent-blue: #00b4d8;        
    --accent-orange: #ff8a00;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #2d3748;
    --text-gray: #4a5568;
    --text-dark: #1a202c;
    --accent-blue: #0066cc;      
    --success-green: #00b894;      
    --premium-blue: #003d82;      
    --trust-navy: #001a33;         
    --corporate-silver: #a0aec0;
    --fresh-cyan: #00b894;         
    
    --shadow-subtle: 0 1px 3px rgba(0, 102, 204, 0.12), 0 1px 2px rgba(0, 184, 148, 0.08);
    --shadow-soft: 0 4px 12px rgba(0, 102, 204, 0.15), 0 2px 6px rgba(0, 184, 148, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 102, 204, 0.15), 0 4px 10px rgba(0, 184, 148, 0.08);
    --shadow-large: 0 20px 40px rgba(0, 102, 204, 0.15), 0 10px 20px rgba(0, 184, 148, 0.08);
    --shadow-premium: 0 25px 50px rgba(0, 102, 204, 0.25), 0 15px 30px rgba(0, 184, 148, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00b894 100%);
    --gradient-premium: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
    --gradient-subtle: linear-gradient(135deg, #e8f8f5 0%, #ffffff 100%);
    --gradient-fresh: linear-gradient(135deg, #00b894 0%, #e8f8f5 100%);
    --gradient-energy: linear-gradient(135deg, #0066cc 0%, #00b894 100%);

    /* 見出し用フォントは使用しない */
    --headline-font: inherit;
}

/* コンテナとレイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.75rem;
    color: #000;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    font-family: inherit;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* タブレット・PC: サブタイトルをタイトル右側に配置 */
@media (min-width: 768px) {
    .section-header { display: flex; align-items: baseline; gap: 16px; justify-content: flex-start; text-align: left; flex-wrap: wrap; }
    .section-header h2 { margin-bottom: 0; }
    .section-header p { margin: 0; max-width: none; }
}

/* タブレット画面: セクションヘッダーに左余白を追加 */
@media (min-width: 768px) and (max-width: 1024px) {
    .section-header {
        padding-left: 40px;
    }
    
    /* セクション内容にも左右余白を追加 */
    .container {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    /* 特定のセクション要素にも余白を適用 */
    .overview-grid,
    .voices-grid,
    .pickup-grid,
    .news-list,
    .recruit-content,
    .staff-grid,
    .company-info,
    .business-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* スマホ: タイトルの下にサブタイトル */
@media (max-width: 767px) {
    .section-header { display: block; text-align: left; }
    .section-header p { margin-top: 8px; }
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.0625rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-premium);
    background: var(--gradient-fresh);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-large);
    transform: translateY(-2px) scale(1.05);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--accent-blue);
    box-shadow: var(--shadow-subtle);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-large);
    transform: translateY(-2px) scale(1.05);
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 1.0);
    backdrop-filter: blur(25px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    box-shadow: var(--shadow-soft);
    height: 80px; /* ヘッダーの縦幅を常に固定 */
}

/* ===========================
   Header Dropdown Submenus
   PC: hover表示 / Mobile: ▽で展開
=========================== */
.nav-menu { position: relative; }
.nav-menu .nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-menu .nav-item > .nav-link { display: inline-flex; align-items: center; }
.nav-menu .submenu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--trust-navy);
    font-size: 0.9rem;
    margin-left: 6px;
    cursor: pointer;
}
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    color: var(--trust-navy);
    border: 1px solid var(--medium-gray);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1000;
}
.nav-submenu a {
    display: block;
    padding: 10px 16px;
    color: var(--trust-navy);
    white-space: nowrap;
    transition: background-color .15s ease;
}
.nav-submenu a:hover { background: var(--light-gray); }

.site-energy .nav-submenu a { position: relative; }
.site-energy .nav-submenu a:hover { color: var(--primary-blue); background: rgba(0, 102, 204, 0.05); }
/* Disable left rainbow line on submenu items */
.site-energy .nav-submenu a::before { content: none !important; }

/* PC: hoverで表示 */
@media (min-width: 1024px) {
    /* PC: サブメニューを現在位置から下方向にオフセットしてヘッダー下端から展開 */
    .nav-menu .nav-item > .nav-submenu { top: calc(100%); }
    .nav-menu .nav-item:hover > .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* PC: クリック可能領域をヘッダー高いっぱいに拡大 */
    .nav-menu .nav-item > .nav-link,
    .nav-link {
        height: 80px; /* ヘッダー高に合わせる */
        padding-top: 0;
        padding-bottom: 0;
        display: inline-flex;
        align-items: center;
    }
}

/* Mobile: ▽トグルで展開（ハンバーガー開閉時） */
@media (max-width: 1024px) {
    .nav-menu .nav-item { 
        width: 100%; 
        flex-direction: column;
        align-items: stretch;
    }
    .nav-menu .nav-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0px 16px 2px 16px; /* narrower vertical padding */
        background: transparent;
    }
    .nav-menu .nav-item-header.is-current { background: rgba(0, 102, 204, 0.10); }

    .nav-menu .submenu-toggle { 
        display: inline-flex; 
        align-items: center; 
        justify-content: center;
        font-size: 1.1rem;
        min-width: 24px;
        height: 24px;
        color: #000;
        line-height: 1;
    }
    .nav-menu .nav-submenu {
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height .25s ease;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-menu .nav-item.open > .nav-submenu { max-height: 600px; }
    .nav-menu .nav-submenu a { 
        padding: 4px 0; 
        width: max-content;
        display: block;
        text-align: left;
        color: #000;
        font-size: 0.8rem;
        font-weight: 400;
        min-width: 120px;
        margin-left: 40%;
    }
    /* Disable blue highlight (tap state) on submenu items */
    .site-energy .nav-submenu a:hover,
    .site-energy .nav-submenu a:active,
    .site-energy .nav-submenu a:focus { background: transparent !important; color: #000 !important; }

    .nav-link { background: transparent !important; }
    .nav-link:hover,
    .nav-link.active { background: transparent !important; }
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-fresh);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header:hover::before {
    opacity: 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* ヘッダーと同じ高さを維持 */
    padding: 0 20px; /* 縦方向のパディングをなくす */
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 48px; /* ホームとの間隔を広げる */
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand h1,
.nav-brand .company-name {
    margin: 0;
    width: 220px;
    height: 44px;
    background: url("../images/logo_komori.jpg") no-repeat left center / contain;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}

.nav-brand .company-tagline {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 0;
    white-space: nowrap;
    opacity: 0.8;
}

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

.nav-link {
    color: var(--dark-gray);
    font-weight: 600;
    padding: 12px 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    letter-spacing: 0.025em;
    white-space: nowrap; /* 追加: 折り返し防止 */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.05);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-fresh);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: relative;
    width: 28px;
    height: 22px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ocean-blue);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, bottom 0.3s ease;
    border-radius: 2px;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 4px; }

/* ヒーローセクション */
.hero {
    height: 100vh; /* 1画面に固定 */
    height: 100svh; /* モバイルのUIを除いた安全なビューポート */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* iOS描画安定化のため負のz-indexを回避 */
    overflow: hidden;
}

/* Home: 中央が薄く外側ほど濃くなる青いグラデーションフィルタ */
.home .hero-video::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* スライドの上に重ねる */
    background: rgba(0, 128, 255, 0.50); /* 全体の透明度を上げて軽く */
    /* 円形で中心が透明・外側ほど不透明になるマスク */
    -webkit-mask-image: radial-gradient(
        circle at 50% 50%,
        rgba(0,0,0,0) 14%,
        rgba(0,0,0,0.5) 40%,
        rgba(0,0,0,0.9) 68%,
        rgba(0,0,0,1) 100%
    );
    mask-image: radial-gradient(
        circle at 50% 50%,
        rgba(0,0,0,0) 75%,
        rgba(0,0,0,0.5) 85%,
        rgba(0,0,0,0.9) 95%,
        rgba(0,0,0,1) 100%
    );
}

/* Home: ヒーロー左下の縦3ボタン */
.home .hero-quick-links {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 3; /* グラデーションとスライドより前面 */
}
.home .hero-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    color: #0b3d62;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: .02em;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.home .hero-quick-link:hover,
.home .hero-quick-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
    background: #ffffff;
}
@media (max-width: 768px) {
    .home .hero-quick-links { left: 12px; bottom: 12px; gap: 8px; }
    .home .hero-quick-link { min-width: 200px; height: 48px; font-size: .92rem; border-radius: 12px; }
}

/* Slideshow container */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; opacity: 0; transition: opacity 1.2s ease; animation-timing-function: ease-in-out; }
.hero-slide:nth-child(1) { animation: heroFadeFirst 24s infinite; }
.hero-slide:nth-child(2) { animation: heroFade 24s infinite 8s; }
.hero-slide:nth-child(3) { animation: heroFade 24s infinite 16s; }

.hero-video img, /* fallback selector if single img remains somewhere */
.hero-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* フォールバック画像のスタイル */
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

/* Home: hero image focus slightly lower */
.home .hero-video img { object-position: center center; }
.home .hero-slides .hero-slide { object-position: center center; }
/* Second image: unified center positioning */
.home .hero-slides .hero-slide:nth-child(1) { object-position: center center; }
.home .hero-slides .hero-slide:nth-child(2) { object-position: center center; }
.home .hero-slides .hero-slide:nth-child(3) { object-position: center center; }

/* Home: 画像は高さ基準でフィット（上下は切らず、左右のみカット） */
.home .hero-slides .hero-slide,
.home .hero-video img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    max-width: none; /* グローバルimg{max-width:100%}の影響を無効化 */
}

/* Slide 2 & 3: 横幅いっぱいにし、上下のみトリミング（cover） */
.home .hero-slides .hero-slide:nth-child(2),
.home .hero-slides .hero-slide:nth-child(3) {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
}


@keyframes heroFade {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    33%  { opacity: 1; }
    39%  { opacity: 0; }
    100% { opacity: 0; }
}

/* First slide shows immediately on load */
@keyframes heroFadeFirst {
    0%   { opacity: 1; }
    33%  { opacity: 1; }
    39%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 動画が読み込まれた時の処理 */
.hero-video video:not([data-loaded]) + img {
    display: block;
}

.hero-video video[data-loaded] + img {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(21, 67, 96, 0.25) 0%, rgba(36, 113, 163, 0.10) 35%, rgba(36, 113, 163, 0.06) 50%, rgba(36, 113, 163, 0.00) 100%);
    z-index: 1; /* 背景画像の上、テキストの下 */
}







/* Always show hero slides in natural color */
.hero-video .hero-slides .hero-slide { filter: none; }

/* fish layer removed to avoid overriding wave3 overlay */

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2; 
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-family: var(--headline-font);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

/* Center hero title image */
.hero-title img {
    display: block;
    width: auto;
    max-width: clamp(180px, 24vw, 360px);
    height: auto;
    margin: 8px auto -12px; /* center horizontally */
}

/* ヒーローのテキスト・ボタンをフィルターの前面に固定 */
.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-side {
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .hero-title img { max-width: min(68vw, 400px); margin: 8px auto -10px; }
}

/* 全画面サイズで3列統一 */
@media (min-width: 640px) and (max-width: 768px) {
    .pickup-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .pickup-card.featured { grid-column: auto !important; }
    /* 全カード同一高さ */
    .pickup-grid .pickup-card .card-image { height: 200px; }
    .pickup-grid .pickup-card .card-image img { height: 100%; object-fit: cover; }
}

/* 全画面サイズで3列統一 */
@media (max-width: 639px) {
    .pickup-grid { grid-template-columns: repeat(3, 1fr) !important; }
    /* 全カード同一高さ（モバイル） */
    .pickup-grid .pickup-card .card-image { height: 120px; }
    .pickup-grid .pickup-card .card-image img { height: 100%; object-fit: cover; }
}

/* 全画面サイズで3列統一 */
@media (min-width: 640px) {
    .pickup-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .pickup-card.featured { grid-column: auto !important; }
    .pickup-grid .pickup-card:nth-of-type(2) { grid-column: auto; }
    .pickup-grid .pickup-card:nth-of-type(3) { grid-column: auto; }
}
@media (min-width: 1024px) {
    .hero-title img { margin-top: 16px; margin-bottom: -14px; }
}

/* Home: subtitle smaller and centered */
.home .hero-subtitle { text-align: center; font-size: 1.1rem; }
@media (max-width: 768px) {
    .home .hero-subtitle { text-align: center; font-size: 1rem; }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.company-overview {
    padding: 140px 0;
    background: #ffffff !important; 
    position: relative;
    overflow: hidden;
}

.company-overview::before {
    display: none; 
}

/* 海の活気を表現する波のような背景 */
.company-overview::after {
    display: none !important; 
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 40%, transparent 15%, rgba(0, 180, 216, 0.08) 15.5%, rgba(0, 180, 216, 0.08) 35%, transparent 35.5%),
        radial-gradient(ellipse at 70% 60%, transparent 15%, rgba(0, 229, 255, 0.06) 15.5%, rgba(0, 229, 255, 0.06) 35%, transparent 35.5%),
        radial-gradient(ellipse at 50% 80%, transparent 15%, rgba(0, 102, 204, 0.05) 15.5%, rgba(0, 102, 204, 0.05) 35%, transparent 35.5%),
        radial-gradient(ellipse at 20% 20%, transparent 15%, rgba(0, 180, 216, 0.04) 15.5%, rgba(0, 180, 216, 0.04) 35%, transparent 35.5%),
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 40px,
            rgba(0, 180, 216, 0.01) 40px,
            rgba(0, 180, 216, 0.01) 45px
        );
    background-size: 160px 160px, 120px 120px, 180px 180px, 100px 100px, 200px 200px;
    z-index: 1;
    opacity: 0.7;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 56px;
    margin-top: 96px;
    position: relative;
    z-index: 2;
}

.overview-item {
    text-align: center;
    padding: 56px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-fresh);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.overview-item:hover::before {
    transform: scaleX(1);
}

.overview-item:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 1);
}

.overview-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 40px;
    background: var(--gradient-fresh);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-medium);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overview-item:hover .overview-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-large);
}

.overview-item h3 {
    font-size: 1.75rem;
    color: var(--trust-navy);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

.overview-item:hover h3 {
    color: var(--primary-blue);
}

.overview-item p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.125rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.overview-item:hover p {
    color: var(--text-dark);
}

.recruit-highlight {
    padding: 120px 0;
    background: var(--white);
}

/* 採用ハイライト：横スクロールの背景スライドショー */
.recruit-highlight.has-slideshow { position: relative; overflow: hidden; }
.recruit-highlight .recruit-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.recruit-highlight .recruit-slideshow .slide-track { position: absolute; left: 0; display: -webkit-inline-flex; display: inline-flex; width: auto; white-space: nowrap; will-change: transform; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.recruit-highlight .recruit-slideshow { --slide-duration-1: 40s; --slide-duration-2: 55s; }
.recruit-highlight .recruit-slideshow .track-1 {
    top: 0;
    height: 50%;
    -webkit-animation-name: slideX;
    animation-name: slideX;
    -webkit-animation-duration: var(--slide-duration-1, 40s);
    animation-duration: var(--slide-duration-1, 40s);
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-play-state: running;
    animation-play-state: running;
}
.recruit-highlight .recruit-slideshow .track-2 {
    bottom: 0;
    height: 50%;
    -webkit-animation-name: slideXReverse;
    animation-name: slideXReverse;
    -webkit-animation-duration: var(--slide-duration-2, 55s);
    animation-duration: var(--slide-duration-2, 55s);
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-play-state: running;
    animation-play-state: running;
}
.recruit-highlight .recruit-slideshow .slide { flex: 0 0 40vw; height: 100%; position: relative; will-change: transform; -webkit-transform: translateZ(0); transform: translateZ(0); }
.recruit-highlight .recruit-slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recruit-highlight .recruit-slideshow .slideshow-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(21,67,96,.35), rgba(36,113,163,.20)); pointer-events: none; }

/* WebKit用keyframes（iOS/Safari対応） */
@-webkit-keyframes slideX {
    0% { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
    100% { -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0); }
}
@-webkit-keyframes slideXReverse {
    0% { -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0); }
    100% { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
}

/* 標準keyframes */
@keyframes slideX {
    0% { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
    100% { -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0); }
}
@keyframes slideXReverse {
    /* 上段と同じ構成で向きだけ逆。開始位置を-50%にして右方向へ循環 */
    0% { -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0); }
    100% { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
}

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

.recruit-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
    text-align: center;
}

/* 半透明の白い円（中央バブル） */
.recruit-bubble {
    position: relative;
    width: clamp(260px, 80vmin, 960px);
    height: clamp(260px, 80vmin, 960px);
    aspect-ratio: 1 / 1; 
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 30px 100px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.35);
    display: grid;
    place-items: center;
    overflow: hidden; /* モバイルでの文字はみ出しを防止 */
    padding: 3vw;
}
.recruit-bubble::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,255,255,.6), rgba(255,255,255,0));
    pointer-events: none;
}
.recruit-bubble .recruit-text { max-width: 720px; margin: 0 auto; }
.recruit-bubble .btn-primary { box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* 円内コンテンツをわずかに下げる＆中央揃え */
.recruit-bubble .recruit-text { text-align: center; transform: translateY(6%); }

/* 1440px時の比率を基準に、vminでスケール（円= vmin基準と同調） */
.recruit-highlight .recruit-text h2 { font-size: clamp(10px, 5.4vmin, 64px) !important; }
.recruit-highlight .recruit-text p { font-size: clamp(5px, 2.0vmin, 22px) !important; }
.recruit-highlight .recruit-points li { font-size: clamp(10px, 2.25vmin, 25px) !important; font-weight: 700; }
.recruit-highlight .btn { font-size: clamp(10px, 2.25vmin, 28px) !important; padding: clamp(10px, 1.5vmin, 20px) clamp(25px, 3vmin, 40px) !important; border-radius: clamp(12.5px, 1.5vmin, 17.5px) !important; }
/* ボタンを必ず箇条書きの下に配置し、中央に置く */
.recruit-highlight .recruit-text .btn {
    display: block;
    width: max-content;
    margin: clamp(12px, 1.8vmin, 20px) auto 0;
}

/* 文字の強制折り返しで円外へのはみ出しを防ぐ */
.recruit-bubble .recruit-text, .recruit-bubble .recruit-text * { overflow-wrap: anywhere; word-break: break-word; }





.recruit-text h2 {
    font-size: 2.6rem;
    color: #0b2942;
    margin-bottom: clamp(8px, 1.8vmin, 24px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: inherit;
    text-shadow: none;
}

.recruit-text p {
    font-size: 1.05rem;
    color: #1a2a44;
    line-height: 1.85;
    margin-bottom: clamp(6px, 1.4vmin, 16px);
    font-weight: 400;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    text-shadow: none;
}

/* 最初の説明文だけ余白を広めにする */
.recruit-highlight .recruit-text p:first-of-type {
    margin-bottom: clamp(14px, 3.0vmin, 32px) !important;
}

.recruit-points {
    margin-bottom: clamp(10px, 2.0vmin, 28px);
    display: inline-block;
    text-align: left;
    margin-left: 0;
}

.recruit-points li {
    position: relative;
    padding-left: 0;
    margin-bottom: clamp(6px, 1.2vmin, 16px);
    color: #1a2a44;
    font-size: 0.98rem;
    line-height: 1.55;
    font-weight: 400;
    text-shadow: none;
}

.recruit-points li::before { content: none; }

.recruit-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recruit-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-premium);
}

/* セクション全体の余白最適化とボタン視認性向上 */
.recruit-highlight { padding: 90px 0; }
.recruit-highlight .recruit-text { max-width: 820px; margin: 0 auto; }
.recruit-highlight .btn-primary { box-shadow: 0 12px 30px rgba(0,0,0,.25); }



/* 社員の声セクション */
.staff-voices {
    padding: 100px 0;
    background: #f8fafc;
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.voice-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 460px;
}

.voice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.voice-photo {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 280px;
}

.voice-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    border-radius: 16px 16px 0 0;
}

.voice-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 104px;
    background: linear-gradient(transparent, rgba(0, 26, 51, 0.8));
    padding: 30px 24px 0px;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.voice-info h3.voice-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
}

.voice-info p.voice-position {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.voice-content {
    padding: 22px 24px;
    flex: 1;
    background: white;
    border-radius: 0 0 16px 16px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    border-top: 3px solid #f1f5f9;
}

.voice-quote {
    margin-top: 8px;
    margin-bottom: 12px;
}

.voice-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d3748;
    margin: 0;
    font-style: italic;
    position: relative;
    padding: 0 16px 0 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.voice-quote p::before, .voice-quote p::after { content: none; }

.voice-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.voice-tags .tag {
    background: linear-gradient(45deg, var(--primary-blue), #0099cc);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(93, 173, 226, 0.3);
}

.voices-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.voices-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a202c;
    font-family: 'Noto Sans JP', sans-serif;
}

.voices-cta .nowrap {
    white-space: nowrap;
}

.voices-cta .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .staff-voices {
        padding: 80px 0;
    }
    
    .voices-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 50px;
    }
    
    .voice-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .voice-photo {
        height: 250px;
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: 250px;
    }
    
    .voice-photo img {
        border-radius: 16px 16px 0 0;
        height: 250px;
    }
    
    .voice-overlay {
        height: 100px;
    }
    
    .voice-content {
        padding: 24px;
        border-top: 2px solid #f1f5f9;
    }
    
    .voice-quote p {
        font-size: 1rem;
        padding: 0 16px;
    }
    
    .voices-cta {
        margin-top: 50px;
        padding: 30px 20px;
    }
    
    .voices-cta h3 {
        font-size: 1.6rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .voices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

.voice-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.voice-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top; /* 上部を優先して表示 */
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-card:hover .voice-image img {
    transform: scale(1.05);
}

.voice-content {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.voice-content h3 {
    font-size: 1.375rem;
    color: var(--trust-navy);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.voice-position {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    font-weight: 500;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--medium-gray);
}

.voice-text {
    color: var(--text-gray);
    line-height: 1.8;
    font-style: italic;
    font-size: 1rem;
    position: relative;
    padding-left: 24px;
    margin-top: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    flex: 1;
    font-weight: 400;
}

.voice-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: bold;
    line-height: 1;
}

/* ニュースセクション */
.news-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 85% 15%, rgba(0, 229, 255, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 15% 85%, rgba(0, 180, 216, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 204, 0.02) 0%, transparent 35%);
    z-index: 1;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 24px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(93, 173, 226, 0.12);
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--fresh-cyan));
    border-radius: 2px 0 0 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(93, 173, 226, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(93, 173, 226, 0.15);
}

.news-item:hover::before {
    opacity: 1;
}

.news-date {
    color: var(--primary-blue);
    font-weight: 600;
    min-width: 110px;
    font-size: 0.9rem;
    background: rgba(93, 173, 226, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 20px;
    flex-shrink: 0;
}

.news-item h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}

.news-item a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.news-item:hover a {
    color: var(--primary-blue);
}

.news-more {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 6;
}

.news-more .btn {
    position: relative;
    z-index: 7;
    pointer-events: auto;
}

.footer {
    background: 
        linear-gradient(rgba(0, 26, 51, 0.8), rgba(0, 26, 51, 0.9)),
        url('../images/22043373_m.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.3);
    z-index: 1;
    opacity: 0.7;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--fresh-cyan), var(--light-blue), var(--accent-blue));
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
    z-index: 2;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 80px;
    row-gap: 40px;
    position: relative;
    z-index: 3;
}

.footer-info h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-nav a:hover {
    color: var(--fresh-cyan);
    transform: translateX(5px);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    position: relative;
    z-index: 3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.fixed-recruit-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: inline-block;
    border-radius: 50px;
}

.fixed-recruit-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    animation: pulseOrange 2s infinite;
    pointer-events: none;
}

.fixed-recruit-btn .btn {
    padding: 18px 32px;
    font-weight: 700;
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(15px);
    font-size: 1.125rem;
    border-radius: 50px;
    background: var(--gradient-energy);
    color: var(--white);
    border: 2px solid var(--premium-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1; 
}

.fixed-recruit-btn .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.fixed-recruit-btn .btn:hover::before {
    left: 100%;
}

.fixed-recruit-btn .btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--shadow-premium);
    border-color: var(--fresh-cyan);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(0, 229, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

@keyframes pulseOrange {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.55);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 16px rgba(0, 102, 204, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

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

@keyframes oceanBreathing {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: scale(1.1) rotate(1deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.9) rotate(-1deg);
        opacity: 0.9;
    }
    75% {
        transform: scale(1.05) rotate(0.5deg);
        opacity: 0.85;
    }
}

@keyframes waveFlow {
    0% {
        transform: translateX(-10%) translateY(-5%) rotate(0deg);
    }
    25% {
        transform: translateX(0%) translateY(0%) rotate(1deg);
    }
    50% {
        transform: translateX(5%) translateY(2%) rotate(0deg);
    }
    75% {
        transform: translateX(-2%) translateY(-1%) rotate(-1deg);
    }
    100% {
        transform: translateX(-10%) translateY(-5%) rotate(0deg);
    }
}

@keyframes marketEnergy {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes oceanSparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}


@keyframes seigaiha {
    0% {
        background-position: 0 0, 40px 40px, 20px 80px, 60px 20px, 80px 60px;
        transform: rotate(0deg);
    }
    25% {
        background-position: 10px 10px, 50px 50px, 30px 90px, 70px 30px, 90px 70px;
        transform: rotate(0.5deg);
    }
    50% {
        background-position: 20px 0px, 60px 40px, 40px 80px, 80px 20px, 100px 60px;
        transform: rotate(0deg);
    }
    75% {
        background-position: 10px -10px, 50px 30px, 30px 70px, 70px 10px, 90px 50px;
        transform: rotate(-0.5deg);
    }
    100% {
        background-position: 0 0, 40px 40px, 20px 80px, 60px 20px, 80px 60px;
        transform: rotate(0deg);
    }
}

@keyframes waveRipple {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.4;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.8;
    }
}

/* アイコンフォント代替（テキストベース） */
.icon-fish::before { content: '🐟'; }
.icon-team::before { content: '👥'; }
.icon-trust::before { content: '🤝'; }

/* レスポンシブデザイン */
/* ヘッダー: 1024px未満はハンバーガー */
@media (max-width: 1024px) {
    .nav-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-right: 0; /* レスポンシブ時は間隔をリセット */
    }

    .nav-brand a {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .nav-brand .company-name {
        width: 190px;
        height: 38px;
    }

    .nav-brand .company-tagline {
        font-size: 0.7rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        text-align: center;
        padding: 8px 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        pointer-events: none; /* prevent overlay from blocking page scroll when closed */
    }

    .nav-menu.active {
        left: 0;
        gap: 0;
        justify-content: center;
        align-items: stretch;
        pointer-events: auto; /* enable interactions only when open */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .nav-link {
        font-size: 1rem;
        padding: 6px 16px;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap; /* 追加: 折り返し防止 */
    }

    .nav-menu.active {
        left: 0;
        gap: 0;
        justify-content: center;
        align-items: stretch;
    }
    /* モバイル: リンクの中央揃えと行全体ハイライト */
    .nav-link::after { content: none}
    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 102, 204, 0.10);
        transform: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* 完全に中心で交差するXアイコン */
    .nav-toggle.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    /* ハンバーガー時にプルダウンボタンとサブメニューを表示 */
    .nav-menu .submenu-toggle { display: inline-flex !important; }
    .nav-menu .nav-submenu { display: block !important; }

    .nav-toggle.active span:nth-child(1) {}

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .recruit-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 900px〜1024px: 3列を等間隔に維持（2・3列が右に寄らないよう調整） */
    .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 40px;
        row-gap: 40px;
    }
}

@media (max-width: 900px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* Hide sub-menu items, show only main page titles */
    .footer-links {
        display: none;
    }
    
    /* Adjust spacing for main titles only */
    .footer-section {
        margin-bottom: 10px;
    }
    
    .footer-subtitle {
        margin-bottom: 0;
    }

    /* 900px以下：表示順を指定（会社情報は最上段固定） */
    .footer-section.footer-brand { order: 0; }
    .footer-section.footer-main { order: 1; }
    .footer-section.footer-business { order: 2; }
    .footer-section.footer-staff { order: 3; }
    .footer-section.footer-company { order: 4; }
    .footer-section.footer-news { order: 5; }
    .footer-section.footer-recruit { order: 6; }
    .footer-section.footer-contact { order: 7; }
}

/* 1024px〜1439px: ヘッダー要素の間隔を圧縮し、必要に応じて文字を小さく */
@media (min-width: 1024px) and (max-width: 1439px) {
    .nav-brand { margin-right: 24px; }
    .nav-brand .company-name { width: 200px; height: 40px; }
    .nav-menu { gap: 20px; }
    .nav-link { padding: 10px 10px; font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .nav-brand .company-tagline {
        display: none;
    }

    .nav-brand .company-name {
        width: 170px;
        height: 34px;
    }

    .container {
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .voices-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 60px;
    }

    .voice-content {
        padding: 24px 20px;
    }

    .voice-text {
        font-size: 0.95rem;
        line-height: 1.7;
        padding-left: 20px;
    }

    .recruit-text h2 {
        font-size: 2rem;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .news-item h3 {
        margin-left: 0;
        margin-top: 10px;
    }

    .fixed-recruit-btn {
        bottom: 20px;
        right: 20px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .recruit-text h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 

/* 統一ページヒーロー基盤スタイル */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.page-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.page-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}
.page-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

/* 統一ページヒーロー */
.page-hero.unified-hero {
    min-height: 500px;
    height: 70vh;
    padding: 0;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    text-align: center;
    margin-top: 80px;
}
.page-hero.unified-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.page-hero.unified-hero .page-hero-content,
.page-hero.unified-hero .hero-content {
    position: relative;
    z-index: 2;
}
.page-hero.unified-hero .page-title,
.page-hero.unified-hero .hero-content .page-title {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.025em;
    line-height: 1.2;
    font-family: var(--headline-font);
    color: #fff;
}
.page-hero.unified-hero .page-subtitle,
.page-hero.unified-hero .hero-content .page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    color: #fff;
}

/* ページ別 背景イメージ */
.hero-bg-philosophy {
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(30,58,138,0.6)), url('../images/0319-GRL_2967.jpg');
}

.site-energy .page-hero.unified-hero.hero-bg-philosophy::after { display: none !important; }
.site-energy .hero.hero-bg-philosophy::after { display: none !important; }
.hero-bg-business {
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(30,58,138,0.6)), url('../images/0203-GRL_2766.jpg');
}
.hero-bg-recruit {
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(30,58,138,0.6)), url('../images/0292-GRL_2948.jpg');
}
.hero-bg-company {
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(30,58,138,0.6)), url('../images/0104-GRL_2622.jpg');
}
.hero-bg-news {
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(30,58,138,0.6)), url('../images/0120-GRL_2635.jpg');
}
.hero-bg-contact {
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(30,58,138,0.6)), url('../images/0017-DSC_3291.jpg');
}
.hero-bg-staff {
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(30,58,138,0.6)), url('../images/0244-GRL_2843.jpg');
    background-position: 70% center;
}

/* iOS(Safari)で背景画像が描画されない対策: 背景の明示設定を強化 */
.site-energy .page-hero.unified-hero[class*="hero-bg-"] {
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover; /* iOS対策 */
    background-attachment: scroll;  /* fixedは禁止（iOS描画不具合回避） */
}

/* ヘッダー「採用情報」リンクの背後にblue-wave.pngを配置 */
.nav .nav-menu .nav-link[href*="recruit"],
.nav .nav-menu .nav-link[href*="komori-LP-design"] {
    position: relative;
    z-index: 0;
}
.nav .nav-menu .nav-link[href*="recruit"],
.nav .nav-menu .nav-link[href*="komori-LP-design"] {
    /* 文字に白い縁取り（多重テキストシャドウでアウトライン） */
    text-shadow:
        1px 0 #ffffff,
       -1px 0 #ffffff,
        0 1px #ffffff,
        0 -1px #ffffff,
        1px 1px #ffffff,
       -1px 1px #ffffff,
        1px -1px #ffffff,
       -1px -1px #ffffff;
}
.nav .nav-menu .nav-link[href*="recruit"]::after,
.nav .nav-menu .nav-link[href*="komori-LP-design"]::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-48%);
    bottom: 1em; /* 少し上に配置 */
    width: 150%;    /* もう少し大きく */
    height: 2em;  /* 高さも拡大 */
    background: url('../images/blue-wave.png') no-repeat center / contain;
    z-index: -1; /* テキストの背面 */
    pointer-events: none;
}

/* 1024px以下（ハンバーガーメニュー時）は少し左へ寄せる */
@media (max-width: 1024px) {
    .nav .nav-menu .nav-link[href*="recruit"]::after,
    .nav .nav-menu .nav-link[href*="komori-LP-design"]::after {
        transform: translateX(-49.8%);
    }
}
@media (max-width: 768px) {
    .page-hero.unified-hero {
        height: 60vh;
        min-height: 300px;
        background-attachment: scroll;
        margin-top: 70px;
    }
    /* タイトル/サブタイトルを全ページで統一・中央揃え */
    .page-hero.unified-hero .hero-content,
    .page-hero.unified-hero .page-hero-content { text-align: center; align-items: center; justify-content: center; }
    .page-hero.unified-hero .page-title { font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.25; margin-bottom: .85rem; }
    .page-hero.unified-hero .page-subtitle { font-size: clamp(.95rem, 3.2vw, 1rem); line-height: 1.6; max-width: 90vw; margin: 0 auto; }
} 

.page-hero.unified-hero.hero-bg-news {
    margin-top: 0;
}
@media (max-width: 768px) {
    .page-hero.unified-hero.hero-bg-news {
        margin-top: 0;
    }
} 

.page-hero.unified-hero.hero-bg-contact {
    margin-top: 0;
}
@media (max-width: 768px) {
    .page-hero.unified-hero.hero-bg-contact {
        margin-top: 0;
    }
} 

/* Home page playful enhancements */
.home .hero {
    position: relative;
}
.home .hero-decor .blob {
    position: absolute;
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 50% 60% 55% 65% / 60% 55% 65% 50%;
    filter: blur(6px);
    opacity: 0.18;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}
.home .blob-1 { top: 12%; left: 8%; background: radial-gradient(circle at 30% 30%, rgba(0,229,255,.35), rgba(0,102,204,.2)); animation-delay: 0s; }
.home .blob-2 { bottom: 10%; right: 10%; width: 280px; height: 280px; background: radial-gradient(circle at 70% 40%, rgba(255,107,53,.25), rgba(0,229,255,.15)); animation-delay: 0.6s; }
.home .blob-3 { top: 20%; right: 25%; width: 180px; height: 180px; background: radial-gradient(circle at 40% 60%, rgba(99,102,241,.25), rgba(0,102,204,.12)); animation-delay: 1.2s; }

/* Angled section backgrounds */
.home .company-overview { position: relative; }
.home .company-overview::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(0,229,255,.08), rgba(0,102,204,.06));
    transform: skewY(-3deg);
    z-index: 0;
}

/* Cards: playful hover lift */
.home .overview-item { transform: translateY(0) scale(1); }
.home .overview-item:hover { transform: translateY(-12px) scale(1.02); }
.home .voice-card { transform: translateY(0); }
.home .voice-card:hover { transform: translateY(-10px); }

/* Buttons micro bounce */
.home .btn { transition: transform .2s ease, box-shadow .2s ease; }
.home .btn:active { transform: translateY(0) scale(.98); }

/* Grid tweaks for playful spacing */
@media (min-width: 1024px) {
    .home .overview-grid { gap: 64px; }
    .home .voices-grid { gap: 56px; }
} 

.np-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
}
.overview-icon .np-icon {
    filter: brightness(0) invert(1);
}

.strength-icon .np-icon {
    filter: brightness(0) saturate(100%);
}

.category-icon .np-icon {
    filter: none;
} 

.site-clean body::before,
.site-clean body::after { display: none; }
.site-clean .header { background: #ffffff; backdrop-filter: none; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-clean .nav-link { border-radius: 0; padding: 14px 8px; }
.site-clean .nav-link:hover,
.site-clean .nav-link.active { background: transparent; color: var(--ocean-blue); }

.site-clean .section-header { text-align: left; margin-bottom: 48px; }
.site-clean .section-header h2 { color: var(--text-dark); background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--text-dark); font-weight: 800; letter-spacing: -0.02em; }
.site-clean .section-header p { color: var(--text-gray); max-width: 720px; }

.site-clean .overview-item,
.site-clean .voice-card,
.site-clean .product-card,
.site-clean .strength-card,
.site-clean .client-category,
.site-clean .department-card,
.site-clean .cert-card { box-shadow: 0 4px 16px rgba(0,0,0,.06); border: 1px solid #eaeef3; }

.site-clean .btn-primary { background: #0a66c2; border-color: #0a66c2; }
.site-clean .btn-outline { border-color: #0a66c2; color: #0a66c2; }
.site-clean .btn-secondary { border-color: #0a66c2; color: #0a66c2; background: #ffffff; }
.site-clean .btn-secondary:hover { background: #0a66c2; color: #fff; }

.site-clean .footer { background: #0f172a; background-image: none; }
.site-clean .footer::after { display: none; }

.site-clean .page-hero.unified-hero .page-title { font-family: inherit; }
.site-clean .page-hero.unified-hero .page-subtitle { font-family: inherit; }

/* Home subtle */
.site-clean.home .hero-decor { display: none; } 

.site-energy .header { background: rgba(255,255,255,1.0); backdrop-filter: blur(10px); border-bottom: 2px solid rgba(0,102,204,.12); box-shadow: 0 12px 30px rgba(0,102,204,.08); }
.site-energy .nav-link { position: relative; }
.site-energy .nav-link::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: auto;
    bottom: 6px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #00b894);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    border-radius: 2px;
}
.site-energy .nav-link:hover::after,
.site-energy .nav-link.active::after {
    transform: scaleX(1);
}

.site-energy .section-header { text-align: left; margin-bottom: 56px; }
.site-energy .section-header h2 { color: var(--text-dark); background: none; position: relative; display: inline-block; padding-right: 10px; font-family: inherit; }
.site-energy .section-header h2::after { content: ''; display: inline-block; width: 56px; height: 8px; margin-left: 14px; background: linear-gradient(135deg, #0066cc, #00a8e8); border-radius: 4px; transform: skewX(-20deg); }

/* Slanted separators between sections */
.site-energy .company-overview,
.site-energy .staff-voices,
.site-energy .products,
.site-energy .strengths,
.site-energy .clients,
.site-energy .business-flow,
.site-energy .news-section { position: relative; }

/* 会社概要: 装飾なし（フラット） */
.site-energy .company-overview::after { display: none; }

/* 社員の声: 細いグラデーション帯（直線） */
.site-energy .staff-voices { overflow: visible; }
.site-energy .staff-voices::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 18px; background: linear-gradient(90deg, rgba(0,229,255,.45), rgba(255,107,53,.45)); border-radius: 10px; z-index: 2; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.08); }

/* 商品: 三角装飾を縮小して控えめに */
.site-energy .products { overflow: visible; }
.site-energy .products::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 48px; background: linear-gradient(135deg, rgba(0,229,255,.22), rgba(0,102,204,.22)); transform: skewY(-2deg); z-index: 2; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.06); }

/* 強み: 波形パターン */
.site-energy .strengths { overflow: visible; }
.site-energy .strengths::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 90px; background: url('../images/wave-pattern.svg') center bottom repeat-x; background-size: 160px 90px; opacity: .35; z-index: 2; pointer-events: none; filter: saturate(120%); }

/* 取引先: 点線風のストライプ帯 */
.site-energy .clients { overflow: visible; }
.site-energy .clients::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 16px; background: repeating-linear-gradient(90deg, rgba(0,102,204,.35) 0 10px, rgba(0,102,204,0) 10px 20px); border-radius: 8px; z-index: 2; pointer-events: none; }

/* 業務フロー: フラットなグラデーション帯 */
.site-energy .business-flow { overflow: visible; }
.site-energy .business-flow::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 14px; background: linear-gradient(90deg, rgba(0,229,255,.45), rgba(0,102,204,.45)); border-radius: 8px; z-index: 2; pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,.06); }

/* ニュース: 装飾なし */
.site-energy .news-section::after { display: none; }

/* Kinetic card borders */
.site-energy .overview-item,
.site-energy .voice-card,
.site-energy .product-card,
.site-energy .strength-card,
.site-energy .client-category { border: 2px solid transparent; background-clip: padding-box; position: relative; }
.site-energy .overview-item::before,
.site-energy .voice-card::before,
.site-energy .product-card::before,
.site-energy .strength-card::before,
.site-energy .client-category::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; background: linear-gradient(135deg, rgba(0,229,255,.6), rgba(99,102,241,.5), rgba(255,107,53,.6)); z-index: -1; filter: blur(8px); opacity: .35; transition: opacity .3s ease; }
.site-energy .overview-item:hover::before,
.site-energy .voice-card:hover::before,
.site-energy .product-card:hover::before,
.site-energy .strength-card:hover::before,
.site-energy .client-category:hover::before { opacity: .7; }

/* Hero kinetic accent - globally disabled per design */
.site-energy .hero::after,
.site-energy .page-hero.unified-hero::after { display: none !important; }

@keyframes pulseKinetic {
    0%, 100% { transform: scale(1) translate(0,0) rotate(0deg); opacity: .8; }
    50% { transform: scale(1.08) translate(-10px, 6px) rotate(2deg); opacity: 1; }
}

/* CTA energy underline */
.site-energy .btn-primary, .site-energy .btn-outline, .site-energy .btn-secondary { position: relative; overflow: hidden; }
.site-energy .btn-primary::after, .site-energy .btn-outline::after, .site-energy .btn-secondary::after { content: ''; position: absolute; top: auto; left: 0; right: auto; bottom: 0; width: 140%; height: 3px; background: linear-gradient(90deg, #0066cc, #00a8e8); transform: translateX(-100%); transition: transform .45s ease; }
.site-energy .btn-primary:hover::after, .site-energy .btn-outline:hover::after, .site-energy .btn-secondary:hover::after { transform: translateX(0); }

/* Keep typography intact */
.site-energy .page-hero.unified-hero .page-title,
.site-energy .page-hero.unified-hero .page-subtitle,
.site-energy .hero-title,
.site-energy .section-header h2 { font-family: inherit; } 

/* Quick nav */
.quick-nav { position: sticky; top: 64px; z-index: 900; background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,.06); }
.quick-nav .quick-nav-list { display: flex; gap: 16px; padding: 8px 0; overflow-x: auto; }
.quick-nav .quick-nav-list a { display: inline-block; padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--ocean-blue); background: rgba(0,102,204,.06); }
.quick-nav .quick-nav-list a:hover { background: rgba(0,102,204,.12); }

/* Hero side CTA */
.hero { position: relative; }
.hero-side { position: absolute; left: 24px; right: auto; bottom: 24px; display: grid; gap: 12px; z-index: 5; }
.hero-card { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.9); border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 20px rgba(0,0,0,.08); color: var(--ocean-blue); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hero-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.hero-card-title { font-weight: 800; letter-spacing: -0.01em; }
.hero-card-sub { font-size: .9rem; opacity: .8; }

@media (max-width: 968px) {
    .hero-side { position: static; margin: 16px auto 0; max-width: 1200px; padding: 0 20px; grid-template-columns: repeat(3, 1fr); }
    .hero-card { background: rgba(255,255,255,.95); }
}
@media (max-width: 640px) {
    .hero-side { grid-template-columns: 1fr; }
}

/* Voices horizontal on wide */
@media (min-width: 1100px) {
    .voices-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(420px, 1fr); overflow-x: auto; gap: 24px; padding-bottom: 8px; }
    .voice-card { min-width: 420px; }
}

/* Home: hide horizontal scrollbar in staff voices (keep scrolling functional) */
@media (min-width: 1100px) {
    .home .voices-grid { -ms-overflow-style: none; scrollbar-width: none; overflow-y: hidden; }
    .home .voices-grid::-webkit-scrollbar { display: none; }
}

/* News compact two-col */
@media (min-width: 900px) {
    .home .news-list { display: flex; flex-direction: column; gap: 16px; }
} 

/* Lift hero content (home only) */
.home .hero-content { transform: translateY(-18px); }
.home .hero-subtitle, .home .hero-buttons { transform: none; }
@media (max-width: 768px) {
    .home .hero-content { transform: translateY(-12px); }
} 

/* Mobile hero layout */
@media (max-width: 640px) {
    .hero-title { text-align: left; }
    .hero-title img { display: none; }
    .hero-title-text { display: inline-block; color: #fff; font-weight: 900; font-size: 2.4rem; line-height: 1.05; letter-spacing: -.02em; text-shadow: 1px 2px 3px rgba(0,0,0,.4); }

    .hero-content { display: grid; gap: 10px; justify-items: start; }
    .hero-subtitle { text-align: left; }
    .hero-buttons { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; }
    .hero-buttons .btn { width: 100%; }

    /* Stack hero content vertically so cards come below buttons */
    .hero { display: flex; flex-direction: column; align-items: stretch; }
    .hero-content { order: 1; width: 100%; }
    .hero-side { order: 2; margin-top: 12px; position: static; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    /* Hide the three cards on smartphones */
    .hero-side { display: none !important; }
    /* Show image title on smartphones, hide text fallback */
    .hero-title img { display: block; }
    .hero-title-text { display: none !important; }
}

/* Desktop: hide text fallback */
@media (min-width: 641px) {
    .hero-title-text { display: none; }
} 

/* Ensure hero title centers the image reliably */
.home .hero-title { display: grid; place-items: center; width: 100%; text-align: center; }
.hero-title img { display: block; width: auto; max-width: clamp(240px, 40vw, 560px); height: auto; margin: 8px auto -12px; }

/* Home only: make hero title image much smaller (override later rules) */
.home .hero .hero-title img { max-width: clamp(360px, 38vw, 640px) !important; max-height: 80vh; max-height: 80svh; width: auto; }

/* Home: make hero title image notably smaller */
.home .hero-title img { max-width: clamp(180px, 24vw, 360px); }

/* Home: add soft black drop shadow around title image */
.home .hero-title img { filter: drop-shadow(0 2px 4px rgba(0,0,0,.85)) drop-shadow(0 10px 24px rgba(0,0,0,.50)); }

/* Home: make hero title shrink to image width */
.home .hero .hero-title { display: inline-block; width: auto !important; }

/* Home: subtitle smaller and centered */
.home .hero-subtitle { text-align: center; font-size: 1rem; }
@media (max-width: 768px) {
    .home .hero-subtitle { text-align: center; font-size: 0.9rem; }
    .home .hero-subtitle .hero-mark { background: rgba(0, 0, 0, 0.45); display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}

/* Tablet/PC: place vertical subtitle to the left of the title image */
@media (min-width: 768px) {
    .home .hero-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        
    }
    .home .hero-subtitle {
        order: -1; /* move to the left side */
        writing-mode: vertical-rl;
        text-orientation: mixed;
        text-align: initial;
        font-size: 1.35rem;
        line-height: 1.8;
        letter-spacing: 0.05em;
        margin: 0;
        color: #fff;
        opacity: 0.95;
    }
    .home .hero-subtitle .hero-mark { background: rgba(0, 0, 0, 0.45); display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}

/* Ensure mobile layout keeps centered image and subtitle */
@media (max-width: 640px) {
    .hero-title { text-align: center; }
    .hero-title img { display: block; margin-left: auto; margin-right: auto; margin-bottom: 16px; }
} 

/* Home mobile: title image smaller on smartphones */
@media (max-width: 640px) {
    .home .hero .hero-title img {
        max-width: clamp(180px, 70vw, 600px) !important;
        max-height: 70vh;
        max-height: 70svh;
        width: auto;
    }
}

/* Home mobile: force hero content and subtitle to center */
@media (max-width: 640px) {
    .home .hero-content { display: grid; justify-items: center !important; text-align: center !important; width: 100%; transform: translateY(-34px); }
    .home .hero-subtitle { text-align: center !important; margin-left: auto; margin-right: auto; }
    .home .hero-buttons { justify-content: center; }
} 

@media (min-width: 641px){
    /* Tablet: hide the three cards and center remaining hero elements */
    .home .hero-side { display: none !important; }
    .home .hero-title { display: grid; place-items: center; text-align: center; }
    .home .hero-content { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 50px; text-align: initial; width: 100%; gap: 10%; transform: translateX(-7%) translateY(-34px); }
    .home .hero-subtitle { order: -1; writing-mode: vertical-rl; text-orientation: mixed; text-align: initial; margin: 0; line-height: 1.8; letter-spacing: 0.05em; font-size: 1.35rem; transform: translateY(50px); }
    .home .hero-subtitle .hero-mark { background: rgba(0, 0, 0, 0.35); display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
    .home .hero-buttons { justify-content: center; }
} 

/* Lower hero buttons slightly (home) */
.home .hero-buttons { margin-top: 8px; }

@media (min-width: 641px) and (max-width: 1024px) {
    /* Tablet: slightly larger hero image and subtitle (home) */
    .home .hero-title img { max-width: min(45vw, 600px); }
    .home .hero-subtitle { font-size: 1.1rem; }
    /* Buttons a bit lower on tablet */
    .home .hero-buttons { margin-top: 12px; }
} 

/* Home: further adjustments for hero sizing and spacing */
.home .hero-buttons { margin-top: 16px; }
@media (min-width: 641px) and (max-width: 1024px) {
    .home .hero-title img { max-width: min(52vw, 640px); }
    .home .hero-subtitle { font-size: 1.3rem; }
    .home .hero-buttons { margin-top: 24px; }
}
@media (min-width: 1025px) {
    .home .hero-title img { max-width: clamp(300px, 44vw, 640px); }
    .home .hero-subtitle { font-size: 1.4rem; }
    .home .hero-buttons { margin-top: 20px; }
} 

.hero-sentinel { height: 1px; width: 100%; }

/* Home: スクロール時ヘッダー表示制御 */
.home .header {
    position: fixed !important;
    top: -120px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 10000 !important;
    transition: top 0.4s ease, opacity 0.3s ease !important;
    transform: none !important;
}

.home .header.is-show {
    top: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}


/* 会社概要セクション - コモリの強み */
.komori-strength {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.komori-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 184, 148, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.strength-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.strength-badge {
    display: inline-block;
    background: linear-gradient(45deg, #0066cc, #00b894);
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.strength-title {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 2rem;
    letter-spacing: 0.08em;
}

.strength-title .title-main {
    display: block;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeInSlide 1s ease-out forwards;
}

.strength-title .title-highlight {
    display: block;
    background: linear-gradient(135deg, #003d82 0%, #0066cc 50%, #00b894 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 5rem;
    margin: 1rem 0;
    position: relative;
    opacity: 0;
    animation: fadeInSlide 1s ease-out 0.2s forwards;
}

.strength-title .title-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00b894, transparent);
    border-radius: 2px;
}

.strength-title .title-sub {
    display: block;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fadeInSlide 1s ease-out 0.4s forwards;
}

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

.strength-message {
    font-size: clamp(14px, 2.8vw, 21px);
    line-height: 1.8;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
}

/* 強調文先頭の一文だけをビューポート連動で強めに縮小 */
.strength-message .fluid-shrink {
    font-size: inherit;
    display: inline-block;
}

/* 強調文の2パートのみで折り返しを許可（各パート内は改行させない） */
.strength-message .nowrap {
    white-space: nowrap;
}

/* 実績数値 */
.komori-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.05), rgba(0, 184, 148, 0.05));
    border-radius: 20px;
}

.achievement-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #00b894);
    border-radius: 2px;
}

.achievement-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #0066cc, #00b894);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: inherit;
}

.achievement-label {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 600;
    line-height: 1.4;
}

/* 縦並び（狭幅）時の実績ブロック最適化 */
@media (max-width: 600px) {
    .komori-achievements {
        gap: 1rem;
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    .achievement-card {
        padding: 1rem 0.5rem;
    }
    .achievement-number {
        margin-bottom: 0.5rem;
    }
    /* ラベルは1行に収める（改行タグを無効化） */
    .komori-achievements .achievement-label br {
        display: none;
    }
}
/* コモリの強み */
.komori-strengths {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.strength-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.strength-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.strength-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #00b894);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.strength-item:hover::before {
    transform: scaleX(1);
}

.strength-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.1), rgba(0, 184, 148, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Home(メイン)ページ: アイコン背景を白い四角に */
.komori-strengths .strength-icon {
    background: #ffffff !important;
    border-radius: 20px !important; 
    width: 96px;
    height: 96px;
    box-shadow: 0 14px 38px rgba(0,0,0,.14), 0 6px 18px rgba(0,0,0,.10), inset 0 0 0 1px rgba(0,0,0,.06);
    overflow: visible; 
    align-self: center; /* カード高さに対して縦中央配置 */
}

/* ホームのアイコンは白色で表示 */
.komori-strengths .strength-icon .np-icon {
    width: 64px !important;
    height: 64px !important;
    filter: none !important; /* 元画像の色を活かす */
    object-fit: contain;
    display: block;
    mix-blend-mode: normal;
    opacity: 1;
    position: relative;
    z-index: 2;
}

.komori-strengths .strength-icon.blank::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(26,42,68,.06), transparent);
}
.komori-strengths .strength-item:first-of-type .icon-svg path:first-of-type {
    fill: #1a2a44;
    stroke: #1a2a44;
}

.komori-strengths .icon-pulse {
    display: block !important;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(0,229,255,.25), transparent 65%);
    z-index: 1;
}

.strength-icon .np-icon {
    width: 40px;
    height: 40px;
    z-index: 2;
    object-fit: contain;
    display: block;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3), transparent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.strength-content h3 {
    font-size: clamp(18px, 2.6vw, 24px);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    font-family: inherit;
}

/* 強み: 右側テキストとバッジを最前面に */
.komori-strengths .strength-content { position: relative; z-index: 5; }
.komori-strengths .strength-content h3,
.komori-strengths .strength-content p,
.komori-strengths .feature-tag { position: relative; z-index: 6; font-family: inherit; }

@media (min-width: 768px) {
    /* 768px以上はアイコン右の余白（項目間ギャップ）を拡大 */
    .komori-strengths .strength-item { gap: 2rem; }
}

.strength-content p {
    font-size: clamp(14px, 1.8vw, 17px);
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.strength-feature {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(45deg, #0066cc, #00b894);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: clamp(10px, 1.6vw, 13px);
    font-weight: 600;
}

/* 狭幅時はさらに間隔を詰める */
@media (max-width: 600px) {
    .komori-strengths {
        gap: 1.2rem;
        margin: 2rem 0;
    }
    .strength-item {
        padding: 1.25rem;
        gap: 1rem;
    }
    .strength-content h3 {
        margin-bottom: 0.75rem;
    }
    .strength-content p {
        margin-bottom: 1rem;
    }
}

/* 採用セクション - コモリリクルート */
.komori-recruit {
    background: var(--gradient-primary);
    padding: 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.komori-recruit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.recruit-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.recruit-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.badge-text {
    background: linear-gradient(45deg, #0066cc, #00b894);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.badge-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 204, 0.3);
    border-radius: 25px;
    animation: pulse 2s ease-in-out infinite;
}

.recruit-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-family: var(--headline-font);
}

.recruit-title .title-impact {
    display: block;
    color: #00e5ff;
    font-size: 2.5rem;
}

.recruit-title .title-main {
    display: block;
    color: white;
}

.recruit-title .title-highlight {
    display: block;
    background: linear-gradient(45deg, #0066cc, #00b894);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.recruit-message {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* 採用特徴 */
.recruit-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #0066cc, #00b894);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--headline-font);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.feature-highlight {
    background: linear-gradient(45deg, #0066cc, #00b894);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* 採用CTA */
.recruit-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--headline-font);
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.cta-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.cta-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.overlay-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overlay-subtitle {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
}

/* 社員の声セクション - コモリボイス */
.komori-voices {
    background: #f8fafc;
    padding: 6rem 0;
}

.voices-header {
    text-align: center;
    margin-bottom: 4rem;
}

.voices-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.voices-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: var(--headline-font);
}

.voices-title .title-main {
    display: block;
    color: #1a202c;
}

.voices-title .title-highlight {
    display: block;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.voices-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 500px;
    margin: 0 auto;
}

/* 強化された社員カード */
.voice-card-enhanced {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 2rem;
}

.voice-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.voice-image {
    position: relative;
    flex-shrink: 0;
}

.voice-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.image-frame {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid;
    border-image: linear-gradient(45deg, var(--primary-blue), var(--accent-blue)) 1;
    border-radius: 50%;
}

.voice-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.3rem;
    font-family: var(--headline-font);
}

.voice-age {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.voice-position {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

.voice-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.voice-content {
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.voice-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.voice-highlight {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    font-size: 0.9rem;
    color: #4a5568;
}

/* 社員の声CTA */
.voices-cta {
    margin-top: 4rem;
}

.cta-background {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
}

.cta-background h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--headline-font);
}

.cta-background p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ニュースセクション - コモリニュース */
.komori-news {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0;
}

.news-header {
    text-align: center;
    margin-bottom: 4rem;
}

.news-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--fresh-cyan), var(--accent-blue));
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.news-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: var(--headline-font);
}

.news-title .title-main {
    display: block;
    color: #1a202c;
}

.news-title .title-highlight {
    display: block;
    background: linear-gradient(45deg, var(--fresh-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.news-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 500px;
    margin: 0 auto;
}

/* ニュースグリッド */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card.featured {
    border: 2px solid var(--fresh-cyan);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(0, 180, 216, 0.05));
}

.news-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, var(--fresh-cyan), var(--accent-blue));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.news-card.featured .news-label {
    background: linear-gradient(45deg, var(--accent-blue), var(--fresh-cyan));
}

.news-date {
    display: block;
    font-size: 0.9rem;
    color: var(--fresh-cyan);
    font-weight: 600;
    margin-bottom: 0rem;
}

.news-title-card {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: var(--headline-font);
}

.news-title-card a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title-card a:hover {
    color: var(--fresh-cyan);
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.news-category {
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.1), rgba(0, 180, 216, 0.1));
    color: var(--accent-blue);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* ニュースCTA */
.news-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.news-cta .cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-family: var(--headline-font);
}

.news-cta .cta-content p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .strength-title {
        font-size: 2.8rem;
    }
    
    .strength-title .title-main {
        font-size: 1.8rem;
    }
    
    .strength-title .title-highlight {
        font-size: 3.5rem;
    }
    
    .strength-title .title-sub {
        font-size: 1.6rem;
    }
    
    .recruit-title {
        font-size: 2.8rem;
    }
    
    .voices-title, .news-title {
        font-size: 2.5rem;
    }
    
    .recruit-cta {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-cta {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .komori-strength, .komori-recruit, .komori-voices, .komori-news {
        padding: 4rem 0;
    }
    
    .strength-title {
        font-size: 2.2rem;
    }
    
    .strength-title .title-sub {
        font-size: 2rem;
    }
    
    .recruit-title {
        font-size: 2.2rem;
    }
    
    .recruit-title .title-impact {
        font-size: 2rem;
    }
    
    .voices-title, .news-title {
        font-size: 2rem;
    }
    
    .komori-achievements {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .achievement-number {
        font-size: 3rem;
    }
    
    .strength-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .recruit-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .voice-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .promise-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* スマホ幅でもアイコン左・テキスト右を維持し、文章は左揃え */
@media (max-width: 768px) {
    .komori-strengths .strength-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    .komori-strengths .strength-content {
        text-align: left;
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .strength-title {
        font-size: 1.8rem;
    }
    
    .strength-title .title-main {
        font-size: 1.3rem;
    }
    
    .strength-title .title-highlight {
        font-size: 2.5rem;
    }
    
    .strength-title .title-sub {
        font-size: 1.6rem;
    }
    
    .recruit-title {
        font-size: 1.8rem;
    }
    
    .recruit-title .title-impact {
        font-size: 1.6rem;
    }
    
    .voices-title, .news-title {
        font-size: 1.6rem;
    }
    
    .komori-achievements {
        grid-template-columns: 1fr;
    }
    
    .achievement-number {
        font-size: 2.5rem;
    }
    
    .komori-promise {
        padding: 2.5rem 2rem;
    }
    
    .komori-promise h3 {
        font-size: 2rem;
    }
    
    .cta-background {
        padding: 3rem 2rem;
    }
    
    .cta-background h3 {
        font-size: 2rem;
    }
} 

/* 強み: モバイル時は「タイトルのみ」アイコン右、本文は下段に配置 */
@media (max-width: 768px) {
    .komori-strengths .strength-item {
        display: grid;
        grid-template-columns: 96px 1fr; /* アイコン幅に合わせる */
        grid-template-rows: 1fr auto; /* 1行目を可変にし、タイトルを縦中央へ */
        align-items: start;
        gap: 0.75rem 1rem; /* 行間/列間 */
        text-align: left;
    }
    .komori-strengths .strength-icon {
        grid-column: 1;
        grid-row: 1 / 3; /* タイトル行と本文行の縦2行を占有 */
    }
    /* 子要素を親グリッドに参加させる */
    .komori-strengths .strength-content {
        display: contents;
    }
    .komori-strengths .strength-content h3 {
        grid-column: 2;
        grid-row: 1;   /* タイトルは右列・上段 */
        align-self: center; /* アイコン高さに対して縦中央寄せ */
        margin-top: 1.5rem;
    }
    /* 段落と下のバッジとの余白をさらに詰める */
    .komori-strengths .strength-content p {
        margin-bottom: 0.3rem;
    }
    .komori-strengths .strength-content p,
    .komori-strengths .strength-feature {
        grid-column: 1 / -1; /* 本文・バッジは下段で全幅 */
    }
}

.voice-content { padding-top: 0; }
.quote-icon { display: none; }
.voice-text { font-style: normal; letter-spacing: 0.01em; }
.voice-highlight { border-left-width: 3px; padding-left: 12px; line-height: 1.7; }
.voice-highlight strong { display: inline-block; margin-right: 8px; font-weight: 700; color: var(--text-dark); }

.staff-voices .voice-card,
.staff-voices .voice-card:hover,
.komori-voices .voice-card-enhanced,
.komori-voices .voice-card-enhanced:hover {
    box-shadow: none !important;
    transform: none !important;
}

.staff-voices .voice-card,
.komori-voices .voice-card-enhanced { transition: transform .25s ease; }
.staff-voices .voice-card:hover,
.komori-voices .voice-card-enhanced:hover { transform: translateY(-6px) scale(1.02) !important; }

/* ========================================
   PickUpセクション
   ======================================== */

.pickup-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.pickup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 85%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(0, 184, 148, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.pickup-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.pickup-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    font-family: var(--headline-font);
}

.pickup-title .title-highlight {
    display: block;
    background: linear-gradient(45deg, #0066cc, #00b894);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* 新カルーセル（横1列・中央のみ強調） */
.pickup-carousel { position: relative; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; }
.pickup-arrow { appearance: none; border: none; background: #ffffff; width: 40px; height: 40px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.12); color: #0a2540; font-size: 22px; line-height: 40px; text-align: center; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.pickup-arrow:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.pickup-arrow:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.pickup-arrow-left { grid-column: 1; }
.pickup-arrow-right { grid-column: 3; }
.pickup-viewport { grid-column: 2; overflow: hidden; }
.pickup-track { display: flex; align-items: center; gap: 16px; transition: transform .5s cubic-bezier(.22,.61,.36,1); will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.pickup-carousel.is-animating .pickup-arrow { pointer-events: none; opacity: .7; }
.pickup-slide { flex: 0 0 auto; width: clamp(220px, 26vw, 360px); aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: scale(.85); opacity: .65; transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease; background: #fff; }
.pickup-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center center; display: block; }
.pickup-slide.is-active { transform: scale(1); opacity: 1; box-shadow: 0 16px 36px rgba(0,0,0,.16); }
@media (max-width: 639px) {
  .pickup-carousel { grid-template-columns: 40px 1fr 40px; }
  .pickup-track { gap: 12px; }
  /* スライド幅はビューポート内に必ず収める（画像は常に全体表示） */
  .pickup-slide { width: min(100%, clamp(200px, 88vw, 320px)); max-width: 100%; }
}

.pickup-grid {
    /* 横スクロールスライダー */
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox: スクロールバー非表示 */
    scroll-padding-left: 0; /* 左端スナップ */
}
.pickup-grid::-webkit-scrollbar { display: none; } /* Chrome/Safari: スクロールバー非表示 */

/* カードは横長・スナップ */
.pickup-grid .pickup-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: clamp(280px, 32vw, 460px);
}

/* 常時2〜3枚見せ（ブレークポイント調整） */
@media (max-width: 639px) {
    .pickup-grid .pickup-card { width: clamp(240px, 70vw, 320px); }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .pickup-grid .pickup-card { width: clamp(280px, 44vw, 420px); }
}
@media (min-width: 1024px) {
    .pickup-grid .pickup-card { width: clamp(320px, 30vw, 520px); }
}

.pickup-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
    height: fit-content; /* カードの高さを内容に合わせる */
}

.pickup-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

.pickup-card.featured {
    grid-column: auto !important;
    grid-row: auto !important;
}

.pickup-card.featured .card-content {
    padding: 0 !important;
}

.pickup-card.featured .card-title {
    font-size: inherit !important;
}

.card-image {
    position: relative;
    aspect-ratio: 3 / 2; /* 常に横:縦=3:2 を維持 */
    overflow: hidden;
    display: block; /* ブロック要素として表示 */
}

.pickup-card.featured .card-image {
    height: auto !important; /* 高さはアスペクト比で決定 */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像全体が見えるように表示 */
    object-position: center center;
    transition: transform 0.4s ease;
    display: block; /* 画像下の余白を削除 */
}

.pickup-card:hover .card-image img {
    transform: none;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.card-category {
    display: none;
}

.card-content {
    padding: 8px 16px 16px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
    color: #1a202c;
    font-family: var(--headline-font);
}

.pickup-card.featured .card-title {
    font-size: inherit !important;
}

.card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* 全画面サイズで3列統一（モバイル詳細設定） */
@media (max-width: 639px) {
    .pickup-section {
        padding: 50px 0;
    }
    
    .pickup-title {
        font-size: 1.8rem;
    }
    
    .pickup-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    
    .pickup-card.featured {
        grid-column: auto !important;
    }
    
    /* 高さ指定撤廃: 3:2の比率で自動サイズ */
    .pickup-grid .pickup-card .card-image { height: auto !important; }
    .pickup-grid .pickup-card .card-image img { height: 100% !important; object-fit: contain !important; }
}

/* 全画面サイズで3列統一（タブレット） */
@media (min-width: 769px) and (max-width: 1024px) {
    .pickup-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        align-items: stretch;
        padding-left: 0 !important; /* 左端ぴったり */
        padding-right: 0 !important;
    }
    /* 高さ指定撤廃: 3:2の比率で自動サイズ */
    .pickup-grid .pickup-card .card-image { height: auto; }
    .pickup-grid .pickup-card .card-image img { height: 100%; object-fit: contain; }
    .pickup-card.featured {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}


@media (min-width: 640px) {
    /* 横一列時: 小カードは画像を大きく、テキストを小さく */
    .pickup-grid .pickup-card:nth-of-type(2) .card-content,
    .pickup-grid .pickup-card:nth-of-type(3) .card-content,
    .pickup-grid .pickup-card:nth-of-type(4) .card-content,
    .pickup-grid .pickup-card:nth-of-type(5) .card-content {
        padding: 0px 10px 8px;
    }
    .pickup-grid .pickup-card:nth-of-type(2) .card-title,
    .pickup-grid .pickup-card:nth-of-type(3) .card-title,
    .pickup-grid .pickup-card:nth-of-type(4) .card-title,
    .pickup-grid .pickup-card:nth-of-type(5) .card-title {
        font-size: 0.9rem;
        line-height: 1.25;
        margin-bottom: 0;
    }
    .pickup-grid .pickup-card:nth-of-type(2) .card-excerpt,
    .pickup-grid .pickup-card:nth-of-type(3) .card-excerpt,
    .pickup-grid .pickup-card:nth-of-type(4) .card-excerpt,
    .pickup-grid .pickup-card:nth-of-type(5) .card-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
}


/* フォント統一ポリシー */
.pickup-section .card-content { padding-top: 0.1rem; }
.pickup-section .pickup-card.featured .card-content { padding: 0 !important; }
.section-header h2,
.page-hero .page-title,
.unified-hero .page-title,
.komori-strength .strength-title,
.komori-recruit .recruit-title,
.komori-voices .voices-title,
.komori-news .news-title {
    font-family: var(--headline-font);
}

/* それ以外は通常フォント（可読性重視） */
body, p, li, .btn, .news-excerpt, .news-title-card, .voice-text, .voice-name, .voice-position, .voice-age,
.strength-message, .achievement-label, .strength-content h3, .strength-content p,
.feature-card h3, .feature-card p, .cta-content h3, .cta-content p,
.section-subtitle-large, .overview-item-enhanced h3, .overview-item-enhanced p {
    font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-synthesis: none;
}

/* ニュースカード: ホバーで薄い水色に */
.news-card { cursor: pointer; transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.news-card:hover { background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(0, 180, 216, 0.06)); }
.news-card:focus-within { box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.35); outline: none; }

/* ニュースカード: セクション内で確実に色変化 */
.komori-news .news-card:hover { background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 180, 216, 0.12)) !important; }

/* ニュースカード：リンクラップ対応 */
.news-card-link { display: block; text-decoration: none; color: inherit; }
.news-card-link .news-card { background: #fff; }
.news-card-link:hover .news-card { background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 180, 216, 0.12)); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.news-card-link:focus-visible .news-card { box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.35); }

/* ニュースカード: デフォルト統一（白背景・薄い影・境界線なし） */
.news-card { background: #fff !important; border: 2px solid transparent; box-shadow: 0 8px 25px rgba(0,0,0,.08); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
/* 特集も同一デザインに統一 */
.news-card.featured { border-color: transparent; background: #fff !important; }
/* ホバー時のみ水色の枠線を表示 */
.news-card-link:hover .news-card, .komori-news .news-card:hover { border-color: var(--fresh-cyan) !important; box-shadow: 0 12px 30px rgba(0,0,0,.12); transform: translateY(-3px); }

/* 最新ニュース: シンプルなリンクカード */
.komori-news .news-card-wrapper {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.komori-news .news-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: all 0.3s ease;
}

.komori-news .news-card-wrapper:hover .news-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(0, 180, 216, 0.08));
    border-color: var(--fresh-cyan);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    transform: translateY(-3px);
}

.komori-news .news-card__header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
}

.komori-news .news-card__title { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin: 8px 0 10px; 
    color: var(--text-dark);
}

.komori-news .news-card__excerpt { 
    font-size: .95rem; 
    color: var(--text-gray); 
    line-height: 1.6; 
    margin-bottom: 12px; 
}

.komori-news .news-card__footer { 
    display: flex; 
    justify-content: flex-start; 
    gap: 8px; 
    align-items: center; 
}

/* Stretched link utility for full-card tap */
/* Staff voices: inline subtitle next to title */
.staff-voices .section-header { display: flex; align-items: baseline; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.staff-voices .section-header h2 { margin-bottom: 0; }
.staff-voices .section-header p { margin: 0; font-size: 1rem; color: var(--text-gray); }

/* Staff voices: ensure cards above triangle decoration */
.staff-voices { position: relative; z-index: 0; }
.voices-grid { position: relative; z-index: 2; }
.voice-card { z-index: 3; }
.site-energy .staff-voices::after { z-index: 0 !important; }

/* News: center content vertically within each item */
.news-item { align-items: center; }
/* Staff voices: keep bottom decoration behind everything */
.staff-voices::after { z-index: 0 !important; }
.voices-cta { position: relative; z-index: 3; }

/* News: vertically center the date badge within each card */
.news-date { align-self: center; }

/* 1024px以下は常に3枚表示（4枚目以降は非表示） */
@media (max-width: 1024px) {
    .pickup-grid .pickup-card:nth-of-type(n+4) { display: none; }
}

@media (min-width: 769px) {
    .hero-video img,
    .hero-video video {
        transform: scale(1.22);
        transform-origin: 80% 40%;
    }
}

.recruit-highlight {
    padding: 60px 0;
    background: var(--white);
}
@media (max-width: 968px) {
    .recruit-highlight { padding-top: 60px; }
    .recruit-content { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
    .recruit-text { text-align: center; justify-self: stretch; width: 100%; }
    .recruit-text .btn { display: inline-block; margin-left: auto; margin-right: auto; }
    .recruit-image { justify-self: center; }
    .recruit-image img { margin-left: auto; margin-right: auto; display: block; }
}
@media (max-width: 768px) {
    .recruit-highlight { padding-top: 60px; }
}
@media (max-width: 480px) {
    .recruit-highlight { padding-top: 40px; padding-bottom: 40px; }
}

@media (max-width: 1024px) {
    /* Lower the rainbow underline position on mobile/tablet */
    .site-energy .nav-link::after { bottom: 2px !important; }
}

@media (max-width: 480px) {
    /* Recruit highlight: keep CTA button inside the circle on small screens */
    .recruit-highlight .recruit-text p { margin-bottom: 6px !important; }
    .recruit-highlight .recruit-points { margin-bottom: 3px !important; }
    .recruit-highlight .recruit-text .btn { margin: 3px auto 0 !important; }
}

/* 採用ハイライト：セクション高さを増やしてスライドショー縦幅を拡大（円サイズは据え置き） */
.recruit-highlight.has-slideshow { padding: 160px 0; }
@media (max-width: 768px) { .recruit-highlight.has-slideshow { padding: 140px 0; } }
@media (max-width: 480px) { .recruit-highlight.has-slideshow { padding: 120px 0 130px; } }

/* iOS (iPhone/iPad): 確実にアニメーション開始（速度はCSS変数で制御） */
@supports (-webkit-touch-callout: none) {
    .recruit-highlight .recruit-slideshow .track-1 {
        -webkit-animation-name: slideX !important;
        animation-name: slideX !important;
        -webkit-animation-duration: var(--slide-duration-1, 40s) !important;
        animation-duration: var(--slide-duration-1, 40s) !important;
        -webkit-animation-delay: 0s !important;
        animation-delay: 0s !important;
    }
    .recruit-highlight .recruit-slideshow .track-2 {
        -webkit-animation-name: slideXReverse !important;
        animation-name: slideXReverse !important;
        -webkit-animation-duration: var(--slide-duration-2, 55s) !important;
        animation-duration: var(--slide-duration-2, 55s) !important;
        -webkit-animation-delay: 0s !important;
        animation-delay: 0s !important;
    }
}

/* Mobile: force hero overlay backgrounds and texts centered */
@media (max-width: 1200px) {
    .home .hero-overlay {
        background-position: center 50%, left 2% top 10%, right 1% top 48%, center center;
    }
}

@media (max-width: 968px) {
    .home .hero-overlay {
        background-position: center 50%, left 2% top 10%, right 1% top 48%, center center;
    }
}

@media (max-width: 768px) {
    .home .hero-overlay {
        background-position: center 50%, center 12% top, center 48% top, center center;
    }
}

@media (max-width: 640px) {
    .home .hero-overlay {
        background-position: center 50%, center 12% top, center 48% top, center center;
        /* keep sizes the same to avoid layout shifts */
        background-size: auto 130%, clamp(180px, 22vw, 380px) auto, clamp(280px, 32vw, 560px) auto, cover;
    }
    .hero .hero-content,
    .home .hero-content,
    .page-hero .hero-content,
    .page-hero .page-hero-content { text-align: center !important; justify-items: center !important; align-items: center !important; place-items: center !important; }
    .hero-title, .home .hero-subtitle { text-align: center !important; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
    .home .hero-overlay {
        background-position: center 50%, center 12% top, center 48% top, center center;
    }
}

/* Footer: page name (main titles) larger and clickable */
.footer-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.footer-subtitle { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.footer-title a, .footer-subtitle a { color: inherit; text-decoration: none; }
.footer-title a:hover, .footer-subtitle a:hover { color: #888; /* ホバー時の色をグレーに変更 */ }

@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        gap: 20px;
    }
    
    .footer-subtitle {
        margin-bottom: 0;
    }
}

/* === PickUp: 全カード同一サイズで横並び（上書き） === */
@media (min-width: 640px) {
    .pickup-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-flow: row;
        align-items: stretch;
    }
    .pickup-grid .pickup-card, .pickup-card.featured {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    /* 全カード同一高さ（画像のみ）タブレット */
    .pickup-grid .pickup-card .card-image { height: 300px; }
    .pickup-grid .pickup-card .card-image img { height: 100%; object-fit: cover; }
}

@media (min-width: 1025px) {
    .pickup-grid { grid-template-columns: repeat(3, 1fr) !important; }
    /* 全カード同一高さ（画像のみ）デスクトップ */
    .pickup-grid .pickup-card .card-image { height: 340px; }
    .pickup-grid .pickup-card .card-image img { height: 100%; object-fit: cover; }
}

/* すべての画面サイズで3枚に制限 */
.pickup-grid .pickup-card:nth-of-type(n+4) { display: none !important; }
@media (min-width: 1024px) {
    .pickup-grid .pickup-card:nth-of-type(n+4) { display: none !important; }
}

/* Utility: stretched-link to make entire card clickable */
.stretched-link { position: absolute; inset: 0; z-index: 5; text-indent: -9999px; background: transparent; }

@media (max-width: 480px) {
    .komori-strengths .strength-content h3 {
        font-size: 16px; /* 既定の最小18pxより小さくする */
        line-height: 1.3;
    }
}
