/*
Theme Name: City Rebirth
Theme URI: https://cityrebirth.co.jp/
Author: City Rebirth Inc.
Version: 2.0.0
Description: City Rebirth Official WordPress Theme
*/

/* ==========================================================================
   1. 変数定義 & 全体リセット (Variables & Reset)
   ========================================================================== */
:root {
    --bg-color: #F8F9FA;         /* 目に優しいオフホワイト */
    --main-color: #0B0F19;       /* ミッドナイトネイビー */
    --accent-color: #23AC39;     /* ネオングリーン */
    --sub-color: #219835;
    --text-color: #1A1D20;       /* リッチブラック */
    --text-muted: #6C757D;       /* グレー */
    --card-bg: #FFFFFF;          /* 白ベースのカード */
    --grid-color: rgba(11, 15, 25, 0.03); /* 背景グリッド */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.normal-link:hover {
    text-decoration: none;
    color: var(--accent-color);
}


/* ==========================================================================
   2. 共通コンポーネント & 汎用レイアウト (Global Components & Layouts)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* 各エリア共通の英語サブタイトル（新ロゴカラーの左ドット付き） */
.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    display: inline-block;
    border-radius: 2px;
}

/* 各エリア共通のメイン日本語見出し */
.section-main-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-color);
    line-height: 1.3;
    margin-bottom: 3rem;
}

/* 共通説明文（ディスクリプションテキスト） */
.common-desc-text {
    font-size: 0.85rem;
    line-height: 1.4rem;
}

/* 共通格子背景パターンマトリクス */
.common-grid-bg, body {
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* 汎用マージンヘルパー */
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }

a[href*=".pdf"]::before {
    content: "\f1c1";
    font-family: "Font Awesome 6 Free";
    color: #F30401;
    font-size: 1.2rem;
}


/* ==========================================================================
   3. ヘッダー (Header)
   ========================================================================== */
.site-header {
    width: 100%;
    height: 80px;
    background-color: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(11, 15, 25, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-weight: 300;
    font-size: 0.85rem;
}

.nav-menu a {
    color: var(--main-color);
    opacity: 0.7;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent-color);
}


/* ==========================================================================
 ハンバーガーメニュー (Responsive Hamburger Menu)
 ========================================================================== */

.hamburger-btn {
    display: none;
}

/* スマホ・タブレット表示（768px以下） */
@media screen and (max-width: 768px) {
    /* ハンバーガーボタン本体 */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: fixed; /* 画面右上に固定 */
        top: 25px;
        right: 5%;
        z-index: 10000; /* 最前面へ */
    }

    .hamburger-btn span {
        width: 100%;
        height: 2px;
        background-color: var(--main-color, #333);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* 開いた時の「×」アニメーション */
    .hamburger-btn.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent-color, #0066cc);
    }
    .hamburger-btn.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent-color, #0066cc);
    }

    /* 全画面ナビゲーション背景（右からスライドイン） */
    .nav-wrapper {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: #ffffff !important; /* 背景色（白） */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
        z-index: 9999 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* メニューが開いたとき */
    .nav-wrapper.is-open {
        right: 0 !important;
    }

    /* メニューリスト（強制的に縦並び＆表示） */
    .nav-wrapper .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2rem !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    .nav-wrapper .nav-menu li {
        display: block !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .nav-wrapper .nav-menu a {
        display: inline-block !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: var(--main-color, #111) !important;
        text-decoration: none !important;
        padding: 10px 20px !important;
    }
}

/* ==========================================================================
   4. メインビジュアル ＆ 新着情報 (Hero Section & News Window)
   ========================================================================== */
.hero-kingram-japanese {
    height: 100vh;
    max-height: 800px;
    min-height: 530px;
    background: radial-gradient(circle at 15% 15%, rgba(59, 211, 84, 0.12) 0%, #F8F9FA 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
}

.hero-center-container {
    max-width: 900px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrap {
    margin-bottom: 1rem;
}

.hero-v-logo {
    height: 165px;
    width: auto;
    object-fit: contain;
    display: block;
}

.hero-statement-ja {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--main-color);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

/* キングラムリカー風・極細ミニマルボタン */
.btn-minimal-ja {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 3px;
    width: 280px;
    height: 50px;
    background-color: transparent;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 4px;
    font-size: 1.1rem !important; 
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.btn-minimal-ja:hover {
    border: 1px solid var(--accent-color) !important;
    background-color: var(--sub-color) !important;
    color: #FFFFFF !important;
    letter-spacing: 0.2em;
}

/* スクロールダウンアニメーション */
.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 35px;
    background-color: var(--main-color);
    margin: 8px auto 0;
    animation: scrollLine 2s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* フローティング新着情報本体 */
.floating-news-window {
    position: absolute;
    top: 120px;
    right: 30px;
    width: 300px;
    z-index: 800;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-news-window.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.news-window-inner {
    background: linear-gradient(135deg, rgba(35, 172, 57, 0.85) 0%, rgba(26, 148, 46, 0.85) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(35, 172, 57, 0.2), 0 0 1px rgba(35, 172, 57, 0.4);
    position: relative;
    overflow: hidden;
}

.news-window-inner:hover {
    box-shadow: 0 20px 40px rgba(35, 172, 57, 0.35);
    filter: brightness(1.02);
    transition: all 0.3s ease;
}

.news-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.news-window-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.news-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background-color: var(--main-color);
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    font-family: monospace;
}

.news-list-container {
    display: flex;
    flex-direction: column;
    max-height: 500px; 
    overflow-y: auto; 
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.news-list-container::-webkit-scrollbar { width: 4px; }
.news-list-container::-webkit-scrollbar-track { background: transparent; }
.news-list-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; }

.news-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-bottom: 1rem;
}

.news-item:last-child { padding-bottom: 0; }
.news-item + .news-item {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1rem;
}

.news-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: #FFFFFF;
    opacity: 0.65;
    letter-spacing: 0.05em;
    font-family: monospace;
    text-align: left;
}

.news-window-title {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.3;
}

.news-window-title a {
    color: #FFFFFF;
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.news-window-title a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* お知らせページ */
.news-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(11, 15, 25, 0.08);
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #666;
}

.news-title {
    font-size: 1.8rem;
    line-height: 1.4rem;
    color: #111;
}

.news-body {
    font-size: 0.9rem;
    line-height: 1.5rem;
    color: #333;
}

.news-body a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.news-body h2 {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    line-height: 2rem;
    padding-bottom: 0.2em;
    font-size: 1.3rem;
    color: #0f172a;
}

/* ベースの下線（薄いグレー） */
.news-body h2::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #e2e8f0;
}

.news-body h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 1.5px;
    background: var(--accent-color);
}

.news-body p {
    margin-top: 0.8rem;
}

.news-body a::before {
  content: "🔗";
  vertical-align: middle;
  color: var(--accent-color);
}


.news-attachment {
    margin-top: 3rem;
    padding: 1.2rem 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}


/* ==========================================================================
   5. 製品紹介 (Products Section - 3カラムGrid)
   ========================================================================== */
.products-section {
    padding: 8rem 0;
    background-color: #FFFFFF;
}

.services-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card-flat {
    background-color: var(--bg-color);
    padding: 3.5rem 2.5rem;
    border-radius: 6px;
    border: 1px solid rgba(11, 15, 25, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    position: relative;
    overflow: hidden;
}

.service-card-flat:hover {
    background-color: #FFFFFF;
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(57, 211, 84, 0.08), 0 0 25px rgba(57, 211, 84, 0.15);
    transform: translateY(-8px);
}

.product-logo-wrap {
    display: flex;
    align-items: center;
    height: 60px;
    margin-bottom: 2rem; 
}

.product-logo-wrap img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.service-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: monospace;
    display: block;
    margin-bottom: 0.75rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--main-color);
    letter-spacing: 0.1em;
    font-family: monospace;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.product-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-color);
    transition: all 0.4s ease;
}

.service-card-flat:hover .product-badge { opacity: 1; }
.service-card-flat:hover .product-badge::before {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--accent-color), 0 0 5px var(--accent-color);
}

.service-card-title-desc {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--main-color);
    margin-bottom: 1.2rem;
}

.service-card-desc {
    color: var(--text-muted);
}

/* ==========================================================================
   6. ITソリューション & 各種共通ボード (2カラムGrid・プレーンCSS仕様)
   ========================================================================== */
.it-solutions-section {
    padding: 8rem 0;
    background-color: var(--main-color);
    color: #FFFFFF;
}

.it-solutions-section .section-main-heading { color: #FFFFFF; }

.it-solutions-layout {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

/* ★ 正攻法：プレーンCSSで2カラムGridをガチッと再定義 */
.it-solutions-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}
.it-solutions-row.reverse .it-solutions-body { grid-column: 2; }
.it-solutions-row.reverse .it-solutions-visual { grid-column: 1; grid-row: 1; }

.it-solutions-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: monospace;
    display: block;
    margin-bottom: 0.5rem;
}

.it-solutions-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.it-solutions-desc {
    color: #A0AEC0;
    margin-bottom: 2rem;
}

.it-solutions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.it-solutions-tags span {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px; 
    border-radius: 20px;
    font-size: 0.72rem;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap; /* 絶対に途中で折らせない */
}

.it-solutions-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.8rem;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.it-solutions-flow::-webkit-scrollbar { display: none; }

.it-solutions-flow .flow-step {
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    display: inline-block;
}

.it-solutions-flow .flow-step.step-highlight {
    background-color: rgba(35, 172, 57, 0.12);
    border-color: rgba(35, 172, 57, 0.4);
    color: var(--accent-color);
}

.it-solutions-flow .flow-arrow {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    user-select: none;
    display: inline-block;
}

.solution-works-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.3s ease;
}

.solution-works-box.accent-border {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(35, 172, 57, 0.06);
}

.works-box-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.works-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.works-item { position: relative; }

.works-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.works-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.works-item-desc {
    font-size: 0.75rem;
    color: #A0AEC0;
    line-height: 1.6;
    margin: 0;
}

.works-item:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.tech-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 8px;
}
.tech-box.accent-border {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(59, 211, 84, 0.03) 0%, transparent 100%);
}

.quad-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 1rem;
}

.quad-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.it-solutions-row:hover .quad-item { border-color: rgba(255, 255, 255, 0.15); }

.quad-code {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: monospace;
    letter-spacing: 0.05em;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quad-code::before {
    content: '';
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--accent-color);
}

.quad-label {
    font-size: 0.8rem;
    color: #A0AEC0;
    font-weight: 700;
    line-height: 1.4;
}

/* ==========================================================================
   7. 会社概要 (Company Section - 完全デバッグ版)
   ========================================================================== */
.company-section {
    padding: 8rem 0;
    background-color: #FFFFFF;
    
    /* ★解決策①：ヘッダー（fixed）の下に「会社概要」の見出しが潜り込まないよう、
       アンカーリンク（#company）でジャンプした際のトドメの余白（スクロールマージン）を100px確保 */
    scroll-margin-top: 100px;
}

.company-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    margin-top: 4rem;
    align-items: stretch; /* 左右の要素（テーブルとマップ）の高さを強制的に同期させる */
}

.company-table-wrap { 
    display: flex; 
    align-items: center; 
}

.minimal-table { width: 100%; font-size: 0.9rem; border-collapse: collapse; }
.minimal-table tr { border-bottom: 1px solid rgba(11, 15, 25, 0.08); }

.minimal-table th {
    width: 25%;
    padding: 1.5rem 1rem 1.5rem 0;
    text-align: left;
    font-weight: normal;
    color: var(--main-color);
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.minimal-table td {
    padding: 1.5rem 0 1.5rem 1rem;
    color: var(--text-color);
    vertical-align: middle;
}

/* ★解決策②：グレーの死んだ空間を抹殺するマップラッパーの再定義 */
.company-map-wrap {
    width: 100%;
    display: flex;
}

.map-container {
    width: 100%;
    /* 1. 高さを「固定」ではなく最小高さとして定義。これでグレーの隙間が消えます */
    min-height: 480px; 
    height: 100%; /* 親要素（grid）の高さに100%ピタッと追従させる命令 */
    background-color: #E5E5E5;
    border-radius: 8px;
    border: 1px solid rgba(11, 15, 25, 0.08);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(11, 15, 25, 0.02);
    position: relative; /* iframeの土台を固定 */
}

/* iframe自体がラッパーの枠いっぱいに広がるように、宇宙最凶の絶対配置をロック */
.map-container iframe { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; 
    height: 100% !important; 
    border: 0;
    display: block; 
}

/* ==========================================================================
   8. 採用情報 (Careers Section)
   ========================================================================== */
.careers-section {
    padding: 10rem 0;
    background-color: var(--main-color);
    color: #FFFFFF;
}

.careers-section .section-main-heading { color: #FFFFFF; }

.careers-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6rem;
    align-items: center;
    margin-top: 4rem;
}

.careers-info { max-width: 600px; }
.careers-lead { font-size: 1.3rem; font-weight: 700; line-height: 1.7; color: #FFFFFF; margin-bottom: 2rem; }
.careers-text { color: #A0AEC0; margin-bottom: 3.5rem; }
.careers-positions { display: flex; flex-direction: column; gap: 1.5rem; }

.position-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 6px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.position-mini-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateX(8px);
}

.pos-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: monospace;
    line-height: 1.2;
}

.pos-body h4 { font-size: 1.1rem; font-weight: 800; color: #FFFFFF; margin-bottom: 0.5rem; }
.pos-body p { font-size: 0.85rem; color: #A0AEC0; }

.careers-action { margin-top: 2rem; }
.btn-careers-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 4px;
}
.btn-careers-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}
.arrow-icon { width: 18px; height: 18px; transition: transform 0.4s ease; }
.btn-careers-link:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-careers-link:hover .arrow-icon { transform: translateX(6px); }


/* ==========================================================================
   求人応募・タブ切り替えスタイル
   ========================================================================== */
.single-back {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.career-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(11, 15, 25, 0.08);
}

.tab-btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--accent-color);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    font-weight: 600;
}

/* タブの表示・非表示 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 案2: ミニマル・ラインデザイン */
.career-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.career-spec-table tr {
    border-bottom: 1px solid #eaeaea;
}

.career-spec-table th {
    width: 130px;
    vertical-align: top;
    padding: 1.5rem 1rem 1.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
    text-align: left;
    position: relative;
}

/* 見出しの左側にアクセントの緑バーを入れる */
.career-spec-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.7rem;
    width: 3px;
    height: 14px;
    background-color: var(--accent-color, #28a745);
}

.career-spec-table td {
    vertical-align: top;
    padding: 1.5rem 1rem;
    font-size: 0.75rem;
    line-height: 1.8;
    color: #444;
}


/* ==========================================================================
   カスタムファイルアップロード
   ========================================================================== */

.form-group #career-title {
    color: var(--text-muted);
}

.custom-file-input {
    display: none !important;
}

/* カスタムドロップゾーンエリア */
.custom-file-upload {
    display: block;
    width: 100%;
    padding: 1.5rem;
    border: 2px dashed rgba(11, 15, 25, 0.15); /* 点線枠 */
    border-radius: 8px;
    background-color: #fafafa;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.custom-file-upload:hover {
    border-color: var(--accent-color, #28a745);
    background-color: rgba(40, 167, 69, 0.03);
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.file-upload-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.file-upload-text {
    font-size: 0.85rem;
    color: #444444;
}

/* ファイル選択後のファイル名表示テキスト */
.file-upload-filename {
    font-size: 0.8rem;
    color: #888888;
    margin-top: 0.2rem;
    word-break: break-all;
}

/* ファイルが選択された時の強調スタイル */
.custom-file-upload.has-file {
    border-style: solid;
    border-color: var(--accent-color, #28a745);
    background-color: rgba(40, 167, 69, 0.05);
}

.custom-file-upload.has-file .file-upload-filename {
    color: var(--accent-color, #28a745);
}

/* ファイル添付入力の補正 */
input[type="file"].form-control {
    padding: 0.6rem;
    background-color: #fafafa;
}


/* ==========================================================================
   9. お問い合わせ誘導 (CTA Section)
   ========================================================================== */
.cta-section {
    padding: 9rem 0;
    background-color: #FFFFFF;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    font-family: monospace;
    margin-bottom: 1rem;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--main-color);
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.cta-text { color: var(--text-muted); margin-bottom: 3.5rem; }
.cta-btn-wrap { background-color: #FFF; }
.cta-btn-wrap .btn-minimal-ja { border: 1.5px solid var(--main-color); font-weight: 600; }

/* ==========================================================================
   10. リーガルポリシー専用スタイル
   ========================================================================== */
.policy-page-hero { padding: 10rem 0 5rem; }
.policy-page-hero .cta-title { margin-bottom: 0; }
.policy-main-content { padding-top: 2rem; }
.policy-container { max-width: 800px; margin: 0 auto; }
.policy-lead-text { color: var(--text-muted); margin-bottom: 4rem; }
.policy-article { margin-bottom: 5rem; }

.policy-chapter-heading {
    font-size: 1.6rem;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.policy-section-gap { display: flex; flex-direction: column; gap: 2.5rem; }
.policy-section-title { font-size: 1rem; margin-bottom: 0.5rem; }
.policy-text-block { color: var(--text-muted); }

.policy-list {
    color: var(--text-muted);
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
}
.policy-list-square { list-style: square; }
.policy-list-decimal { list-style: decimal; }
.policy-note { color: var(--text-muted); margin-top: 1rem; }
.policy-link { color: var(--accent-color); text-decoration: underline; }

.policy-date-stamp {
    color: var(--text-muted);
    text-align: right;
    margin-top: 3rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2rem;
}

.policy-contact-box {
    background-color: var(--bg-color);
    border: 1px solid rgba(11, 15, 25, 0.05);
    padding: 2.5rem;
    border-radius: 6px;
}
.policy-contact-title { font-size: 1.3rem; color: var(--main-color); margin-bottom: 1rem; }
.policy-contact-text { color: var(--text-muted); margin-bottom: 1.5rem; }
.policy-contact-info { color: var(--text-muted); font-weight: 500; line-height: 1.8; }
.policy-btn-wrap { width: 100%; text-align: center; margin-top: 2.5rem; }

/* ==========================================================================
   11. ページトップへ戻るボタン & フッター (Utility & Footer)
   ========================================================================== */
.to-top-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(11, 15, 25, 0.8);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.to-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.to-top-button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(35, 172, 57, 0.3);
}

.to-top-button:hover .to-top-arrow { transform: translateY(-3px); }

.site-footer {
    background-color: var(--main-color);
    color: #FFFFFF;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 4rem;
}

.footer-logo-img { height: 42px; width: auto; object-fit: contain; opacity: 0.9; }
.footer-sitemap { display: flex; gap: 6rem; }

/* フッターSNSリンク */
.footer-social {
    margin-top: 25px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.x-logo-svg {
    display: block;
}

.sitemap-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.sitemap-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sitemap-col a {
    font-size: 0.75rem;
    color: #A0AEC0;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.sitemap-col a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.copyright-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: #A0AEC0;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   12. 下層ページ共通デザインシステム（真・トップページ完全同期版）
   ========================================================================== */
.underlayer-hero {
    padding: 11rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #E2F0E5 0%, #EDF3F0 40%, #F5F7F6 100%);
    border-bottom: 1px solid rgba(11, 15, 25, 0.04);
}

.underlayer-hero-bg-text {
    position: absolute;
    bottom: -1.5rem;
    left: 4%;
    font-size: 7rem;
    font-weight: 900;
    color: var(--main-color);
    opacity: 0.02;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    pointer-events: none;
    white-space: nowrap;
}

.underlayer-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.underlayer-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-family: monospace;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.underlayer-subtitle::after {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-color);
}

.underlayer-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--main-color);
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 1rem;
}

.underlayer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.underlayer-main-content { padding: 6rem 0 8rem; }

.underlayer-main-card {
    max-width: 880px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5rem 4.5rem;
    border-radius: 8px;
    border: 1px solid rgba(11, 15, 25, 0.04);
    box-shadow: 0 20px 50px rgba(11, 15, 25, 0.02);
}

/* ==========================================================================
   13. お問い合わせフォーム専用スタイル (CF7 DOM完全適合版)
   ========================================================================== */
.contact-form { display: flex; flex-direction: column; gap: 2.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.form-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
.form-required { font-size: 0.65rem; color: var(--accent-color); background-color: rgba(35, 172, 57, 0.08); padding: 0px 6px; border-radius: 4px; font-weight: 500; }
.form-control { width: 100%; padding: 0.85rem 1.1rem; background-color: #FFFFFF; border: 1px solid rgba(11, 15, 25, 0.08); border-radius: 4px; font-size: 0.9rem; color: var(--main-color); transition: all 0.3s ease; font-family: inherit; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(35, 172, 57, 0.04); }
.form-control::placeholder { color: #B0B0B0; }
textarea.form-control { min-height: 160px; resize: vertical; }

/* --- 1. お問い合わせ種別 (チェックボックス対応版) --- */
.form-radio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
}

/* CF7の中間ラッパー（span）をレイアウト上消し去る */
.form-radio-grid .wpcf7-form-control-wrap,
.form-radio-grid .wpcf7-radio,
.form-radio-grid .wpcf7-checkbox {
    display: contents !important;
}

.form-radio-grid .wpcf7-list-item {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
}

/* labelタグ自体をボタンカードにする */
.form-radio-grid .wpcf7-list-item label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    background-color: #FFFFFF !important;
    border: 1px solid rgba(11, 15, 25, 0.08) !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    text-align: center !important;
    user-select: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    position: relative !important;
}

/* チェックボックス本体（四角ポチ）を隠す */
.form-radio-grid input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.form-radio-grid .wpcf7-list-item-label {
    display: block !important;
    width: 100% !important;
}

/* ホバー時 */
.form-radio-grid .wpcf7-list-item label:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

/* 内部のcheckboxがチェックされた時に親labelを緑色カード化する */
.form-radio-grid .wpcf7-list-item label:has(input[type="checkbox"]:checked) {
    border-color: var(--accent-color) !important;
    background-color: var(--sub-color) !important;
    color: #FFF !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(35, 172, 57, 0.04) !important;
}
.form-radio-grid .wpcf7-list-item label:has(input[type="checkbox"]:checked) .wpcf7-list-item-label {
    color: #FFF !important;
}


/* --- 2. 個人情報保護方針 (ズレのない完全中央配置) --- */
.form-privacy-wrap {
    margin-top: 0.5rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
}

/* CF7特有の余計なラッパー構造とmargin-left:1emを完全ゼロリセット */
.form-privacy-wrap .wpcf7-form-control-wrap,
.form-privacy-wrap .wpcf7-acceptance,
.form-privacy-wrap .wpcf7-list-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important; /* ← CF7の1em右ズレを消去 */
    padding: 0 !important;
    width: auto !important;
}

.form-privacy-wrap .wpcf7-list-item label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.form-privacy-wrap input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: var(--accent-color) !important;
    margin: 0 !important;


}
/* 個人情報保護方針のチェックボックス（カスタムデザイン版） */
.form-privacy-wrap input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 1px solid rgba(11, 15, 25, 0.2) !important;
    border-radius: 3px !important;
    background-color: #FFFFFF !important;
    cursor: pointer !important;
    margin: 0 !important;
    position: relative !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
}

/* チェックを入れた時：背景を緑にし、白のチェックアイコン（SVG）を表示 */
.form-privacy-wrap input[type="checkbox"]:checked {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    /* 白色のチェックマーク（SVG inline） */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
}



.form-privacy-text {
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
}

.form-privacy-link {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

.form-submit-wrap {
    margin-top: 2em;
    text-align: center;
}
.wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
}
.wpcf7-response-output {
    text-align: center;
    font-size: 0.8em;
    color: #dc3232;
    border: none !important;
}

/* スマホ用レスポンシブ */
@media screen and (max-width: 768px) {
    .form-radio-grid {
        grid-template-columns: 1fr !important;
    }
}


.wpcf7-not-valid-tip{
    margin-top: 0.2em;
    font-size: 0.8em;
}


/* ==========================================================================
   14. 製品紹介・採用共通 究極LPスタイル (Product & Career LP System)
   ========================================================================== */
.lp-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.lp-bg-dark { background-color: var(--main-color); color: #FFFFFF; }
.lp-bg-light { background-color: #FFFFFF; color: var(--main-color); }

.grid-2col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.lp-catch-huge {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #157F26 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-mockup-area {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(35, 172, 57, 0.2);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2), inset 0 0 20px rgba(35,172,57,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-section-heading {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    letter-spacing: 0.05em;
}

.lp-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}
.lp-feature-row:last-child { margin-bottom: 0; }
.lp-feature-row.row-reverse { direction: rtl; }
.lp-feature-row.row-reverse .lp-feature-body { direction: ltr; }

.lp-feature-num {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--accent-color);
    opacity: 0.3;
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.lp-feature-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.2rem; }

.lp-feature-visual {
    height: 280px;
    background-color: rgba(11, 15, 25, 0.02);
    border: 1px solid rgba(11, 15, 25, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-bg-dark .lp-feature-visual {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(35, 172, 57, 0.3);
    box-shadow: 0 0 30px rgba(35, 172, 57, 0.04);
}

.lp-career-slide-wrap {
    border-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    height: auto !important;
}

.lp-stat-box {
    text-align: center;
}

.lp-stat-number {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 800;
    font-family: monospace;
    display: block;
    margin-bottom: 0.5rem;
}

.lp-stat-label {
    color: var(--main-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.feature-desc-text {
    color: rgba(255, 255, 255, 0.7);
}

.feature-visual-tag {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* Speaker DeckのiframeをPC・スマホ問わず完璧な16:9でレスポンシブ表示する高精度指定 */
.speakerdeck-iframe {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    margin-top: 3rem;
    width: 80%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
@media (max-width: 640px) {
    .speakerdeck-iframe { width: 100%; }
}

/* 特長①の3大実績数値を並べるグリッド */
.career-stats-grid {
    display: flex;
    gap: 15px;
    padding: 20px;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.career-stat-box {
    text-align: center;
    flex: 1;
}

.career-stat-box.border-ch {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 15px;
}

.career-stat-label {
    font-size: 0.65rem;
    color: #A0AEC0;
    display: block;
    margin-bottom: 5px;
}

.career-stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    font-family: monospace;
}

/* 先輩の声セクションの右側ダミー表示 */
.career-voice-visual-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.career-voice-v-title {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.career-voice-v-sub {
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 500;
    font-family: monospace;
}

/* エントリーエリアの2大ボタンラッパー */
.career-entry-btn-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn-minimal-ja.btn-career-secondary {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}
.btn-minimal-ja.btn-career-secondary:hover {
    background-color: var(--accent-color) !important;
    color: #FFFFFF !important;
}

/* 募集職種一覧：PC時は3列、タブレット時は2列、スマホ時は1列 */
.career-positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 3.5rem;
}

/* 職種カード（白背景セクション用に完全に最適化） */
.career-position-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E2E8F0; /* しっかり見える薄いグレーの枠線 */
    padding: 2.2rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

/* 通常時のホバーエフェクト：立体感とグリーンが際立つモダンデザイン */
.career-position-card:not(.is-disabled):hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(35, 172, 57, 0.12);
}

/* 職種タグ */
.career-pos-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    background-color: rgba(35, 172, 57, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    font-family: monospace;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* 職種タイトル（白飛びを修正して視認性の高いダークグレーへ） */
.career-pos-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

/* 職種説明文 */
.career-pos-desc {
    font-size: 0.85rem;
    color: #4A5568;
    line-height: 1.65;
    margin-bottom: 2rem; /* ボタンとの間にゆとりを確保 */
}

/* ★新設：カード内蔵型「エントリーはこちら」ボタン（目立つ動線） */
.career-card-action-btn {
    margin-top: auto; /* コンテンツ量に関わらず、常にカードの最下部に整列 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
    background-color: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    color: #4A5568;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* カードホバー時に、中のボタンをCity Rebirthカラーへ連動変化 */
.career-position-card:not(.is-disabled):hover .career-card-action-btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #FFFFFF;
}

/* ─── 未募集職種のグレーアウト（disabled）システム ─── */
.career-position-card.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #F7FAFC;
    border-color: #E2E8F0;
    box-shadow: none;
}
.career-position-card.is-disabled .career-pos-title {
    color: #A0AEC0;
}
.career-position-card.is-disabled .career-pos-desc {
    color: #A0AEC0;
}
.career-position-card.is-disabled .career-pos-tag {
    color: #718096;
    background-color: #EDF2F7;
}
.career-position-card.is-disabled .career-card-action-btn {
    background-color: #EDF2F7;
    border-color: #E2E8F0;
    color: #A0AEC0;
}

/* レスポンシブ */
@media (max-width: 968px) {
    .career-positions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .career-positions-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── 募集要項ページ用 最小限の拡張スタイル ─── */
.req-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.req-tab-btn {
    background: none;
    border: none;
    color: #A0AEC0;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.req-tab-btn:hover, .req-tab-btn.active {
    color: var(--accent-color);
}

.req-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.req-content-box {
    display: none;
    opacity: 0;
}

.req-content-box.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 募集要項の2カラム並び（dl構造風のグリッド） */
.req-detail-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.req-detail-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
}

.req-detail-row dt {
    width: 25%;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.req-detail-row dd {
    width: 75%;
    color: #CBD5E0;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .req-detail-row {
        flex-direction: column;
        gap: 8px;
    }
    .req-detail-row dt, .req-detail-row dd {
        width: 100%;
    }
}

/* ==========================================================================
   15. メディアクエリ・レスポンシブオプティマイズ (Responsive Systems)
   ========================================================================== */
@media (max-width: 968px) {
    .services-grid-3col, .careers-layout, .company-layout {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    .it-solutions-row, .company-layout, .lp-about-grid, .lp-feature-row {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
     .it-solutions-row:last-child {
        margin-bottom: 0 !important;
    }
    .it-solutions-row.reverse .it-solutions-body { grid-column: 1; }
    .it-solutions-row.reverse .it-solutions-visual { grid-column: 1; grid-row: 2; }
    .lp-feature-row.row-reverse { direction: ltr; }
    .nav-menu, .floating-news-window { display: none; }
    .site-header { height: 70px; }
    .minimal-table th, .minimal-table td { display: block; width: 100%; }
    .minimal-table th { padding: 1.2rem 0 0.25rem 0; }
    .minimal-table td { padding: 0 0 1.2rem 0; }
    .map-container { min-height: 350px; }
    .careers-lead { font-size: 1.15rem; }
    .lp-section { padding: 5rem 0; }
    .lp-catch-huge { font-size: 1.8rem; }
    .career-stats-grid {
        flex-direction: column;
        gap: 25px;
    }
    .career-stat-box.border-ch {
        border: none;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .hero-kingram-japanese { padding: 100px 0; height: auto; }
    .hero-v-logo { height: 100px; }
    .hero-statement-ja { font-size: 0.85rem; letter-spacing: 0.3em; margin-bottom: 2rem; }
    .cta-section { padding: 6rem 0; }
    .cta-title { font-size: 1.6rem; }
    .cta-text { font-size: 0.85rem; }
    .footer-layout { flex-direction: column; gap: 4rem; padding-bottom: 3rem; }
    .footer-sitemap { flex-direction: column; gap: 2.5rem; width: 100%; }
    .underlayer-hero { padding: 9rem 0 4rem; }
    .underlayer-hero-bg-text { font-size: 4rem; bottom: -0.8rem; }
    .underlayer-title { font-size: 1.8rem; }
    .underlayer-main-content { padding: 3rem 0 6rem; }
    .underlayer-main-card { padding: 3rem 2rem; }
    .career-positions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 560px) {
    .form-radio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .quad-sections-grid { grid-template-columns: 1fr; gap: 12px; }
    .quad-item { padding: 1.25rem; }
    .to-top-button { bottom: 25px; right: 25px; width: 44px; height: 44px; }
}


/* Google reCAPTCHA バッジ非表示 */
.grecaptcha-badge {
    visibility: hidden;
}
.recaptcha-terms {
    text-align: center;
    font-size: 0.75rem;
    color: #B0B0B0;
    margin-top: 10px;
}