/*
Theme Name: ATC Recruit
Theme URI: https://www.atc-hiroshima.jp/
Description: 株式会社エイティーシー 採用サイト用 WordPress テーマ。白基調・シンプルな1枚構成。職種選択で採用要件と記入欄が切り替わる応募フォーム（プラグイン不要・必須セキュリティ7点）。Powered by VESPER SYSTEM
Author: ROOT i DESiGN
Version: 0.002
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: atc-recruit
*/

/* ============================================================
   0. リセット & トークン
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
/* hidden 属性は常に最優先で非表示（display:grid 等の上書き対策） */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  --bg:    #ffffff;
  --ink:   #1a1a1a;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line:  #e6e6e6;
  --soft:  #f6f6f6;
  --ph:    #e4e4e4;
  --ph-ink:#b3b3b3;
  --req:   #b23b35;
  --navy:  #0a1838;

  --maxw: 1080px;
  --gut:  clamp(20px, 5vw, 48px);

  --f-jp: "Noto Sans JP", system-ui, sans-serif;
  --f-en: "Montserrat", "Noto Sans JP", sans-serif;
}

body {
  margin: 0;
  font-family: var(--f-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* セクション共通 */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section:nth-of-type(even) { background: var(--soft); }
.section-head { margin-bottom: clamp(28px, 5vw, 48px); }
.section-en {
  font-family: var(--f-en); font-weight: 600; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px;
}
.section-title { font-size: clamp(22px, 4vw, 30px); font-weight: 700; margin: 0; letter-spacing: .02em; }
.section-desc { color: var(--muted); margin: 12px 0 0; font-size: 14px; }

/* アンカーがヘッダーに隠れない */
[id] { scroll-margin-top: 84px; }

/* プレースホルダ画像（グレーボックス） */
.ph-box {
  background: var(--ph);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; width: 100%;
}
.ph-box span {
  font-family: var(--f-en); font-size: 12px; letter-spacing: .2em;
  color: var(--ph-ink); font-weight: 600;
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 4px; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  border: 1.5px solid var(--ink); transition: background .15s, color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 40px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ============================================================
   1. ヘッダー
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin-inline: auto; padding: 0 var(--gut);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-logo { font-family: var(--f-en); font-weight: 700; font-size: 24px; letter-spacing: .04em; }
.brand-sub { font-family: var(--f-en); font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--muted); display: flex; flex-direction: column; line-height: 1.2; }
.brand-sub small { font-family: var(--f-jp); font-size: 9px; letter-spacing: .08em; color: var(--faint); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.site-nav a:hover { color: var(--muted); }
.site-nav .nav-cta {
  background: var(--ink); color: #fff; padding: 8px 18px; border-radius: 4px; font-weight: 700;
}
.site-nav .nav-cta:hover { color: #fff; background: #000; }
.site-nav .nav-ext { font-size: 12px; color: var(--muted); }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ============================================================
   2. ヒーロー
============================================================ */
.hero { padding: clamp(48px, 8vw, 96px) 0; }
.hero-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-en { font-family: var(--f-en); font-weight: 600; letter-spacing: .26em; font-size: 13px; color: var(--faint); margin: 0 0 18px; }
.hero-title { font-size: clamp(30px, 6vw, 52px); font-weight: 700; line-height: 1.32; margin: 0 0 22px; letter-spacing: .02em; }
.hero-lead { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { aspect-ratio: 5 / 4; }

/* ============================================================
   3. 会社紹介
============================================================ */
.philosophy { max-width: 760px; margin: 0 auto clamp(36px, 6vw, 60px); text-align: center; }
.philosophy-lead { font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: var(--faint); margin: 0 0 14px; }
.philosophy-body { font-size: clamp(15px, 2.2vw, 18px); line-height: 2.1; margin: 0; }

.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.biz-card { }
.biz-img { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.biz-name { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.biz-text { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.85; }

.locations { margin-top: clamp(40px, 6vw, 64px); }
.locations-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.locations-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; }
.locations-list li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.loc-name { font-weight: 700; min-width: 150px; }
.loc-addr { color: var(--muted); }
.about-corp { margin-top: 22px; font-size: 14px; }
.about-corp a { font-weight: 700; text-underline-offset: 3px; }

/* ============================================================
   4. 募集職種
============================================================ */
.job-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
.job-card {
  text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.job-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.job-card.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.job-en { font-family: var(--f-en); font-size: 11px; letter-spacing: .14em; color: var(--faint); font-weight: 600; }
.job-name { font-size: 19px; font-weight: 700; }
.job-lead { font-size: 13px; color: var(--muted); line-height: 1.8; flex: 1; }
.job-pick { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.job-pick::after { content: " →"; }
.job-card.is-active .job-pick::after { content: " ✓ 選択中"; }
@media (prefers-reduced-motion: reduce) { .job-card { transition: none; } .job-card:hover { transform: none; } }

/* ============================================================
   5. 採用要件 + エントリー
============================================================ */
.entry-empty {
  text-align: center; color: var(--muted); background: var(--soft);
  border: 1px dashed var(--line); border-radius: 8px; padding: 40px 20px; font-size: 15px;
}
.entry-body { display: grid; grid-template-columns: 360px 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }

.req-wrap { position: sticky; top: 84px; }
.req-caption { font-size: 12px; color: var(--req); margin: 0 0 12px; }
.req-panel { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.req-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.req-list { margin: 0; }
.req-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.req-list > div:first-child { border-top: 0; }
.req-list dt { color: var(--muted); font-weight: 700; margin: 0; }
.req-list dd { margin: 0; }

/* フォーム */
.entry-form { }
.form-job-label { font-size: 14px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.form-job-label strong { font-size: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field .req, .field .opt { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; }
.field .req { background: var(--req); color: #fff; }
.field .opt { background: var(--line); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 5px; padding: 11px 12px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--req); background: #fdf6f5; }
.checkgroup { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.check input { width: auto; }

/* textareaは1カラム幅に */
.field:has(textarea) { grid-column: 1 / -1; }

.job-fields { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.job-fields-head, .form-grid > .job-fields-head { grid-column: 1 / -1; font-weight: 700; font-size: 14px; margin: 0; color: var(--ink); }

.form-submit { margin-top: 28px; text-align: center; }
.form-note { font-size: 12px; color: var(--faint); margin: 0 0 16px; }

/* ステータス */
.form-status { padding: 16px 20px; border-radius: 6px; margin-bottom: 28px; font-size: 14px; font-weight: 500; }
.form-status.ok { background: #eef7ee; border: 1px solid #bcd9bc; color: #2c6b2c; }
.form-status.ng { background: #fdf2f1; border: 1px solid #e6bdba; color: var(--req); }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   6. 社員の声
============================================================ */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.voice-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.voice-img { aspect-ratio: 1 / 1; }
.voice-img img { width: 100%; height: 100%; object-fit: cover; }
.voice-body { padding: 20px 22px; }
.voice-dept { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 3px; margin-bottom: 10px; }
.voice-name { font-size: 17px; font-weight: 700; margin: 0 0 2px; }
.voice-name small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.voice-years { font-size: 12px; color: var(--faint); margin: 0 0 12px; }
.voice-text { font-size: 13px; color: var(--muted); line-height: 1.85; }
.voice-text p { margin: 0 0 8px; }
.voices-cta { text-align: center; margin-top: clamp(32px, 5vw, 48px); }

/* ============================================================
   7. フッター + VESPER 署名
============================================================ */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--maxw); margin-inline: auto; padding: clamp(40px, 6vw, 60px) var(--gut);
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-logo { font-family: var(--f-en); font-weight: 700; font-size: 26px; letter-spacing: .04em; }
.footer-name { font-weight: 700; margin: 12px 0 4px; }
.footer-addr, .footer-tel { font-size: 13px; color: var(--muted); margin: 2px 0; }
.footer-tel a { font-weight: 700; text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; font-size: 14px; color: var(--ink); }
.footer-links a:hover { color: var(--muted); }
.footer-copy { text-align: center; padding: 18px var(--gut); border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }

.vesper-bar { background: var(--navy); padding: 16px var(--gut); }
.vesper-inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vesper-sign { display: flex; align-items: center; gap: 10px; }
.vesper-sign img { height: 22px; width: auto; opacity: .9; }
.vesper-sign span { font-family: var(--f-en); font-size: 11px; letter-spacing: .24em; color: #9fb0d4; text-transform: uppercase; }
.vesper-rid img { height: 26px; width: auto; opacity: .82; }

/* ============================================================
   8. レスポンシブ
============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .job-cards { grid-template-columns: repeat(2, 1fr); }
  .entry-body { grid-template-columns: 1fr; }
  .req-wrap { position: static; }
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  body.nav-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); min-height: 44px; display: flex; align-items: center; }
  .site-nav .nav-cta { justify-content: center; margin-top: 12px; border-bottom: 0; }
  .site-nav .nav-ext { border-bottom: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .job-cards { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
  body { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
}
