/* ============================================================
   Tsubame Logistics — 求人詳細(ポジションページ・求人ページ)
   - /recruit-form/ (rf.css) の見た目をベースに、フォーム以外の部分を移設
   - クラス接頭辞 rd- (recruit detail)
   - ブレークポイント: 768px
   ============================================================ */

/* === トークン(recruit.css と同じ値) === */
:root {
  --rc-red: #E60012;
  --rc-red-deep: #B3000F;
  --rc-ink: #1A1A1A;
  --rc-ink-2: #4A4A4A;
  --rc-ink-3: #6B6B6B;
  --rc-paper: #FAFAF7;
  --rc-paper-warm: #F5F2E8;
  --rc-line: #E5E3DA;
  --rc-radius-card: 4px;
}

/* ダミー部分のマーカー(確定したら文面ごと差し替え) */
.rc-dummy {
  background: linear-gradient(transparent 75%, rgba(230, 0, 18, 0.18) 75%);
  font-style: italic;
  text-decoration: underline wavy rgba(230, 0, 18, 0.4) 1px;
  text-underline-offset: 4px;
}
.rc-dummy-mini {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.10);
  color: var(--rc-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-style: normal;
}

/* === 共通 === */
.rd-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.rd-inner--md { max-width: 980px; }

/* アンカーで飛んだ時に固定ヘッダーで隠れないように */
.rd-jobs,
.rd-flow,
.rd-faq,
.rd-job { scroll-margin-top: calc(var(--header-h) + 16px); }

.rd-section-head { margin-bottom: 56px; }
.rd-section-head--center { text-align: center; }
.rd-section-en {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--rc-red);
  margin: 0 0 12px;
}
.rd-section-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.04em;
  color: var(--rc-ink);
  line-height: 1.4;
  margin: 0;
  font-feature-settings: "palt";
}
.rd-section-sub {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--rc-ink-3);
}

/* ============================================================
   01 ページヘッダー
   ============================================================ */
.rd-hero {
  position: relative;
  padding: 100px 24px 70px;
  overflow: hidden;
}
.rd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.rd-hero__bg svg {
  width: 100%;
  height: 100%;
}
.rd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.rd-breadcrumb { margin-bottom: 32px; }
.rd-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rc-ink-3);
}
.rd-breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.rd-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
}
.rd-breadcrumb a {
  color: var(--rc-ink-3);
  transition: color 0.2s ease;
}
.rd-breadcrumb a:hover { color: var(--rc-red); }
.rd-breadcrumb [aria-current="page"] {
  color: var(--rc-red);
  font-weight: 700;
}

/* 写真がある時は 文字:写真 = 1:1 の2カラム */
.rd-hero__main { text-align: center; }
.rd-hero__main--img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}
.rd-hero__en {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--rc-red);
  margin: 0 0 14px;
}
.rd-hero__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--rc-ink);
  margin: 0 0 24px;
  font-feature-settings: "palt";
}
.rd-hero__lead {
  font-size: 15px;
  line-height: 1.95;
  color: var(--rc-ink-2);
  margin: 0 0 36px;
}
.rd-hero__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: var(--rc-radius-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.rd-hero__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.rd-hero__main:not(.rd-hero__main--img) .rd-hero__anchors { justify-content: center; }
.rd-hero__anchors a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--rc-ink);
  transition: all 0.2s ease;
}
.rd-hero__anchors a:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}
.rd-hero__anchors a::before {
  content: '↓';
  font-size: 11px;
  opacity: 0.6;
}

/* ============================================================
   02 募集要項(求人カード)
   ============================================================ */
.rd-jobs {
  padding: 100px 24px;
  background: var(--rc-paper);
}
.rd-jobs__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rd-empty {
  padding: 48px 24px;
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  text-align: center;
  font-weight: 700;
  color: var(--rc-ink-2);
}

.rd-job {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rd-job:hover {
  border-color: var(--rc-red);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.rd-job__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(180deg, var(--rc-paper-warm) 0%, transparent 100%);
  border-bottom: 1px solid var(--rc-line);
}
.rd-job__head-body { min-width: 0; }
.rd-job__no { /* 求人番号: 職種名の上に赤文字で小さく */
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rc-red);
}
.rd-job__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: 0.04em;
  color: var(--rc-ink);
  margin: 0;
  line-height: 1.4;
  font-feature-settings: "palt";
}
.rd-job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.rd-tag { /* タグは全て同じ見た目(地色グレー・枠線黒・文字黒) */
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #7c7c7c; /* 濃い色の1px線はガタついて見えるため少し薄く */
  border-radius: 999px;
  background: #F0F0EC;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--rc-ink);
}

/* 求人票: 2列。業務内容(--full)だけ横幅いっぱい */
.rd-job__spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  padding: 12px 28px 24px;
  margin: 0;
}
.rd-job__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rc-line);
  align-items: start;
}
.rd-job__row--full {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rc-line);
  border-bottom: 0;
}
.rd-job__row--full dt { font-weight: 900; }
.rd-job__spec dt {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rc-ink-3);
  padding-top: 2px;
}
.rd-job__spec dd {
  font-size: 13px;
  line-height: 1.8;
  color: var(--rc-ink);
  margin: 0;
}

/* 応募ボタン: LPのエントリーボタンに合わせた赤い角丸ボタン */
.rd-job__foot {
  padding: 8px 28px 32px;
  text-align: center;
}
.rd-job__apply {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 360px;
  min-height: 64px;
  padding: 12px 72px;
  border-radius: 999px;
  background: var(--rc-red);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.10em;
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.2);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-feature-settings: "palt";
}
.rd-job__apply:hover {
  background: var(--rc-red-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 0, 18, 0.25);
}
.rd-job__apply svg { /* 右端の白丸矢印 */
  position: absolute;
  top: 50%;
  right: 20px;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  color: var(--rc-red);
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.rd-job__apply:hover svg { transform: translate(4px, -50%); }

/* ============================================================
   03 応募から内定までの流れ(アイコンなし)
   ============================================================ */
.rd-flow {
  padding: 100px 24px;
  background: var(--rc-paper);
  border-top: 1px solid var(--rc-line);
}
.rd-flow__list {
  position: relative;
}
.rd-flow__list::before { /* ステップをつなぐ縦線 */
  content: '';
  position: absolute;
  left: 39px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--rc-red) 0%, var(--rc-red) 50%, var(--rc-line) 100%);
}
.rd-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
}
.rd-flow__no {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--rc-red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 6px 18px rgba(230, 0, 18, 0.30);
}
.rd-flow__no-en {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  opacity: 0.85;
  line-height: 1.4;
}
.rd-flow__no-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}
.rd-flow__body {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  padding: 22px 28px;
}
.rd-flow__title {
  font-weight: 900;
  font-size: clamp(17px, 2.2vw, 20px);
  letter-spacing: 0.04em;
  color: var(--rc-ink);
  margin: 0 0 8px;
  font-feature-settings: "palt";
}
.rd-flow__desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--rc-ink-2);
  margin: 0;
}

/* ============================================================
   04 よくある質問
   ============================================================ */
.rd-faq {
  padding: 100px 24px;
  background: var(--rc-paper-warm);
}
.rd-faq .rd-inner--md { max-width: 900px; }
.rd-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rd-faq__item {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.rd-faq__item:hover { border-color: var(--rc-red); }
.rd-faq__item summary {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rd-faq__item summary::-webkit-details-marker { display: none; }
.rd-faq__q-mark,
.rd-faq__a-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
}
.rd-faq__q-mark {
  background: var(--rc-red);
  color: #fff;
}
.rd-faq__a-mark {
  background: var(--rc-paper-warm);
  border: 2px solid var(--rc-ink);
  color: var(--rc-ink);
}
.rd-faq__q-text {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rc-ink);
  letter-spacing: 0.04em;
}
.rd-faq__chev {
  width: 24px;
  height: 24px;
  color: var(--rc-ink-3);
  transition: transform 0.25s ease, color 0.2s ease;
}
.rd-faq__chev svg {
  width: 100%;
  height: 100%;
}
.rd-faq__item details[open] .rd-faq__chev {
  transform: rotate(180deg);
  color: var(--rc-red);
}
.rd-faq__a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  margin: 0 38px 0 54px;
  padding: 18px 24px 24px;
  border-top: 1px dashed var(--rc-line);
}
.rd-faq__a p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--rc-ink-2);
  margin: 0;
  padding-top: 4px;
}

/* ============================================================
   05 ほかのポジション + フォーム以外でのご連絡
   ============================================================ */
.rd-back {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 64px 24px 0;
  background: var(--rc-paper);
  text-align: center;
}
.rd-back--inline { /* セクションの一番下に置く版(募集要項・流れ・FAQ) */
  padding: 48px 0 0;
  background: none;
}
.rd-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border: 1px solid var(--rc-ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--rc-ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.rd-back__btn::before {
  content: '←';
  font-size: 12px;
}
.rd-back__btn--up::before { content: '↑'; } /* 同ページ内の募集要項へ */
.rd-back__btn:hover {
  background: var(--rc-ink);
  color: #fff;
}

.rd-contact {
  padding: 80px 24px;
  background: var(--rc-paper);
}
.rd-contact .rd-inner--md { max-width: 900px; }
.rd-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rd-contact__card {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rd-contact__card:hover {
  border-color: var(--rc-red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.rd-contact__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}
.rd-contact__icon svg {
  width: 100%;
  height: 100%;
}
.rd-contact__title {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.10em;
  color: var(--rc-ink-2);
  margin: 0 0 10px;
}
.rd-contact__num {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: 0.04em;
  color: var(--rc-red);
  margin: 0 0 12px;
  word-break: break-all;
}
/* メール: カード全体をリンクに(href は mailto.js が付ける) */
a.rd-contact__card {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.rd-contact__card:not([href]):hover {
  border-color: var(--rc-line);
  box-shadow: none;
}
/* 電話のリンク(inc/contact-links.php) */
.rd-contact__link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a.rd-contact__link[href]:hover {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* 電話: PCでは発信リンク・ホバー効果を無効化(モバイル幅のみ有効) */
@media (min-width: 769px) {
  .rd-contact__link.js-tel {
    pointer-events: none;
    cursor: default;
  }
  .rd-contact__card--tel:hover {
    border-color: var(--rc-line);
    box-shadow: none;
  }
}
.rd-contact__note {
  font-size: 12px;
  color: var(--rc-ink-3);
  margin: 0;
}

/* ============================================================
   モバイル
   ============================================================ */
@media (max-width: 768px) {
  .rd-section-head { margin-bottom: 36px; }

  /* ヘッダー: 文字 → 写真 の縦並び */
  .rd-hero { padding: 96px 16px 48px; }
  .rd-hero__main--img {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rd-hero__lead { font-size: 14px; margin-bottom: 24px; }
  .rd-hero__anchors { gap: 8px; }
  .rd-hero__anchors a {
    padding: 10px 16px;
    font-size: 12px;
  }

  /* 求人カード: 求人票は1列 */
  .rd-jobs { padding: 64px 16px; }
  .rd-job__head {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 12px;
  }
  .rd-job__tags { justify-content: flex-start; }
  .rd-job__spec {
    grid-template-columns: 1fr;
    padding: 8px 20px 16px;
  }
  .rd-job__row { grid-template-columns: 80px 1fr; padding: 10px 0; }
  .rd-job__row--full { margin-top: 0; }
  .rd-job__foot { padding: 8px 20px 24px; }
  .rd-job__apply {
    display: flex;
    min-width: 0;
    min-height: 56px;
    padding: 10px 45px;
    font-size: 15px;
  }
  .rd-job__apply svg { right: 14px; width: 28px; height: 28px; padding: 6px; }

  .rd-flow { padding: 64px 16px; }
  .rd-flow__list::before { left: 29px; }
  .rd-flow__step {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .rd-flow__no {
    width: 60px;
    height: 60px;
  }
  .rd-flow__no-num { font-size: 20px; }
  .rd-flow__body { padding: 18px 20px; }

  .rd-faq { padding: 64px 16px; }
  .rd-faq__item summary {
    grid-template-columns: 32px 1fr 20px;
    gap: 10px;
    padding: 16px 18px;
  }
  .rd-faq__q-mark,
  .rd-faq__a-mark {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .rd-faq__a {
    grid-template-columns: 32px 1fr;
    margin: 0;
    padding: 12px 18px 20px;
  }

  .rd-back { padding: 48px 16px 0; }
  .rd-back--inline { padding: 36px 0 0; }
  .rd-contact { padding: 56px 16px; }
  .rd-contact__grid { grid-template-columns: 1fr; }
}
