/* =========================================================
   セクション：① ファーストビュー 〜 ③ 会社紹介・事業
   組み立ては ../recruit/css/sections-intro.css（HERO・MESSAGE・ABOUT・BUSINESS）と同じ
   ========================================================= */
/* ---------- ① HERO ---------- */
.hero {
  padding-top: var(--header-h);
  background: var(--bg);
}

/* 高さ・文字・飾りの大きさは、すべて写真の幅（--hero-w）を物差しにする。
   写真は --content-max で止まるので、vw のままだと広い画面で文字だけ大きくなり、写真からはみ出す。
   画面の高さ（svh）に合わせると、横に広く縦が短い画面で文字どうしが重なる */
.hero_media {
  --hero-w: min(100vw, var(--content-max));  /* 写真の幅のめやす */
  --hero-loop-fz: clamp(72px, calc(var(--hero-w) * .12), 180px); /* 流れる英字の大きさ。札の位置もこれで決める */
  height: clamp(320px, calc(var(--hero-w) * .4), 720px);
  /* 幅は --content-max まで。それより広い画面では中央に置き、狭い画面では左だけ少しあける */
  margin-left: max(clamp(0px, 4vw, 64px), calc((100% - var(--content-max)) / 2));
  margin-right: max(0px, calc((100% - var(--content-max)) / 2));
  overflow: hidden;
}

.hero_img {
  position: absolute;
  inset: 0;
  object-position: 70% 25%; /* 右寄りに立つ社員の顔が切れないように */
}

/* 写真の左の空に置くキャッチ（コンセプト「誠実な足場」） */
.hero_catch {
  position: absolute;
  top: clamp(48px, 20%, 140px);
  left: clamp(20px, calc(var(--hero-w) * .05), 72px);
  z-index: 2;
  display: grid;
  justify-items: start;
  font-family: var(--font-serif);
  font-size: clamp(28px, calc(var(--hero-w) * .052), 76px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--blue-deep);
  text-shadow: 0 0 16px rgba(255, 255, 255, .7); /* 明るい空の上でも輪郭を残す */
}

/* 2行目は色だけ変えて、少し右にずらす */
.hero_catch_sub {
  margin-left: .5em;
  color: var(--blue);
}

.hero_loop {
  --loop-fz: var(--hero-loop-fz);
  --loop-duration: 30s;
  bottom: 2%;
}

/* 手書きの線（1セクションに1つまで） */
.hero_swoosh {
  position: absolute;
  top: -12px;
  left: -16px;
  z-index: 2;
  width: clamp(180px, calc(var(--hero-w) * .22), 340px);
  fill: none;
  stroke: var(--yellow);
  stroke-width: 18;
  stroke-linecap: round;
}

.hero_badge {
  position: absolute;
  right: clamp(16px, calc(var(--hero-w) * .04), 64px);
  bottom: calc(2% + var(--hero-loop-fz) + 12px); /* 流れる英字のすぐ上に置く */
  z-index: 3;
  display: grid;
  justify-items: end;
  gap: 6px;
  font-size: clamp(15px, calc(var(--hero-w) * .016), 22px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--blue);
}

.hero_badge span {
  padding: 2px 12px;
  background: var(--white);
}

.hero_badge b {
  margin-inline: .15em;
  font-family: var(--font-en);
  font-size: 1.5em;
}

.hero_body {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 8px var(--gutter) 56px;
  text-align: center;
}

.hero_tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hero_tags span {
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  line-height: 1.8;
}

.hero_ttl {
  font-family: var(--font-serif);
  font-size: var(--fz-display);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
}

.hero_lead {
  max-width: 640px;
  font-weight: 700;
}

.hero .cta-btn {
  margin-top: 16px;
}

/* ---------- ② 課題提起（見本の MESSAGE と同じ形） ---------- */
.issue {
  text-align: center;
}

.issue_ttl {
  margin: 16px 0;
  font-family: var(--font-serif);
  font-size: var(--fz-catch);
  font-weight: 700;
  line-height: 1.5;
}

.issue_voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 40px;
}

.issue_voices li {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-weight: 700;
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: balance;
}

/* 吹き出しのしっぽ */
.issue_voices li::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 18px;
  height: 10px;
  translate: -50% 0;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.issue_text {
  max-width: 640px;
  margin-inline: auto;
}

/* 角かっこ［ ］で囲む一文 */
.issue_bridge {
  position: relative;
  display: inline-block;
  margin-top: 48px;
  padding: 16px 40px;
  font-family: var(--font-serif);
  font-size: var(--fz-h3);
  font-weight: 700;
  line-height: 1.7;
}

.issue_bridge::before,
.issue_bridge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  border: 2px solid var(--ink);
}

.issue_bridge::before { left: 0; border-right: 0; }
.issue_bridge::after { right: 0; border-left: 0; }

/* ---------- ③ 会社紹介（見本の ABOUT と同じ形） ---------- */
.company {
  padding-bottom: 0;
}

.company_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
}

.company_ttl {
  font-family: var(--font-serif);
  font-size: var(--fz-catch);
  font-weight: 700;
  line-height: 1.5;
}

.company_body p + p {
  margin-top: 1em;
}

/* 実績の数字を白い帯に並べる */
.records {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--content-max), 100% - 40px);
  margin: 48px auto 0;
  padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: center;
}

.records_item + .records_item {
  border-left: 1px solid var(--line);
}

.records_item dt {
  font-size: 14px;
  font-weight: 700;
}

.records_item dd {
  font-weight: 700;
  line-height: 1.2;
}

.records_num {
  margin-right: .08em;
  font-family: var(--font-en);
  font-size: clamp(36px, 3.8vw, 52px);
  color: var(--blue);
}

.records_note {
  width: min(var(--content-max), 100% - 40px);
  margin: 8px auto 48px;
}

.company_photos {
  --photo-w: clamp(180px, 20vw, 280px);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-bottom: calc(var(--section-space) * .5); /* 次の事業セクションの上が波なので半分 */
}

/* ---------- ③ 事業（見本の BUSINESS と同じ形：写真と文章を左右交互） ---------- */
.business_lead {
  max-width: 640px;
  margin: 16px auto 0;
}

.point {
  display: grid;
  grid-template-columns: 48px 1fr 1.1fr;
  grid-template-areas: "label body media";
  gap: 24px clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.point:last-child {
  margin-bottom: 0;
}

.point--reverse {
  grid-template-columns: 48px 1.1fr 1fr;
  grid-template-areas: "label media body";
}

.point_label {
  grid-area: label;
  align-self: stretch;
  padding-top: 8px;
  border-left: 1px solid var(--ink);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--blue);
  writing-mode: vertical-rl;
}

.point_body { grid-area: body; }
.point_media { grid-area: media; }

.point_ttl {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: var(--fz-h3);
  line-height: 1.7;
}

.point_ttl b {
  font-size: 1.5em;
  color: var(--blue);
}

.point_img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  .hero_media {
    height: 40svh;
    margin-left: 0;
  }

  /* 手書きの線の下・数字の札の上に収める */
  .hero_catch {
    top: 56px;
    font-size: 24px;
  }

  .hero_body {
    gap: 12px;
    padding-bottom: 40px;
  }

  .hero_ttl {
    font-size: 28px;
  }

  .issue_voices,
  .company_grid {
    grid-template-columns: 1fr;
  }

  .issue_voices {
    gap: 20px;
    margin: 40px 0 32px;
  }

  .issue_bridge {
    padding: 12px 24px;
  }

  .records {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }

  .records_item:nth-child(3) {
    border-left: 0;
  }

  .point,
  .point--reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "label" "body";
    gap: 16px;
  }

  .point_label {
    padding: 0 0 0 12px;
    writing-mode: horizontal-tb;
  }
}
