/* ===========================
  Page Header（サブページ共通の見出し・パンくず）
=========================== */
.news-bleed { background: #fff; padding-left: var(--content-shift); }
.page-header-bleed {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #ffd6e8, #ffe9c7, #fff6c7, #d4f7e0, #c9e7ff, #e0d4ff, #ffd6e8);
  background-size: 400% 400%;
  animation: page-header-gradient 22s ease-in-out infinite;
  padding-left: var(--content-shift);
}
/* .page-header-bleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
} */
@keyframes page-header-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-header-bleed { animation: none; }
  .page-header .sec-head { animation: none; }
}
.page-header { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 32px var(--gap) 32px var(--gap); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #999; margin-bottom: 20px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: #ccc; }
.breadcrumb__current { color: #555; }

/* ---------- ページヘッダー見出し：トップページ hero カードに合わせたデザイン ---------- */
.page-header .sec-head {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
  background: rgba(0,0,0,0.65);
  border-radius: 12px;
  padding: 16px 26px 14px;
  animation: sec-head-float 3s ease-in-out infinite;
}
@keyframes sec-head-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.page-header .sec-head::after {
  content: '';
  position: absolute;
  left: 24px;
  bottom: -21px;
  width: 28px;
  height: 22px;
  background: rgba(0,0,0,0.65);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.page-header .sec-head__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.page-header .sec-head__ja {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  border-left: none;
  padding-left: 0;
}
.page-header .sec-head__en {
  font-size: 11px;
  letter-spacing: .1em;
  color: #fff;
}
.page-header .sec-head__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* ---------- page-header 以外の sec-head：英語ラベルをアクセントカラーのキッカーとして上に配置し、
   日本語見出しを大きく太字にして、下にグラデーションの下線を引くデザイン。 ---------- */
.sec-head:not(.page-header .sec-head) {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.sec-head:not(.page-header .sec-head) .sec-head__en {
  order: -1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.sec-head:not(.page-header .sec-head) .sec-head__ja {
  position: relative;
  display: inline-block;
  border-left: none;
  padding-left: 0;
  padding-bottom: 14px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #111;
}
.sec-head:not(.page-header .sec-head) .sec-head__ja::after {
  content: '';
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #5c7fd6);
}

.news-full-section { max-width: 1280px; margin: 0 auto; padding: 40px var(--gap) 40px var(--gap); }

.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.news-filter__btn {
font-size: 13px; font-weight: 700;
padding: 6px 18px;
border: 1px solid #ccc; border-radius: 20px;
background: #fff; color: #444;
cursor: pointer;
transition: background .15s, color .15s, border-color .15s;
}
.news-filter__btn:hover { border-color: var(--accent); color: var(--accent); }
.news-filter__btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.news-empty { padding: 24px 0; font-size: 14px; color: #777; }

.news-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.news-pagination__btn {
min-width: 32px; height: 32px;
display: flex; align-items: center; justify-content: center;
font-size: 14px; font-weight: 600;
border: 1px solid #ccc; border-radius: 4px;
background: #fff; color: #444;
cursor: pointer;
transition: background .15s, color .15s, border-color .15s;
}
.news-pagination__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.news-pagination__btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.news-pagination__btn:disabled { opacity: .35; cursor: default; }
.news-pagination__btn--arrow { font-weight: 700; }

/* ===========================
  Page Anchor Nav（ページ内ナビ／企業情報などの各サブページで使用）
=========================== */
.page-anchor-nav {
  position: relative;
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 40px;
}
.page-anchor-nav::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(calc(-50% - (var(--content-shift) / 2)));
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  z-index: -1;
}
.page-anchor-nav__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px var(--gap);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.page-anchor-nav__btn {
  font-size: 13px; font-weight: 700;
  padding: 6px 18px;
  border: 1px solid #ccc; border-radius: 20px;
  background: #fff; color: #444;
  transition: background .15s, color .15s, border-color .15s;
}
.page-anchor-nav__btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===========================
  Company Page（企業情報ページ）
=========================== */
.company-section { max-width: 1280px; margin: 0 auto; padding: 0 var(--gap) 60px var(--gap); }
.company-block { margin-bottom: 56px; scroll-margin-top: 0; }
.company-block:last-child { margin-bottom: 0; }

.company-message {
  font-size: 15px; line-height: 2; color: #333;
  background: #eaf3fb; border: 1px solid #cfe3f5; border-radius: 8px;
  padding: 28px 32px;
}
.company-message p { margin-bottom: 1.2em; }
.company-message p:last-child { margin-bottom: 0; }
.company-message__illustration {
  float: right; position: relative; z-index: 1;
  width: 170px; height: auto;
  margin: -20px -50px 12px 24px;
  filter: drop-shadow(0 10px 14px rgba(26,35,64,.2));
}
.company-message__sign { margin-top: 32px; text-align: right; font-weight: 700; clear: both; }

.profile-table { border-top: 1px solid #ddd; }
.profile-table__row { display: flex; border-bottom: 1px solid #ddd; }
.profile-table__label {
  flex: 0 0 180px;
  padding: 16px 20px;
  font-size: 14px; font-weight: 700;
  background: #f7f7f7; color: #333;
}
.profile-table__value {
  flex: 1; min-width: 0;
  padding: 16px 20px;
  font-size: 14px; color: #333; line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.profile-table__value p { margin: 0; }
.profile-table__value p + p { margin-top: 2px; }
.profile-table__value a { color: var(--accent); text-decoration: underline; }
.profile-table__section {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px; font-weight: 900; letter-spacing: .04em;
  color: #fff; background: #222;
}
.profile-table__section-note {
  font-size: 12px; font-weight: 400; letter-spacing: 0;
  color: rgba(255,255,255,.8);
}

#access { margin-top: 48px; }
.access-block { display: flex; gap: 32px; align-items: stretch; position: relative; }
.access-block__text { flex: 0 0 320px; font-size: 14px; line-height: 2; color: #333; }
.access-block__text p { margin-bottom: 4px; }
.access-block__illustration { position: absolute; left: 0; top: 210px; bottom: auto; width: 300px; height: auto; filter: drop-shadow(0 10px 14px rgba(26,35,64,.2)); }
.access-block__map {
  flex: 1; min-width: 0; aspect-ratio: 16 / 9; min-height: 510px;
  border: 1px solid #ddd; border-radius: 8px; overflow: hidden;
}
.access-block__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===========================
  Recruit Page（採用情報ページ）
=========================== */
#intro { position: relative; z-index: 1; }
.recruit-toolbox { margin-top: 24px; position: relative; }
.recruit-toolbox__title { font-size: 14px; font-weight: 900; color: var(--accent); margin-bottom: 12px; padding-right: 200px; order: 1; }
.recruit-toolbox__list { font-size: 14px; line-height: 2; color: #333; padding-right: 200px; order: 3; }
.recruit-toolbox__list li { padding-left: 1.1em; text-indent: -1.1em; }
.recruit-toolbox__list li::before { content: '▸'; color: var(--accent); font-weight: 900; margin-right: 2px; }
.recruit-toolbox__illustration { position: absolute; top: -50px; right: 20px; transform: none; width: 210px; height: auto; order: 2; filter: drop-shadow(0 10px 14px rgba(26,35,64,.2)); }
.recruit-toolbox__illustration.reveal { transform: translateY(32px); }
.recruit-toolbox__illustration.reveal.is-inview { transform: translateY(0); }

.job-card { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.job-card:last-child { margin-bottom: 0; }
.job-card__head { background: var(--accent); color: #fff; font-size: 15px; font-weight: 900; letter-spacing: .02em; padding: 12px 20px; }
.job-card .profile-table { border-top: none; }
.job-card .profile-table__row:last-child { border-bottom: none; }

.recruit-apply-box { background: #eaf3fb; border-radius: 8px; padding: 28px; }
.recruit-apply-box--plain { position: relative; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 28px; }
.recruit-apply-box__title { font-size: 14px; font-weight: 900; color: #333; margin-bottom: 14px; }
.recruit-apply-box p { font-size: 14px; line-height: 2; color: #333; }
.recruit-apply-box__btn-wrap { text-align: center; margin-top: 20px; }
.recruit-cta-btn {
  display: inline-block; padding: 12px 36px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 6px;
  transition: background var(--ease), transform .25s ease, box-shadow .25s ease;
  animation: recruit-cta-pulse 1.8s ease-in-out infinite;
}
.recruit-cta-btn:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 16px rgba(30, 64, 175, .35);
}

@keyframes recruit-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, .45); }
  50% { box-shadow: 0 0 0 10px rgba(30, 64, 175, 0); }
}

/* ===========================
  Policy Pages（個人情報の取扱について／情報セキュリティ基本方針／サイトポリシー）
=========================== */
.policy-section { max-width: 1280px; margin: 0 auto; padding: 0 var(--gap) 60px var(--gap); }
.policy-section--top-gap { padding-top: 40px; }
.policy-block { margin-bottom: 56px; scroll-margin-top: 0; }
.policy-block:last-child { margin-bottom: 0; }

.policy-lead { font-size: 15px; line-height: 2; color: #333; margin-bottom: 20px; }

.policy-box { border: 1px solid #ddd; border-radius: 8px; padding: 28px 32px; }
.policy-box + .policy-box { margin-top: 24px; }

.policy-subhead {
  font-size: 15px; font-weight: 900; color: var(--accent);
  margin: 28px 0 12px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.policy-subhead:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.policy-subhead--sm { font-size: 14px; font-weight: 700; color: #333; margin: 18px 0 8px; padding-top: 0; border-top: none; }

.policy-text { font-size: 14px; line-height: 2; color: #333; margin-bottom: 1em; }
.policy-text:last-child { margin-bottom: 0; }
.policy-text a { color: var(--accent); text-decoration: underline; }

.policy-signature { text-align: right; font-size: 14px; line-height: 1.9; color: #333; margin-top: 20px; }

.policy-table { width: 100%; border-collapse: collapse; border-top: 1px solid #ddd; margin: 12px 0 20px; font-size: 14px; }
.policy-table th, .policy-table td { border-bottom: 1px solid #ddd; padding: 12px 16px; text-align: left; font-weight: 400; line-height: 1.7; }
.policy-table th { background: #f7f7f7; font-weight: 700; white-space: nowrap; }

.policy-badge { text-align: center; padding-top: 8px; }
.policy-badge p { font-size: 14px; line-height: 1.9; color: #333; margin-bottom: .6em; }
.policy-badge p:last-of-type { margin-bottom: 0; }
.policy-badge img { max-width: 160px; height: auto; margin-top: 16px; }

/* ===========================
  Contact Page（お問い合わせページ）
=========================== */
.contact-form-section { max-width: 1280px; margin: 0 auto; padding: 40px var(--gap) 60px var(--gap); }

.contact-form-block__heading {
  text-align: center;
  font-size: 15px; font-weight: 900; color: #333;
  padding: 20px 0;
  border-top: 1px solid #ddd;
}
.contact-form-block__heading:first-child { border-top: none; padding-top: 0; }

.contact-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-bottom: 32px; }
.contact-tabs input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.contact-tab {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700;
  padding: 10px 20px;
  border: 1px solid #ccc; border-radius: 20px;
  background: #fff; color: #444;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.contact-tab:hover { border-color: var(--accent); color: var(--accent); }
.contact-tabs input[type="radio"]:checked + .contact-tab {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.contact-tabs input[type="radio"]:focus-visible + .contact-tab { outline: 2px solid var(--accent); outline-offset: 2px; }

.contact-form { max-width: 760px; margin: 0 auto 28px; border-top: 1px solid #ddd; }
.contact-form__row { display: flex; border-bottom: 1px solid #ddd; }
.contact-form__label {
  flex: 0 0 180px;
  padding: 18px 20px;
  font-size: 14px; font-weight: 700;
  background: #f7f7f7; color: #333;
  display: flex; align-items: center; gap: 4px;
}
.contact-form__required { color: #d33; font-size: 12px; }
.contact-form__field { flex: 1; min-width: 0; padding: 14px 20px; display: flex; align-items: center; justify-content: center; }
.contact-form__field input,
.contact-form__field textarea {
  width: 100%; max-width: 520px;
  padding: 10px 14px;
  font-size: 14px; font-family: inherit; color: #333;
  border: 1px solid #ccc; border-radius: 4px;
  background: #fff;
}
.contact-form__field textarea { min-height: 140px; resize: vertical; }
.contact-form__field input:focus,
.contact-form__field textarea:focus { outline: none; border-color: var(--accent); }

.contact-agree {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 13px; color: #333;
  padding: 24px 0; text-align: center;
}
.contact-agree a { color: var(--accent); text-decoration: underline; }
.contact-agree__required { color: #d33; font-size: 12px; }

.contact-submit-wrap { text-align: center; padding-bottom: 40px; }
.contact-submit-btn {
  display: inline-block; padding: 14px 64px;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700; border-radius: 6px;
  border: none; cursor: pointer;
  transition: background var(--ease);
}
.contact-submit-btn:hover { background: var(--navy, #15306f); }

.contact-info-wrap { position: relative; margin-bottom: 32px; }
.contact-info-box { background: #eaf3fb; border-radius: 8px; padding: 24px 28px; }
.contact-info-box__illustration { position: absolute; top: 50%; right: 40px; transform: translateY(-50%); width: 120px; height: auto; filter: drop-shadow(0 10px 14px rgba(26,35,64,.2)); }
/* .reveal の translateY を上書きせず、縦中央揃え(-50%)を保ったままスライドインさせる */
.contact-info-box__illustration.reveal { transform: translateY(-50%) translateY(32px); }
.contact-info-box__illustration.reveal.is-inview { transform: translateY(-50%); }
.contact-info-box__label { font-size: 13px; font-weight: 700; color: #444; margin-bottom: 6px; padding-right: 160px; }
.contact-info-box__tel { display: block; font-size: 24px; font-weight: 900; color: var(--accent); letter-spacing: .02em; padding-right: 160px; text-decoration: none; }
.contact-info-box__sub { font-size: 12px; color: #777; margin-top: 4px; padding-right: 160px; }

.submit-message { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.submit-message__heading { font-size: 20px; font-weight: 900; color: var(--navy); margin-bottom: 16px; }
.submit-message__text { font-size: 14px; line-height: 2; color: #333; }

/* ===========================
  Responsive — SP/タブレット (〜900px)
=========================== */
@media (max-width: 900px) {

.page-header, .page-header-bleed, .news-full-section {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
.sec-head:not(.page-header .sec-head) .sec-head__ja { font-size: 26px; }

/* ---------- ページヘッダー（サブページ） ---------- */
.page-header { padding-top: 24px !important; padding-bottom: 20px !important; }
.page-header .sec-head { flex-direction: row; align-items: center; gap: 14px; padding: 13px 14px 11px; }
.page-header .sec-head__icon { width: 36px; height: 36px; }
.page-header .sec-head__ja { font-size: 18px; padding-left: 0; }
.news-full-section { padding-top: 28px !important; padding-bottom: 28px !important; }
.news-filter { margin-bottom: 14px; }
.news-filter__btn { padding: 5px 14px; }
.news-pagination { margin-top: 20px; }

/* ---------- ページ内ナビ ---------- */
.page-anchor-nav__inner { padding: 12px 16px; }
.page-anchor-nav { margin-bottom: 28px; }

/* ---------- ポリシーページ ---------- */
.policy-section { padding-left: 16px !important; padding-right: 16px !important; padding-bottom: 36px !important; }
.policy-section--top-gap { padding-top: 28px !important; }
.policy-block { margin-bottom: 40px; scroll-margin-top: 54px; }
.policy-box { padding: 20px; }
.policy-table { font-size: 13px; table-layout: fixed; }
.policy-table th, .policy-table td { padding: 10px 12px; }
.policy-table th { width: 34%; white-space: normal; }
.policy-table td { width: 66%; }

/* ---------- 企業情報ページ ---------- */
.company-section { padding-left: 16px !important; padding-right: 16px !important; padding-bottom: 36px !important; }
.company-block { margin-bottom: 40px; scroll-margin-top: 54px; }
.company-message { display: flex; flex-direction: column; position: relative; z-index: 2; }
.company-message__illustration { float: none; display: block; position: static; width: 140px; margin: 16px auto 0; filter: none; order: 99; align-self: center; }
.profile-table__row { flex-direction: column; }
.profile-table__label { flex: none; }
.access-block { flex-direction: column; }
.access-block__text { flex: none; width: 100%; }
.access-block__map { width: 100%; min-height: 0; }
.access-block__illustration { position: static; width: 180px; margin: 16px auto 0; }

/* ---------- 採用情報ページ ---------- */
.recruit-toolbox { display: flex; flex-direction: column; position: relative; }
.recruit-toolbox__title { padding-right: 0; order: 1; }
.recruit-toolbox__list { padding-right: 0; order: 2; }
.recruit-toolbox__illustration { position: static; width: 200px; margin: 12px auto 0; order: 3; }
.job-card__head { padding: 10px 16px; font-size: 14px; }
.recruit-apply-box { padding: 20px; }
.recruit-apply-box__btn-wrap { margin-top: 16px; }
.recruit-cta-btn { display: block; padding: 13px 20px; }

/* ---------- お問い合わせページ ---------- */
.contact-form-section { padding-left: 16px !important; padding-right: 16px !important; padding-top: 28px !important; padding-bottom: 36px !important; }
.contact-form-block__heading { padding: 16px 0; font-size: 14px; }
.contact-tabs { padding-bottom: 24px; gap: 8px; }
.contact-tab { padding: 9px 16px; font-size: 12px; }
.contact-form__row { flex-direction: column; }
.contact-form__label { flex: none; }
.contact-form__field { padding: 12px 16px 16px; }
.contact-form__field input,
.contact-form__field textarea { max-width: none; }
.contact-agree { flex-wrap: wrap; padding: 20px 0; }
.contact-submit-btn { display: block; width: 100%; padding: 14px 20px; }
.contact-info-box { padding: 20px; }
.contact-info-box__illustration { display: block; position: static; width: 130px; margin: 16px auto 0; transform: none; }
.contact-info-box__illustration.reveal { transform: translateY(32px); }
.contact-info-box__illustration.reveal.is-inview { transform: translateY(0); }
.contact-info-box__label,
.contact-info-box__tel,
.contact-info-box__sub { padding-right: 0; }
}

/* ===========================
  Responsive — タブレット (601px〜900px)
  スマホ用の配置のまま余白が広い帯なので、
  イラストをテキスト脇に配置し直す
=========================== */
@media (min-width: 601px) and (max-width: 900px) {

/* ---------- 企業情報ページ ---------- */
/* #message は .reveal(transform) で独自のスタッキングコンテキストを持つため、
   イラストのz-indexだけでなく#message自体を後続セクションより上に重ねる */
#message { position: relative; z-index: 2; }
.company-message__illustration {
  position: absolute; top: 100%; right: 0; left: auto; bottom: auto;
  margin: 12px 0 0; align-self: auto; z-index: 3;
}

.access-block__illustration { position: absolute; top: 0; right: 50px; left: auto; bottom: auto; width: 190px; margin: 0; }
.access-block__text { padding-right: 260px; }

/* ---------- 採用情報ページ ---------- */
.recruit-toolbox__illustration { position: absolute; top: -20px; right: 10px; width: 190px; margin: 0; }
.recruit-toolbox__title { padding-right: 220px; }
.recruit-toolbox__list { padding-right: 220px; }

/* ---------- お問い合わせページ ---------- */
.contact-info-box__illustration {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  width: 100px; margin: 0;
}
.contact-info-box__illustration.reveal { transform: translateY(-50%) translateY(32px); }
.contact-info-box__illustration.reveal.is-inview { transform: translateY(-50%); }
.contact-info-box__label,
.contact-info-box__tel,
.contact-info-box__sub { padding-right: 130px; }
}
