/* ==========================================================================
   レイホー産業株式会社 採用サイト
   ========================================================================== */

:root {
  --color-navy: #01307c;
  --color-navy-dark: #00235c;
  --color-navy-darker: #031d47;
  --color-navy-deep: #022a6c;
  --color-teal: #148891;
  --color-bg-light: #f5f7f9;
  --color-border: #d9d9d9;
  --color-text: #111111;
  --color-white: #ffffff;

  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;

  --content-width: 1440px;
  --gutter: 80px;
}

/* ---- Reset ---------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ul, figure {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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

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

/* ---- Layout helpers --------------------------------------------------- */

.container,
.intro__inner,
.message__inner,
.strengths__inner,
.interview__inner,
.recruit__inner,
.footer__inner,
.footer__bottom {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.header__inner {
  width: 100%;
  padding-inline: 40px 0;
}

.eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--color-navy);
  letter-spacing: 0.03em;
}

.section-heading {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-heading h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  color: #000;
  margin-top: 8px;
}

.section-heading--left {
  text-align: left;
}

.eyebrow--line {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.eyebrow--line::after {
  content: "";
  display: inline-block;
  width: 100px;
  height: 2px;
  background: var(--color-navy);
}

.icon-arrow {
  width: 8px;
  height: 13px;
  flex-shrink: 0;
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 80px;
  padding-inline: 32px;
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn--navy {
  background: var(--color-navy-dark);
}

.btn--teal {
  background: var(--color-teal);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 90px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__logo {
  height: 26px;
  width: auto;
}

.header__page {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--color-navy);
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  margin-left: auto;
  margin-right: 50px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 20px);
  color: var(--color-navy);
}

.header__nav a:hover {
  opacity: 0.7;
}

.header__entry {
  flex-shrink: 0;
  height: 90px;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 22px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 20, 40, 0.94) 0%, rgba(4, 33, 78, 0.9) 40%, rgba(1, 48, 124, 0) 80%);
}

.hero__content {
  position: relative;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: clamp(60px, 10vw, 116px) 24px clamp(60px, 8vw, 100px);
  color: #fff;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.4;
  text-indent: -0.5em;
}

.hero__subhead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 35px);
  line-height: 1.5;
  margin-top: clamp(24px, 4vw, 40px);
}

.hero__lead {
  font-size: clamp(15px, 1.4vw, 22px);
  margin-top: clamp(16px, 2vw, 28px);
}

/* ==========================================================================
   Intro / CTA band
   ========================================================================== */

.intro {
  position: relative;
  background: var(--color-bg-light);
  overflow: hidden;
}

.intro__bg {
  position: absolute;
  inset: 0;
}

.intro__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  opacity: 0.12;
}

.intro__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: clamp(36px, 5vw, 60px);
}

.intro__text {
  flex: 1 1 560px;
  font-size: 16px;
  line-height: 2;
}

.intro__buttons {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   Message
   ========================================================================== */

.message {
  padding-block: clamp(48px, 8vw, 96px);
}

.message__inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.message__text {
  flex: 1 1 560px;
}

.message__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.5;
  margin-top: 12px;
}

.message__body {
  margin-top: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  line-height: 2;
}

.message__photo {
  flex: 1 1 420px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Strengths
   ========================================================================== */

.strengths {
  background: var(--color-bg-light);
  padding-block: clamp(48px, 8vw, 96px);
}

.strengths__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.strengths__card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 40px 20px 28px;
  text-align: center;
}

.strengths__photo {
  position: relative;
  margin: -40px -20px 20px;
  aspect-ratio: 267 / 159;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.strengths__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strengths__num {
  position: absolute;
  top: -14px;
  left: 14px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strengths__card h3 {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-navy);
}

.strengths__card p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.strengths__banner {
  position: relative;
  margin-top: 32px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.strengths__banner img {
  width: 100%;
  height: auto;
}

.strengths__banner-patch {
  position: absolute;
  left: 66.9%;
  top: 47.5%;
  width: 7.4%;
  height: 43%;
  background: #fff;
  color: var(--color-teal);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 1.9vw, 28px);
  white-space: nowrap;
}

.strengths__banner-patch small {
  font-size: 0.75em;
  margin-left: 2px;
}

/* ==========================================================================
   Interview
   ========================================================================== */

.interview {
  padding-block: clamp(48px, 8vw, 96px);
}

.interview__item {
  margin-top: clamp(40px, 5vw, 64px);
}

.interview__item:first-child {
  margin-top: 0;
}

.interview__quote {
  background: var(--color-bg-light);
  border-radius: 10px;
  padding: 24px 32px;
}

.interview__question {
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--color-navy);
}

.interview__dept {
  margin-top: 8px;
  font-size: 15px;
  color: #333;
}

.interview__body {
  margin-top: 32px;
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  align-items: flex-start;
}

.interview__photo {
  flex: 0 0 clamp(220px, 26vw, 378px);
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 378 / 554;
}

.interview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interview__text {
  flex: 1 1 auto;
  min-width: 0;
}

.interview__text h3 {
  font-weight: 700;
  font-size: 18px;
  margin-top: 28px;
}

.interview__text h3:first-child {
  margin-top: 0;
}

.interview__text p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.9;
}

/* ==========================================================================
   Recruit table
   ========================================================================== */

.recruit {
  background: var(--color-bg-light);
  padding-block: clamp(48px, 8vw, 96px);
}

.recruit__table {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.recruit__row {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--color-border);
  border-top: none;
  background: #fff;
}

.recruit__row dt {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
}

.recruit__row dd {
  padding: 20px 32px;
  font-size: 16px;
  line-height: 1.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #fff;
}

.footer__top {
  background: linear-gradient(90deg, var(--color-navy-darker) 0%, #01307c 100%);
  padding-block: clamp(44px, 7vw, 40px);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.footer__text {
  flex: 1 1 480px;
  color: #fff;
}

.footer__text h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 35px);
  line-height: 1.5;
}

.footer__text p {
  margin-top: 12px;
  font-size: clamp(15px, 1.3vw, 18px);
}

.footer__text .btn {
  margin-top: 28px;
  width: fit-content;
  min-width: 330px;
}

.footer__photos {
  flex: 0 0 auto;
  margin-block: -44px;
}

.footer__photos img {
  width: clamp(420px, 44vw, 820px);
  height: auto;
  display: block;
}

.footer__bar {
  height: 40px;
  background: #1d3e6e;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.footer__logo {
  height: 17px;
  width: auto;
}

.footer__bottom p {
  font-size: 14px;
  color: #000;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .strengths__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .header__nav {
    display: none;
  }

  .header__page {
    display: none;
  }

  .header__logo {
    height: 20px;
  }

  .header__entry {
    min-width: 110px;
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .message__inner {
    flex-direction: column;
  }

  .message__photo {
    width: 100%;
  }

  .interview__body {
    flex-direction: column;
  }

  .interview__photo {
    width: 100%;
    max-width: 320px;
    flex: 0 0 auto;
  }

  .intro__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .intro__buttons {
    flex-direction: row;
  }

  .intro__buttons .btn {
    flex: 1;
  }
}

@media (max-width: 700px) {
  .btn {
    height: 56px;
    padding-inline: 24px;
  }

  .intro__buttons .btn {
    flex: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer__text {
    flex: none;
    width: 100%;
  }

  .footer__photos {
    margin-block: 0;
    align-self: center;
  }

  .footer__top {
    padding-bottom: 0;
  }

  .hero {
    min-height: 0;
  }

  .hero__content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .header__entry {
    min-width: 80px;
    font-size: 14px;
    gap: 4px;
  }

  .header__inner {
    padding-inline: 16px 0;
  }

  .header__logo {
    height: 18px;
  }

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

  .recruit__row {
    grid-template-columns: 1fr;
  }

  .recruit__row dt {
    padding: 12px 20px;
  }

  .recruit__row dd {
    padding: 16px 20px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .strengths__list {
    grid-template-columns: 1fr;
  }

  .intro__buttons {
    flex-direction: column;
  }

  .br-pc {
    display: none;
  }
}
