/* =========================================================
   案A「静かな編集型」
   - 英字ラベル：常に小さく（線＋文字間の広い小さな欧文）
   - ファーストビュー：コピーを横幅いっぱいに置き、その下で説明文と写真を左右に
   - WHY：文字と写真を左右交互／研修：縦のタイムライン／一日：PCは横のタイムライン
   - 代表メッセージ：ネイビー
   ========================================================= */

/* ===== 英字ラベル：小さく統一 ===== */
.sec-en {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: var(--fs-label); font-weight: 500; line-height: 1;
  letter-spacing: 0.24em; color: var(--color-orange-deep); opacity: 1; margin: 0 0 28px;
}
.sec-en::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.sec-en-light { color: var(--color-orange-soft); }
.page-hero .sec-en { color: var(--color-orange-soft); opacity: 1; }

/* ===== 背景のリズム：アイボリー／白／ネイビーの3色だけ ===== */
.hero, .hero + .marquee { background: var(--color-bg); }
#empathy { background: var(--color-bg-white); }
#reasons { background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg) 100%); }
#message { background: var(--color-navy); }
#roadmap, #skills { background: var(--color-bg-white); }
#skills { padding-top: 0; }
#skills .wrap { border-top: 1px solid var(--color-line); padding-top: var(--space-section); }
#interview { background: var(--color-bg); }
#culture { background: var(--color-bg-white); }
#blog { background: var(--color-bg); }
#aday { background: var(--color-navy); }
#career { background: var(--color-bg-white); }
#numbers { background: var(--color-bg); }
#benefits { background: var(--color-bg-white); }
#fit { background: var(--color-bg); }
#requirements { background: var(--color-bg-white); }
#faq { background: var(--color-bg); }
#flow, #flow + .marquee { background: var(--color-bg-white); }

/* ===== ファーストビュー =====
   見出しの下に写真を置くと、写真が右下へ沈んで余白が偏るため、
   文字と写真を左右に並べ、写真はヘッダー下から数字帯までを1枚で通す。 */
.hero { overflow-x: clip; }
.hero-inner {
  max-width: 1320px;
  padding: 0 0 0 var(--space-gutter);
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  grid-template-areas: "text photo";
  grid-template-rows: none;
  column-gap: clamp(36px, 5vw, 80px); row-gap: 0;
  align-items: stretch;
  min-height: min(720px, calc(100vh - 68px - 160px));
}
.hero-content {
  grid-area: text; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 6vw, 88px) 0;
}
.hero-place {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--color-text-sub);
}
.hero-place::before { content: ""; width: 32px; height: 1px; background: var(--color-orange); flex: none; }
.hero-title {
  font-size: clamp(34px, 3.9vw, 60px); line-height: 1.2; letter-spacing: -0.005em;
  margin: clamp(18px, 2vw, 26px) 0 0;
}
.hero-lead { margin: clamp(22px, 2.6vw, 32px) 0 0; font-size: 16px; line-height: 2.05; max-width: 460px; color: var(--color-text); }
.hero-ctas { margin-top: clamp(28px, 3.4vw, 40px); gap: 12px; }
.hero-note { margin-top: 18px; }
.hero-photo {
  grid-area: photo; position: relative; align-self: stretch;
  margin: 0 calc(-1 * max(0px, (100vw - 1320px) / 2)) 0 0;
  min-height: 520px; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 42%; border-radius: 0; box-shadow: none; }
.hero-photo figcaption {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  background: none; padding: 0; font-size: 11.5px; font-weight: 500;
  color: var(--color-bg-white); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ===== WHY KENSHODO：1項目＝大きな横長の段、左右交互 ===== */
.why-item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "text photo"; }
.why-item:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "photo text"; }
.why-text { grid-area: text; }
.why-photo { grid-area: photo; }
/* 写真のない項目は、補足情報を右側に置いて空白をつくらない */
.why-item:not(:has(.why-photo)) { grid-template-columns: 1fr; grid-template-areas: "text"; }
.why-item:not(:has(.why-photo)) .why-text {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 6vw, 104px);
  grid-template-areas: "num note" "title note" "desc note";
}
.why-item:not(:has(.why-photo)) .why-num { grid-area: num; }
.why-item:not(:has(.why-photo)) .why-title { grid-area: title; }
.why-item:not(:has(.why-photo)) .why-desc { grid-area: desc; }
.why-item:not(:has(.why-photo)) .why-note { grid-area: note; align-self: end; max-width: none; margin: 0; }

/* ===== MESSAGE ===== */
.message-sign { color: var(--color-bg-white); }
.message-sign span { color: var(--color-orange-soft); }

/* ===== EDUCATION ROADMAP：縦のタイムライン ===== */
.roadmap-line { left: 5px; top: 10px; bottom: 10px; width: 1px; }
.roadmap-line-fill { transform-origin: top; transform: scaleY(0); }
.roadmap.is-drawn .roadmap-line-fill { transform: scaleY(1); }
.stage {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px);
  padding: 0 0 clamp(48px, 6vw, 80px) clamp(40px, 4vw, 64px);
}
.stage:last-child { padding-bottom: 0; }
.stage::before { left: 0; top: 4px; }
.stage-body { padding-top: 2px; }
.stage-details {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-line);
}

/* ===== SKILLS：5列を細い縦線で区切る ===== */
.skill-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.skill { padding: 0 clamp(16px, 2vw, 28px); border-left: 1px solid var(--color-line); }
.skill:first-child { padding-left: 0; border-left: none; }

/* ===== A DAY：PCは横のタイムライン ===== */
#aday .h2 { max-width: none; }
.day-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 20px; }
.day-list::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: rgba(255, 255, 255, 0.2); }
.day-item { padding-top: 44px; }
.day-item::before { left: 0; top: 0; }
.day-clock { font-size: clamp(32px, 3.4vw, 50px); }
.day-task { margin-top: 16px; font-size: 14.5px; }

/* ===== CAREER：縦の進路図＋分岐 ===== */
.career-map { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: clamp(56px, 9vw, 136px); align-items: start; }
.career-steps li + li { margin-top: 44px; }
.career-steps li + li::before { content: ""; position: absolute; left: 50%; top: -44px; width: 1px; height: 36px; background: var(--color-navy-soft); }
.career-steps li + li::after {
  content: ""; position: absolute; left: calc(50% - 4px); top: -10px;
  border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid var(--color-navy-soft);
}
.career-branches { padding-top: 72px; }
.career-options { position: relative; border-left: 1px solid var(--color-navy-soft); }
.career-options::after {
  content: ""; position: absolute; top: 50%; right: 100%;
  width: clamp(56px, 9vw, 136px); border-top: 1px dashed var(--color-line-strong);
}
.career-options li { padding: 16px 0 16px 40px; border-bottom: 1px solid var(--color-line); }
.career-options li:last-child { border-bottom: none; }
.career-options li::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: var(--color-navy-soft); }
.career-options li::after {
  content: ""; position: absolute; left: 22px; top: calc(50% - 4px);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid var(--color-navy-soft);
}

/* ===== 最終CTA：左揃えで締める ===== */
.final-inner { text-align: left; }
.final-inner > p { margin-left: 0; margin-right: 0; }
.final-ctas { justify-content: flex-start; }

/* ===== レスポンシブ ===== */
@media (max-width: 1080px) {
  .stage-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-list { grid-template-columns: 1fr; }
  .skill, .skill:first-child {
    display: grid; grid-template-columns: 88px minmax(0, 260px) minmax(0, 1fr); column-gap: 32px;
    padding: 28px 0; border-left: none; border-top: 1px solid var(--color-line);
  }
  .skill-no { grid-row: span 2; }
  .skill-name { margin-top: 0; }
  .skill-points { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr; grid-template-areas: "text" "photo";
    min-height: 0; padding: 0 20px;
  }
  .hero-content { padding: 28px 0 0; }
  .hero-title { font-size: clamp(30px, 8.4vw, 44px); line-height: 1.18; }
  .hero-lead { font-size: 15px; max-width: none; }
  .hero-photo { margin: 28px -20px 0; min-height: 0; }
  .hero-photo img { aspect-ratio: 4 / 3; height: auto; }

  .why-item, .why-item:nth-child(even), .why-item:not(:has(.why-photo)) { grid-template-columns: 1fr; grid-template-areas: none; }
  .why-text, .why-item:not(:has(.why-photo)) .why-text { display: contents; }
  .why-num, .why-title, .why-desc, .why-photo, .why-note,
  .why-item:not(:has(.why-photo)) .why-num, .why-item:not(:has(.why-photo)) .why-title,
  .why-item:not(:has(.why-photo)) .why-desc, .why-item:not(:has(.why-photo)) .why-note { grid-area: auto; }
  .why-num { order: 1; font-size: 88px; }
  .why-title { order: 2; }
  .why-desc { order: 3; }
  .why-photo { order: 4; margin-top: 28px; }
  .why-note { order: 5; max-width: none; }
  .why-item:not(:has(.why-photo)) .why-note { margin-top: 28px; }

  .stage { grid-template-columns: 1fr; padding-left: 36px; }
  .stage-body { margin-top: 16px; }

  .skill, .skill:first-child { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .skill-points { grid-column: 2; grid-row: auto; margin-top: 16px; }

  .day-list { display: block; }
  .day-list::before { left: 5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .day-item { display: flex; align-items: baseline; gap: 20px; padding: 0 0 28px 36px; }
  .day-item:last-child { padding-bottom: 0; }
  .day-item::before { top: 10px; }
  .day-clock { font-size: 30px; min-width: 88px; }
  .day-task { margin-top: 0; font-size: 15px; }

  .career-map { grid-template-columns: 1fr; }
  .career-branches { padding-top: 56px; }
  .career-options::after { display: none; }
}
@media (max-width: 560px) {
  .stage-details { grid-template-columns: 1fr; }
}
