/* =========================================================
   Next Home Inc. - Recruit LP / Style (PC only, 1280px base)
   Figma source is designed at 1440px; positions below are
   scaled by 1280/1440 ≈ 0.889 so proportions stay identical.
   ========================================================= */

:root {
  --canvas: 1280px;
  --fv-height: 1070px;

  --c-text: #222222;
  --c-muted: #666666;
  --c-yellow: #F4C622;
  --c-orange: #E67E22;
  --c-green: #2EA04B;
  --c-green-dark: #1F7D39;
  --c-white: #ffffff;

  --f-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --f-en: "Arial", "Helvetica Neue", sans-serif;
}

* , *::before , *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-jp);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  min-width: var(--canvas);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; }

/* =========================================================
   FV
   ========================================================= */
.fv {
  position: relative;
  width: 100%;
  height: var(--fv-height);
  overflow: hidden;
}

.fv__inner {
  position: relative;
  width: var(--canvas);
  height: 100%;
  margin: 0 auto;
}

.fv__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/bg1pc.png");
  background-image: -webkit-image-set(url("../img/bg1pc.webp") type("image/webp"), url("../img/bg1pc.png") type("image/png"));
  background-image: image-set(url("../img/bg1pc.webp") type("image/webp"), url("../img/bg1pc.png") type("image/png"));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 0;
}

/* --- Header --- */
.header {
  position: absolute;
  top: 22px;
  left: 8px;
  z-index: 10;
}
.header__logo img {
  height: 40px;
  width: auto;
}

/* --- Hero image --- */
.fv__hero {
  position: absolute;
  top: 65px;
  left: 134px;
  width: 1012px;
  z-index: 1;
}
.fv__hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Character illustration (kawahara1.png) --- */
.fv__character {
  position: absolute;
  top: 246px;
  right: 60px;
  width: 308px;
  height: auto;
  z-index: 4;
  pointer-events: none;
}

/* =========================================================
   LINE CTA button
   ========================================================= */
.line-cta {
  position: absolute;
  left: calc(50% - 90px);
  bottom: -62px;
  transform: translateX(-50%);
  width: 725px;
  z-index: 3;
  display: block;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.15));
  cursor: pointer;
  transition: transform .2s ease;
}
.line-cta:hover { transform: translate(-50%, -2px); }

.line-cta__img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   Profile ( 河原社長 / Profile + card )
   ========================================================= */
.fv__profile {
  position: absolute;
  top: 620px;
  left: 0;
  width: 100%;
  height: 312px;
  z-index: 2;
}

.fv__profile-heading {
  position: absolute;
  top: -18px;
  left: 139px;
  right: calc(50% - 50vw);
  line-height: 1;
  z-index: 3;
}

.fv__profile-title-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fv__profile-title {
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 57px;
  color: var(--c-text);
  letter-spacing: .02em;
  line-height: 1;
  -webkit-text-stroke: 2px var(--c-text);
  flex-shrink: 0;
}

.fv__profile-line {
  flex: 1;
  height: auto;
  min-width: 0;
  display: block;
  margin-top: 14px;
  padding-right: 0;
}

.fv__profile-sub {
  margin-top: 7px;
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 20px;
  color: var(--c-text);
  letter-spacing: .08em;
  padding-left: 4px;
  -webkit-text-stroke: 1.4px var(--c-text);
}

.fv__profile-card {
  position: absolute;
  top: 60px;
  left: 262px;
  width: 812px;
}
.fv__profile-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   代表メッセージ
   ========================================================= */
.message {
  position: relative;
  background-color: #FFEC92;
  padding: 200px 0 100px;
  margin-top: -220px;
  clip-path: polygon(0 220px, 100% 0, 100% 100%, 0 100%);
}
.message__inner {
  position: relative;
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 120px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.message__photo {
  flex: 0 0 340px;
  width: 340px;
}
.message__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.message__text {
  position: relative;
  flex: 1;
  padding-top: 70px;
}
.message__text::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 467px;
  width: 270px;
  height: 270px;
  background: url("../img/koron.svg") no-repeat left top;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
.message__text > * {
  position: relative;
  z-index: 1;
}

.message__greeting {
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.1;
  margin-bottom: 2px;
}

.message__lead {
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 24px;
  color: var(--c-text);
  line-height: 1.15;
  letter-spacing: .02em;
  margin-bottom: 2px;
}
.message__lead span {
  background: linear-gradient(transparent 0%, #FFF100 0%, #FFF100 100%, transparent 100%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0 2px;
}

.message__body {
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.3;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.message__body:last-child { margin-bottom: 0; }

/* =========================================================
   MEMBER INTERVIEW
   ========================================================= */
.member {
  background: #FFEC92;
  padding: 40px 0 80px;
}

.member__inner {
  position: relative;
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 120px;
}

.member__heading {
  display: flex;
  align-items: flex-end;
  gap: 30px;
}

.member__title {
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 78px;
  color: var(--c-text);
  line-height: 1.2;
  letter-spacing: .02em;
  -webkit-text-stroke: 2px var(--c-text);
}
.member__title span {
  background: linear-gradient(transparent 15%, #FFFFFF 15%, #FFFFFF 100%, transparent 100%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0 4px;
}

.member__bubble {
  width: 945px;
  margin-bottom: 18px;
}
.member__bubble img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Staff slider ---------- */
.staff-slider {
  margin-top: 48px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.staff-slider__viewport {
  overflow: hidden;
}
.staff-slider__track {
  list-style: none;
  margin: 0;
  padding: 10px 0 30px;
  display: flex;
  gap: 24px;
  transition: transform .45s ease;
  will-change: transform;
}
.staff-card {
  flex: 0 0 520px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-card img {
  width: 100%;
  height: auto;
  display: block;
}

.staff-slider__dots {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.staff-slider__dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #D1C58A;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, width .2s ease, height .2s ease;
}
.staff-slider__dot[aria-selected="true"] {
  width: 24px;
  height: 24px;
  background: #4A4A4A;
}

/* =========================================================
   COMPANY (Next Homeってどんな会社？？)
   ========================================================= */
.company {
  background: #fff;
  padding: 60px 0 80px;
}
.company__inner {
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 120px;
}

.company__heading {
  text-align: center;
  margin-bottom: 36px;
}
.company__title {
  display: inline-block;
  width: 100%;
  max-width: 585px;
  height: auto;
}

.company__main {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 40px;
}
.company__logo {
  flex: 0 0 260px;
}
.company__logo img {
  width: 100%;
  height: auto;
  display: block;
}
.company__text {
  flex: 1;
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.8;
  color: var(--c-text);
}
.company__text p { margin: 0 0 14px; }
.company__text p:last-child { margin-bottom: 0; }
.company__text-emph {
  font-weight: 900;
  font-size: 24px;
}
.company__text-emph span {
  background: linear-gradient(transparent 45%, #FFF100 45%, #FFF100 95%, transparent 95%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0 2px;
}

.company__gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 80vw;
  margin-left: calc(50% - 40vw);
  margin-right: calc(50% - 40vw);
  box-sizing: border-box;
}
.company__gallery li {
  overflow: hidden;
}
.company__gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}
.company__gallery li:first-child img {
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.company__gallery li:last-child img {
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.company__gallery-sp { display: none; }

/* =========================================================
   STATS (Next Homeのココが凄い！！)
   ========================================================= */
.stats {
  background: #FFEC92;
  padding: 40px 0 60px;
}
.stats__inner {
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 80px;
}
.stats__heading {
  text-align: center;
  margin-bottom: 36px;
}
.stats__title {
  display: inline-block;
  width: 100%;
  max-width: 481px;
  height: auto;
}
.stats__taiguu img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   CASE STUDIES
   ========================================================= */
.case {
  background: #FCC930;
  padding: 60px 0 80px;
}
.case__inner {
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 80px;
}
.case__heading {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 36px;
}
.case__title {
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 78px;
  color: var(--c-text);
  line-height: 1.2;
  letter-spacing: .02em;
  -webkit-text-stroke: 2px var(--c-text);
}
.case__title span {
  background: linear-gradient(transparent 15%, #FFFFFF 15%, #FFFFFF 100%, transparent 100%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0 4px;
}
.case__bubble {
  margin-bottom: 18px;
}
.case__bubble-text {
  display: inline-block;
  width: 100%;
  max-width: 600px;
  height: auto;
}

.case__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case__cards img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Bridge CTA
   ========================================================= */
.bridge {
  position: relative;
  background-color: #FCC930;
  background-image: url("../img/footerpc.png");
  background-image: -webkit-image-set(url("../img/footerpc.webp") type("image/webp"), url("../img/footerpc.png") type("image/png"));
  background-image: image-set(url("../img/footerpc.webp") type("image/webp"), url("../img/footerpc.png") type("image/png"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 70px 0 80px;
  overflow: hidden;
}
.bridge__inner {
  position: relative;
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding-left: 200px;
}
.bridge__text {
  position: relative;
  z-index: 2;
}
.bridge__lead {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 990;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  letter-spacing: .02em;
}
.bridge__headline {
  margin: 6px 0 10px;
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.35;
  color: #222;
  letter-spacing: .02em;
}
.bridge__headline span {
  background: #FFF07A;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 4px;
}
.bridge__body {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 990;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  letter-spacing: .02em;
}
.bridge__cta {
  display: block;
  width: 810px;
  max-width: 100%;
  margin: 28px 0 0;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .15));
  cursor: pointer;
  transition: transform .2s ease;
}
.bridge__cta:hover {
  transform: translateY(-2px);
}
.bridge__cta img {
  width: 100%;
  height: auto;
  display: block;
}
.bridge__character {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.bridge__character img {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  transform: translate(-90px, -20px);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: #fff;
  padding: 48px 0 56px;
}
.footer__inner {
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer__logo img {
  width: 240px;
  height: auto;
  display: block;
}
.footer__link {
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: 18px;
  color: #222;
  letter-spacing: .04em;
  text-decoration: none;
}
.footer__link:hover {
  opacity: .7;
}

/* =========================================================
   自分らしく働くための制度
   ========================================================= */
.system {
  position: relative;
  background: #FFEC92;
  padding: 60px 0 80px;
  overflow: hidden;
}
.system::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/haikei.png");
  background-image: -webkit-image-set(url("../img/haikei.webp") type("image/webp"), url("../img/haikei.png") type("image/png"));
  background-image: image-set(url("../img/haikei.webp") type("image/webp"), url("../img/haikei.png") type("image/png"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
}
.system__inner {
  position: relative;
  z-index: 1;
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 80px;
}
.system__heading {
  position: relative;
  text-align: center;
  margin-bottom: -80px;
  z-index: 2;
}
.system__title {
  display: inline-block;
  width: 100%;
  max-width: 608px;
  height: auto;
}

.system__panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 60px 90px;
  margin: 0 0 40px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  z-index: 1;
}
.system__table {
  margin: 0;
  padding: 0;
  background: transparent;
}
.system__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 40px;
  align-items: center;
  padding: 24px 0;
  border-top: 2px solid #e5e5e5;
}
.system__row:first-child {
  border-top: none;
}
.system__label {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .05em;
  color: #222;
  line-height: 1.6;
}
.system__desc {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.9;
  color: #222;
  letter-spacing: .02em;
}

.system__bottom {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  column-gap: 32px;
  align-items: stretch;
  margin-top: 16px;
}
.system__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}
.system__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.system__sports {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.system__sports img {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  background: #ffffff;
  padding: 80px 0 100px;
}
.faq__inner {
  width: var(--canvas);
  margin: 0 auto;
  padding: 0 80px;
}
.faq__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  column-gap: 20px;
  row-gap: 24px;
  align-items: start;
}
.faq__item {
  display: block;
}
.faq__item img {
  width: 100%;
  height: auto;
  display: block;
}
.faq__item--character {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  grid-row: 2;
  grid-column: 1;
}
.faq__item:nth-child(5),
.faq__item:nth-child(6) {
  transform: translateX(-40px);
}
.faq__character {
  width: 62%;
  max-width: 224px;
  height: auto;
  margin-top: -40px;
}

/* ========================================
   STAFF MODAL
   ======================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.staff-card {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.staff-card * {
  pointer-events: none;
}
.staff-card:focus-visible {
  outline: 3px solid #F4C622;
  outline-offset: 4px;
  border-radius: 12px;
}

.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}
.staff-modal.is-open {
  display: flex;
}
.staff-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.staff-modal__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  margin: auto;
}
.staff-modal__body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.staff-modal__pic { display: block; }
.staff-modal__pic[hidden] { display: none !important; }
.staff-modal__pic img {
  display: block;
  max-width: min(1100px, 92vw);
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.staff-modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: clamp(160px, 22vw, 240px);
}
.staff-modal__close img {
  display: block;
  width: 100%;
  height: auto;
}
.staff-modal__close:hover { opacity: 0.85; }
.staff-modal__close:focus-visible {
  outline: 3px solid #F4C622;
  outline-offset: 4px;
  border-radius: 9999px;
}

body.modal-open { overflow: hidden; }
