/* =========================================================
   HRBIZ Partners — トップページ固有スタイル
   モバイルファースト（min-width: 768 / 1024）
   ========================================================= */

/* ---------- FV ---------- */

.fv {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: calc(100svh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  max-height: calc(100svh - var(--header-height));
  padding: clamp(12px, 2.5vh, 32px) 16px;
  background-color: var(--hrbiz-main-color);
  background-image: url("../img/fv-bg.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.fv_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.8vh, 40px);
  width: 100%;
  max-width: min(640px, 100%);
  text-align: center;
}

.fv_copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.4vh, 24px);
  width: 100%;
  color: var(--hrbiz-white);
}

.fv_lead,
.fv_catch {
  margin: 0;
  font-size: clamp(0.875rem, 1.6vw + 0.625rem, 1.125rem);
  font-weight: 700;
  line-height: 1.6;
}

.fv_brand {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-family-en);
  font-size: clamp(2.5rem, 12vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--hrbiz-white);
}

.fv_brand_line {
  display: block;
}

.fv #achievement-badges {
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: min(600px, 100%);
  gap: clamp(0.125rem, 1.2vw, 1rem);
  box-sizing: border-box;
}

.fv #achievement-badges .badge {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 12rem;
  min-height: clamp(72px, 28vw, 150px);
  max-height: clamp(72px, 28vw, 150px);
}

/* FVはオレンジ背景のため白い月桂冠を使用（base.css の差分） */
.fv #achievement-badges .badge::before,
.fv #achievement-badges .badge::after {
  background-image: url("../../../src/img/badge_w.svg");
}

.fv #achievement-badges .badge_inner {
  width: min(82%, 10.5rem);
  max-width: 100%;
}

.fv #achievement-badges .badge_inner p {
  font-size: clamp(0.55rem, 2.8vw, 0.9rem);
}

.fv #achievement-badges .badge_inner .num {
  font-size: clamp(1.2em, 6vw, 2em);
}

.fv #achievement-badges .badge_inner .point {
  font-size: clamp(0.55rem, 3.2vw, 1.2rem);
}

.fv #achievement-badges .badge_inner .annot {
  font-size: clamp(0.35em, 2vw, 0.6em);
}

.fv-btn-area {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.fv_btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: clamp(52px, 8vh, 64px);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: var(--button-shadow);
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fv_btn:hover,
.fv_btn:focus-visible {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.fv_btn:focus-visible {
  outline: 2px solid var(--hrbiz-white);
  outline-offset: 3px;
}

.fv_btn_primary {
  background-color: var(--hrbiz-main-color);
  color: var(--hrbiz-white);
}

.fv_btn_secondary {
  background-color: var(--hrbiz-white);
  color: var(--hrbiz-main-color);
}

.fv_btn_sub {
  display: block;
  font-size: clamp(0.6875rem, 1.5vh, 0.75rem);
  font-weight: 500;
  line-height: 1.5;
}

.fv_btn_main {
  display: block;
  font-size: clamp(0.875rem, 2vh, 1rem);
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- ABOUT（モバイル基準） ---------- */

#about {
  position: relative;
  background: var(--hrbiz-white);
}

#about .about_area {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 0.5fr 3px 2fr;
  gap: 1.5rem;
}

#about .about_area_title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#about .about_area .border {
  display: block;
  background: var(--gray-color);
  border-radius: 5px;
}

#about .about_area h2 {
  margin-top: 0;
  align-self: center;
}

#about .about_area_text {
  margin: 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 2;
  color: var(--hrbiz-font-color);
}

#about .about_area_text strong {
  display: inline;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--hrbiz-white);
  background: var(--gradation-color);
}

/* ---------- Tablet（768px〜） ---------- */

@media screen and (min-width: 768px) {
  .fv {
    padding: clamp(12px, 3.5vh, 48px) 24px;
  }

  .fv_brand {
    font-size: clamp(2.25rem, 6.2vw + 0.5rem, 4rem);
    line-height: 1;
    white-space: nowrap;
  }

  .fv_brand_line {
    display: inline;
  }

  .fv_brand_line + .fv_brand_line::before {
    content: " ";
  }

  .fv-btn-area {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
  }

  .fv_btn {
    flex: 1 1 0;
    max-width: 272px;
    padding: 8px 20px;
  }

  #about .about_area {
    grid-template-columns: 1fr 3px 2fr;
    grid-template-rows: none;
    gap: 2rem;
  }
}

/* ---------- Desktop（1024px〜） ---------- */

@media screen and (min-width: 1024px) {
  .fv_brand {
    font-size: clamp(2.25rem, 5vw, 4rem);
  }
}

/* 短い画面でも1画面に収める */
@media screen and (max-height: 740px) {
  .fv_box {
    gap: clamp(12px, 2.8vh, 24px);
  }

  .fv_copy {
    gap: clamp(8px, 1.8vh, 14px);
  }

  .fv_lead,
  .fv_catch {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

/* ---------- SERVICE ---------- */

#service {
  background: #fff3ef;
}

#service .section_heading {
  margin-bottom: 1.5rem;
}

#service .service_lead {
  margin: 0 auto 2.5rem;
  max-width: 1260px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
  color: var(--hrbiz-font-color);
}

.service_area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service_box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--hrbiz-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.service_img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.service_img img {
  display: block;
  width: 100%;
  height: auto;
}

.service_s_box {
  flex: 1;
  min-width: 0;
}

.service_head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.service_num {
  margin: 0;
  font-family: var(--font-family-en);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--hrbiz-main-color);
}

.service_title {
  margin: 0;
  flex: 1 1 12rem;
  font-size: clamp(1.05rem, 3.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--hrbiz-font-color);
  text-align: left;
}

.service_text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
}

.service_tags {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.service_tags li {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  background: #f9f9f9;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
}

@media screen and (min-width: 768px) {
  #service .service_lead {
    margin-bottom: 3rem;
    font-size: 1rem;
  }

  .service_area {
    gap: 2rem;
  }

  .service_box {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 3rem;
  }

  .service_img {
    flex: 0 0 230px;
    max-width: 230px;
    margin: 0;
  }

  .service_head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
  }

  .service_title {
    flex: 1 1 auto;
  }

  .service_text {
    font-size: 1rem;
  }

  .service_tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    margin-top: 1.5rem;
  }

  .service_tags li {
    min-height: 64px;
    padding: 0 1rem;
    font-size: 0.875rem;
  }

  /* 7項目の最後は左カラムに寄せる */
  .service_tags li:last-child:nth-child(odd) {
    grid-column: 1;
  }
}

@media screen and (min-width: 1024px) {
  .service_box {
    gap: 3rem;
    padding: 3rem 3.5rem;
  }

  .service_img {
    flex: 0 0 280px;
    max-width: 300px;
  }
}


/* ---------- FEATURE ---------- */

#feature {
  background: var(--hrbiz-white);
}

#feature .section_heading {
  margin-bottom: 1.5rem;
}

#feature .feature_lead {
  margin: 0 auto 2.5rem;
  max-width: 1260px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
  color: var(--hrbiz-font-color);
}

.feature_area {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature_box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding: 3.5rem 1.5rem 2rem;
  border-radius: 4px;
  background: #f9f9f9;
}

.feature_num {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 63px;
  height: 63px;
  margin: 0;
  border: 4px solid var(--hrbiz-white);
  border-radius: 50%;
  background: var(--hrbiz-main-color);
  font-family: var(--font-family-en);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hrbiz-white);
  transform: translate(-50%, -50%);
}

.feature_title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--hrbiz-font-color);
}

.feature_title span {
  color: var(--hrbiz-main-color);
}

.feature_img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4rem;
}

.feature_img img {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.feature_text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
  color: var(--hrbiz-font-color);
}

@media screen and (min-width: 768px) {
  #feature .feature_lead {
    margin-bottom: 3.5rem;
    font-size: 1rem;
  }

  /* 見出し・アイコン・本文の行高さをカード横断で揃える */
  .feature_area {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    column-gap: 1.25rem;
    row-gap: 1.5rem;
    align-items: stretch;
  }

  .feature_box {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    align-items: center;
    justify-items: center;
    row-gap: 1.5rem;
    column-gap: 0;
    margin-top: 1.75rem;
    padding: 3.75rem 1.5rem 2.5rem;
    min-height: 0;
  }

  .feature_num {
    font-size: 2rem;
  }

  .feature_title {
    align-self: start;
    width: 100%;
  }

  .feature_img {
    align-self: center;
  }

  .feature_text {
    align-self: start;
    width: 100%;
    font-size: 1rem;
  }
}

@media screen and (min-width: 1024px) {
  .feature_area {
    column-gap: 1.75rem;
  }

  .feature_box {
    padding: 4rem 1.75rem 2.5rem;
  }
}

/* ---------- CASE ---------- */

#case {
  background: linear-gradient(119.4deg, #e94709 1.91%, #dae000 95.63%);
}

#case .section_heading {
  margin-bottom: 2.5rem;
}

#case .english_title span {
  background: none;
  -webkit-text-fill-color: var(--hrbiz-white);
  color: var(--hrbiz-white);
}

#case h2 {
  color: var(--hrbiz-white);
}

.case_slider {
  --case-peek: 1.25rem; /* 狭い画面で確保する左右の覗き幅 */
  --case-gap: 4rem;
  --case-card-max: 64rem; /* 1024px：中央カードの最大幅 */
  /* inner_box から画面端までフルブリード */
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
}

.case_viewport {
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
}

.case_track {
  display: flex;
  gap: var(--case-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.4s ease;
  will-change: transform;
}

.case_slide {
  display: flex;
  flex: 0 0 min(var(--case-card-max), calc(100cqw - var(--case-peek) * 2));
  width: min(var(--case-card-max), calc(100cqw - var(--case-peek) * 2));
  min-width: 0;
  box-sizing: border-box;
}

.case_box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--hrbiz-white);
}

.case_head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--hrbiz-main-color);
  color: var(--hrbiz-white);
}

.case_num {
  margin: 0;
  font-family: var(--font-family-en);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.case_title {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  color: var(--hrbiz-white);
}

.case_body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.case_lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
}

.case_panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #f9f9f9;
}

.case_meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.case_meta_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.case_meta_row dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 1.875rem;
  margin: 0;
  padding: 0.125rem 1rem;
  border-radius: 999px;
  background: var(--hrbiz-accent-color);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
}

.case_meta_row dd {
  margin: 0;
  flex: 1 1 10rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
}

.case_diagram {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 0;
}

.case_diagram img {
  display: block;
  width: 100%;
  height: auto;
}

/* EX02図解: EX01(776×215)と同じ縦幅になるよう横幅を縮める */
.case_diagram_ex02 img {
  width: calc(100% * 215 / 776 * 536 / 203);
  max-width: 100%;
}

.case_diagram_ex04 img {
  width: calc(100% * 215 / 776 * 724 / 232);
  max-width: 100%;
}

.case_voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.case_person {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 5.5rem;
  height: 7.5rem;
  margin: 1.25rem 0 0;
  overflow: hidden;
}

.case_person img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case_quote {
  position: relative;
  flex: 1;
  align-self: stretch;
  width: auto;
  margin: 0 -1.5rem -1.5rem; /* bodyの左右・下paddingを打ち消し */
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 1.25rem 0 1.25rem 0;
  background: #fff3ef;
  box-sizing: border-box;
}

/* SP: 上向き三角（左右反転相当の形を直接指定） */
.case_quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  width: 2.1875rem; /* 35px — 元の高さ */
  height: 3.25rem; /* 52px — 元の幅（長い面） */
  background: #fff3ef;
  clip-path: polygon(100% 0, 100% 99.12%, 50.65% 98.08%, 1.3% 97.04%);
  transform: translateY(-80%);
}

.case_quote_title {
  display: inline;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.5rem;
  background: var(--gradation-color);
  font-size: 1rem;
  font-weight: 700;
  line-height: 2;
  color: var(--hrbiz-white);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.case_quote_text {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
}

.case_controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.case_btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hrbiz-white);
  cursor: pointer;
  position: relative;
}

.case_btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--hrbiz-main-color);
  border-right: 2px solid var(--hrbiz-main-color);
  transform: translate(-55%, -50%) rotate(45deg);
}

.case_btn_prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.case_btn:hover,
.case_btn:focus-visible {
  opacity: 0.85;
}

.case_dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case_dot {
  width: 0.625rem;
  height: 0.625rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hrbiz-white);
  cursor: pointer;
}

.case_dot.is-active {
  background: var(--hrbiz-main-color);
}

@media screen and (min-width: 768px) {
  .case_slider {
    --case-peek: 1.5rem;
    --case-gap: 7rem;
  }

  #case .section_heading {
    margin-bottom: 3rem;
  }

  .case_head {
    gap: 1.5rem 2rem;
    padding: 1.75rem 3rem;
  }

  .case_num {
    font-size: 3.5rem;
  }

  .case_title {
    font-size: 1.5rem;
  }

  .case_body {
    padding: 2rem 3rem 0;
  }

  .case_lead {
    margin-bottom: 1.75rem;
    font-size: 1rem;
  }

  .case_panel {
    flex: 0 0 auto;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .case_diagram {
    flex: 0 0 auto;
    align-items: flex-start;
  }

  .case_meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
  }

  .case_meta_row_full {
    grid-column: 1 / -1;
  }

  .case_meta_row dt {
    font-size: 1rem;
  }

  .case_meta_row dd {
    font-size: 1rem;
  }

  .case_voice {
    flex-direction: row;
    align-items: flex-end;
    gap: 2rem;
    margin-top: auto;
    width: 100%;
  }

  .case_person {
    width: 11rem;
    height: 15rem;
    flex-shrink: 0;
    margin: -0.75rem -1.5rem 0 0; /* 下端は付けたまま上に重ねる */
    z-index: 0;
  }

  .case_quote {
    flex: 1;
    align-self: auto;
    width: auto;
    margin: -0.75rem -3rem 0 0; /* 下端は付けたまま上に重ねる */
    padding: 2.5rem 2rem 2.5rem 3rem;
    z-index: 2; /* 三角を人物の上に重ねる */
  }

  /* PC: 左向き三角（Figma 157:2129） */
  .case_quote::before {
    top: 2rem;
    left: 0;
    width: 3.25rem;
    height: 2.1875rem;
    clip-path: polygon(0 0, 99.12% 0, 98.08% 49.35%, 97.04% 98.7%);
    transform: translate(-80%, 0);
    z-index: 2;
  }

  .case_quote_title {
    font-size: 1.25rem;
    line-height: 1.6;
  }

  .case_quote_text {
    font-size: 1rem;
  }
}

/* ---------- FLOW ---------- */

#flow {
  background-color: #f9f9f9;
}

#flow .title_text {
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
  color: var(--hrbiz-font-color);
}

#flow .flow_area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 2rem 0;
  text-align: center;
}

#flow .flow_box {
  display: block;
  margin-top: 0;
}

#flow .flow_box img {
  width: 6rem;
  height: auto;
}

#flow h3 {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: solid 3px var(--gray-color);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hrbiz-font-color);
}

#flow h3::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 100px;
  border: solid 3px #f9f9f9;
  background: var(--hrbiz-main-color);
  position: absolute;
  top: calc(-1rem + 5.5px);
  left: 50%;
  transform: translateX(-50%);
}

#flow h3::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  border-radius: 100px;
  background: var(--hrbiz-main-color);
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
}

#flow h3 span {
  display: block;
  font-family: var(--font-family-en);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--hrbiz-main-color);
}

#flow .flow_box p {
  margin: 0;
  padding: 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
}

@media screen and (min-width: 768px) {
  #flow .flow_area {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  #flow .flow_box p {
    font-size: 1rem;
  }
}

/* ---------- MESSAGE ---------- */

#message {
  background: #fff3ef;
}

#message .section_heading {
  margin-bottom: 2rem;
}

#message .english_title,
#message h2 {
  text-align: left;
}

#message .message_area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#message .message_img {
  margin: 0;
}

#message .message_img img {
  display: block;
  width: 100%;
  max-width: 28rem; /* 448px */
  height: auto;
  aspect-ratio: 448 / 339;
  object-fit: cover;
  border-radius: 1.25rem; /* 20px */
  margin: 0 auto;
}

#message .message_content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#message .message_text p {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
}

#message .message_text p:last-child {
  margin-bottom: 0;
}

#message .message_sign {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: right;
  color: var(--hrbiz-font-color);
}

@media screen and (min-width: 768px) {
  #message .section_heading {
    margin-bottom: 2.5rem;
  }

  #message .message_area {
    flex-direction: row;
    align-items: stretch;
    gap: 3.75rem; /* ≈60px */
  }

  #message .message_img {
    flex: 0 0 28rem;
  }

  #message .message_img img {
    width: 28rem;
    max-width: none;
  }

  #message .message_content {
    flex: 1;
    min-width: 0;
    justify-content: space-between;
  }

  #message .message_text p,
  #message .message_sign {
    font-size: 1rem;
  }
}

