:root {
  --jmr-brand: #0076bd;
  --brand: 203 100% 37%;
}

body {
  margin: 0;
}

.jmr-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.jmr-site-brand__logo-wrap {
  display: inline-flex;
  align-items: center;
}

.jmr-site-brand__logo {
  display: block;
  width: 152px;
  height: auto;
}

.jmr-site-brand__label {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-left: 1px solid rgba(0, 118, 189, 0.24);
  padding-left: 18px;
  color: #003262;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.jmr-site-brand--footer .jmr-site-brand__label {
  border-left-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.jmr-entry-card {
  min-height: 140px;
}

.jmr-global-nav {
  height: 100%;
}

.jmr-global-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.jmr-global-nav__link {
  display: inline-flex;
  height: 100%;
  align-items: center;
  gap: 7px;
  border-bottom: 2px solid transparent;
  padding: 0 17px;
  color: #1f2933;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.jmr-global-nav__item:hover .jmr-global-nav__link,
.jmr-global-nav__item:focus-within .jmr-global-nav__link,
.jmr-global-nav__item.is-open .jmr-global-nav__link,
.jmr-global-nav__item.is-current .jmr-global-nav__link {
  border-color: #0076bd;
  color: #0076bd;
}

.jmr-global-nav__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.jmr-global-nav__item:hover .jmr-global-nav__chevron,
.jmr-global-nav__item:focus-within .jmr-global-nav__chevron,
.jmr-global-nav__item.is-open .jmr-global-nav__chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.jmr-global-nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 80;
  width: min(632px, 80vw);
  transform: translate(-50%, 10px);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.jmr-global-nav__item:hover .jmr-global-nav__dropdown,
.jmr-global-nav__item:focus-within .jmr-global-nav__dropdown,
.jmr-global-nav__item.is-open .jmr-global-nav__dropdown {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.jmr-global-nav__dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.jmr-global-nav__dropdown-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 28px 28px 12px;
  color: #0076bd;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.jmr-global-nav__dropdown ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 34px;
  margin: 0;
  padding: 12px 28px 30px;
  list-style: none;
}

.jmr-global-nav__dropdown li {
  min-width: 0;
}

.jmr-global-nav__dropdown li a {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.jmr-global-nav__dropdown li a:hover,
.jmr-global-nav__dropdown li a:focus {
  color: #0076bd;
}

.jmr-global-nav__entry {
  display: inline-flex;
  width: 140px;
  height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #0076bd;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.jmr-global-nav__entry:hover,
.jmr-global-nav__entry:focus {
  opacity: 0.82;
}

.jmr-prose p + p {
  margin-top: 0.4em;
}

.jmr-benefit-body p {
  margin: 0 0 1em;
}

.jmr-benefit-body p:last-child,
.jmr-benefit-body ul:last-child {
  margin-bottom: 0;
}

.jmr-benefit-body ul {
  margin: 0 0 1.3em;
  padding-left: 1.1em;
  list-style: disc;
}

.jmr-benefit-body li {
  margin: 0.35em 0;
}

.jmr-benefit-body strong {
  font-weight: 700;
}

.jmr-table td:first-child {
  width: 30%;
}

.jmr-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.jmr-mobile-menu[hidden] {
  display: none;
}

.jmr-mobile-menu {
  position: fixed;
  inset: 70px 0 0 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid #d9d9d9;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.jmr-mobile-menu__scroll {
  padding-bottom: 32px;
}

.jmr-mobile-menu__group {
  border-bottom: 1px solid #eee;
}

.jmr-mobile-menu__row {
  display: flex;
  align-items: stretch;
}

.jmr-mobile-menu__parent,
.jmr-mobile-menu__single {
  display: block;
  flex: 1 1 auto;
  padding: 18px 24px;
  font-weight: 700;
  color: #111;
}

.jmr-mobile-menu__single {
  border-bottom: 1px solid #eee;
}

.jmr-mobile-menu__acc {
  flex: 0 0 58px;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-left: 1px solid #eee;
  cursor: pointer;
}

.jmr-mobile-menu__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid #0076bd;
  border-bottom: 2px solid #0076bd;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.jmr-mobile-menu__acc[aria-expanded="true"] .jmr-mobile-menu__chev {
  transform: rotate(-135deg) translateY(-2px);
}

.jmr-mobile-menu__sub[hidden] {
  display: none;
}

.jmr-mobile-menu__sub {
  background: #f7fafc;
}

.jmr-mobile-menu__child {
  display: block;
  padding: 14px 24px 14px 36px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid #eaeef2;
}

.jmr-mobile-menu__entry {
  display: block;
  margin: 18px 24px 0;
  padding: 15px;
  text-align: center;
  background: #0076bd;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}

@media (max-width: 767px) {
  .jmr-site-brand {
    gap: 10px;
  }

  .jmr-site-brand__logo {
    width: 118px;
  }

  .jmr-site-brand__label {
    min-height: 26px;
    padding-left: 12px;
    font-size: 14px;
  }

  .jmr-table td:first-child {
    width: 100%;
  }

  /* TOP: モバイルはセクション間（写真の上下含む）が広すぎるので詰める（space-y-[80px]はTOP専用） */
  .space-\[80px\] > :not([hidden]) ~ :not([hidden]),
  .space-y-\[80px\] > :not([hidden]) ~ :not([hidden]) {
    margin-top: 40px;
  }

  /* TOP: ヒーロー直下〜本文の間隔を少し詰める */
  .mt-\[60px\] {
    margin-top: 40px;
  }

  /* TOP: メッセージ写真の上余白を詰める（mt-8 md:h-[600px] はこの写真のみ） */
  .mt-8.md\:h-\[600px\] {
    margin-top: 12px;
  }

  /* TOP 選考セクション: 写真の上下余白を詰める（いずれもTOP専用・一意） */
  .space-y-\[40px\] > :not([hidden]) ~ :not([hidden]) {
    margin-top: 24px;
  }
  .container.py-5 {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .mt-8.w-full.flex-1.md\:mt-0 {
    margin-top: 16px;
  }
}

/*
 * プリビルドTailwind CSSに欠落している margin-bottom ユーティリティの補完。
 * これが無いとセクション見出し(mb-4)や区切り線(mb-5/mb-6)の下余白が0になり、
 * 「見出しと内容が密着」「代表メッセージの罫線が写真と重なる」等の崩れが全ページで発生する。
 */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-12 { margin-top: 3rem; }

@media (min-width: 768px) {
  .md\:mb-8 { margin-bottom: 2rem; }
}

/*
 * プリビルドTailwind CSS（JIT無し＝サブセット）に欠落していた汎用ユーティリティの一括補完。
 * テーマPHP全体を機械監査（使用クラス vs ビルドCSS存在クラス）して抽出した実害分のみ標準値で定義。
 * WP管理画面クラス(button/widefat/notice等)とSVG装飾(lucide)は対象外。
 */
.mb-10 { margin-bottom: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pl-5 { padding-left: 1.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-w-0 { min-width: 0px; }
.max-w-\[642px\] { max-width: 642px; }
.h-\[52px\] { height: 52px; }
.rounded-\[16px\] { border-radius: 16px; }
.leading-\[1\.9\] { line-height: 1.9; }
.text-\[\#222\] { color: #222; }
.bg-\[\#EEF3F6\] { background-color: #EEF3F6; }
.list-disc { list-style-type: disc; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-y-5 { row-gap: 1.25rem; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
.scroll-m-24 { scroll-margin: 6rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-y-7 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.75rem; }
.last\:border-b-0:last-child { border-bottom-width: 0px; }
.last\:pb-0:last-child { padding-bottom: 0px; }

@media (min-width: 768px) {
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:pt-\[100px\] { padding-top: 100px; }
  .md\:p-7 { padding: 1.75rem; }
  .md\:mt-8 { margin-top: 2rem; }
  .md\:mt-\[80px\] { margin-top: 80px; }
}

/*
 * TOP「会社を知る」カード（数字でわかる/事業内容/会社概要）のラベル可読性。
 * 白文字ラベルが画像の上にスクリム無しで乗っており、明るい写真だと読めない（特にスマホ）。
 * 下から暗いグラデーション＋テキストシャドウを敷いて常に読めるようにする。
 * `.absolute.bottom-0.left-0` はこの3カードのラベルのみ（top-render.php専用）。
 */
.absolute.bottom-0.left-0 {
  right: 0;
  padding-top: 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0) 100%);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/*
 * エントリーフォーム（Contact Form 7）をサイトのデザインに合わせる。
 * CF7の素のフォームは枠も余白も無いため、入力欄・ボタン・項目間隔を整える。
 */
.wpcf7 {
  font-size: 15px;
  color: #1a1a1a;
}
.wpcf7 form > p,
.wpcf7-form > p {
  margin: 0 0 22px;
  line-height: 1.7;
  font-weight: 700;
}
.wpcf7 small {
  display: inline-block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 13px;
  color: #646464;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  background: #fff;
  color: #1a1a1a;
}
.wpcf7 select {
  height: 48px;
  appearance: auto;
  cursor: pointer;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #0076bd;
  box-shadow: 0 0 0 3px rgba(0, 118, 189, 0.12);
}
.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}
.wpcf7 input[type="file"] {
  display: block;
  margin-top: 8px;
  font-weight: 400;
  font-size: 14px;
}
.wpcf7 .wpcf7-submit {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  min-height: 56px;
  padding: 0 44px;
  border: none;
  border-radius: 9999px;
  background: #0076bd;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.wpcf7 .wpcf7-submit:hover {
  opacity: 0.85;
}
.wpcf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
}
.wpcf7 .wpcf7-not-valid {
  border-color: #e53935 !important;
}
.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 400;
  color: #e53935;
}
.wpcf7 .wpcf7-response-output {
  margin: 18px 0 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}

/*
 * TOP「選考」セクションを非表示（クライアント要望 #22）。
 * `.container.py-5` はTOPの選考セクションのみ（top-render.php専用・一意）。
 */
.container.py-5 {
  display: none;
}

/* 回遊CTAカード（募集要項⇄仕事を知る）のホバー＝クリックできる感を出す */
.jmr-cta-card {
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.jmr-cta-card:hover {
  background: #e6f2fb;
  border-color: #0076bd;
  transform: translateY(-1px);
}

/* アンカージャンプ先が固定ヘッダーに隠れないための余白（社員IF・福利厚生の各セクション） */
.jmr-anchor { scroll-margin-top: 110px; }
@media (min-width: 768px) {
  .jmr-anchor { scroll-margin-top: 150px; }
}


/* ===== スマホでも動画ポップアップを表示（2026-08 追加） ===== */
/* PC(768px以上)の見た目は変更なし。767px以下でのみサイズを最適化して表示する。 */
@media (max-width: 767px) {
  #jmr-video-popup {
    right: 22px;
    bottom: 16px;
  }
  #jmr-video-popup .jmr-video-card {
    width: 228px;
    padding: 18px 16px 14px;
    border-radius: 22px;
  }
  #jmr-video-popup .jmr-video-card p {
    font-size: 12px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  #jmr-video-popup .jmr-video-play {
    height: 40px;
    width: 40px;
  }
  #jmr-video-popup .jmr-video-play svg {
    width: 13px;
    height: 16px;
  }
  #jmr-video-popup .jmr-video-close {
    height: 30px;
    width: 30px;
  }
}
