/* ==========================================
   募集要項ページ専用スタイル - Fixed v4 (Minimal Hover)
   ========================================== */

:root {
    --guideline-blue: #186EA9;
    /* TOSCOメインブルー */
    --guideline-dark: #0f2d4a;
    /* 濃いネイビー */
    --guideline-bg: #f4f8fc;
    /* 背景色 */
    --guideline-border: #e0e6ed;
    /* ボーダー色 */
    --guideline-hover: #eaf4fd;
    /* ホバー時の背景 */
    --guideline-accent: #FF6600;
    /* アクセント色（オレンジ） */
}

/* --- セクション全体 --- */
.guideline-section {
    padding: 6rem 0 8rem;
    background: var(--guideline-bg);
    position: relative;
}

.guideline-intro {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guideline-intro-text {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 2;
    color: #666;
}

/* --- 募集要項カード（コンテナ） --- */
.guideline-card {
    background: #fff;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 上部のテック風ヘッダーライン */
.guideline-card-header {
    background: linear-gradient(90deg, var(--guideline-blue) 0%, #003366 100%);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guideline-card-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-family: 'Roboto', sans-serif;
}

/* 装飾的な斜めライン */
.guideline-card-line {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    border-radius: 2px;
}

.guideline-card-line::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

/* --- リストスタイル --- */
.guideline-list {
    width: 100%;
}

.guideline-row {
    display: flex;
    border-bottom: 1px solid var(--guideline-border);
    transition: background-color 0.2s ease;
    position: relative;
    background: #fff;
}

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

/* ★ホバーアクション（背景色変化なし、左線のみ） */
.guideline-row:hover {
    background-color: #fff;
    /* 背景色は白のまま */
    /* 浮き上がり・影・z-index操作もすべて削除 */
}

/* 左端のアクセントバー（無効化） */
/*
.guideline-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--guideline-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
    z-index: 10;
}
*/

/* ホバー時に青線を表示（無効化） */
/*
.guideline-row:hover::before {
    transform: scaleY(1);
}
*/

/* 項目名エリア (DT) */
.guideline-row dt {
    width: 28%;
    padding: 3rem 2.5rem;
    background-color: #fcfcfc;
    border-right: 1px solid var(--guideline-border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* transition: background 0.3s ease; ←背景変化しないので不要 */
    position: relative;
    z-index: 1;
}

.guideline-row:hover dt {
    background-color: #fcfcfc;
    /* グレーのまま維持 */
}

/* 英語ラベル */
.en-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    color: var(--guideline-blue);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    display: block;
}

/* 日本語ラベル */
.ja-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* 内容エリア (DD) */
.guideline-row dd {
    width: 72%;
    padding: 3rem 3.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* --- コンテンツ内パーツ --- */

/* 小見出し */
.guideline-block-title {
    font-size: 1rem;
    color: var(--guideline-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guideline-block-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--guideline-blue);
    transform: rotate(45deg);
}

/* タグスタイル */
.tag-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.guideline-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

/* 強調タグ */
.guideline-tag.tag-highlight {
    background: #eaf4fd;
    border-color: var(--guideline-blue);
    color: var(--guideline-blue);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(24, 110, 169, 0.15);
}

.guideline-tag.tag-blue {
    background: #eaf4fd;
    color: var(--guideline-blue);
    border-color: transparent;
}

/* 給与テーブル */
.guideline-salary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.guideline-salary-table thead th {
    background: #f0f4f8;
    color: var(--guideline-blue);
    font-weight: 700;
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--guideline-border);
    white-space: nowrap;
}

.guideline-salary-table tbody tr {
    border-bottom: 1px solid #eee;
}

/* 地域見出し行 */
.guideline-salary-table tbody tr th[colspan] {
    background: #fafafa;
    text-align: left;
    padding: 0.8rem 1rem;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.guideline-salary-table td {
    padding: 1.2rem 1rem;
    text-align: center;
    vertical-align: middle;
}

/* 対象カラム（左寄せ） */
.guideline-salary-table td:first-child {
    text-align: left;
    font-weight: 700;
    color: #444;
    width: 35%;
    /* 幅を確保 */
}

/* 金額カラム */
.guideline-salary-table td.price {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--guideline-blue);
    font-size: 1.1rem;
    white-space: nowrap;
    /* 折り返し禁止 */
}

/* 注釈（事務職など） */
.guideline-salary-table small {
    display: block;
    font-weight: 400;
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* 箱形レイアウト */
.guideline-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
}

.guideline-item-box {
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.box-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 700;
}

.box-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--guideline-blue);
}

.box-value small {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    margin-left: 0.3rem;
}

/* チェックリスト */
.guideline-check-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 2rem;
    padding: 0;
    margin: 0;
}

.guideline-check-list li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.guideline-check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 10px;
    border-right: 2px solid var(--guideline-blue);
    border-bottom: 2px solid var(--guideline-blue);
    transform: rotate(45deg);
    margin-top: -4px;
}

/* インラインリスト */
.guideline-inline-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0;
    margin: 0;
}

.guideline-inline-list li {
    position: relative;
    padding-left: 1rem;
}

.guideline-inline-list li::before {
    content: '/';
    position: absolute;
    left: 0;
    color: #ccc;
}

.guideline-inline-list li:first-child::before {
    display: none;
}

.guideline-inline-list li:first-child {
    padding-left: 0;
}

/* 勤務地レイアウト */
.location-grid {
    display: grid;
    gap: 1rem;
}

.location-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.location-name {
    background: #333;
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* サブリスト */
.guideline-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guideline-sublist li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
}

.guideline-sublist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--guideline-blue);
    border-radius: 50%;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.annotation {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

/* --- エントリーエリア --- */
.guideline-action {
    text-align: center;
    margin-top: 6rem;
    padding: 0 1rem;
}

.guideline-action-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #333;
    line-height: 1.6;
}

/* ボタンのスタイル強制適用 */
.guideline-action .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(90deg, #019DE8 0%, #0356BB 100%);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 320px;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(1, 157, 232, 0.3);
}

.guideline-action .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 157, 232, 0.4);
    background: linear-gradient(90deg, #0178BD 0%, #023D8F 100%);
}

.guideline-action .btn-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.guideline-action .btn-arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.guideline-action .btn-arrow {
    font-size: 1.2rem;
    color: #019DE8;
    line-height: 1;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* ==========================================
   スマホ・タブレット対応
   ========================================== */

@media (max-width: 768px) {
    .guideline-section {
        padding: 4rem 0 6rem;
    }

    .guideline-card {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .guideline-card-header {
        border-radius: 8px 8px 0 0;
    }

    /* 行を縦積みにする */
    .guideline-row {
        flex-direction: column;
        display: block;
        padding: 0;
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        background: #fff;
    }

    .guideline-row:hover {
        background-color: #fff;
    }

    /* 項目名 (DT) */
    .guideline-row dt {
        width: 100%;
        padding: 1.2rem 1.5rem;
        background-color: #f9fbfd;
        border-right: none;
        border-bottom: 1px solid #eee;
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
    }

    .guideline-row:hover dt {
        background-color: #f9fbfd;
        /* ホバー時も色維持 */
    }

    .en-label {
        margin-bottom: 0;
        min-width: 80px;
    }

    .ja-label {
        font-size: 1.1rem;
    }

    /* 内容 (DD) */
    .guideline-row dd {
        width: 100%;
        padding: 1.5rem;
    }

    /* 内部パーツのスマホ調整 */
    .guideline-grid-2col,
    .guideline-check-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .guideline-action {
        margin-top: 4rem;
        padding: 0;
    }

    .guideline-action-text {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .guideline-action .btn-primary {
        width: 100%;
        min-width: auto;
        padding: 1rem 1.5rem;
        box-sizing: border-box;
    }

    .guideline-action .btn-text {
        font-size: 1rem;
    }

    .guideline-action .btn-arrow-circle {
        width: 24px;
        height: 24px;
    }

    .guideline-action .btn-arrow {
        font-size: 1rem;
    }

    /* 給与テーブルのスマホカード化 */
    .guideline-salary-table,
    .guideline-salary-table tbody,
    .guideline-salary-table tr,
    .guideline-salary-table td {
        display: block;
        width: 100%;
    }

    /* PC用のヘッダー（項目名）は非表示 */
    .guideline-salary-table thead {
        display: none;
    }

    /* 地域見出し行 */
    .guideline-salary-table tbody tr th[colspan] {
        display: block;
        width: 100%;
        margin-top: 2rem;
        background: #eaf4fd;
        /* 青系 */
        color: var(--guideline-blue);
        font-weight: 700;
        padding: 0.8rem 1rem;
        border-radius: 4px 4px 0 0;
        border-bottom: none;
    }

    .guideline-salary-table tbody tr:first-child th[colspan] {
        margin-top: 0;
    }

    /* データ行 */
    .guideline-salary-table tbody tr:not(:has(th)) {
        background: #fff;
        border: 1px solid #e0e6ed;
        border-top: none;
        margin-bottom: 0;
        padding: 1.5rem;
        position: relative;
    }

    .guideline-salary-table tbody tr:last-child {
        border-radius: 0 0 4px 4px;
        margin-bottom: 1rem;
    }

    /* 各セル */
    .guideline-salary-table td {
        padding: 0.5rem 0;
        text-align: right;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 疑似要素で項目名 */
    .guideline-salary-table td::before {
        content: attr(data-label);
        font-size: 0.85rem;
        color: #888;
        font-weight: 500;
        text-align: left;
    }

    /* 対象（職種名） */
    .guideline-salary-table td:first-child {
        text-align: left;
        display: block;
        font-size: 1.1rem;
        color: #333;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px dashed #eee;
        width: 100%;
    }

    .guideline-salary-table td:first-child::before {
        display: none;
    }

    /* 支給額 */
    .guideline-salary-table td.price {
        font-size: 1.2rem;
        color: var(--guideline-accent);
    }

    .guideline-salary-table td:not(:first-child):not(.price) {
        font-size: 0.95rem;
    }
}

/* ==========================================
   募集要項TOP：コース一覧スタイル
   ========================================== */

.guideline-course-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* リンク全体 */
.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.course-card-link:hover {
    transform: translateY(-5px);
}

/* カード本体 */
.course-card {
    background: #fff;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--guideline-blue);
    /* 左にアクセントライン */
    transition: box-shadow 0.3s ease;

    /* テック・エッジ（右下のみカットして矢印スペースに） */
    clip-path: polygon(0 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%);
}

.course-card-link:hover .course-card {
    box-shadow: 0 15px 30px rgba(24, 110, 169, 0.15);
}

/* ヘッダー（タグ） */
.course-card-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-tag {
    background: var(--guideline-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
}

/* タイトル */
.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--guideline-blue);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.course-card-link:hover .course-title {
    color: #003366;
    /* ホバーで少し濃く */
}

/* 勤務地行 */
.course-location-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    width: fit-content;
}

.location-label {
    background: #e0e6ed;
    color: #555;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}

.location-text {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* 説明文 */
.course-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.course-desc-sub {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.8rem;
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 2px solid #eee;
}

/* 矢印アイコン */
.course-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--guideline-blue);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.course-card-link:hover .course-arrow {
    transform: translateX(5px);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .guideline-course-list {
        gap: 1.5rem;
    }

    .course-card {
        padding: 1.5rem;
        border-left-width: 4px;
        clip-path: polygon(0 0,
                100% 0,
                100% calc(100% - 15px),
                calc(100% - 15px) 100%,
                0 100%);
    }

    .course-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .course-location-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .course-arrow {
        bottom: 1rem;
        right: 1.5rem;
        font-size: 1.2rem;
    }
}

/* ==========================================
   詳細ページ用 追加スタイル
   ========================================== */

/* 枠上の見出し */
.guideline-category-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--guideline-blue);
    margin: 4rem auto 1.5rem;
    max-width: 1000px;
    padding-left: 1rem;
    border-left: 6px solid var(--guideline-accent);
    line-height: 1.2;
}

.guideline-category-title-note {
    font-size: 0.8rem;
    color: #666;
    display: block;
    font-weight: 400;
    margin-top: 8px;
}

/* 最初の見出しは上の余白を詰める */
.guideline-category-title:first-of-type {
    margin-top: 0;
}

/* スマホ調整 */
@media (max-width: 768px) {
    .guideline-category-title {
        margin: 3rem auto 1rem;
        font-size: 1.2rem;
    }
}
/* ==========================================
   テキストリンク
   ========================================== */
.text-link {
    color: var(--guideline-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.text-link:hover {
    opacity: 0.7;
}
