/* 修正1: 配色の強化 */
:root {
    --primary-color: #007bff; /* 青系 */
    --primary-dark-color: #0056b3; /* より濃い青 */
    --secondary-color: #6c757d; /* グレー系 */
    --accent-color: #ffc107; /* 黄色系 */
    --text-color: #333;
    --light-text-color: #555;
    --background-color: #f8f9fa;
    --white-color: #fff;
    --border-color: #e9ecef;
    /* 追加: プライマリカラーのグラデーション */
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark-color));
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth; /* スムーススクロールの基本設定 */
}

header {
    background-color: rgba(255, 255, 255, 0.9); /* 少し透明度を持たせる */
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed; /* 固定ヘッダー */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background-color: var(--white-color); /* スクロール後の背景色 */
    padding: 0.7rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px; /* ロゴサイズ調整 */
    width: auto;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}
nav ul li a:hover::after {
    width: 100%;
}

/* ===== ▼▼▼ ここからヒーローセクションの新しいスタイル（修正版）▼▼▼ ===== */

/* ヒーローセクション全体（コンテナ） */
.hero {
    /* background-colorを削除し、背景描画をcanvasに完全に任せる */
    color: var(--white-color);
    padding: 60px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

/* 背景の星空canvas */
#hero-canvas, #careers-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* コンテンツより後ろ */
}

/* テキストコンテンツを囲むコンテナ */
.hero-content {
    position: relative;
    z-index: 2; /* canvasより手前 */
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* メインキャッチコピー (pタグ) */
.hero p {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.5px;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeIn-up 1s ease-out 0.5s forwards;
}

/* 説明文 (h4タグ) */
.hero h4 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
    margin: 0 auto 50px auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeIn-up 1s ease-out 0.8s forwards;
        /* ガラスのような半透明の背景 */
    background: rgba(13, 26, 44, 0.1); /* 半透明の背景色 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(16px); /* Safari向け */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ヒーローセクションのボタン (基本スタイルを再定義) */
.hero .btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    border: none;
    
    /* アニメーション設定 */
    opacity: 0;
    transform: translateY(30px); /* アニメーションの初期位置 */
    animation: fadeIn-up 1s ease-out 1.1s forwards;
}

.hero .btn:hover {
    transform: translateY(-5px) scale(1.05); /* ホバー時のY位置を調整 */
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.5);
}

/* テキストが下からフェードインするアニメーション */
@keyframes fadeIn-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== レスポンシブ対応 ===== */

/* タブレット (992px以下) */
@media (max-width: 992px) {
    .hero-content {
        padding: 40px 50px;
    }
    .hero p {
        font-size: 2.5rem;
    }
    .hero h4 {
        font-size: 1.05rem;
    }
}

/* スマートフォン (768px以下) */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }
    .hero-content {
        padding: 30px;
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .hero p {
        font-size: 2rem;
        line-height: 1.5;
    }
    .hero h4 {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 40px;
    }
}

/* ===== ▲▲▲ ここまでがヒーローセクションの新しいスタイル（修正版） ▲▲▲ ===== */

/* Section Styling */
section {
    padding: 40px 0; /* ボックス間の垂直方向の余白 */
    text-align: center;
    opacity: 0; /* JSでフェードインさせるため初期は非表示 */
    transform: translateY(50px); /* 初期位置を少し下に */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-weight: 700;
}

/* 修正3: 見出しのデザインを洗練 */
h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient); /* 下線をグラデーションに */
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 2px;
}

/* 各セクションのコンテナを「ボックス」としてスタイリング */
#about > .container,
#services > .container,
#reasons > .container,
#trihub > .container,
#ceo-message > .container,
#careers > .container, /* index.htmlのcareersセクションにも適用 */
#company-info > .container,
#contact > .container,
/* careers.htmlの各セクションにも適用 */
#careers-about > .container,
#openings > .container,
#flow > .container,
#application > .container {
    background-color: var(--white-color); /* ボックスの背景を白に */
    padding: 80px 60px; /* ボックス内部の余白 */
    border-radius: 16px; /* ボックスの角を丸くする */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08); /* ボックスに影をつける */
    text-align: center; /* コンテンツを中央揃えに */
}

/* ヒーローとフッターは全幅のままなので、このスタイルは適用しない */
#hero .container, footer .container, .careers-hero .container {
    background-color: transparent;
    padding: 0 30px; /* 元のpaddingに戻す */
    box-shadow: none;
}

/* 一部のセクションではテキストを左揃えに戻す */
#reasons .container,
#careers .container, /* index.htmlのcareersセクションにも適用 */
#company-info .container,
#contact .container,
#openings .container, /* careers.htmlの募集職種 */
#flow .container /* careers.htmlの採用フロー */ {
    text-align: left;
}

.section-description {
    font-size: 1.15rem;
    color: var(--light-text-color);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

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

/* 修正4: グリッドアイテムのスタイルを調整 */
.grid-item {
    background-color: var(--white-color);
    padding: 40px;
    padding-bottom: 40px; /* 下側の余白を確保 */
    border-radius: 16px; /* 角をより丸く */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none; /* 枠線を削除 */
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.grid-item h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.grid-item p {
    color: var(--light-text-color);
    font-size: 1rem;
    line-height: 1.7;
}

/* Reason Section */
.reasons {
    margin-bottom: 100px; /* 修正1: 次のセクションとの間に余白を追加 */
}

.reasons ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2カラムレイアウト */
    gap: 30px; /* アイテム間の隙間 */
    list-style: none;
    padding: 0;
    max-width: 1100px; /* 最大幅を調整 */
    margin: 0 auto;
}

.reasons ul li {
    background-color: var(--white-color);
    padding: 35px; /* 元のパディングに戻す */
    border-radius: 16px; /* 角を丸く */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border-left: none;
    position: relative; /* 子要素の絶対配置の基準にするため */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reasons ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.reasons ul li strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-left: 35px; /* 修正: アイコン分のスペースを確保 (アイコン幅 + 余白) */
}

/* 修正: モダンな矢印アイコンのスタイルを再度調整 */
.reasons ul li strong::before {
    content: ''; /* 修正: contentを空にする */
    display: block; /* ブロック要素にしてサイズを適用 */
    width: 10px; /* 矢印の幅 */
    height: 10px; /* 矢印の高さ */
    border-top: 2px solid var(--primary-color); /* 矢印の上半分 */
    border-right: 2px solid var(--primary-color); /* 矢印の右半分 */
    transform: translateY(-50%) rotate(45deg); /* 回転させて矢印の形にする */
    position: absolute;
    left: 0; /* strong要素の左端に配置 */
    top: 50%; /* 垂直方向中央 */
}

.reasons ul li p {
    color: var(--light-text-color);
    font-size: 1rem;
    text-align: left;
}

.trihub-section {
    background: linear-gradient(rgba(230, 247, 255, 0.9), rgba(255, 251, 230, 0.9));
    background-blend-mode: multiply;
    padding: 100px 0;
}

.trihub-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap; /* レスポンシブ対応 */
}

.trihub-image img {
    max-width: 550px;
    height: auto;
}

.trihub-text {
    text-align: left;
    max-width: 550px;
}

.trihub-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.trihub-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
}
/* 追加 */
.trihub-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    text-decoration: none;
    color: var(--white-color);
    font-weight: 600;
    border-radius: 50px;
    /* ロゴの色をベースにしたグラデーション */
    background: linear-gradient(135deg, #F0673F, #D85A34);
    box-shadow: 0 6px 20px rgba(240, 103, 63, 0.4);
    transition: all 0.3s ease;
}

.trihub-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(240, 103, 63, 0.5);
}

/* Message from CEO */
.ceo-message {
    background-color: var(--background-color);
    padding: 100px 0;
}

/* 追加： 新しいラッパー用のスタイル */
.ceo-content-wrapper {
    display: flex;
    align-items: center; /* 上下中央揃え */
    gap: 50px;
    margin-top: 60px; /* 見出しとの余白 */
    justify-content: center;
}

/* 修正：.ceo-text のスタイルを調整 */
.ceo-text {
    margin-top: -50px;
    max-width: 650px;
    text-align: left; /* テキストを左揃えに */
    background-color: var(--white-color); /* 修正2: 背景色を白に */
    padding: 30px; /* 修正2: パディングを追加 */
    border-radius: 12px; /* 修正2: 角を丸く */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 修正2: 影を追加 */
}

.ceo-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem; /* 修正2: フォントサイズを小さく */
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight:700;
}

.ceo-text p {
    font-size: 1rem; /* 修正2: フォントサイズを小さく */
    line-height: 1.8; /* 修正2: 行高を調整 */
    color: var(--light-text-color);
}

/* 主要メンバーセクション */
.members {
    background-color: var(--background-color);
    padding: 10px 0 100px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.member-card {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 5px;
    border: 1px solid #c2d4ec;
    border-radius: 4px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.member-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary-dark-color);
    margin-top: -10px;
    margin-bottom: 10px;
    font-weight: 700;
}

.member-position {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block; /* 強調のためにブロック要素に */
}

.member-bio {
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--light-text-color);
    text-align: left;
}

/* Careers Section (index.html用) */
.careers {
    background-color: var(--background-color);
    padding: 100px 0;
    text-align: center;
}

.job-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 40px auto 50px auto;
}

.job-list li {
    font-size: 1.5rem;
    color: var(--primary-dark-color);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 35px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左寄せに変更 */
    text-align: left; /* テキストは左寄せ */
}

.job-list li::before {
    content: '\f105'; /* FontAwesomeの右矢印アイコン */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px; /* アイコンとテキストの間隔 */
    font-size: 1.2rem;
    line-height: 1;
}

.job-list li:last-child {
    margin-bottom: 0;
}

.careers-btn {
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    display: inline-block;
    margin-top: 50px;
    text-decoration: none;
}

.careers-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.5);
}

/* Company Info */
.company-info {
    background-color: var(--background-color);
    padding: 100px 0;
}

.company-details {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* 角丸対応 */
}

.company-details table {
    width: 100%;
    border-collapse: collapse;
}

.company-details th, .company-details td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.company-details tr:last-child th, .company-details tr:last-child td {
    border-bottom: none;
}

.company-details th {
    text-align: left;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 35%;
    font-weight: 600;
    font-size: 1.1rem;
}

.company-details td {
    background-color: var(--white-color);
    color: var(--text-color);
    font-size: 1.05rem;
}

/* Contact Form */
.contact {
    background-color: var(--white-color);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background-color: var(--white-color);
    padding: 40px;
    padding-bottom: 40px; /* 下側の余白を確保 */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px; /* 各入力フィールドのグループ間の余白 */
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: calc(100% - 24px); /* パディング分を考慮 */
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px; /* 問い合わせ内容の入力欄の高さ */
}

/* 必須項目 */
.required {
    color: red;
    font-size: 0.9em;
    margin-left: 5px;
}

.required-note {
    color: red;
    font-size: 0.85rem;
    text-align: right;
    margin-top: -15px; /* 上のh3との余白を詰める */
    margin-bottom: 20px;
}

/* ラジオボタングループ */
.radio-group {
    display: flex;
    flex-wrap: wrap; /* 小さい画面で折り返す */
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px; /* 下の要素との余白 */
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: 400; /* 通常の太さに戻す */
    color: var(--text-color); /* 通常のテキスト色 */
    font-size: 1rem;
    margin-bottom: 0; /* 親から継承されるmargin-bottomをリセット */
}

.radio-group input[type="radio"] {
    width: auto; /* ラジオボタンの幅を自動に */
    margin-right: 8px; /* ラジオボタンとテキストの間のスペース */
    margin-bottom: 0; /* 親から継承されるmargin-bottomをリセット */
}

/* セレクトボックス */
.contact-form select {
    appearance: none; /* デフォルトの矢印を非表示にする */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px; /* 矢印分のスペースを確保 */
}

/* 送信ボタン */
.contact-submit-btn {
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    display: block; /* ボタンをブロック要素にして中央寄せ */
    margin: 30px auto 0 auto; /* 中央寄せと上マージン */
}

.contact-submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.5);
}

/* フォーム下部の注意書き */
.form-note {
    font-size: 0.9rem;
    color: var(--light-text-color);
    text-align: center;
    margin-top: 30px;
    line-height: 1.6;
}

/* サンキューメッセージ */
.hidden {
    display: none;
}

#thank-you-message {
    text-align: center;
    padding: 60px 40px; /* 余白を調整 */
}

#thank-you-message .thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#thank-you-message .thank-you-content i {
    font-size: 3.5rem; /* アイコンサイズ */
    color: var(--primary-color);
    margin-bottom: 25px;
}

#thank-you-message .thank-you-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

#thank-you-message .thank-you-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #1c1c1c; /* 少し明るいダークカラーに */
    color: rgba(255, 255, 255, 0.7); /* テキストを少し柔らかく */
    text-align: center;
    padding: 50px 0; /* 余白を広げる */
    margin-top: 100px;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* careers.html 用のスタイル（旧 careers.css の内容を統合） */
/* ヒーローセクション */
.careers-hero {
    color: var(--white-color); /* 文字色 */
    text-align: center;
    padding: 200px 20px 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    overflow: hidden;
}

.careers-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    /* 文字が見えなかった問題への対策：色を強制 */
    color: var(--white-color); /* デフォルト色 */
}

.careers-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--white-color); /* H1の色 */
}

.careers-hero-content p {
    font-size: 1.8rem;
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    color: var(--white-color); /* Pタグの色 */
}

.careers-hero-content .btn {
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    border: none;
}

.careers-hero-content .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.5);
}


/* 募集職種テーブル */
.job-opening-table-wrapper {
    overflow-x: auto; /* スマホでの横スクロール対応 */
    margin-top: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

.job-opening-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white-color);
    min-width: 700px; /* テーブルが崩れない最小幅 */
    border-radius: 16px;
    overflow: hidden; /* 角丸対応 */
}

.job-opening-table-wrapper th,
.job-opening-table-wrapper td {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top; /* 上揃え */
}

.job-opening-table-wrapper th {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    font-size: 1.15rem;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

.job-opening-table-wrapper tbody tr:last-child td {
    border-bottom: none;
}

.job-opening-table-wrapper td h3 {
    font-size: 1.7rem;
    color: var(--primary-dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.job-opening-table-wrapper td .job-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 15px;
}

.job-opening-table-wrapper td .job-skills {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text-color);
    margin-bottom: 8px;
}

.job-opening-table-wrapper td .job-skills strong {
    color: var(--primary-color);
    font-weight: 600;
}


/* 採用フローセクション */
.flow-section {
    background-color: var(--background-color);
    padding: 100px 0;
}

.flow-steps {
    display: flex;
    flex-wrap: wrap; /* 小さい画面で折り返し */
    justify-content: center;
    align-items: flex-start; /* 上揃え */
    gap: 20px 0; /* アイテム間の縦横の隙間 */
    margin-top: 60px;
}

.flow-item {
    flex-basis: 150px; /* 各アイテムの最小幅 */
    flex-grow: 1; /* アイテムが広がるように */
    padding: 20px;
    text-align: center;
    position: relative;
}

.flow-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.flow-item h3 {
    font-size: 1.3rem;
    color: var(--primary-dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.flow-item p {
    font-size: 0.95rem;
    color: var(--light-text-color);
    line-height: 1.6;
}

.flow-arrow {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; /* アイコンの高さに合わせる */
    flex-shrink: 0; /* 縮まないように */
}

/* 最後の矢印は非表示 */
.flow-arrow:last-of-type {
    display: none;
}


/* 応募セクション */
.application-section {
    padding: 80px 0;
}

.application-section .btn {
    margin-top: 40px;
}


/* ===== ここから下がレスポンシブ対応の全コードです ===== */

/* ===== ナビゲーション & ハンバーガーメニューの基本設定 ===== */
.burger {
    display: none; /* PCでは非表示 */
    cursor: pointer;
    z-index: 1002;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* メニューが開いた時の「×」印のアニメーション */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* リンクがフェードインするアニメーション */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}


/* ===== タブレット表示 (992px以下) ===== */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    .hero p {
        font-size: 2.2rem;
    }
    .hero .btn {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
    h2 {
        font-size: 2.5rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .trihub-content {
        flex-direction: column;
    }
    .trihub-image img {
        max-width: 100%;
    }
    .trihub-text, .ceo-text {
        max-width: 100%;
        text-align: center;
    }

    .company-details th, .company-details td {
        padding: 15px;
    }

    /* careers.html 用 */
    .careers-hero-content h1 {
        font-size: 3.8rem;
    }
    .careers-hero-content p {
        font-size: 1.5rem;
    }
    .flow-steps {
        flex-direction: column;
        align-items: center;
    }
    .flow-item {
        flex-basis: auto;
        width: 100%;
        max-width: 400px;
        background-color: var(--white-color);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        padding: 30px;
        box-sizing: border-box; /* ← この行を追記 */
    }
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .flow-steps .flow-arrow:last-of-type {
        display: none;
    }
    .job-opening-table-wrapper {
        border-radius: 0;
    }
    .job-opening-table-wrapper table {
        border-radius: 0;
    }
    .job-opening-table-wrapper th,
    .job-opening-table-wrapper td {
        padding: 20px;
    }
    .job-opening-table-wrapper td h3 {
        font-size: 1.5rem;
    }
}


/* ===== スマートフォン表示 (768px以下) ===== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    nav ul {
        display: none; /* PC用のナビゲーションを非表示に */
    }

    /* ハンバーガーメニュー本体のスタイル */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 60%;
        margin: 0;
        padding: 0;
        transform: translateX(100%); /* 初期状態では画面外に隠す */
        transition: transform 0.5s ease-in;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links li {
        opacity: 0;
    }
    /* JSでこのクラスが付くとメニューが表示される */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block; /* ハンバーガーボタンを表示 */
    }
    
    .hero {
        padding: 150px 20px 120px;
        min-height: 70vh;
    }
    .hero p {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    .section-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    section {
        padding: 50px 0;
    }

    #about > .container,
    #services > .container,
    #reasons > .container,
    #trihub > .container,
    #ceo-message > .container,
    #careers > .container,
    #company-info > .container,
    #contact > .container,
    #careers-about > .container,
    #openings > .container,
    #flow > .container,
    #application > .container {
        padding: 40px 20px;
    }
    
    .ceo-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .ceo-text {
        margin-top: 0;
        text-align: left;
    }
    .grid-item, .reasons ul li {
        padding: 25px;
    }
    .company-details th, .company-details td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
    }
    .company-details tr:last-child th, .company-details tr:last-child td {
        border-bottom: none;
    }
    .reasons ul {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 30px 20px;
    }
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    /* careers.html 用 */
    .careers-hero {
        padding: 150px 20px 120px;
        min-height: 70vh;
    }
    .careers-hero-content h1 {
        font-size: 3rem;
    }
    .careers-hero-content p {
        font-size: 1.2rem;
    }
    .job-opening-table-wrapper {
        overflow-x: initial; /* 横スクロールを解除 */
    }
    .job-opening-table-wrapper table,
    .job-opening-table-wrapper tbody,
    .job-opening-table-wrapper tr {
        display: block;
        min-width: 0; /* min-widthを解除 */
    }
    .job-opening-table-wrapper thead {
        display: none;
    }
    .job-opening-table-wrapper tr {
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }
    .job-opening-table-wrapper td {
        display: flex;
        flex-wrap: wrap;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    .job-opening-table-wrapper tr td:last-child {
        border-bottom: none;
    }
    .job-opening-table-wrapper td::before {
        content: attr(data-label);
        position: static;
        flex-basis: 100%;
        margin-bottom: 10px;
        font-weight: 600;
        color: var(--primary-color);
        white-space: normal;
    }
    .job-opening-table-wrapper td h3,
    .job-opening-table-wrapper td .job-description,
    .job-opening-table-wrapper td .job-skills {
        flex-basis: 100%;
        text-align: left;
    }
    .members-grid {
        grid-template-columns: 1fr;
    }
    .member-card {
        padding: 30px;
    }
}


/* ===== さらに小さいスマートフォン表示 (480px以下) ===== */
@media (max-width: 480px) {
    .hero p {
        font-size: 1.5rem;
    }
    .hero .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .grid-item h3 {
        font-size: 1.6rem;
    }
    .reasons ul li strong {
        font-size: 1.3rem;
    }
    .trihub-text h3 {
        font-size: 2rem;
    }
    .ceo-text h3 {
        font-size: 1.0rem;
    }

    .contact-form button,
    .contact-submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .contact-form h3 {
        font-size: 1.6rem;
    }

    /* careers.html 用 */
    .careers-hero-content h1 {
        font-size: 2.5rem;
    }
    .careers-hero-content p {
        font-size: 1rem;
    }
    .careers-hero-content .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .flow-item {
        padding: 20px;
    }
    .flow-icon {
        font-size: 2.8rem;
    }
    .flow-item h3 {
        font-size: 1.2rem;
    }
}

/* ===== ▼▼▼ ここから追加：事例紹介セクション ▼▼▼ ===== */

/* 「導入事例を見る」ボタン */
.view-cases-wrapper {
    text-align: center; /* ボタンを中央揃え */
    margin-top: 60px; /* 上のリストとの余白 */
}

.btn.view-cases-btn {
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    display: inline-block;
}

.btn.view-cases-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.5);
}

.btn.view-cases-btn i {
    margin-right: 8px;
}

/* モーダル（ポップアップ）全体 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}


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

.modal-content {
    background-color: var(--white-color);
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    width: min(800px, calc(100% - 30px));
    max-width: 800px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}


.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #333;
}

/* スライダー */
.case-slider {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.case-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 10px 40px; /* 横の余白を少し広げる */
    text-align: left; /* 全体を左揃えに */
}

/* ▼▼▼ ここからが主な変更・追加箇所です ▼▼▼ */

.case-header {
    display: flex;
    align-items: center;
    gap: 25px; /* ロゴと情報の間の余白 */
    margin-bottom: 25px; /* ヘッダーと下のh3の間の余白 */
}

.case-logo {
    max-height: 90px; /* ロゴの高さを大きくする */
    max-width: 180px; /* ロゴの最大幅も設定 */
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0; /* ロゴが縮まないように */
}

.case-client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.case-tags {
    display: flex;
    justify-content: flex-start; /* タグを左揃えに */
    gap: 10px;
    margin-bottom: 0; /* 不要なマージンを削除 */
}

.case-tag {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--white-color);
    font-weight: 600;
}
/* タグの色分け (ここは変更なし) */
.case-tag.dx { background-color: #007bff; }
.case-tag.new-dev { background-color: #28a745; }
.case-tag.biz-improve { background-color: #fd7e14; }
.case-tag.pm { background-color: #6f42c1; }
.case-tag.existing-svc { background-color: #17a2b8; }
.case-tag.ai-integration { background-color: #e61531; }
.case-tag.consulting { background-color: #a5b106; }

.case-slide h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-dark-color);
    margin-bottom: 15px;
    text-align: left; /* h3も左揃えに */
}

.case-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--light-text-color);
    text-align: left;
}
/* ▲▲▲ ここまでが主な変更・追加箇所です ▲▲▲ */

/* スライダーの左右ボタン */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: -20px;
}

.slider-btn.next {
    right: -20px;
}

/* その他の実績ロゴ一覧 */
.other-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    padding: 0 20px;
}

.other-logos-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.other-logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
/* ===== ▲▲▲ ここまで追加：事例紹介セクション ▲▲▲ ===== */

/* ===== パララックス効果の基本設定 ===== */
html {
    scroll-behavior: smooth;
}

body {
    /* 既存のスタイルを維持 */
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    /* パララックス効果のための設定 */
    overflow-x: hidden;
}

/* ===== ヒーローセクションの修正 ===== */
.hero, .careers-hero {
    /* 既存のスタイルを維持 */
    color: var(--white-color);
    padding: 60px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    /* パララックス効果のための固定 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* パララックスコンテナ */
.parallax-container {
    position: relative;
    z-index: 2;
    background-color: var(--background-color);
    margin-top: 100vh; /* ヒーローセクションの高さ分だけマージンを追加 */
}

/* セクションの重なり効果 */
.parallax-container section {
    position: relative;
    background-color: var(--background-color);
    z-index: 2;
}

/* 星のパララックス背景 */
.star-parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh; /* 画面の2倍の高さ */
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* CSS星の生成 */
.star-parallax-bg::before,
.star-parallax-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 240px 90px, #fff, transparent),
        radial-gradient(1px 1px at 280px 20px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 320px 70px, #fff, transparent),
        radial-gradient(2px 2px at 360px 40px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 400px 80px, #fff, transparent),
        radial-gradient(2px 2px at 440px 30px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 480px 60px, #fff, transparent),
        radial-gradient(2px 2px at 520px 90px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 560px 20px, #fff, transparent);
    background-repeat: repeat;
    background-size: 600px 100px;
    animation: sparkle 20s linear infinite;
}

.star-parallax-bg::after {
    background-size: 700px 120px;
    animation: sparkle 25s linear infinite reverse;
    opacity: 0.7;
}

/* 星の動きアニメーション */
@keyframes sparkle {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

/* より多くの星のレイヤー */
.star-layer-1,
.star-layer-2,
.star-layer-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25px 25px, rgba(0, 123, 255, 0.6), transparent),
        radial-gradient(2px 2px at 75px 50px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 125px 75px, rgba(0, 123, 255, 0.4), transparent),
        radial-gradient(2px 2px at 175px 25px, #fff, transparent),
        radial-gradient(1px 1px at 225px 100px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 275px 50px, rgba(0, 123, 255, 0.5), transparent),
        radial-gradient(1px 1px at 325px 75px, #fff, transparent),
        radial-gradient(2px 2px at 375px 25px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 425px 100px, rgba(0, 123, 255, 0.7), transparent),
        radial-gradient(2px 2px at 475px 50px, #fff, transparent);
    background-repeat: repeat;
}

.star-layer-1 {
    background-size: 500px 125px;
    animation: sparkle 30s linear infinite;
    opacity: 0.6;
}

.star-layer-2 {
    background-size: 800px 150px;
    animation: sparkle 40s linear infinite reverse;
    opacity: 0.4;
}

.star-layer-3 {
    background-size: 900px 180px;
    animation: sparkle 50s linear infinite;
    opacity: 0.3;
}

/* セクションボックスの修正 */
#about > .container,
#services > .container,
#reasons > .container,
#trihub > .container,
#ceo-message > .container,
#careers > .container,
#company-info > .container,
#contact > .container,
#careers-about > .container,
#openings > .container,
#flow > .container,
#application > .container {
    background-color: var(--white-color);
    padding: 80px 60px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    z-index: 3; /* 星背景より上に */
}

/* 各セクション間の間隔調整 */
section {
    padding: 60px 0; /* セクション間の余白を増やす */
    margin-bottom: 40px; /* セクション間のマージン追加 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .parallax-container {
        margin-top: 70vh; /* スマホではヒーローを少し低く */
    }
    
    .hero, .careers-hero {
        min-height: 70vh;
    }
    
    .star-parallax-bg {
        height: 150vh; /* スマホでは星の背景を少し低く */
    }
    
    /* 星のサイズと密度をスマホ向けに調整 */
    .star-parallax-bg::before,
    .star-parallax-bg::after {
        background-size: 300px 80px;
    }
    
    .star-layer-1 { background-size: 250px 100px; }
    .star-layer-2 { background-size: 400px 120px; }
    .star-layer-3 { background-size: 450px 140px; }
}
body.modal-open {
    overflow: hidden;
    touch-action: none;
}
@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }
    .container {
        padding: 0 20px;
    }
    .parallax-container {
        margin-top: 60vh;
    }
    .modal-overlay {
        align-items: flex-start;
    }
    .modal-content {
        padding: 28px 20px;
        border-radius: 14px;
    }
    .case-slider {
        padding-bottom: 64px;
    }
    .case-slide {
        padding: 15px 12px;
    }
    .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .case-logo {
        max-height: 60px;
        max-width: 150px;
    }
    .case-tags {
        flex-wrap: wrap;
        gap: 8px;
    }
    .case-slide h3 {
        font-size: 1.5rem;
    }
    .case-description {
        font-size: 0.95rem;
    }
    .slider-btn {
        top: auto;
        bottom: 12px;
        transform: none;
        width: 42px;
        height: 42px;
    }
    .slider-btn.prev {
        left: calc(50% - 72px);
        right: auto;
    }
    .slider-btn.next {
        left: calc(50% + 30px);
        right: auto;
    }
    .slider-btn:hover {
        transform: scale(1.05);
    }
}
@media (max-width: 480px) {
    header {
        padding: 0.7rem 0;
    }
    .modal-content {
        padding: 20px 16px;
        border-radius: 12px;
    }
    .case-slide {
        padding: 12px 8px;
    }
    .case-slide h3 {
        font-size: 1.3rem;
    }
    .case-description {
        font-size: 0.9rem;
    }
    .slider-btn {
        bottom: 16px;
        width: 36px;
        height: 36px;
    }
    .slider-btn.prev {
        left: calc(50% - 64px);
    }
    .slider-btn.next {
        left: calc(50% + 22px);
    }
}
