/* 企業詳細ページ固有スタイル（デザイン正本: docs/design/mocks/company-detail-v1.html） */
/* 共通分（wrap/pill-btn/wavy-link/reveal/header/git/footer/section-head 等）は common.css 側。ここには置かない */

/* ============ ページヘッド（コンパクトグラデ帯） ============ */
.pagehead {
  position: relative;
  background: var(--grad);
  padding: 138px 0 116px;
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.24;
  pointer-events: none;
}
.pagehead__inner { position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 9px;
}
/* タップ領域を 44px 以上にする（元は 24×22px）。左右 5px は gap の代わり（2026-08-10） */
.breadcrumb a { padding: 11px 5px; transition: opacity 0.2s ease; }
.breadcrumb a:hover { opacity: 0.6; }
.breadcrumb .sep { padding: 0 5px; opacity: 0.5; }
.pagehead__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pagehead__tag {
  background: rgba(255, 255, 255, 0.92);
  color: #0C0E13;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 5px;
  padding: 4px 12px;
}
.pagehead__name {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.01em;
}
.pagehead__catch {
  margin-top: 12px;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}
.pagehead__en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 10px;
}

/* ============ 詳細本体（白角丸カード + 2カラム） ============ */
.detailbody {
  position: relative;
  background: var(--paper);
  border-radius: 44px 44px 0 0;
  margin-top: -56px;
  z-index: 2;
  padding: 76px 0 100px;
}
/* 1列（2026-08-10 クライアント確定）。並び順は grid-row でファイル末尾に明示している */
.detail { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }

/* メイン動画 */
.vfeature {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--teal-deep);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.vfeature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.25, 1); }
.vfeature:hover img { transform: scale(1.03); }
.vfeature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 35, 54, 0.05) 55%, rgba(12, 35, 54, 0.6) 100%);
}
.vfeature__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(12, 35, 54, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
  z-index: 2;
}
.vfeature:hover .vfeature__play { background: var(--accent-fill); transform: translate(-50%, -50%) scale(1.07); }
.vfeature__play::after {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}
.vfeature__cap {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
}
.vfeature__title { font-size: 15px; font-weight: 700; }
.vfeature__dur {
  flex: none;
  background: rgba(255, 255, 255, 0.92);
  color: #0C0E13;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  border-radius: 50px;
  padding: 3px 12px;
}

/* この会社を3分で知る（F-05 企業要約） */
.summary {
  margin-top: 30px;
  background: var(--mint-soft);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  padding: 26px 30px;
}
.summary__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 900;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.summary__label svg { flex: none; }
.summary p { font-size: 14px; line-height: 2.05; }
.summary p + p { margin-top: 10px; }

/* タブ */
.tabs {
  display: flex;
  gap: 4px;
  margin-top: 44px;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  border: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 12px 22px 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.tab:hover { color: var(--blue-dark); }
.tab.on { color: var(--ink); }
.tab.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
}
/* F-03: JS 無効時は全パネルを縦積みで表示。JS が .js-tabs を付けた時のみタブUI化 */
.tabpanel { display: block; padding-top: 34px; }
.js-tabs .tabpanel { display: none; }
.js-tabs .tabpanel.on { display: block; }

/* 動画一覧 */
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.vcard { cursor: pointer; border: none; background: transparent; text-align: left; padding: 0; font-family: inherit; }
.vcard__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--teal-deep);
}
.vcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.25, 1); }
.vcard:hover .vcard__thumb img { transform: scale(1.05); }
.vcard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(12, 35, 54, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease;
}
.vcard:hover .vcard__play { background: var(--accent-fill); }
.vcard__play::after {
  content: "";
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}
.vcard__dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(12, 35, 54, 0.8);
  color: #fff;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 8px;
}
.vcard__ep {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  margin: 10px 0 2px;
}
.vcard__title { display: block; font-size: 14px; font-weight: 700; line-height: 1.65; color: var(--ink); }

/* 企業情報 / 募集要項テーブル */
.spec { width: 100%; border-collapse: collapse; }
.spec + .spec { margin-top: 34px; }
.spec th, .spec td { text-align: left; padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.spec th { width: 158px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
/* 表が min-content で膨らむのを止める。td 側を折り返させたうえで枠を固定する */
.spec { max-width: 100%; }
/* 「茨城県筑西市／静岡県榛原郡吉田町／…」のような ／ 区切りの長い連なりは、
   body の auto-phrase では1つの文節と見なされて折り返せず、表ごと横に伸びる。
   anywhere は「はみ出す時だけ」効くので、通常の日本語の折返しは auto-phrase のまま。 */
.spec td { font-weight: 500; line-height: 1.9; overflow-wrap: anywhere; }
.spec a { color: var(--blue-dark); font-weight: 700; }
.spec a:hover { opacity: 0.65; }

/* リッチテキスト（企業情報 / 働く環境タブ。管理画面 wp_editor 入力を想定） */
.richtext { font-size: 14px; line-height: 1.9; }
.spec + .richtext { margin-top: 26px; }
.richtext p { margin-bottom: 14px; font-weight: 500; }
.richtext h3 {
  font-size: 16px;
  font-weight: 900;
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  line-height: 1.5;
}
.richtext img { border-radius: 12px; margin: 8px 0 16px; }
.richtext table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.richtext table th, .richtext table td { text-align: left; padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.richtext table th { width: 158px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.richtext table td { font-weight: 500; line-height: 1.9; }
.richtext a { color: var(--blue-dark); font-weight: 700; }
.richtext a:hover { opacity: 0.65; }
.richtext ul { margin-bottom: 16px; }
.richtext ul li {
  position: relative;
  padding: 10px 6px 10px 34px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px dashed var(--line);
}
.richtext ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

/* 働く環境（写真グリッド・チェックリスト。モック構造を踏襲した実データ用クラス） */
.envphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.envphotos figure { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--teal-deep); }
.envphotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.envlist li {
  position: relative;
  padding: 10px 6px 10px 34px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px dashed var(--line);
}
.envlist li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

/* 応募ブロック（募集要項タブ内） */
.applyblock {
  margin-top: 28px;
  text-align: center;
  background: var(--mint-soft);
  border-radius: 18px;
  padding: 34px 24px;
}
.applyblock p { font-size: 13.5px; font-weight: 700; margin-bottom: 18px; }

/* SP 固定応募バー */
.spbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 18px rgba(12, 35, 54, 0.12);
}
.spbar .pill-btn { width: 100%; }

/* ============ 動画モーダル（F-04） ============ */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vmodal.open { display: flex; }
.vmodal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 54, 0.78);
  backdrop-filter: blur(6px);
}
.vmodal__box {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: none; } }
.vmodal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.vmodal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vmodal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
}
.vmodal__title { font-size: 14px; font-weight: 700; }
.vmodal__title small { display: block; font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--blue-dark); }
.vmodal__yt {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-dark);
  border: 1px solid var(--accent-line);
  border-radius: 50px;
  padding: 7px 16px;
  transition: all 0.2s ease;
}
.vmodal__yt:hover { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.vmodal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #0C0E13;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.vmodal__close:hover { background: var(--accent-fill); color: var(--on-accent); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* ============ 他の企業 ============ */
.others { background: var(--paper); padding: 10px 0 100px; }
.others .section-head { margin-bottom: 30px; }
.others .section-title { font-size: clamp(28px, 3vw, 40px); }
.others .section-title small { display: block; font-size: 13px; margin-top: 6px; }

/* 関連企業カルーセル */
.ocarousel { position: relative; }
.otrack {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.otrack::-webkit-scrollbar { display: none; }
.otrack .ccard {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 280px;
  scroll-snap-align: start;
}
.ocarousel__nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #0C0E13;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: rgba(12, 35, 54, 0.14) 0px 6px 16px -4px, rgba(12, 35, 54, 0.06) 0px 2px 4px;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, opacity 0.15s ease;
}
.ocarousel__nav:hover {
  background: var(--accent-fill);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateY(-50%) scale(1.06);
}
.ocarousel__nav:disabled { opacity: 0; pointer-events: none; }
.ocarousel__nav--prev { left: -72px; }
.ocarousel__nav--next { right: -72px; }
.ocarousel__nav svg { display: block; }
.ocarousel__progress {
  margin-top: 22px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.ocarousel__progress-fill {
  height: 100%;
  width: 33%;
  border-radius: 4px;
  background: var(--blue-dark);
  transition: width 0.25s ease;
}

.ogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ccard {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ccard:hover { transform: translateY(-5px); box-shadow: 0 20px 38px -20px rgba(12, 35, 54, 0.3); }
.ccard__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--teal-deep); overflow: hidden; }
.ccard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.25, 1); }
.ccard:hover .ccard__thumb img { transform: scale(1.05); }
.ccard__vcount {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #0C0E13;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  padding: 4px 12px;
}
.ccard__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 14px; }
.ccard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ccard__tag { font-size: 10.5px; font-weight: 700; color: var(--accent-strong); border: 1px solid var(--accent-line); border-radius: 4px; padding: 2px 8px; }
.ccard__name { font-size: 16px; font-weight: 900; line-height: 1.4; }
.ccard__copy { margin-top: 4px; font-size: 13px; font-weight: 500; line-height: 1.7; color: var(--ink); }

/* ============ レスポンシブ ============ */
@media (max-width: 1360px) {
  .ocarousel__nav { width: 44px; height: 44px; }
  .ocarousel__nav--prev { left: -52px; }
  .ocarousel__nav--next { right: -52px; }
}
/* 矢印を外側（-52px）に置けるのは、.wrap（max 1160 + padding 40）の外に 52px の余白がある
   1184px 以上のときだけ。それ未満で外側のままだと画面右に 12px はみ出す */
@media (max-width: 1183px) {
  .ocarousel__nav--prev { left: 8px; }
  .ocarousel__nav--next { right: 8px; }
}
@media (max-width: 1000px) {
  /* 並び順（grid-row）は PC/SP 共通。ここで auto に戻すと DOM 順（動画→3分で知る→タブ→会社概要）に
     なってしまい、確定した並び（3分で知る→動画→会社概要→タブ）が SP だけ崩れる */
  .envphotos { grid-template-columns: repeat(2, 1fr); }
  .ogrid { grid-template-columns: repeat(2, 1fr); }
  .otrack .ccard { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
  .pagehead { padding: 116px 0 100px; }
  .vgrid { grid-template-columns: 1fr; }
  .ogrid { grid-template-columns: 1fr; }
  .otrack .ccard { flex-basis: 84%; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tab { white-space: nowrap; padding: 12px 14px 14px; }
  .spbar { display: block; }
}


/* ============ 企業詳細の並び（2026-08-10 クライアント確定）============
   3分で知る → 動画（全幅）→ タブ（初期表示＝募集要項）の1列。
   右サイドバーに募集要項を置く旧案は、レイアウトの都合でバランスが崩れるため廃止し記述ごと削除した。 */
.detail__summary { grid-row: 1; margin-top: 0; }
.detail__video   { grid-row: 2; }
.detail__main    { grid-row: 3; }

.reqblock__title {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 14px;
}
.reqblock .spec { width: 100%; }
.reqblock .spec + .spec { margin-top: 18px; }

/* ============ キャッチ直下の業種・所在地（2026-08-11 クライアント確定）============
   会社概要ブロックは廃止し、求職者が最も見る2項目だけをここに出す。
   ページ上部の業種・都道府県バッジも重複のため削除済み。 */
.pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 22px;
}
.pagehead__metaitem { display: flex; align-items: baseline; gap: 10px; }
.pagehead__meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.pagehead__meta dd { margin: 0; font-size: 14px; font-weight: 600; }

/* 募集要項の職種タブ。外側のタブより一段小さくして階層を示す */
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.subtab {
  /* 高さ 44px は指で押せる下限（外側タブは 48px）。padding だけだと文字量で高さが変わるので min-height で固定する */
  min-height: 44px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-soft); font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.subtab:hover { color: var(--ink); border-color: var(--accent); }
.subtab.on { color: #fff; background: var(--accent); border-color: var(--accent); }
/* JS が動かない環境では全パネルを見せる（外側タブと同じ考え方） */
.subtabpanel { display: none; }
.subtabpanel.on { display: block; }
html:not(.js-subtabs-ready) .subtabpanel { display: block; }
