/* applicant/curriculum モダン化用 CSS (2026-06) */

:root {
  --cur-text: #1f2937;
  --cur-muted: #6b7280;
  --cur-border: #e5e7eb;
  --cur-accent: #1e3a8a;
  --cur-accent-soft: #dbeafe;
  --cur-card-bg: #f9fafb;
  --cur-card-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
}

/* ===== 全体トーン (curriculum 配下のみ) ===== */
.cur-modern {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  color: var(--cur-text);
  line-height: 1.85;
}

.cur-modern h3.cur-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--cur-accent);
  margin: 36px 0 10px;
  padding: 6px 0 6px 16px;
  border-left: 5px solid var(--cur-accent);
  background: linear-gradient(to right, var(--cur-accent-soft), transparent 70%);
}

.cur-modern .cur-lead {
  font-size: 15px;
  color: var(--cur-muted);
  margin: 0 0 18px;
}

/* ===== ローテーション 例の表 ===== */
.cur-rotation-wrapper {
  background: #fff;
  border: 1px solid var(--cur-border);
  border-radius: 8px;
  padding: 18px 20px 22px;
  box-shadow: var(--cur-card-shadow);
  margin: 16px 0 28px;
}

.cur-rotation-group {
  margin: 12px 0 22px;
}

.cur-rotation-group h4 {
  font-size: 15px;
  color: var(--cur-accent);
  margin: 0 0 8px;
  padding: 4px 12px;
  background: var(--cur-accent-soft);
  border-radius: 4px;
  display: inline-block;
}

.cur-rotation-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cur-rotation-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 880px;
  font-size: 13px;
  background: #fff;
}

.cur-rotation-table th,
.cur-rotation-table td {
  border: 1px solid var(--cur-border);
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.cur-rotation-table thead th {
  background: #f3f4f6;
  font-weight: 700;
  color: var(--cur-text);
  font-size: 12px;
}

.cur-rotation-table tbody th {
  background: #fafafa;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 12px;
  color: var(--cur-text);
  position: sticky;
  left: 0;
  z-index: 1;
}

/* ローテ先別のカラーチップ */
.cur-rotation-table td.cell-byoto { background: #dbeafe; color: #1e3a8a; }
.cur-rotation-table td.cell-ccu { background: #fee2e2; color: #991b1b; }
.cur-rotation-table td.cell-cathe { background: #d1fae5; color: #065f46; }
.cur-rotation-table td.cell-ep { background: #fef3c7; color: #92400e; }
.cur-rotation-table td.cell-echo { background: #e9d5ff; color: #6b21a8; }
.cur-rotation-table td.cell-reha { background: #fae8ff; color: #86198f; }
.cur-rotation-table td.cell-houshasen { background: #cffafe; color: #155e75; }
.cur-rotation-table td.cell-other { background: #f3f4f6; color: #4b5563; font-size: 11px; }
.cur-rotation-table td.cell-out { background: #fef9c3; color: #713f12; font-size: 11px; }
.cur-rotation-table td.cell-free { background: #ecfdf5; color: #047857; font-size: 11px; font-style: italic; }
.cur-rotation-table td.cell-empty { background: #fafafa; color: #d1d5db; }

.cur-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
}
.cur-legend .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cur-legend .chip {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

/* ===== 部署アンカーリスト (モダン化) ===== */
.cur-anchor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}
.cur-anchor-list li a {
  display: block;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--cur-border);
  border-radius: 6px;
  color: var(--cur-accent) !important;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 14px;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: var(--cur-card-shadow);
}
.cur-anchor-list li a:hover {
  background: var(--cur-accent-soft);
  border-color: var(--cur-accent);
  transform: translateY(-2px);
}

/* ===== 各部署セクション (カード化) ===== */
.cur-dept {
  background: #fff;
  border: 1px solid var(--cur-border);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 20px 0;
  box-shadow: var(--cur-card-shadow);
}

.cur-dept h4 {
  font-size: 19px;
  color: var(--cur-accent);
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--cur-accent-soft);
}

.cur-dept p.cur-desc {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--cur-text);
  margin: 0 0 16px;
}

.cur-dept .cur-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0 12px;
}

/* 業績リスト */
.cur-dept ol.list2,
.cur-dept ol.cur-pubs {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--cur-text);
  padding-left: 22px;
  margin: 6px 0 16px;
}
.cur-dept ol.list2 li,
.cur-dept ol.cur-pubs li {
  margin-bottom: 10px;
}

/* index ページ向け: 説明会の埋め込み画像 */
.cur-dept img.cur-embed {
  display: block;
  margin: 8px auto;
  max-width: 100%;
  height: auto;
}

/* メタ情報 (申込・連絡先など) のリスト */
.cur-dept .cur-meta-list {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.cur-dept .cur-meta-list > li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--cur-border);
  font-size: 14px;
}
.cur-dept .cur-meta-list > li:last-child { border-bottom: 0; }
.cur-dept .cur-meta-list .label {
  color: var(--cur-muted);
  font-weight: 600;
}
@media (max-width: 720px) {
  .cur-dept .cur-meta-list > li { grid-template-columns: 1fr; gap: 0; }
}

.cur-dept .cur-photo {
  background: var(--cur-card-bg);
  border-radius: 6px;
  overflow: hidden;
}

.cur-dept .cur-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.cur-dept .cur-photo .caption {
  font-size: 12.5px;
  color: var(--cur-muted);
  padding: 8px 12px 12px;
  margin: 0;
  line-height: 1.6;
}

.cur-dept .cur-back {
  margin-top: 14px;
  text-align: right;
  font-size: 13px;
}
.cur-dept .cur-back a {
  color: var(--cur-accent) !important;
  text-decoration: none !important;
  border-bottom: 1px dashed var(--cur-accent);
}
.cur-dept .cur-back a:hover {
  border-bottom-style: solid;
}

/* ===== SNS 案内 (枠なし、医局説明会カードとは独立) ===== */
.cur-social {
  margin: 28px 0 12px;
  padding: 10px 4px 4px;
  text-align: center;
}
.cur-social .cur-social-label {
  font-size: 13px;
  color: var(--cur-muted);
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}
.cur-social .cur-social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cur-social .cur-social-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--cur-border);
  border-radius: 999px;
  background: #fff;
  color: var(--cur-text) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cur-social .cur-social-list a:hover {
  border-color: var(--cur-accent);
  transform: translateY(-2px);
  box-shadow: var(--cur-card-shadow);
}
.cur-social .cur-social-list .icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.cur-social .cur-social-list .icon.x {
  background: #000;
}
.cur-social .cur-social-list .icon.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.cur-social .cur-social-list .handle {
  color: var(--cur-muted);
  font-weight: 400;
  font-size: 13px;
}

/* ===== スマホ調整 ===== */
@media (max-width: 720px) {
  .cur-modern h3.cur-section-title { font-size: 18px; }
  .cur-rotation-wrapper { padding: 14px 12px 18px; }
  .cur-dept { padding: 18px 18px; }
  .cur-dept h4 { font-size: 17px; }
  .cur-dept .cur-photos { grid-template-columns: 1fr; }
}
