/* =========================================================
   株式会社ナゴミヤ コーポレートサイト
   色やフォントを変えたいときは、下の「基本設定」だけ直せばOK
   ========================================================= */

/* ---------- 基本設定 ---------- */
:root {
  --navy: #21205a;        /* 見出しの色 */
  --blue: #1c4388;        /* ボタン・リンクの色 */
  --text: #404040;        /* 本文の色 */
  --sub: #7a7a7a;         /* 補足の文字色 */
  --bg-gray: #f5f5f5;     /* グレー背景 */
  --line: #e2e2e2;        /* 罫線 */
  --max: 1100px;          /* 本文の最大幅 */
  --font: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Noto Sans JP", Meiryo, sans-serif;
  --font-en: "Archivo Black", "Arial Black", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--gray { background: var(--bg-gray); }
.center { text-align: center; }
.sp-only { display: none; }

/* ---------- 見出し ---------- */
.sec-title { text-align: center; margin: 0 0 48px; }
.sec-title .en {
  display: block;
  font-family: var(--font-en);
  font-size: 39px;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--navy);
}
.sec-title .ja {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(0, 0, 0, .8);
  color: #fff;
}
.site-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo img { height: 77px; width: auto; }
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav a { color: #fff; text-decoration: none; font-size: 15px; }
.gnav a:hover { opacity: .7; }
.gnav .btn-cta { padding: 10px 22px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- ボタン ---------- */
.btn-cta {
  display: inline-block;
  background: var(--blue); color: #fff !important;
  border-radius: 999px; padding: 14px 40px;
  font-weight: 700; text-decoration: none;
  transition: opacity .2s;
}
.btn-cta:hover { opacity: .85; }
.btn-white {
  display: inline-block; background: #fff; color: var(--blue);
  border-radius: 999px; padding: 16px 48px;
  font-size: 22px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* ---------- トップのスライド ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; color: #fff; }
/* 今のサイトと同じ：拡大はせず、5秒かけてゆっくり次の写真へ切り替え */
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 5s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 77px 24px 0;
}
.hero__logo { width: 420px; max-width: 80vw; margin-bottom: 24px; }
.hero__copy {
  font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 30px; font-weight: 700; line-height: 1.5; margin: 0 0 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.hero__btn {
  display: inline-block; width: 260px; padding: 16px; text-decoration: none;
  background: var(--blue); color: #fff; border-radius: 999px;   /* 右上の「無料相談はこちら」と同じ紺色 */
  font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 16px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: opacity .2s;
}
.hero__btn::after { content: "  ›"; }
.hero__btn:hover { opacity: .85; }
/* 写真を少し暗くして、ロゴと白文字をくっきり見せる */
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 1; }

/* ---------- 下層ページの見出し画像 ---------- */
.page-hero {
  position: relative; height: 420px; color: #fff;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.page-hero__inner { position: relative; z-index: 2; padding-top: 77px; }
.page-hero .en { font-family: var(--font-en); font-size: 48px; letter-spacing: .06em; display: block; line-height: 1.2; }
.page-hero .ja { font-size: 18px; display: block; margin-top: 8px; }

/* ---------- MESSAGE ---------- */
.keywords { display: flex; justify-content: center; gap: 40px; margin: 0 0 40px; color: var(--navy); font-size: 18px; font-weight: 700; }
.message-text { color: var(--sub); text-align: center; line-height: 2.2; }

/* ---------- BUSINESS ---------- */
.business-band {
  height: 420px; background-size: cover; background-position: center;
}
.lead { text-align: center; color: var(--sub); line-height: 2.1; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 36px 32px; display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 16px; color: var(--navy); font-size: 20px; line-height: 1.6; text-align: center; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { color: var(--sub); font-size: 15px; }
.card .card__link { margin-top: auto; font-size: 14px; word-break: break-all; }

/* ---------- NEWS ---------- */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; gap: 32px; padding: 20px 8px; color: var(--text); text-decoration: none; }
.news-list a:hover { background: #fafafa; }
.news-list time { color: var(--sub); white-space: nowrap; min-width: 130px; }

/* ---------- 会社概要などの表 ---------- */
.info-table { width: 100%; max-width: 860px; margin: 0 auto; border-collapse: collapse; }
.info-table th, .info-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.info-table th { width: 26%; color: var(--navy); font-weight: 700; white-space: nowrap; }
.info-table td { color: var(--text); }

/* ---------- ACCESS ---------- */
.map { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- お問い合わせ ---------- */
.contact-box { text-align: center; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 860px; margin: 40px auto 0; }
.contact-col { background: #fff; border-radius: 8px; padding: 32px 24px; text-align: center; }
.contact-col .label { color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.contact-col .tel { font-size: 30px; font-weight: 700; color: var(--blue); text-decoration: none; letter-spacing: .04em; }
.contact-col small { display: block; color: var(--sub); margin-top: 4px; }
.form-wrap { max-width: 860px; margin: 0 auto; background: #fff; padding: 24px; border-radius: 8px; }

/* ---------- 記事ページ（お知らせ・求人） ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article__date { color: var(--sub); }
.article__title { color: var(--navy); font-size: 26px; line-height: 1.6; margin: 8px 0 32px; }
.article__img { margin: 32px auto; }
.back-link { display: inline-block; margin-top: 48px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 採用ページ ---------- */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; max-width: var(--max); }
.subnav a { display: block; padding: 16px 0; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; }
.catch { text-align: center; color: var(--navy); font-size: 22px; font-weight: 700; line-height: 1.8; margin-bottom: 32px; }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; margin-top: 56px; background: #fff; padding: 40px; border-radius: 8px; }
.profile__name { font-size: 24px; font-weight: 700; color: var(--navy); margin: 0; }
.profile__role { color: var(--sub); margin: 0 0 12px; }
.history { list-style: none; padding: 0; margin: 16px 0 0; }
.history li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.history b { color: var(--blue); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.feature img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.feature h3 { color: var(--navy); font-size: 18px; margin: 16px 0 8px; }
.feature p { color: var(--sub); font-size: 15px; }
.interview { background: #fff; border-radius: 8px; padding: 40px; margin-top: 40px; }
.interview__head { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.interview__head img { border-radius: 8px; }
.interview__role { color: var(--blue); font-weight: 700; margin: 0; }
.interview__name { font-size: 24px; color: var(--navy); margin: 0 0 4px; }
.interview__meta { color: var(--sub); font-size: 14px; }
.schedule { list-style: none; padding: 0; margin: 12px 0 0; font-size: 15px; }
.schedule li { display: grid; grid-template-columns: 60px 1fr; padding: 4px 0; }
.schedule b { color: var(--blue); }
.interview h4 { color: var(--navy); font-size: 18px; border-left: 4px solid var(--blue); padding-left: 12px; margin: 32px 0 12px; }
.job-card { display: grid; grid-template-columns: 360px 1fr; gap: 32px; background: #fff; border-radius: 8px; padding: 32px; margin-top: 32px; }
.job-card img { border-radius: 8px; }
.tag { display: inline-block; background: var(--blue); color: #fff; font-size: 13px; padding: 2px 12px; border-radius: 4px; }
.job-card h3 { color: var(--navy); font-size: 20px; margin: 8px 0 12px; }
.job-card ul { padding-left: 1.2em; color: var(--sub); font-size: 15px; }
.flow { list-style: none; padding: 0; counter-reset: f; }
.flow li { background: #fff; border-radius: 8px; padding: 20px 24px 20px 72px; margin-bottom: 16px; position: relative; }
.flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 24px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; text-align: center; line-height: 32px; font-weight: 700; }
.flow b { color: var(--navy); }

/* ---------- フッター ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 0; text-align: center; color: var(--sub); font-size: 14px; }
.site-footer img { height: 36px; width: auto; margin: 0 auto 16px; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 16px; }
.footer-nav a { color: var(--text); text-decoration: none; }

/* ---------- スマホ表示 ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .gnav {
    position: fixed; inset: 77px 0 auto 0; background: rgba(0,0,0,.92);
    flex-direction: column; gap: 0; padding: 8px 0 24px;
    display: none;
  }
  .gnav.is-open { display: flex; }
  .gnav a { padding: 14px 24px; width: 100%; text-align: center; }
  .gnav .btn-cta { width: auto; margin-top: 12px; }
  .cards, .contact-cols, .features, .profile, .interview__head, .job-card { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .sec-title .en { font-size: 30px; }
  .hero__copy { font-size: 19px; }
  .keywords { flex-direction: column; gap: 4px; text-align: center; }
  .business-band { height: 260px; background-attachment: scroll; }
  .news-list a { flex-direction: column; gap: 0; }
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 0; }
  .page-hero { height: 300px; }
  .page-hero .en { font-size: 34px; }
  .profile, .interview, .job-card { padding: 24px; }
  .sp-only { display: inline; }
  .message-text br.pc { display: none; }
}

/* ---------- 事業内容（3つ横並び・アイコン付き） ---------- */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.biz__item { text-align: center; }
.biz__icon {
  width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 50%;
  background: #f1f1f3; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.biz__icon svg { width: 62px; height: 62px; }
.biz__item h3 { color: var(--navy); font-size: 20px; line-height: 1.6; margin: 0 0 16px; }
.biz__item h3 a { color: inherit; text-decoration: none; }
.biz__item p { color: var(--sub); font-size: 15px; line-height: 1.8; }
.biz__item p a { color: var(--sub); }

/* ---------- 採用ページ上部の写真（今のサイトと同じく全画面・文字なし） ---------- */
/* PCでは画面の高さいっぱい、スマホでは写真が切れないよう写真の比率で表示 */
.photo-hero {
  margin-top: 77px;                         /* ヘッダーの下から表示（顔が隠れないように） */
  height: min(calc(100vh - 77px), 60.65vw);
  background-size: cover; background-position: center;
  animation: fadein 1.2s ease both;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 四角い枠のボタン（トップ末尾のお問合せ） ---------- */
.btn-outline {
  display: inline-block; min-width: 520px; max-width: 100%;
  margin-top: 16px; padding: 22px 32px;
  border: 4px solid var(--blue); border-radius: 6px; background: #fff;
  color: var(--blue); font-size: 24px; font-weight: 700; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--blue); color: #fff; }
#contact .sec-title .ja { font-size: 40px; font-weight: 700; color: var(--navy); margin-top: 16px; }

@media (max-width: 900px) {
  .biz { grid-template-columns: 1fr; gap: 48px; }
  .btn-outline { min-width: 0; width: 100%; font-size: 20px; }
  #contact .sec-title .ja { font-size: 28px; }
}

/* ---------- 方眼紙の背景（トップのMESSAGE〜NEWS） ---------- */
.section--grid {
  background-color: #fff;
  background-image:
    linear-gradient(transparent 90%, #f2f2f2 90%),
    linear-gradient(90deg, transparent 90%, #f2f2f2 90%);
  background-size: 10px 10px;
}
.section--grid .news-list a:hover { background: rgba(0,0,0,.03); }

/* ---------- 募集要項ページの上部（ベージュ＋RECRUIT＋ロゴ） ---------- */
.logo-hero {
  height: 428px; padding-top: 77px; background: #f6f5f3;
  display: flex; align-items: center; justify-content: center; gap: 40px;
}
.logo-hero img:first-child { width: 240px; }
.logo-hero img:last-child { width: 400px; }

/* ---------- 応募フォームの上部（写真＋メッセージ） ---------- */
.message-hero {
  position: relative; height: 100vh; min-height: 480px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  animation: fadein 1.2s ease both;
}
.message-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.message-hero p {
  position: relative; z-index: 1; margin: 0; padding: 77px 24px 0;
  color: #fff; font-size: 30px; font-weight: 700; text-align: center;
  font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

@media (max-width: 900px) {
  .logo-hero { height: 300px; flex-direction: column; gap: 16px; }
  .logo-hero img:first-child { width: 160px; }
  .logo-hero img:last-child { width: 260px; }
  .message-hero { height: 70vh; }
  .message-hero p { font-size: 20px; }
}

/* ---------- お知らせ（白い枠で囲む） ---------- */
.news-box { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid #ccc; border-radius: 10px; padding: 20px; }
.news-box .news-list li:last-child { border-bottom: 0; }

/* =========================================================
   採用情報ページ（今のサイトの配色・レイアウトに合わせる）
   ========================================================= */
:root { --r-navy: #173176; --r-mid: #3c5891; --r-beige: #e8e7e2; --r-dark: #231d1c; }
.gnav--recruit a { font-weight: 700; font-size: 14px; }

/* 上部：集合写真 ⇔ 白地に「Recruit」がゆっくり切り替わる */
.recruit-visual { position: relative; height: 100vh; min-height: 420px; background: #fff; overflow: hidden; }
.recruit-visual__photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 5s ease; }
.recruit-visual__title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity 5s ease; }
.recruit-visual__title img { width: 360px; max-width: 70vw; }
.recruit-visual.is-photo .recruit-visual__photo { opacity: 1; }
.recruit-visual.is-photo .recruit-visual__title { opacity: 0; }

/* ページ内メニュー（タブ） */
.tabnav ul { list-style: none; margin: 40px auto 0; padding: 0 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.tabnav a { display: block; width: 123px; padding: 16px 0; text-align: center; text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 0 0 0 24px; }
.tabnav .t-beige { background: var(--r-beige); color: var(--r-navy); }
.tabnav .t-mid { background: var(--r-mid); color: #fff; }
.tabnav .t-navy { background: var(--r-navy); color: #fff; }
.tabnav .is-strong { font-weight: 900; font-size: 16px; }

.r-sec { padding: 96px 0 40px; }
.r-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.r-title { text-align: center; margin: 0 0 48px; color: #21205a; font-family: var(--font-en); font-weight: 400; }
.r-title .en { display: block; font-size: 40px; line-height: 1.2; letter-spacing: .02em; }
.r-title .ja { display: block; font-size: 40px; font-weight: 600; line-height: 1.6; font-family: "Archivo Black", var(--font); }
.r-catch { text-align: center; color: var(--r-navy); font-size: 20px; font-weight: 500; line-height: 2; margin: 0 0 32px; }
.r-lead { text-align: center; color: var(--text); line-height: 2; }
.r-lead--narrow { max-width: 810px; margin-left: auto; margin-right: auto; }

/* 代表プロフィール：左写真・右にプロフィールと年表 */
.r-profile { display: grid; grid-template-columns: 488px 1fr; gap: 40px; align-items: start; margin-top: 64px; padding: 0 32px; }
.r-profile__label { font-family: "Hiragino Kaku Gothic ProN", var(--font); font-size: 28px; font-weight: 700; color: var(--r-beige); margin: 0 0 4px; line-height: 1.2; }
.r-profile__head { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 12px; }
.r-profile__role { margin: 0; }
.r-profile__name { margin: 0; font-size: 25px; line-height: 1.4; }
.r-profile__bio { margin: 0; font-size: 15px; line-height: 1.7; }
.r-history { display: grid; grid-template-columns: 68px 1fr; margin: 0; font-size: 15px; line-height: 1.75; }
.r-history dt { font-weight: 400; }
.r-history dd { margin: 0 0 4px; }

/* 職場環境の3枚 */
.r-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.r-features img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.r-features h3 { text-align: center; font-size: 20px; font-weight: 500; color: var(--text); margin: 20px 0 8px; }
.r-features p { font-size: 14px; }

/* 先輩インタビュー：色付きの背景で1人ずつ分ける */
.r-iv { color: var(--r-dark); padding: 68px 100px; margin-top: 40px; }
.r-iv--pink { background: #debebb; }
.r-iv--blue { background: #abc5e5; }
.r-iv__head { display: grid; grid-template-columns: 434px 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.r-iv__name { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.r-iv__meta { margin: 0 0 16px; }
.r-pill { display: inline-block; min-width: 260px; background: #fff; border-radius: 100px; padding: 8px 16px; font-size: 18px; font-weight: 700; margin: 16px 0 16px; text-align: center; }
.r-schedule { display: grid; grid-template-columns: 56px 1fr; margin: 0; line-height: 1.9; }
.r-schedule dt { color: #fff; font-weight: 700; }
.r-schedule dd { margin: 0; }
.r-iv__message { border: 1px solid #fff; border-radius: 24px; padding: 32px 48px; margin: 40px 64px 0; line-height: 2; }

/* 募集職種：紺の帯＋ベージュの背景 */
.r-occupation { background: var(--r-beige); padding-bottom: 80px; margin-top: 96px; }
.r-band { background: var(--r-navy); color: #fff; }
.r-band__inner { max-width: 1080px; margin: 0 auto; padding: 32px 24px 16px; position: relative; text-align: center; }
.r-band h2 { margin: 0; font-size: 32px; font-weight: 400; line-height: 1.4; }
.r-band span { position: absolute; right: 24px; bottom: 16px; font-size: 14px; }
.r-occupation .r-catch { margin: 48px 0 40px; }
.r-job { background: #fff; padding: 64px 100px; }
.r-job__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.r-job__tag { background: #c0d7bc; color: #fff; font-size: 20px; font-weight: 700; padding: 2px 16px; }
.r-job h3 { margin: 0; color: var(--r-navy); font-size: 20px; }
.r-job__body { display: grid; grid-template-columns: 428px 1fr; gap: 24px; }
.r-job__desc { font-size: 14px; }
.r-btn { display: inline-block; width: 320px; padding: 10px 0; margin-top: 32px; border: 2px solid var(--r-navy); border-radius: 100px; color: var(--r-navy); background: #fff; font-size: 18px; font-weight: 600; text-decoration: none; text-align: center; }
.r-btn:hover { background: var(--r-navy); color: #fff; }
#company.r-sec .info-table th { color: var(--r-navy); }

/* 採用ページ下部の紺の帯 */
.r-footband { background: var(--r-navy); padding: 48px 24px; text-align: center; margin-top: 80px; }
.r-footband img { height: 80px; width: auto; margin: 0 auto 20px; }
.r-footband nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; }
.r-footband a { color: #fff; text-decoration: none; font-size: 14px; }

@media (max-width: 900px) {
  .site-header__logo img { height: 56px; }
  .hero__copy { font-size: 20px; }
  .hero__logo { width: 280px; }
  .recruit-visual { height: 70vh; }
  .r-title .en, .r-title .ja { font-size: 28px; }
  .r-catch { font-size: 17px; }
  .r-lead { text-align: left; }
  .r-profile, .r-iv__head, .r-job__body, .r-features { grid-template-columns: 1fr; }
  .r-profile { padding: 0; }
  .r-profile__head { flex-direction: column; gap: 8px; }
  .r-iv, .r-job { padding: 32px 20px; }
  .r-iv__message { margin: 32px 0 0; padding: 24px; }
  .r-pill { min-width: 0; width: 100%; }
  .r-btn { width: 100%; }
  .r-band span { position: static; display: block; }
  .tabnav a { width: 30%; }
}

/* ---------- 上部の写真を固定し、下の内容が写真の上に重なってスクロールする ---------- */
/* お問合せ・採用エントリー（.message-hero）と採用情報（.recruit-visual）で使用 */
.message-hero, .recruit-visual { position: sticky; top: 0; z-index: 0; }
.message-hero ~ *, .recruit-visual ~ * { position: relative; z-index: 1; }
.recruit-visual ~ .tabnav, .recruit-visual ~ .r-sec { background: #fff; }
.tabnav { padding-top: 40px; }
.tabnav ul { margin-top: 0; }

/* 採用ページの日本語見出しに、ベージュのマーカー線 */
.r-title .ja {
  display: inline-block; padding: 0 22px;
  background: linear-gradient(transparent 62%, var(--r-beige) 62%);
}

/* お問合せ・エントリーフォームの見出し（日本語も大きく紺色） */
.sec-title--big .ja { font-size: 40px; font-weight: 700; color: var(--navy); margin-top: 16px; }
@media (max-width: 900px) { .sec-title--big .ja { font-size: 26px; } }

/* 採用ページ：余白から上部の写真が透けて見えないよう、余白は白い背景の内側(padding)で取る */
.recruit-visual ~ .r-occupation { margin-top: 0; }
.recruit-visual ~ .r-footband { margin-top: 0; }
#interview.r-sec { padding-bottom: 136px; }
#company.r-sec { padding-bottom: 120px; }

/* ---------- 採用ページの会社概要（方眼紙の背景・罫線なし・WEBサイト欄） ---------- */
.recruit-visual ~ .r-company {
  background-color: #fff;
  background-image: linear-gradient(transparent 90%, #f2f2f2 90%), linear-gradient(90deg, transparent 90%, #f2f2f2 90%);
  background-size: 10px 10px;
}
.r-company__list { display: grid; grid-template-columns: 140px 1fr; row-gap: 26px; max-width: 520px; margin: 0 auto 72px; padding-left: 40px; }
.r-company__list dt { color: var(--text); }
.r-company__list dd { margin: 0; color: var(--text); }
.r-company__list ul { list-style: none; margin: 6px 0 0; padding: 0; line-height: 2.4; }
.r-company__list li::before { content: "■ "; }
.r-web { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 32px; max-width: 760px; margin: 0 auto; }
.r-web__label { margin: 0; color: var(--r-navy); font-weight: 700; font-size: 17px; padding-right: 16px; }
.r-web__links { display: grid; grid-template-columns: auto auto; column-gap: 32px; row-gap: 14px; margin: 0; padding: 6px 0 6px 16px; border-left: 2px solid var(--r-navy); }
.r-web__links dt { color: var(--text); }
.r-web__links dd { margin: 0; }
.r-web__links a { color: var(--text); }
.r-web__logo { width: 120px; height: auto; }
@media (max-width: 900px) {
  .r-company__list { grid-template-columns: 90px 1fr; padding-left: 0; }
  .r-web { grid-template-columns: 1fr; gap: 16px; justify-items: start; }
  .r-web__links { grid-template-columns: 1fr; row-gap: 2px; }
  .r-web__links dd { margin-bottom: 10px; }
  .r-web__logo { justify-self: center; }
}
@media (min-width: 901px) {
  .r-web { max-width: 860px; }
  .r-web__links dt, .r-web__label { white-space: nowrap; }
}

/* 採用ページ上部：最初から集合写真を表示し、その上に「Recruit」（元のサイトと同じ配置） */
.recruit-visual__photo { opacity: 1; background-position: center top; transition: none; }
.recruit-visual__title { opacity: 1 !important; align-items: flex-start; padding-top: 26vh; }
@media (max-width: 900px) {
  .tabnav li { width: calc(33.333% - 4px); }
  .tabnav a { width: 100%; font-size: 13px; padding: 14px 0; }
  .recruit-visual { height: 60vh; }
  .recruit-visual__title { padding-top: 20vh; }
  .recruit-visual__title img { width: 220px; }
}
