/* ============================================================
   ホテルジョブ style.css
   配色: 紺 #1A3C6E × ゴールド #C9A227(2026-08-09 門井さん確定)
   画像: assets/img/hero_hotel.jpg / staff_hotel.jpg / header_sub.jpg
   ============================================================ */

:root {
  --navy: #1A3C6E;
  --navy-dark: #12294d;
  --navy-darker: #0d1d38;
  --navy-soft: #24487f;
  --gold: #C9A227;
  --gold-light: #ddbb4a;
  --white: #ffffff;
  --ink: #222222;
  --muted: #666666;
  --muted-light: #888888;
  --bg-soft: #f8f8f8;
  --border: #e8e8e8;
  --admin-bg: #eef1f6;
  --danger: #c0392b;
  --danger-bg: #fbe9e7;
  --success: #1e6b3a;
}

/* --navy / --gold は admin/layout.php の admin_head() が
   config(brand.primary_color/secondary_color)から動的に上書きする。
   cook展開時はconfigの値が変わるだけでこのCSSファイル自体は共通のまま使い回せる。 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.section-inner { max-width: 1080px; margin: 0 auto; padding: 80px 24px; }
.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 8px; text-align: center;
}
.section-title {
  font-size: 30px; font-weight: 900; text-align: center; margin-bottom: 48px; color: var(--navy);
}
.section-title span { color: var(--gold); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.site-logo { display: flex; align-items: center; }
.site-logo .logo-main { font-size: 19px; font-weight: 900; color: var(--navy); letter-spacing: .02em; }
.site-logo-img { height: 44px; width: auto; display: block; }
@media (max-width: 480px) { .site-logo-img { height: 36px; } }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { font-size: 14px; font-weight: 700; color: var(--ink); }
.header-nav a:hover { color: var(--navy); }
.btn-header-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 20px; border-radius: 4px; font-weight: 700;
}
.btn-header-cta:hover { background: var(--navy-soft); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; border: none; background: none; padding: 0;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-nav {
  display: none; flex-direction: column;
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--navy); padding: 24px;
}
.sp-nav a { color: var(--white); font-size: 16px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .sp-nav.open { display: flex; }
}

/* ---------- ヒーロー(トップページ) ---------- */
.hero {
  position: relative;
  background-image: linear-gradient(90deg, rgba(18,41,77,.92) 0%, rgba(18,41,77,.72) 45%, rgba(18,41,77,.15) 75%), url('img/hero_hotel.jpg');
  background-size: cover;
  background-position: 70% center;
  min-height: 480px;
  display: flex; align-items: center;
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 64px 24px; width: 100%; }
.hero-eyebrow { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .1em; margin-bottom: 16px; }
.hero-h1 { color: var(--white); font-size: 40px; font-weight: 900; line-height: 1.4; margin-bottom: 20px; }
.hero-h1 em { font-style: normal; color: var(--gold); }
.hero-sub { color: rgba(255,255,255,.88); font-size: 16px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { background-position: 80% center; min-height: 420px; }
  .hero-h1 { font-size: 30px; }
}

/* ---------- ボタン共通 ---------- */
.btn-primary, .btn-outline, .btn-dark {
  display: inline-block; padding: 14px 28px; border-radius: 4px;
  font-size: 15px; font-weight: 700; text-align: center; transition: background .2s, color .2s;
}
.btn-primary { background: var(--gold); color: var(--navy-dark) !important; }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white) !important; border: 1px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--navy); color: var(--white) !important; }
.btn-dark:hover { background: var(--navy-soft); }

/* ---------- 専門エージェントセクション(staff_hotel.jpg) ---------- */
.agent-section { background: var(--white); }
.agent-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
}
.agent-photo { border-radius: 8px; overflow: hidden; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-copy .section-label, .agent-copy .section-title { text-align: left; }
.agent-copy p { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 16px; }

@media (max-width: 768px) {
  .agent-grid { grid-template-columns: 1fr; }
}

/* ---------- 求人カード ---------- */
.positions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.position-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; transition: box-shadow .2s, transform .2s;
}
.position-card:hover { box-shadow: 0 8px 24px rgba(26,60,110,.12); transform: translateY(-2px); }
.card-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.badge-gold { background: var(--gold); color: var(--navy-dark); }
.badge-gray { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.badge-public { background: #e6f4ea; color: var(--success); border: 1px solid #b7dfc3; }
.card-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.5; }
.card-company { font-size: 13px; color: var(--muted-light); margin-bottom: 10px; }
.card-salary { font-size: 16px; font-weight: 900; color: var(--gold); margin-bottom: 10px; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.card-link { font-size: 13px; font-weight: 700; color: var(--navy); }

@media (max-width: 900px) {
  .positions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .positions-grid { grid-template-columns: 1fr; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-item { text-align: center; }
.why-num { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .1em; margin-bottom: 12px; }
.why-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.why-body { font-size: 14px; color: var(--muted); line-height: 1.8; }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- STEP(紺背景) ---------- */
.steps-bg { background: var(--navy-dark); }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step-item { text-align: center; padding: 24px 12px; border-top: 2px solid var(--gold); }
.step-num { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.step-title { color: var(--white); font-size: 14px; font-weight: 700; }

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTAバナー ---------- */
.cta-banner {
  background: var(--gold); text-align: center; padding: 56px 24px;
}
.cta-banner h2 { font-size: 24px; font-weight: 900; color: var(--navy-dark); margin-bottom: 12px; }
.cta-banner p { font-size: 14px; color: var(--navy-dark); margin-bottom: 24px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-dark); padding: 40px 24px; }
.footer-inner { max-width: 1080px; margin: 0 auto; color: rgba(255,255,255,.75); }
.footer-inner a { color: rgba(255,255,255,.85); }
.footer-inner a:hover { color: var(--gold); }
/* ロゴ自体が紺色のため、暗い背景でも視認できるよう白いチップ上に載せる */
.footer-logo-chip {
  display: inline-block; background: var(--white); padding: 10px 16px;
  border-radius: 6px; margin-bottom: 14px;
}
.footer-logo-chip img { height: 32px; width: auto; display: block; }

/* ---------- 下層ページ用ヘッダー帯(header_sub.jpg) ---------- */
.page-hero {
  position: relative;
  background-image: linear-gradient(rgba(18,41,77,.75), rgba(18,41,77,.75)), url('img/header_sub.jpg');
  background-size: cover; background-position: center;
  padding: 72px 24px; text-align: center;
}
.page-hero .sub { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.page-hero h1 { color: var(--white); font-size: 28px; font-weight: 900; }

/* ---------- 求人詳細(position.php) ---------- */
.detail-wrap { max-width: 840px; margin: 0 auto; padding: 48px 24px; }
.detail-h1 { font-size: 26px; font-weight: 900; color: var(--navy); margin-bottom: 24px; line-height: 1.5; }
.detail-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: var(--bg-soft); border-radius: 8px; padding: 20px; margin-bottom: 32px;
}
.detail-meta-label { font-size: 12px; color: var(--muted-light); margin-bottom: 6px; }
.detail-meta-value { font-size: 15px; font-weight: 700; color: var(--ink); }
.detail-salary { font-size: 18px; font-weight: 900; color: var(--gold); }
.detail-section { margin-bottom: 32px; }
.detail-section h2 {
  font-size: 17px; font-weight: 700; color: var(--navy);
  border-left: 4px solid var(--gold); padding-left: 12px; margin-bottom: 16px;
}
.apply-box {
  background: var(--navy-dark); border-radius: 8px; padding: 32px 24px; text-align: center; margin-top: 40px;
}
.apply-box h2 { color: var(--white); font-size: 20px; font-weight: 900; margin-bottom: 8px; border: none; padding: 0; }
.apply-box p { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 20px; }
.disclaimer { font-size: 12px; color: var(--muted-light); }

@media (max-width: 600px) {
  .detail-meta { grid-template-columns: 1fr; }
}

/* ---------- フォーム(entry.php / consult.php) ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; padding: 56px 24px; }
.form-title { font-size: 26px; font-weight: 900; color: var(--navy); margin-bottom: 12px; text-align: center; }
.form-lead { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.req { color: #c0392b; font-size: 11px; font-weight: 700; margin-left: 4px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 14px; font-family: inherit;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--gold); }
.form-input.error, .form-textarea.error { border-color: #c0392b; }
.form-error { color: #c0392b; font-size: 12px; margin-top: 6px; }
.form-submit {
  width: 100%; padding: 16px; background: var(--navy); color: var(--white);
  border: none; border-radius: 4px; font-size: 15px; font-weight: 700;
}
.form-submit:hover { background: var(--navy-soft); }
.alert { padding: 16px 20px; border-radius: 6px; font-size: 14px; margin-bottom: 24px; }
.alert-success { background: #e6f4ea; border: 1px solid #b7dfc3; color: #1e6b3a; }

/* ---------- トグルスイッチ(公開/非公開等の目立たせたいON/OFF設定用) ---------- */
.toggle-switch-row {
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  padding: 14px 16px; background: var(--bg-soft); border-radius: 8px; border: 1px solid var(--border);
}
.toggle-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.toggle-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle-slider {
  position: absolute; inset: 0; background: #ccc; border-radius: 999px; transition: background .2s; pointer-events: none;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: var(--white); border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle-switch input:checked + .toggle-slider { background: var(--navy); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label-text strong { display: block; font-size: 14px; margin-bottom: 2px; color: var(--ink); }
.toggle-label-text .toggle-sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- 会社概要テーブル ---------- */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 14px 16px; border: 1px solid var(--border); font-size: 14px; text-align: left;
}
.company-table th { background: var(--bg-soft); width: 180px; color: var(--muted); font-weight: 700; white-space: nowrap; }

/* ============================================================
   管理画面(admin/)
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; background: var(--admin-bg); }

.admin-sidebar { width: 220px; background: var(--navy-darker); color: var(--white); flex-shrink: 0; }
.admin-sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 14px; font-weight: 900; color: var(--gold); line-height: 1.4;
}
.admin-sidebar-logo-symbol { width: 28px; height: 28px; flex-shrink: 0; }
.admin-sidebar nav { display: flex; flex-direction: column; padding: 8px 0; }
.admin-sidebar nav a {
  display: block; padding: 13px 20px; color: rgba(255,255,255,.78);
  font-size: 14px; border-left: 3px solid transparent; transition: background .15s, color .15s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: rgba(255,255,255,.06); color: var(--gold); border-left-color: var(--gold);
}

.admin-main { flex: 1; padding: 32px; min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.admin-title { font-size: 22px; font-weight: 900; color: var(--navy); }

.btn-admin {
  display: inline-block; padding: 10px 20px; border-radius: 6px; font-size: 14px;
  font-weight: 700; cursor: pointer; border: none; font-family: inherit; transition: background .15s, color .15s;
}
.btn-admin-primary { background: var(--gold); color: var(--navy-darker); }
.btn-admin-primary:hover { background: var(--gold-light); }
.btn-admin-secondary { background: var(--white); color: var(--navy); border: 1px solid var(--border); }
.btn-admin-secondary:hover { background: var(--bg-soft); }
.btn-admin-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3c6c0; }
.btn-admin-danger:hover { background: var(--danger); color: var(--white); }

.admin-card {
  background: var(--white); border-radius: 8px; box-shadow: 0 2px 10px rgba(18,41,77,.06);
  padding: 24px; margin-bottom: 24px;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  background: var(--bg-soft); padding: 10px 14px; text-align: left;
  font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--border);
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:hover td { background: var(--bg-soft); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white); border-radius: 8px; border-top: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(18,41,77,.06); padding: 22px 20px; text-align: center;
}
.stat-num { font-size: 32px; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

@media (max-width: 900px) {
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-sidebar nav { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-sidebar nav a { flex-shrink: 0; border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .admin-sidebar nav a:hover, .admin-sidebar nav a.active { border-left-color: transparent; border-bottom-color: var(--gold); }
  .admin-main { padding: 18px; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}
