/* ヘッダー・フッター・ボタンなどの共通部品 */
.site-header { padding-block: 20px; border-bottom: 1px solid #f1e8df; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; text-decoration: none; line-height: 1.5; flex-shrink: 0; }
.brand small { display: block; font-size: 12px; }
.brand-mark { border: 2px solid var(--color-pink); border-radius: 50%; padding: 4px 13px; font-size: 28px; }
/* PCは1行に並べ、SP用のグループ見出しと採用のサブ項目は隠す。 */
.global-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); font-size: clamp(13px, 1.05vw, 15px); }
.global-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.nav-group, .nav-group > ul { display: contents; }
.nav-group-label, .global-nav .nav-sub { display: none; }
.global-nav a { text-decoration: none; white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-pink); text-decoration-thickness: 2px; }
.nav-cta, .footer-cta, .sp-cta-bar { display: inline-grid; place-items: center; background: #f07f7f; color: white; font-weight: 700; text-decoration: none; border-radius: 999px; }
.nav-cta { min-height: 44px; padding: 8px 22px; }
.nav-cta:hover, .footer-cta:hover, .sp-cta-bar:hover { background: #e46a6a; }
.menu-toggle { border: 1px solid #80b8cb; background: var(--color-sky); color: var(--color-blue); padding: 8px 12px; border-radius: 8px; }
.sp-cta-bar { display: none; }
.site-footer { padding: 72px 0 28px; background: url(../images/bg/grain.webp) 0 0 / 128px 128px repeat, linear-gradient(to bottom, #f6f1f5 0, #b9e4f9 70px, #8bd6fc 130px, #8bd6fc 100%); color: var(--color-text); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin: 16px 0 20px; }
.footer-cta { min-height: 48px; padding: 8px 28px; }
.footer-sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-heading { color: var(--color-blue); font-size: 13px; font-weight: 700; letter-spacing: .08em; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid #c9e1e8; }
.footer-sitemap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.footer-sitemap a, .footer-bottom a { text-decoration: none; }
.footer-sitemap a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #c9e1e8; font-size: 13px; }
.footer-bottom small { font-size: 12px; }
.page-top { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: white; color: #f07f7f; border: 2px solid #ffbcbc; font-size: 20px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgb(0 0 0 / 10%); }
/* パンくず：各ページの見出し背景の上に重ねる。 */
main { position: relative; }
.breadcrumb { position: absolute; z-index: 2; top: 24px; left: 0; right: 0; font-size: 13px; color: #6d7f88; }
.breadcrumb ol { list-style: none; width: min(calc(100% - 64px), 1234px); margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: '>'; margin-inline: 10px; color: #a3b4bc; }
.breadcrumb a { text-decoration: none; color: var(--color-blue); }
.breadcrumb a:hover { text-decoration: underline; }
/* 部門ページ間・企業情報からの回遊カード */
.dept-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.dept-card { display: grid; gap: 6px; padding: 28px 30px; background: white; border-radius: 30px; text-decoration: none; color: #4e7fa7; box-shadow: 0 6px 18px rgb(78 127 167 / 10%); transition: transform .2s; }
.dept-card:hover { transform: translateY(-3px); }
.dept-card-label { color: #f07f7f; font-size: 14px; letter-spacing: .08em; }
.dept-card-title { font-size: 22px; font-weight: 500; }
.dept-card-text { font-size: 14px; color: #838383; line-height: 1.8; }
.dept-card-more { margin-top: 6px; font-size: 14px; }
.job-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.job-link { display: inline-grid; place-items: center; min-height: 64px; min-width: min(100%, 320px); padding: 12px 32px; border-radius: 999px; background: #f07f7f; color: white; font-weight: 700; text-decoration: none; }
.job-link:hover { background: #e46a6a; }
@media (prefers-reduced-motion: reduce) { .dept-card { transition: none; } }
.button { display: inline-block; background: #b1dfee; border: 1px solid #6aa5ba; padding: 10px 24px; border-radius: 12px; text-decoration: none; color: var(--color-blue); margin-top: 24px; }
.button:hover { background: #d4eff7; }
.text-link { display: inline-block; margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.photo-placeholder { aspect-ratio: 4 / 3; background: #e4e7e5; border: 5px solid #98cddd; display: grid; place-items: center; color: #5b6b69; margin-block: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 25px; border: 1px solid #e9dfd6; border-radius: 18px; background: white; }
.notice { background: #edf6f8; padding: 20px; margin-top: 20px; }
@media (max-width: 900px) {
  .js .menu-toggle { display: block; }
  .global-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 20px; font-size: 15px; padding-bottom: 8px; }
  .js .global-nav[data-open="false"] { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid #f1e8df; }
  .nav-list a { display: block; padding: 12px 4px; }
  .nav-group { display: block; }
  .nav-group > ul { display: block; padding-left: 16px !important; }
  .nav-group > ul li { border-bottom: 0; }
  .nav-group > ul a { padding-block: 8px; font-size: 14px; }
  .nav-group-label { display: block; padding: 12px 4px 4px; color: var(--color-blue); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
  .global-nav .nav-sub { display: block; }
  .nav-cta { width: 100%; }
  /* SPは画面下にコンタクトボタンを常に表示。フッターが隠れないよう本文下に余白。 */
  .sp-cta-bar { display: grid; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; min-height: 52px; box-shadow: 0 6px 18px rgb(0 0 0 / 18%); }
  body { padding-bottom: 76px; }
  .page-top { right: 14px; bottom: 76px; width: 44px; height: 44px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-sitemap { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-right: 56px; }
  .sp-cta-bar[data-hidden="true"] { display: none; }
  .breadcrumb { top: 14px; font-size: 12px; }
  .breadcrumb ol { width: min(calc(100% - 62px), 520px); }
  .split, .card-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* 採用ページとローカルフォーム */
fieldset { border: 1px solid #d4e2e7; border-radius: 12px; padding: 20px; margin: 24px 0; }
fieldset label { display: inline-block; margin-right: 16px; }
.field { display: block; margin: 22px 0; }
.field input, .field select, .field textarea, #job-select { display: block; width: 100%; padding: 12px; border: 1px solid #9eafb6; border-radius: 8px; color: #344c59; background: white; font: inherit; }
#job-select { max-width: 360px; margin: 16px 0 24px; }
#contact-form { max-width: 720px; margin: 30px auto; }
.faq-item { padding: 20px; background: #eef7fa; margin-block: 20px; border-radius: 12px; }
.faq-item summary, .demo-states summary { cursor: pointer; }
.form-error { color: #9b2424; background: #fff0f0; padding: 16px; }
.demo-states { margin-top: 24px; }
.department-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; margin-top: 18px; }
