/* ========================================
   変数 & リセット
   ======================================== */
:root {
    /* 画像に基づいたカラーパレット */
    --color-primary: #FF9F24;
    /* 左側の背景色に近い水色 #8FD8D8*/
    --color-primary-dark: #ffa024cb;
    /* 少し濃いアクセント */
    --color-primary-light: #E0F5F5;
    /* 薄い背景用 */
    --color-text-main: #333333;
    --color-text-sub: #666666;
    --color-border: #8FD8D8;
    /* 枠線の色 */
    --color-white: #ffffff;
    --color-highlight: #ff6b6b;
    /* アクセント（必要なら） */

    /* 表専用カラー（画像参照） */
    --color-table-term: #FF9F24;
    /* オレンジ */
    --color-table-border: #BBCFFF;
    /* 薄い青 */

    --font-base: 'Noto Sans JP', sans-serif;

    --shadow-card: 0 4px 12px rgba(143, 216, 216, 0.2);
    --shadow-hover: 0 8px 20px rgba(106, 192, 192, 0.3);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    color: var(--color-text-main);
    background-color: #f9fbfb;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   コンテナ
   ======================================== */
.container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー
   ======================================== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: inline-block;
    position: relative;
    margin-bottom: 0.5rem;
}

/* 下線デザイン */
.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.sub-title {
    font-size: 1.1rem;
    color: var(--color-text-sub);
    font-weight: 500;
    margin-top: 15px;
}

/* ========================================
   募集要項テーブル (CSS Grid Layout)
   ======================================== */
.recruit-table {
    border: 2px solid var(--color-table-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-white);
    box-shadow: var(--shadow-card);
}

.row {
    display: grid;
    /* デスクトップ: 左200px, 右残り全部 */
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--color-table-border);
}

.row:last-child {
    border-bottom: none;
}

/* 左カラム（項目名） */
.term {
    background-color: var(--color-table-term);
    color: var(--color-text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    text-align: center;
    /* テキスト選択不可にしてUIっぽく */
    user-select: none;
    font-size: 0.95rem;
}

/* 右カラム（詳細） */
.desc {
    padding: 20px 25px;
    color: var(--color-text-main);
    background-color: var(--color-white);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 給与セクションの強調 */
.price-highlight .salary-detail {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin-bottom: 5px;
    border-bottom: 1px dotted #ddd;
}

.price-highlight .salary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 2px solid var(--color-table-border);
    font-weight: 700;
}

.price-highlight .price {
    color: #e74c3c;
    /* 金額は少し目立つ色に */
    font-size: 1.2rem;
}

/* ========================================
   アクションボタン
   ======================================== */
.action-area {
    margin-top: 40px;
    text-align: center;
}

.apply-button {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

/* ========================================
   アニメーション
   ======================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   レスポンシブ対応 (Mobile)
   ======================================== */
@media (max-width: 768px) {
    .container {
        margin: 30px auto;
        padding: 0 15px;
    }

    .main-title {
        font-size: 1.6rem;
    }

    /* Gridを1カラムに変更 */
    .row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        border-bottom: 2px solid var(--color-white);
        /* 区切りを見やすく */
    }

    /* 背景色を交互に変えるなど、モバイル向けの調整 */
    .term {
        padding: 10px 15px;
        justify-content: flex-start;
        /* 左寄せに変更 */
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .desc {
        padding: 15px 15px;
    }

    /* 給与詳細もモバイル用に調整 */
    .price-highlight .salary-detail,
    .price-highlight .salary-total {
        max-width: 100%;
    }

    /* リスト全体の外枠 */
    .recruit-table {
        border-width: 1px;
    }
}