@font-face {
  font-family: "Montserrat";
  src: local("Montserrat Bold"), url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "Noto Sans JP";
  src: local("Noto Sans JP Bold"), url("../fonts/NotoSansJP-Bold.otf") format("opentype");
  font-display: swap;
  font-weight: 700;
}

/* コピーライト用のMedium書体。 */
@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/NotoSansJP-Medium-Copyright.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
  unicode-range: U+20, U+30-39, U+A9, U+3099, U+30A3-30A4, U+30A8, U+30AB-30AC, U+30B7-30BA, U+30C6-30C9, U+30E0-30E1, U+4F1A, U+5F0F, U+682A, U+793E;
}

/* LPの共通設定 */
.lp {
  --red: #ba2c2f;
  --salmon: #ed7d7d;
  --ink: #292929;
  --dark: #170e0e;
  --grey: #f4f4f4;
  --pink: #fbe7e8;
  --surface: #fff;
  --gradient: linear-gradient(105deg, var(--red), var(--salmon));
  --shadow: 0 4px 18px rgb(0 0 0 / 12%);
  --section-space: clamp(64px, 7.3vw, 140px);
  --gutter: clamp(20px, 4vw, 64px);
  --english: "Montserrat", "Avenir Next", Arial, sans-serif;
  margin: 0;
  background: var(--grey);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  overflow-wrap: anywhere;
}

.lp *,
.lp *::before,
.lp *::after {
  box-sizing: border-box;
}

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

.lp [hidden] {
  display: none !important;
}

.lp :focus-visible {
  outline: 3px solid #17599f;
  outline-offset: 4px;
}

.lp strong {
  color: var(--red);
}

.container {
  width: min(1280px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
  scroll-margin-top: 96px;
}

.section--white {
  border-radius: 32px;
  background-color: var(--surface);
}

/* 画面内に入ったコンテンツを、軽い移動とフェードで表示する。 */
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal-pending:not(:focus-within) {
    opacity: 0;
  }

  .reveal-visible:not(:focus-within) {
    animation: content-reveal 850ms cubic-bezier(.25, .55, .3, 1) both;
  }
}

@keyframes content-reveal {
  from {
    opacity: 0;
    translate: 0 16px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.section--tint {
  background-image:
    radial-gradient(circle at 8% 45px, #b64c4c, transparent 34px),
    radial-gradient(circle at 88% 180px, #bf7c7d, transparent 16px),
    radial-gradient(circle at 8% 685px, #bcbcbc, transparent 24px),
    linear-gradient(var(--pink), transparent 460px);
}

.section-title {
  margin-bottom: clamp(30px, 3.125vw, 60px);
}

.section-title > span {
  display: block;
  color: var(--red);
  font: 700 clamp(41px, 5vw, 96px)/1 var(--english);
}

.section-title > small {
  display: block;
  margin-top: 10px;
  font-size: clamp(14px, 1.05vw, 20px);
}

.lead {
  margin-bottom: 20px;
  font-size: clamp(22px, 1.67vw, 32px);
  line-height: 1.5;
}

.eyebrow {
  display: inline-block;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--red);
  color: var(--red);
  font: 700 24px/1.4 var(--english);
}

.grid {
  display: grid;
  gap: clamp(18px, 2.08vw, 40px);
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: .85em 1.7em;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 16px;
  line-height: 1.4;
}

.lp .button {
  color: #fff;
}

.button > span:last-child {
  display: grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font: 700 12px/1 Arial, sans-serif;
}

.button--dark {
  min-width: 180px;
  background: var(--dark);
}

.button--dark > span:last-child {
  background: var(--red);
  color: #fff;
}

.section-action {
  margin-top: clamp(32px, 3.125vw, 60px);
  text-align: center;
}

.section-action .button {
  width: min(268px, 100%);
  min-height: 72px;
  padding-inline: 46px 32px;
}

/* ヘッダーとファーストビュー */
.site-header {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 16px clamp(20px, 2.61vw, 50px);
  background: rgb(246 246 246 / 45%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-brand,
.site-nav {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 16px;
  font-size: clamp(14px, 1.15vw, 22px);
  line-height: 1.4;
}

.site-brand img {
  width: 84px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-nav {
  gap: clamp(20px, 2.08vw, 40px);
}

.site-nav a:not(.button) {
  position: relative;
}

.site-nav a:not(.button)::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: currentColor;
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
}

.lp .site-nav a:not(.button):focus-visible {
  color: var(--red);
}

.site-nav a:not(.button):focus-visible::after {
  transform: scaleX(1);
}

@media (hover: hover) {
  .lp .site-nav a:not(.button):hover {
    color: var(--red);
  }

  .site-nav a:not(.button):hover::after {
    transform: scaleX(1);
  }

  .site-nav .button:hover {
    background-color: #822225;
    filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav a:not(.button) {
    transition: color 220ms ease;
  }

  .site-nav a:not(.button)::after {
    transition: transform 220ms ease;
  }

  .site-nav .button {
    transition: background-color 220ms ease;
  }
}

.menu-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span,
.menu-toggle > span::before,
.menu-toggle > span::after {
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
}

.menu-toggle > span {
  position: relative;
}

.menu-toggle > span::before,
.menu-toggle > span::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle > span::before {
  top: -10px;
}

.menu-toggle > span::after {
  top: 10px;
}

.menu-toggle[aria-expanded="true"] > span {
  background: transparent;
}

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

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

@media (hover: hover) {
  .button:hover,
  .menu-toggle:hover {
    filter: brightness(.88);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button,
  .menu-toggle {
    transition: filter 220ms ease;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .menu-toggle > span::before,
  .menu-toggle > span::after {
    transition: transform 240ms ease;
  }

  .menu-toggle[aria-expanded="true"] + .site-nav {
    animation: mobile-menu-in 330ms ease-out both;
  }

  .menu-toggle[aria-expanded="true"] + .site-nav > a {
    animation: content-reveal 420ms cubic-bezier(.25, .55, .3, 1) both;
  }
}

@keyframes mobile-menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28.5% 82%, #ad3d3d 0, transparent 2%),
    radial-gradient(circle at 7% 27%, #b44848 0, transparent 1%),
    radial-gradient(circle at 94% 37%, #b35f5f 0, transparent 1.4%),
    radial-gradient(circle at 34% 18%, #aaa 0, transparent 1.8%),
    #f6f6f6;
}

.hero::before,
.hero::after,
.contact::before {
  position: absolute;
  width: min(35vw, 680px);
  aspect-ratio: 1;
  border: clamp(18px, 2.7vw, 52px) solid transparent;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before,
.contact::before {
  inset: 75% auto auto -13%;
  background: linear-gradient(var(--grey), var(--grey)) padding-box, var(--gradient) border-box;
}

.hero::before {
  width: min(38vw, 730px);
}

.hero::after {
  inset: -15% -8% auto auto;
  width: min(24vw, 460px);
  border-color: #c9c9c9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1920px, 100%);
  min-height: clamp(610px, 56.25vw, 1080px);
  align-items: center;
  margin-inline: auto;
  padding: 92px 0 106px 8.33%;
}

.hero h1 {
  width: max-content;
  max-width: 100%;
  padding-bottom: .47em;
  border-bottom: 3px solid var(--red);
  font-size: clamp(38px, 3.75vw, 72px);
  line-height: 1.32;
  letter-spacing: .05em;
}

.hero h1 em {
  background: var(--gradient);
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.hero-photo--office {
  top: 8.8%;
  left: 38%;
  width: 13.02%;
  aspect-ratio: 1;
  object-position: 54% center;
  transform: rotate(-3deg);
  box-shadow: -1.05vw 1.25vw #e97676;
}

.hero-photo--center {
  top: 16.2%;
  left: 53%;
  width: 27.02%;
  aspect-ratio: 518.68 / 719.98;
  overflow: hidden;
  transform: rotate(8deg);
  box-shadow: 1.46vw 1.67vw var(--red);
}

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

.hero-photo--staff {
  top: 50.93%;
  left: 83.02%;
  width: 13.8%;
  aspect-ratio: 1;
  object-position: 66% center;
  box-shadow: 1.04vw 1.25vw #d15a5b;
}

/* 写真の傾きを保ったまま、登場から緩やかな上下運動につなげる。 */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo {
    --photo-rise-time: 1350ms;
    animation:
      hero-photo-rise var(--photo-rise-time) cubic-bezier(.33, .05, .25, 1) var(--photo-delay) backwards,
      hero-photo-float var(--photo-float-time) ease-in-out calc(var(--photo-delay) + var(--photo-rise-time)) infinite;
  }

  .hero-photo--office {
    --photo-delay: 240ms;
    --photo-float-time: 4.8s;
    --photo-float-peak: clamp(8px, 1vw, 18px);
  }

  .hero-photo--center {
    --photo-delay: 100ms;
    --photo-float-time: 5.6s;
    --photo-float-peak: clamp(-22px, -1.2vw, -10px);
  }

  .hero-photo--staff {
    --photo-delay: 380ms;
    --photo-float-time: 4.2s;
    --photo-float-peak: clamp(-17px, -1vw, -8px);
  }
}

@keyframes hero-photo-rise {
  from {
    opacity: 0;
    translate: 0 clamp(12px, 1.5vw, 26px);
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes hero-photo-float {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 var(--photo-float-peak);
  }
}

/* Figmaの「固定」グループにある問い合わせ導線 */
.hero-contact {
  position: fixed;
  z-index: 2;
  right: 0;
  bottom: clamp(16px, 2.5vw, 48px);
  width: 300px;
  min-height: 84px;
  gap: 8px;
  font-size: 18px;
  padding-inline: 22px;
  border-radius: 8px 0 0 8px;
  box-shadow: var(--shadow);
}

.mail-icon {
  position: relative;
  width: 1em;
  height: .7em;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.mail-icon::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: .68em;
  height: .68em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translate(-50%, -56%) rotate(45deg);
}

.about,
.recruit-intro {
  text-align: center;
}

.about {
  background-image:
    radial-gradient(circle at 13% 28%, #b64c4c, transparent 2%),
    radial-gradient(circle at 85% 45%, #c78989, transparent .85%),
    radial-gradient(circle at 22% 76%, #bcbcbc, transparent 1.4%),
    linear-gradient(var(--pink), transparent 320px);
}

.about .eyebrow {
  font-size: clamp(26px, 1.67vw, 32px);
}

.about .about-lead {
  margin-top: clamp(28px, 2.3vw, 44px);
  margin-bottom: clamp(36px, 3.125vw, 60px);
  font-size: clamp(29px, 2.92vw, 56px);
  line-height: 1.3;
  letter-spacing: .025em;
}

.about p {
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.8;
}

.about p + p {
  margin-top: 34px;
}

.mobile-break {
  display: none;
}

/* 工程・製品・イラスト */
.business-steps {
  position: relative;
  gap: 24px;
  margin-block: 56px;
}

.business-steps::before {
  position: absolute;
  inset: 48% 5% auto;
  height: 10px;
  background: var(--red);
  content: "";
}

.business-step {
  z-index: 1;
  padding: 20px 18px 22px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0 16px rgb(0 0 0 / 9%);
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.55;
  text-align: center;
}

.business-step h3 {
  padding: 6px 4px;
  border-radius: 100px;
  background: var(--dark);
  color: #fff;
  font-size: clamp(13px, .84vw, 16px);
}

.business-step img {
  display: block;
  width: auto;
  height: clamp(68px, 4.8vw, 92px);
  margin: 20px auto;
  object-fit: contain;
}

.products {
  padding: clamp(22px, 2.9vw, 56px);
  border-radius: 16px;
  background: #eff0f1;
  text-align: center;
}

.product-list {
  gap: clamp(16px, 1.56vw, 30px);
  margin-block: 24px 30px;
}

.product-list li {
  position: relative;
  overflow: hidden;
  aspect-ratio: 368 / 230;
  border-radius: 8px;
  background: #fff;
}

.product-list img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: top;
}

.product-list h4 {
  position: absolute;
  inset: auto 0 0;
  min-height: 34%;
  padding: 1.1em .4em .85em;
  background: linear-gradient(transparent, var(--red) 86%);
  color: #fff;
  font-size: clamp(14px, 1.05vw, 20px);
  line-height: 1.4;
}

.products > p {
  display: inline-block;
  padding: 5px 26px;
  background: #fff;
  font-size: 14px;
}

.illustration {
  position: relative;
  display: flex;
  overflow: hidden;
  aspect-ratio: 400 / 220;
  align-items: flex-start;
  padding: 5%;
  border-radius: 8px;
  background: var(--grey);
}

.illustration p {
  z-index: 1;
  color: var(--red);
  font: 700 clamp(21px, 1.77vw, 34px)/1 var(--english);
  letter-spacing: -.025em;
}

.illustration img {
  position: absolute;
  inset: auto 0 0 auto;
  width: 57.5%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.illustration--strength {
  background: linear-gradient(#fff 58%, var(--red) 58%);
}

.illustration--strength p {
  font-size: clamp(21px, 2.08vw, 40px);
}

.illustration--strength > span {
  position: absolute;
  bottom: -8px;
  left: 4%;
  color: #e65d5d;
  font: 700 clamp(46px, 4.2vw, 80px)/1 var(--english);
}

.strength-title {
  margin-block: 22px;
  font-size: clamp(21px, 1.73vw, 33px);
  line-height: 1.36;
  text-align: center;
}

.strength-title small {
  font-size: .73em;
}

/* 会社情報 */
.section-photo {
  height: clamp(180px, 20.83vw, 400px);
}

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

.section-photo--company img {
  object-position: center 35%;
}

.section-photo--recruit img {
  object-position: center 67%;
}

/* 帯の外側を切り取り、写真をビューポートに固定する。 */
@media screen {
  .section-photo {
    clip-path: inset(0);
  }

  .section-photo img {
    position: fixed;
    inset: 0;
  }
}

.company-cards {
  display: grid;
  gap: 40px;
}

.company-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 59.4%) minmax(0, 40.6%);
}

.company-card--reverse {
  grid-template-columns: minmax(0, 40.6%) minmax(0, 59.4%);
}

.company-card--reverse img {
  grid-area: 1 / 1;
}

.company-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.company-card-copy {
  padding: clamp(26px, 3.125vw, 60px);
}

.company-card-copy h3 {
  margin-block: 22px 34px;
  font-size: clamp(25px, 2.08vw, 40px);
  line-height: 1.4;
}

.card-lead {
  margin-bottom: 30px;
  font-size: clamp(19px, 1.25vw, 24px);
}

.philosophy {
  text-align: center;
}

.philosophy .company-card-copy > p:last-child {
  text-align: left;
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 420px);
  align-items: center;
  gap: clamp(28px, 5.2vw, 100px);
}

.representative {
  display: grid;
  align-self: end;
  min-height: 0;
  justify-items: center;
  padding: 36px;
  border-radius: 24px;
  background: var(--grey);
}

.representative img {
  width: min(350px, 100%);
}

.signature {
  margin-top: 24px;
  text-align: right;
}

.signature b {
  margin-left: 12px;
  font-size: 24px;
}

.company-details > div {
  display: grid;
  grid-template-columns: minmax(96px, 160px) minmax(0, 1fr);
  column-gap: 8px;
}

.company-details dd,
.company-details dt {
  margin: 0;
  padding-block: 19px;
  border-bottom: 1px solid #b5b5b5;
}

.company-details dt {
  border-color: var(--red);
}

.company-map {
  display: block;
  width: 100%;
  aspect-ratio: 1112 / 240;
  margin-top: 14px;
  border: 0;
}

/* 募集職種、数字、職場環境 */
.recruit-intro {
  margin-bottom: var(--section-space);
}

.ruled-title {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #aaa;
  font-size: clamp(23px, 2.08vw, 40px);
  line-height: 1.4;
}

.ruled-title small {
  margin-left: .55em;
  color: var(--red);
  font: 700 clamp(15px, 1.05vw, 20px)/1.4 var(--english);
}

.position-panel,
.job-details {
  padding: clamp(24px, 3.125vw, 60px);
}

.position-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
  margin-bottom: 40px;
}

.position-note {
  position: relative;
  padding: 24px 20px;
  background: var(--pink);
  text-align: center;
}

.position-note::before {
  position: absolute;
  top: 45%;
  right: 100%;
  border: 12px solid transparent;
  border-right-color: var(--pink);
  content: "";
}

.tag,
.numbered-title-badge,
.flow-icon > span {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  line-height: 1.7;
}

.bullet-list {
  padding-left: 1em;
}

.bullet-list li {
  list-style: disc outside;
}

.bullet-list li::marker {
  color: var(--red);
}

.position-panel .bullet-list {
  margin-top: 14px;
  font-size: clamp(16px, 1.05vw, 20px);
}

.position-panel .bullet-list p {
  margin-bottom: 12px;
  font-size: 16px;
}

.data-card {
  padding: clamp(18px, 1.56vw, 30px) 16px;
  text-align: center;
}

.data-card dt,
.data-card dd > p {
  font-size: clamp(19px, 1.67vw, 32px);
  line-height: 1.25;
}

.data-card dt > img {
  width: 1.1em;
  height: 1.1em;
  margin-right: .1em;
  object-fit: contain;
  vertical-align: -.16em;
}

.data-number {
  display: inline-block;
  margin-right: .05em;
  font: 700 clamp(54px, 5vw, 96px)/1.4 var(--english);
}

.data-card dd {
  margin: 0;
}

.data-card small {
  font-size: 14px;
}

.culture-layout {
  display: grid;
  grid-template-columns: minmax(0, 45.3%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 2.6vw, 50px);
}

.illustration--culture {
  aspect-ratio: 580 / 410;
  align-items: center;
}

.illustration--culture p {
  font-size: clamp(26px, 2.3vw, 44px);
}

.illustration--culture img {
  object-fit: cover;
  object-position: top;
}

.culture-points li + li {
  margin-top: 36px;
}

.numbered-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  margin-block: 18px 20px;
  font-size: clamp(21px, 1.6vw, 30px);
  line-height: 1.4;
}

.culture-points .numbered-title:first-child {
  margin-top: 0;
}

.numbered-title-badge {
  padding: 4px 7px;
}

.numbered-title b {
  color: var(--red);
}

.systems-title {
  margin-top: 76px;
}

.job-details > div + div {
  margin-top: 34px;
}

.job-details dt {
  padding-bottom: 6px;
  border-bottom: 1px solid #aaa;
  color: var(--red);
  font-size: 20px;
}

.job-details dd {
  margin: 8px 0 0;
}

/* 応募フロー・お問い合わせ */
.flow-icon {
  position: relative;
  display: grid;
  aspect-ratio: 292 / 192;
  place-items: center;
  background: var(--grey);
}

.flow-icon > span {
  position: absolute;
  inset: 8px auto auto 8px;
  padding: 2px 6px;
}

.flow-icon img {
  width: 48%;
  height: 68%;
  object-fit: contain;
}

.application-flow li:not(:last-child) .flow-icon::after {
  position: absolute;
  top: calc(50% - 21px);
  left: calc(100% + 11px);
  border-block: 21px solid transparent;
  border-left: 14px solid #514c4c;
  content: "";
}

.application-flow h3 {
  margin-block: 18px 12px;
  color: var(--red);
  font-size: clamp(22px, 1.67vw, 32px);
  text-align: center;
}

.contact {
  position: relative;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background:
    radial-gradient(circle at 10% 16%, #b64c4c, transparent 34px),
    radial-gradient(circle at 4% 47%, #bcbcbc, transparent 24px),
    linear-gradient(90deg, var(--grey) 48%, transparent 70%),
    url("../img/lp/contact.jpg") right center / 57% auto no-repeat,
    var(--grey);
}

.contact::before {
  top: 79%;
}

.contact .container {
  position: relative;
}

.contact .section-title {
  margin-bottom: 46px;
}

.site-footer {
  padding: 20px var(--gutter);
  background: var(--red);
  color: #fff;
  text-align: center;
}

.site-footer small {
  font-weight: 500;
}

/* 4列と2列のレイアウトを内容に合わせて切り替える */
@media (max-width: 1000px) {
  .grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-steps::before,
  .application-flow li:not(:last-child) .flow-icon::after {
    display: none;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav .button {
    min-width: 120px;
  }

  .hero-contact {
    width: auto;
    min-height: 52px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  html.lp-menu-open {
    overflow: hidden;
  }

  .lp {
    --contact-banner-height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--contact-banner-height);
  }

  .section {
    scroll-margin-top: 16px;
  }

  .site-header {
    position: relative;
    min-height: 72px;
    column-gap: 8px;
    padding-inline: clamp(14px, 4vw, 24px);
    background: #f6f6f6;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-brand {
    flex: 1;
    gap: 8px;
    font-size: clamp(10px, 3.2vw, 16px);
    white-space: nowrap;
  }

  .site-brand img {
    width: clamp(38px, 12vw, 52px);
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 10px 16px;
  }

  /* 固定パネルにして、開閉時も本文の位置を保つ。 */
  .menu-toggle:not([hidden]) + .site-nav {
    position: fixed;
    inset: 0;
    width: auto;
    justify-content: safe center;
    align-items: center;
    gap: 18px;
    padding: 80px var(--gutter) 32px;
    overflow: auto;
    overscroll-behavior: contain;
    background: #f6f6f6;
    font-size: clamp(18px, 4.8vw, 24px);
    text-align: center;
  }

  .menu-toggle[aria-expanded="true"] + .site-nav .button {
    min-width: min(220px, 100%);
    padding-inline: 26px;
  }

  .hero-inner {
    min-height: 85vh;
    grid-template-rows: auto minmax(240px, 76vw);
    align-content: center;
    gap: 40px;
    padding: 24px var(--gutter) 56px;
  }

  .hero h1 {
    font-size: clamp(25px, 6.6vw, 48px);
  }

  .hero-photos {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .hero-photo--office {
    top: 7%;
    left: 5%;
    width: 27%;
    box-shadow: -7px 8px #e97676;
  }

  .hero-photo--center {
    top: 4%;
    left: 31%;
    width: 46%;
    box-shadow: 9px 10px var(--red);
  }

  .hero-photo--staff {
    top: 53%;
    left: 73%;
    width: 24%;
    box-shadow: 6px 8px #d15a5b;
  }

  .hero-contact {
    inset: auto 0 0;
    width: 100%;
    min-height: var(--contact-banner-height);
    justify-content: center;
    padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    font-size: 15px;
  }

  .hero-contact:focus-visible {
    outline-offset: -4px;
  }

  .mobile-break {
    display: initial;
  }

  .desktop-break {
    display: none;
  }

  .keep-phrase {
    white-space: nowrap;
  }

  .section p {
    text-wrap: pretty;
  }

  .recruit-intro {
    text-align: left;
  }

  .product-list h4 {
    display: grid;
    place-items: center;
    padding: 1em .5em .3em;
  }

  .grid--three,
  .company-card,
  .company-card--reverse,
  .message-layout,
  .position-summary,
  .culture-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #strength .grid,
  [aria-labelledby="environment-title"] .grid {
    row-gap: 56px;
  }

  .company-card--reverse img {
    grid-area: auto;
  }

  .company-card .company-card-copy {
    text-align: center;
  }

  /* 複数行の説明文は本文欄の幅に揃え、最終行と手動改行の前は左揃え。 */
  .business-copy,
  .grid:not(.business-steps) > li > p,
  .company .company-card-copy > p:last-child,
  .message-layout p:not(.signature),
  .recruit-intro > p:not(.lead),
  .position-panel .bullet-list :is(li, p),
  .culture-points > li > p,
  .job-details dd :is(li, p) {
    font-size: 15px;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-character;
    text-wrap: wrap;
  }

  .about p:not(.about-lead),
  .business-step p {
    font-size: 15px;
  }

  .position-panel .position-qualities > li {
    font-size: 17px;
  }

  .position-panel .position-qualities p {
    margin-top: 4px;
    font-size: 14px;
  }

  .position-panel .ruled-title small {
    margin-left: 0;
    white-space: nowrap;
  }

  .company-card img {
    max-height: 360px;
    aspect-ratio: 4 / 3;
  }

  .representative img {
    width: min(200px, 100%);
  }

  .company-details > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-details dt {
    padding-block: 18px 2px;
    border-bottom: 0;
    color: var(--red);
  }

  .company-details dd {
    padding-block: 0 18px;
  }

  .company-map {
    aspect-ratio: 3 / 2;
  }

  .position-note::before {
    display: none;
  }

  .contact {
    padding-bottom: max(var(--section-space), 42vw);
    background:
      linear-gradient(var(--grey) 49%, transparent 75%),
      url("../img/lp/contact.jpg") center bottom / 100% auto no-repeat,
      var(--grey);
  }
}

@media (max-width: 480px) {
  .grid--four {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-flow {
    row-gap: 56px;
  }

  .application-flow .flow-icon {
    aspect-ratio: 2 / 1;
  }

  .section-title > span {
    font-size: clamp(33px, 10vw, 46px);
  }

  .about .about-lead {
    font-size: clamp(21px, 6vw, 29px);
  }
}
