@charset "UTF-8";

/* ============================================================
 * 代理人スケジュール（team-calendar.html を移植）
 * ============================================================ */
:root {
  --paper: #FBFAF7;
  --ink: #171A1F;
  --panel: #14161B;
  --line: #C4C4C4;
  --line-strong: #8E8E8E;
  --muted: #8C8E94;
  --muted-dk: #9DA0AA;
  --coral: #E8463C;
  --coral-ink: #C5372E;
  --coral-soft: rgba(232, 70, 60, .12);
  --slate: #3E4858;
  --teal: #4C7A70;
  --cell: 28px;
  --r1: 28px;
  --r2: 30px;
  /* SPで開く詳細パネルを画面幅に収めるための左右ガター
     = section(28) + calender_wrap(12) + .cal枠(2) の左右合計 */
  --cal-sp-gutter: 84px;
}

.calender_wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px 56px;
  background-color: var(--white);
  border-radius: 0 0 16px 16px;
}

.cal_tabs {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
}

.cal_tab {
  flex: 1;
  border: none;
  padding: 16px 20px;
  background-color: #E0E0E0;
  color: #777;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px 10px 0 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cal_tab:not(.is-active):hover { background-color: #D4D4D4; }

.cal_tab.is-active {
  background-color: var(--main);
  color: var(--white);
}

.cal_panel[hidden] { display: none; }

.reserve_placeholder {
  text-align: center;
  padding: 80px 20px;
  color: #888;
  font-weight: 600;
}

/* ===== 相談予約カレンダー ===== */
.rsv_empty,
.rsv_loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.rsv_controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.rsv_nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rsv_prev,
.rsv_next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background-color: var(--black);
  color: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  border-radius: 9999px;
}

.rsv_prev::before { content: "\276E"; }
.rsv_next::before { content: "\276F"; }

.rsv_prev:hover:not(:disabled),
.rsv_next:hover:not(:disabled) { background-color: var(--main); }

.rsv_prev:disabled,
.rsv_next:disabled { opacity: 0.3; cursor: default; }

.rsv_label {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 9em;
  text-align: center;
}

.rsv_modes {
  display: flex;
  border: 2px solid var(--black);
  border-radius: 8px;
  overflow: hidden;
}

.rsv_mode {
  border: none;
  background: #fff;
  padding: 7px 18px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  font-family: inherit;
}

.rsv_mode + .rsv_mode { border-left: 2px solid var(--black); }

.rsv_mode.is-active {
  background: var(--black);
  color: var(--white);
}

.rsv_legend {
  margin-left: auto;
  font-size: 0.82rem;
  color: #666;
}

.rsv_legend .lg { font-weight: 700; margin: 0 2px 0 8px; }
.rsv_legend .lg-free { color: #2e9e57; }
.rsv_legend .lg-part { color: #d98a00; }
.rsv_legend .lg-full { color: #b0b0b0; }

.rsv_grid {
  display: grid;
  grid-template-columns: 132px repeat(var(--rsv-cols), minmax(0, 1fr));
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.rsv_corner,
.rsv_dh,
.rsv_name,
.rsv_cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.rsv_corner {
  background: var(--ink);
  color: #F3F1EA;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right-color: #2a2d33;
  border-bottom-color: #2a2d33;
}

.rsv_dh {
  background: var(--ink);
  color: #F3F1EA;
  text-align: center;
  padding: 6px 0;
  line-height: 1.1;
  border-right-color: #2a2d33;
  border-bottom-color: #2a2d33;
}

.rsv_dh .dnum { display: block; font-weight: 700; font-size: 0.9rem; }
.rsv_dh .dwd { display: block; font-size: 0.65rem; color: #b6b8be; }
.rsv_dh.sat,
.rsv_dh.sat .dwd { color: #8fb6ff; }
.rsv_dh.sun,
.rsv_dh.sun .dwd { color: #ff9aab; }

.rsv_name {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rsv_cell {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsv_cell .mk { font-size: 0.95rem; font-weight: 700; line-height: 1; }

.rsv_cell.is-free { color: #2e9e57; cursor: pointer; }
.rsv_cell.is-partial { color: #d98a00; cursor: pointer; }
.rsv_cell.is-free:hover,
.rsv_cell.is-partial:hover { background: #fff0f3; }
.rsv_cell.is-free:focus-visible,
.rsv_cell.is-partial:focus-visible { outline: 2px solid var(--main); outline-offset: -2px; }

.rsv_cell.is-full { background: #ededed; color: #b8b8b8; }
.rsv_cell.is-past { background: #f6f6f6; color: #d6d6d6; }

.rsv_status {
  margin-top: 16px;
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--main);
  font-weight: 600;
}

.rsv_hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rsv_drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.rsv_drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rsv_drawer.is-open .rsv_drawer__overlay { opacity: 1; }

.rsv_drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  padding: 28px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.rsv_drawer.is-open .rsv_drawer__panel { transform: translateX(0); }

.rsv_drawer__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.rsv_drawer__close:hover { color: var(--main); }

.rsv_drawer__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.rsv_drawer__meta {
  font-size: 0.92rem;
  color: #555;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rsv_drawer__meta strong { color: var(--main); font-size: 1rem; }

.rsv_field {
  display: block;
  margin-bottom: 18px;
}

.rsv_field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
}

.rsv_field input[type="text"],
.rsv_field input[type="email"],
.rsv_field input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.rsv_field input:focus {
  outline: none;
  border-color: var(--main);
}

/* ===== パスワード可視化トグル（目アイコン） ===== */
.rsv_pw {
  position: relative;
  display: block;
}
.rsv_pw input {
  width: 100%;
  box-sizing: border-box;
}
.rsv_field--pw .rsv_pw input,
.lt-modal .rsv_pw input {
  padding-right: 44px;
}
.lt-modal .rsv_pw {
  margin-top: 18px;
}
.rsv_pw_toggle {
  position: absolute;
  top: 0;
  right: 6px;
  height: 100%;
  width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #8a8a8a;
  cursor: pointer;
  padding: 0;
}
.rsv_pw_toggle:hover { color: var(--ink); }
.rsv_pw_toggle:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; border-radius: 6px; }
.rsv_pw_toggle svg { display: block; }
/* 斜線＝伏字（隠している状態）。表示中は斜線なしの目 */
.rsv_pw_slash { display: block; }
.rsv_pw_toggle.is-visible .rsv_pw_slash { display: none; }

.rsv_slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rsv_slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rsv_slot:hover { border-color: var(--main); }

.rsv_slot input { accent-color: var(--main); }

.rsv_slot.is-taken {
  background: #f1f1f1;
  color: #aaa;
  cursor: not-allowed;
  border-color: #e5e5e5;
}

.rsv_slot.is-taken:hover { border-color: #e5e5e5; }

.rsv_slot em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: #b0b0b0;
}

.rsv_form__submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: var(--main);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.rsv_form__submit:hover { opacity: 0.92; }
.rsv_form__submit:disabled { opacity: 0.5; cursor: default; }

.rsv_form__msg {
  min-height: 1.3em;
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.rsv_form__msg.is-err { color: #d0455e; }
.rsv_form__msg.is-ok { color: #2e9e57; }

.calender_intro {
  text-align: center;
  margin-bottom: 60px;
  line-height: 2;
  font-size: 1.5rem;
  font-weight: 700;
}

.calender_note {
  font-size: 1rem;
  margin-top: 20px;
  font-weight: 600;
}

.legend {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}

.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 18px; height: 8px; border-radius: 2px; display: inline-block; }

.cal {
  position: relative;
  overflow: auto;
  max-height: 80vh;
  scrollbar-gutter: stable;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.grid { width: max-content; }
.row { display: grid; }

.head {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-template-rows: var(--r1) var(--r2);
  background: var(--paper);
}

.corner {
  grid-area: 1 / 1 / 3 / 2;
  position: sticky;
  left: 0;
  z-index: 30;
  background: var(--paper);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: flex-end;
  padding: 0 14px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--black);
}

.y-cell {
  grid-row: 1;
  background: var(--ink);
  color: #F3F1EA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  border-right: 1px solid #2a2d33;
  border-bottom: 1px solid #2a2d33;
}

.m-cell {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #4a4d55;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.m-cell.ystart { border-left: 2px solid var(--line-strong); }
.m-cell.now { color: var(--coral); font-weight: 800; background: var(--coral-soft); }

.mrow { position: relative; }

.person {
  position: sticky;
  left: 0;
  z-index: 15;
  grid-column: 1;
  background: #fff;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 15px;
  cursor: pointer;
  transition: background .15s ease;
  outline: none;
}

.person::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pc, var(--coral));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.person:hover { background: #F6F6F6; background: color-mix(in srgb, var(--pc, var(--coral)) 8%, #fff); }
.person:hover::before,
.person.is-open::before { transform: scaleY(1); }
.person.is-open { background: #F1F1F1; background: color-mix(in srgb, var(--pc, var(--coral)) 14%, #fff); }
.person:focus-visible { box-shadow: inset 0 0 0 2px var(--pc, var(--coral)); }

.avatar {
  height: 80px;
  border-radius: 50%;
  flex: 0 0 54px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.p-text { min-width: 0; flex: 1; }

.p-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pc, var(--ink));
  display: flex;
  align-items: center;
  gap: 5px;
}

.p-name .chev {
  color: var(--pc, var(--coral));
  font-size: 20px;
  transition: transform .2s ease;
  display: inline-block;
  line-height: 1;
}

.person.is-open .p-name .chev { transform: rotate(90deg); }

.p-role {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }

.p-tags .t {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #F0EEE7;
  color: #5b5e66;
  line-height: 1.5;
  white-space: nowrap;
}

.p-tags .t.years { background: var(--coral-soft); background: color-mix(in srgb, var(--pc, var(--coral)) 14%, #fff); color: var(--pc, var(--coral-ink)); font-weight: 700; }
.p-tags .t.more { background: #E7E5DE; color: #6c6f77; }

.tcell {
  grid-row: 1;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tcell.ystart { border-left: 2px solid var(--line-strong); }
.tcell.now { background: var(--coral-soft); }

.bars { position: absolute; top: 0; bottom: 1px; z-index: 5; pointer-events: none; }

.bar {
  position: absolute;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar.key { background: var(--coral); }
.bar.slate { background: var(--slate); }
.bar.teal { background: var(--teal); }

.drow {
  overflow: hidden;
  max-height: 0;
  transition: max-height .36s cubic-bezier(.4, 0, .2, 1);
}

.drow.open { max-height: 1400px; }

.detail {
  position: sticky;
  left: 0;
  z-index: 16;
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.detail-inner { padding: 22px 26px 26px; }
.detail-head { display: flex; align-items: flex-start; gap: 18px; }

.d-photo {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  flex: 0 0 175px;
  overflow: hidden;
  background: radial-gradient(circle, #fff 0%, var(--pc, var(--coral)) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-photo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  margin-top: auto;
}

.d-id { flex: 1; min-width: 0; }
.d-catch { color: var(--pc, var(--coral)); font-size: 1rem; font-weight: 700; line-height: 1; }
.d-name { font-size: 2rem; font-weight: 700; color: var(--ink); }
.d-meta { margin-top: 5px; font-size: 0.85rem; color: #666; }
.d-certs { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.d-certs .c { font-size: 0.7rem; padding: 2px 9px; border-radius: 99px; border: 1px solid #D0D0D0; color: #666; }

.d-resume {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.d-resume-btn {
  background: var(--pc, var(--coral));
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.d-resume-btn:hover { opacity: .9; }
.d-resume-btn:disabled { opacity: .5; cursor: default; }

.d-resume-msg { font-size: 12px; }
.d-resume-msg.is-ok { color: #1a7f37; }
.d-resume-msg.is-err { color: #c00; font-weight: 700; }

.lt-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lt-modal[hidden] { display: none; }

.lt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.lt-modal__box {
  position: relative;
  width: min(92vw, 380px);
  padding: 30px 26px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  text-align: center;
}

.lt-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  font-family: inherit;
}

.lt-modal__title { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.lt-modal__name { margin-top: 4px; font-size: .85rem; color: #666; }
.lt-modal__lead { margin-top: 6px; font-size: .82rem; color: #666; line-height: 1.5; }

.lt-modal__pw {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.lt-modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lt-modal__go {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.lt-modal__go:hover { opacity: .9; }
.lt-modal__go:disabled { opacity: .5; cursor: default; }

.lt-modal__msg { margin-top: 12px; font-size: 12.5px; min-height: 1em; }
.lt-modal__msg.is-ok { color: #1a7f37; }
.lt-modal__msg.is-err { color: #c00; font-weight: 700; }

.d-close {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
}

.d-close:hover { border-color: var(--pc, var(--coral)); color: var(--pc, var(--coral)); }

.detail-body { display: flex; gap: 34px; margin-top: 20px; flex-wrap: wrap; }
.d-profile { flex: 1; min-width: 260px; }

.detail-body h4 {
  margin: 0 0 10px;
  font-weight: 600;
  border-bottom: 1px solid #E0E0E0;
  padding-bottom: 7px;
}

.d-profile p { margin: 0; line-height: 1.95; font-size: 1.125rem; font-weight: 600; }
.d-radar { flex: 0 0 auto; }
.radar-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.radar { width: 260px; height: 260px; }
.ring { fill: none; stroke: rgba(0, 0, 0, .12); stroke-width: 1; }
.axis { stroke: rgba(0, 0, 0, .15); stroke-width: 1; }
.ax-label { font-size: 10.5px; font-weight: 600; }
.area { fill: rgba(232, 70, 60, .28); fill: color-mix(in srgb, var(--pc, var(--coral)) 28%, transparent); stroke: var(--pc, var(--coral)); stroke-width: 2; stroke-linejoin: round; }
.dot { fill: var(--pc, var(--coral)); stroke: #fff; stroke-width: 1; }
.vals { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600;}

.vals .v {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-width: 122px;
  padding: 3px 0;
  border-bottom: 1px dashed #E0E0E0;
}

.vals .v b { color: var(--pc, var(--coral)); font-size: 1rem; font-weight: 700; }

@media (max-width: 560px) {
  .detail-body { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .cal *,
  .drow { transition: none !important; animation: none !important; }
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .calender_wrap { padding: 40px 12px 40px; }
  .cal_tab { padding: 13px 8px; font-size: 0.9rem; }

  .rsv_controls { gap: 10px; }
  .rsv_legend { margin-left: 0; width: 100%; }

  /* ===== 代理人スケジュール：代理人情報を細くしてカレンダーを広く ===== */
  .person { gap: 7px; padding: 9px 6px 9px 10px; }
  .avatar { flex: 0 0 38px; height: 38px; }
  .p-name { font-size: 0.92rem; }
  .p-name .chev { font-size: 16px; }
  /* 役職・タグはタップで開く詳細に表示されるので一覧では省略 */
  .p-role, .p-tags { display: none; }

  .rsv_body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rsv_grid {
    grid-template-columns: 88px repeat(var(--rsv-cols), 40px);
    width: max-content;
    overflow: visible; /* 代理人列の sticky を効かせる */
  }

  /* 相談予約：代理人列（左端）を横スクロールでも固定 */
  .rsv_corner,
  .rsv_name {
    position: sticky;
    left: 0;
    z-index: 5;
  }
  .rsv_name { background: #fff; }
  .rsv_corner { z-index: 6; }

  .rsv_drawer__panel { width: 100%; max-width: 100%; }

  .calender_intro p { font-size: 1rem; }
  .calender_note { font-size: 0.85rem; }

  /* ====== 代理人クリックで開く詳細パネル ======
     .detail は max-content 幅の .grid 内にあるため、放置すると
     中身がタイムライン幅いっぱいに広がって崩れる。
     中身を「画面幅」に収め、縦積みのカード型に整える。 */
  .detail-inner {
    /* section28 + wrap12 + cal枠2 ＝片側42px、両側84px を差し引いて画面幅に収める */
    width: calc(100vw - var(--cal-sp-gutter));
    padding: 18px 16px 22px;
  }

  /* ヘッダー：写真を上・情報を下に縦積み、閉じるは右上固定 */
  .detail-head {
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .d-photo {
    width: 116px;
    height: 116px;
    flex: 0 0 116px;
  }
  .d-id {
    width: 100%;
    text-align: center;
  }
  .d-catch { font-size: 0.9rem; }
  .d-name { font-size: 1.5rem; }
  .d-certs { justify-content: center; }
  .d-resume { justify-content: center; }
  .d-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.8rem;
  }

  /* 本文：プロフィール→能力値を縦積み、min-width を解除して画面内に収める */
  .detail-body {
    flex-direction: column;
    gap: 20px;
    margin-top: 18px;
  }
  .d-profile { min-width: 0; }
  .d-profile p { font-size: 1rem; line-height: 1.85; }
  .d-radar { width: 100%; }
  .radar-wrap {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .radar { width: 220px; height: 220px; }
  .vals { width: 100%; }
  .vals .v { min-width: 0; }
}
