/* jobs.html #week：人物タブと週間カレンダー。 */
.wk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wk-ic { width: 16px; height: 16px; flex: none; display: block; }
.wk-note { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.wt [hidden] { display: none !important; }

.wt {
  --wt-line: #DFE4E7; --wt-grid: #E4E8EB;
  --wt-axis-width: 65px; --wt-dayhead-height: 48px; --wt-hour: 62px;
  padding: 56px 0 96px; background: var(--white); scroll-margin-top: -16px;
}
.wt .wrap { max-width: 1440px; padding-inline: clamp(20px, 5.56vw, 80px); text-align: center; }
.wt-app { position: relative; }

/* 訪問の流れ・事例に使う既存のカテゴリ色 */
:root {
  --cat-visit: #0B1F33;
  --cat-meeting: #3E78A6;
  --cat-prep: #D3A12A;
  --cat-travel: #2B9477;
  --cat-work: #7A6652;
  --cat-meal: #98A4B0;
  --cat-personal: #C0522B;
}

/* 週間予定専用の8色。帯、スマホの色印、凡例で共有する。 */
.wt-tone--visit { --wt-tone: #D8B46A; }
.wt-tone--visit-support { --wt-tone: #EFE2BD; }
.wt-tone--internal { --wt-tone: #0B1F33; }
.wt-tone--solo { --wt-tone: #A9AFB5; }
.wt-tone--break { --wt-tone: #E3E6E9; }
.wt-tone--personal { --wt-tone: #F2D1D3; }
.wt-tone--teaching { --wt-tone: #24523D; }
.wt-tone--teaching-support { --wt-tone: #C9E0D1; }

/* ---------- 人物タブ：セグメント。選択中は白いカードが浮き、Navyの縁と顔写真のNavy縁 */
.wt-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 18px; padding: 4px; border-radius: 16px; background: #EDF0F4; }
.wt-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 72px; padding: 8px 18px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: background .15s, box-shadow .15s; }
.wt-tab:hover { background: rgba(255, 255, 255, .6); }
.wt-tab[aria-selected="true"] { background: #fff; box-shadow: 0 0 0 2px var(--navy), 0 3px 10px rgba(11, 31, 51, .14); }
.wt-tab__face { flex: none; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #F4F6F8; }
.wt-tab[aria-selected="true"] .wt-tab__face { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.wt-tab__text { min-width: 0; display: grid; gap: 1px; }
.wt-tab__name { font-size: 19px; font-weight: 700; line-height: 1.4; }
.wt-tab__sub { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--muted); overflow-wrap: break-word; }
.wt-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- 2人のパネルを同じ場所に重ね、3行（声・カレンダー・用語）をsubgridでそろえる */
.wk-js .wt-stage { display: grid; grid-template-rows: repeat(3, auto); margin-top: 4px; }
.wk-js .wt-panel { grid-area: 1 / 1 / span 3 / 2; min-width: 0; visibility: hidden; }
.wk-js .wt-panel.is-active { visibility: visible; }
@supports (grid-template-rows: subgrid) { .wk-js .wt-panel { display: grid; grid-template-rows: subgrid; } }
html:not(.wk-js) .wt-tabs { display: none; }
html:not(.wk-js) .wt-panel { margin-top: 36px; }

/* ---------- プロフィール → 1週間の紹介 */
.wt-voice { min-width: 0; margin-top: 40px; }
.wt-profile { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); align-items: center; gap: 64px; max-width: 960px; margin: 0 auto 48px; }
.wt-profile__photo { display: block; width: 100%; max-width: 300px; height: 340px; margin-inline: auto; object-fit: contain; object-position: center bottom; }
.wt-profile__body { min-width: 0; text-align: left; }
.wt-profile--reverse { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
.wt-profile--reverse .wt-profile__photo { grid-column: 2; grid-row: 1; }
.wt-profile--reverse .wt-profile__body { grid-column: 1; grid-row: 1; }
.wt-profile__identity { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.wt-profile__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.wt-profile__link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wt-profile__role { margin: 0 0 10px; color: var(--body); font-size: 16px; font-weight: 700; line-height: 1.6; }
.wt-profile__name { margin: 0; color: var(--ink); font-size: 28px; font-weight: var(--heading-weight); line-height: 1.5; letter-spacing: .06em; }
.wt-profile__facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 12px 0 0; color: var(--body); font-size: 14px; line-height: 1.8; }
.wt-profile__facts span { white-space: nowrap; }
.wt-profile__summary { margin: 22px 0 0; color: var(--body); font-size: 16px; font-weight: 500; line-height: 2; text-wrap: pretty; }
.wt-headline { margin: 0; color: var(--ink); font-size: 30px; font-weight: var(--heading-weight); line-height: 1.4; letter-spacing: .01em; word-break: auto-phrase; }
.wt-headline__text { display: inline-block; max-width: 100%; text-wrap: balance; vertical-align: middle; }
.wt-headline__text .u { white-space: nowrap; }
.wt-comment { margin: 8px auto 0; max-width: 68em; color: var(--body); font-size: 16px; font-weight: 500; line-height: 1.9; word-break: auto-phrase; }

/* ---------- 曜日別の予定。JS無効時もすべての時刻と予定名を表示する。 */
.wt-calwrap { min-width: 0; margin-top: 40px; scroll-margin-top: var(--gs-header-height, 76px); }
.wt-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 17px; margin: 16px 0 0; padding: 0; list-style: none; }
.wt-legend li { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.4; }
.wt-legend li::before, .wt-block::before { content: ""; display: block; background: var(--wt-tone); }
.wt-legend li::before { width: 13px; height: 10px; flex: none; border-radius: 2px; }
.wt-axis { display: none; }
.wt-days, .wt-track { margin: 0; padding: 0; list-style: none; }
.wt-days { border-bottom: 1px solid var(--wt-line); }
.wt-day { min-width: 0; padding-block: 14px; border-top: 1px solid var(--wt-line); }
.wt-dayhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink); }
.wt-dayhead__jp { font-size: 25px; font-weight: 700; line-height: 1.2; }
.wt-dayhead .wt-flag { order: -1; }
.wt-dayhead .wt-nights__stay { order: 1; }
.wt-flag, .wt-nights__stay { display: inline-block; border-radius: 3px; padding: 2px 6px; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.wt-flag--visit { background: #D8B46A; color: var(--navy); }
.wt-flag--teaching { background: #24523D; color: #fff; }
.wt-day__body { position: relative; min-width: 0; }
.wt-block { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; align-items: center; }
.wt-block::before { height: 9px; border-radius: 2px; }
.wt-block__body { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; min-height: 31px; color: var(--ink); text-align: left; }
.wt-block__title { display: inline-flex; align-items: center; min-width: 0; }
.wt-block__label { font-size: 14px; font-weight: 700; line-height: 1.35; word-break: auto-phrase; }
.wt-block__time { color: #3D4E61; font-size: 12px; line-height: 1.35; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wt-nights__stay { border: 1px solid #BFC7CE; padding: 1px 5px; background: #fff; color: var(--navy); font-size: 12px; }

.wt-below { margin-top: 24px; }
.wt .wk-note { margin-top: 0; font-size: 13px; line-height: 1.85; }

/* ---------- 8:00–20:00の縦軸。広いときは月〜金を並べる。 */
.wt-calendar { container: week-calendar / inline-size; }
.wt-day-picker {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
  min-inline-size: 0; margin: 0 0 12px; padding: 0; border: 0;
}
.wt-day-picker legend { padding: 0; margin-bottom: 6px; color: var(--body); font-size: 12px; font-weight: 700; text-align: left; }
.wt-day-picker label { position: relative; cursor: pointer; }
.wt-day-picker input { position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); }
.wt-day-picker__label {
  display: grid; grid-template-rows: 20px 16px; align-content: center; justify-items: center; gap: 3px;
  min-height: 54px; border: 1px solid var(--wt-line); border-radius: 5px; color: var(--ink); background: #f7f9fa;
}
.wt-day-picker__label .wt-dayhead__jp { font-size: 16px; }
.wt-day-picker__label .wt-flag { padding: 1px 4px; font-size: 10px; }
.wt-day-picker input:checked + .wt-day-picker__label { border-color: var(--navy); color: #fff; background: var(--navy); }
.wt-day-picker input:focus-visible + .wt-day-picker__label { outline: 2px solid var(--gold); outline-offset: 1px; }
.wt-cal.is-timeline {
  --wt-track-height: calc(var(--hours) * var(--wt-hour));
  display: grid; grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: var(--wt-dayhead-height) var(--wt-track-height);
}
.wt-cal.is-timeline .wt-axis {
  display: block; position: relative; grid-column: 1; grid-row: 2;
  background: #fff;
}
.wt-axis__h {
  position: absolute; right: 11px; color: #4f6072;
  font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
  top: calc(var(--t) * var(--wt-hour)); transform: translateY(-50%);
}
.wt-cal.is-timeline .wt-days {
  grid-column: 2; grid-row: 1 / span 2; display: grid; border: 0;
}
.wt-cal.is-timeline .wt-day {
  display: none; grid-template-rows: var(--wt-dayhead-height) var(--wt-track-height);
  padding: 0; border: 0;
}
.wt-cal.is-timeline .wt-day.is-current-day { display: grid; }
.wt-cal.is-timeline .wt-dayhead {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px;
  margin: 0; padding-bottom: 6px;
}
.wt-cal.is-timeline .wt-dayhead > * { grid-row: 1; }
.wt-cal.is-timeline .wt-nights__stay { grid-column: 3; justify-self: start; }
.wt-cal.is-timeline .wt-dayhead__jp { grid-column: 2; font-size: 30px; line-height: 1; }
.wt-cal.is-timeline .wt-dayhead .wt-flag { grid-column: 1; justify-self: end; }
.wt-cal.is-timeline .wt-track {
  position: relative; height: var(--wt-track-height);
  border: solid var(--wt-line); border-width: 0 1px 1px;
  background: repeating-linear-gradient(to bottom, var(--wt-line) 0 1px, transparent 1px var(--wt-hour)), #fbfcfd;
}
@container week-calendar (min-width: 960px) {
  .wt-day-picker { display: none; }
  .wt-cal.is-timeline { grid-template-columns: var(--wt-axis-width) minmax(0, 1fr); }
  .wt-cal.is-timeline .wt-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wt-cal.is-timeline .wt-day { display: grid; }
  .wt-cal.is-timeline .wt-day:not(:last-child) .wt-track { border-right: 0; }
}
.wt-cal.is-timeline .wt-block {
  position: absolute; top: calc(var(--s) * var(--wt-hour) + 1px);
  height: calc(var(--d) * var(--wt-hour) - 2px); left: 4px; right: 4px;
  display: flex; justify-content: center; padding: 3px 8px;
  background: var(--wt-tone); border-radius: 3px;
}
.wt-cal.is-timeline .wt-block::before { display: none; }
.wt-cal.is-timeline .wt-block__body {
  flex-direction: column; justify-content: center; gap: 2px; min-height: 0;
  text-align: center; white-space: nowrap;
}
.wt-cal.is-timeline .wt-block__label { line-height: 1.3; }
.wt-cal.is-timeline .wt-block__time { color: #324456; font-size: 11px; line-height: 1.3; }
.wt-cal.is-timeline :is(.wt-tone--internal, .wt-tone--teaching) :is(.wt-block__body, .wt-block__time) { color: #fff; }
.wt-cal.is-timeline .wt-block--short .wt-block__body { flex-direction: row; gap: 9px; }

@media (max-width: 1099px) {
  .wt { padding: 44px 0 72px; }
  .wt-voice, .wt-calwrap { margin-top: 32px; }
  .wt-profile { gap: 32px; }
  .wt-profile__photo { height: 300px; }
  .wk-js .wt-stage { display: block; }
  .wk-js .wt-panel:not(.is-active) { display: none; }
}
@media (max-width: 760px) {
  .wt { padding: 32px 0 64px; }
  .wt .wrap { padding-inline: 20px; }
  .wt-tabs { gap: 3px; margin-top: 14px; padding: 3px; }
  .wt-tab { flex-direction: column; min-height: 136px; gap: 8px; padding: 10px 8px; }
  .wt-tab__face { width: 44px; height: 44px; }
  .wt-tab__name { font-size: 16px; }
  .wt-tab__sub { font-size: 11.5px; line-height: 1.45; }
  .wt-voice { margin-top: 28px; }
  .wt-profile, .wt-profile--reverse { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 36px; }
  .wt-profile--reverse .wt-profile__photo, .wt-profile--reverse .wt-profile__body { grid-column: auto; grid-row: auto; }
  .wt-profile__identity { justify-content: center; gap: 4px 14px; }
  .wt-profile__photo { max-width: 224px; height: 280px; }
  .wt-profile__body { text-align: center; }
  .wt-profile__role { margin-bottom: 6px; font-size: 14px; }
  .wt-profile__name { font-size: 25px; }
  .wt-profile__facts { justify-content: center; gap: 6px 20px; margin-top: 8px; }
  .wt-profile__summary { max-width: 38em; margin: 18px auto 0; font-size: 15px; line-height: 1.9; }
  .wt-headline { font-size: 21px; line-height: 1.45; }
  .wt-comment { margin-top: 6px; font-size: 14.5px; line-height: 1.85; }
  .wt-calwrap { margin-top: 28px; }
}
@media (max-width: 380px) {
  .wt .wrap { padding-inline: 16px; }
  .wt-headline { font-size: 20px; }
  .wt-comment { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .wt-tab { transition: none; } }

.wt-overview { display: none; }
@media (max-width: 760px) {
  .wt-calendar.has-overview .wt-overview { display: grid; justify-items: center; gap: 6px; }
  .wt-calendar.has-overview:not(.is-day-detail) > :is(.wt-day-picker, .wt-cal) { display: none; }
  .wt-calendar.has-overview.is-day-detail > .wt-day-picker { margin-top: 16px; }
  .wt-overview__open {
    display: block; width: 100%; min-width: 0; padding: 8px 8px 0;
    border: 1px solid var(--wt-line); border-radius: 10px;
    background: #fff; color: var(--navy); font: inherit; cursor: zoom-in;
  }
  .wt-overview__open img { display: block; width: 100%; height: auto; }
  .wt-overview__action {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 46px; border-top: 1px solid var(--wt-line); font-size: 14px; font-weight: 700;
  }
  .wt-overview__details {
    min-height: 44px; padding: 4px 12px; border: 0; background: transparent;
    color: var(--navy); font: inherit; font-size: 12px; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
  }
  .wt-overview button:focus-visible, .wt-zoom :is(button, [tabindex]):focus-visible {
    outline: 2px solid var(--navy); outline-offset: 2px;
  }
  html:has(.wt-zoom[open]) { overflow: hidden; }
  .wt-zoom[open] {
    position: fixed; inset: 0; display: flex; flex-direction: column;
    width: 100%; max-width: none; height: 100%; max-height: none;
    margin: 0; padding: 0; border: 0; overflow: hidden;
    background: #f5f7f8; color: var(--navy);
  }
  .wt-zoom__header {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 12px; border-bottom: 1px solid #dfe4e7; background: #fff;
  }
  .wt-zoom__header h2 { margin: 0; font-size: 16px; line-height: 1.4; }
  .wt-zoom__header p { margin: 2px 0 0; font-size: 12px; line-height: 1.5; }
  .wt-zoom__header button {
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px;
    background: var(--navy); color: #fff; font: inherit; font-size: 26px; line-height: 1; cursor: pointer;
  }
  .wt-zoom__viewport { flex: 1; min-height: 0; padding: 8px; overflow: auto; overscroll-behavior: contain; }
  .wt-zoom__viewport img { display: block; width: 820px; max-width: none; height: auto; }
}
