/* ==========================================================
   医療ソーシャルワーカー詳細ページ専用CSS
   v0.4 (Chat-16 / 2026-05-24)
   準拠: 43_harenokuni_phaseB_msw-detail-10parts-draft.md v1.0
   配色・タイポ・見出し構造は custom.css (v0.45) を全面継承
   医師ページ doctor-detail.css v0.5（年俸ヒーロー装飾の前段階）を
   雛形として継承。MSWは年俸最大訴求型でないため年俸装飾は不要。

   FV画像レイアウト：右画像・左テキスト（医師ページと同じ標準版）
   ※ 看護師ページは左右反転版（左画像・右テキスト）
   ※ 医療事務ページも左右反転版（看護師ページと同形）
   ※ 4職種で「右画像 / 左画像」を交互配置することで
      ドロップダウン経由の連続閲覧時に視覚的リズムが生まれる

   Changelog v0.2:
     - 千秋さんから実画像受領（fv-msw.jpg = msw-img-top2.jpg・1920×1080）
       ベージュブラウスの女性MSWが対面相談中の構図
       被写体が画像エリア右側に配置され、左の白フェードオーバーレイ
       （左テキストと斜め境界線エリア）とも完全に整合
     - フォールバック深緑グラデは不要となったため除去
     - 医師ページv0.5と同じシンプルな background-image: url() 指定に戻す
     - HTML側の変更は不要（FV構造は v0.1 から完全に同一）

   Changelog v0.1:
     - 医師ページ doctor-detail.css v0.5 を雛形に作成
     - 年俸ヒーローバッジ・年俸ハイライトカード・給与行ハイライト等の
       医師ページ独自装飾（v0.7系）は全て除去
     - FV画像URL: fv-doctor.jpg → fv-msw.jpg（プレースホルダー：未受領）
       画像未受領時のフォールバック：CSSで深緑のbackground-colorが
       画像エリアに表示されるため、テキストはフォールバックでも可読
     - JobPosting JSON-LD は社会福祉士向け baseSalary 210,000円/月に変更
     - DETAIL-7 求人票テーブルは1本構成（社会福祉士のみ・雇用形態1種）
       openings-table-wrap に2本表示用の余白がある場合は活用
   ========================================================== */

/* ----------------------------------------------------------
   D1. パンくず（Breadcrumb）
   ---------------------------------------------------------- */
.breadcrumb-section {
  background-color: var(--hk-sage-soft);
  padding: 1rem 0;
  margin-top: 78px; /* fixed-top navbar 分のオフセット */
  border-bottom: 1px solid rgba(50, 100, 100, 0.08);
}
.breadcrumb-hk {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--hk-text-mute);
}
.breadcrumb-hk li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb-hk li:not(:last-child)::after {
  content: "›";
  margin: 0 0.75rem;
  color: var(--hk-text-light);
}
.breadcrumb-hk a {
  color: var(--hk-primary);
  text-decoration: none;
}
.breadcrumb-hk a:hover {
  color: var(--hk-primary-dark);
  text-decoration: underline;
}
.breadcrumb-hk li[aria-current="page"] {
  color: var(--hk-text-dark);
  font-weight: 600;
}

/* ----------------------------------------------------------
   D2. 職種別FV — 画像＋斜め境界線レイアウト（v0.3）
   v0.3: 画像80%・テキスト中央寄せ・CTAを葉黄緑に
   v0.2: 画像65%・テキスト下寄せ
   ---------------------------------------------------------- */
.fv-detail {
  position: relative;
  width: 100%;
  /* min-height: 78vh → clamp(560px, 78vh, 820px)（v0_8_3 / 大画面FV高さ間延び解消）
     下限560px：ノートPC（高さ700px前後）でCTAまで確実に表示
     中央78vh ：従来通り標準的な画面でビューポート相対
     上限820px：32インチ4Kモニタでも適切に収まる上限 */
  min-height: clamp(560px, 78vh, 820px);
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* 右側の画像エリア — 斜めにクリップ */
.fv-detail-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  background-image: url('../images/fv-msw.jpg');
  background-size: cover;
  background-position: center center;
  /* 左辺を上から下に向かってナナメに切る（左上が引っ込む形） */
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

/* 画像の左端を少しソフトに馴染ませる薄いオーバーレイ */
.fv-detail-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(90deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.2) 60%, transparent 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

/* テキストブロック — 中央〜やや上寄せに変更（v0.3） */
.fv-detail-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* v0.3: flex-end → center */
  padding: 6rem 2rem 4rem 4rem;
}

.fv-detail-eyebrow {
  display: inline-block;
  width: fit-content;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--hk-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hk-point);
}

.fv-detail-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.45;
  color: var(--hk-primary-text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  /* PC時は画像エリア(右70%)に食い込まないよう、左下テキスト領域内に収める */
  max-width: 100%;
}

.fv-detail-subtitle {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--hk-text-body);
  margin-bottom: 2rem;
  max-width: 540px;
}

.fv-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
  color: var(--hk-primary-text);
}
.fv-detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.95rem;
  background: var(--hk-sage-soft);
  border: 1px solid var(--hk-sage);
  border-radius: 999px;
  font-weight: 500;
}

/* ----------------------------------------------------------
   FVテキスト袋文字（白縁取り）— v0.3で追加
   背景画像（特に明るい医療事務ページの白事務服＋白背景）に
   対して深緑テキストが同化する問題を解消するため、
   FVのテキスト要素に白の袋文字（text-shadow 8方向）を追加。

   8方向で滑らかな縁取りを実現。1.5px は上品で控えめだが
   背景との分離は確実に確保できる強度。
   ※ .fv-detail-meta span（バッジ）は背景色が明示されているため除外。
   ---------------------------------------------------------- */
.fv-detail-eyebrow,
.fv-detail-title,
.fv-detail-subtitle,
.fv-detail-meta {
  text-shadow:
    -1.5px -1.5px 0 #FFFFFF,
     0    -1.5px 0 #FFFFFF,
     1.5px -1.5px 0 #FFFFFF,
     1.5px  0    0 #FFFFFF,
     1.5px  1.5px 0 #FFFFFF,
     0     1.5px 0 #FFFFFF,
    -1.5px  1.5px 0 #FFFFFF,
    -1.5px  0    0 #FFFFFF;
}

/* バッジ（背景色明示）は袋文字を無効化 */
.fv-detail-meta span {
  text-shadow: none;
}


.fv-detail-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.btn-fv-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border-width: 1.5px;
  border-style: solid;
}
.btn-fv-detail-primary {
  background: #F1FBE3;
  color: var(--hk-primary);
  border: 1.5px solid var(--hk-primary);
}
.btn-fv-detail-primary:hover {
  background: var(--hk-sage);
  color: var(--hk-primary);
  border-color: var(--hk-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(50, 100, 100, 0.18);
}
.btn-fv-detail-outline {
  background: #FFFFFF;
  color: var(--hk-primary);
  border: 1.5px solid var(--hk-primary);
}
.btn-fv-detail-outline:hover {
  background: var(--hk-sage-soft);
  color: var(--hk-primary-dark);
  border-color: var(--hk-primary-dark);
  transform: translateY(-2px);
}

/* 右端の縦書きSCROLLインジケーター */
.fv-detail-scroll {
  position: absolute;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: #FFFFFF;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.fv-detail-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 50px;
  background: #FFFFFF;
  margin-top: 0.5rem;
  animation: fv-scroll-line 1.8s ease-in-out infinite;
  transform-origin: top;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
@keyframes fv-scroll-line {
  0%, 100% { transform: scaleY(0); opacity: 0; }
  40%, 60% { transform: scaleY(1); opacity: 1; }
}

/* タブレット以上 */
@media (min-width: 768px) {
  .fv-detail-inner {
    padding: 6rem 2rem 4rem 5rem;
  }
  .fv-detail-title {
    font-size: 3rem;
  }
  .fv-detail-subtitle {
    font-size: 1.05rem;
  }
}

/* PC：テキストブロックを左カラム内に収める（画像と重ならない安全幅） */
/* 画像80%＋斜め20%カット = 画像左端は親要素の左から36%地点 */
@media (min-width: 992px) {
  .fv-detail-inner {
    max-width: 48%;
  }
  .fv-detail-title {
    font-size: 2.15rem;
  }
}

/* デスクトップ大画面 */
@media (min-width: 1200px) {
  .fv-detail-inner {
    max-width: 46%;
  }
  .fv-detail-title {
    font-size: 2.4rem;
  }
}

/* 超大画面 */
@media (min-width: 1600px) {
  .fv-detail-inner {
    max-width: 42%;
  }
  .fv-detail-title {
    font-size: 2.8rem;
  }
}

/* タブレット縦：画像を上、テキストを下に再構成 */
@media (max-width: 991px) {
  .fv-detail {
    min-height: 100vh;
    flex-direction: column;
  }
  .fv-detail-img {
    position: relative;
    width: 100%;
    height: 50vh;
    /* 縦並び時は下端を斜めにクリップ */
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }
  .fv-detail-img::after {
    display: none;
  }
  .fv-detail-inner {
    position: relative;
    padding: 2.5rem 2rem 3rem 2rem;
    flex: 1;
  }
  .fv-detail-scroll {
    display: none;
  }
}

/* モバイル */
@media (max-width: 575px) {
  .fv-detail {
    min-height: auto;
  }
  .fv-detail-img {
    height: 42vh;
    min-height: 280px;
  }
  .fv-detail-inner {
    padding: 2rem 1.5rem 2.5rem 1.5rem;
  }
  .fv-detail-title {
    font-size: 1.7rem;
    line-height: 1.5;
  }
  .fv-detail-eyebrow {
    font-size: 1rem;
  }
  .fv-detail-subtitle {
    font-size: 0.95rem;
  }
  .fv-detail-meta {
    font-size: 0.88rem;
    gap: 0.5rem 0.6rem;
  }
  .fv-detail-meta span {
    padding: 0.3rem 0.8rem;
  }
  .btn-fv-detail {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ----------------------------------------------------------
   D3. Recruit リード文（DETAIL-3）
   シンプルな本文ブロック・中央寄せ
   ---------------------------------------------------------- */
.detail-recruit-lead {
  max-width: 820px;
  margin: 0 auto;
}
.detail-recruit-lead p {
  font-size: 1.125rem;
  line-height: 2.1;
  margin-bottom: 1.5rem;
  color: var(--hk-text-body);
}
.detail-recruit-lead p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   D5. Our Workplace（勤務条件・職場環境）— 詳細ページ版
   2グループ（勤務に関すること・職場環境に関すること）に分けてカード3カラム
   ---------------------------------------------------------- */
.workplace-detail-group {
  margin-bottom: 3.5rem;
}
.workplace-detail-group:last-child {
  margin-bottom: 0;
}
.workplace-detail-group-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hk-primary-text);
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  position: relative;
}
.workplace-detail-group-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--hk-point);
  border-radius: 2px;
}

.workplace-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .workplace-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .workplace-detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.workplace-detail-card {
  background: #FFFFFF;
  border: 1px solid var(--hk-sage-soft);
  border-radius: 0.85rem;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--hk-shadow-sm);
  transition: all 0.25s ease;
}
.workplace-detail-card:hover {
  box-shadow: var(--hk-shadow-md);
  transform: translateY(-3px);
}
.workplace-detail-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hk-primary-text);
  margin-bottom: 0.85rem;
}
.workplace-detail-card-desc {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--hk-text-body);
  margin: 0;
}

/* 詳細条件の注記ボックス */
.workplace-notes {
  margin-top: 3rem;
  background: #F2F5F7;
  padding: 1.5rem 1.75rem;
  border-radius: 0.5rem;
}
.workplace-notes-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hk-primary-text);
  margin-bottom: 1rem;
}
.workplace-notes dl {
  margin: 0;
}
.workplace-notes dt {
  font-weight: 700;
  color: var(--hk-primary-text);
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}
.workplace-notes dd {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--hk-text-body);
  margin: 0 0 1.25rem 0;
}
.workplace-notes dd:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   D6. Job Details（仕事内容3分割）★最重要
   左に大きい番号（葉黄緑）・右に本文の2カラム構造
   ---------------------------------------------------------- */
.job-details-list {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.job-details-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--hk-sage-soft);
  border-radius: 1rem;
  padding: 2.25rem 1.75rem;
  box-shadow: var(--hk-shadow-sm);
  position: relative;
}

@media (min-width: 768px) {
  .job-details-item {
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 2.5rem 2.5rem;
  }
}

.job-details-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.job-details-number-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--hk-point);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--hk-primary-dark);
  line-height: 1;
  box-shadow: 0 4px 14px rgba(200, 220, 120, 0.35);
}

.job-details-body {
  min-width: 0;
}

.job-details-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hk-primary-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hk-sage);
}

.job-details-body p {
  font-size: 1.05rem;
  line-height: 2.05;
  color: var(--hk-text-body);
  margin-bottom: 1.25rem;
}
.job-details-body p:last-child {
  margin-bottom: 0;
}

/* 階層構造（必須要件 / 歓迎要件 / 求められる姿勢 等） */
.job-details-subsection {
  background: var(--hk-sage-soft);
  border-radius: 0.6rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.job-details-subsection:last-child {
  margin-bottom: 0;
}
.job-details-subsection-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hk-primary-dark);
  margin-bottom: 0.85rem;
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: #FFFFFF;
  border: 1px solid var(--hk-sage);
  border-radius: 999px;
}
.job-details-subsection ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.job-details-subsection ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--hk-text-body);
  margin-bottom: 0.4rem;
}
.job-details-subsection ul li::before {
  content: "●";
  color: var(--hk-point-dark);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  line-height: 2.5;
}
.job-details-subsection ul li:last-child {
  margin-bottom: 0;
}

/* ハード/ソフトスキル用の小見出し */
.job-skills-cat {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hk-primary-dark);
  margin: 1.5rem 0 0.75rem;
  padding: 0.3rem 0.85rem;
  background: var(--hk-sage-soft);
  border-radius: 999px;
  display: inline-block;
}
.job-skills-cat:first-child {
  margin-top: 0;
}

/* ----------------------------------------------------------
   D7. Job Openings（求人票テーブル × 2）
   dl/dt/dd 形式の2カラム構造・常勤と非常勤を縦並び
   ---------------------------------------------------------- */
.openings-detail-wrap {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.openings-table-card {
  background: #FFFFFF;
  border: 1px solid var(--hk-sage-soft);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--hk-shadow-sm);
}

.openings-table-header {
  background: linear-gradient(135deg, #326464 0%, #3C7878 100%);
  color: #FFFFFF;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.openings-table-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--hk-point);
  color: var(--hk-primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.openings-table-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #FFFFFF;
}

.openings-table {
  margin: 0;
  width: 100%;
}
.openings-table dl {
  margin: 0;
  padding: 0;
}
.openings-table-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--hk-sage-soft);
}
.openings-table-row:last-child {
  border-bottom: none;
}
@media (min-width: 768px) {
  .openings-table-row {
    grid-template-columns: 200px 1fr;
  }
}
.openings-table-row dt {
  background: var(--hk-sage-soft);
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  color: var(--hk-primary-text);
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.openings-table-row dd {
  padding: 1.1rem 1.75rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--hk-text-body);
}

.openings-note {
  padding: 1rem 2rem 1.5rem;
  font-size: 0.92rem;
  color: var(--hk-text-mute);
  background: var(--hk-bg-cream);
  border-top: 1px solid var(--hk-sage-soft);
}
.openings-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
}

/* 応募CTA（DETAIL-7末尾） */
.openings-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.btn-openings-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-openings-primary {
  background: #F1FBE3;
  color: var(--hk-primary);
  border: 1.5px solid var(--hk-primary);
}
.btn-openings-primary:hover {
  background: var(--hk-sage);
  color: var(--hk-primary);
  border-color: var(--hk-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(50, 100, 100, 0.18);
}
.btn-openings-outline {
  background: #FFFFFF;
  color: var(--hk-primary);
  border: 1.5px solid var(--hk-primary);
}
.btn-openings-outline:hover {
  background: var(--hk-sage-soft);
  color: var(--hk-primary-dark);
  border-color: var(--hk-primary-dark);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   モバイル微調整
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  .fv-detail-title {
    font-size: 1.85rem;
  }
  .fv-detail-eyebrow {
    font-size: 1.05rem;
  }
  .fv-detail-subtitle {
    font-size: 1rem;
  }
  .fv-detail-meta {
    font-size: 0.9rem;
  }
  .btn-fv-detail {
    width: 100%;
    justify-content: center;
  }
  .btn-openings-cta {
    width: 100%;
    justify-content: center;
  }
  .job-details-number-inner {
    width: 80px;
    height: 80px;
    font-size: 2.25rem;
  }
  .job-details-title {
    font-size: 1.25rem;
  }
  .openings-table-header {
    padding: 1.25rem 1.5rem;
  }
  .openings-table-title {
    font-size: 1.2rem;
  }
  .openings-table-row dt {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }
  .openings-table-row dd {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }
}
