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

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
}

body {
  background-color: #ffffff;
  /* 768px以下（SP）でも背景は消さずに残す */
  background-image: url("img/pc_bg.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== LP本体（連番画像を縦に並べるだけ） ===== */
.lp-wrap {
  width: 100%;
}

.lp {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* sionStage_01.jpgの上に重ねるCTAボタン */
.hero-img-wrap {
  position: relative;
}

.hero-btn-link {
  position: absolute;
  left: 50%;
  bottom: 6.5%;
  transform: translateX(-50%);
  width: 90%;
  /* max-width: 380px; */
}

.hero-btn {
  width: 100%;
}

.hero-img-wrap--07 .hero-btn-link {
  bottom: 3.5%;
}

.hero-img-wrap--09 .hero-btn-link {
  bottom: 3.5%;
}

/* 運営会社情報フッター（既存のロゴフッターのすぐ上に設置） */
.l-footer {
  background: #fff;
  padding: 32px 20px 24px;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

.l-footer__group {
  font-size: 11px;
  color: #333;
  margin-bottom: 4px;
}

.l-footer__name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.l-footer__address {
  font-style: normal;
  font-size: 12px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
}

.l-footer__address a {
  color: #333;
  text-decoration: none;
}

.l-footer__license {
  list-style: none;
  font-size: 11px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
}

.l-footer__nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin-bottom: 16px;
}

.l-footer__nav a {
  font-size: 12px;
  color: #333;
  text-decoration: underline;
}

.l-footer__copyright {
  font-size: 11px;
  color: #333;
}

/* フッター：白背景に画像を上下左右中央配置 */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: #fff;
  padding: 20px;
}

.footer-link {
  display: inline-block;
  color: #333;
  font-size: 14px;
  text-decoration: underline;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-link {
    font-size: 13px;
  }
}

.site-footer img {
  width: auto;
  max-width: 220px;
}

/* =========================================================
   求人一覧 / カウンセラー スライダー（形だけの一旦版）
   ========================================================= */
/* 求人一覧〜カウンセラーをまたいで1枚の背景。上が#4051C6、求人カード下段の半分くらいから#F6FDFF */
.listings-block {
  background: linear-gradient(to bottom, #4051c6 0%, #4051c6 40%, #f6fdff 40%, #f6fdff 100%);
}

.card-slider {
  padding: 28px 20px 36px;
}

.card-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 14px 0;
  margin-bottom: 20px;
}

/* カウンセラー側は明るい背景の上に乗るので文字・矢印を#4051C6に */
.card-slider--counselor .card-slider-title {
  color: #4051c6;
}

.card-slider--counselor .slider-arrow {
  color: #4051c6;
  border-color: #4051c6;
}

.card-slider-title {
  /* スマホ幅では縮む。最小32px、480px幅(SPの最大)あたりで46pxに近づく */
  font-size: clamp(32px, 9.5vw, 46px);
  font-weight: bold;
}

.card-slider-nav {
  display: flex;
  gap: 8px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* くの字（山型）矢印。border-widthの太さと角のサイズで開き具合を調整できる */
.slider-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-style: solid;
  border-color: currentColor;
  border-width: 0 2px 2px 0;
  display: block;
}

.slider-prev::before {
  transform: rotate(135deg);
  margin-left: 3px;
}

.slider-next::before {
  transform: rotate(-45deg);
  margin-right: 3px;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 送り先がない（アイテムが1つしかない）場合はグレーアウト */
.slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.card-slider-viewport {
  overflow: hidden;
}

.card-slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.card-slide {
  flex: 0 0 100%;
  width: 100%;
}

/* カウンセラーだけ次のカードが少し見えるようにスライドを詰める */
.card-slider--counselor .card-slider-track {
  gap: 14px;
}

.card-slider--counselor .card-slide {
  flex: 0 0 85%;
  width: 85%;
  /* カード上にかぶる写真がoverflow:hiddenで切れないように上に余白を確保 */
  padding-top: 60px;
  /* テキスト量が違っても.counselor-cardの高さを揃えるため、このスライド自体もflex化して子をstretch */
  display: flex;
}

/* アイテムが1つだけの時は見切れさせず、左右に余白のある通常幅で表示 */
.card-slider--counselor.is-single .card-slide {
  flex: 0 0 100%;
  width: 100%;
}

/* 求人カード：4枚で1セット、2x2グリッド */
.job-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.job-card {
  display: block;
  background: #fff;
  border: 2px solid #4051c6;
  border-radius: 8px;
  overflow: hidden;
  padding: 14px 14px 18px;
  text-decoration: none;
}

.job-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.job-section {
  padding: 0 4px;
  margin-bottom: 10px;
}

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

.job-badge {
  display: inline-block;
  background: #4051c6;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 0;
  margin-bottom: 5px;
}

.job-value {
  font-size: 12px;
  color: #222;
  line-height: 1.4;
}

.job-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 10px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.job-row-label {
  color: #444;
  white-space: nowrap;
}

.job-row-value {
  color: #111;
  font-size: 12px;
}

/* カウンセラーカード：写真がカード上辺に半分かぶる形 */
.counselor-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 2px solid #4051c6;
  border-radius: 8px;
  padding: 160px 18px 24px;
}

.counselor-photo {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.counselor-name {
  text-align: center;
  color: #4051c6;
  /* スマホでは24px、PCは下の@mediaで30pxに */
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 14px;
}

.counselor-text {
  /* スマホでは16px、PCは下の@mediaで18pxに */
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  text-align: left;
}

.card-slider-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* カウンセラーはドットなし */
.card-slider--counselor .card-slider-dots {
  display: none;
}

.card-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #d9d9d9;
}

.card-slider-dots .dot.active {
  background: #d9d9d9;
  border-color: #d9d9d9;
}


/* =========================================================
   FAQ（＋－アコーディオン）
   ========================================================= */
.faq-block {
  background: #f6fdff;
  padding: 0 20px 60px;
}

.faq-title {
  display: block;
  /* スマホ幅では縮み、480px(SPの最大)あたりで220pxに近づく */
  width: clamp(190px, 50vw, 220px);
  margin: -2px auto 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid #4051c6;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.faq-q {
  align-self: flex-start;
  flex-shrink: 0;
  color: #4051c6;
  font-size: 22px;
  font-weight: bold;
  /* question-textの1行目(font-size15px * line-height1.5)と高さを揃えて中央が合うように */
  line-height: 22.5px;
}

.faq-question-text {
  flex: 1;
  font-size: 15px;
  font-weight: bold;
  color: #222;
  line-height: 1.5;
}

/* ＋－トグル */
.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #4051c6;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-toggle::before {
  width: 10px;
  height: 2px;
}

.faq-toggle::after {
  width: 2px;
  height: 10px;
}

.faq-item.is-open .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* max-heightをJSで実測値まで動かして開閉をアニメーションさせる */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 16px 20px;
}

.faq-a {
  flex-shrink: 0;
  color: #f5a623;
  font-size: 22px;
  font-weight: bold;
  /* answer-textの1行目(font-size14px * line-height1.8)と高さを揃えて中央が合うように */
  line-height: 25.2px;
}

.faq-answer-text {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}


/* PC専用の左側コンテンツ。SPではsionStage側の画像に含まれているので非表示 */
.side-content {
  display: none;
}

/* PC専用の右側ナビ。SPでは非表示 */
.side-nav {
  display: none;
}


/* =========================================================
   PC表示
   ブレークポイントは仮。後で調整する前提。
   ・背景はpc_bg.jpgを固定表示（スクロールしても動かない）
   ・LP（幅480pxのSPデザイン）は画面中央より少し右に配置
   ========================================================= */
@media (min-width: 769px) {

  /* 左：残り幅（可変） / 中央：LP固定480px / 右：22%幅 の3分割 */
  :root {
    --side-right-col: 22%;
  }

  .lp-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px var(--side-right-col);
    align-items: start;
  }

  .lp {
    grid-column: 2;
    /* ベースの margin:0 auto を明示的に上書き（auto が残ると center が効かない） */
    margin: 0;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.25);
  }

  /* 左側コンテンツ：背景と同じくposition:fixedでスクロールに追従させない */
  .side-content {
    position: fixed;
    /* 左カラム(1fr = 100% - 480px - var(--side-right-col))の実際の幅 */
    --col1-width: calc(100% - 480px - var(--side-right-col));
    /* 幅は400pxを上限に、左右20pxの余白が確保できなくなったら縮む。読める下限は220px */
    --content-gap: 20px;
    --content-width: max(220px, min(400px, calc(var(--col1-width) - (var(--content-gap) * 2))));
    width: var(--content-width);
    /* 左カラムの中で常に中央寄せ（幅が変わってもこの式で追従する） */
    left: calc((var(--col1-width) - var(--content-width)) / 2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    /* 上からの位置。vh=画面の高さ基準なので.side-navと同じ数値にすれば高さが揃う */
    top: 22vh;
    margin-top: -20px;
  }

  .side-heading {
    color: #fff;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 22px;
  }

  .side-heading-sub {
    display: block;
    font-size: calc(32px * var(--side-scale, 1));
    text-align: center;
  }

  .side-heading-main {
    display: block;
    font-size: calc(46px * var(--side-scale, 1));
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
  }

  .side-features {
    width: 100%;
    margin-bottom: 50px;
  }

  .side-fukidashi {
    align-self: center;
    width: 75%;
  }

  .side-btn-link {
    align-self: center;
    width: 88%;
    max-width: 380px;
  }

  .side-btn {
    width: 100%;
  }

  /* 右側ナビ：背景と同じくposition:fixedでスクロールに追従させない */
  .side-nav {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* 右端からの間隔 / 上からの位置。左の.side-contentと揃える */
    right: 40px;
    top: 22vh;
    gap: 20px;
  }

  .side-nav a {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-align: right;
    text-decoration: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.2s ease;
  }

  /* 現在表示中のセクションに対応するメニューだけ色を変える */
  .side-nav a.is-active {
    color: #f5a623;
  }

  .counselor-text {
    font-size: 18px;
  }

  .counselor-name {
    font-size: 30px;
  }

}

/* 1100px以下では左の要素だけ非表示（グリッド構成や右ナビの位置は変えない） */
@media (min-width: 769px) and (max-width: 1100px) {
  .side-content {
    display: none;
  }
}

