/* ==========================================================================
   4. Page Specific Styles (統合・修正版)
   ========================================================================== */

/* --- ページ共通の基本レイアウト --- */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.page-hero {
    padding: 100px 20px 60px;
    text-align: center;
    background-color: #f8f9fa;
    margin-top: 80px; /* 固定ヘッダー分のスペース */
}
.page-hero h1 {
    font-family: var(--font-sub); /* Montserrat */
    font-size: 3rem;
    font-weight: 700;
    color: #1a2333;
}
.page-hero p {
    font-size: 1.1rem;
    color: #5a6872;
    margin-top: 10px;
}

/* =============================================
   ▼▼▼ Home Page Hero Section (デザイン修正版) ▼▼▼
   ============================================= */

/* ヒーローセクション全体のスタイル */
/* ヒーローセクション全体のスタイル */
.scroll-section.bg-1 {
    position: relative; /* ★追加: これが三角形の位置を決める基準になります */
    align-items: center; 
    justify-content: center;
    padding: 120px 20px;
    overflow: hidden;   /* ★追加: はみ出た三角形を隠します */
}

.scroll-section.bg-1::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

/* ★追加: テキストとアニメーションを横並びにするラッパー */
.hero-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* 横幅を少し広げる */
    position: relative;
    z-index: 2;
}

/* 左側：テキストエリア */
.hero-content-container {
    flex-basis: 55%; /* 左側が55%の幅を占める */
    padding-right: 30px;
}
.hero-text-content {
    max-width: 700px;
}
.hero-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1a2333;
    margin: 0 0 30px 0;
    text-shadow: none;
}
.hero-summary p {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-shadow: none;
}
.hero-summary p:not(:last-child) {
    margin-bottom: 1em;
}

/* ★★★ここからアニメーション用のスタイルを新規追加★★★ */
/* 右側：アニメーションエリア */
.hero-animation-area {
    flex-basis: 40%; /* 右側が40%の幅を占める */
    height: 500px;
    position: relative;
}
.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 35, 51, 0.1) 0%, rgba(26, 35, 51, 0) 70%);
    animation: float-shape 20s infinite ease-in-out;
}
.shape-1 {
    width: 200px; height: 200px; top: 10%; left: 20%; animation-duration: 25s;
}
.shape-2 {
    width: 100px; height: 100px; top: 40%; left: 70%; animation-duration: 18s; animation-delay: -5s;
}
.shape-3 {
    width: 250px; height: 250px; top: 60%; left: 30%; animation-duration: 30s; animation-delay: -10s;
}
.shape-4 {
    width: 120px; height: 120px; bottom: 5%; right: 10%; animation-duration: 22s; animation-delay: -15s;
}
@keyframes float-shape {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, 50px) rotate(45deg); }
    50% { transform: translate(-40px, -20px) rotate(90deg); }
    75% { transform: translate(20px, -60px) rotate(135deg); }
    100% { transform: translate(0, 0) rotate(180deg); }
}
/* ★★★ここまでアニメーション用のスタイル★★★ */


/* --- アニメーション --- */
@keyframes floatUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-main-title,
.hero-summary {
    opacity: 0;
    animation: floatUp 1s ease-out 0.5s forwards;
}
.hero-summary {
    animation-delay: 0.8s;
}

/* --- レスポンシブ対応 (スマホ表示) --- */
@media screen and (max-width: 991px) {
    .hero-wrapper {
        justify-content: center;
    }
    .hero-content-container {
        flex-basis: 100%;
        padding-right: 0;
        text-align: center;
    }
    .hero-animation-area {
        display: none; /* 小さい画面ではアニメーションを非表示 */
    }
}
@media screen and (max-width: 768px) {
    .hero-main-title {
        font-size: 3rem;
    }
}

/* =============================================
   ▼▼▼ ヒーローセクション テキストアニメーション ▼▼▼
   ============================================= */

/* アニメーションの定義（下から上へ移動しながらフェードイン） */
@keyframes slideUpFadeIn {
  from {
    /* 開始時：下に30pxずれていて、透明な状態 */
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    /* 終了時：元の位置で、不透明な状態 */
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- アニメーションを各要素に適用 --- */

/* 「The Power to...」のタイトルへの適用 */
.hero-main-title {
  /* ★追加: アニメーションの初期状態として、最初は透明にしておく */
  opacity: 0;

  /* ★追加: keyframesで定義したアニメーションを適用 */
  animation-name: slideUpFadeIn;      /* アニメーション名 */
  animation-duration: 4s;           /* 1秒かけて動く */
  animation-timing-function: ease-out; /* 終了時に少し減速 */
  animation-delay: 1s;            /* 0.5秒遅れて開始 */
  animation-fill-mode: forwards;    /* アニメーション終了後、その場に留まる */
}

/* 日本語の文章への適用 */
.hero-summary {
  /* ★追加: こちらも最初は透明にしておく */
  opacity: 0;

  /* ★追加: 同じアニメーションを適用 */
  animation-name: slideUpFadeIn;
  animation-duration: 5s;
  animation-timing-function: ease-out;
  animation-delay: 0.8s; /* ★タイトルより少し(0.3秒)遅れて開始 */
  animation-fill-mode: forwards;
}

/* =============================================
   ▼▼▼ クリックアニメーション (三角形・完成版) ▼▼▼
   ============================================= */

/* JavaScriptによって生成される三角形のスタイル */
.falling-triangle {
    position: absolute;
    top: -60px;
    width: 0;
    height: 0;
    
    /* ★不足していた部分: 三角形を正しく表示するための記述 */
    border-style: solid;
    border-width: 0 30px 50px 30px; /* サイズ */
    border-color: transparent transparent #1a2333 transparent; /* デフォルト色 */
    
    /* ★不足していた部分: アニメーションを実行する命令 */
    animation: fall 2s linear forwards;
    
    /* ★追加: 使い勝手を良くするための設定 */
    pointer-events: none; /* 三角形がクリックの邪魔にならないように */
    z-index: 5; /* テキストよりは手前に表示 */
}

/* 落下アニメーションの定義 */
@keyframes fall {
  from {
    /* 開始位置は変更なし */
    top: -60px;
  }
  to {
    /* 終了位置を「親要素の下端」に設定 */
    top: calc(100% - 50px); 
  }
}

/* ★追加: お掃除ボタン用のクラス */
.falling-triangle.is-removing {
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0;
    transform: translateY(calc(100vh + 60px)) scale(0.5);
}

/* お掃除ボタンのスタイル（元からあればそのままでもOK） */
.clean-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 4;
    background-color: #fff;
    color: #333;
    border: 2px solid #333;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.clean-btn:hover {
    background-color: #1a2333;
    color: #fff;
    transform: scale(1.1);
}

/* =============================================
   ▼▼▼「click here!」の点滅アニメーション ▼▼▼
   ============================================= */

.click-indicator {
    /* --- 位置とデザイン --- */
    position: absolute;
    bottom: 400px; /* ←★この行が下からの位置を決めています */
    right: 160px;  /* 右からの位置 */

    /* ★手書き風フォントを指定（HTMLで読み込んでいるものを活用） */
    font-family: 'Kalam', cursive;
    font-size: 2rem;   /* 文字の大きさ */
    font-weight: 700;
    color: #5a6872;      /* 文字色（少し落ち着いたグレー） */
    transform: rotate(-10deg); /* 少し傾けて手書き感を出す */
    
    /* このテキスト自体がクリックの邪魔にならないようにする */
    pointer-events: none; 

    /* --- アニメーションの設定 --- */
    /* 「slow-blink」という名前のアニメーションを3秒かけて、無限に、滑らかに繰り返す */
    animation: slow-blink 3s infinite ease-in-out;
}

/* 点滅アニメーション本体の定義 */
@keyframes slow-blink {
    0% {
        opacity: 1; /* 100%表示 */
    }
    50% {
        opacity: 0.2; /* 20%まで薄くなる */
    }
    100% {
        opacity: 1; /* 100%表示に戻る */
    }
}

/* お掃除ボタンと位置が近いので、少し調整 */
.clean-btn {
    bottom: 30px;
    right: 40px; /* 少し左にずらす */
}


/* =============================================
   ▼▼▼ Home Page News Section (レイアウト修正版) ▼▼▼
   ============================================= */

.home-news-section {
    padding: 80px 20px;
    background-color: #f7f6f1; /* 方眼紙の背景色のような薄いクリーム色 */
    background-image: 
        linear-gradient(rgba(180, 180, 180, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 180, 180, 0.3) 1px, transparent 1px);
    background-size: 25px 25px;
}

.home-news-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border: 3px solid #333;
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
}

/* ★修正点: ヘッダー内の要素をFlexboxで横並びに */
.home-news-header {
    display: flex;
    align-items: baseline; /* テキストのベースラインを揃える */
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.home-news-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.home-news-category-tag {
    display: inline-block;
    border: 2px solid #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
}

.home-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ★修正点: ニュース各行の要素をFlexboxで横並びに */
.home-news-list-item a {
    display: flex;
    align-items: center;
    gap: 15px; /* 各要素間のスペース */
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease;
}

.home-news-list-item:last-child a {
    border-bottom: none;
}

.home-news-list-item a:hover {
    background-color: #f7f6f1;
}

.home-news-item-category {
    flex-shrink: 0; /* ★追加: カテゴリ名が縮まないようにする */
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    text-align: center;
}
/* カテゴリごとの色分け */
.home-news-item-category.-info { background-color: #3498db; }
.home-news-item-category.-release { background-color: #2ecc71; }
.home-news-item-category.-sustainability { background-color: #1abc9c; }


.home-news-item-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #777;
    flex-shrink: 0; /* ★追加: 日付が縮まないようにする */
}

.home-news-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.6;
    /* ★追加: タイトルが残りのスペースをすべて使うようにする */
    flex-grow: 1; 
    white-space: nowrap; /* ★追加: タイトルが折り返さないようにする */
    overflow: hidden; /* ★追加: はみ出したテキストを隠す */
    text-overflow: ellipsis; /* ★追加: はみ出した部分を...で表示 */
}

.home-news-footer {
    text-align: right;
    margin-top: 20px;
}

.home-news-more-button {
    display: inline-block;
    color: #333;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.home-news-more-button:hover {
    color: #e74c3c;
}



/* --- レスポンシブ対応 (スマホ表示) --- */
@media screen and (max-width: 768px) {
    .home-news-container {
        padding: 20px;
    }
    .home-news-list-item a {
        flex-wrap: wrap; /* スマホでは折り返す */
        gap: 5px 15px;
    }
    .home-news-item-title {
        width: 100%; /* タイトルは幅いっぱいにする */
        white-space: normal; /* スマホでは折り返しを許可 */
    }
}

/* =============================================
   ▼▼▼ Home Page Service Section (ホバー対応版) ▼▼▼
   ============================================= */

.home-service-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #fdfdfa;
}

/* (共通の見出し・ボタンのスタイルは変更なし) */
.home-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}
.home-section-footer {
    margin-top: 40px;
}
.home-more-button {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #333;
    border-radius: 50px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}
.home-more-button:hover {
    background-color: #333;
    color: #fff;
}

/* サービスカードのグリッドレイアウト */
.home-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ★★★ここからがホバーエフェクトの主要部分です★★★ */

.home-service-card {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-decoration: none;
    position: relative; /* テキストを重ねるための基準点 */
    overflow: hidden; /* はみ出したテキストを隠す */
    transition: all 0.4s ease;
    min-height: 150px; /* カードの最小高さを設定 */
    display: flex; /* 中央揃えのため */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-color: #000000;
}

/* カードのタイトル */
.service-card-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #185279;
    transition: all 0.4s ease;
    margin: 0;
}

/* カードの説明文（最初は非表示） */
.service-card-desc {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    position: absolute;
    padding: 20px;
    top: 100%; /* ★最初はカードの下に隠しておく */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    margin: 0;
    opacity: 0; /* ★最初は透明 */
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* ★ホバーした時の変化 */
.home-service-card:hover .service-card-title {
    transform: translateY(-150%); /* タイトルを上にスライドアウト */
    opacity: 0;
}

.home-service-card:hover .service-card-desc {
    top: 0; /* ★説明文をカードの位置に表示 */
    opacity: 1; /* ★不透明にする */
}

/* --- ▼▼▼ モバイル (ホバーがないデバイス) でのスタイル ▼▼▼ --- */
@media (hover: none), (max-width: 768px) {
    .home-service-card {
        justify-content: flex-start; /* 上揃えに変更 */
        text-align: left;
        align-items: flex-start;
        min-height: 180px; /* 高さを少し確保 */
    }
    
    .service-card-desc {
        /* 説明文を常に表示させる */
        position: static; /* 重ね合わせを解除 */
        opacity: 1;
        background-color: transparent;
        backdrop-filter: none;
        padding: 0;
        margin-top: 15px; /* タイトルとの間に余白 */
        text-align: left;
        align-items: flex-start;
    }
}

/* =============================================
   ▼▼▼ Home Page Recruit Section (トップページ専用) ▼▼▼
   ============================================= */

.home-recruit-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #2c3e50; /* 濃い背景色で他のセクションと差別化 */
    color: #fff;
}

/* 白文字用の見出し・ボタン修飾子クラス */
.home-section-title.-white {
    color: #fff;
}
.home-more-button.-white {
    color: #fff;
    border-color: #fff;
}
.home-more-button.-white:hover {
    background-color: #fff;
    color: #2c3e50;
}

/* 働く環境データ */
.home-recruit-data-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* スマホで折り返す */
}

.home-data-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    min-width: 180px;
}

.home-data-value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
}
.home-data-value small {
    font-size: 1.2rem;
}

.home-data-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 募集区分へのリンク */
.home-recruit-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* スマホで折り返す */
}

.home-recruit-card {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-recruit-card:hover {
    background-color: #ffffff;
    color: #1a3a69;
    /*
    background-color: rgba(255, 255, 255, 0.1);
    */
    border-color: #fff;
    transform: translateY(-5px);
}

/* =============================================
   ▼▼▼ Home Page About Section (デザイン修正版) ▼▼▼
   ============================================= */

.home-about-section {
    padding: 80px 20px;
    background-color: #f7f6f1; /* 背景色をニュースセクションと合わせる */
}

/* 見出しのデザインを調整 */
.home-section-title.-about .ja {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}
.home-section-title.-about .en {
    font-size: 2.5rem;
    color: #06575a; /* 緑系のアクセントカラー */
}

/* カードを並べるグリッド */
.home-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCでは3列 */
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* カード全体のスタイル */
.home-about-card {
    display: block;
    text-decoration: none;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden; /* 角丸を画像にも適用 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.home-about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* カードの画像部分 */
.about-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* 画像の比率を保ったままトリミング */
    display: block;
}

/* カードのテキスト部分 */
.about-card-content {
    padding: 20px;
    text-align: center;
}

.about-card-content h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* --- レスポンシブ対応 (スマホ表示) --- */
@media screen and (max-width: 768px) {
    .home-about-grid {
        grid-template-columns: 1fr; /* スマホでは1列に */
    }
}




/* =============================================
   ▼▼▼ MVVのページ ▼▼▼
   ============================================= */

/* --- Sub-page Hero --- */
.page-hero {
    padding: 120px 20px 60px 20px;
    text-align: center;
    background-color: #f8f9fa;
    margin-top: 80px;
}
.page-hero h1 {
    font-size: 3rem; /* トップのMVVタイトルのサイズ */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #293146 !important;
}
.page-hero p {
    font-size: 1.1rem;
    color: #333333;
}

/* --- Sub-page Main Container --- */
.page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- MVV Page Styles --- */
.mvv-section {
    padding: 80px 0;
    border-bottom: 1px solid #e0e0e0;
}
.mvv-section:last-of-type {
    border-bottom: none;
}

.kanji-image {
    display: block;
    margin: 0 auto;
    max-width: 350px;
    width: 80%;
    height: auto;
}

.mvv-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem; /* MISSIONなどの各セクタイトルサイズ */
    font-weight: 700;
    color: #252525; /* MISSION・VISION */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.mvv-statement {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 2.9rem;
    color: #0e2486; /* テクノロジーで... */
    line-height: 1.6;
}
.mvv-description {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    margin-top: 20px;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #0e0c0c;
}

/* =============================================
   ▼▼▼ モバイル表示のボタンレイアウト修正 ▼▼▼
   ============================================= */
@media screen and (max-width: 768px) {
    .page-navigation {
        /* Flexboxを使用してボタンを横並びに配置 */
        display: flex;
        justify-content: center; /* 中央揃え */
        gap: 15px; /* ボタン間の隙間 */
        flex-wrap: wrap; /* 画面が狭すぎる場合に折り返す */
    }
    
    .nav-button {
        /* 横並びにしたので、上下のmarginを調整 */
        margin: 10px 0;
        /* 横幅を少し詰めて、paddingも調整 */
        padding: 15px 20px;
        /* ボタンが利用可能なスペースを均等に分け合う */
        flex-grow: 1; 
        /* 1つのボタンが最大でも画面の半分弱に収まるように */
        max-width: 45%; 
        text-align: center; /* テキストを中央揃え */
    }
}

/* =============================================
   ▼▼▼ Missionセクションの画像サイズ調整 ▼▼▼
   ============================================= */

.mvv-image img {
    display: block;         /* 中央揃えのために必要 */
    margin: 0 auto;         /* 中央揃え */
    width: 100%;            /* 親要素の幅に合わせる */
    max-width: 400px;       /* ★画像の最大幅を250pxに指定 */
    height: auto;           /* 高さは自動で調整 */
}

/* =============================================
   ▼▼▼ 画像付きセクションのレイアウト（修正版）▼▼▼
   ============================================= */

.mvv-section.has-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.mvv-text {
    flex-grow: 1; /* ★テキストエリアが残りのスペースをすべて使うように変更 */
}

.mvv-image {
    flex-shrink: 0; /* ★画像コンテナが縮まないように設定 */
    /* flex-basis の指定は削除 */
}

.mvv-image img {
    display: block;
    height: auto;
    /* ★★★ここで画像の最大サイズを自由に調整できます★★★ */
    max-width: 500px; 
    opacity: 1;
}


.value-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}
.value-item {
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}
.value-heading {
    display: flex;
    align-items: baseline;
    gap: 25px;
    margin-bottom: 15px;
}
.value-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #c2ac32;
    flex-shrink: 0;
}
.value-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #0e2486;
    line-height: 1.6;
}
.value-description {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000000;
    padding-left: 70px;
}
/* ============================================= */


/* =============================================
   ▼▼▼ Aboutページの各セクションの余白 ▼▼▼
   ============================================= */
.about-section {
    margin-bottom: 120px; 
}

.about-section h2 {
    font-size: 2rem; 
    margin-bottom: 30px;
    margin-left: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
    color: #000000; /*会社概要などのタイトル*/
}

.about-section:last-of-type {
    margin-bottom: 0; 
}


/* --- Sub-page Bottom Navigation Buttons --- */
.page-navigation {
    text-align: center;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid #4a5a9c;
}
.nav-button {
    display: inline-block;
    background-color: #ffffff;
    color: #293146;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 8px;
    margin: 0 10px;
    border: 1px solid #dddddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.nav-button:hover {
    background-color: #293146;
    color: #ffffff;
    border-color: #293146;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- Scroll Animation (for sub-pages) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.is-visible > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible > *:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.animate-on-scroll.is-visible > *:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
.animate-on-scroll.is-visible > *:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* =============================================
   ▼▼▼ 会社概要セクションのスタイル (再修正案) ▼▼▼
   ============================================= */

/* --- 各行のスタイル（左右のパディングを増やす） --- */
.profile-row {
    display: flex;
    padding: 30px 50px; /* 縦30px, 横50px */
    border-bottom: 1px solid #4a5a9c; 
    align-items: baseline; 
}

/* --- 会社概要の項目 (dt) のスタイル --- */
.company-profile dt { 
    flex-shrink: 0;
    min-width: 160px; 
    max-width: 200px;
    font-weight: 700;
    color: #3a3a3a;
    font-size: 1.15rem; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- 会社概要の内容 (dd) のスタイル --- */
.company-profile dd { 
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    flex-grow: 1;
    margin-left: 80px; 
    line-height: 2.0; 
    color: #636363;
    font-size: 1.25rem; 
}


/* アクセス */
/* ★[追加] アクセスセクション(id="access")の中にある <p> タグのスタイル */
#access p {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    margin-left: 40px;
}

/* マップを囲むコンテナのスタイル */
.map-container {
    max-width: 1100px;
    margin: 0 auto; 
}

/* ★マップ本体（iframe）の高さ */
.map-container iframe {
    height: 400px; /* ← 450px から 350px に変更（お好みの高さにどうぞ） */
}



/* =============================================
   ▼▼▼ サブページのナビゲーションメニュー ▼▼▼
   ============================================= */
.page-submenu {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}
.page-submenu ul {
    display: flex;
    list-style: none; /* ・を消す */
    gap: 10px;        /* 項目間の余白 */
    background-color: #bbbbbb; /* 背景を白に */
    border-radius: 30px;     /* 角を丸く */
    padding: 8px;            /* 内側の余白 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.page-submenu a {
    display: block;
    padding: 10px 25px;
    color: #293146;         /* 文字をネイビーに */
    text-decoration: none; /* 下線を消す */
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
}
.page-submenu a:hover {
    background-color: #293146; /* ホバー時に背景をネイビーに */
    color: #ffffff;            /* ホバー時に文字を白に */
}
/* 現在表示しているページをハイライト表示するためのスタイル（必要に応じてHTML側でis-activeクラスを付与）*/
.page-submenu a.is-active {
    background-color: #293146;
    color: #ffffff;
}

/* =============================================
   ▼▼▼ 数字で見るAegis-Worksのスタイル ▼▼▼
   ============================================= */
.stats-grid {
    display: grid;
    /* PCでは4列、スマホでは2列になるように設定 */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* 各項目の間の余白 */
    padding: 40px 0;
    margin-left: 60px;
    margin-right: 60px;
}

.stat-item {
    text-align: center;
    background-color: #ffffff; /* 項目の背景色 */
    padding: 25px;
    border-radius: 12px;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: #c2ac32;
    margin: 0;

    /* 白枠やっぱいらなかったのでコメントアウト
    -webkit-text-stroke: 1px white; 
    */
}

.stat-unit {
    font-size: 1.5rem; /* 単位のサイズ */
    margin-left: 5px;
}

.stat-label {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    color: #000000; /*　顧客満足度などの項目の色 */
    margin-top: 10px;
}

/* スマホ表示用の調整 */
@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホでは2列に */
        gap: 20px;
    }
    .stat-value {
        font-size: 2.5rem;
    }
}

/* =============================================
   ▼▼▼ 代表メッセージのスタイル (スペース調整版) ▼▼▼
   ============================================= */
.message-content {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    color: #6d6d6d;
    font-size: 1.3rem;
    line-height: 2.2; /* ★行間をさらに広げる */
    margin-left: 50px;
    margin-right: 40px;
}

.message-content p {
    margin-bottom: 1.5em; /* ★段落間の余白を広げる */
}

.message-signature {
    margin-top: 60px; /* ★署名までの余白を広げる */
    text-align: right;
    margin-right: 40px;
}

.signature-title {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: #424242;
    margin: 0;
    margin-right: 40px;
}

.signatere-name {
    color: #000000;
    margin-right: 30px;
    font-size: 30px; 
    font-weight: 800;
}




/* =============================================
   ▼▼▼ 署名画像のスタイル ▼▼▼
   ============================================= 
.signature-image {
    display: block;      /* 画像をブロック要素として扱う 
    margin-top: 10px;    /* 役職との間の余白 
    margin-left: auto;   /* 右揃えにする 
    margin-right: 0;     /* 右揃えにする 
    max-width: 200px;    /* ★画像の最大幅を指定 
    height: auto;        /* 高さは自動調整 
}
*/
/* ==========================================================================
   Service Page (テーマカラー反映版)
   ========================================================================== */

/* --- ヒーローセクション --- */
.service-hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
    min-height: 300px;
    /* ネイビーとグレーのグラデーション背景に変更 */
    background: linear-gradient(135deg, #1a2333 0%, #495057 100%);
    color: #fff;
    overflow: hidden;
}
.service-hero::before {
    display: none;
}
.service-hero h1 {
    position: relative;
    font-family: var(--font-sub);
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
}

/* --- サブメニュー（タグ風デザイン） --- */
.service-submenu {
    padding: 25px;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6; /* グレー系の線 */
    position: sticky;
    top: 80px;
    z-index: 10;
}
.service-submenu > ul {
    max-width: 1100px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-submenu > ul > li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.submenu-title {
    display: none;
}
.service-submenu ul ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    justify-content: center;
}
.service-submenu a {
    display: block;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #495057; /* グレー */
    background-color: #f8f9fa; /* 明るいグレー */
    border: 1px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.service-submenu a:hover {
    background-color: #1a2333; /* ネイビー */
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* --- サービスリスト --- */
.service-list {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- サービスカードのデザイン --- */
.service-item {
    align-items: center;
    gap: 40px;
    margin-bottom: 120px;
    scroll-margin-top: 150px;
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
}
.service-item.reverse {
    flex-direction: row-reverse;
}
.service-item::before {
    content: '';
    position: absolute;
    top: -40px;
    width: 150px;
    height: 150px;
    background-color: #142333; /* 明るいグレー */
    border-radius: 30px;
    z-index: -1;
    transition: transform 0.5s ease;
}
.service-item.reverse::before {
    right: -40px;
    transform: rotate(45deg);
}
.service-item:not(.reverse)::before {
    left: -40px;
    transform: rotate(-45deg);
}
.service-item:hover::before {
    transform: rotate(0deg) scale(1.1);
}

/* ▼▼▼ ここからが修正箇所です ▼▼▼ */
/* 画像エリア */
.service-image {
    flex: 1.2;
    /* ★追加: 画像の高さを制御するための設定 */
    height: 350px; /* 画像の高さを350pxに固定 */
    border-radius: 15px; /* 親要素に角丸を設定 */
    overflow: hidden; /* はみ出した画像を隠す */
}
.service-image img {
    width: 100%;
    height: 100%; /* ★修正: 親要素の高さに合わせる */
    object-fit: cover; /* ★追加: 比率を保ったままエリアを埋める */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}
/* ▲▲▲ ここまでが修正箇所です ▲▲▲ */

/* テキストエリア */
.service-text {
    flex: 1;
}
.service-text h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 3px solid #1a2333; /* ネイビー */
    position: relative;
}
.service-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #adb5bd; /* グレー */
}
.service-text p {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 2;
    color: #495057; /* グレー */
}

/* --- レスポンシブ対応 (スマホ表示) --- */
@media screen and (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }
    .service-item, .service-item.reverse {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }
    .service-text h2 {
        font-size: 1.5rem;
    }
}

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


/* ==========================================================================
   News Page (Corrected with Override)
   ========================================================================== */

/* === News Pageの基本設定を調整 === */
#news-page {
    max-width: 960px;
    margin: 0 auto;
    /* 上下の余白をしっかり確保し、固定ヘッダーとの衝突を避ける */
    padding: 80px 20px; 
}

#news-page h1 {
    font-family: var(--font-sub);
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    /* タイトルとカテゴリボタンの間の余白を広げる */
    margin-bottom: 60px; 
    color: #293146;
}

.news-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 15px;
    /* カテゴリボタンとリストの間の余白を広げる */
    margin-bottom: 50px; 
    padding-bottom: 30px; /* 区切り線との距離も調整 */
    border-bottom: 1px solid #4a5a9c;
}

/* === カテゴリボタンのスタイルを調整 === */
.news-tab {
    padding: 8px 25px;
    color: #5e5c5c;
    text-decoration: none;
    border: 1px solid #4a5a9c;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    
    /* ★追加：最小幅を指定して見た目を揃える */
    min-width: 150px;
    text-align: center;
    box-sizing: border-box; /* paddingを含めた幅計算にする */
}

.news-tab:hover{
    background-color: #3e4a6b; /* ホバー時の背景色（例: 濃い青） */
    color: #ffffff; /* ホバー時の文字色（白） */
    border-color: #3e4a6b; /* ホバー時の枠線の色 */
}

.news-tab.is-active {
    background-color: #ffffff;
    color: #293146;
    border-color: #ffffff;
}

/* === ニュースリストのスタイルを調整 === */
.news-list-uuum {
    /* 既存の border-top は削除またはそのまま */
    /* border-top: 1px solid #4a5a9c; */

    /* ★追加：リスト全体をカードのように見せるためのスタイル */
    background-color: #fff; /* 背景色を白に */
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 僅かな影を追加 */
    overflow: hidden; /* 中の要素が角丸からはみ出ないように */
}

.news-link-item {
    display: flex !important;
    align-items: center;
    /* 左右のpaddingを0にし、上下のpaddingを調整 */
    padding: 20px 25px; 
    border-bottom: 1px solid #e0e6f0; /* 区切り線の色を少し柔らかくする */
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* ★追加：リストの最後の項目の下の線は不要なので消す */
.news-list-uuum .news-link-item:last-child {
    border-bottom: none;
}

.news-link-item:hover {
    /* ホバー時の背景色を少し変える */
    background-color: #f8f9fa; 
}

/* タイトルのホバー色は、行全体のホバーと競合しないように調整 */
.news-link-item:hover .news-title {
    color: #0056b3; /* 例: ホバー時にタイトル色を青くする */
}

/* pages.cssなどの末尾に追記 */
.news-link-item.is-hidden {
    display: none !important;
}

.news-link-meta {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.news-date {
    color: #272424;
    font-family: var(--font-sub);
    margin-right: 20px;
    font-size: 1rem;
}

.news-category {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--color-white);
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
}

.category-info { 
    background-color: var(--culture-rightBlue);
}
.category-release { background-color: var(--culture-green); }
.category-sustainability { background-color: var(--culture-blue); }

.news-title {
    color: #181616;
    font-weight: bold;
    margin: 0;
    line-height: 1.6;
    font-size: 1.05rem;
    display: inline-block;
    /* 上下のpaddingを0にし、左右のpaddingは残す(または padding: 0; でも可) */
    padding: 0 15px; 
}

.news-title:hover{
    color: #ffffff;

}

/* ==========================================================================
   Article Modal Styles
   ========================================================================== */

.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.article-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.884);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 5rem;
    color: #000000;
    background: none;
    border: none;
    cursor: url('../images/pointer.png'), pointer;
}

.article-modal .news-date{
    font-size: 1.5rem;
    color:#000000;
}

.modal-article-title {
    color: #162a50;
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 2rem;
}

.modal-article-content {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 2;
    color: #363841;
}

.modal-article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f0f0f0;
}

.modal-article-content p {
    margin-bottom: 1.5em;
}

/* ==========================================================================
   Article Detail Page Styles
   ========================================================================== */

.article-page {
    max-width: 1100px;
}

.article-header {
    text-align: center;
    margin: 40px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.article-featured-image {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.article-body-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.article-sidebar {
    flex-shrink: 0;
    width: 180px;
    position: sticky;
    top: 120px;
}

.share-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    color: #888;
    margin-bottom: 15px;
}

.social-share-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.social-share-list li {
    margin-bottom: 10px;
}

.social-link {
    display: block;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
    border-radius: 5px;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.social-link.twitter { background-color: #1DA1F2; }
.social-link.facebook { background-color: #1877F2; }
.social-link.line { background-color: #06C755; }
/* =============================================
   ▼▼▼ 7. Recruit Pages (デザイン改修・統合版) ▼▼▼
   ============================================= */

/* --- Recruit Top Page: 全体設定 --- */
#recruit-top-page {
    /* 既存のmainタグのpaddingをリセット */
    padding: 0;
}
#recruit-top-page .page-container.recruit-top {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* --- Recruit Top Page: ヒーローセクション --- */
.recruit-hero-new {
    height: 80vh; /* 画面の高さの80% */
    min-height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(26, 35, 51, 0.6), rgba(26, 35, 51, 0.6)), url('../images/Office.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: hero-zoom-in 10s ease-out forwards;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    animation: floatUp 1s ease-out 0.5s forwards;
    opacity: 0;
}
.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin: 0;
}
.hero-content .highlight {
    color: #bdbe4d; /* アクセントカラー (例: オレンジ系) */
}
.hero-content p {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.9;
}
.scrolldown-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.scrolldown-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background-color: #fff;
    margin: 10px auto 0;
    animation: scroll-indicator-anim 2s infinite;
}
@keyframes hero-zoom-in {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}
@keyframes scroll-indicator-anim {
    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; }
}

/* --- Recruit Top Page: コンテンツエリア --- */
#recruit-top-page .recruit-message h2,
#recruit-top-page .environment-data-section h2,
#recruit-top-page .employee-voice-section h2,
#recruit-top-page .recruit-categories h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: #1a2333;
}
#recruit-top-page .recruit-message {
    margin-bottom: 80px;
}
#recruit-top-page .recruit-message p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
}

/* 働く環境データ */
.environment-data-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 80px 0;
    flex-wrap: wrap;
}
.data-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
}
.data-card .data-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a2333;
}
.data-card .data-value small { font-size: 1.5rem; }
.data-card .data-label { display: block; margin-top: 5px; color: #5a6872; }

/* =============================================
   ▼▼▼ 働く環境セクション (「社員の声」からアレンジ) ▼▼▼
   ============================================= */

.work-environment-section {
margin: 100px 0;
}

/* * 既存の h2 スタイルが適用される想定ですが、
 * もし専用のスタイルが必要な場合はコメントを外してください。
*/
/*
.work-environment-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: #1a2333;
}
*/

.environment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3つの要素に合わせて3列に */
    gap: 30px;
    max-width: 1000px; /* 3列用に少し幅を広げます */
    margin: 0 auto;
}

.environment-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e6f0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.environment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

/* * 画像（.voice-card img）の代わりに、
 * CSSでアイコン（疑似要素）を追加します。
*/
.environment-card::before {
    content: '✦'; 
    display: inline-block;
    font-size: 1.5rem; 
    line-height: 40px; 
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: #f0ad4e; 
    background-color: #fef8eb;
    border-radius: 50%;
}

.env-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    color: #343a40; /* 読みやすいよう少し濃い色に */
    margin: 0; /* この下に要素がないためマージンをリセット */
}


/* --- スマートフォン用のレスポンシブ対応 --- */
@media screen and (max-width: 991px) {
    .environment-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
}
}

@media screen and (max-width: 768px) {
    .environment-grid {
    grid-template-columns: 1fr;
    max-width: 400px; /* 1列なので幅を狭める */
}
}

/* 募集区分 */
.recruit-categories {
    margin-top: 100px;
}
.recruit-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.recruit-category-card {
    display: block;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.3s ease, 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
}


.recruit-category-card:hover {
    transform: scale(0.95);
    border-color: #1a2333;
}
.card-image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* 募集区分の画像ラッパーを非表示にする */
.recruit-category-card .card-image-wrapper {
  display: none;
}

.card-content { padding: 25px 30px; text-align: center; }
.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2333;
    margin-bottom: 10px;
}
.card-content p {
    font-size: 1rem;
    color: #5a6872;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 3em;
}
.card-button {
    display: inline-block;
    font-weight: bold;
    color: #1a2333;
    padding: 10px 25px;
    border: 2px solid #1a2333;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.recruit-category-card:hover .card-button {
    background-color: #1a2333;
    color: #ffffff;
}

/* Recruit Top Page Responsive */
@media screen and (max-width: 991px) {
    .hero-content h1 { font-size: 4rem; }
    .voice-grid { grid-template-columns: 1fr; }
    .recruit-category-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
}

/* =============================================
   ▼▼▼ RECRUIT ページ上部 (デザイン改修案) ▼▼▼
   ============================================= */

/* --- ヒーローセクション --- */
.page-hero {
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e6f0;
    position: relative;
    overflow: hidden;
    color: #fff;
}


/* 背景にドット柄を追加 */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#dee2e6 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.6;
    z-index: 1;
}

.page-hero h1, .page-hero p {
    position: relative;
    z-index: 2; /* ドット柄の上に表示 */
}

.page-hero h1 {
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #1a2333; /* ネイビー */
}

.page-hero p {
    font-size: 1.1rem;
    color: #495057; /* グレー */
    margin-top: 15px;
}

/* --- 各セクションの共通スタイル (採用ページ) --- */
.career-section {
    /* ▼▼▼ この margin-bottom を追加（または変更） ▼▼▼ */
    /* セクション間の余白を広げます (例: 80px) */
    margin-bottom: 80px; 
}

.career-section h2 {
    font-size: 2rem; /* 少し大きく */
    font-weight: 800;
    margin-bottom: 40px;
    padding-left: 0; /* 左のpaddingをリセット */
    padding-bottom: 15px; /* 下に余白 */
    border-left: none; /* 左の線をリセット */
    border-bottom: 3px solid #f1f3f5; /* 下線に変更 */
    color: #1a2333;
    position: relative;
}

/* 見出しの左の装飾 */
.career-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px; /* 下線に重ねる */
    width: 60px;
    height: 3px;
    background-color: #1a2333; /* ネイビー */
}


/* --- 採用までの流れ (デザイン改修) --- */
.selection-flow-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    border-left: 3px dashed #ced4da; /* 点線に変更 */
    position: relative;
    counter-reset: step; /* CSSカウンターを初期化 */
}

.flow-item {
    padding: 20px 20px 40px 60px; /* 左の余白を広げる */
    position: relative;
    transition: background-color 0.3s ease;
    border-radius: 0 12px 12px 0;
}

.flow-item:hover {
    background-color: #f8f9fa; /* ホバー時に薄いグレーに */
}

/* ステップの円のデザインを変更 */
.flow-item::before {
    content: counter(step); /* 番号を表示 */
    counter-increment: step; /* 番号を1増やす */
    position: absolute;
    left: -24px; 
    top: 18px;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background-color: #1a2333; /* ネイビー */
    color: #fff;
    border-radius: 50%;
    border: 4px solid #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.flow-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #868e96; /* グレー */
    margin-bottom: 8px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.flow-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 10px;
}

.flow-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    font-weight: normal;
}

/* --- 募集要項・働く環境 (デザイン修正・モバイル対応版) --- */
.career-info-list {
    background-color: #ffffff;
    border: 1px solid #252f41;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    overflow: hidden;

    /* ▼▼▼【変更】▼▼▼ */
    /* display: flex と flex-wrap: wrap を親の <dl> に設定 */
    display: flex;
    flex-wrap: wrap; 
}

.career-info-list dt {
    width: 200px;
    flex-shrink: 0;
    font-weight: bold;
    padding: 15px 20px;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;

    /* ▼▼▼【変更】▼▼▼ */
    /* 項目ごとに下線を引くため、dt/dd両方にborder-bottomを設定 */
    border-bottom: 1px solid #e0e6f0; 
    box-sizing: border-box; /* 崩れ防止 */
}

.career-info-list dt::before {
    content: '✦';
    margin-right: 10px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.career-info-list dd {
    width: calc(100% - 200px);
    padding: 15px 20px;
    margin: 0;
    border-left: 1px solid #e0e6f0;
    display: block; /* ← flexをやめてblock表示に */
    border-bottom: 1px solid #e0e6f0; 
    box-sizing: border-box;
    line-height: 1.6; /* 行間も少しゆとりを */
}


/* 最後の行(dtとdd)だけ下の線を消す */
.career-info-list dt:last-of-type,
.career-info-list dd:last-of-type {
    border-bottom: none;
}


/* ▼▼▼ モバイル用の修正 ▼▼▼ */
@media screen and (max-width: 768px) {
    /* ★変更★ 親の <dl> の display:flex を解除 */
    .career-info-list {
        display: block; 
    }

    .career-info-list dt {
        width: 100%;
        box-sizing: border-box; 
        border-bottom: 1px dashed #e0e6f0;
        /* モバイルでは最後のdtの線も必要 */
        border-top: none; 
    }
    
    .career-info-list dd {
        width: 100%;
        box-sizing: border-box;
        border-left: none;
        padding-top: 20px;
        /* モバイルではddの下線を引く */
        border-bottom: 1px solid #e0e6f0;
    }
    
    /* モバイルでは最後のddの線だけ消す */
    .career-info-list dd:last-of-type {
        border-bottom: none;
    }
}



/* =============================================
   ▼▼▼ 働く環境セクション (微調整) ▼▼▼
   ============================================= */

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin: -20px auto 40px;
    max-width: 800px;
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.environment-card {
    background-color: #fff;
    border: 1px solid #e0e6f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.environment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.environment-card h3 {
    font-size: 1rem;
    font-weight: bold;
    color: #5a6872;
    background-color: #f0f4f8;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.environment-card .data-value {
    font-family: 'Montserrat', sans-serif; /* 数字はMontserrat */
    font-weight: 700;
    font-size: 2.2rem;
    color: #1a2333; /* ★[変更] 変数ではなく色を明示 */
    line-height: 1.2;
}

.environment-card .unit {
    font-size: 1.5rem;
    margin-left: 5px;
}

.environment-card .data-label {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
    min-height: 1.2em; /* ★[追加] 空白ラベルでも高さを確保 */
}

.card-image {
    margin-top: auto; 
    padding-top: 20px; 
    height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* ★[追加] 画像無しでも高さを確保 */
}

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

/* --- スマートフォン用の調整 --- */
@media screen and (max-width: 768px) {
    .environment-grid {
        grid-template-columns: repeat(2, 1fr); /* タブレットでは2列 */
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .environment-grid {
        grid-template-columns: 1fr; /* スマホでは1列 */
    }
}




/* --- 応募ボタン --- */
.back-button-area {
    text-align: center;
    margin: 60px 0 30px;
}


/* =============================================
   ▼▼▼ RECRUIT 応募フォーム (デザイン改修・統合版) ▼▼▼
   ============================================= */

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    padding: 25px;
    margin-bottom: 40px;
    color: #5a6872;
}

.recruit-form {
    background-color: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 43, 94, 0.08);
    border: 1px solid #e0e6f0;
}

/* ★フォームを2列グリッドレイアウトに変更 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* フォームの各項目グループ */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

/* ★項目全体を囲むクラス (1列幅) */
.form-group.full-width {
    grid-column: 1 / -1; /* 1列目から最後まで、つまり1列全体を占有 */
}

/* ----------------------------------
    ラジオボタン＆チェックボックス
  ---------------------------------- */

/* ★[追加] ラジオボタン・チェックボックスのグループ */
.radio-group-container,
.checkbox-group-container {
    grid-column: 1 / -1;
    margin-bottom: 25px;
}

/* ★[追加] フローティングしない静的なラベル */
.form-label-static {
    display: block;
    font-size: 0.9rem;
    color: #5a6872;
    margin-bottom: 12px;
    font-weight: 500;
}

/* ★[追加] 選択肢を横並びにするラッパー */
.radio-group-options {
    display: flex;
    flex-wrap: wrap; /* スマホで折り返す */
    gap: 20px;
    padding-top: 5px;
}

/* ★[追加] 各選択肢のスタイル */
.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* ----------------------------------
    フォーム部品本体
  ---------------------------------- */

/* フローティングラベル */
.form-label {
    position: absolute;
    top: 14px;
    left: 15px;
    color: #888;
    background-color: #fff;
    padding: 0 5px;
    transition: all 0.2s ease;
    pointer-events: none;
}

.required-badge {
    display: inline-block;
    background-color: #1a2333; /* 色を明示 (var(--color-primary) と同等) */
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* テキスト入力・セレクトボックス */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff; /* ラベルが浮いた時に背景を隠すため */
}

/* ★[追加] カスタムラジオボタン */
.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    width: 1.15em;
    height: 1.15em;
    border: 2px solid #1a2333;
    border-radius: 50%;
    margin-right: 8px;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}
.radio-option input[type="radio"]::before {
    content: '';
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    background-color: #1a2333;
    transform: scale(0);
    transition: transform 0.2s ease;
}
.radio-option input[type="radio"]:checked::before {
    transform: scale(1);
}

/* ★[追加] カスタムチェックボックス */
.checkbox-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    width: 1.15em;
    height: 1.15em;
    border: 2px solid #1a2333;
    border-radius: 4px;
    margin-right: 8px;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}
.checkbox-option input[type="checkbox"]::before {
    content: '✔';
    color: #1a2333;
    font-size: 0.8em;
    font-weight: bold;
    transform: scale(0);
    transition: transform 0.2s ease;
}
.checkbox-option input[type="checkbox"]:checked::before {
    transform: scale(1.2);
}

/* ★[追加] ラジオ・チェックボックスのラベル */
.radio-option label,
.checkbox-option label {
    font-size: 1rem;
    color: #343a40;
    cursor: pointer;
}


/* ----------------------------------
    フォームの動作
  ---------------------------------- */

/* ★入力中または入力済の場合のラベルの動き */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label,
.form-select:focus + .form-label,
.form-select:not([value=""]) + .form-label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: #1a2333; /* var(--color-primary) と同等 */
}

/* フォーカス時の枠線 */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #1a2333; /* var(--color-primary) と同等 */
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.2);
    outline: none;
}

/* ----------------------------------
    ファイルアップロード
  ---------------------------------- */

.file-upload-section {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s;
}
.file-upload-section:hover {
    border-color: #1a2333; /* var(--color-primary) と同等 */
}

.file-instructions {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #555;
}
.file-instructions ul {
    list-style: none;
    padding: 0;
}
.file-upload-label {
    font-weight: bold;
    display: inline-block;
    background-color: #f0f4f8;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}
.form-file-input {
    display: none; /* 元のinputは隠す */
}
.file-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
}

/* ----------------------------------
    同意・送信・プライバシー
  ---------------------------------- */

.privacy-policy-agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

/* ★[修正] 同意チェックボックスにもカスタムスタイルを適用 */
.privacy-policy-agreement input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    width: 1.15em;
    height: 1.15em;
    border: 2px solid #1a2333;
    border-radius: 4px;
    margin-right: 10px;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
 }

.privacy-policy-agreement input[type="checkbox"]::before {
    content: '✔';
    color: #1a2333;
    font-size: 0.8em;
    font-weight: bold;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.privacy-policy-agreement input[type="checkbox"]:checked::before {
    transform: scale(1.2);
}
.privacy-policy-agreement label {
    cursor: pointer;
}

.form-submit-area {
    text-align: center; /* 送信ボタンを中央揃え */
}

.form-submit-area .cta-button {
    background:#003366;
}
.form-submit-area .cta-button::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}
.form-submit-area .cta-button:hover::after {
    transform: translateX(5px);
}

.privacy-policy-text {
    margin-top: 50px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}
.privacy-policy-text h4 {
    font-weight: bold;
    margin-bottom: 15px;
}
.privacy-policy-text ul {
    list-style: none;
    padding: 0;
}
.privacy-policy-text li {
    margin-bottom: 10px;
/* ★[修正] 疑似要素ではなく、text-indentで字下げ */
    padding-left: 1.2em;
    text-indent: -1.2em;
}
.privacy-policy-text li::before {
    content: '・';
    margin-right: 0.5em;
}

.privacy-link,
.privacy-link:visited {
    color: #1a2333; /* var(--color-primary) と同等 */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* ----------------------------------
A.   レスポンシブ対応
  ---------------------------------- */

@media screen and (max-width: 768px) {
    .recruit-form {
    padding: 30px 20px; /* スマホではパディングを小さく */
}

    .form-grid {
 /* ★[追加] 2列グリッドを1列にスタック */
 grid-template-columns: 1fr;
}

/* ラジオボタンの横並びを解除（必要に応じて） */
/* .radio-group-options {
        flex-direction: column;
        gap: 15px;
    } */
}

/* =============================================
   ▼▼▼ 応募フォーム確認画面 ▼▼▼
   ============================================= */
.confirmation-area dl {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e6f0;
    margin: 0;
}
.confirmation-area dt {
    width: 200px;
    flex-shrink: 0;
    font-weight: bold;
    padding: 20px;
    background-color: #f8f9fa;
}
.confirmation-area dd {
    width: calc(100% - 200px);
    padding: 20px;
    margin: 0;
    border-left: 1px solid #e0e6f0;
    word-break: break-all; /* メールアドレスなどがはみ出ないように */
}
.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.confirmation-buttons .cta-button.secondary {
    background: #6c757d;
}
.confirmation-buttons .cta-button.secondary:hover {
    background: #5a6268;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .confirmation-area dt,
    .confirmation-area dd {
        width: 100%;
        border-left: none;
    }
    .confirmation-area dt {
        border-bottom: 1px dashed #ccc;
        padding: 15px;
    }
    .confirmation-area dd {
        padding: 15px;
    }
    .confirmation-buttons {
        flex-direction: column;
    }
}


/* =============================================
   ▼▼▼ 応募完了（サンクス）ページ ▼▼▼
   ============================================= */

.thanks-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 50px;
    background-color: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.thanks-icon img {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.thanks-container h1 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.thanks-container p {
    line-height: 2;
    color: #333;
    margin-bottom: 40px;
}


/* =============================================
   ▼▼▼ 福利厚生・休日休暇 (新デザイン) ▼▼▼
   ============================================= */

/* --- 古いスタイルは削除してください --- */
/* .benefit-list, .benefit-list li, .highlight-box, .holiday-catchcopy の指定を削除 */


/* =============================================
   ▼▼▼ 福利厚生 & 休日休暇 (コンパクト版) ▼▼▼
   ============================================= */
/* =============================================
   ▼▼▼ 福利厚生 & 休日休暇 (3Dフリップ版) ▼▼▼
   ============================================= */

/* --- グリッドコンテナ --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* --- 各アイテムのコンテナ（3D空間の基点） --- */
.benefit-item {
    background-color: transparent;
    height: 160px; /* パネルの高さを固定 */
    perspective: 1000px; /* 3D効果の奥行き */
}

/* --- 回転する本体 --- */
.benefit-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.2s;
    transform-style: preserve-3d;
}

/* ホバー時に本体を180度回転させる */
.benefit-item:hover .benefit-flipper {
    transform: rotateY(180deg);
}

/* --- パネルの表と裏の共通スタイル --- */
.benefit-front,
.benefit-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari用 */
    backface-visibility: hidden; /* 裏面を非表示に */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- 表パネルのスタイル --- */
.benefit-front {
    background-color: #f8f9fa;
    border: 1px solid #e0e6f0;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.benefit-front h3 {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    padding: 0 10px;
}

/* --- 裏パネルのスタイル --- */
.benefit-back {
    background-color: var(--color-primary);
    color: white;
    transform: rotateY(180deg); /* 最初から裏返しておく */
    padding: 20px;
}

.benefit-back h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 5px;
}

.benefit-back p {
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: normal;
}


/* --- スマートフォン用の調整 --- */
@media screen and (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .benefit-item {
        height: 150px; /* スマホでは少し高さを詰める */
    }
}

/* ==========================================================================
   Sustainability Page Styles
   ========================================================================== */

/* ページ共通のヒーローエリア */
.page-hero {
  padding: 120px 20px 60px 20px;
  text-align: center;
  background-color: #f8f9fa;
  margin-top: 80px; /* 固定ヘッダー分のスペース */
}
.page-hero h1 {
  font-size: 3rem;
  font-family: 'Montserrat', sans-serif;
}
.page-hero p {
  font-size: 1.1rem;
  color: #666;
}

/* ページ全体のコンテナ */
.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* 各セクションの共通スタイル */
.sustainability-section {
  margin-bottom: 60px;
}
.sustainability-section h2 {
  font-size: 2rem;
  font-weight:bold;
  text-align: center;
  margin-bottom: 30px;
}
.sustainability-section p {
  line-height: 1.8;
  font-weight: bold;
  font-size: 1.2rem;
}

/* 取り組み紹介のグリッドレイアウト */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCでは3列 */
  gap: 30px;
}

/* 取り組みカード */
.initiative-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}
.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}
.initiative-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color:#14253a; /* 環境への配慮など */
}
.initiative-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* 関連ニュースセクション */
.related-news {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #eee;
}
.related-news h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* --- Sustainability Page Specific --- */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.initiative-card {
    display: block;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.initiative-card:hover {
    background-color: #b7b9b9;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    cursor: url('../images/pointer.png'), pointer ;
}

.initiative-card h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.initiative-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.initiative-card .card-icon {
  font-size: 32px;
}



/* スマホ表示用の調整 */
@media screen and (max-width: 768px) {
  .initiatives-grid {
    grid-template-columns: 1fr; /* スマホでは1列 */
  }
  .page-hero {
    padding: 80px 20px 40px 20px;
    margin-top: 60px;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
}

/* =============================
   Sustainability TRKM Page
   ============================= */

.sustainability-details {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.detail-section {
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  position: relative;
}

.detail-section:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.detail-section h2 { /* 環境への配慮などのセクションタイトル部分 */
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0b1630;
    position: relative;
    padding-left: 14px;
    border-left: 6px solid #0b1630;
}

.detail-section p {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 24px;
}

.detail-section ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.detail-section ul li {
  list-style: disc;
  color: #2d2d2d;
  font-family : 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 10px;
  font-size: 17px;
  transition: color 0.3s;
}

.detail-section ul li:hover {
  color: #072949;
  font-family : 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-weight: bold;
  font-size: 18px;
}

.detail-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.back-button-area {
  text-align: center;
  padding: 50px 0;
}

.back-button-area .cta-button {
  background-color: #0073aa;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.2s;
}

.back-button-area .cta-button:hover {
  background-color: #005e8a;
  transform: translateY(-2px);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .detail-section {
    padding: 32px 24px;
  }

  .detail-section h2 {
    font-size: 24px;
  }

  .detail-section p,
  .detail-section ul li {
    font-size: 15px;
  }

  .detail-img {
    max-height: 200px;
  }

  .back-button-area .cta-button {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* =============================================
   ▼▼▼ Culture Page　▼▼▼
   ============================================= */
.culture-item {
    display: flex; /* テキストと画像を横並びに */
    align-items: stretch; /* 高さをコンテナに合わせる */
    margin-bottom: 60px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden; /* 角丸を画像にも適用 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 偶数番目のアイテムは画像とテキストの配置を反転 */
.culture-item:nth-child(even) {
    flex-direction: row-reverse;
}

.culture-text {
    flex: 1.5; /* 横幅の比率を画像より広く (例: 1.5/2.5 = 60%) */
    padding: 40px 50px;
    position: relative; /* 数字を配置する基準点 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.culture-image {
    flex: 1; /* 横幅の比率 (例: 1/2.5 = 40%) */
    min-width: 35%; /* 画像の最小幅を少し小さく調整 */
}

.culture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をコンテナいっぱいに表示 */
    display: block;
}

/* --- (その他のスタイルは変更なし) --- */

.culture-number {
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 8rem; /* 数字の大きさ */
    font-weight: 700;
    color: rgba(85, 83, 83, 0.05); /* 数字の色と透明度 */
    z-index: 1;
    line-height: 1;
    user-select: none; /* テキスト選択不可に */
}

.culture-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2; /* 数字の上に表示 */
}

.culture-text p {
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2; /* 数字の上に表示 */
}


/* 各アイテムのアクセントカラー */
.culture-item.color-blue .culture-title { color: #2978b5; }
.culture-item.color-rightBlue .culture-title { color: #00a9a9; }
.culture-item.color-otherBlue .culture-title { color: #5d5dff; }
.culture-item.color-green .culture-title { color: #1d9d53; }

/* =============================================
   ▼▼▼ Contact Page Styles ▼▼▼
   ============================================= */

/* --- ページ全体のレイアウト --- */
#contact-page {
  max-width: 800px; /* フォームの最大幅を設定 */
  margin: 60px auto; /* 上下の余白と、左右の自動マージンで中央揃え */
  padding: 0 20px;
}

#contact-page h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #1a2333;
}

.contact-lead {
  text-align: center;
  font-size: 1.1rem;
  color: #5a6872;
  margin-bottom: 40px;
}


/* --- フォームコンテナ --- */
.contact-form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}


/* --- フォーム要素（ラベル・入力欄） --- */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* ★入力欄を選択した時のスタイル */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff; /* 青いアクセントカラー */
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
  outline: none;
}


/* --- 送信ボタン --- */
.contact-form .cta-button {
  display: block;
  width: 100%;
  background-color: #003366; /* ブランドカラー */
  color: #ffffff;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: url('../images/pointer.png'),pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-form .cta-button:hover {
  background-color: #001f4d; /* 少し濃い色に */
  transform: translateY(-3px); /* 少し浮き上がる */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* =============================================
   ▼▼▼ Privacy Policy Page ▼▼▼
   ============================================= */

.policy-container {
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.policy-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e6f0;
}
.policy-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.policy-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 1rem;
    border-left: 5px solid var(--color-primary);
}

.policy-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

.policy-section h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
}

.policy-section p,
.policy-section li {
    line-height: 2;
    margin-bottom: 1em;
    font-weight: normal;
    color: #333;
}

.policy-section ul,
.policy-section ol {
    padding-left: 25px;
}

.policy-signature {
    margin-top: 40px;
    text-align: right;
    line-height: 1.8;
}

.contact-info-box {
    margin-top: 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* --- スマートフォン対応 --- */
@media screen and (max-width: 768px) {
    .policy-container {
        padding: 30px 20px;
    }
    .policy-section h2 {
        font-size: 1.5rem;
    }
    .policy-section h3 {
        font-size: 1.2rem;
    }
}
