/* Minimal shared foundation for the active recruitment page. */
html,
body,
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

body {
  color: #333;
  background-color: #e7f6fe;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

body input,
body button,
body select,
body textarea {
  font: inherit;
}

body a {
  color: inherit;
}

body p {
  line-height: 1.8;
  letter-spacing: 0.05em;
}

body strong {
  font-weight: 700;
}

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

.container {
  width: 100%;
  max-width: 100%;
  margin: auto;
}

.heading {
  width: fit-content;
}

.heading__ja {
  position: relative;
  z-index: 1;
  font-family: "Zen Old Mincho", serif;
}

/* Mobile-first clone: prevent sub-pixel rounding from creating horizontal scroll. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---- Mobile-first full-screen swipe experience ---- */
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.lp-container {
  --section-gutter: clamp(18px, 5%, 24px);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lp-container::-webkit-scrollbar {
  display: none;
}

.lp-container.is-free-scroll {
  scroll-snap-type: none;
}

.swipe-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.swipe-slide > .page,
.swipe-slide > .mv {
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.swipe-slide > .page {
  display: flex;
  align-items: center;
  padding-top: clamp(28px, 8vw, 42px);
  padding-bottom: clamp(28px, 8vw, 42px);
}

.swipe-slide > .page > .container,
.swipe-slide > .page > .container > .page__wrap {
  width: 100%;
}

.swipe-slide .fade-in {
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

.lp-container.is-motion-ready .swipe-slide .fade-in {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(32px) scale(0.985);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, filter, transform;
}

.lp-container.is-motion-ready .swipe-slide.has-animated .fade-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.lp-container.is-motion-ready .swipe-slide .recruit-slide__visual.fade-in {
  transform: translateY(20px) scale(1.045);
}

.lp-container.is-motion-ready .swipe-slide.has-animated .recruit-slide__visual.fade-in {
  transform: translateY(0) scale(1);
}

.motion-char {
  display: inline-block;
  opacity: 1;
  filter: none;
  white-space: pre;
  transform: none;
}

.lp-container.is-motion-ready .swipe-slide .motion-char {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(0.85em) rotate(2deg);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(140ms + var(--char-index, 0) * 28ms);
  will-change: opacity, filter, transform;
}

.lp-container.is-motion-ready .swipe-slide.has-animated .motion-char {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) rotate(0);
}

.recruit-slide__body > *,
.recruit-requirements > div,
.recruit-entry__lead,
.recruit-entry__field,
.recruit-entry__submit {
  opacity: 1;
  transform: none;
}

.lp-container.is-motion-ready .swipe-slide .recruit-slide__body > *,
.lp-container.is-motion-ready .swipe-slide .recruit-requirements > div,
.lp-container.is-motion-ready .swipe-slide .recruit-entry__lead,
.lp-container.is-motion-ready .swipe-slide .recruit-entry__field,
.lp-container.is-motion-ready .swipe-slide .recruit-entry__submit {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(240ms + var(--motion-order, 0) * 75ms);
}

.lp-container.is-motion-ready .swipe-slide.has-animated .recruit-slide__body > *,
.lp-container.is-motion-ready .swipe-slide.has-animated .recruit-requirements > div,
.lp-container.is-motion-ready .swipe-slide.has-animated .recruit-entry__lead,
.lp-container.is-motion-ready .swipe-slide.has-animated .recruit-entry__field,
.lp-container.is-motion-ready .swipe-slide.has-animated .recruit-entry__submit {
  opacity: 1;
  transform: translateY(0);
}

.lp-container.is-motion-ready .recruit-slide:not(.recruit-slide--zabuton) .page__heading::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s;
}

.lp-container.is-motion-ready .recruit-slide.has-animated:not(.recruit-slide--zabuton) .page__heading::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .lp-container.is-motion-ready .swipe-slide .fade-in,
  .lp-container.is-motion-ready .swipe-slide .motion-char,
  .lp-container.is-motion-ready .swipe-slide .recruit-slide__body > *,
  .lp-container.is-motion-ready .swipe-slide .recruit-requirements > div,
  .lp-container.is-motion-ready .swipe-slide .recruit-entry__lead,
  .lp-container.is-motion-ready .swipe-slide .recruit-entry__field,
  .lp-container.is-motion-ready .swipe-slide .recruit-entry__submit {
    opacity: 1;
    filter: none;
    transform: translateY(0);
    transition: none;
  }

  .lp-container.is-motion-ready .swipe-slide .recruit-slide__visual.fade-in {
    transform: translateY(0) scale(1);
  }

  .lp-container.is-motion-ready .recruit-slide:not(.recruit-slide--zabuton) .page__heading::after {
    transform: scaleX(1);
    transition: none;
  }
}

.swipe-progress {
  position: fixed;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 9;
  min-width: 70px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(39, 72, 91, 0.58);
  color: #fff;
  font-family: "Merriweather", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.swipe-progress__current {
  font-size: 15px;
}

.swipe-slide--hero .mv__wrap,
.swipe-slide--hero .mv__container,
.swipe-slide--hero .mv__fixed-content,
.swipe-slide--hero .mv__image-block,
.swipe-slide--hero .mv__image {
  width: 100%;
  height: 100%;
  margin: 0;
}

.swipe-slide--hero .mv__fixed-content {
  position: relative !important;
  top: auto !important;
}

.swipe-slide--hero .mv__image img,
.swipe-slide--hero .mv__image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.swipe-slide--video-intro {
  position: relative;
  overflow: hidden;
  background: #10201e;
}

.video-intro__media,
.video-intro__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-intro__media {
  display: block;
  object-fit: cover;
}

.video-intro__shade {
  background: linear-gradient(180deg, transparent 62%, rgba(6, 24, 22, 0.4) 100%);
  pointer-events: none;
}

/* ---- Ishitetus construction recruitment content ---- */
.recruit-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 48, 55, 0.1) 30%, rgba(15, 41, 48, 0.76) 100%);
}

.recruit-hero__copy {
  position: absolute;
  right: var(--section-gutter);
  bottom: clamp(92px, 18dvh, 150px);
  left: var(--section-gutter);
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.recruit-hero__copy p {
  margin-bottom: 4px;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.recruit-hero__copy h1 {
  font-size: clamp(31px, 9vw, 46px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.recruit-hero__copy span {
  display: block;
  margin-top: clamp(18px, 5vw, 28px);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.recruit-slide {
  background: #e7f6fe url("images/common/gradation-and-deco-bg.webp") left bottom / cover no-repeat;
}

.recruit-slide--alternate {
  background-color: #fff;
  background-image: url("images/common/map-bg.webp");
  background-position: center;
}

.recruit-slide > .page {
  padding: clamp(24px, 6vw, 34px) 0;
}

.recruit-slide .container {
  width: 100%;
  padding-inline: var(--section-gutter);
}

.recruit-slide .page__wrap {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 4.5dvh, 34px);
}

.recruit-slide__visual {
  position: relative;
  width: min(88%, 380px);
  margin: 0 auto;
}

.recruit-slide__visual::before {
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: -1;
  width: 72%;
  height: 76%;
  border-radius: 52% 48% 46% 54%;
  background: rgba(148, 211, 214, 0.55);
  content: "";
}

.recruit-slide--alternate .recruit-slide__visual::before {
  right: auto;
  left: -10px;
  background: rgba(245, 211, 121, 0.48);
}

.recruit-slide__visual img {
  display: block;
  width: 100%;
  height: clamp(165px, 28dvh, 250px);
  border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
  object-fit: cover;
}

.recruit-slide__text {
  box-sizing: border-box;
  width: 100%;
}

.recruit-slide .page__heading {
  margin-bottom: clamp(18px, 3vw, 24px);
}

.recruit-slide .heading__en {
  display: block;
  color: #5b9f9f;
  font-family: "Merriweather", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.recruit-slide .heading__ja {
  margin-top: 6px;
  color: #27485b;
  font-size: clamp(22px, 6.2vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}

.recruit-slide__body,
.recruit-slide__body p {
  font-size: 14px;
  line-height: 1.78;
}

.recruit-slide__body p + p {
  margin-top: clamp(10px, 2.6vw, 15px);
}

.recruit-slide__body strong {
  background: linear-gradient(transparent 60%, rgba(244, 207, 85, 0.72) 60%);
  color: #27485b;
  font-size: 1.08em;
  font-weight: 700;
}

.recruit-slide__questions {
  padding: 10px 14px;
  border-left: 3px solid #5b9f9f;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.recruit-slide__company-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid rgba(39, 72, 91, 0.24);
  font-size: 14px;
  line-height: 1.65;
}

.recruit-slide__company-list dt {
  color: #477b7d;
  font-weight: 700;
}

.recruit-slide__company-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Country-life slide: full-bleed photo with line-by-line gradient cushions. */
.recruit-slide--zabuton > .page,
.recruit-slide--zabuton .container,
.recruit-slide--zabuton .page__wrap {
  position: relative;
  height: 100%;
  padding: 0;
}

.recruit-slide--zabuton .recruit-slide__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.recruit-slide--zabuton .recruit-slide__visual::before {
  display: none;
}

.recruit-slide--zabuton .recruit-slide__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 46, 51, 0.16), rgba(7, 37, 42, 0.58));
  content: "";
}

.recruit-slide--zabuton .recruit-slide__visual img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.recruit-slide--zabuton .recruit-slide__text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(34px, 8dvh, 62px) var(--section-gutter);
  color: #fff;
}

.recruit-slide--zabuton .page__heading {
  margin-bottom: clamp(26px, 5dvh, 38px);
}

.recruit-slide--zabuton .heading__en,
.recruit-slide--zabuton .heading__ja,
.recruit-slide--zabuton .recruit-slide__zabuton {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(90deg, rgba(103, 167, 211, 0.92), rgba(180, 216, 239, 0.76));
  color: #fff;
  text-shadow: 0 1px 5px rgba(18, 53, 62, 0.24);
}

.recruit-slide--zabuton .heading__en {
  display: table;
  padding: 5px 10px;
}

.recruit-slide--zabuton .heading__ja {
  display: table;
  width: auto;
  margin-top: 8px;
  padding: 5px 12px;
}

.recruit-slide--zabuton .recruit-slide__body p {
  line-height: 2.8;
}

.recruit-slide--zabuton .recruit-slide__body p + p {
  margin-top: clamp(14px, 3dvh, 22px);
}

.recruit-slide--zabuton .recruit-slide__zabuton {
  padding: 6px 11px;
}

.recruit-slide--zabuton .recruit-slide__body strong {
  background: none;
  color: inherit;
}

.recruit-slide--recruit-catch .recruit-slide__text {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: var(--section-gutter);
  padding-left: var(--section-gutter);
}

.recruit-slide--recruit-catch .recruit-slide__catch-copy {
  width: 100%;
  text-align: left;
}

.recruit-slide--recruit-catch .recruit-slide__catch-copy p {
  font-size: clamp(25px, 7.5vw, 36px);
  font-weight: 700;
  line-height: 2.35;
}

/* Text-led layout: based on the original MV introduction. */
.recruit-slide--statement {
  background: #f7fbfd url("images/common/map-bg.webp") center / cover no-repeat;
}

.recruit-slide--statement .recruit-slide__visual {
  display: none;
}

.recruit-slide--statement .page__wrap {
  justify-content: center;
}

.recruit-slide--statement .recruit-slide__text {
  padding: clamp(28px, 8vw, 42px) 3%;
  text-align: center;
}

#anxiety .recruit-slide__text {
  padding-inline: 0;
  text-align: left;
}

#anxiety .recruit-slide__questions {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  background: none;
  box-shadow: none;
}

#anxiety .recruit-slide__questions li {
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(39, 72, 91, 0.1);
  line-height: 1.55;
}

.recruit-slide--statement .heading__ja {
  font-size: clamp(28px, 8vw, 38px);
}

.recruit-slide--statement .recruit-slide__questions {
  margin: clamp(24px, 7vw, 36px) 0;
  padding: clamp(18px, 5vw, 26px);
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(39, 72, 91, 0.1);
  font-size: clamp(15px, 4vw, 18px);
  line-height: 2.1;
}

/* Full-cover layout: based on the original special-recipe section. */
.recruit-slide--cover > .page,
.recruit-slide--cover .container,
.recruit-slide--cover .page__wrap {
  position: relative;
  height: 100%;
  padding: 0;
}

.recruit-slide--cover .recruit-slide__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  margin: 0;
}

.recruit-slide--cover .recruit-slide__visual::before {
  display: none;
}

.recruit-slide--cover .recruit-slide__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 55, 61, 0.12), rgba(22, 55, 61, 0.7));
  content: "";
}

.recruit-slide--cover .recruit-slide__visual img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  filter: saturate(0.86);
}

/* Keep both workers' faces visible; crop the lower part of the photo first. */
#solution.recruit-slide--cover .recruit-slide__visual {
  background: #1c2924;
}

#solution.recruit-slide--cover .recruit-slide__visual img {
  height: 62dvh;
  object-position: center top;
}

.recruit-slide--cover .recruit-slide__text {
  position: absolute;
  right: var(--section-gutter);
  bottom: clamp(28px, 7vw, 40px);
  left: var(--section-gutter);
  z-index: 1;
  width: auto;
  padding: clamp(20px, 5vw, 28px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(11, 37, 43, 0.2);
}

.recruit-slide--cover .heading__ja {
  font-size: clamp(24px, 6.5vw, 31px);
}

.recruit-slide--cover .recruit-slide__body,
.recruit-slide--cover .recruit-slide__body p {
  line-height: 1.6;
}

/* Overlap layout: based on the original gradation-box card. */
.recruit-slide--overlap .page__wrap {
  display: block;
}

.recruit-slide--overlap .recruit-slide__visual {
  width: 100%;
  margin: 0;
}

.recruit-slide--overlap .recruit-slide__visual::before {
  display: none;
}

.recruit-slide--overlap .recruit-slide__visual img {
  height: clamp(250px, 42dvh, 340px);
  border-radius: 44% 56% 12% 12% / 22% 32% 12% 12%;
}

.recruit-slide--overlap .recruit-slide__text {
  position: relative;
  z-index: 1;
  width: 92%;
  margin: clamp(-82px, -11dvh, -58px) 0 0 auto;
  padding: clamp(20px, 5vw, 28px);
  border-radius: 22px 8px 22px 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(39, 72, 91, 0.14);
}

/* Field slide: show the complete image at full width, flush to the top. */
#field.recruit-slide--overlap > .page {
  height: 100%;
  align-items: flex-start;
  padding-top: 0;
}

#field.recruit-slide--overlap > .page > .container {
  margin-top: 0;
  margin-bottom: 0;
}

#field.recruit-slide--overlap .recruit-slide__visual {
  width: calc(100% + (var(--section-gutter) * 2));
  margin: 0 0 0 calc(var(--section-gutter) * -1);
}

#field.recruit-slide--overlap .recruit-slide__visual img {
  width: 100%;
  height: clamp(310px, 48dvh, 380px);
  border-radius: 0;
  object-fit: cover;
  object-position: center 62%;
}

#field.recruit-slide--overlap .recruit-slide__text {
  width: 100%;
  margin: 0;
  padding: clamp(24px, 6vw, 32px) 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Continuously looping square-photo carousel for the Itoshiro attractions slide. */
.recruit-slide--attractions .page__wrap {
  gap: clamp(12px, 2.5dvh, 18px);
  transform: translateY(-22px);
}

.recruit-slide--attractions .recruit-slide__visual {
  --attractions-gap: 8px;
  --attractions-card-size: clamp(190px, 56vw, 260px);
  display: block;
  width: 100%;
  height: var(--attractions-card-size);
  margin: 0;
  overflow: hidden;
}

.recruit-slide--attractions .recruit-slide__visual::before {
  display: none;
}

.recruit-slide--attractions .recruit-slide__carousel-track,
.recruit-slide--attractions .recruit-slide__carousel-group {
  display: flex;
  width: max-content;
}

.recruit-slide--attractions .recruit-slide__carousel-track {
  animation: attractions-loop 28s linear infinite;
}

.recruit-slide--attractions .recruit-slide__carousel-group {
  gap: var(--attractions-gap);
  padding-right: var(--attractions-gap);
}

.recruit-slide--attractions .recruit-slide__visual figure {
  position: relative;
  flex: 0 0 var(--attractions-card-size);
  width: var(--attractions-card-size);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}

.recruit-slide--attractions .recruit-slide__visual img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.recruit-slide--attractions .recruit-slide__visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 5px 5px;
  background: linear-gradient(transparent, rgba(12, 35, 39, 0.72));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

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

@media (prefers-reduced-motion: reduce) {
  .recruit-slide--attractions .recruit-slide__visual {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .recruit-slide--attractions .recruit-slide__carousel-track {
    animation: none;
  }

  .recruit-slide--attractions .recruit-slide__carousel-group[aria-hidden="true"] {
    display: none;
  }
}

.recruit-slide--attractions .recruit-slide__body,
.recruit-slide--attractions .recruit-slide__body p {
  line-height: 1.5;
}

.recruit-slide--attractions .recruit-slide__body p + p {
  margin-top: 7px;
}

/* Centered heading with a translucent image-and-copy card. */
.recruit-slide--gallery .page__wrap {
  gap: 0;
}

.recruit-slide--gallery .recruit-slide__text {
  width: 100%;
}

.recruit-slide--gallery .page__heading {
  width: 100%;
  margin-bottom: clamp(26px, 5dvh, 40px);
  text-align: center;
}

.recruit-slide--gallery .recruit-slide__glass-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 36px rgba(39, 72, 91, 0.09);
  backdrop-filter: blur(9px);
}

.recruit-slide--gallery .recruit-slide__visual {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: clamp(18px, 5vw, 24px) clamp(16px, 4vw, 20px) 0;
}

.recruit-slide--gallery .recruit-slide__visual::before {
  display: none;
}

.recruit-slide--gallery .recruit-slide__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
}

.recruit-slide--gallery .recruit-slide__visual img:first-child {
  grid-row: auto;
  min-height: 0;
  border-radius: 18px;
}

.recruit-slide--gallery .recruit-slide__body,
.recruit-slide--gallery .recruit-slide__body p {
  line-height: 1.58;
}

.recruit-slide--gallery .recruit-slide__body {
  padding: clamp(18px, 4.5vw, 24px) clamp(20px, 5vw, 26px) clamp(22px, 5.5vw, 30px);
}

.recruit-slide--gallery .recruit-slide__body p + p {
  margin-top: 8px;
}

/* Map-led layout: based on the original Minamishimabara map section. */
.recruit-slide--map {
  background-color: #eef8f8;
  background-image:
    linear-gradient(rgba(238, 248, 248, 0.52), rgba(238, 248, 248, 0.52)),
    url("images/generated/gifu-map.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.recruit-slide--map .page__wrap {
  gap: clamp(12px, 2.5dvh, 18px);
}

.recruit-slide--map .recruit-slide__visual {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
}

.recruit-slide--map .recruit-slide__visual::before {
  display: none;
}

.recruit-slide--map .recruit-slide__visual img {
  height: clamp(165px, 26dvh, 220px);
  border-radius: 18px;
  object-fit: cover;
}

.recruit-slide--map .recruit-slide__text {
  box-sizing: border-box;
  padding: clamp(18px, 4.5vw, 24px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(39, 72, 91, 0.08);
}

.recruit-slide--map .recruit-slide__body,
.recruit-slide--map .recruit-slide__body p {
  line-height: 1.5;
}

.recruit-slide--map .recruit-slide__body p + p {
  margin-top: 7px;
}

/* Wide image-band layout: based on the original news composition. */
.recruit-slide--band .page__wrap {
  display: block;
}

.recruit-slide--band .recruit-slide__visual {
  width: calc(100% + (var(--section-gutter) * 2));
  margin: 0 0 0 calc(var(--section-gutter) * -1);
}

.recruit-slide--band .recruit-slide__visual::before {
  display: none;
}

.recruit-slide--band .recruit-slide__visual img {
  height: clamp(220px, 34dvh, 290px);
  border-radius: 0 80px 80px 0;
}

.recruit-slide--band .recruit-slide__text {
  position: relative;
  z-index: 1;
  width: 92%;
  margin: clamp(-52px, -7dvh, -34px) auto 0;
  padding: clamp(18px, 5vw, 26px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(39, 72, 91, 0.12);
}

/* Profile layout: based on the original information-card treatment. */
.recruit-slide--profile .page__wrap {
  align-items: center;
  gap: clamp(14px, 3dvh, 22px);
}

.recruit-slide--profile .recruit-slide__visual {
  width: clamp(130px, 38vw, 180px);
  margin: 0 auto;
}

.recruit-slide--profile .recruit-slide__visual::before {
  right: -8px;
  bottom: -8px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.recruit-slide--profile .recruit-slide__visual img {
  height: clamp(130px, 38vw, 180px);
  border-radius: 50%;
}

.recruit-slide--profile .recruit-slide__text {
  width: 100%;
}

.recruit-slide--profile .page__heading {
  text-align: left;
}

.recruit-slide--profile .recruit-slide__company-list {
  padding: 4px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(39, 72, 91, 0.1);
  text-align: left;
}

/* Company image: rectangular, flush to the top/left, with space on the right only. */
#company.recruit-slide--profile > .page {
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}

#company.recruit-slide--profile > .page > .container {
  height: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

#company.recruit-slide--profile .page__wrap {
  height: 100%;
  justify-content: flex-start;
}

#company.recruit-slide--profile .recruit-slide__visual {
  order: 2;
  min-height: 220px;
  flex: 1 1 auto;
  width: calc(100% + var(--section-gutter));
  margin: 0 0 0 calc(var(--section-gutter) * -1);
}

#company.recruit-slide--profile .recruit-slide__visual::before {
  display: none;
}

#company.recruit-slide--profile .recruit-slide__visual img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

#company.recruit-slide--profile .recruit-slide__text {
  order: 1;
  padding-top: clamp(28px, 8vw, 42px);
}

.swipe-slide--long {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  scroll-snap-stop: normal;
}

.recruit-slide--requirements {
  background: #e7f6fe url("images/common/gradation-and-deco-bg.webp") left bottom / cover fixed;
}

.recruit-slide--requirements > .page {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(44px, 10vw, 64px) 0 clamp(70px, 16vw, 96px);
}

.recruit-slide--requirements .page__wrap {
  display: block;
}

.recruit-requirements {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(39, 72, 91, 0.1);
}

.recruit-requirements > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-bottom: 1px solid rgba(39, 72, 91, 0.16);
  font-size: 14px;
  line-height: 1.7;
}

.recruit-requirements > div:last-child {
  border-bottom: 0;
}

.recruit-requirements dt,
.recruit-requirements dd {
  padding: 14px 12px;
}

.recruit-requirements dt {
  background: rgba(91, 159, 159, 0.13);
  color: #27485b;
  font-weight: 700;
}

.recruit-requirements small {
  font-size: 14px;
}

.recruit-entry {
  margin-top: clamp(64px, 16vw, 92px);
  padding: clamp(24px, 7vw, 36px) var(--section-gutter);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(39, 72, 91, 0.1);
}

.recruit-slide--entry .recruit-entry {
  margin-top: 0;
}

.recruit-entry__lead {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.recruit-entry__field {
  display: block;
  margin-bottom: 20px;
}

.recruit-entry__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #27485b;
  font-size: 14px;
  font-weight: 700;
}

.recruit-entry__label em {
  padding: 2px 7px;
  border-radius: 999px;
  background: #477b7d;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.recruit-entry input[type="text"],
.recruit-entry input[type="email"],
.recruit-entry input[type="tel"],
.recruit-entry select,
.recruit-entry textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(39, 72, 91, 0.28);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recruit-entry input[type="text"],
.recruit-entry input[type="email"],
.recruit-entry input[type="tel"],
.recruit-entry select {
  min-height: 50px;
  padding: 10px 12px;
}

.recruit-entry textarea {
  min-height: 140px;
  padding: 12px;
  resize: vertical;
}

.recruit-entry input:focus,
.recruit-entry select:focus,
.recruit-entry textarea:focus {
  border-color: #477b7d;
  box-shadow: 0 0 0 3px rgba(71, 123, 125, 0.16);
}

.recruit-entry__submit {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: #477b7d;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.recruit-entry__submit:hover,
.recruit-entry__submit:focus-visible {
  background: #365f61;
}

.recruit-entry__status:not(:empty) {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(91, 159, 159, 0.14);
  color: #27485b;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-height: 700px) {
  .recruit-slide .page__wrap {
    gap: 14px;
  }

  .recruit-slide__visual img {
    height: 130px;
  }

  .recruit-slide .heading__ja {
    font-size: 21px;
  }

  .recruit-slide__body,
  .recruit-slide__body p {
    line-height: 1.6;
  }

  .recruit-slide--statement .recruit-slide__text {
    padding-block: 18px;
  }

  .recruit-slide--statement .recruit-slide__questions {
    margin-block: 16px;
    padding: 14px;
    line-height: 1.8;
  }

  .recruit-slide--cover .recruit-slide__text {
    padding: 17px;
  }

  .recruit-slide--cover .recruit-slide__body,
  .recruit-slide--cover .recruit-slide__body p {
    line-height: 1.45;
  }

  .recruit-slide--overlap .recruit-slide__visual img {
    height: 210px;
  }

  .recruit-slide--overlap .recruit-slide__text {
    margin-top: -54px;
    padding: 17px;
  }

  .recruit-slide--attractions .recruit-slide__visual {
    --attractions-card-size: 185px;
  }

  .recruit-slide--attractions .recruit-slide__body,
  .recruit-slide--attractions .recruit-slide__body p {
    line-height: 1.4;
  }

  .recruit-slide--gallery .recruit-slide__visual img {
    height: auto;
  }

  .recruit-slide--gallery .recruit-slide__visual img:first-child {
    min-height: 0;
  }

  .recruit-slide--map .recruit-slide__visual img {
    height: 130px;
  }

  .recruit-slide--map .recruit-slide__body,
  .recruit-slide--map .recruit-slide__body p {
    line-height: 1.4;
  }

  .recruit-slide--band .recruit-slide__visual img {
    height: 180px;
  }

  .recruit-slide--band .recruit-slide__text {
    margin-top: -34px;
    padding: 16px;
  }

  .recruit-slide--profile .recruit-slide__visual {
    width: 110px;
  }

  .recruit-slide--profile .recruit-slide__visual img {
    height: 110px;
  }

  .recruit-slide--profile .recruit-slide__company-list > div {
    padding-block: 8px;
  }
}

.recruit-slide .page__heading {
  position: relative;
}

.recruit-slide:not(.recruit-slide--zabuton) .page__heading::after {
  position: absolute;
  bottom: -7px;
  left: 0;
  width: clamp(44px, 14vw, 72px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #02752b, rgba(2, 117, 43, 0.12));
  content: "";
}

#anxiety .heading__ja {
  padding: 10px 12px;
}

#anxiety .page__heading::after {
  left: 12px;
}

#anxiety .heading__en {
  padding-left: 12px;
}

/* ========================================
   募集要項 ファイル型タブ
======================================== */


/* タブ＋募集要項全体 */
.recruit-file {
  width: 100%;
}


/* -------------------------
   上部タブ
------------------------- */

.recruit-tabs {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-end;

  width: 100%;
  padding-left: 12px;
}


/* タブ共通 */
.recruit-tab {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42%;
  min-height: 54px;
  padding: 10px 18px;

  border: 0;

  background: #4f898b;
  color: #fff;

  cursor: pointer;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: center;

  /*
    平行四辺形っぽい
    ファイルタブ形状
  */
  clip-path: polygon(
    10% 0,
    88% 0,
    100% 100%,
    0 100%
  );

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}


/* 2つ目を少し重ねる */
.recruit-tab + .recruit-tab {
  margin-left: -8px;
}


/* 選択中 */
.recruit-tab.is-active {
  z-index: 2;
  background: #416d88;
  color: #fff;
}


/* 押した瞬間 */
.recruit-tab:active {
  transform: translateY(1px);
}


/* -------------------------
   募集要項カード
------------------------- */

.recruit-file .recruit-tab-content {
  display: none;
}


/* 選択中のみ表示 */
.recruit-file .recruit-tab-content.is-active {
  display: block;
}


/*
  既存の募集要項カードを
  ファイル本体として使用
*/
.recruit-file .recruit-requirements {
  position: relative;
  z-index: 1;

  margin-top: 0;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.94);

  box-shadow:
    0 12px 35px rgba(39, 72, 91, 0.12);
}


/*
  タブとカードの間に隙間が
  出ないように接続
*/
.recruit-file .recruit-requirements {
  border-top-left-radius: 10px;
}


/* スマホでも文字を収める */
@media (max-width: 480px) {

  .recruit-tabs {
    padding-left: 8px;
  }

  .recruit-tab {
    width: 46%;
    min-height: 48px;

    padding: 8px 12px;

    font-size: 13px;
  }

}

/* ========================================
   2ページ目「田舎に住みたい！！」
   背景動画
======================================== */

#country-life .recruit-slide__visual video.country-life__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* 動画を背景として配置 */
#country-life .recruit-slide__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

/* 既存の暗いグラデーションを維持 */
#country-life .recruit-slide__visual::after {
  pointer-events: none;
}

/* 文字を動画より前面に表示 */
#country-life .recruit-slide__text {
  position: relative;
  z-index: 1;
}


/* ========================================
   「この大自然があなたのものです」
   背景動画
======================================== */

#recruit-catch .recruit-slide__visual video.recruit-catch__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* 背景動画を全面表示 */
#recruit-catch .recruit-slide__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

/* 文字を動画より前面に配置 */
#recruit-catch .recruit-slide__text {
  position: relative;
  z-index: 1;
}

/* ==========================================
   畑使えます！ページ専用レイアウト
   #field 以外には影響しない
========================================== */

/* ページ全体 */
#field.recruit-slide--overlap > .page {
  height: 100%;
  min-height: 100%;
  padding: 0;
  align-items: flex-start;
}

#field.recruit-slide--overlap > .page > .container {
  height: 100%;
  padding-inline: 0;
  margin: 0;
}

#field.recruit-slide--overlap .page__wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  height: 100%;
  min-height: 0;
}

/* 上部写真 */
#field.recruit-slide--overlap .recruit-slide__visual {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

#field.recruit-slide--overlap .recruit-slide__visual::before {
  display: none;
}

#field.recruit-slide--overlap .recruit-slide__visual img {
  display: block;
  width: 100%;
  height: clamp(200px, 30dvh, 270px);
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
}

/* 文字エリア */
#field.recruit-slide--overlap .recruit-slide__text {
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(35px, 5dvh, 50px)
           clamp(18px, 5vw, 28px)
           0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 見出し */
#field .page__heading {
  margin-bottom: clamp(12px, 2dvh, 20px);
}

/* 本文 */
#field .recruit-slide__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#field .recruit-slide__body p {
  font-size: clamp(11px, 3.1vw, 14px);
  line-height: 1.7;
}

#field .recruit-slide__body p + p {
  margin-top: clamp(8px, 1.8dvh, 14px);
}

/* 野菜3点の配置 */
#field .field-vegetables {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 90px;
  margin-top: 8px;
}

#field .field-vegetable {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
}

/* トマト：左下 */
#field .field-vegetable--tomato {
  width: 34%;
  left: -3%;
  bottom: 7%;
}

/* サツマイモ：中央上 */
#field .field-vegetable--sweetpotato {
  width: 43%;
  left: 30%;
  top: 2%;
}

/* ナス：右下 */
#field .field-vegetable--eggplant {
  width: 39%;
  right: -2%;
  bottom: 2%;
}

/* 高さが小さいスマホ */
@media (max-height: 700px) {
  #field.recruit-slide--overlap
  .recruit-slide__visual img {
    height: 25dvh;
  }

  #field.recruit-slide--overlap
  .recruit-slide__text {
    padding-top: 12px;
  }

  #field .page__heading {
    margin-bottom: 10px;
  }

  #field .recruit-slide__body p {
    font-size: 14px;
    line-height: 1.5;
  }

  #field .recruit-slide__body p + p {
    margin-top: 6px;
  }
}


/* =====================================
   会社概要：画像の中央配置
   他ページには影響しない
===================================== */

/* 画像の配置 */
#company.recruit-slide--profile .recruit-slide__visual {
  order: 2;
  flex: 0 0 auto;
  min-height: 0;
  width: calc(100% - 12px);
  max-width: 600px;
  margin: 12px auto 0;
}

/* 画像のサイズと形 */
#company.recruit-slide--profile .recruit-slide__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.52 / 1;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

/* 会社概要の情報を画像の上に配置 */
#company.recruit-slide--profile .recruit-slide__text {
  order: 1;
}



/* =====================================
   会社概要：テキスト＋画像を縦中央に配置
===================================== */

#company.recruit-slide--profile .page__wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
  gap: 24px;
}

/* テキスト上部の余白調整 */
#company.recruit-slide--profile .recruit-slide__text {
  padding-top: 0;
}

/* 画像とテキストの間隔 */
#company.recruit-slide--profile .recruit-slide__visual {
  margin: 0 auto;
}





/* =====================================
   会社概要専用：縦中央配置＋順番表示
===================================== */

/* テキスト＋画像をまとめて中央に配置 */
#company.recruit-slide--profile > .page > .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* コンテンツ全体 */
#company.recruit-slide--profile .page__wrap {
  height: auto;
  min-height: 0;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

/* テキスト部分 */
#company.recruit-slide--profile .recruit-slide__text {
  padding-top: 0;
}

/* 会社情報を上から順に表示 */
.lp-container.is-motion-ready
#company .recruit-slide__company-list > div {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.75s ease;
}

/* 会社名 */
.lp-container.is-motion-ready
#company.has-animated
.recruit-slide__company-list > div:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 450ms;
}

/* 代表取締役 */
.lp-container.is-motion-ready
#company.has-animated
.recruit-slide__company-list > div:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 650ms;
}

/* 本社 */
.lp-container.is-motion-ready
#company.has-animated
.recruit-slide__company-list > div:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 850ms;
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
  .lp-container.is-motion-ready
  #company .recruit-slide__company-list > div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
