/* 代表メッセージ */
#recruit.message {
}
.recruit-message {
  margin-bottom: 35px;
}
.recruit-message-img {
  position: relative;
}
.recruit-message-name {
  background: var(--color-main);
  display: flex;
  align-items: baseline;
  gap: 25px;
  max-width: 100%;
  padding: 25px;
  position: absolute;
  bottom: 0;
  left: 0;
}
#recruit .content .inner p.recruit-message-position {
  color: #fff;
  line-height: 1;
}
#recruit .content .inner p.recruit-message-author {
  color: #fff;

  font-size: var(--font-h4);

  line-height: 1;
  margin-top: 0;
}
#recruit #message .sec-recruit-link {
  justify-content: flex-end;
  margin-top: 2em;
}

/* 共通：画像・カラムレイアウト */
.col-img {
  width: 100%;
  margin-bottom: 75px;
}
.col-img img {
  display: block;
  width: 100%;
  height: auto;
}
.col-flex-container {
  display: flex;
  justify-content: space-between;
  gap: 3.5vw;
}
.col-cap {
  font-weight: bold;
  flex: 0 0 30%;
}
.col-txt {
  flex: 1;
}
#recruit .content .inner .col-txt p {
  line-height: 2;
}

/* ページ内リンクメニュー (アンカーナビ) */
#recruit .recruit-nav-anchor {
  margin-bottom: calc(40 * var(--vw-unit));
}
#recruit .recruit-nav-anchor .inner.d-flex {
  flex-wrap: wrap;
  gap: calc(40 * var(--vw-unit));
}
#recruit .nav-item a {
  font-size: var(--text-18);
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1;
  display: flex;
  align-items: center;
  position: relative;
}
#recruit .nav-item a::after {
  background: url(../img/recruit/icon-workstyle-nav.svg) no-repeat center;
  background-size: contain;
  content: '';
  display: inline-block;
  width: 1.45em;
  height: 1.45em;
  margin-left: 0.5em;
}

/* 見出し (セクションヘッダー) */
#recruit.data .section-header,
#recruit.interview .section-header {
  margin-bottom: calc(60 * var(--vw-unit));
}
#recruit.data .section-header .en-title,
#recruit.interview .section-header .en-title {
  color: var(--color-main);
  font-family: Inter;
  font-size: var(--text-18);
  font-weight: 600;
  letter-spacing: 0.08em;
}
#recruit.data .section-header .jp-title,
#recruit.interview .section-header .jp-title {
  font-size: var(--font-h4);
  font-weight: bold;
  letter-spacing: 0.08em;
}
#recruit.interview .section-header .jp-title {
  margin-top: 10px;
}

/* 数字でみる「なかよし」 (データ・アンケート) */
#recruit.data #data,
#recruit.data #questionnaire {
  padding-top: 50px;
  padding-bottom: 40px;
}
#recruit.data #data .section-header .jp-title,
#recruit.data #questionnaire .section-header .jp-title {
  margin-top: 0;
}
.data-list {
  display: grid;
  grid-template-columns: repeat(6, 11fr); /* 6分割して柔軟に対応 */
  gap: 2.5vw;
}
.data-list li:nth-child(-n + 4) {
  grid-column: span 3;
}
.data-list li:nth-child(n + 5) {
  grid-column: span 2;
}
.question-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5vw;
}

/* 「なかよし」の仕事 (インタビュー) */
.job-intro {
  margin-bottom: 80px;
}
.job-intro:last-of-type {
  margin-bottom: 40px;
}
.job-feature {
  border: 3px solid var(--color-main);
  display: grid;
  grid-template-columns: 215px 1fr;
  margin-bottom: 70px;
  padding: 20px 47px 15px;
  position: relative;
}
.job-feature::before {
  border: 3px solid var(--color-white);
  content: '';
  display: block;
  width: calc(100% - 20px);
  height: 100%;
  margin: auto;
  position: absolute;
  top: -3px;
  right: 0;
  left: 0;
  z-index: 1;
}
.feature-label {
}
#recruit .content .inner p.feature-text {
  line-height: 2;
}
.interview-container {
  display: block; /* flex は解除します */
  width: 100%;
  overflow: hidden;
}
.interview-container-img {
  float: left;
  width: 360px;
  margin-right: 4vw;
  margin-bottom: 1vw;
}
.interview-container-img img {
  display: block;
  width: 100%;
  height: auto;
}
.interview-txt {
  display: block;
}
#recruit .content .inner h2.interview-container-name {
  color: var(--color-black);
  font-size: clamp(2.7rem, 1.23vw + 2.24rem, 4.6rem);
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 30px;
}
.name-sub {
  font-size: var(--font-h4);
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: clamp(2.7rem, 1.23vw + 2.24rem, 4.6rem);
}
.name-sub-info {
  font-size: 0.39em;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: clamp(2.7rem, 1.23vw + 2.24rem, 4.6rem);
}
#recruit .job-intro .content .inner h2.message-title {
  line-height: 1.8;
  margin-bottom: 15px;
}
.message-title:first-child {
  margin-top: 0;
}
#recruit .content .inner p.speaker-text {
  line-height: 2;
  margin-bottom: 33px;
  margin-left: 0;
}
.job-message {
  margin-top: 20px;
}

/* スケジュール開閉 (details) */
.schedule-details {
  border: 3px solid var(--color-main);
  border-radius: 5px;
  margin-top: 50px;
}
.schedule-summary {
  background-color: var(--color-white);
  color: var(--color-main);
  font-size: var(--text-m);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.08em;
  padding: 13px;
  position: relative;
  cursor: pointer;
  list-style: none;
}
.schedule-details[open] .schedule-summary {
  background: var(--color-main);
  color: var(--color-white);
}
.schedule-summary::after {
  background: url(../img/recruit/icon-schedule-down.svg) no-repeat;
  background-size: contain;
  content: '';
  display: inline-block;
  width: 1em;
  height: 0.5em;
  margin-left: 20px;
}
.schedule-details[open] .schedule-summary::after {
  background: url(../img/recruit/icon-schedule-up.svg) no-repeat;
  background-size: contain;
}
.schedule-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-block: 40px;
}
.schedule-content img {
  width: auto;
}
/* 3分でわかる「なかよし」 (who / what / how) */
#who {
  padding-top: 50px;
  padding-bottom: 130px;
}
#what {
  padding-top: 50px;
  padding-bottom: 135px;
}
#how {
  padding-top: 50px;
  padding-bottom: 40px;
}
.about .content-full + .content {
  margin-top: 12px;
}
#recruit.about .content .inner h2.concept-message__title {
  font-size: clamp(2.7rem, 1.23vw + 2.24rem, 4.6rem);
  margin-top: 65px;
}
.highlight {
  background: linear-gradient(
    transparent 15%,
    var(--color-main) 15%,
    var(--color-main) 85%,
    transparent 85%
  );
}
#recruit .content .inner p.concept-message__note {
  font-size: var(--text-18);
  line-height: 2;
}

/* who We Are */
.who-wrap {
  display: flex;
  justify-content: space-between;
  gap: 2.5vw;
  width: 100%;
  margin-top: 65px;
}
.who-wrap > div {
  flex: 1;
}
.who-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* What We Do */
.what-wrap {
  border: 3px solid var(--color-main);
  border-radius: 5px;
  margin-top: 80px;
  padding: 3.5vw;
  position: relative;
}
.what-wrap-ttl {
  background: var(--color-white);
  width: 340px;
  margin: auto;
  padding-inline: 20px;
  position: absolute;
  top: -18px;
  right: 0;
  left: 0;
}
.what-wrap-arrow {
  width: 30px;
  margin: 30px auto;
}
.what-wrap-arrow + .what-wrap {
  margin-top: 45px;
}

/* Customer / Market ボックス */
.what-wrap.customer {
  gap: 2vw;
  padding-top: 100px;
  padding-bottom: 85px;
}
.customer .what-wrap-ttl {
  width: 150px;
  padding-inline: 30px;
  top: -13px;
}
.customer-box {
  background: var(--color-sub1);
  border-radius: 5px;
  text-align: center;
  width: calc((100% - 2vw) / 2);
  padding: 30px 2vw;
  position: relative;
}

.customer-box-ttl {
  font-size: var(--text-m);
  text-align: center;
  letter-spacing: 0.08em;
  height: 2.2em;
}
.customer-box-txt {
  text-align: center;
  letter-spacing: 0.08em;
  line-height: 1.8;
  flex-grow: 1;
  margin-top: 0 !important;
}
.customer-box:last-of-type::after {
  font-size: var(--text-18);
  font-weight: bold;
  content: 'など';
  position: absolute;
  right: 0;
  bottom: -2.3em;
}
.what-wrap-etc {
  font-size: var(--text-18);
}
.market .what-wrap-ttl {
  width: 188px;
  padding-inline: 22px;
  top: -16px;
}
.what-wrap.market {
  align-items: stretch;
  gap: 2vw;
}
.market-box {
  background: var(--color-main);
  border-radius: 5px;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: calc((100% - 2vw) / 2);
  padding: 1.7vw 2vw 2vw;
}
.market-box-ttl {
  color: var(--color-white);
  font-size: var(--text-m);
  text-align: center;
  letter-spacing: 0.08em;
  height: 2.2em;
}
.market-box-txt {
  color: var(--color-white);
  text-align: center;
  letter-spacing: 0.08em;
  line-height: 1.8;
  flex-grow: 1;
  margin-top: 0 !important;
}

/* How We Work (追加要素) */
#how .section-header {
  margin-top: 70px;
}
#how .section-header .jp-title {
  font-size: var(--font-h4);
  font-weight: bold;
  letter-spacing: 0.08em;
}
.how-wrap {
  display: flex;
  justify-content: space-between;
  gap: 2.5vw;
  width: 100%;
  margin-top: 45px;
}

/* ==========================================================================
   レスポンシブ (Media Queries)
   ========================================================================== */
@media (width < 1440px) {
  .what-wrap {
    flex-wrap: nowrap;
  }
  .how-wrap {
    flex-wrap: nowrap;
  }
}

/* --- タブレット/モバイル共通 (1024px未満) --- */
@media (width < 1024px) {
  .col-flex-container {
    flex-direction: column;
    gap: 20px;
  }
  .col-cap,
  .col-detail {
    width: 100%;
  }
  .name-sub-info {
    display: block;
  }
  #recruit .content .inner p.concept-message__text .pc-only {
    display: none;
  }
  #who {
    padding-top: 5vw;
    padding-bottom: 8vw;
  }
  #what {
    padding-top: 5vw;
    padding-bottom: 8vw;
  }
  #how {
    padding-top: 5vw;
    padding-bottom: 4vw;
  }
  .what-wrap.customer {
    padding-top: 70px;
    padding-bottom: 60px;
  }
}

/* --- スマホ標準 (768px未満) --- */
@media (width < 768px) {
  .recruit-message-name {
    gap: 15px;
    padding: 15px 20px;
  }
  .job-feature {
    display: block;
  }
  .message-title .pc-only {
    display: none;
  }

  .name-sub-info .sp-only {
    display: block;
  }
  .interview-container {
    flex-direction: column;
  }
  #recruit.about .content .inner h2.concept-message__title {
    margin-block: 40px;
  }
  #recruit.about .content .inner h2.concept-message__title {
    font-size: var(--font-h4);
  }
  .highlight::after {
    top: 0.6rem;
  }
  .what-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5vw;
  }
  .concept-message__title {
    font-size: var(--text-20);
  }
  .who-wrap {
    gap: 15px;
  }
  .who-wrap > div {
    width: 100%;
  }
  .customer-box,
  .market-box {
    width: 100%;
  }
  .market-box {
    display: block;
    flex: auto;
  }
  #recruit .content .inner p.concept-message__text br {
    display: none;
  }
}

/* --- モバイル小 (520px以下) --- */
@media (width <= 520px) {
  .recruit-message-img .col-img {
    margin-bottom: 90px;
  }
  .recruit-message-name {
    flex-wrap: wrap;
    align-content: center;
    gap: 5px;
    height: 60px;
    padding: 10px;
    bottom: -60px;
  }
  .interview-container-img {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }
  .who-wrap,
  .how-wrap {
    flex-direction: column;
  }
  .what-wrap {
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 30px;
  }
  .what-wrap.nakayoshi > div:not(.what-wrap-ttl) {
    width: 70%;
    margin: auto;
  }
  .what-wrap.customer {
    gap: 2vw;
    padding-top: 80px;
    padding-bottom: 50px;
  }
  .what-wrap.market {
    padding-top: 50px;
    padding-bottom: 30px;
  }

  .data-list,
  .question-list {
    grid-template-columns: 1fr;
    gap: 3vw 0;
  }
  .schedule-content {
    padding-block: 20px;
  }
  .schedule-content img {
    width: 70%;
  }
}
