/* ===== 1. 全体設定 ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background: #f9f9f9;
    margin-top: 100px; /* 固定ヘッダー分の余白 */
    color: #333;
    line-height: 1.6;
}

/* ===== 2. ヘッダー（固定・ロゴデザイン） ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* 会社名（ロゴ風） */
.logo a {
    font-size: 26px;
    font-weight: 800;
    color: #0d3b66;
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
}

.logo a::first-letter {
    color: #ff6600;
    font-size: 1.15em;
}

.logo a::after {
    content: ".";
    color: #ff6600;
    font-size: 40px;
    line-height: 0;
    margin-left: 2px;
    vertical-align: middle;
}

.logo a:hover {
    transform: scale(1.05);
    color: #ff6600;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

/* ナビゲーション */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff6600;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== 3. トップページ：サービス内容（真ん中寄せ） ===== */
.services {
    padding: 80px 20px;
    text-align: center;
}

.services h2 {
    font-size: 32px;
    color: #0d3b66;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.services h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6600;
}

.service-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    width: 280px;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* =================================================
   7. STRENGTH（株式会社ルービックが選ばれる理由：ホバー画像表示版）
   ================================================== */
.strength {
    padding: 100px 20px;
    background-color: #f4f7fa; /* 薄グレー背景 */
    text-align: center;
}

.strength .en-title {
    display: block;
    color: #ff6600; /* オレンジ */
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.strength h2 {
    font-size: 32px;
    color: #0d3b66; /* 紺 */
    margin-bottom: 50px;
    font-weight: 800;
}

/* サービス内容（.service-cards）と同じグリッド設定 */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* 隙間 */
    max-width: 1100px;
    margin: 0 auto;
}

/* --- カード本体 --- */
.strength-card {
    background: white;
    border-radius: 20px; /* 角丸 */
    box-shadow: 0 10px 50px rgba(0,0,0,0.05); /* 影 */
    transition: all 0.4s ease;
    overflow: hidden; /* はみ出しをカット */
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%; /* 高さを揃える（70%から100%に修正し、gridの高さに合わせる） */
    text-decoration: none;
    color: inherit;
    position: relative; /* 子要素（画像）の配置基準にする */
    min-height: 100px; /* サービスカードと高さを合わせるために追加 */
}

/* ホバー演出（既存：上に少し浮く） */
.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* --- ★修正：画像エリア（ホバー前は隠す） --- */
.strength-img {
    position: absolute; /* カード全体に重ねる */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* テキストよりも下に配置 */
    opacity: 0; /* ★最初は透明で見えなくする */
    transition: opacity 0.6s ease; /* ★0.6秒かけてふわっと表示 */
}

/* ★修正：ホバーした時に画像を「不透明（opacity: 1）」にする */
.strength-card:hover .strength-img {
    opacity: 1;
}

.strength-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 綺麗に切り抜き */
    transition: transform 0.6s ease; /* 画像自体のズームアニメーション */
}

/* ホバー時に画像を少しズームさせて躍動感を出す（既存を継承） */
.strength-card:hover .strength-img img {
    transform: scale(1.1);
}

/* --- ★修正：テキストコンテンツ（画像の上のオーバーレイ） --- */
.strength-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative; /* z-indexを有効にするため */
    z-index: 2; /* ★画像よりも上に表示 */
    transition: background-color 0.6s ease, color 0.6s ease; /* ふわっと色を変える */
    background: white; /* 最初は白背景 */
}

/* ★修正：ホバーした時にテキストエリアを半透明の紺色にする */
.strength-card:hover .strength-content {
    background-color: rgba(13, 59, 102, 0.7); /* 株式会社ルービックの紺色を半透明（0.7）に */
    color: white; /* ★文字を白にして読みやすくする */
}

.strength-icon-mini {
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
}

.strength-card h3 {
    font-size: 20px;
    color: #0d3b66; /* 最初は紺 */
    margin-bottom: 15px;
    font-weight: 800;
    transition: color 0.6s ease;
}

/* ホバー時はタイトルをオレンジに */
.strength-card:hover h3 {
    color: #ff6600;
}

.strength-card p {
    font-size: 15px;
    color: #666; /* 最初はグレー */
    line-height: 1.8;
    margin: 0;
    transition: color 0.6s ease;
}

/* ホバー時は説明文を白に */
.strength-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .strength-grid {
        grid-template-columns: 1fr; /* 1枚ずつ縦並び */
        padding: 0 10px;
    }
}
/* ===== 5. 会社概要・詳細ボックス ===== */
.detail-box, .company-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-row {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.info-row:last-child { border-bottom: none; }

.info-label {
    width: 30%;
    font-weight: bold;
    color: #0d3b66;
    position: relative;
    padding-left: 15px;
}

.info-label::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 16px;
    background: #ff6600; border-radius: 2px;
}

.tag {
    display: inline-block;
    background: #f0f4f8;
    color: #0d3b66;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
    margin-right: 5px;
    font-weight: 500;
}

/* ===== 6. お問い合わせフォーム（もわっと仕様） ===== */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    text-align: left;
}

.form-label {
    display: block;
    margin-left: 15px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ff6600;
    font-size: 14px;
}

.contact-form select, 
.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px 25px;
    border: 2px solid #eef2ff;
    border-radius: 30px;
    background-color: #f9fbff;
    font-size: 16px;
    color: #555;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    margin-bottom: 20px;
}

.contact-form select {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ff6600" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
}

.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: #ffccaa;
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.1);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    transform: translateY(-5px) scale(1.02);
    border-color: #ff6600;
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.15);
}

/* ===== 7. ヒーロー & ボタン ===== */
.hero {
    height: 80vh;
    background: url("./images/hero.jpg") center/cover no-repeat;/* ←ここが重要！ */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative; /* 文字を上に乗せるために必要 */
}

.btn-primary {
    display: inline-block;
    padding: 15px 50px;
    background: #ff6600;
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.btn-primary:hover {
    background: #e65c00;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}

/* ===== 8. アニメーション & その他 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

html { scroll-behavior: smooth; }

footer {
    text-align: center;
    padding: 40px;
    background: #eee;
}

/* ===== 9. レスポンシブ ===== */
@media (max-width: 768px) {
    header { height: auto; padding: 10px 0; }
    .header-container { flex-direction: column; }
    .nav-links { gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
    .info-row { flex-direction: column; align-items: flex-start; }
    .info-label { width: 100%; margin-bottom: 5px; }
    .info-value { width: 100%; }
}

/* ===== SNSボタンのカスタムデザイン ===== */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sns-desc {
    font-size: 13px;
    color: #666;
    margin: 5px 0 12px;
}

/* LINEボタン：もわっと動く */
.line-btn {
    display: block;
    background: #06c755;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.2);
}

/* Instagramボタン：おしゃれなグラデーション */
.insta-btn {
    display: block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(204, 35, 102, 0.2);
}

/* ホバー時の「もわっと」エフェクト */
.line-btn:hover, .insta-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.line-btn:active, .insta-btn:active {
    transform: scale(0.98);
}

/* ===== お問い合わせページ専用デザイン（幅制限Ver.） ===== */
.contact-page { background-color: #f8fbff; }

.contact-hero {
    background: #0d3b66;
    color: white;
    padding: 100px 20px 140px;
    text-align: center;
}

/* フォームとサイドバーを包む全体の枠を少し絞る */
/* フォームとサイドバーを包む全体の枠 */
.contact-wrapper {
    max-width: 900px;
    /* margin-top を -80px から 0px（あるいはプラス）に変えると下に下がります */
    margin: 20px auto 100px; 
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

/* さらに「メッセージカード」単体をもっと下げたい場合はこちらを追加 */
.message-card {
    margin-top: 40px; /* カードの上にさらに余白を追加 */
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 左側：SNS案内（ここを少しスリムに） */
.contact-sidebar {
    flex: 0 0 320px; /* 幅を320pxで固定して、横に伸びすぎないようにする */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 右側：フォーム（ここも幅を制限） */
.contact-form-container {
    flex: 1;
    max-width: 550px; /* フォームの最大幅を550pxに制限 */
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

/* SNSボタン自体の横幅も、文字に合わせる（長すぎないように） */
.line-btn, .insta-btn {
    display: block;
    width: 100%; /* 親要素(320px)の中いっぱいに */
    max-width: 280px; /* でも最大280pxまでに抑える */
    margin: 0 auto; /* 中央に寄せる */
    padding: 12px;
    border-radius: 50px; /* より丸くして可愛く */
    text-align: center;
}

/* 入力欄も少し高さを抑えてシュッとさせる */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    padding: 12px 20px !important; /* 少しだけスリムに */
    margin-bottom: 15px !important;
}

/* スマホ対応：スマホでは横幅いっぱいにする */
@media (max-width: 850px) {
    .contact-wrapper { 
        flex-direction: column; 
        align-items: center; /* 中央に寄せる */
        margin-top: -40px; 
    }
    .contact-sidebar, .contact-form-container {
        width: 100%;
        max-width: 100%; /* スマホでは窮屈にならないよう広げる */
    }
    .line-btn, .insta-btn {
        max-width: 100%;
    }
}


/* --- 会社情報ページのスタイル --- */
.about-page {
    /* 背景にロゴを薄く固定表示 */
    background-image: url("images/logo-bg.png");
    background-repeat: no-repeat;
    background-position: right 5% bottom 30%;
    background-size: 400px auto;
    background-attachment: fixed; /* スクロールしてもロゴが動かない */
    background-color: #fdfdfd;
}

.page-header {
    padding: 120px 0 60px;
    text-align: center;
}

.en-title {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    color: #ff8c00; /* ルービックカラー（オレンジ） */
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.info-table {
    max-width: 900px;
    margin: 0 auto 100px;
    background: rgba(255, 255, 255, 0.8); /* ロゴが透けるように少し透明に */
    backdrop-filter: blur(5px); /* 背景を少しぼかすとおしゃれ */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px;
}

.info-row {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 200px;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.info-value {
    flex: 1;
    color: #555;
    line-height: 1.8;
}

.business-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-list li::before {
    content: "■";
    color: #ff8c00;
    margin-right: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
    }
    .info-label {
        width: 100%;
        margin-bottom: 10px;
        color: #ff8c00;
    }
    .about-page {
        background-size: 200px auto;
        background-position: right bottom;
    }
}

/*仮*/
/* サービスカード全体の基本設定をアップデート */
.service-card {
    position: relative; /* 背景を中に閉じ込めるために必須 */
    overflow: hidden;
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
    text-decoration: none; /* リンクの下線を消す */
    color: inherit;
}

/* マウスを載せた時に出る「背景画像」の土台 */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* 最初は完全に見えない */
    transition: opacity 0.6s ease; /* ふわっと出すための慣性 */
    z-index: -1; /* 文字の裏に回す */
}

/* ホバー時の挙動 */
.service-card:hover::before {
    opacity: 0.15; /* 15%くらい、うっすら映る（お好みで0.2とかに調整してね） */
}

.service-card:hover {
    transform: translateY(-10px); /* 少し浮き上がる */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- 各カードごとの画像設定（imagesフォルダに画像を用意してね！） --- */
.card-home::before {
    background-image: url("images/work-home.jpg");
}

.card-charter::before {
    background-image: url("images/work-charter.jpg");
}

.card-moving::before {
    background-image: url("images/work-moving.jpg");
}



/* 文字を読みやすくする調整（ホバーした時に文字が画像に負けないように） */
.service-card h3, .service-card p {
    position: relative;
    z-index: 2;
}

/* --- 求人ページ専用スタイル --- */
.recruit-detail {
    padding-bottom: 100px;
}

.recruit-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.recruit-card h3 {
    font-size: 24px;
    color: #0d3b66;
    margin-bottom: 30px;
    border-left: 5px solid #ff6600;
    padding-left: 15px;
}

.recruit-table {
    width: 100%;
    border-collapse: collapse;
}

.recruit-table th, .recruit-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.recruit-table th {
    width: 25%;
    background-color: #fcfcfc;
    color: #333;
    font-weight: bold;
    vertical-align: top;
}

.salary {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d32f2f; /* 給与は目立つ色に */
}

.salary small {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li::before {
    content: "✔️";
    margin-right: 10px;
    color: #ff6600;
}

.apply-box {
    text-align: center;
    margin-top: 50px;
    background: #fdf5ef;
    padding: 30px;
    border-radius: 15px;
}

.apply-box p {
    margin-bottom: 20px;
    font-weight: bold;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .recruit-card { padding: 30px 20px; }
    .recruit-table th { width: 100%; display: block; padding-bottom: 5px; }
    .recruit-table td { width: 100%; display: block; padding-top: 5px; }
}

/* ===== 仕事情報ページ（work.html）反映用 ===== */

/* 1. ページヘッダー（青背景にする） */
.work-intro {
    background: #0d3b66; /* 紺色 */
    color: white !important;
    padding: 100px 20px 60px;
    text-align: center;
    margin-top: -20px; /* 余白調整 */
}

.work-intro h1 {
    color: white !important;
    font-size: 32px;
}

/* 2. 箇条書きを綺麗にする（今のHTMLにある strength-list を使う） */
.strength-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 30px auto;
    text-align: left;
}

.strength-list li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #ff6600; /* オレンジのアクセント */
    font-weight: bold;
}

/* 3. 報酬（想定月収）をデカく目立たせる */
.price {
    background: #fff5ed;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ffdec7;
    font-size: 24px;
    font-weight: 900;
    color: #d32f2f;
    text-align: center;
    margin-top: 30px;
}

/* 4. 個人宅配送の画像（カード用） */
.service-card.home-delivery::before {
    background-image: url("images/work-delivery.jpg");
}

/* ===== 7.5 CTAセクション（トップページ下部） ===== */
.cta-section {
    padding: 100px 20px;
    background: #0d3b66; /* 会社カラーの紺 */
    background-image: linear-gradient(rgba(13, 59, 102, 0.8), rgba(13, 59, 102, 0.8)), 
                      url("images/hero.jpg"); /* 背景にうっすら車を映すとカッコいい */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* スクロールした時に背景が残るエフェクト */
    text-align: center;
    color: white;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-sub {
    display: block;
    color: #ff6600;
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ボタンをさらに強調 */
.cta-box .btn-primary {
    padding: 20px 60px;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .cta-box h2 { font-size: 24px; }
    .cta-box p { font-size: 16px; }
}

/* ===== ニュースバーのアップデート ===== */
.news-bar {
    max-width: 900px; /* 少しスリムに */
    margin: -30px auto 60px; /* ヒーローの下に少し食い込ませるとおしゃれ */
    padding: 15px 30px;
    background: white;
    border-radius: 100px; /* 丸みを持たせてモダンに */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* 柔らかい影 */
    position: relative;
    z-index: 10;
}

.news-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* NEWSラベルをオレンジのバッジ風に */
.news-badge {
    background: #ff6600;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.news-content {
    display: flex;
    flex-grow: 1;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.news-date {
    font-size: 14px;
    color: #999;
    font-weight: bold;
}

.news-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 長い時に「...」にする */
}

/* 右側の矢印（詳細へ促す） */
.news-arrow {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.news-bar:hover .news-arrow {
    transform: translateX(5px); /* ホバー時に少し動く */
}

/* スマホ対応 */
@media (max-width: 768px) {
    .news-bar {
        margin: 20px;
        border-radius: 20px;
        padding: 12px 20px;
    }
    .news-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .news-content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* 全ページで4番目のメニューを「求人情報」に固定する（力技） */
.nav-links li:nth-child(4) a {
    font-size: 0; /* 元の文字を消す */
}

.nav-links li:nth-child(4) a::before {
    content: "求人情報"; /* 新しい文字を入れる */
    font-size: 16px; /* 元のサイズに戻す */
}

/* ページ全体をフレックスボックスにして、縦に並べる */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 画面の高さを最低100%確保 */
    margin: 0;
}

/* メインコンテンツエリアを自動で膨らませる */
main, 
.container, 
.work-page main, 
.company-page main {
    flex: 1; /* 余ったスペースをすべて埋める＝footerを下に押し出す */
}

/* フッター自体の設定（念のため） */
footer {
    width: 100%;
    margin-top: auto; /* 上に余白を作って自動的に一番下へ */
}
/* フッター全体の調整 */
footer {
    padding: 40px 20px;
    background-color: #0d3b66; /* 株式会社ルービックの紺色 */
    color: white;
    text-align: center;
}

/* リンクエリアの配置 */
.footer-links {
    margin-bottom: 20px;
}

/* ★「浮かび上がる」リンクのスタイル */
.footer-link-item {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8); /* 最初は少し透けた白 */
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* カプセル型 */
    transition: all 0.3s ease; /* アニメーションの速度 */
}

/* ★マウスを合わせた（ホバー）時の動き */
.footer-link-item:hover {
    color: #fff;
    background-color: rgba(255, 102, 0, 0.1); /* ほのかにオレンジ背景 */
    border-color: #ff6600; /* 枠線をオレンジに */
    transform: translateY(-5px); /* ★上に5px浮かび上がる */
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3); /* オレンジの影で浮揚感を演出 */
}

/* --- フッターのボタンのデザイン --- */
.floating-policy-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}
/* マウスを乗せたら浮き上がる */
.floating-policy-link:hover {
    color: #fff;
    border-color: #ff6600;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- ポップアップ画面の背景（暗くなる部分） --- */
.modal-overlay {
    display: none; /* 最初は隠す */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* 一番手前に */
    backdrop-filter: blur(5px); /* 背景をぼかす */
}

/* --- ポップアップの白い箱 --- */
.modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -45%);
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 40px;
    border-radius: 20px;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.4s ease;
}

/* 表示された時の動き */
.modal-overlay.is-open { display: block; }
.modal-overlay.is-open .modal-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

/* ポップアップの背景（画面全体を暗くする） */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999; /* 他の要素より絶対手前に出す数字 */
    backdrop-filter: blur(8px);
}

/* 白い箱（スッと浮かび上がる設定） */
.modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -45%);
    background: white;
    width: 90%; max-width: 500px;
    padding: 30px; border-radius: 20px;
    opacity: 0;
    transition: all 0.4s ease;
}

/* 表示された時に動くクラス */
.modal-overlay.is-open { display: block; }
.modal-overlay.is-open .modal-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* 閉じるボタン */
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #999; }

/* PCサイズ（画面幅768px以上）の調整 */
@media (min-width: 768px) {
    .contact-form {
        max-width: 900px; /* 全体の幅を少し広げてゆとりを持たせる */
        margin: 0 auto;
    }

    .form-group {
        display: flex;       
        align-items: center; 
        margin-bottom: 20px; /* 項目間の上下余白を少し詰めました */
    }

    .form-label {
        width: 180px;        /* 👈 ラベルの幅を短く（250px → 180px）して間隔を縮めました */
        margin-bottom: 0;    
        text-align: left;
        font-weight: bold;
        flex-shrink: 0;      /* ラベルが勝手に縮まないように固定 */
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        flex: 1;             /* 👈 これで入力ボックスが右端までしっかり伸びます */
        max-width: 650px;    /* 👈 ボックスが長くなりすぎないよう、程よい長さで制限 */
        padding: 12px;       /* 中の文字にゆとりを持たせて「重さ」を解消 */
    }

    /* お問い合わせ内容（textarea）のラベル位置調整 */
    .form-group:has(textarea) {
        align-items: flex-start;
    }
    .form-group:has(textarea) .form-label {
        padding-top: 10px;
    }

    .form-btn-area {
        padding-left: 180px; /* ボタンの位置もラベルの幅（180px）に合わせる */
        text-align: left;
    }
}

/* モーダル全体の背景（暗くなる部分） */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999;
}

/* モーダルが開いた時 */
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* 白い窓の部分 */
.modal-window {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 8px;
    position: relative;
    padding: 40px 20px 20px;
    overflow-y: auto; /* 中身が長い時にスクロールさせる */
}

/* 閉じるボタン */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

/* モーダル内の中身のスタイル */
.modal-body {
    line-height: 1.6;
    color: #333;
    text-align: left;
}

/* ===== モーダル（プライバシーポリシー）修正 ===== */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999 !important;
}

.modal-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-window {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 12px;
    position: relative;
    padding: 40px 30px 30px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.);
}

/* ===== チェックボックス カスタムデザイン ===== */
input[type="checkbox"] {
    all: revert !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid #ffccaa !important;
    border-radius: 8px !important;
    background: #fff !important;
    cursor: pointer !important;
    position: relative !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

input[type="checkbox"]:checked {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3) !important;
}

input[type="checkbox"]:checked::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

input[type="checkbox"]:focus,
input[type="checkbox"]:hover {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    border-color: #ffccaa !important;
}