/*
Theme Name: Ohmi Technoparts Recruit
Theme URI: https://example.com/ohmi-technoparts
Author: 齋藤 (個人事業・制作見本)
Author URI: https://example.com
Description: 近江テクノパーツ株式会社（架空）の採用強化サイト用 自作WordPressテーマ。「核になるか、駒になるか」＝キャプテン型採用コンセプト。カスタム投稿タイプ staff_voice「社員の声」対応。製造業×採用の見本（ナックウェブ基準）。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ohmi-technoparts
Tags: recruit, manufacturing, custom-post-type, responsive, japanese
*/

/* =========================================================
   0. デザイントークン（CSS変数で一元管理）
   ========================================================= */
:root {
  --navy:      #0d2137;
  --navy-2:    #14304d;
  --steel:     #35516e;
  --steel-2:   #5b7893;
  --accent:    #f26a1b;   /* キャプテン＝艦長のオレンジ */
  --accent-2:  #ffb347;
  --ink:       #16202b;
  --paper:     #f5f7fa;
  --paper-2:   #eaeef3;
  --white:     #ffffff;
  --line:      rgba(13, 33, 55, 0.12);
  --line-dk:   rgba(255, 255, 255, 0.14);
  --shadow:    0 18px 48px -24px rgba(13, 33, 55, 0.45);

  --font-sans: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
}

/* =========================================================
   1. リセット & ベース
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-feature-settings: "palt" 1, "pkna" 1;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent-2); }
.section-title {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  letter-spacing: .01em; margin-bottom: 18px;
}
.section-lead { max-width: 640px; color: var(--steel); font-size: 1.02rem; }

/* =========================================================
   2. ボタン
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 30px; border-radius: 999px; font-weight: 700;
  font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(242,106,27,.8); }
.btn--primary:hover { background: #e05c12; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* =========================================================
   3. ヘッダー / ナビ
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(13, 33, 55, 0); backdrop-filter: blur(0px);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.site-header.is-scrolled {
  background: rgba(13, 33, 55, .92); backdrop-filter: blur(8px);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; line-height: 1.2; }
.brand__name small { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--accent-2); font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { color: #fff; font-size: .92rem; font-weight: 500; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--accent-2); }
.nav .btn { padding: 10px 22px; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* モバイルナビ */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 22px; padding: 40px; background: var(--navy);
    transform: translateX(100%); transition: transform .3s; z-index: 120; }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; position: relative; z-index: 130; width: 30px; height: 22px; }
  .nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   4. ヒーロー
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(242,106,27,.30), transparent 55%),
    linear-gradient(160deg, rgba(11,18,32,.92) 0%, rgba(15,26,44,.86) 55%, rgba(27,42,64,.82) 100%),
    url("img/hero.jpg") center 30%/cover no-repeat;
}
.hero::after { /* うっすら金属グリッド */
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 80% at 30% 40%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; padding: 120px 0 90px; }
.hero__q { font-size: clamp(2.3rem, 7vw, 5rem); line-height: 1.2; letter-spacing: .01em; }
.hero__q .em { color: var(--accent-2); position: relative; }
.hero__q .em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .12em; background: var(--accent); border-radius: 2px; }
.hero__sub { margin-top: 24px; font-size: clamp(1rem, 2.4vw, 1.3rem); font-weight: 500; color: rgba(255,255,255,.92); }
.hero__lead { margin-top: 18px; max-width: 560px; color: rgba(255,255,255,.78); font-size: 1rem; }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.7); font-size: .68rem; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0; background: rgba(255,255,255,.5); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* =========================================================
   5. メッセージ（核か駒か）
   ========================================================= */
.message { background: var(--paper); }
.message__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.message__big { font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.5; letter-spacing: .02em; }
.message__big b { color: var(--accent); }
.message__body { color: var(--steel); font-size: 1.02rem; }
.vs {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.vs__cell { padding: 34px 26px; color: #fff; }
.vs__cell--koma { background: var(--steel); }
.vs__cell--core { background: linear-gradient(150deg, var(--navy), var(--navy-2)); }
.vs__mid { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; padding: 0 18px; letter-spacing: .1em; }
.vs__label { font-size: .72rem; letter-spacing: .2em; opacity: .8; text-transform: uppercase; }
.vs__word { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 6px 0 12px; }
.vs__desc { font-size: .9rem; opacity: .85; }

/* =========================================================
   6. 数字（カウントアップ）
   ========================================================= */
.stats { background: var(--navy); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line-dk); }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; color: var(--accent-2); line-height: 1; }
.stat__num .unit { font-size: .9rem; color: #fff; margin-left: 3px; }
.stat__label { margin-top: 12px; font-size: .86rem; color: rgba(255,255,255,.78); }

/* =========================================================
   7. 採用ポイント
   ========================================================= */
.points__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 46px; }
.point {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -22px rgba(13,33,55,.5); overflow: hidden;
}
.point::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.point__no { font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .18em; color: var(--accent); }
.point__title { font-size: 1.25rem; margin: 8px 0 14px; }
.point__body { color: var(--steel); font-size: .96rem; margin: 0; }
.point__flow { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; font-weight: 800; color: var(--navy); }
.point__flow span { padding: 4px 14px; border-radius: 999px; background: var(--paper-2); }
.point__flow span:last-child { background: var(--accent); color: #fff; }
.point__flow i { color: var(--steel-2); font-style: normal; }

/* =========================================================
   8. 社員の声
   ========================================================= */
.voices { background: var(--paper); }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.voice-card {
  display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 12px 34px -26px rgba(13,33,55,.55); transition: transform .25s, box-shadow .25s;
}
.voice-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -26px rgba(13,33,55,.6); }
.voice-card__photo { aspect-ratio: 4/3; background: linear-gradient(150deg, var(--steel), var(--navy)); position: relative; }
.voice-card__badge { position: absolute; left: 14px; bottom: 14px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.voice-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.voice-card__head { font-size: 1.08rem; line-height: 1.5; }
.voice-card__meta { font-size: .82rem; color: var(--steel-2); }
.voice-card__excerpt { font-size: .92rem; color: var(--steel); margin: 0; flex: 1; }
.voice-card__more { color: var(--accent); font-weight: 700; font-size: .9rem; }

/* 画像プレースホルダー（取材写真枠の代替） */
.img-placeholder {
  display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.9); font-size: .8rem; letter-spacing: .06em;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, var(--steel), var(--navy));
  width: 100%; height: 100%;
}
.img-placeholder .avatar { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }

/* =========================================================
   9. 事業紹介（トップ）
   ========================================================= */
.biz { background: var(--navy); color: #fff; }
.biz__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.biz__title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.biz__title b { color: var(--accent-2); }
.biz__body { color: rgba(255,255,255,.8); }
.biz__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.biz__fact { border: 1px solid var(--line-dk); border-radius: 12px; padding: 16px; }
.biz__fact dt { font-size: .78rem; color: var(--accent-2); letter-spacing: .1em; }
.biz__fact dd { margin: 6px 0 0; font-size: 1.4rem; font-weight: 800; }

/* =========================================================
   10. CTA 帯
   ========================================================= */
.cta {
  color: #fff; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(242,106,27,.4), transparent 60%), linear-gradient(150deg, var(--navy-2), var(--navy));
}
.cta__title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta__title b { color: var(--accent-2); }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.cta__tel { margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.8); }
.cta__tel b { font-size: 1.5rem; color: #fff; letter-spacing: .04em; }

/* =========================================================
   11. 募集要項テーブル
   ========================================================= */
.reqs { background: var(--paper); }
.req-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.req-table th, .req-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .96rem; }
.req-table th { width: 200px; background: var(--navy); color: #fff; font-weight: 600; }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: 0; }
.req-table td .accent { color: var(--accent); font-weight: 700; }

/* =========================================================
   12. フロー / キャリアパス
   ========================================================= */
.flow { counter-reset: step; display: grid; gap: 16px; margin-top: 40px; }
.flow__item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.flow__no { counter-increment: step; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.flow__no::before { content: "STEP " counter(step); font-size: 0; }
.flow__no b { font-size: 1.2rem; }
.flow__title { font-size: 1.1rem; margin-bottom: 6px; }
.flow__body { color: var(--steel); font-size: .94rem; margin: 0; }

/* =========================================================
   13. FAQ アコーディオン
   ========================================================= */
.faq { background: var(--white); }
.faq__list { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.faq__q { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 20px 22px; background: none; border: 0; cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--navy); font-family: var(--font-sans); }
.faq__q::before { content: "Q"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.faq__q .icon { margin-left: auto; transition: transform .3s; color: var(--accent); font-size: 1.3rem; }
.faq__item.is-open .faq__q .icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a-inner { padding: 0 22px 22px 66px; color: var(--steel); font-size: .96rem; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* =========================================================
   14. 応募フォーム枠
   ========================================================= */
.apply { background: var(--paper); }
.apply__box { max-width: 760px; margin-inline: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(26px, 5vw, 48px); }
.form-note { background: var(--paper-2); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; font-size: .88rem; color: var(--steel); margin-bottom: 22px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.form-field .req-mark { color: #e0322b; margin-left: 4px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.form-field select { min-width: 10rem; padding-right: 2rem; text-overflow: ellipsis; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-submit { text-align: center; margin-top: 8px; }

/* =========================================================
   15. ページヘッダー（下層）
   ========================================================= */
.page-hero {
  color: #fff; padding: 150px 0 70px; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 85% 0%, rgba(242,106,27,.25), transparent 55%), linear-gradient(150deg, var(--navy), var(--navy-2));
}
.page-hero__eyebrow { color: var(--accent-2); letter-spacing: .2em; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.page-hero__title { font-size: clamp(1.9rem, 5vw, 3.2rem); margin-top: 10px; }
.page-hero__lead { margin-top: 14px; max-width: 620px; color: rgba(255,255,255,.82); }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent-2); }

/* =========================================================
   16. 記事本文（single/archive）
   ========================================================= */
.article { max-width: 820px; margin: 0 auto; }
.article__lead { font-size: 1.15rem; font-weight: 700; color: var(--navy); border-left: 5px solid var(--accent); padding-left: 18px; margin-bottom: 30px; }
.article__body p { color: var(--ink); }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { display: inline-block; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.chip--accent { background: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--accent); font-weight: 700; }

/* =========================================================
   17. フッター
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 64px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer__brand .brand__name { color: #fff; }
.footer__desc { font-size: .9rem; margin-top: 16px; color: rgba(255,255,255,.66); }
.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; margin-bottom: 16px; color: var(--accent-2); }
.footer__col a { display: block; font-size: .92rem; padding: 5px 0; color: rgba(255,255,255,.8); }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dk); font-size: .78rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   18. スクロール登場アニメ（IntersectionObserver）
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .1s; }
.reveal[data-delay="2"]{ transition-delay: .2s; }
.reveal[data-delay="3"]{ transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   19. 404
   ========================================================= */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 80px; }
.notfound__code { font-size: clamp(4rem, 16vw, 9rem); font-weight: 800; color: var(--navy); line-height: 1; }
.notfound__code b { color: var(--accent); }

/* =========================================================
   20. レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
  .message__grid, .biz__grid { grid-template-columns: 1fr; }
  .points__grid { grid-template-columns: 1fr; }
  .voices__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vs { grid-template-columns: 1fr; }
  .vs__mid { padding: 12px; }
  .biz__facts { grid-template-columns: 1fr; }
  .req-table th { width: 130px; }
  .req-table th, .req-table td { padding: 14px 14px; font-size: .9rem; }
  .flow__item { grid-template-columns: 1fr; }
}
