:root {
  --ink: #322828;
  --paper: #f7f7f5;
  --line: #d7d7d2;
  --muted: #777;
  --accent: #c43a34;
  --soft: #ececea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", Arial, "Helvetica Neue", "Noto Sans JP", sans-serif;
}

.back-to-top {
  position: fixed;
  right: max(32px, env(safe-area-inset-right));
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #000;
  mix-blend-mode: difference;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top span {
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-bottom: 10px solid currentColor;
  transform: translateY(-1px);
}

.back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (hover: hover) {
  .back-to-top:hover { transform: translateY(-3px); }
}

@media (max-width: 850px) {
  .back-to-top {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

@media print {
  .back-to-top { display: none; }
}

.serif {
  font-family: "Noto Serif JP", "Times New Roman", serif;
}

.wrap {
  width: min(1460px, calc(100% - 64px));
  margin: auto;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #322828;
}

.topbar.is-scrolled {
  mix-blend-mode: difference;
  color: white;
}

.topbar.is-menu-open {
  mix-blend-mode: normal;
  color: #322828;
}

.site-nav {
  position: absolute;
  top: 86px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  background: #fff;
}

.site-nav a {
  color: #322828;
  font-family: "Bahnschrift", "Arial Narrow", sans-serif;
  font-stretch: condensed;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s;
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: #c61016;
}

.topbar:not(.is-scrolled) .site-nav {
  gap: 8px;
}

.topbar:not(.is-scrolled) .site-nav a {
  font-size: 16px;
}

.site-nav a:focus-visible, .menu:focus-visible {
  outline: 2px solid #c61016;
  outline-offset: 5px;
}

.topbar.is-scrolled .site-nav {
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.menu[hidden], .site-nav[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .topbar.is-menu-open .site-nav a {
    transform-origin: center top;
    animation: menu-row-open 420ms cubic-bezier(.22, 1, .36, 1) backwards;
  }

  .topbar.is-menu-open .site-nav a:nth-child(2) { animation-delay: 90ms; }
  .topbar.is-menu-open .site-nav a:nth-child(3) { animation-delay: 180ms; }
  .topbar.is-menu-open .site-nav a:nth-child(4) { animation-delay: 270ms; }

  .topbar.is-menu-open .site-nav a:focus-visible,
  .topbar.is-menu-closing .site-nav a {
    animation: none;
  }
}

@keyframes menu-row-open {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(-65deg) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0) translateY(0);
  }
}

#message, #interview, #jobs, #entry {
  scroll-margin-top: 86px;
}

.logo {
  font-weight: 800;
  letter-spacing: -.04em;
  font-size: 23px;
}

.logo a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: transform .6s ease, color .6s ease, opacity .6s ease;
}

.logo a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.logo a.is-color-hovered {
  color: transparent;
  transform: scale(1.04);
}

/* This visual copy lives outside the header's difference-blended layer. */
.logo-hover-layer {
  position: fixed;
  z-index: 31;
  pointer-events: none;
  user-select: none;
  color: transparent;
}

.logo-hover-layer a {
  color: #c61016;
  opacity: 0;
}

.logo-hover-layer a.is-active {
  opacity: 1;
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .logo a { transition: none; }
}

.menu {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.menu span {
  font-size: 11px;
  letter-spacing: .18em;
}

.menu i {
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.menu i:before, .menu i:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: currentColor;
}

.menu i:before {
  top: 16px;
}

.menu i:after {
  top: 23px;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 110px 0 70px;
  background: #fff;
}

.hero-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  top: calc(var(--start) * 100%);
  left: var(--x);
  width: var(--width);
  height: auto;
  display: block;
}

.hero-photo.hero-photo--intro-clear {
  top: var(--intro-top, calc(50% + 240px));
  z-index: 1;
}

.hero-grid.is-ready .hero-photo {
  animation: hero-drift var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

/* Preserve the 1400px composition, with restrained speeds and staggered arrivals. */
.hero-photo:nth-child(1) {
  --x: 15.1%;
  --width: 10.15%;
  --start: 0.2;
  --speed: 12.5;
  --mobile-x: 8%;
  --mobile-width: 23%;
  --mobile-start: 0.18;
}

.hero-photo:nth-child(2) {
  --x: 31.2%;
  --width: 9.8%;
  --start: 0.036;
  --speed: 13.2;
  --mobile-x: 36%;
  --mobile-width: 21%;
  --mobile-start: 0.025;
}

.hero-photo:nth-child(3) {
  --x: 59.7%;
  --width: 21.5%;
  --start: -0.045;
  --speed: 12.2;
  --mobile-x: 67%;
  --mobile-width: 34%;
  --mobile-start: -0.04;
}

.hero-photo:nth-child(4) {
  --x: 78.8%;
  --width: 9.8%;
  --start: 0.24;
  --speed: 12.8;
  --mobile-x: 80%;
  --mobile-width: 22%;
  --mobile-start: 0.25;
}

.hero-photo:nth-child(5) {
  --x: 7.05%;
  --width: 13.9%;
  --start: 0.466;
  --speed: 12;
  --mobile-x: -8%;
  --mobile-width: 31%;
  --mobile-start: 0.46;
}

.hero-photo:nth-child(6) {
  --x: 31.8%;
  --width: 6.8%;
  --start: 0.566;
  --speed: 8.5;
  --mobile-x: 25%;
  --mobile-width: 16%;
  --mobile-start: 0.65;
}

.hero-photo:nth-child(7) {
  --x: 16%;
  --width: 20%;
  --start: 0.769;
  --speed: 12.3;
  --mobile-x: 5%;
  --mobile-width: 39%;
  --mobile-start: 0.82;
}

.hero-photo:nth-child(8) {
  --x: 52.1%;
  --width: 10.15%;
  --start: 0.771;
  --speed: 13.8;
  --mobile-x: 53%;
  --mobile-width: 24%;
  --mobile-start: 0.78;
}

.hero-photo:nth-child(9) {
  --x: 70%;
  --width: 12.15%;
  --start: 0.74;
  --speed: 16.7;
  --mobile-x: 72%;
  --mobile-width: 29%;
  --mobile-start: 0.7;
}

.hero-photo:nth-child(10) {
  --x: 80.85%;
  --width: 12%;
  --start: 0.846;
  --speed: 13;
  --mobile-x: 88%;
  --mobile-width: 28%;
  --mobile-start: 0.88;
}

.hero-photo:nth-child(11) {
  --x: 5%;
  --width: 11%;
  --start: 1.06;
  --speed: 13.3;
  --mobile-x: -5%;
  --mobile-width: 26%;
  --mobile-start: 1.06;
}

.hero-photo:nth-child(12) {
  --x: 20%;
  --width: 13%;
  --start: 1.48;
  --speed: 12.2;
  --mobile-x: 23%;
  --mobile-width: 28%;
  --mobile-start: 1.48;
}

.hero-photo:nth-child(13) {
  --x: 37%;
  --width: 14%;
  --start: 1.68;
  --speed: 12.8;
  --mobile-x: 8%;
  --mobile-width: 33%;
  --mobile-start: 1.68;
}

.hero-photo:nth-child(14) {
  --x: 87%;
  --width: 9%;
  --start: 1.16;
  --speed: 10.7;
  --mobile-x: 85%;
  --mobile-width: 22%;
  --mobile-start: 1.16;
}

.hero-photo:nth-child(15) {
  --x: 67%;
  --width: 16%;
  --start: 1.92;
  --speed: 12.5;
  --mobile-x: 66%;
  --mobile-width: 35%;
  --mobile-start: 1.92;
}

.hero-photo:nth-child(16) {
  --x: 55%;
  --width: 12%;
  --start: 1.2;
  --speed: 13.2;
  --mobile-x: 52%;
  --mobile-width: 27%;
  --mobile-start: 1.2;
}

.hero-photo:nth-child(17) {
  --x: 8%;
  --width: 18%;
  --start: 2.12;
  --speed: 14;
  --mobile-x: -8%;
  --mobile-width: 35%;
  --mobile-start: 2.12;
}

.hero-photo:nth-child(18) {
  --x: 77%;
  --width: 15%;
  --start: 1.62;
  --speed: 12.3;
  --mobile-x: 75%;
  --mobile-width: 31%;
  --mobile-start: 1.62;
}

.hero-photo:nth-child(19) {
  --x: 39%;
  --width: 12%;
  --start: 1.45;
  --speed: 13.5;
  --mobile-x: 35%;
  --mobile-width: 27%;
  --mobile-start: 1.45;
}

.hero-photo:nth-child(20) {
  --x: 57%;
  --width: 10%;
  --start: 1.8;
  --speed: 13;
  --mobile-x: 60%;
  --mobile-width: 23%;
  --mobile-start: 1.8;
}

.hero-photo:nth-child(21) {
  --x: 24%;
  --width: 8%;
  --start: 2;
  --speed: 12.7;
  --mobile-x: 18%;
  --mobile-width: 20%;
  --mobile-start: 2;
}

@keyframes hero-drift {
  from {
    transform: translate3d(0, var(--from), 0);
  }
  to {
    transform: translate3d(0, var(--to), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid.is-ready .hero-photo {
    animation: none;
    will-change: auto;
  }
}
.hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: calc(100vh - 180px);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-inner {
  width: min(900px, 70vw);
}

/* Let the hero copy slowly develop in place, once on page entry. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 > .hero-line,
  .hero-inner > .eyebrow,
  .hero-inner > .en,
  .hero-note {
    animation: hero-emerge 2400ms cubic-bezier(.33, 0, .2, 1) both;
  }

  .hero h1 > .hero-line {
    animation-duration: 1800ms;
    animation-delay: 150ms;
  }
  .hero h1 > .hero-line.accent { animation-delay: 800ms; }
  .hero-inner > .eyebrow { animation-delay: 1200ms; }
  .hero-inner > .en { animation-delay: 1200ms; }
  .hero-note { animation-delay: 1200ms; }
}

@keyframes hero-emerge {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media print {
  .hero h1 > .hero-line,
  .hero-inner > .eyebrow,
  .hero-inner > .en,
  .hero-note {
    animation: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .28em;
  margin-bottom: 20px;
}

.eyebrow:before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 6.3vw, 110px);
  line-height: 1.3;
  letter-spacing: -.06em;
  font-weight: 500;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .en {
  font-size: clamp(28px, 2.3vw, 40px);
  letter-spacing: .08em;
  margin-top: 26px;
}

.hero-note {
  position: absolute;
  left: 32px;
  bottom: 24px;
  font-size: 10px;
  letter-spacing: .18em;
  color: #555;
  writing-mode: vertical-rl;
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
}

.ticker-track {
  display: flex;
  width: max-content;
  font-size: 12px;
  letter-spacing: .22em;
  animation: mar 24s linear infinite;
}

.ticker-group {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-around;
  min-width: 100vw;
}

@keyframes mar {
  to {
    transform: translateX(-50%);
  }
}

section {
  padding: 130px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 40px;
  margin-bottom: 72px;
}

.num {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}

.section-head h2 {
  font-size: clamp(46px, 6vw, 92px);
  line-height: .9;
  margin: 0;
  letter-spacing: -.05em;
  font-weight: 500;
}

.section-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.job {
  cursor: pointer;
  position: relative;
}

.job:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.job .arrow {
  user-select: none;
}

.job[aria-expanded="true"] .arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.job-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s ease;
  border-bottom: 1px solid transparent;
}

.job-panel[aria-hidden="false"] {
  grid-template-rows: 1fr;
  border-bottom-color: #bbb;
}

.job-panel-inner {
  overflow: hidden;
}

.job-content {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 7vw;
  padding: 18px 0 54px;
}

.job-intro {
  padding-top: 12px;
}

.job-intro .job-en {
  font-family: "Noto Serif JP", "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.job-intro p {
  font-size: 15px;
  line-height: 1.95;
  color: #555;
  margin: 0;
}

.job-spec {
  border-top: 1px solid #bbb;
}

.spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid #c9c9c4;
}

.spec-row dt {
  font-size: 13px;
  letter-spacing: .12em;
  color: #777;
}

.spec-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.job-entry {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: #322828;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .16em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
}

.job-entry:hover, .job-entry:focus-visible {
  color: var(--accent);
  transition: 0.8s;
}

/* .job-entry:after {
  content: "↗";
  font-size: 16px;
  color: var(--accent);
} */

.jobs {
  background: #e9eaee;
}

.job-list {
  border-top: 1px solid #bbb;
}

.job {
  display: grid;
  grid-template-columns: 170px 1fr 70px;
  gap: 20px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #bbb;
}

.job small {
  font-size: 15px;
  letter-spacing: .18em;
  color: #777;
}

.job h3 {
  font-size: clamp(28px, 3.2vw, 35px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.03em;
  font-family: "Noto Serif JP", "Times New Roman", serif;

}

.arrow {
  width: 52px;
  height: 52px;
  border: 1px solid #322828;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 23px;
  transition: .2s;
}

.job:hover .arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: rotate(-30deg);
}

.entry {
  padding: 110px 0;
  background: #322828;
  color: white;
  text-align: center;
}

.entry p {
  font-size: 11px;
  letter-spacing: .25em;
  color: #aaa;
}

.entry h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(50px, 7vw, 110px);
  font-weight: 500;
  margin: 18px 0 28px;
}

.entry a {
  display: inline-flex;
  width: 180px;
  height: 180px;
  border: 1px solid #777;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .18em;
  transition: .2s;
}

.entry a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.04);
}

.entry {
  padding: 120px 0 130px;
  background: #322828;
  color: white;
  text-align: left;
}

.entry-wrap {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 8vw;
  align-items: start;
}

.entry-intro {
  position: sticky;
  top: 110px;
}

.entry-intro>p {
  font-size: 10px;
  letter-spacing: .22em;
  color: #888;
  margin: 0 0 18px;
}

.entry h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(54px, 7vw, 108px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.05em;
  margin: 0 0 28px;
}

.entry-copy {
  font-size: 13px;
  line-height: 2;
  color: #aaa;
  max-width: 420px;
}

.entry-contact {
  min-width: 0;
}

/* Contact Form 7 wraps controls and may insert paragraphs automatically. */
.entry-contact .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.entry-contact .form-row p,
.entry-contact .entry-actions p {
  margin: 0;
}

.entry-contact .form-row br,
.entry-contact .entry-actions br {
  display: none;
}

.entry-contact .privacy .wpcf7-list-item {
  margin: 0;
}

.entry-contact .entry-submit {
  position: relative;
  min-width: 0;
}

.entry-contact input.submit-btn {
  font: 500 13px/1 Arial, sans-serif;
  letter-spacing: .22em;
  border-radius: 0;
  appearance: none;
  white-space: normal;
}

.entry-contact .wpcf7-spinner {
  position: absolute;
  right: 8px;
  bottom: 8px;
  margin: 0;
}

.entry-contact .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
}

.entry-contact .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #ffaaa6;
  font-size: 12px;
}

.entry-contact .submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.entry-contact .submit-btn:disabled:hover {
  background: transparent;
  border-color: #777;
}

.entry-contact :is(input, select, textarea, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.entry-form-notice {
  color: #ddd;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 20px;
}

.entry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  border-top: 1px solid #555;
}

.form-row {
  padding: 24px 0 22px;
  border-bottom: 1px solid #3a3a3a;
}

.form-row.full {
  grid-column: 1/-1;
}

.form-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  letter-spacing: .16em;
  color: #ddd;
  margin-bottom: 13px;
}

.form-row label span {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .12em;
}

.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  padding: 7px 0;
  font: 400 16px/1.5 Arial, "Helvetica Neue", "Noto Sans JP", sans-serif;
  outline: none;
}

#birth::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.form-row textarea {
  resize: vertical;
  min-height: 150px;
}

.form-row input::placeholder, .form-row textarea::placeholder {
  color: #666;
}

.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  box-shadow: 0 1px 0 var(--accent);
}

.select-wrap {
  position: relative;
}

.select-wrap:after {
  content: "▼";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  /* color: var(--accent); */
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  padding-right: 28px;
}

.select-wrap select option {
  color: #322828;
  background: #fff;
}

.file-row>label:first-child {
  margin-bottom: 16px;
}

.file-box {
  min-height: 98px;
  border: 1px dashed #555;
  padding: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer;
  transition: .2s;
}

.file-box:hover {
  border-color: var(--accent);
  background: rgba(196, 58, 52, .06);
}

.file-box strong {
  font: 500 11px/1 Arial, sans-serif;
  letter-spacing: .17em;
}

.file-box small {
  font-size: 9px !important;
  letter-spacing: .08em !important;
  color: #777 !important;
}

.file-box input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.entry-actions {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}

.privacy {
  min-width: 0;
  color: #fff;
}

.entry-contact .privacy label,
.entry-contact .privacy .wpcf7-list-item-label,
.entry-contact .privacy-policy-link {
  color: #fff;
}

.entry .privacy-policy-link {
  display: inline;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: none;
}

.entry .privacy-policy-link:hover {
  background: transparent;
  border: 0;
  transform: none;
}

.privacy-policy-link:focus-visible,
.privacy-dialog__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

html.privacy-dialog-open {
  overflow: hidden;
}

.privacy-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #777;
  background: #322828;
  color: #fff;
  overflow: auto;
  overscroll-behavior: contain;
}

.privacy-dialog::backdrop {
  background: rgb(0 0 0 / 75%);
}

.privacy-dialog__header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #322828;
  border-bottom: 1px solid #777;
}

.privacy-dialog__header h2 {
  margin: 0;
  font-size: clamp(16px, 3vw, 22px);
}

.privacy-dialog__close {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid #aaa;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.privacy-dialog__body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.9;
}

.privacy-dialog__body h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.privacy-dialog__body p {
  margin: 0 0 16px;
}

.privacy label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: .08em;
  cursor: pointer;
}

.privacy input {
  flex-shrink: 0;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #777;
  display: grid;
  place-items: center;
  margin: 0;
}

.privacy input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.privacy input:checked:after {
  content: "✓";
  font-size: 11px;
  color: #fff;
}

.privacy b {
  font-size: 10px;
  color: var(--accent);
  font-weight: 500;
  margin-left: 8px;
}

.privacy p {
  font-size: 9px;
  line-height: 1.8;
  color: #666;
  margin: 10px 0 0 30px;
}

.submit-btn {
  width: 100%;
  min-height: 110px;
  border: 1px solid #777;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  cursor: pointer;
  transition: .25s;
}

.submit-btn span {
  font: 500 13px/1 Arial, sans-serif;
  letter-spacing: .22em;
}

.submit-btn i {
  width: 56px;
  height: 56px;
  border: 1px solid #666;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 20px;
  transition: .25s;
}

.submit-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.submit-btn:hover i {
  border-color: #fff;
  transform: rotate(45deg);
}

.form-note {
  grid-column: 1/-1;
  font-size: 9px;
  color: #666;
  margin-top: 14px;
  letter-spacing: .04em;
}

footer {
  padding: 28px 32px;
  background: #322828;
  color: #fff;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .14em;
}

@media(max-width:850px) {
  .wrap {
    width: calc(100% - 34px);
  }

  .topbar {
    padding: 16px 17px;
  }

  .topbar.is-scrolled {
    mix-blend-mode: normal;
    color: var(--ink);
  }

  .menu, .menu[hidden] {
    display: flex;
  }

  .topbar:not(.is-menu-open) .site-nav {
    display: none;
  }

  .site-nav {
    top: 74px;
    right: 17px;
    gap: 8px;
  }

  .logo {
    font-size: 16px;
    letter-spacing: -.03em;
  }

  .menu span {
    display: none;
    font-size: 12px;
  }

  .menu i {
    width: 38px;
    height: 38px;
    background: #fff;
  }

  .menu i:before, .menu i:after {
    left: 11px;
    right: 11px;
  }

  .menu i:before {
    top: 14px;
  }

  .menu i:after {
    top: 21px;
  }

  .hero {
    min-height: 0;
    height: 100vh;
    height: 100svh;
    max-height: none;
    padding: 0;
  }

  .hero-grid:not(.is-ready) { visibility: hidden; }

  .hero-grid.is-ready .hero-photo {
    animation-fill-mode: backwards;
  }

  .hero-photo {
    left: var(--mobile-x);
    width: min(var(--mobile-width), 160px);
  }
  /* Keep fv19 above fv2 and fv3 above fv15 on mobile. */
  .hero-photo:nth-child(2), .hero-photo:nth-child(3) {
    z-index: 1;
  }
  /* Keep fv10 above all other hero photos. */
  .hero-photo:nth-child(4) {
    z-index: 2;
  }
  .hero-photo, .hero-photo.hero-photo--intro-clear {
    top: var(--mobile-origin, calc(var(--mobile-start) * 100%));
  }
  .hero-copy {
    height: 100%;
    min-height: 0;
    align-items: center;
    padding: 0;
  }

  .hero-inner {
    width: 90vw;
    position: relative;
    z-index: 8;
    transform: translateX(10px);
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    gap: 8px;
    margin-bottom: 15px;
  }

  .eyebrow:before {
    width: 18px;
  }

  .hero h1 {
    font-size: clamp(46px, 14.5vw, 64px);
    line-height: 1.08;
    letter-spacing: -.065em;
    text-shadow: 0 0 18px rgba(255, 255, 255, .94), 0 0 6px rgba(255, 255, 255, .9);
  }

  .hero .en {
    font-size: 19px;
    letter-spacing: .09em;
    margin-top: 18px;
    text-shadow: 0 0 14px rgba(255, 255, 255, .95);
  }

  .hero-note {
    display: none;
    font-size: 12px;
  }

  .ticker {
    padding: 10px 0;
  }

  .ticker-track {
    font-size: 10px;
    letter-spacing: .17em;
    animation-duration: 18s;
  }

  section {
    padding: 82px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 42px;
  }

  .num {
    font-size: 12px;
  }

  .section-head h2 {
    font-size: clamp(44px, 14vw, 62px);
    line-height: .9;
  }

  .job-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 8px 0 38px;
  }

  .job-intro .job-en {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .job-intro p {
    font-size: 12.5px;
  }

  .spec-row {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .spec-row dt {
    font-size: 12px;
  }

  .spec-row dd {
    font-size: 12px;
    line-height: 1.75;
  }

  .job-entry {
    font-size: 12px;
    margin-top: 22px;
  }

  .jobs {
    padding-bottom: 70px;
  }

  .job {
    grid-template-columns: 1fr 46px;
    gap: 8px 12px;
    padding: 24px 0;
  }

  .job small {
    grid-column: 1/-1;
    font-size: 12px;
  }

  .job h3 {
    font-size: 17px;
    line-height: 1.25;
  }

  .arrow {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  .entry {
    padding: 78px 0 84px;
  }

  .entry p {
    font-size: 12px;
  }

  .entry h2 {
    font-size: 54px;
    margin: 14px 0 24px;
  }

  .entry a {
    width: 132px;
    height: 132px;
    font-size: 12px;
  }

  footer {
    padding: 20px 17px;
    gap: 18px;
    align-items: flex-end;
  }

  footer span {
    font-size: 12px;
    line-height: 1.5;
  }

  footer span:last-child {
    text-align: right;
  }
}

@media(max-width:420px) {
  .hero h1 {
    font-size: clamp(43px, 14vw, 58px);
  }

.section-head h2 {
    font-size: 50px;
  }

  .entry h2 {
    font-size: 50px;
  }
}

@media(max-width:850px) {
  .entry {
    padding: 82px 0 92px;
  }

  .entry-wrap {
    display: block;
  }

  .entry-intro {
    position: static;
    margin-bottom: 48px;
  }

  .entry-intro>p {
    font-size: 12px;
  }

  .entry h2 {
    font-size: 56px;
    margin-bottom: 20px;
  }

  .entry-copy {
    font-size: 12px;
    line-height: 1.9;
  }

  .entry-form {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row.half, .form-row.full {
    grid-column: 1;
  }

  .form-row {
    padding: 20px 0 18px;
  }

  .form-row label {
    font-size: 12px;
  }

  .form-row label span,
  .file-box strong,
  .privacy b,
  .privacy input:checked:after {
    font-size: 12px;
  }

  .form-row input, .form-row textarea, .form-row select {
    font-size: 15px;
  }

  .form-row textarea {
    min-height: 140px;
  }

  .file-box {
    min-height: 90px;
    padding: 18px !important;
    align-items: flex-start !important;
    flex-direction: column;
    gap: 8px;
  }

  .file-box small {
    font-size: 12px !important;
  }

  .submit-btn {
    min-height: 88px;
    padding: 0 20px;
  }

  .submit-btn span {
    font-size: 12px;
  }

  .submit-btn i {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .entry-actions {
    grid-template-columns: minmax(0, 1fr) clamp(88px, 12vw, 180px);
    gap: 16px;
    margin-top: 22px;
  }

  .privacy label {
    font-size: 12px;
  }

  .privacy p {
    font-size: 12px;
    margin-left: 30px;
  }

  .form-note {
    font-size: 12px;
  }
}
