/* CSS変数の定義 */
:root {
    --primary-color: #3D74B5;
    --accent-color: #DC3C22;
    --text-color: #333;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 5px 30px rgba(0,0,0,0.1);
    --radius: 15px;
    --header-height: 95px;
    --container-padding-desktop: 30px; /* デスクトップ用の固定パディング (ヘッダー, フッター等) */
    --hero-content-padding-left: 10%; /* ヒーローコンテンツの左パディングを10%に設定 */
    --container-padding-mobile: 15px;  /* モバイル用の固定パディング */
    --max-content-width: 1400px; /* コンテンツの最大幅を定義 */
}

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px; /* ベースフォントサイズを18pxに維持 */
}

body {
    font-family: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* レスポンシブ改行制御 */
.pc-break {
    display: inline;
}

.sp-break {
    display: none; /* PC版では<br class="sp-break">を非表示 */
}

/* コンテナ */
.container {
    max-width: 1200px; /* 最大幅を設定 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 var(--container-padding-desktop); /* 左右のパディング */
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: #FFFFFF;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-left: var(--container-padding-desktop); /* ロゴの左パディング */
    padding-right: var(--container-padding-desktop); /* ボタンの右パディング */
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* ナビゲーション */
.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-list a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--accent-color);
}

/* ヘッダーボタン */
.header-buttons {
    display: flex;
    gap: 10px;
    padding-left: 50px; /* ナビゲーションとボタンの間のスペースを調整 */
}

.btn-header-contact,
.btn-header-apply {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 50px; /* ボタンの角丸を50pxに修正 */
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* お問い合わせボタンのスタイル */
.btn-header-contact {
    background-color: #e0e0e0; /* 薄めのグレー */
    color: #333;
    border: 1px solid #ccc;
}

.btn-header-contact:hover {
    background-color: #d0d0d0; /* ホバー時はさらに少し濃く */
    transform: translateY(-1px);
}

.btn-header-apply {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-header-apply:hover {
    background-color: #c22e18;
    transform: translateY(-1px);
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ヒーローセクション */
.hero {
    background-image: url('../img/main_visual.jpg'); /* PC版の背景画像 */
    background-size: cover;
    background-position: center center; /* 中央に配置 */
    background-repeat: no-repeat;
    min-height: 100vh; /* PC版の最低高さを100vhに維持 */
    color: white;
    position: relative;
    display: flex;
    align-items: center; /* コンテンツを垂直中央に配置 (PC版) */
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; /* 背景オーバーレイを完全に削除（透明に） */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-content-width); /* コンテナと同じ最大幅 */
    margin-left: 0; /* 左端に寄せる */
    margin-right: auto; /* 右側は自動調整 */
    padding-left: var(--hero-content-padding-left); /* 左側の余白 */
    padding-right: var(--container-padding-desktop); /* 右側の余白は既存のデスクトップパディングを維持 */
    text-align: left; /* テキストを左寄せ */
    /* transform: translateY(-50px);  ← この行は削除済み */
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* PC版のヒーローサブタイトルはデフォルトで表示 */
.hero-subtitle-pc {
    display: block;
    font-size: clamp(1.1rem, 2.0vw, 1.8rem);
    margin-bottom: 3rem;
    line-height: 1.5;
    font-weight: 400;
}

/* SP版のヒーローサブタイトルはデフォルトで非表示 */
.hero-subtitle-sp {
    display: none;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start; /* ボタン群を左寄せ */
    flex-wrap: wrap;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: clamp(160px, 25vw, 220px);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 60, 34, 0.3);
}

.btn-primary:hover {
    background: #c22e18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 60, 34, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* セクション共通 */
section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

/* 「+α」のセクションタイトル */
.section-title .section-title-pc {
    display: block; /* PC版タイトルはデフォルトで表示 */
}

.section-title .section-title-sp {
    display: none; /* SP版タイトルはデフォルトで非表示 */
}

/* 強調テキスト */
.highlight-text {
    font-weight: 700; /* 太字 */
    color: var(--accent-color); /* 赤色 */
    display: block; /* ブロック要素にして改行とマージンを適用 */
    margin-bottom: 1rem; /* 下に余白 */
}


/* お悩みセクション */
.problems {
    background: var(--card-bg);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 3rem;
}

.problem-card {
    background: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
    text-align: center;
}

.problem-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.problem-icon-container i {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.problem-list {
    list-style: none;
    text-align: left;
}

.problem-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid #eee;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
}

.problem-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.problem-list li:last-child {
    border-bottom: none;
}

/* 現実セクション */
.reality {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5A8BC7 100%);
    color: white;
    text-align: center;
}

.reality .section-title {
    color: white;
}

.reality-content {
    max-width: var(--max-content-width); /* コンテナと同じ最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 var(--container-padding-desktop); /* 左右パディング */
}

.reality-content p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* 現実セクションの参考情報スタイル */
.reality-content .reference-text {
    font-size: 1.0rem; /* ベースフォント18pxの100% (18px) に設定 */
    margin-top: -1.5rem; /* 上の段落との間隔を詰める */
    margin-bottom: 2rem; /* 下のハイライトとの間隔 */
    text-align: left; /* 左寄せにする */
    line-height: 1.5; /* 行の高さを調整 */
    color: rgba(255, 255, 255, 0.8); /* 背景に合わせて少し薄い色に */
    max-width: var(--max-content-width); /* コンテナと同じ最大幅に設定 */
    margin-left: auto; /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
    /* ここで padding-left と padding-right を削除または0に設定 */
    padding-left: 0;
    padding-right: 0;
}

.reality-content .reference-text a {
    color: rgba(255, 255, 255, 0.9); /* リンクの色も調整 */
    text-decoration: underline; /* 下線を追加 */
}

.reality-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.reality-highlight p {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 600;
    margin: 0;
}

/* 特長セクション */
.features {
    background: var(--card-bg);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    max-width: var(--max-content-width); /* コンテナと同じ最大幅 */
    margin-left: auto; /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
    padding: 0 var(--container-padding-desktop); /* 左右パディング */
}

.feature-row.reverse {
    grid-template-columns: 480px 1fr;
}

.feature-row.reverse .feature-content {
    order: 2;
}

.feature-row.reverse .feature-media {
    order: 1;
}

.feature-content {
    background: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-color);
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.feature-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-desc {
    line-height: 1.7;
    color: #555;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.feature-media img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* 導入実績企業セクション */
.achievements {
    background: #f0f0f0; /* 少しグレーの背景 */
    padding: clamp(2rem, 6vw, 4rem) 0;
    overflow: hidden; /* ロゴがはみ出さないように */
}

.logo-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 3rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05); /* 内側の影で立体感を出す */
    padding: 1.5rem 0; /* 上下のパディング */
}

.logo-carousel {
    display: flex;
    white-space: nowrap; /* ロゴが改行されないように */
}

.logo-track {
    display: flex;
    animation: scroll-left 30s linear infinite; /* アニメーション定義 */
    will-change: transform; /* アニメーションのパフォーマンス最適化 */
}

.logo-track:hover {
    animation-play-state: paused; /* ホバーで一時停止 */
}

.logo-track img {
    height: 80px; /* ロゴの高さ。必要に応じて調整 */
    width: auto;
    margin: 0 30px; /* ロゴ間のスペース */
    object-fit: contain; /* アスペクト比を維持しつつ要素に収める */
    /* filter: grayscale(100%);  <-- この行を削除/コメントアウト */
    opacity: 0.8; /* 少し透明にする */
    transition: all 0.3s ease;
}

.logo-track img:hover {
    /* filter: grayscale(0%);  <-- この行を削除/コメントアウト */
    opacity: 1; /* ホバーで不透明にする */
}

/* ロゴアニメーションのキーフレーム */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* コンテンツの半分を移動させてシームレスにループ */
    }
}


/* 新しい追加セクションのスタイル */
.additional-training {
    background: var(--card-bg);
}

.additional-training-intro {
    text-align: center;
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

.training-sections-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* PC版を1カラム（縦並び）に設定 */
    gap: clamp(2rem, 5vw, 4rem); /* 縦方向のギャップ */
    margin-top: 3rem;
}

.training-section {
    background: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
}

.training-subtitle {
    font-size: clamp(1.3rem, 3.2vw, 1.7rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

/* PC版：オンボーディング研修の日程とイラストを横並びにするラッパー */
.onboarding-content-wrapper {
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 2rem; /* 日程リストとイラストの間のスペース */
}

.training-date-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* 縮小しない */
    width: 50%; /* 幅を調整 */
}

.training-program-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.training-date-list li,
.training-program-list li {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    padding: 0.3rem 0; /* 各行の上下パディング */
    border-bottom: 1px dashed #eee;
    text-align: left;
}

.training-date-list li:last-child,
.training-program-list li:last-child {
    border-bottom: none;
}

.training-program-list li strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-weight: 600;
}
/* オンライン研修リストの余白調整 */
.training-program-list li {
    margin-bottom: 0.4rem; /* 各項目間の下余白を詰める */
    padding-bottom: 0.4rem; /* 各項目内の下パディングを詰める */
}
.training-program-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}


.training-note {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    color: #666;
    line-height: 1.5;
    text-align: left;
    margin-top: 1.5rem;
}

.training-image {
    text-align: center;
    margin-top: 0; /* 親要素のFlexboxで制御するため、マージンをリセット */
    flex-grow: 1; /* 残りのスペースを埋める */
    display: flex; /* 画像を中央寄せするため */
    justify-content: center; /* 画像を中央寄せするため */
    align-items: center; /* 画像を中央寄せするため */
}

.training-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 選ばれる理由セクション */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC版では3列に固定 */
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 3rem;
}

.reason-card {
    background: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    text-align: center;
}

.reason-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-color);
    color: white;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.reason-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.reason-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.reason-desc {
    line-height: 1.7;
    color: #555;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.reason-media img {
    width: min(100%, 640px);
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* カリキュラム横スクロール */
.curriculum {
    background: var(--card-bg);
    padding-bottom: 6rem;
}

.curriculum-image-header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem; /* 補足テキストとの間に余白 */
}

.curriculum-image-header img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 「横にスクロールしてご覧ください」のスタイルを再有効化 */
.curriculum-note {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.curriculum-note i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.curriculum-track {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    overflow: auto;
    padding-bottom: 20px;
    /* scroll-snap-type: x proximity;  <-- これを削除することで滑らかなスクロールが可能になります */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    max-width: var(--max-content-width); /* コンテナと同じ最大幅 */
    margin-left: auto; /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
    padding-left: var(--container-padding-desktop); /* 左右パディング */
    padding-right: var(--container-padding-desktop); /* 左右パディング */
}

.curriculum-track:active {
    cursor: grabbing;
}

.curriculum-card {
    flex: 0 0 clamp(280px, 40vw, 400px);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 4vw, 2rem);
    scroll-snap-align: start;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.curriculum-card:nth-child(1) { border-top-color: #A0C0E0; }
.curriculum-card:nth-child(2) { border-top-color: #70A0D0; }
.curriculum-card:nth-child(3) { border-top-color: #5A8BC7; }
.curriculum-card:nth-child(4) { border-top-color: var(--primary-color); }
.curriculum-card:nth-child(5) { border-top-color: #30609b; }
.curriculum-card:nth-child(6) { border-top-color: #254b7a; }

.curriculum-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.curriculum-subtitle {
    color: #000;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.4;
    font-weight: bold;
}

.curriculum-list {
    list-style: none;
    text-align: left;
}

.curriculum-list li {
    padding: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
    color: #000;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.5;
}

.curriculum-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

/* お客様の声 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 6vw, 4rem);
    margin-top: 3rem;
}

.testimonial-heading {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.testimonial-icon {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-icon i {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--accent-color);
}

.testimonial-card {
    background: white;
    border-left: 5px solid var(--accent-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2rem;
}

.testimonial-title {
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.testimonial-text {
    line-height: 1.7;
    color: #555;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
}

/* スケジュール・価格テーブル */
/* スケジュールセクション */
.schedule .container {
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding-desktop);
}

/* PC版スケジュールテーブルのコンテナ */
.schedule-pc-view {
    display: block;
}

/* SP版スケジュールブロックのコンテナ */
.schedule-sp-view {
    display: none;
}

/* PC版：テーブルを中央寄せ */
.table-scroll {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
    padding-bottom: 20px;
    /* テーブルを中央に配置 */
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.schedule-table {
    border-collapse: collapse;
    min-width: 600px;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--border-color);
    padding: clamp(0.5rem, 2vw, 1rem);
    text-align: center;
    white-space: nowrap;
}

.schedule-table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.venue-sapporo,
.venue-yokohama,
.venue-nagoya,
.venue-hiroshima {
    background: #fcfcfc;
}

.venue-tokyo,
.venue-osaka,
.venue-fukuoka {
    background: #f8f8f8;
}

/* 価格テーブル特有のスタイル */
.pricing-subtitle {
    text-align: center;
    color: #666;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
}

/* PC版価格テーブルのコンテナ */
.pricing-pc-view {
    display: block; /* Default to block for PC */
}

/* SP版価格ブロックのコンテナ */
.pricing-sp-view {
    display: none; /* Default to none for SP */
    margin-top: 2rem;
    flex-direction: column; /* Stack cards vertically */
    gap: 1.5rem; /* Space between cards */
}

.pricing-card-sp {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-top: 5px solid var(--primary-color);
    text-align: center; /* Center align content within the card */
}

.pricing-type-sp {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-detail-sp {
    display: flex;
    flex-direction: column; /* Stack price details vertically */
    gap: 0.5rem; /* Space between price rows */
}

.pricing-detail-sp p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 0; /* Remove default paragraph margin */
    line-height: 1.5;
    display: flex;
    justify-content: space-between; /* Align '早割'/'一般価格' to left, amount to right */
    align-items: center;
}

.price-amount-sp {
    font-weight: 600;
    color: var(--text-color);
}

.price-amount-sp.emphasized-sp {
    font-weight: 800;
    color: var(--accent-color);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}


/* 価格テーブルのスタイルはそのまま */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
}

.pricing-table th,
.pricing-table td {
    border: 1px solid var(--border-color);
    padding: clamp(0.5rem, 2vw, 1rem);
    text-align: center;
    white-space: nowrap;
}

.pricing-table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}


.price-type {
    background: #eef6ff;
    color: var(--primary-color);
    font-weight: 700;
}

.price-amount {
    font-weight: 600;
}

.price-amount.emphasized {
    font-weight: 800;
    color: var(--accent-color);
    font-size: clamp(1.1rem, 2.8vw, 1.3rem);
}

.pricing-note {
    max-width: 800px;
    margin: 2rem auto 3rem;
    text-align: center;
    color: #666;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    line-height: 1.6;
}

.center {
    text-align: center;
}

/* フッター */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: var(--max-content-width); /* コンテナと同じ最大幅 */
    margin-left: auto; /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
    padding: 0 var(--container-padding-desktop); /* フッターコンテンツにもデスクトップパディングを適用 */
}

/* 電話番号のスタイル */
.footer-tel {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 700;
    color: white; /* 明るい色 */
    margin-top: 0.5rem; /* 上部の余白を調整 */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0 0;
    text-align: center;
    color: #ccc;
    font-size: 1rem;
}

.footer-logo img {
    height: 48px;
    width: auto;
    display: block;
    max-width: 100%; /* 親要素の幅を超えないようにする */
}

/* ページトップボタン */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: 0;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    justify-content: center;
    align-items: center;
}

.scroll-to-top:hover {
    background: #c22e18;
    transform: translateY(-2px);
}

.scroll-to-top.show {
    display: flex;
}

/* アニメーション */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.is-animated {
    opacity: 1;
    transform: translateY(0);
}

/* セクション間のスクロールオフセット */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* ホバーエフェクト */
.problem-card,
.reason-card,
.testimonial-card {
    transition: all 0.3s ease;
}

.problem-card:hover,
.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* カスタムスクロールバー */
.curriculum-track::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar {
    height: 8px;
}

.curriculum-track::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.curriculum-track::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb {
    background: #5A8BC7;
    border-radius: 10px;
}

.curriculum-track::-webkit-scrollbar-thumb:hover,
.table-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* レスポンシブデザイン */

/* タブレット (768px以下) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --container-padding-desktop: var(--container-padding-mobile); /* モバイル用のパディング変数を適用 */
    }

    .pc-break {
        display: none;
    }

    .sp-break {
        display: inline; /* SP版で<br class="sp-break">を表示 */
    }

    /* コンテナ */
    .container {
        padding: 0 var(--container-padding-mobile); /* モバイルではコンテナ自体にパディングを戻す */
    }

    /* ヘッダー */
    .header-content {
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
        flex-wrap: nowrap; /* ボタンが1行に収まるように */
        min-width: 0; /* flexアイテムの縮小を許可 */
    }

    .header-content .logo img {
        height: 30px; /* SP版でのロゴの高さ */
    }

    .nav,
    .header-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important; /* 他のルールを上書きして強制表示 */
        margin-left: auto; /* 右端に寄せる */
    }

    .nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding-top: var(--header-height);
        z-index: 1001;
        justify-content: center;
        align-items: center;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav-list a {
        font-size: 1.5rem;
        color: #333;
        padding: 0.5rem 0;
    }

    /* ヒーロー */
    .hero {
        background-image: url('../img/main_visual-sp.jpg'); /* SP版の背景画像 */
        background-position: center bottom; /* SP版の背景画像は下部を中央に固定 */
        min-height: 1000px; /* タブレット・SP版での最低高さを1000pxに設定 */
        align-items: flex-start; /* コンテンツを上部に配置 (タブレット版) */
        /* padding-top: var(--header-height); は既にheroに設定されている */
    }

    .hero-content {
        text-align: center; /* テキストを中央寄せに戻す */
        margin-left: auto; /* 中央寄せに戻す */
        margin-right: auto; /* 中央寄せに戻す */
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
        padding-top: calc(var(--header-height) + 40px); /* ヘッダーの高さ＋αのパディングを上部に追加 */
    }

    .hero-cta {
        justify-content: center; /* ボタン群を中央寄せに戻す */
    }

    /* ヒーローサブタイトル - SP版表示 */
    .hero-subtitle-pc {
        display: none; /* SP版ではPC版テキストを非表示 */
    }

    .hero-subtitle-sp {
        display: block; /* SP版ではSP版テキストを表示 */
        font-size: clamp(1.1rem, 2.8vw, 1.6rem);
        margin-bottom: 3rem; /* スタイルはPC版と共通化 */
        line-height: 1.5; /* スタイルはPC版と共通化 */
        font-weight: 400; /* スタイルはPC版と共通化 */
        white-space: normal; /* 明示的に改行を有効にする */
    }

    /* グリッド */
    .problems-grid,
    .reasons-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* 特長セクション */
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 var(--container-padding-mobile); /* 左右パディング */
    }

    .feature-row.reverse .feature-content,
    .feature-row.reverse .feature-media {
        order: unset;
    }

    /* 導入実績企業セクション (SP版) */
    .logo-carousel-wrapper {
        margin-top: 2rem; /* SP版でのマージン調整 */
        padding: 1rem 0;
    }
    .logo-track img {
        height: 60px; /* SP版ではロゴを小さく */
        margin: 0 20px; /* SP版でのロゴ間のスペース */
    }


    /* 新しい追加セクションのスタイル */
    .section-title .section-title-pc {
        display: none; /* SP版ではPC版タイトルを非表示 */
    }

    .section-title .section-title-sp {
        display: block; /* SP版ではSP版タイトルを表示 */
    }

    .additional-training-intro {
        margin-bottom: 2rem; /* SP版では少し狭く */
    }

    .training-sections-wrapper {
        grid-template-columns: 1fr; /* SP版は1カラム（縦並び）に維持 */
        gap: 2rem; /* SP版のギャップ調整 */
    }

    /* オンボーディング研修のコンテンツラッパー (SP版は縦並び) */
    .onboarding-content-wrapper {
        flex-direction: column; /* SP版では縦並びに戻す */
        align-items: center; /* 中央寄せ */
        gap: 1.5rem; /* SP版のギャップ調整 */
    }

    .training-date-list {
        width: auto; /* SP版では幅を自動調整 */
    }

    /* オンライン研修リストの余白調整（SP版でも適用） */
    .training-program-list li {
        margin-bottom: 0.4rem; /* 項目間の余白を詰める */
        padding-bottom: 0.4rem; /* 項目内の下パディングを詰める */
    }
    .training-program-list li:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }


    /* フッター */
    .footer-content {
        grid-template-columns: 1fr; /* SP版では1列にする */
        text-align: center; /* コンテンツを中央寄せ */
        padding: 0 var(--container-padding-mobile); /* フッターコンテンツにもモバイルパディングを適用 */
    }

    .footer-col {
        text-align: center; /* 各列のテキストを中央寄せ */
    }

    .footer-logo img {
        margin: 0 auto; /* ロゴを中央寄せ */
        height: 35px; /* 例: SP版で少し小さくする */
    }

    /* カリキュラムトラック */
    .curriculum-track {
        padding-left: var(--container-padding-mobile); /* 左右パディング */
        padding-right: var(--container-padding-mobile); /* 左右パディング */
    }

    /* スケジュールセクション - SP版レイアウト */
    .schedule .container {
        padding: 0 var(--container-padding-mobile);
    }

    .schedule-pc-view {
        display: none; /* PC版テーブルを非表示 */
    }

    .schedule-sp-view {
        display: block; /* SP版ブロックを表示 */
        margin-top: 2rem;
    }

    .venue-block {
        background: white;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-bottom: 2.5rem;
        padding: clamp(1.5rem, 4vw, 2rem);
        border-top: 5px solid var(--primary-color);
    }

    .venue-block:last-child {
        margin-bottom: 0;
    }

    .venue-name {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        color: var(--primary-color);
        text-align: center;
        margin-bottom: 1.5rem;
        font-weight: 700;
    }

    .schedule-entry {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .schedule-entry:last-child {
        margin-bottom: 0;
    }

    .schedule-type {
        font-size: clamp(1.1rem, 2.8vw, 1.3rem);
        color: var(--accent-color);
        font-weight: 600;
        text-align: center;
        margin-bottom: 0.8rem;
    }

    .schedule-days {
        list-style: none;
        padding: 0;
    }

    .schedule-days li {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        color: #555;
        line-height: 1.6;
        padding: 0.2rem 0;
        text-align: left;
    }

    .schedule-days li strong {
        color: var(--text-color);
    }

    /* Pricing section */
    .pricing-pc-view {
        display: none; /* Hide PC view on SP */
    }
    .pricing-sp-view {
        display: flex; /* Show SP view on SP */
    }

    .pricing-note {
        text-align: left; /* Left align note on SP */
        padding: 0 var(--container-padding-mobile); /* Add padding for mobile */
    }

    /* Adjust pricing-detail-sp for smaller screens if needed */
    .pricing-detail-sp p {
        flex-direction: row; /* Keep label and amount on the same line */
        justify-content: space-between; /* Space them out */
        align-items: center;
        text-align: left; /* Ensure text within p is left-aligned */
    }
    .pricing-detail-sp p span {
        display: inline; /* Ensure spans are inline */
    }

    /* 現実セクションの参考情報スタイル (モバイル用) */
    .reality-content .reference-text {
        font-size: 1.0rem; /* モバイルでも1.0remを適用 */
        margin-top: -1rem; /* モバイルでのマージン調整 */
        /* ここで padding-left と padding-right を削除または0に設定 */
        padding-left: 0;
        padding-right: 0;
    }
}

/* スマートフォン (480px以下) */
@media (max-width: 480px) {
    .curriculum-card {
        flex-basis: 260px;
    }
}

/* 印刷対応 */
@media print {
    .header,
    .scroll-to-top,
    .mobile-menu-toggle {
        display: none;
    }

    .hero {
        background: none;
        color: #333;
    }

    section {
        padding: 20px 0;
        break-inside: avoid;
    }
}
