/* ==========================================================================
   株式会社大和総業 採用LP — css/style.css
   カラーテーマ：ダークネイビー #1a2540 × アクセントオレンジ #e86a1a
   フォント：Noto Sans JP (400/500/700/900)
   ========================================================================== */

/* ── リセット & ベース ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #2d2d2d;
  background: #fff;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ── CSS変数 ───────────────────────────────────────────── */
:root {
  --navy:   #1a2540;
  --orange: #e86a1a;
  --orange-dark: #c85a10;
  --gray-bg: #f5f5f0;
  --gray-line: #e0e0e0;
  --text: #2d2d2d;
  --text-light: #666;
  --container: 1100px;
  --container-narrow: 800px;
  --header-h: 68px;
  --radius: 8px;
  --transition: 0.25s ease;
}

/* ── コンテナ ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: var(--container-narrow);
}

/* ── セクション共通 ──────────────────────────────────────── */
.section { padding: 80px 0; }
.section-compact { padding: 48px 0; }
.section-toned { background: var(--gray-bg); }

.section-heading { text-align: center; margin-bottom: 48px; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
}

/* ── テキストスタック ──────────────────────────────────────── */
.text-stack p { margin-bottom: 1em; }
.text-stack p:last-child { margin-bottom: 0; }
.text-stack strong { font-weight: 700; color: var(--orange); }
.text-stack h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ── フェードイン ────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ======================================================================== */
/* ヘッダー                                                                   */
/* ======================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-logo {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.site-nav ul {
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ハンバーガー */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================================================================== */
/* FV（ファーストビュー）                                                      */
/* ======================================================================== */
.hero.section { padding: 0; padding-top: var(--header-h); }
.hero .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.hero-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,37,64,0.55) 0%, rgba(26,37,64,0.72) 100%);
}
.hero-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
  z-index: 1;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  background: var(--orange);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  display: inline-block;
}
.hero-panel h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-panel p {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  max-width: 620px;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-panel strong { color: #ffd080; font-weight: 700; }

/* ======================================================================== */
/* スライダー                                                                   */
/* ======================================================================== */
.slider-strip { padding: 16px 0; overflow: hidden; background: var(--navy); }
.slider-shell { overflow: hidden; }
.slider-track {
  display: flex;
  gap: 12px;
  animation: slideLoop 15s linear infinite;
  will-change: transform;
}
.slider-track:hover { animation-play-state: paused; }
.slide-item {
  flex: 0 0 280px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes slideLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======================================================================== */
/* 会社について / おわりに（写真＋テキスト）                                     */
/* ======================================================================== */
.single-visual-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
#about .single-visual-block {
  grid-template-columns: 3fr 2.5fr;
  align-items: center;
}
#closing .single-visual-block {
  grid-template-columns: 3fr 2.5fr;
  align-items: center;
}
#closing .container.narrow {
  max-width: var(--container);
}
#about .container.narrow {
  max-width: var(--container);
}
.media-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
}
.section-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.media-frame:hover .section-photo { transform: scale(1.03); }

/* ======================================================================== */
/* こんな方歓迎                                                               */
/* ======================================================================== */
.welcome-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.welcome-list li {
  padding: 20px 24px;
  background: #fff;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ======================================================================== */
/* 仕事内容（ジグザグ）                                                         */
/* ======================================================================== */
.zigzag-list { display: flex; flex-direction: column; gap: 64px; }
.zigzag-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.zigzag-item-reverse .zigzag-media { order: 2; }
.zigzag-item-reverse .zigzag-text  { order: 1; }

/* ======================================================================== */
/* カードグリッド（3カラム）                                                    */
/* ======================================================================== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.info-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.info-card .media-frame { border-radius: 0; }
.info-card .text-stack { padding: 20px; }
.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.member-photo { object-position: top center; }

/* ======================================================================== */
/* 1日の流れ（タイムライン）                                                    */
/* ======================================================================== */
.timeline-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 40px 48px;
}
.timeline-list { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}
.timeline-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

/* ======================================================================== */
/* CTA ボックス                                                               */
/* ======================================================================== */
.cta-box {
  text-align: center;
  padding: 40px 32px;
  background: var(--navy);
  border-radius: var(--radius);
  color: #fff;
}
.cta-box p { font-size: 1rem; font-weight: 500; margin-bottom: 24px; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.hero-panel .cta-buttons { margin-top: 24px; }

/* ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
  white-space: nowrap;
}
.button:active { transform: scale(0.97); }
.button-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.button-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.button-secondary:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.button-large { padding: 16px 48px; font-size: 1.1rem; }

/* ======================================================================== */
/* 募集要項                                                                   */
/* ======================================================================== */
.job-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
}
.job-table { display: flex; flex-direction: column; }
.job-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--gray-line);
}
.job-row:last-child { border-bottom: none; }
.job-row dt {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  padding-top: 2px;
}
.job-row dd { font-size: 0.9rem; line-height: 1.8; color: var(--text); }
.job-row small { font-size: 0.8rem; color: var(--text-light); }

/* ======================================================================== */
/* 応募フォーム                                                                */
/* ======================================================================== */
.form-lead {
  text-align: center;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.required {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #d33;
  padding: 2px 7px;
  border-radius: 3px;
}
.optional {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #999;
  padding: 2px 7px;
  border-radius: 3px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,106,26,0.15);
}
.contact-form input.is-error,
.contact-form textarea.is-error { border-color: #d33; }
.form-error {
  font-size: 0.8rem;
  color: #d33;
  min-height: 1em;
  display: block;
}
.form-submit { text-align: center; margin-top: 8px; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -8px;
}
/* honeypot非表示 */
.hp-field { display: none !important; }

/* ======================================================================== */
/* フッター                                                                    */
/* ======================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-company { font-weight: 700; color: #fff; font-size: 1rem; }
.footer-address { font-size: 0.8rem; }
.footer-tel a { color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.footer-tel a:hover { color: #fff; }
.footer-copy { font-size: 0.72rem; margin-top: 8px; }

/* ======================================================================== */
/* ページトップ                                                                */
/* ======================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 44px; height: 44px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ======================================================================== */
/* レスポンシブ（768px以下）                                                   */
/* ======================================================================== */
@media (max-width: 768px) {

  :root { --header-h: 60px; }

  /* ハンバーガー表示 */
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    font-size: 1rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* FV */
  .hero-visual { aspect-ratio: auto; min-height: 520px; }
  .hero-panel h1 { font-size: clamp(1.4rem, 7vw, 2rem); }
  .hero-panel p { font-size: 0.85rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .button { width: 100%; max-width: 320px; }

  /* スライダー */
  .slide-item { flex: 0 0 200px; }

  /* 会社について／おわりに */
  .single-visual-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #about .single-visual-block {
    grid-template-columns: 1fr;
  }
  #about .single-visual-block .media-frame { order: 1; }
  #about .single-visual-block .text-stack  { order: 2; }

  /* おわりに — SP は画像上・テキスト下 */
  #closing .single-visual-block {
    grid-template-columns: 1fr;
  }
  #closing .single-visual-block .media-frame { order: 1; }
  #closing .single-visual-block .text-stack  { order: 2; }

  /* こんな方歓迎 */
  .welcome-list li { font-size: 0.95rem; padding: 16px 18px; }

  /* 仕事内容ジグザグ — SP は常に「写真→テキスト」 */
  .zigzag-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .zigzag-item .zigzag-media { order: 1; }
  .zigzag-item .zigzag-text  { order: 2; }
  .zigzag-item-reverse .zigzag-media { order: 1; }
  .zigzag-item-reverse .zigzag-text  { order: 2; }

  /* カードグリッド */
  .card-grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* タイムライン */
  .timeline-card { padding: 24px 20px; }
  .timeline-item {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }

  /* 募集要項 */
  .job-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 20px;
  }
  .job-row dt { color: var(--orange); }

  /* フォーム */
  .button-large { padding: 14px 32px; font-size: 1rem; }

  .section { padding: 56px 0; }
  .section-compact { padding: 36px 0; }
}

@media (max-width: 480px) {
  .hero-panel h1 { font-size: 1.35rem; }
  .slide-item { flex: 0 0 160px; }
}
