/*
Theme Name: PANDASTUDIO Recruit
Theme URI: https://rental.pandastudio.tv/
Author: 株式会社PANDASTUDIO.TV
Description: パンダスタジオ 公式求人採用サイト用のオリジナルテーマ。添付のHTML/CSSをベースに作成。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: pandastudio-recruit
*/

/* ===== ベース ===== */
:root {
  --ink: #1a1a1a;
  --white: #ffffff;
  --blue: #3fa5f5;      /* エントリーボタンの青 */
  --blue-dark: #2c73ab; /* ホバー時の濃い青 */
  --gray: #f4f5f4;
  --gray-line: #e4e6e4;
  --muted: #6b6f6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 共通パーツ ===== */
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 999px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-light { background: var(--white); color: var(--ink); }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { font-weight: 800; font-size: 1.1rem; }
.logo span { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--blue-dark); color: var(--white); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);   /* 画像読み込み前のフォールバック */
  color: var(--white);
  padding: 120px 0;
  text-align: left;
}
.hero .container {
  max-width: 1080px;
  position: relative;
  z-index: 2;
}
.hero .container > * {
  max-width: 640px;
}

/* ===== ヒーロー スライドショー（フェード＋ゆっくりズーム） ===== */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider::after {   /* 文字を読みやすくする暗いオーバーレイ */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hero-slide.is-active {
  opacity: 1;
  /* 表示中はゆっくり拡大し続ける（Ken Burns）。表示時間＋フェード分でゆっくり */
  animation: heroZoom 8s linear forwards;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
}
.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 40px;
  color: #d9dcd9;
}

/* ===== イントロ ===== */
.intro { padding: 96px 0; }
.intro-body p { margin-bottom: 20px; color: #333; }
.intro-body p:last-child { margin-bottom: 0; }

/* ===== 会社について / インタビュー ===== */
.about { padding: 96px 0; background: var(--gray); }
.interview { padding: 96px 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
}
.card p { color: #444; flex: 1; }
.card-link {
  margin-top: 20px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}
.card-link:hover { color: var(--blue-dark); }

/* ===== 新着情報 ===== */
.news { padding: 96px 0; background: var(--gray); }
.news-list { list-style: none; }
.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-line);
  flex-wrap: wrap;
}
.news-item:first-child { border-top: 1px solid var(--gray-line); }
.news-date { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.news-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 2px 12px;
}
.news-text { font-weight: 600; }
.news-text:hover { color: var(--blue); }

/* ===== CTA ===== */
.cta {
  padding: 96px 0;
  background: var(--blue);
  color: var(--white);
  text-align: center;
}
.cta-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}
.cta-lead { margin-bottom: 40px; opacity: 0.95; }

/* ===== フッター ===== */
.site-footer { background: var(--ink); color: var(--white); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { font-weight: 800; }
.footer-logo span { color: var(--blue); }
.footer-copy { color: #9a9e9a; font-size: 0.85rem; }

/* ===== レスポンシブ ===== */
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }   /* スマホでは主要リンクのみ */
  .hero { padding: 80px 0; }
  .intro, .about, .interview, .news, .cta { padding: 64px 0; }
}

/* アクセシビリティ */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none; }
  .hero-slide.is-active { animation: none; transform: none; }
}

/* =========================================================
   下層ページ共通
   ========================================================= */

/* ページヘッダー（各下層ページの見出し帯） */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero .eyebrow { color: var(--blue); }
.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; }

/* 本文ブロック */
.page-body { padding: 72px 0; }
.page-body .container { max-width: 1080px; }

.prose h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  margin: 56px 0 20px;
  padding-left: 16px;
  border-left: 6px solid var(--blue);
  line-height: 1.4;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 36px 0 12px;
  color: var(--ink);
}
.prose p { margin-bottom: 20px; color: #333; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.prose a:hover { color: var(--blue-dark); }
.lead {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* 定義リスト（会社概要テーブル） */
.spec {
  width: 100%;
  border-top: 1px solid var(--gray-line);
  margin: 24px 0 8px;
}
.spec div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--gray-line);
}
.spec dt { font-weight: 700; color: var(--ink); }
.spec dd { color: #333; }
.spec dd p { margin-bottom: 8px; }

/* 拠点・アクセス */
.location {
  background: var(--gray);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.location h3 { margin: 0 0 6px; font-size: 1.05rem; }
.location p { margin: 0; color: #555; font-size: 0.95rem; }

/* 番号付きチーム / 採用枠リスト */
.numbered { list-style: none; counter-reset: item; margin-top: 16px; }
.numbered > li {
  counter-increment: item;
  position: relative;
  padding: 28px 28px 28px 84px;
  background: var(--gray);
  border-radius: 16px;
  margin-bottom: 16px;
}
.numbered > li::before {
  content: counter(item);
  position: absolute;
  left: 24px;
  top: 28px;
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.numbered h3 { margin: 0 0 10px; font-size: 1.15rem; }
.numbered p { margin: 0; color: #444; }

/* メンバー一覧（インタビュー） */
.members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.member {
  border: 1px solid var(--gray-line);
  border-radius: 16px;
  padding: 28px;
  background: var(--white);
}
.member .role { color: var(--blue); font-weight: 700; font-size: 0.85rem; }
.member h3 { margin: 6px 0 12px; font-size: 1.15rem; }
.member p { color: #555; font-size: 0.95rem; margin-bottom: 14px; }
.member a { color: var(--blue); font-weight: 700; font-size: 0.9rem; }

/* 募集要項リスト */
.jobs { margin-top: 20px; }
.jobs h3 {
  font-size: 1.05rem;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  margin: 28px 0 12px;
}
.jobs ul { list-style: none; }
.jobs li {
  padding: 12px 4px;
  border-bottom: 1px solid var(--gray-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 1px 12px;
  white-space: nowrap;
}

/* 写真グリッド（社内風景・画像プレースホルダー） */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.photo {
  aspect-ratio: 4 / 3;
  background: var(--gray);
  border: 1px dashed var(--gray-line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 12px;
}
.facts { list-style: none; margin-top: 16px; }
.facts li {
  padding: 16px 20px;
  background: var(--gray);
  border-radius: 12px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* フォーム（エントリー・静的） */
.form { margin-top: 24px; }
.form .field { margin-bottom: 20px; }
.form label { display: block; font-weight: 700; margin-bottom: 8px; }
.form .req { color: var(--blue); font-size: 0.8rem; margin-left: 6px; }
.form input[type=text],
.form input[type=email],
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .radios { display: flex; gap: 24px; }
.form .radios label { font-weight: 400; }
.form .note { color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

@media (max-width: 720px) {
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .members { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   TOPページ：スライド埋め込み / 募集要項一覧
   ========================================================= */
.slides { padding: 96px 0; }
.joblist { padding: 96px 0; background: var(--gray); }

.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray);
  border: 1px dashed var(--gray-line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
  overflow: hidden;
}
.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

.joblist .jobs { max-width: 880px; margin: 0 auto; }
.joblist-cta { text-align: center; margin-top: 36px; }

@media (max-width: 640px) {
  .slides, .joblist { padding: 64px 0; }
}

/* =========================================================
   TOPページ：募集要項一覧（罫線ベースのリスト）
   ========================================================= */
.joblist-groups { max-width: 860px; margin: 0 auto; }

/* 大カテゴリ（新卒採用 / 中途採用 など）：枠で囲まず余白で区切る */
.job-group { margin-bottom: 56px; }
.job-group:last-child { margin-bottom: 0; }

/* カテゴリ見出し：下に太い罫線 */
.job-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.job-group-title { font-size: 1.35rem; font-weight: 800; }
.job-group-count { color: var(--muted); font-size: 0.85rem; }

/* 中カテゴリ（経営・管理 など）：青の細ラベル */
.job-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}

/* 募集職種リスト */
.job-items { list-style: none; }
.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--gray-line);
  transition: background .15s;
}
.job-item:hover { background: var(--gray); }

.job-item-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.job-name { font-weight: 700; }
.job-desc {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

/* 「#外国人活躍中」タグ（赤文字・枠なし） */
.tag-foreign {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d32f2f;
  white-space: nowrap;
}

/* 「募集中」：青いテキストリンク（枠なし） */
.job-status {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.job-status::after { content: " ›"; }
.job-status:hover { color: var(--blue-dark); text-decoration: underline; }
.job-status.-closed { color: #999; cursor: default; }
.job-status.-closed::after { content: ""; }

@media (max-width: 640px) {
  .job-group { margin-bottom: 40px; }
}

/* =========================================================
   画像＋テキストの2カラム（MUJI風 代表メッセージ）
   ========================================================= */
.feature {
  /* 画面いっぱいの全幅グリッド（お手本同様、画像を画面左端ぴったりに） */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 72px;
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 56% 44%;   /* お手本同様：画像56% / テキスト44% */
  align-items: center;
}
.feature-media {
  background: var(--gray);
  aspect-ratio: 1536 / 958;           /* お手本の画像比率に合わせる */
  overflow: hidden;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-media .ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  text-align: center; color: var(--muted);
  font-size: 0.85rem; padding: 16px;
  border: 1px dashed var(--gray-line);
}
/* テキスト列：画像との間隔と、右端を本文(最大1080px)の右端にそろえる余白 */
.feature-text {
  padding-left: 56px;
  padding-right: max(24px, calc((100vw - 1080px) / 2 + 24px));
}
/* 小ラベル（お手本「価値観」相当）：濃色・太字 */
.feature-text .eyebrow {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
/* prose の h2（左罫線）を打ち消し、お手本の大見出しに合わせる */
.feature-text h2 {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);   /* 最大36px */
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #3c3c43;
}
.feature-text p {
  color: #3c3c43;
  line-height: 2;
  margin-bottom: 18px;
}
.feature-text p:last-child { margin-bottom: 0; }

/* ヘッダーのロゴ画像サイズ */
.site-header .logo img { height: 34px; width: auto; display: block; }

@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;     /* スマホは縦積み（画像→テキスト） */
    margin-top: 48px;
    margin-bottom: 48px;
  }
  .feature-text { padding: 24px 24px 0; }
}
