@font-face {
  font-family: "Jost";
  src: url("./assets/fonts/Jost-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0b0c0e;
  --paper: #ffffff;
  --soft: #f4f4f0;
  --line: #d9dad6;
  --muted: var(--ink);
  --body-ink: var(--ink);
  --red: #ff0018;
  --blue: #007ad1;
  /* 本文中のリンク用。--blue そのままだと白背景でコントラスト比 4.46:1 と
     WCAG AA(4.5:1) をわずかに下回るため、少しだけ暗くした値を使う（5.15:1）。 */
  --link: #0070c0;
  --green: #00ad39;
  --content: 1180px;
  --page-inner-padding: clamp(24px, 3vw, 48px);
  --body-size: clamp(16px, .95vw, 18px);
  --body-leading: 2.05;
  /* キーとなる英数字は同梱Webフォント、本文は各OSの読みやすい日本語ゴシック体を使う */
  --base-font: "Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --jp-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, "Segoe UI", Roboto, sans-serif;
  --num-font: "Jost", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--base-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.skip-hero-entry {
  scroll-behavior: auto;
}

html.skip-hero-entry .hero {
  visibility: hidden;
}

html.skip-hero-entry .site-header {
  background-color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 1;
  transform: none;
  transition: none;
}

html.skip-hero-entry #about .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  font-feature-settings: "palt";
  font-kerning: normal;
  line-break: strict;
  text-rendering: optimizeLegibility;
  word-break: normal;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* 人名・短い語句・記号を含む名称を、意味の途中で分断しない。 */
.keep-phrase {
  white-space: nowrap;
}

/* 長文の行末を整える。非対応ブラウザでは通常の改行へ安全に戻る。 */
.discipline-convergence-column p,
.discipline-detail-copy > p,
.design-role-summary-item p,
.designs-closing p,
.subpage-lead,
.profile-list dd,
.history-list p,
.recruit-opening-row p,
.recruit-condition-list dd {
  text-wrap: pretty;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 14px clamp(22px, 3vw, 48px);
  border-bottom: 1px solid rgba(11, 12, 14, .1);
  background-color: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  backdrop-filter: blur(8px) saturate(1.08);
  opacity: 0;
  transform: translateY(-110%);
  transition: background-color .28s ease, opacity .45s ease, transform .65s cubic-bezier(.16, 1, .3, 1);
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-solid {
  background-color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header-brand img {
  width: clamp(152px, 12.8vw, 192px);
  height: auto;
}

.header-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}

.global-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #fff;
}

#rgb-motion {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.section {
  position: relative;
  padding: clamp(96px, 12vw, 170px) clamp(20px, 4vw, 64px);
}

.section-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: inherit;
  font-weight: 300;
  letter-spacing: .01em;
}

.intro {
  min-height: 0;
  scroll-margin-top: 88px;
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(64px, 7vw, 96px);
  background: var(--paper);
}

.intro-grid {
  display: grid;
  width: min(100%, 1280px);
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 72px clamp(48px, 5.5vw, 80px);
  align-items: start;
  padding-inline: var(--page-inner-padding);
}

.section-heading {
  width: 100%;
  align-self: start;
  text-align: left;
}

.section-heading h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--jp-font);
  font-size: clamp(60px, 7vw, 102px);
  font-weight: 300;
  line-height: 1.34;
  letter-spacing: -.02em;
}

.section-heading h1 span {
  display: block;
  white-space: nowrap;
}

.intro-copy {
  position: relative;
  width: auto;
  padding: 0 0 0 clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--line);
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-leading);
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.intro-copy .lead {
  max-width: none;
  margin: 0 0 42px;
  color: var(--ink);
  font-family: var(--jp-font);
  /* 上限 38px だと、右カラムの幅が 1376px 付近で止まったあとも文字だけ大きくなり、
     1500px 以上で 3 行に割れる。カラムが止まる手前で文字の拡大も止める。 */
  font-size: clamp(29px, 2.45vw, 35px);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: .01em;
  text-align: left;
  text-wrap: pretty;
}

.intro-lead-mobile-break {
  display: none;
}

.convergence-title-mobile-break {
  display: none;
}

.intro-copy .numeric-accent {
  display: inline-block;
  font-family: var(--num-font);
  font-size: 1.13em;
  font-weight: 300;
  font-feature-settings: "tnum" 1, "palt" 0;
  letter-spacing: -.045em;
  line-height: .9;
  vertical-align: -.025em;
}

.intro-copy > p:not(.lead) {
  margin: 0;
  text-align: left;
}

.intro-copy > p:not(.lead) + p {
  margin-top: 32px;
}

@media (min-width: 981px) {
  .intro {
    padding-top: clamp(72px, 7vw, 104px);
  }
}

.facts {
  grid-column: 1 / -1;
  display: grid;
  width: min(calc(100% - 64px), 1180px);
  grid-template-columns: repeat(4, 1fr);
  margin: 30px 0 0;
  justify-self: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts div {
  display: grid;
  min-height: 250px;
  align-content: center;
  justify-items: center;
  padding: 42px clamp(28px, 3vw, 46px) 36px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.facts div:first-child {
  padding-left: clamp(28px, 3vw, 46px);
}

.facts div:last-child {
  border-right: 0;
}

.facts dt {
  font-family: var(--num-font);
  font-size: clamp(64px, 6.5vw, 92px);
  font-weight: 200;
  font-feature-settings: "tnum" 1, "palt" 0;
  line-height: .95;
  letter-spacing: -.045em;
}

.facts dd {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
}

.office-photo-wrap {
  width: min(calc(100% - clamp(40px, 8vw, 128px)), 1280px);
  margin: 0 auto;
  padding-inline: var(--page-inner-padding);
}

.office-photo {
  --fact-content-inset: clamp(28px, 3vw, 46px);
  position: relative;
  width: min(
    calc(100% - 64px - var(--fact-content-inset) - var(--fact-content-inset)),
    calc(1180px - var(--fact-content-inset) - var(--fact-content-inset))
  );
  width: min(
    calc(100% - 64px - var(--fact-content-inset) - var(--fact-content-inset)),
    calc(1180px - var(--fact-content-inset) - var(--fact-content-inset)),
    calc((100svh - clamp(240px, 28svh, 300px)) * 1.5)
  );
  /* 元写真の比率を保ち、社屋の頂部から足元まで見せる */
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef1f1;
}

.office-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.discipline-convergence {
  position: relative;
  min-height: clamp(1020px, 65vw, 1120px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

#discipline-convergence-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.discipline-convergence-animation-trigger {
  position: absolute;
  top: 40%;
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
}

.discipline-convergence-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - clamp(40px, 8vw, 128px)), 1280px);
  min-height: clamp(1020px, 65vw, 1120px);
  padding: clamp(76px, 5.5vw, 104px) var(--page-inner-padding) clamp(44px, 4vw, 60px);
  pointer-events: none;
}

.discipline-convergence-copy {
  width: min(100%, 1180px);
  margin-inline: auto;
  pointer-events: auto;
}

.discipline-convergence-copy h2 {
  margin: 0 0 clamp(64px, 5vw, 88px);
  font-family: var(--jp-font);
  font-size: clamp(36px, 3.9vw, 62px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-align: center;
  white-space: nowrap;
}

.discipline-convergence-columns {
  display: grid;
  width: min(100%, 1120px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-inline: auto;
}

.discipline-convergence-column {
  min-width: 0;
  padding-right: clamp(44px, 4.6vw, 72px);
}

.discipline-convergence-column + .discipline-convergence-column {
  padding-right: 0;
  padding-left: clamp(44px, 4.6vw, 72px);
  border-left: 1px solid var(--line);
}

.discipline-convergence-column h3 {
  margin: 0 0 32px;
  color: var(--ink);
  font-family: var(--jp-font);
  font-size: clamp(23px, 1.9vw, 32px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .01em;
}

.discipline-convergence-column p {
  margin: 0;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.discipline-convergence-cta {
  position: absolute;
  right: 0;
  bottom: clamp(56px, 5.2vw, 76px);
  width: min(100%, 520px);
  pointer-events: auto;
}

.discipline-convergence-direction {
  display: grid;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  padding-bottom: 12px;
  font-family: var(--jp-font);
  font-size: clamp(29px, 2.75vw, 42px);
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.4;
  text-decoration: none;
}

.discipline-convergence-direction::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--red) 0%, #ff00ff 25%, var(--blue) 50%, #00ffff 75%, var(--green) 100%);
  transform: scaleX(.34);
  transform-origin: left center;
  transition: transform .35s ease;
}

.discipline-convergence-direction:hover::after,
.discipline-convergence-direction:focus-visible::after {
  transform: scaleX(1);
}

.section--dark {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.workflow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-steps::before {
  content: none;
}

.workflow-steps li {
  position: relative;
  min-height: 250px;
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}

.workflow-steps li:first-child {
  padding-left: 0;
}

.workflow-steps li:last-child {
  border-right: 0;
}

.workflow-steps span {
  color: var(--muted);
  font-family: var(--num-font);
  font-size: 18px;
  font-weight: 500;
  font-feature-settings: "tnum" 1;
  letter-spacing: .06em;
}

.workflow-steps h2 {
  margin: 62px 0 20px;
  font-family: inherit;
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 300;
}

.workflow-steps p {
  margin: 0;
  color: var(--muted);
  font-family: var(--jp-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.company-visual-section,
.recruit-bottom-visual-section {
  padding-top: 0;
  background: var(--paper);
}

.company-visual-section {
  padding-bottom: clamp(64px, 8vw, 113px);
}

.recruit-bottom-visual-section {
  padding-bottom: 0;
}

.company-visual,
.recruit-bottom-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: #eef1f1;
}

.company-visual img,
.recruit-bottom-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.access-map-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 30px;
  font-family: var(--base-font);
  font-size: clamp(13px, .82vw, 15px);
  font-weight: 400;
  letter-spacing: .02em;
  /* 触れる前からリンクだと分かるように下線を出す（スマホにはホバーがない） */
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.access-map-link:hover,
.access-map-link:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.recruit {
  background: var(--paper);
}

.recruit-openings {
  padding-top: clamp(64px, 8vw, 113px);
  background: var(--paper);
}

.recruit-openings-grid {
  display: grid;
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: start;
}

.recruit-openings-heading h2 {
  margin: 0 0 28px;
  font-size: clamp(40px, 4.3vw, 58px);
  font-weight: 300;
}

.recruit-openings-detail {
  border-top: 1px solid var(--line);
}

.recruit-opening-row {
  display: grid;
  grid-template-columns: minmax(170px, .45fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.recruit-opening-row > span,
.recruit-condition-header > span {
  color: var(--muted);
  font-family: var(--num-font);
  font-size: 13px;
  letter-spacing: .08em;
}

.recruit-opening-row h3,
.recruit-condition-header h3 {
  margin: 0;
  font-family: var(--jp-font);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 300;
  line-height: 1.35;
}

.recruit-opening-row p,
.recruit-condition-header p {
  margin: 0;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.recruit-condition {
  border-bottom: 0;
}

.recruit-condition-header {
  display: grid;
  grid-template-columns: minmax(170px, .45fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
  padding: 42px 0 28px;
}

.recruit-condition-list {
  margin: 0 0 46px clamp(48px, 5.5vw, 84px);
  border-top: 1px solid var(--line);
  font-family: var(--jp-font);
}

.recruit-condition-list div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.recruit-condition-list dt {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.recruit-condition-list dd {
  margin: 0;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.recruit-application {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: clamp(64px, 7vw, 104px);
  border: 1px solid var(--line);
  background: transparent;
}

.recruit-application h3 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: clamp(30px, 3.5vw, 48px);
  color: var(--ink);
  font-family: var(--jp-font);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 300;
  line-height: 1.35;
  white-space: nowrap;
}

.recruit-application-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recruit-application-actions a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 132px;
  padding: 24px;
  color: var(--ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.recruit-application-actions a span {
  position: relative;
  display: inline-block;
  padding-bottom: 7px;
}

/* 応募導線はこの2つだけなので、触れる前から押せると分かる状態にしておく。
   ホバーで下線が濃くなる動きは残す。 */
.recruit-application-actions a span::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
  transition: background-color .35s ease;
}

.recruit-application-actions a:hover span::after,
.recruit-application-actions a:focus-visible span::after {
  background: currentColor;
}

.profile {
  padding-top: clamp(64px, 8vw, 113px);
  padding-bottom: clamp(48px, 5vw, 72px);
  background: var(--paper);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1.55fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.profile-list {
  margin: 0;
  border-top: 1px solid var(--line);
  font-family: var(--jp-font);
}

.profile-list div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.profile-list dt {
  color: var(--muted);
}

.profile-list dd {
  margin: 0;
}

.profile-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-detail-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 500;
}

.contact-form-section {
  padding-top: clamp(64px, 8vw, 113px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* ページタイトルと同じ本文基準に揃え、その中でフォーム幅を読みやすく保つ。 */
.contact-form-grid {
  display: block;
  width: min(100%, var(--content));
  margin-inline: auto;
}

.contact-form-telephone,
.contact-form-note,
.contact-form {
  width: min(100%, 900px);
}

.contact-form-note {
  width: min(100%, 900px);
  margin: 0 auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--jp-font);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.contact-form-telephone {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: 0 auto 34px;
  padding: 24px 0;
  border-bottom: 1px solid transparent;
  font-family: var(--jp-font);
}

.contact-form-telephone span {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.6;
  white-space: nowrap;
}

.contact-form-telephone a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-family: var(--num-font);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.4;
}

.contact-form {
  margin-inline: auto;
  border-top: 1px solid transparent;
}

.contact-field {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-field label {
  padding-top: 12px;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: 1.6;
}

.contact-field label span {
  color: var(--muted);
  font-size: 12px;
}

.contact-field label em {
  color: var(--red);
  font-style: normal;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--body-size) / 1.7 var(--jp-font);
}

.contact-field input,
.contact-field select {
  min-height: 52px;
  padding: 10px 14px;
}

.contact-field textarea {
  min-height: 220px;
  padding: 14px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid transparent;
}

.contact-turnstile {
  margin: 0 0 26px;
  min-height: 65px;
}

.contact-turnstile:empty {
  margin: 0;
  min-height: 0;
}

.contact-consent {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 30px 0;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: 14px;
  line-height: 1.8;
}

.contact-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--ink);
}

.contact-submit {
  display: block;
  width: min(100%, 280px);
  min-height: 60px;
  margin-left: auto;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--jp-font);
  font-size: 17px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #f5f5f5;
  color: var(--ink);
}

/* キーボード操作時、背景の薄いグレーだけでは位置が分からないため輪郭を出す */
.contact-submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .62;
}

.contact-form-status {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: 1.8;
}

.contact-form-status.is-error {
  border-color: var(--red);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .contact-field {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

  .contact-field label {
    padding-top: 0;
  }

  .contact-form-telephone {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-form.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

body.mobile-intro-gated #about .section-heading {
  visibility: hidden;
  opacity: 0;
  transform: translateY(90px);
}

#about .section-heading.reveal {
  transition: opacity .15s ease-out, transform .46s cubic-bezier(.08, 1.34, .2, 1);
}

/* 下層ページ */
.subpage .site-header {
  background-color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.subpage-main {
  padding-top: 88px;
}

.page-hero {
  padding: clamp(92px, 10vw, 150px) clamp(20px, 4vw, 64px) clamp(47px, 5.0625vw, 74px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

/* 下位ページのタイトルは、そのページ本文（.section-inner）と同じ左端に置く。
   .page-hero 側に左右の余白があるため、ここで padding-inline を足すと二重になる。 */
.page-hero-grid {
  display: grid;
  width: min(100%, var(--content));
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: clamp(50px, 8vw, 120px);
  align-items: end;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: var(--jp-font);
  font-size: clamp(68px, 9vw, 132px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.simple-title-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.simple-title-hero h1 {
  font-size: clamp(60px, 7vw, 102px);
  line-height: 1.1;
  transform: translateY(clamp(4px, 1vw, 13px));
  white-space: nowrap;
}

.designs-title-number {
  display: inline-block;
  margin-right: .015em;
  font-family: var(--num-font);
  font-size: 1.24em;
  font-weight: 250;
  line-height: .88;
  vertical-align: -.035em;
}

.designs-label-number {
  display: inline-block;
  font-family: var(--num-font);
  font-size: 1.06em;
  font-weight: 200;
  line-height: 1;
}

.global-nav .designs-label-number {
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
}

.design-process-section {
  padding: clamp(46px, 5vw, 72px) clamp(20px, 4vw, 64px) clamp(64px, 6vw, 92px);
  border-top: 0;
  background: var(--paper);
}

.design-process-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, var(--content));
}

.design-process-copy {
  max-width: none;
  margin: clamp(60px, 6vw, 88px) auto 0;
  color: var(--muted);
  font-family: var(--jp-font);
  font-size: clamp(36px, 3.9vw, 62px);
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
}

.design-process-mobile-break {
  display: none;
}

.design-role-summary-mobile-break {
  display: none;
}

.design-process-steps {
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-top: 0;
  border-top-color: transparent;
  background: var(--paper);
}

.design-process-steps::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, #ff00ff 25%, var(--blue) 50%, #00ffff 75%, var(--green) 100%);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.35s cubic-bezier(.16, 1, .3, 1);
}

.design-process-steps.is-revealed::after {
  transform: scaleX(1);
}

.design-process-steps li {
  border-right: 0;
  opacity: 0;
  text-align: center;
  transform: translateX(-22px);
  transition: opacity .55s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}

.design-process-steps.is-revealed li {
  opacity: 1;
  transform: translateX(0);
}

.design-process-steps li:nth-child(1) { transition-delay: .12s; }
.design-process-steps li:nth-child(2) { transition-delay: .25s; }
.design-process-steps li:nth-child(3) { transition-delay: .38s; }

.design-process-steps li:first-child {
  padding-left: 24px;
}

.design-process-steps h2,
.design-role-summary h2 {
  margin-top: 24px;
  font-size: clamp(36px, 3.9vw, 62px);
  line-height: 1.35;
}

.design-process-steps p {
  font-size: var(--body-size);
}

.design-process-section + .discipline-detail {
  border-top: 0;
}

.discipline-detail {
  --accent: var(--ink);
  scroll-margin-top: 88px;
  padding-block: clamp(64px, 8vw, 113px);
  border-top: 1px solid var(--line);
}

.discipline-detail--red { --accent: var(--red); }
.discipline-detail--green { --accent: var(--green); }
.discipline-detail--blue { --accent: var(--blue); }

.discipline-detail--green {
  padding-bottom: clamp(8px, 1vw, 14px);
}

.discipline-detail-inner {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(340px, 1.2fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
  width: min(100%, var(--content));
  margin: 0 auto;
}

.discipline-detail h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.3;
}

.discipline-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: end;
  width: min(100%, var(--content));
  margin: clamp(36px, 4.5vw, 64px) auto 0;
}

.discipline-detail--green .discipline-gallery {
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
}

.discipline-detail--green .discipline-gallery-item--primary {
  order: 2;
}

.discipline-detail--green .discipline-gallery-item--secondary {
  order: 1;
}

.discipline-gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.discipline-gallery-item--secondary {
  margin-bottom: clamp(18px, 4vw, 58px);
}

.discipline-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.company-message,
.recruit-message {
  padding-bottom: clamp(36px, 5vw, 70px);
}

.company-message-heading {
  max-width: 760px;
  margin: 0 auto clamp(20px, 2.8vw, 36px);
  font-family: var(--jp-font);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 300;
  line-height: 1.45;
}

@media (min-width: 761px) {
  .company-message-heading {
    max-width: none;
    font-size: clamp(36px, 3.9vw, 62px);
    font-weight: 300;
  }
}

.profile h2 {
  font-size: clamp(40px, 4.3vw, 58px);
  white-space: nowrap;
}

.history {
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(64px, 8vw, 113px);
  background: var(--paper);
}

.access {
  padding-block: clamp(64px, 8vw, 113px);
}

.history-grid,
.access-grid {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 2.15fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.history h2,
.access h2 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 70px);
  line-height: 1.3;
}

.access h2 {
  font-size: clamp(40px, 4.3vw, 58px);
  white-space: nowrap;
}

.history-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.history-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.history-list time {
  color: var(--muted);
  font-family: var(--num-font);
  font-size: 14px;
  font-feature-settings: "tnum" 1, "palt" 0;
  letter-spacing: .04em;
}

.history-list p {
  margin: 0;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

/* 地図の右端を、沿革や会社情報の罫線と同じ位置に揃える。
   max-width を残すと本文列より 14〜26px 手前で止まる。 */
.access-detail {
  padding-top: 6px;
}

.access-detail h3 {
  margin: 0 0 24px;
  font-family: var(--jp-font);
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.45;
}

.access-detail address {
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  font-style: normal;
  line-height: var(--body-leading);
}

.access-map {
  width: 100%;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.access-map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 440px);
  border: 0;
}

.discipline-detail-copy > p {
  margin-bottom: 28px;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.subpage-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 300;
  line-height: 1.85;
}

.subpage .profile-grid {
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1.55fr);
}

.subpage .facts {
  width: 100%;
  margin: 0;
}

@media (max-width: 980px) {
  .global-nav {
    gap: 18px;
  }

  .global-nav a {
    font-size: 13px;
  }

  .intro-grid,
  .profile-grid,
  .history-grid,
  .access-grid {
    /* minmax(0,1fr) にしないと、中の表の min-content が列幅を押し広げて
       狭い画面（〜353px）で横にはみ出す */
    grid-template-columns: minmax(0, 1fr);
  }

  .subpage .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-copy {
    max-width: 680px;
    padding-left: 0;
    border-left: 0;
  }

  .discipline-convergence-copy {
    width: min(calc(100% - 64px), 1180px);
  }

  .profile-grid {
    gap: 50px;
  }

  .profile-list,
  .history-list {
    max-width: 760px;
  }

  .history-grid,
  .access-grid {
    gap: 50px;
  }

  .page-hero-grid,
  .discipline-detail-inner {
    grid-template-columns: 1fr;
  }

  .simple-title-hero {
    padding-top: clamp(48px, 5vw, 72px);
  }

  .design-process-copy {
    max-width: 100%;
    margin-left: auto;
  }

  .discipline-gallery {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
    gap: 22px;
  }

  .discipline-detail--green .discipline-gallery {
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-header-height: 86px;
  }

  .hero {
    height: 100vh;
    height: 100svh;
  }

  .site-header {
    min-height: var(--mobile-header-height);
    padding: 10px 14px;
    background-color: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    transform: none;
  }

  .site-header.is-visible {
    transform: none;
  }

  body.mobile-header-awaiting-interaction .site-header {
    opacity: 0;
    transform: translateY(-110%);
    pointer-events: none;
  }

  .header-brand img {
    width: 138px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 13px 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 1px;
    margin: auto;
    background: var(--ink);
    transition: transform .3s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    top: var(--mobile-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    height: auto;
    max-height: none;
    padding: 40px 28px;
    overflow-y: auto;
    background-color: #fff;
    clip-path: inset(0 0 100% 0);
    opacity: 1;
    pointer-events: none;
    transform: none;
    transform-origin: top;
    transition: clip-path .5s cubic-bezier(.16, 1, .3, 1);
  }

  .global-nav.is-open {
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
  }

  .global-nav a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-family: inherit;
    font-size: 22px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .38s cubic-bezier(.16, 1, .3, 1);
  }

  .global-nav a::after {
    display: none;
  }

  .global-nav.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .global-nav.is-open a:nth-child(1) { transition-delay: .08s; }
  .global-nav.is-open a:nth-child(2) { transition-delay: .14s; }
  .global-nav.is-open a:nth-child(3) { transition-delay: .2s; }
  .global-nav.is-open a:nth-child(4) { transition-delay: .26s; }

  .section {
    padding: 92px 22px;
  }

  .intro {
    scroll-margin-top: var(--mobile-header-height);
    padding-top: 19px;
  }

  .intro-grid {
    gap: 50px;
    padding-inline: 0;
  }

  .section-heading h1 {
    font-size: clamp(38px, 11.5vw, 50px);
    line-height: 1.44;
  }

  .section-heading {
    padding-top: 24px;
    border-top: 0;
    text-align: center;
  }

  .intro-copy {
    font-size: var(--body-size);
    line-height: var(--body-leading);
  }

  .intro-copy > p:not(.lead) {
    font-size: calc(var(--body-size) + 1px);
    line-height: 2;
    overflow-wrap: anywhere;
    text-align: left;
    text-align-last: auto;
    text-wrap: pretty;
    word-break: break-all;
  }

  .intro-copy .lead {
    position: relative;
    margin-bottom: 40px;
    padding-block: 32px;
    border-block: 1px solid var(--line);
    border-top: 0;
    font-size: clamp(30px, 8.4vw, 36px);
    line-height: 1.65;
  }

  .intro-copy .lead::before {
    position: absolute;
    top: -7px;
    right: -22px;
    left: -22px;
    height: 1px;
    background: var(--line);
    content: "";
  }

  .intro-lead-mobile-break {
    display: block;
  }

  .facts {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }

  .facts div,
  .facts div:first-child {
    min-height: 170px;
    padding: 24px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .facts div:nth-child(2n) {
    border-right: 0;
  }

  .facts div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .facts dt {
    font-size: clamp(50px, 14vw, 64px);
  }

  .discipline-convergence,
  .discipline-convergence-inner {
    min-height: 0;
  }

  .office-photo {
    width: 100%;
    /* スマホでも空と足元を切らず、建物の角を中心に見せる */
    aspect-ratio: 3 / 2;
  }

  .office-photo-wrap {
    width: calc(100% - 44px);
    padding-inline: 0;
  }

  .discipline-convergence-inner {
    width: 100%;
    padding: 72px 22px var(--page-end-reference-gap);
  }

  .discipline-convergence-animation-trigger {
    top: 38%;
  }

  .discipline-convergence-copy {
    width: 100%;
  }

  .discipline-convergence-copy h2 {
    margin-bottom: 64px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line);
    font-size: 34px;
    line-height: 1.55;
    letter-spacing: -.025em;
    text-align: center;
  }

  .convergence-title-mobile-break {
    display: block;
  }

  .discipline-convergence-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .discipline-convergence-column {
    padding-right: 0;
  }

  .discipline-convergence-column + .discipline-convergence-column {
    margin-top: 58px;
    padding-top: 58px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .discipline-convergence-column h3 {
    margin-bottom: 28px;
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.55;
  }

  .discipline-convergence-column p {
    font-size: var(--body-size);
    line-height: 2.1;
  }

  .discipline-convergence-cta {
    position: static;
    width: 100%;
    margin-top: calc(127px + min(24.1vw, 180px));
  }

  .discipline-convergence-direction {
    margin-left: auto;
    text-align: right;
    font-size: clamp(28px, 8vw, 33px);
  }

  .discipline-convergence-direction::after {
    margin-top: 10px;
  }

  .profile h2,
  .history h2,
  .access h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-steps li {
    min-height: 220px;
    padding: 24px 18px;
    border-bottom: 1px solid var(--line);
  }

  .design-process-steps li {
    border-right: 0;
    border-bottom: 0;
  }

  .design-process-steps {
    grid-template-columns: 1fr;
  }

  .design-process-steps li:first-child {
    padding-left: 18px;
  }

  .workflow-steps li:nth-child(2n) {
    border-right: 0;
  }

  .workflow-steps li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .workflow-steps li:first-child {
    padding-left: 18px;
  }

  .workflow-steps h2 {
    margin-top: 48px;
  }

  .design-process-steps h2 {
    margin-top: 24px;
  }

  .recruit {
    min-height: 0;
  }

  .recruit-openings-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .recruit-opening-row,
  .recruit-condition-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .recruit-opening-row p,
  .recruit-condition-header p {
    grid-column: 1;
  }

  .recruit-condition-list {
    margin: 0 0 36px 28px;
  }

  .recruit-condition-list div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 15px 0;
  }

  .recruit-application {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 52px;
  }

  .recruit-application h3 {
    padding: 26px 24px;
  }

  .recruit-application-actions {
    grid-template-columns: 1fr;
  }

  .recruit-application-actions a {
    min-height: 88px;
    padding: 20px;
    white-space: normal;
  }

  .recruit-application-actions a + a {
    border-left: 0;
  }

  /* 項目名を上、内容を下へ。採用情報の募集要項と同じ組み方に揃える。
     横並びのままだと内容の幅が足りず、社名や住所が行末で割れる。 */
  .profile-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 22px 0;
  }

  .profile-list dt {
    font-size: 14px;
    letter-spacing: .02em;
  }

  .profile-list {
    min-width: 0;
  }

  .history-list li {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 20px;
  }

  .subpage-main {
    padding-top: var(--mobile-header-height);
  }

  .page-hero {
    padding: 72px 22px 43px;
  }

  .simple-title-hero {
    padding-top: 48px;
  }

  .page-hero-grid {
    gap: 44px;
    padding-inline: 0;
  }

  .page-hero h1 {
    font-size: clamp(52px, 18vw, 78px);
    line-height: 1.18;
  }

  .simple-title-hero h1 {
    font-size: clamp(38px, 11.5vw, 50px);
    line-height: 1.12;
    transform: translateY(6px);
  }

  .designs-title-number {
    font-weight: 300;
  }

  .design-process-section {
    padding: 48px 22px 64px;
  }

  .design-process-copy {
    max-width: 100%;
    margin: 48px auto 0;
    font-size: 22px;
    line-height: 1.8;
    text-align: center;
    white-space: normal;
  }

  .discipline-detail-inner {
    gap: 24px;
  }

  .discipline-gallery,
  .discipline-detail--green .discipline-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 29px;
  }

  .discipline-detail--green .discipline-gallery-item--primary,
  .discipline-detail--green .discipline-gallery-item--secondary {
    order: initial;
  }

  .discipline-gallery-item--secondary {
    width: 78%;
    margin: 0 0 0 auto;
  }

  .discipline-detail h2 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .discipline-detail {
    scroll-margin-top: var(--mobile-header-height);
    padding-block: 61px 77px;
  }

  .company-visual-section,
  .recruit-bottom-visual-section {
    padding-top: 0;
  }

  .company-visual-section {
    padding-bottom: 61px;
  }

  .recruit-bottom-visual-section {
    padding-bottom: 0;
  }

  .profile,
  .recruit-openings {
    padding-top: 61px;
  }

  .recruit-message {
    padding-bottom: 41px;
  }

  .profile {
    padding-bottom: 61px;
  }

  .history {
    padding-block: 61px;
  }

  .access {
    padding-top: 61px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}

/* 各ページの最後の要素から画面下端までに、共通の余白を設ける */
.subpage-main > section:last-child,
body:not(.subpage) main > section:last-child {
  padding-bottom: clamp(94px, 11.7vw, 166px);
}

/* 3つのデザイン：ページ最下部の役割まとめ */
.design-role-summary {
  /* 左右は .section と同じ基準にする。--page-inner-padding のままだと
     1024px 付近で上のセクションと左右が 10px ずれる */
  padding: clamp(14px, 1.25vw, 20px) clamp(20px, 4vw, 64px) 0;
  border-top: 0;
  background: var(--paper);
}

.subpage-main > .design-role-summary:last-child {
  padding-bottom: clamp(94px, 11.7vw, 166px);
}

.design-role-summary-inner {
  width: min(100%, var(--content));
}

.design-role-summary h2 {
  max-width: 1080px;
  margin: clamp(32px, 3vw, 45px) auto 0;
  color: var(--muted);
  font-family: var(--jp-font);
  font-size: clamp(36px, 3.9vw, 62px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-align: center;
  white-space: nowrap;
}

.design-role-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(42px, 6vw, 88px);
  margin-top: clamp(42px, 4vw, 60px);
  padding-top: clamp(56px, 5vw, 76px);
}

.design-role-summary-item {
  --accent: var(--ink);
  position: relative;
  text-align: center;
}

.design-role-summary-item::before {
  content: none;
}

.design-role-summary-item--product { --accent: var(--red); }
.design-role-summary-item--graphic { --accent: var(--blue); }
.design-role-summary-item--multimedia { --accent: var(--green); }

.design-role-mobile {
  position: relative;
  height: clamp(300px, 28vw, 380px);
  margin-top: 0;
  overflow: visible;
  isolation: isolate;
  perspective: 1100px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
}

.design-role-mobile-band {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  height: clamp(7px, .67vw, 9px);
  backface-visibility: hidden;
  mix-blend-mode: screen;
  transform-style: preserve-3d;
  will-change: transform;
}

.design-role-mobile-band--red {
  z-index: 1;
  width: 88%;
  background: #ff0000;
  transform: translate3d(-50%, -50%, 28px) rotateX(2deg) rotateY(-46deg) rotateZ(10deg);
  transform-origin: 47% 50%;
  animation: design-mobile-red 20s ease-in-out infinite;
}

.design-role-mobile-band--blue {
  z-index: 2;
  width: 88%;
  background: #0000ff;
  transform: translate3d(-50%, -50%, -8px) rotateX(-2deg) rotateY(44deg) rotateZ(-11deg);
  transform-origin: 54% 50%;
  animation: design-mobile-blue 24.5s ease-in-out -6.3s infinite;
}

.design-role-mobile-band--green {
  z-index: 3;
  width: 88%;
  background: #00ff00;
  transform: translate3d(-50%, -50%, -38px) rotateX(3deg) rotateY(-42deg) rotateZ(-12deg);
  transform-origin: 45% 50%;
  animation: design-mobile-green 29.5s ease-in-out -12.1s infinite;
}

@keyframes design-mobile-red {
  0%, 100% { transform: translate3d(-50%, calc(-50% - 5px), 19px) rotateX(2deg) rotateY(-46deg) rotateZ(10deg); }
  43% { transform: translate3d(-50%, calc(-50% + 5px), -16px) rotateX(-2deg) rotateY(46deg) rotateZ(-10deg); }
}

@keyframes design-mobile-blue {
  0%, 100% { transform: translate3d(-50%, calc(-50% + 4px), -5px) rotateX(-2deg) rotateY(44deg) rotateZ(-11deg); }
  57% { transform: translate3d(-50%, calc(-50% - 5px), 27px) rotateX(2deg) rotateY(-44deg) rotateZ(11deg); }
}

@keyframes design-mobile-green {
  0%, 100% { transform: translate3d(-50%, calc(-50% - 6px), -25px) rotateX(3deg) rotateY(-42deg) rotateZ(-12deg); }
  48% { transform: translate3d(-50%, calc(-50% + 6px), 17px) rotateX(-2deg) rotateY(42deg) rotateZ(12deg); }
}

.design-role-summary-item h3 {
  display: flex;
  min-height: 1.35em;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--jp-font);
  font-size: clamp(22px, 2.4vw, 40px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.design-role-summary-item h3 span {
  display: block;
}

.design-role-summary-item p {
  max-width: 330px;
  margin: 24px auto 0;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  text-align: left;
}

.design-role-summary-skills {
  max-width: 330px;
  margin: clamp(30px, 3vw, 42px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--body-ink);
  font-family: var(--jp-font);
  text-align: left;
}

.design-role-summary-skills dt {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(13px, .9vw, 15px);
  line-height: 1.5;
}

.design-role-summary-skills dd {
  margin: 0;
  font-size: var(--body-size);
  line-height: 1.9;
}

/* 3つのデザイン：ページを静かに締めるお問い合わせ導線 */
.designs-closing {
  --designs-closing-rhythm: clamp(114px, 12vw, 168px);
  padding: var(--designs-closing-rhythm) clamp(20px, 4vw, 64px) var(--page-end-reference-gap);
  border-top: 0;
  background: var(--paper);
}

.subpage-main > .designs-closing:last-child {
  padding-bottom: var(--page-end-reference-gap);
}

.designs-closing-inner {
  display: flex;
  width: min(100%, var(--content));
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.designs-closing-line {
  display: block;
  width: clamp(124px, 12vw, 174px);
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, #ff00ff 25%, var(--blue) 50%, #00ffff 75%, var(--green) 100%);
}

.designs-closing p {
  margin: var(--designs-closing-rhythm) 0 0;
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 2;
}

.designs-closing-link {
  display: grid;
  width: min(100%, 300px);
  min-height: 64px;
  margin-top: clamp(40px, 4vw, 56px);
  place-items: center;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--jp-font);
  font-size: 17px;
  letter-spacing: .02em;
  transition: background-color .25s ease, color .25s ease;
}

.designs-closing-link:hover,
.designs-closing-link:focus-visible {
  background: #f5f5f5;
  color: var(--ink);
}

@media (max-width: 760px) {
  .discipline-detail--green {
    padding-bottom: 7px;
  }

  .design-role-summary {
    padding-top: 14px;
    padding-inline: 22px;
  }

  .subpage-main > .design-role-summary:last-child {
    padding-bottom: 94px;
  }

  .design-role-summary h2 {
    font-size: 36px;
    line-height: 1.55;
    line-break: strict;
    text-align: center;
    word-break: auto-phrase;
    white-space: normal;
  }

  .design-role-summary-mobile-break {
    display: block;
  }

  .design-process-steps h2 {
    margin-top: 0;
    margin-bottom: 7.5px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: clamp(40px, 11.5vw, 46px);
    line-height: 1.3;
  }

  .design-process-steps li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 175.333px;
    padding: 0 18px;
  }

  .design-process-steps {
    padding-bottom: 43px;
  }

  .design-process-copy {
    margin-top: 76px;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.55;
  }

  .design-process-mobile-break {
    display: block;
  }

  .design-process-copy.reveal {
    transform: none;
    transition: opacity .9s ease;
  }

  .design-process-steps h2::after {
    display: none;
  }

  .design-process-steps li:not(:last-child)::after {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    width: auto;
    height: 1px;
    background: var(--line);
    content: "";
  }

  .design-role-summary-item h3 {
    min-height: 1.55em;
    /* 本文は text-align: left なので、見出しも左へ揃える。
       h3 は flex のため text-align では効かない。 */
    justify-content: flex-start;
    font-size: clamp(26px, 8.5vw, 30px);
    white-space: nowrap;
  }

  .design-role-summary-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 52px;
    padding-top: 44px;
    border-top: 1px solid var(--line);
  }

  .design-role-summary-item:not(:last-child) {
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line);
  }

  .design-role-summary-item + .design-role-summary-item {
    padding-top: 44px;
  }

  .design-role-summary-item::before {
    display: none;
  }

  .design-role-summary-item,
  .design-role-summary-item p {
    text-align: left;
  }

  .design-role-mobile {
    height: 240px;
    margin-top: 0;
    perspective: 780px;
  }

  .design-role-summary h2 {
    margin-top: 26px;
  }

  .design-role-mobile-band {
    height: 7px;
  }

  .design-role-mobile-band--red,
  .design-role-mobile-band--blue,
  .design-role-mobile-band--green {
    width: 92%;
  }

  .design-role-summary-item p {
    max-width: none;
    margin-top: 16px;
  }

  .design-role-summary-skills {
    max-width: none;
    padding-top: 0;
    border-top: 0;
  }

  .designs-closing {
    --designs-closing-rhythm: 120px;
    padding: var(--designs-closing-rhythm) 22px var(--page-end-reference-gap);
  }

  .designs-closing-line {
    width: 118px;
    height: 3px;
  }

  .designs-closing p {
    max-width: 22em;
    margin-top: var(--designs-closing-rhythm);
    font-size: var(--body-size);
    line-height: 2;
  }

  .designs-closing-link {
    min-height: 60px;
    margin-top: 36px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-role-mobile-band {
    animation: none;
  }
}

/*
 * ページ下部の余白
 * トップページで実際に見えている「3つのデザイン」の下端から
 * ページ末尾までの距離を基準に、各下層ページも同じ見た目に揃える。
 */
:root {
  --page-end-reference-gap: 132px;
}

@media (min-width: 761px) {
  :root {
    --page-end-reference-gap: calc(
      clamp(94px, 11.7vw, 166px) + clamp(56px, 5.2vw, 76px) - 30px
    );
  }
}

.subpage-main > .design-role-summary:last-child {
  padding-bottom: calc(var(--page-end-reference-gap) + 30px);
}

.subpage-main > .access:last-child {
  padding-bottom: calc(var(--page-end-reference-gap) + 29px);
}

.subpage-main > .recruit-bottom-visual-section:last-child {
  padding-bottom: calc(var(--page-end-reference-gap) + 30.2px);
}

.subpage-main > .contact-form-section:last-child {
  padding-bottom: var(--page-end-reference-gap);
}


/* ------------------------------------------------------------------
   プライバシーポリシー等の規約ページ
   ------------------------------------------------------------------ */
.legal {
  padding-top: clamp(40px, 5vw, 72px);
  background: var(--paper);
}

.legal-inner {
  max-width: 860px;
  margin: 0 auto;
}

.legal-meta {
  margin: 0 0 clamp(36px, 4vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: 14px;
  line-height: 2;
}

.legal-meta span {
  display: inline-block;
  margin-right: 24px;
  white-space: nowrap;
}

.legal-body > * + * {
  margin-top: 20px;
}

.legal-body h2 {
  margin-top: clamp(40px, 4.4vw, 60px);
  color: var(--ink);
  font-family: var(--jp-font);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.7;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li,
.legal-body dd {
  color: var(--body-ink);
  font-family: var(--jp-font);
  font-size: var(--body-size);
  font-weight: 300;
  line-height: var(--body-leading);
}

.legal-body ol,
.legal-body ul {
  margin-left: 1.4em;
  padding: 0;
  list-style: none;
  counter-reset: legal-item;
}

.legal-body ol > li {
  position: relative;
  counter-increment: legal-item;
}

.legal-body ol > li::before {
  position: absolute;
  left: -1.4em;
  content: "(" counter(legal-item) ")";
  font-family: var(--num-font);
}

.legal-body ul > li {
  position: relative;
}

.legal-body ul > li::before {
  position: absolute;
  left: -1.1em;
  content: "・";
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-contact {
  margin-top: 20px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--soft);
}

.legal-contact p {
  margin: 0;
}

.legal-contact p + p {
  margin-top: 6px;
}

/*
 * 本文中のリンク。
 * サイト内の他のリンク（.access-map-link 等）は「下線のみ＋ホバーで着色」という
 * 控えめな扱いだが、同意欄や規約ページのリンクは見落とすと不利益があるため、
 * 最初から色と下線の両方でリンクだと分かるようにする。
 */
.contact-consent a,
.legal-body a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity .2s ease;
}

.contact-consent a:hover,
.contact-consent a:focus-visible,
.legal-body a:hover,
.legal-body a:focus-visible {
  opacity: .7;
}

.subpage-main > .legal:last-child {
  padding-bottom: var(--page-end-reference-gap);
}

@media (max-width: 760px) {
  /*
   * スマホでは、Safariのツールバー表示中とホーム画面から開いた場合で
   * 実際に見える高さが変わる。固定pxではなく動的ビューポートの約19%を
   * 基準にし、トップの「3つのデザイン」と各ページ末尾を同じ位置へ揃える。
   */
  :root {
    --page-end-reference-gap: calc(
      clamp(132px, 19vh, 190px) + env(safe-area-inset-bottom, 0px)
    );
  }

  @supports (height: 1dvh) {
    :root {
      --page-end-reference-gap: calc(
        clamp(132px, 19dvh, 190px) + env(safe-area-inset-bottom, 0px)
      );
    }
  }

  body:not(.subpage) main > .discipline-convergence:last-child {
    padding-bottom: 0;
  }

  body:not(.subpage) .discipline-convergence-cta {
    bottom: auto;
  }

  .subpage-main > .design-role-summary:last-child,
  .subpage-main > .designs-closing:last-child,
  .subpage-main > .access:last-child,
  .subpage-main > .recruit-bottom-visual-section:last-child,
  .subpage-main > .contact-form-section:last-child,
  .subpage-main > .legal:last-child {
    padding-bottom: var(--page-end-reference-gap);
  }
}

@media (min-width: 761px) {
  body:not(.subpage) .discipline-convergence-cta {
    bottom: clamp(56px, 5.2vw, 76px);
  }

  .subpage-main > .design-role-summary:last-child {
    padding-bottom: calc(var(--page-end-reference-gap) + 12px);
  }

}
