/* =====================================================================
   株式会社MIRIZE 採用LP — 完成版 style.css (STEP3)
   - 配色：元気のオレンジ × 濃いグレー（オリジナル）
   - フォント：Noto Sans JP / ウェイト 400/500/700/900
   - 構造・要素数・原稿はSTEP2で確定済み（触らない）
   - 動き：シームレススライダー（@keyframes linear 無限ループ）
   - 動き：ハンバーガー開閉（class .is-openで制御）
   - 動き：スムーススクロール（JS制御）
   ===================================================================== */

/* ---------- 0. フォント読み込み ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ---------- 1. ベース ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
    'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: #2d2d2d;
  background: #f8f8f8;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* --- 画像（写真）が入った時のプレースホルダー処理 --- */
.ph:has(img),
.slide:has(img) {
  background: transparent;
}
.ph:has(img)::after,
.slide:has(img)::after {
  display: none;
}
.ph img,
.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* honeypot（非表示） */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

a {
  color: inherit;
  transition: opacity 0.2s ease;
}

p {
  margin: 0 0 14px 0;
}

/* 強調：オレンジ差し色（テーマアクセント） */
strong {
  font-weight: 700;
  color: #f97316;
}

/* ---------- 2. レイアウト ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 3. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #2d2d2d;
  border-bottom: 3px solid #f97316;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #fff;
}

/* PCナビ */
.nav-pc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-pc a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
}

.nav-pc a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #f97316;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-pc a:hover::after,
.nav-pc a:focus-visible::after {
  transform: scaleX(1);
}

/* モバイルトグル */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #f97316;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  .nav-pc {
    display: none;
  }
  .nav-mobile-toggle {
    display: inline-block;
  }
  /* モバイル時はdrawer表示制御（.is-openで展開） */
  .nav-pc.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d2d2d;
    border-top: 1px solid #444;
    padding: 8px 0;
  }
  .nav-pc.is-open ul {
    flex-direction: column;
    gap: 0;
  }
  .nav-pc.is-open li {
    border-bottom: 1px solid #3a3a3a;
  }
  .nav-pc.is-open a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
  }
  .nav-pc.is-open a::after {
    display: none;
  }
}

/* ---------- 4. セクション共通 ---------- */
section {
  padding: 72px 0;
  border-bottom: 1px solid #ececec;
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  margin: 0 0 32px 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.4;
  color: #2d2d2d;
  position: relative;
  padding-left: 18px;
}

section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 6px;
  background: #f97316;
  border-radius: 3px;
}

section h2 .sub {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f97316;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ---------- 5. FV（ファーストビュー） ---------- */
section.fv-section,
.fv-section {
  padding: 0;
  border-bottom: none;
}

.fv {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.5)
    ),
    url('../images/fv-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.fv-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  max-width: 880px;
  width: 100%;
}

.fv-copy h1 {
  margin: 0 0 20px 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.4;
  white-space: pre-line;
  letter-spacing: 0.02em;
}

.fv-copy p.sub {
  margin: 0 0 28px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  white-space: pre-line;
}

@media (min-width: 769px) {
  .fv-copy h1 {
    font-size: 52px;
  }
  .fv-copy p.sub {
    font-size: 17px;
  }
}

/* ---------- 6. CTAボックス（角丸中央2ボタン） ---------- */
.cta-box {
  max-width: 760px;
  margin: 40px auto 0;
  background: #fff;
  border: 2px solid #f97316;
  border-radius: 18px;
  padding: 24px 18px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12);
}

.cta-box .btn {
  min-width: 260px;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  border: 2px solid transparent;
  line-height: 1.3;
  min-height: 56px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-call {
  background: #2d2d2d;
  border-color: #2d2d2d;
  color: #fff;
}

.btn-call:hover,
.btn-call:focus-visible {
  background: #1a1a1a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-form {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.btn-form:hover,
.btn-form:focus-visible {
  background: #ea580c;
  border-color: #ea580c;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

/* ---------- 7. スライダー（@keyframes linear 無限ループ） ---------- */
.slider-placeholder {
  margin: 0;
  padding: 24px 0 40px;
  background: #f0f0f0;
  overflow: hidden;
}

.slider-row {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: slider-loop 30s linear infinite;
  will-change: transform;
}

/* ホバーで一時停止（任意） */
.slider-placeholder:hover .slider-row {
  animation-play-state: paused;
}

@keyframes slider-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 10枚分を複製した内側幅の半分だけ左に動かすと、シームレスにループする */
    transform: translateX(-50%);
  }
}

.slide {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 4/3;
  background: #999;
  position: relative;
  border-radius: 6px;
}

.slide::after {
  content: 'IMAGE / 4:3';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* ---------- 8. 写真プレースホルダー（共通） ---------- */
.ph {
  background: #999;
  width: 100%;
  border-radius: 6px;
  position: relative;
}

.ph-43 {
  aspect-ratio: 4/3;
}

.ph-169 {
  aspect-ratio: 16/9;
}

/* 画像が入る .ph / .media / .photo の中身は relative にして img を絶対配置 */
.media,
.photo {
  position: relative;
  overflow: hidden;
}

.ph::after {
  content: 'IMAGE / 4:3';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* ---------- 9. 会社概要 ---------- */
.about-block .photo {
  margin-bottom: 20px;
}

/* ---------- 10. こんな人歓迎 ---------- */
.welcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.welcome-list li {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 6px solid #f97316;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.welcome-list li strong {
  font-weight: 700;
}

/* ---------- 11. 仕事内容ジグザグ ---------- */
.job-block {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 36px;
  align-items: flex-start;
}

.job-block:last-of-type {
  margin-bottom: 32px;
}

.job-block.reverse {
  flex-direction: row-reverse;
}

.job-block .media {
  flex: 0 0 45%;
  max-width: 45%;
}

.job-block .text {
  flex: 1 1 55%;
}

.job-block h3 {
  margin: 0 0 14px 0;
  font-size: 20px;
  font-weight: 900;
  color: #2d2d2d;
  border-bottom: 2px solid #f97316;
  padding-bottom: 8px;
  display: inline-block;
}

@media (max-width: 768px) {
  .job-block,
  .job-block.reverse {
    flex-direction: column;
  }
  .job-block .media {
    flex-basis: auto;
    max-width: 100%;
    width: 100%;
    order: 0; /* DOM順序を尊重：photo → text */
  }
  .job-block .text {
    order: 1;
  }
}

/* ---------- 12. 3カラムカード（入社後・会社の魅力） ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card .media {
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #2d2d2d;
}

.card p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

@media (max-width: 768px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
  /* DOM順序 photo → h3 → p を維持 */
}

/* ---------- 13. メンバー紹介（3カード・写真あり） ---------- */
.member-card .role {
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.member-card h3 {
  display: none; /* 役割ラベルが h3 役割を兼ねる */
}

/* ---------- 14. 1日のスケジュール ---------- */
.schedule-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 82px;
  width: 2px;
  background: #f97316;
}

.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 0;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 76px;
  top: 18px;
  width: 14px;
  height: 14px;
  background: #f97316;
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 1;
}

.timeline .time {
  flex: 0 0 60px;
  font-weight: 700;
  color: #2d2d2d;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  text-align: right;
  padding-right: 8px;
}

.timeline .label {
  margin-left: 28px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

/* ---------- 15. おわりに ---------- */
.closing .photo {
  margin-bottom: 20px;
}

#closing p {
  text-align: center;
}

/* ---------- 16. 募集要項（2カラム・薄いグレー1px線） ---------- */
.requirements-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.requirements-card .req-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
  align-items: start;
}

.requirements-card .req-row:first-child {
  padding-top: 4px;
}

.requirements-card .req-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.requirements-card dt {
  font-weight: 700;
  color: #2d2d2d;
  font-size: 15px;
  background: #f8f8f8;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #f97316;
}

.requirements-card dd {
  margin: 0;
  line-height: 1.85;
  font-size: 15px;
}

.requirements-card .sub-group {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 0 0 0;
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .requirements-card .req-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- 17. 応募フォーム ---------- */
.contact-form {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #2d2d2d;
}

.form-row label .req {
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row-submit {
  text-align: center;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  background: #f97316;
  color: #fff;
  border: 2px solid #f97316;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 56px;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: #ea580c;
  border-color: #ea580c;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

.submit-btn:active {
  transform: translateY(1px);
}

/* ---------- 18. フッター ---------- */
.site-footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  color: #fff;
  background: #2d2d2d;
  border-top: 3px solid #f97316;
}

.site-footer small {
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ---------- 19. アクセシビリティ ---------- */
:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 2px;
}

/* ---------- 20. スマホ時のFV見出しサイズ ---------- */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
  section h2 {
    font-size: 24px;
  }
  .fv {
    aspect-ratio: auto;
    min-height: 80svh;
    height: auto;
    overflow: visible;
    padding: 40px 20px;
  }
  .fv-copy h1 {
    font-size: 28px;
  }
  .fv-copy p.sub {
    font-size: 14px;
  }
  .slide {
    width: 140px;
  }
  .btn {
    min-width: 240px;
    font-size: 15px;
    padding: 14px 18px;
  }
  .timeline::before {
    left: 64px;
  }
  .timeline li::before {
    left: 58px;
  }
  .timeline .time {
    flex: 0 0 50px;
    font-size: 14px;
  }
  .timeline .label {
    margin-left: 20px;
    font-size: 14px;
  }
  .requirements-card dt {
    font-size: 14px;
  }
  .requirements-card dd {
    font-size: 14px;
  }
}
