@font-face {
  font-family: "Korekara Hand";
  src: url("/fonts/handwritten/klee-one-editorial-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper-hand: "Korekara Hand", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --paper-base: #faf6ed;
  --paper-ink: #253d35;
  --paper-moss: #285646;
  --paper-photo: 27px 20px 31px 23px / 23px 30px 23px 33px;
  --paper-button: 21px 17px 22px 18px / 19px 23px 18px 22px;
  --paper-fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120' width='160' height='120'%3E%3Cg fill='none' stroke='%23766a55' stroke-width='.65' stroke-opacity='.14'%3E%3Cpath d='M9 21q3 1 6 0m30 31 7-2m49-28q5 1 8-1m22 69 9 2m-104 12 5 1m30-18 7-1m28 24 6-1M72 12l5 2m65 39 8-2'/%3E%3C/g%3E%3C/svg%3E");
  --paper-underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16Q75 4 146 9t150-4M17 20Q119 12 214 14l66-5' fill='none' stroke='%23dfac54' stroke-width='5' stroke-opacity='.57' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Keep the ordinary reading and form text in the site's sans-serif. */
html[lang="ja"] :is(
  .brand > span:nth-child(2),
  .wd-hero h1, .wd-section-heading h2, .wd-lens-heading h2,
  .wd-lens-chapter h3, .wd-job h3, .wd-experience-entry h2,
  .wd-detail h1, .wd-detail h2, .wd-experience h1, .wd-experience h2,
  .discovery-home h2, .listing-page .page-intro h1, .listing-page .section-head h2,
  .reading-page .article-heading h1, .reading-page .article-body h2,
  .company-detail .company-heading h1, .company-detail .company-story h2,
  .article-card h3, .company-card h3, .cc-page h1, .cc-page h2, .er-hero h1,
  .need-card .need-copy strong, .find-work .desire-card-top i,
  .find-work .desire-draw, .wd-hero .wd-button, .wd-route-rail a > span
) {
  font-family: var(--paper-hand);
  font-weight: 600;
  letter-spacing: .015em;
}

.header .brand > span:nth-child(2) {
  color: var(--paper-ink);
  line-height: 1.06;
}

.brand .brand-mark {
  border-radius: 16px 12px 17px 13px;
}

.header .language-picker > summary::after {
  content: none;
}

.header {
  background: #fffdf8;
  border-bottom-color: #dfdfd2;
}

.header .desktop-nav a[aria-current="page"] {
  color: var(--paper-moss);
  text-decoration: underline;
  text-decoration-color: #c08c39;
  text-decoration-thickness: 2px;
  text-underline-offset: .5em;
}

.mobile-nav:not([hidden]) {
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: #fffaf0;
  border-radius: 0 0 24px 19px;
}

#site-root .mobile-nav-search {
  background: #e9eee2;
  color: var(--paper-ink);
  border-color: #cbd7c8;
  border-radius: var(--paper-button);
}

/* Search is a reading tool: keep the input stable and results easy to scan. */
#site-root .search-dialog {
  background: var(--paper-fibres), #fffaf0;
  border: 1px solid #d9ddcc;
  border-radius: 27px 20px 29px 23px;
  color: var(--paper-ink);
  max-height: min(85dvh, 800px);
  overscroll-behavior: contain;
}

html[lang="ja"] #site-root .search-dialog > label {
  font-family: var(--paper-hand);
  font-weight: 600;
  letter-spacing: 0;
}

#site-root .search-field {
  border-color: #cad6c8;
  background: #fffef9;
  border-radius: 14px;
}

#site-root .search-field input {
  font-size: 16px;
}

#site-root .search-result {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  line-height: 1.6;
}

#site-root .search-result > span {
  color: #466858;
  font-size: 11px;
  font-weight: 700;
}

#site-root .search-result > strong {
  font-size: 16px;
}

#site-root .search-result > small {
  color: #53675e;
  font-size: 13px;
}

#site-root .search-result:is(:hover, :focus-visible) {
  background: #edf1e5;
}

@media (min-width: 375px) and (max-width: 600px) {
  .header .header-actions > .icon-button[data-action="search"] {
    display: grid;
  }
}

@media (min-width: 1101px) and (max-width: 1540px) {
  .header {
    gap: 16px;
    padding-inline: clamp(20px, 2.6vw, 42px);
  }

  .header .desktop-nav {
    gap: clamp(10px, 1.1vw, 17px);
  }

  .header .header-actions {
    gap: 8px;
  }

  .header .notebook-link > span {
    display: none;
  }
}

/* The front page pairs a live headline with a printed-photo composition. */
.discovery-home .wd-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4.2vw, 78px);
  height: auto;
  min-height: 0;
  padding: clamp(38px, 5vw, 92px) clamp(26px, 5.5vw, 100px) 31px;
  background: var(--paper-fibres), radial-gradient(ellipse at 15% 33%, #fffaf0, #f2e8d9);
  color: var(--paper-ink);
}

.discovery-home .wd-hero-copy {
  width: auto;
  min-width: 0;
  max-width: none;
  padding-bottom: 30px;
}

.discovery-home .wd-eyebrow {
  color: #53695b;
  font-size: 12px;
  margin-bottom: 20px;
  letter-spacing: .06em;
}

.discovery-home .wd-eyebrow > span {
  background: #537c64;
  box-shadow: none;
}

.discovery-home .wd-hero h1 {
  font-size: clamp(29px, 3.55vw, 69px);
  line-height: 1.29;
  text-wrap: wrap;
  overflow-wrap: normal;
  margin: 0 0 25px;
}

.discovery-home .wd-hero h1 em {
  color: var(--paper-moss);
}

html[lang="ja"] .discovery-home .wd-hero h1 em {
  display: inline-block;
  padding: 0 .08em .13em 0;
  background: var(--paper-underline) left bottom / 100% .29em no-repeat;
  font-size: 1.28em;
}

.discovery-home .wd-hero-lead {
  color: #40594c;
  font-size: clamp(13px, 1.12vw, 17px);
  line-height: 1.9;
}

.discovery-home .wd-hero .wd-button,
.find-work .desire-draw {
  background: var(--paper-moss);
  border-color: var(--paper-moss);
  box-shadow: 0 3px 0 #c3d1bf;
}

.discovery-home .wd-hero .wd-button {
  color: #fffdf6 !important;
}

.discovery-home .wd-hero .wd-button:hover,
.find-work .desire-draw:hover {
  background: #1e4538;
}

.discovery-home .wd-hero-secondary {
  color: var(--paper-ink) !important;
  font-size: 13px;
}

.discovery-home [data-wd-company-scene] {
  --scene-photo-height: clamp(310px, 37.5vw, 600px);
  position: relative;
  min-width: 0;
  padding-top: var(--scene-photo-height);
}

.discovery-home .wd-hero-photos {
  inset: 0 0 auto;
  height: var(--scene-photo-height);
  overflow: visible;
  z-index: 0;
  perspective: none;
}

.discovery-home .wd-hero-primary {
  inset: 0;
  clip-path: none;
  border-radius: var(--paper-photo);
  background: #d6ded2;
  box-shadow: 0 8px 28px #293c3026;
}

.discovery-home .wd-hero-primary img {
  filter: saturate(.96);
}

.discovery-home .wd-hero-photos::after {
  border-radius: var(--paper-photo);
  background: linear-gradient(0deg, #142d25bd, transparent 48%);
}

.discovery-home .wd-hero-grid,
.discovery-home .wd-hero-wordmark,
.discovery-home .wd-company-field .wd-cross {
  display: none;
}

.discovery-home .wd-hero-far {
  width: 25%;
  height: 29%;
  border: 4px solid #fffaf0;
  border-radius: 15px 19px 16px 12px;
  box-shadow: 0 5px 14px #162c2580;
}

.discovery-home .wd-hero-far-one {
  top: auto;
  bottom: 6%;
  right: 23%;
  width: 17%;
  height: 23%;
  transform: rotate(5deg);
}

.discovery-home .wd-hero-far-two {
  bottom: 8%;
  right: 4%;
  width: 16%;
  height: 21%;
  transform: rotate(-5deg);
}

.discovery-home .wd-hero .wd-company-field {
  left: 18px;
  top: calc(var(--scene-photo-height) - 16px);
  bottom: auto;
  transform: translateY(-100%);
  width: max-content;
  max-width: min(330px, 53%);
  color: #fffef8;
  padding: 10px 15px;
  background: #142d25eb;
  border-radius: 13px 17px 12px 16px;
  text-shadow: none;
}

.discovery-home .wd-company-field::before {
  display: none;
}

.discovery-home .wd-company-field small {
  color: #f2dfa4;
}

.discovery-home .wd-company-field p {
  margin-block: 3px;
}

.discovery-home .wd-hero-bottom {
  position: relative;
  display: block;
  inset: auto;
  margin: 12px 4px 0;
}

.discovery-home .wd-company-credit {
  color: #546052;
  max-width: none;
  font-size: 10px;
  text-align: left;
}

.discovery-home .wd-hero-credits > ul {
  left: 0;
  right: auto;
  border-radius: 16px;
}

.discovery-home .wd-hero-credits > summary {
  padding: 6px 0;
  font-size: 11px;
  line-height: 1.6;
}

.discovery-home > .page-pv > span {
  background: #fffcf2;
  color: var(--paper-ink);
  border-color: #c6d4c7;
}

.discovery-home .wd-route-rail {
  background: #e8ede0;
}

.discovery-home .wd-route-rail i {
  visibility: hidden;
}

.discovery-home .wd-discover {
  background: var(--paper-fibres), var(--paper-base);
}

.discovery-home .wd-experience-entry {
  padding: clamp(15px, 2.7vw, 44px);
  background-color: #23483c;
}

.discovery-home .wd-compare {
  background: var(--paper-fibres), #edf0e7;
}

/* Photographs have soft corners in both the story and its listing. */
.wd-job-photo,
.wd-lens-static,
.wd-experience-image,
.wd-detail-hero img,
.wd-detail-video video,
.wd-experience-job,
.reading-page .article-cover,
.company-heading .company-hero,
.company-story .imported-story img,
.reading-page .article-body figure img,
.narrative-cover,
.company-card .company-photo,
.step-scene {
  border-radius: var(--paper-photo);
}

.wd-company-lens .wd-lens-photo {
  border-radius: var(--paper-photo);
}

.company-card .company-photo {
  margin: 8px 8px 0;
}

.wd-job:nth-child(2) .wd-job-photo,
.company-card:nth-child(2n) .company-photo,
.article-card:nth-child(2n) .narrative-cover {
  border-radius: 19px 29px 21px 30px / 30px 22px 29px 20px;
}

#site-root :is(.wd-button, .btn, .small-btn, .cc-button, .desire-draw, .header-contact-link) {
  border-radius: var(--paper-button);
}

#find-work {
  padding: clamp(23px, 3.8vw, 53px);
  background: var(--paper-fibres), #f9f3e8;
  border: 1px solid #e7ddcb;
  border-radius: 30px 24px 37px 26px;
}

#find-work .section-head h2 {
  color: var(--paper-ink);
  line-height: 1.4;
  text-wrap: wrap;
  overflow-wrap: normal;
}

#find-work .paper-phrase {
  display: inline-block;
}

#find-work .section-kicker {
  color: var(--paper-moss);
}

#find-work .need-card {
  border-radius: 26px 19px 25px 22px !important;
  box-shadow: 0 4px 0 #493d2c10;
}

#find-work .need-card:nth-child(2n) {
  border-radius: 19px 28px 20px 27px !important;
}

#find-work .need-copy {
  max-width: 100%;
}

#find-work .need-copy strong {
  text-wrap: pretty;
}

#find-work .desire-card-top i {
  background: #fffdf5db;
  color: #475e52;
  border-radius: 8px 5px 9px 6px;
}

@media (max-width: 760px) {
  .discovery-home .wd-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 23px;
    max-height: none;
    padding: 26px clamp(17px, 5vw, 32px) 18px;
  }

  .discovery-home .wd-hero-copy {
    padding: 0;
  }

  .discovery-home .wd-eyebrow {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .discovery-home .wd-hero h1 {
    font-size: clamp(25px, 8.05vw, 51px);
    line-height: 1.32;
    margin-bottom: 15px;
  }

  .discovery-home .wd-hero-lead {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .discovery-home .wd-hero .wd-button {
    min-height: 46px;
    font-size: 13px;
  }

  .discovery-home .wd-hero-secondary {
    font-size: 11px;
  }

  .discovery-home [data-wd-company-scene] {
    --scene-photo-height: clamp(235px, 65vw, 380px);
    padding-top: 0;
  }

  /* Give the interview photos their own rows on mobile. One or two
     secondary photos fit without reserving room for an empty row. */
  .discovery-home .wd-hero-photos {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: auto;
  }

  .discovery-home .wd-hero-primary {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    height: var(--scene-photo-height);
  }

  .discovery-home .wd-hero-photos::after {
    bottom: auto;
    height: var(--scene-photo-height);
  }

  .discovery-home .wd-hero-far {
    position: relative;
    inset: auto;
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 4px;
    border: 1px solid #e0dbca;
    background: #fffaf0;
    color: var(--paper-ink) !important;
    box-shadow: 0 3px 8px #293c301a;
    transform: none;
  }

  .discovery-home .wd-hero-far img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 11px 14px 12px 9px;
  }

  .discovery-home .wd-hero-far > span {
    position: static;
    display: block;
    padding: 6px 5px 5px;
    background: none;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: break-word;
    line-break: strict;
  }

  .discovery-home .wd-hero .wd-company-field {
    left: 10px;
    top: calc(var(--scene-photo-height) - 10px);
    max-width: min(355px, calc(100% - 20px));
    padding: 6px 10px 4px;
  }

  .discovery-home .wd-company-field p {
    font-size: 14px;
  }

  .discovery-home .wd-company-credit {
    font-size: 9px;
  }

  .discovery-home .wd-hero-credits > ul {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .discovery-home [data-wd-company-scene] > .wd-hero-field:not(.wd-company-field) {
    position: static;
    max-width: none;
    padding: 0;
    text-shadow: none;
  }

  .discovery-home [data-wd-company-scene] > .wd-hero-field:not(.wd-company-field)::before {
    display: none;
  }

  .discovery-home .wd-experience-entry {
    padding: 14px;
  }

  .discovery-home .wd-experience-image {
    min-height: 300px;
  }

  .discovery-home .joy-break-actions {
    flex-wrap: wrap;
  }

  #find-work {
    padding: 20px 13px;
  }
}

@media (max-width: 480px) {
  #find-work .need-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #find-work .need-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 53px;
    grid-template-rows: auto 1fr auto;
    gap: 4px 9px;
    min-height: 0 !important;
    padding: 14px 15px 17px !important;
  }

  #find-work .desire-card-top {
    grid-column: 1 / -1;
    margin: 0 0 4px;
  }

  #find-work .need-copy {
    grid-column: 1;
    grid-row: 2;
  }

  #find-work .need-copy strong {
    font-size: 16px;
  }

  #find-work .desire-emoji {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: center;
  }

  #find-work .desire-person {
    width: 52px;
    height: 58px;
  }

  #find-work .need-action {
    grid-column: 1;
    grid-row: 3;
    max-width: none;
    padding-top: 7px;
  }
}

@media (max-width: 390px) {
  .header .brand {
    gap: 6px;
  }

  .header .language-picker > summary {
    gap: 4px;
    padding-inline: 9px;
  }

  .discovery-home .wd-eyebrow {
    padding-right: 48px;
  }

  html[lang="ja"] .discovery-home .wd-hero-lead {
    text-wrap: pretty;
  }
}
