/* ============================================================
   style.css — STEP3 完成版
   カラーパレット：ネイビー（信頼）×オレンジ（活気・遊び心）
   フォント：Noto Sans JP（Google Fonts）
   ============================================================ */

/* ---------- カラー変数 ---------- */
:root {
  --color-navy:       #0d2a4e;   /* メインネイビー */
  --color-navy-mid:   #1a3f6f;   /* ナビ・フッター */
  --color-navy-light: #e8eef6;   /* セクション背景（薄） */
  --color-orange:     #f07b00;   /* アクセント／CTA */
  --color-orange-lt:  #fff4e5;   /* アクセント薄 */
  --color-white:      #ffffff;
  --color-bg:         #f8f9fc;
  --color-text:       #2c2c2c;
  --color-text-sub:   #555555;
  --color-border:     #dde3ed;
  --color-placeholder:#b0b8c8;
  --radius-card:      12px;
  --radius-btn:       50px;
  --shadow-card:      0 4px 20px rgba(13,42,78,.10);
  --transition:       0.25s ease;
}

/* ---------- リセット＆ベース ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* 強調テキスト共通 */
strong {
  font-weight: 700;
  color: var(--color-orange);
}

/* ---------- プレースホルダー ---------- */
.placeholder-16-9,
.placeholder-4-3 {
  background: var(--color-placeholder);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-16-9 { aspect-ratio: 16 / 9; width: 100%; }
.placeholder-4-3  { aspect-ratio: 4  / 3;  width: 100%; }

.placeholder-16-9::after,
.placeholder-4-3::after {
  content: attr(data-label);
  font-size: 0.75rem;
  color: var(--color-white);
  opacity: .7;
  letter-spacing: .05em;
}

/* FV背景用 → after上書き */
.fv-bg.placeholder-16-9::after { display: none; }

/* ---------- コンテナ ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  letter-spacing: .04em;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-orange);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* 交互背景 */
.section.bg-light { background: var(--color-navy-light); }
.section.bg-orange-lt { background: var(--color-orange-lt); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-align: center;
  white-space: nowrap;
  letter-spacing: .03em;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0);    box-shadow: none; }

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}
.btn-primary:hover { background: #d96b00; border-color: #d96b00; }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-large { padding: 18px 48px; font-size: 1.1rem; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
  letter-spacing: .04em;
}

/* ナビ */
.global-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}
.nav-list li a {
  display: block;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-navy);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-list li a:hover { color: var(--color-navy); background: var(--color-navy-light); }

.nav-list li a.nav-cta {
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: var(--radius-btn);
  padding: 7px 16px;
  font-weight: 700;
}
.nav-list li a.nav-cta:hover { background: #d96b00; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
/* 開いた状態（×） */
.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* モバイルメニューオーバーレイ */
.nav-list.is-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: 32px 24px;
  gap: 0;
  overflow-y: auto;
  animation: slideDown .25s ease;
  border-top: 1px solid var(--color-border);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-list.is-open li a {
  font-size: 1rem;
  padding: 16px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-navy);
}
.nav-list.is-open li a.nav-cta {
  margin-top: 16px;
  text-align: center;
  border-radius: var(--radius-btn);
  border: none;
  color: var(--color-white);
}

/* ---------- ヘッダーロゴ ---------- */
.header-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ========================================================
   FV（ファーストビュー）
   ======================================================== */
.fv { width: 100%; }

/* 実画像FV */
.fv-real {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.fv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.fv-bg {
  position: relative;
}

/* FV上のオーバーレイ（プレースホルダー時は軽いグラデ） */
.fv-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,42,78,.55) 0%, rgba(13,42,78,.25) 100%);
  z-index: 0;
}

.fv-catch {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 1;
  gap: 20px;
}

.fv-catch h1 {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  letter-spacing: .04em;
  max-width: 700px;
}

.fv-catch p {
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.92);
  max-width: 600px;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.fv-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

/* ========================================================
   FV下スライダー（CSSキーフレーム自動スクロール）
   ======================================================== */
.slider-section {
  background: var(--color-navy);
  padding: 20px 0;
  overflow: hidden;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
}

/* トラック：10枚 + 複製10枚 = 20枚を横並び */
.slider-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.slider-track:hover { animation-play-state: paused; }

.slide-item {
  flex: 0 0 240px;
  border-radius: 8px;
  overflow: hidden;
  opacity: .9;
}
.slide-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.slide-item .placeholder-4-3 {
  border-radius: 8px;
}

/* ---------- セクション共通・実画像スタイル ---------- */
/* about-photo / closing-photo / works-photo / card-photo に入る img */
.about-photo img,
.closing-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-card);
}

.works-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-card);
}

.card-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ========================================================
   会社について
   ======================================================== */
.about-section { background: var(--color-white); }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-text p {
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

/* ========================================================
   こんな人歓迎
   ======================================================== */
.welcome-section { background: var(--color-navy-light); }

.welcome-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.welcome-item {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.welcome-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(13,42,78,.15);
}

.welcome-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
}

.welcome-item p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-navy);
}
.welcome-item strong {
  font-weight: 700;
  color: var(--color-orange);
}

/* ========================================================
   CTA帯
   ======================================================== */
.cta-section {
  background: var(--color-navy);
  padding: 72px 0;
}

.cta-box { text-align: center; }

.cta-box h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: .04em;
}
.cta-box > p {
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* CTAのボタン色上書き（白背景上は色が沈むため） */
.cta-section .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.cta-section .btn-secondary:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ========================================================
   仕事内容（ジグザグ）
   ======================================================== */
.works-section { background: var(--color-white); }

.works-intro {
  text-align: center;
  font-size: 1.05rem;
  color: #444;
  margin-top: -24px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.works-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.works-block:last-child { margin-bottom: 0; }

.works-block--reverse { direction: rtl; }
.works-block--reverse > * { direction: ltr; }

.works-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.works-text { display: flex; flex-direction: column; gap: 12px; }

.works-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
  padding-left: 16px;
  border-left: 4px solid var(--color-orange);
  line-height: 1.4;
}

.works-text p {
  font-size: .97rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

/* ========================================================
   入社後の流れ / 会社の魅力 / メンバー紹介 （カードグリッド共通）
   ======================================================== */
.flow-section    { background: var(--color-navy-light); }
.appeal-section  { background: var(--color-white); }
.members-section { background: var(--color-navy-light); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* カード共通 */
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(13,42,78,.16);
}

.card-photo { width: 100%; }
.card-photo .placeholder-4-3 { border-radius: 0; }

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
}

.card p {
  font-size: .9rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}
.card p + p { margin-top: 6px; }

/* Flow カード固有 */
.flow-card .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 16px;
  border-radius: var(--radius-btn);
  width: fit-content;
}

/* ========================================================
   1日の流れ
   ======================================================== */
.day-section { background: var(--color-orange-lt); }

.day-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover { background: var(--color-navy-light); }

.timeline-time {
  flex-shrink: 0;
  width: 96px;
  padding: 20px 24px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-navy);
  text-align: center;
  letter-spacing: .05em;
}

.timeline-text {
  flex: 1;
  padding: 20px 28px;
  font-size: .97rem;
  color: var(--color-text);
  font-weight: 500;
}

/* ========================================================
   募集要項
   ======================================================== */
.requirements-section { background: var(--color-white); }

.requirements-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.requirements-table {
  width: 100%;
  border-collapse: collapse;
}
.requirements-table th,
.requirements-table td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  font-size: .95rem;
  line-height: 1.7;
}
.requirements-table tr:last-child th,
.requirements-table tr:last-child td { border-bottom: none; }

.requirements-table th {
  width: 28%;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-navy-light);
  white-space: nowrap;
}
.requirements-table td {
  color: var(--color-text-sub);
}

/* ========================================================
   おわりに
   ======================================================== */
.closing-section { background: var(--color-navy-light); }

.closing-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.closing-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.closing-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.closing-text p {
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

/* ========================================================
   応募フォーム
   ======================================================== */
.contact-section { background: var(--color-white); }

.contact-lead {
  text-align: center;
  color: var(--color-text-sub);
  margin-bottom: 40px;
  font-size: .97rem;
}

.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px 48px;
  border: 1px solid var(--color-border);
}

/* honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  overflow: hidden;
  visibility: hidden;
  height: 0;
  pointer-events: none;
}

.form-group { margin-bottom: 28px; }

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  font-size: .95rem;
}

.required {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: .05em;
}

.optional {
  display: inline-block;
  background: #ccc;
  color: var(--color-white);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: .05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(240,123,0,.18);
  background: var(--color-white);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* バリデーションエラー */
.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}
.error-msg {
  display: block;
  color: #e53e3e;
  font-size: .82rem;
  margin-top: 4px;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

/* ========================================================
   フッター
   ======================================================== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 56px 24px 32px;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-company {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.footer-address,
.footer-tel {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
}
.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: 24px;
}

/* ========================================================
   スクロールアニメーション
   ======================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

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

  /* ヘッダー */
  .hamburger { display: flex; }
  .nav-list  { display: none; }

  /* セクション余白 */
  .section { padding: 64px 0; }
  .section-title { font-size: 1.35rem; margin-bottom: 36px; }

  /* FV */
  .fv-catch h1 { font-size: 1.15rem; }
  .fv-catch p  { font-size: .85rem; }
  .fv-buttons  { flex-direction: column; align-items: center; }

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

  /* 会社について */
  .about-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* ジグザグブロック → スマホは写真→文 */
  .works-block,
  .works-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
    margin-bottom: 48px;
  }

  /* 入社後の流れ / 魅力 / メンバー（3列→1列） */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 1日の流れ */
  .timeline-time { width: 76px; padding: 16px 12px; font-size: .85rem; }
  .timeline-text { padding: 16px 16px; font-size: .9rem; }

  /* 募集要項 */
  .requirements-table,
  .requirements-table tbody,
  .requirements-table tr,
  .requirements-table th,
  .requirements-table td {
    display: block;
    width: 100%;
  }
  .requirements-table th {
    border-bottom: none;
    padding-bottom: 6px;
    white-space: normal;
  }
  .requirements-table td {
    padding-top: 6px;
    padding-left: 24px;
    border-bottom: 1px solid var(--color-border);
  }
  .requirements-table tr:last-child td { border-bottom: none; }

  /* おわりに */
  .closing-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* フォーム */
  .form-card { padding: 28px 20px; }

  /* CTA */
  .cta-section { padding: 48px 0; }
  .cta-buttons { flex-direction: column; align-items: center; }

  /* フッター */
  .site-footer { padding: 40px 20px 24px; }
}
