body[data-page="recruit-office"] {
  --office-ink: #201b18;
  --office-accent: #a83121;
  --office-paper: #f7f2ec;
  --office-line: #dfd4c8;
  --office-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

[data-page="recruit-office"] .site-header { color: var(--office-ink); }
[data-page="recruit-office"] .site-header .brand-logo { filter: none; }
[data-page="recruit-office"] .site-header :is(.header-phone, .header-consult) { color: #fff; }

.office-hero { background: #fff; color: var(--office-ink); }
.office-hero-copy {
  padding-top: clamp(122px, 11vw, 155px);
  padding-bottom: clamp(26px, 4vw, 48px);
}
.office-hero-brand {
  color: var(--office-accent);
  font: 700 11px/1.5 Arial, sans-serif;
  letter-spacing: .13em;
}
.office-hero h1 {
  margin-top: 8px;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
}
.office-headline {
  margin-top: clamp(17px, 2vw, 26px);
  font: 700 clamp(40px, 6.2vw, 82px)/1.24 var(--office-serif);
  letter-spacing: .015em;
}
.office-headline > span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.office-hero-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px 30px;
  margin-top: clamp(21px, 3.4vw, 36px);
}
.office-hero-lead { font-size: clamp(14px, 1.4vw, 17px); line-height: 1.65; font-weight: 600; }
.office-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  padding: 10px 19px;
  background: var(--office-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.office-button:hover { background: #892719; }
.office-button-secondary { background: transparent; border: 1px solid currentColor; color: var(--office-accent); }
.office-button-secondary:hover { background: #faede4; }

.office-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: #fff;
}
.office-scene {
  position: relative;
  display: flex;
  align-items: end;
  min-width: 0;
  height: clamp(220px, 22vw, 360px);
  padding: 14px clamp(10px, 2vw, 30px);
  color: #fff;
  isolation: isolate;
}
.office-scene img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 39%;
}
.office-scene::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, #16110ddb, #16110d00 62%);
}
.office-scene > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  background: #fff;
  color: var(--office-ink);
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 700;
  line-height: 1.5;
}
.office-scene > span > span { color: var(--office-accent); }
.office-scene:hover > span { color: var(--office-accent); }
.office-scene:focus-visible { outline-offset: -4px; }

.office-day, .office-team { background: var(--office-paper); color: var(--office-ink); }
.office-learning { color: var(--office-ink); }
.office-heading {
  color: var(--office-ink);
  font: 700 clamp(25px, 4vw, 46px)/1.4 var(--office-serif);
  letter-spacing: .02em;
  text-wrap: balance;
}
.office-intro {
  max-width: 43em;
  margin-top: 15px;
  color: #564941;
  font-size: 15px;
  line-height: 1.9;
}
.office-day-list, .office-flow, .office-learning-list {
  display: grid;
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}
.office-day-list, .office-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.office-day-list > li, .office-flow > li { min-width: 0; padding: 19px; background: #fff; }
.office-day-list > li { border-top: 3px solid var(--office-accent); }
.office-time, .office-role-label {
  display: block;
  margin-bottom: 9px;
  color: var(--office-accent);
  font-weight: 700;
  font-size: 13px;
}
.office-day-list h3, .office-flow h3, .office-learning-list h3 {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  letter-spacing: .015em;
}
.office-day-list h3 + p, .office-flow h3 + p, .office-learning-list h3 + p {
  margin-top: 8px;
  color: #564941;
  font-size: 14px;
  line-height: 1.9;
}
.office-learning {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(23px, 6vw, 72px);
}
.office-learning-list { margin-top: 0; }
.office-learning-list > li { padding: 14px 0; border-top: 1px solid var(--office-line); }
.office-learning-list > li:last-child { border-bottom: 1px solid var(--office-line); }
.office-flow { gap: 30px; }
.office-flow > li { position: relative; border: 1px solid var(--office-line); }
.office-flow > li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -19px;
  width: 8px;
  height: 8px;
  border: solid var(--office-accent);
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}
.office-team .office-button { margin-top: 21px; }
[data-page="recruit-office"] .recruit-entry { background: var(--office-ink); border-radius: 0; }
[data-page="recruit-office"] .recruit-entry .button.outline { background: var(--office-accent); border-color: transparent; }
[data-page="recruit-office"] .recruit-entry .button.outline:hover { background: #892719; }
#office-image-note { margin-block: 14px; font-size: 11px; }

@media (max-width: 760px) {
  .office-hero-copy { padding-top: 106px; }
  .office-headline { font-size: clamp(30px, 8.9vw, 46px); }
  .office-hero-actions { align-items: start; flex-direction: column; }
  .office-hero-lead br { display: none; }
  .office-learning, .office-day-list, .office-flow { grid-template-columns: minmax(0, 1fr); }
  .office-day-list { gap: 12px; }
  .office-flow { gap: 22px; }
  .office-flow > li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -13px;
    transform: translateX(50%) rotate(135deg);
  }
}
@media (max-width: 600px) {
  .office-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-scene:first-child { grid-column: 1 / -1; height: clamp(160px, 48vw, 245px); }
  .office-scene { height: clamp(111px, 32vw, 170px); padding: 8px; }
  .office-scene > span { padding: 5px 7px; }
}
