/* ============================================================
   GLOBAL ASIA CONSULTANTS - 採用LP CSS
   STEP3 完成版 + 修正反映済み
   ============================================================ */

/* ---------- リセット・基盤 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.85;
  font-size: 16px;
}

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

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

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- カラー変数 ---------- */
:root {
  --navy:    #1a4fa8;
  --navy-dk: #12378a;
  --orange:  #e07b20;
  --orange-lt: #f5a045;
  --bg-alt:  #f0f4fb;
  --bg-dark: #0f2860;
  --gray:    #6b7280;
  --border:  #d1d5db;
  --white:   #ffffff;
  --radius:  16px;
  --radius-sm: 10px;
}

/* ---------- コンテナ ---------- */
.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

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

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  text-align: center;
  margin-bottom: 52px;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin: 0;
  color: var(--navy-dk);
  line-height: 1.3;
}

.section-sub {
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 8px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(224,123,32,0.1);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* 強調テキスト */
.accent-text {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- プレースホルダー ---------- */
.placeholder {
  width: 100%;
  background: #d1d9e6;
  color: #7a8aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid #b0bcd4;
}

.placeholder-16x9 { aspect-ratio: 16 / 9; }
.placeholder-4x3  { aspect-ratio: 4 / 3; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--navy);
  box-shadow: 0 2px 12px rgba(26,79,168,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0;
  gap: 24px;
}

/* ① 会社名：左側固定 */
.site-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-dk);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.global-nav {
  flex: 1;
}

.global-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0 4px;
}

.global-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.global-nav a:hover {
  color: var(--navy);
  background: rgba(26,79,168,0.07);
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--navy-dk) !important;
}

/* ハンバーガーボタン */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ハンバーガー → ✕ */
.site-header.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   画像スタイル（実写真置き換え用）
   ============================================================ */

/* ヒーロー背景画像 */
.hero-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 560px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* セクション共通画像 */
.section-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* メディアブロック用ラッパー */
.media-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.media-img-wrap .section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* ジグザグ・メディアエリア */
.zigzag-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.zigzag-media .section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  display: block;
}

/* カード内画像 */
.card-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  height: auto;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}

/* メンバー画像（正方形気味） */
.member-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

/* スライダー画像 */
.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 0;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,40,96,0.72) 0%,
    rgba(26,79,168,0.55) 60%,
    rgba(224,123,32,0.3) 100%
  );
  z-index: 1;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--white);
  overflow-y: auto;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-copy p {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  margin-bottom: 8px;
  max-width: 700px;
}

.hero-copy .accent-text {
  color: var(--orange-lt);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-align: center;
  min-width: 200px;
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ② 両ボタン同配色：ネイビー背景・白文字 */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(26,79,168,0.3);
}

.btn-primary:hover {
  background: var(--navy-dk);
}

.btn-submit {
  background: var(--orange);
  color: var(--white);
  font-size: 1.05rem;
  min-width: 240px;
  box-shadow: 0 3px 12px rgba(224,123,32,0.35);
}

.btn-submit:hover {
  background: #c56a12;
}

/* ============================================================
   SLIDER
   ============================================================ */
.slider-section {
  padding: 32px 0;
  background: var(--bg-alt);
  overflow: hidden;
}

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

.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

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

.slider-item {
  width: 260px;
  flex-shrink: 0;
  border-radius: var(--radius);
}

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

/* ============================================================
   SINGLE MEDIA BLOCK (about / closing)
   ============================================================ */
.single-media-block {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
}

.single-media-text {
  font-size: 1rem;
  line-height: 1.9;
}

/* ============================================================
   WELCOME LIST
   ============================================================ */
.welcome-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.welcome-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dk);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: 0 2px 8px rgba(26,79,168,0.07);
  text-align: center;
}

.welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.narrow-copy {
  max-width: 800px;
  margin-inline: auto;
}

/* ============================================================
   ZIGZAG (仕事内容)
   ============================================================ */
.zigzag-item {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.zigzag-item:last-child {
  margin-bottom: 0;
}

.zigzag-media {
  width: 460px;
  flex-shrink: 0;
}

.zigzag-body {
  flex: 1;
  min-width: 0;
}

.zigzag-reverse .zigzag-media { order: 2; }
.zigzag-reverse .zigzag-body  { order: 1; }

.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 6px;
}

.step-num {
  font-size: 1.2rem;
  font-weight: 900;
}

.zigzag-body h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy-dk);
  margin: 0 0 16px;
}

/* ============================================================
   CARDS 共通
   ============================================================ */
.card-grid {
  display: grid;
  gap: 28px;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(26,79,168,0.08);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,79,168,0.14);
}

.card-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  background: var(--orange);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.info-card .placeholder {
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dk);
  margin: 0 0 12px;
}

/* ============================================================
   CTA セクション
   ============================================================ */
.section-cta {
  background: var(--bg-dark);
  padding: 64px 0;
}

.section-cta.section-alt {
  background: var(--bg-dark);
}

.cta-box {
  text-align: center;
  color: var(--white);
}

.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  margin: 0 0 12px;
}

.cta-box p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
}

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

/* CTAセクション内のボタン：背景が暗いのでオレンジで視認性を確保 */
.section-cta .btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(224,123,32,0.4);
}

.section-cta .btn-primary:hover {
  background: #c56a12;
}

/* ============================================================
   TIMELINE (1日の流れ)
   ============================================================ */
.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: 0 4px 20px rgba(26,79,168,0.08);
  border: 1px solid var(--border);
  max-width: 800px;
  margin-inline: auto;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-list li:last-child {
  border-bottom: none;
}

.timeline-time {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.timeline-text {
  font-size: 0.97rem;
  color: #333;
  line-height: 1.7;
}

/* ============================================================
   JOB INFO (募集要項)
   ============================================================ */
.jobinfo-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(26,79,168,0.06);
  overflow: hidden;
}

.jobinfo-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid #e5e7eb;
}

.jobinfo-row:last-child {
  border-bottom: none;
}

.jobinfo-label {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-dk);
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.jobinfo-detail {
  padding: 20px 28px;
  font-size: 0.93rem;
  line-height: 1.85;
  color: #333;
}

.jobinfo-detail p {
  margin: 0 0 6px;
}

.jobinfo-detail p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 4px 24px rgba(26,79,168,0.1);
  border: 1px solid var(--border);
  max-width: 720px;
  margin-inline: auto;
}

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

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

.required {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.optional {
  display: inline-block;
  background: #9ca3af;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: #1a1a2e;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbff;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,79,168,0.12);
}

.form-row textarea {
  resize: vertical;
}

.form-actions {
  text-align: center;
  margin-top: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-inner > * {
  margin: 4px 0;
}

.footer-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tel a {
  color: rgba(255,255,255,0.8);
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   RESPONSIVE — 768px 以下
   ============================================================ */
@media (max-width: 768px) {

  /* ヘッダー */
  .menu-toggle {
    display: flex;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--navy);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .site-header.is-open .global-nav {
    display: block;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .global-nav li {
    width: 100%;
  }

  .global-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  /* ヘッダー内レイアウト：ロゴ左 / トグル右 */
  .header-inner {
    position: relative;
  }

  .site-logo {
    text-align: left;
    flex: 1;
    font-size: 0.9rem;
  }

  /* セクション余白 */
  .section {
    padding: 56px 0;
  }

  /* シングルメディアブロック：縦積み */
  .single-media-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ジグザグ：写真→文章（強制縦積み） */
  .zigzag-item {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .zigzag-media {
    width: 100%;
  }

  .zigzag-reverse .zigzag-media { order: 1; }
  .zigzag-reverse .zigzag-body  { order: 2; }

  /* 3カラム → 1カラム */
  .three-col {
    grid-template-columns: 1fr;
  }

  /* タイムライン */
  .timeline-card {
    padding: 24px 20px;
  }

  .timeline-list li {
    grid-template-columns: 68px 1fr;
    gap: 10px;
  }

  /* 募集要項 */
  .jobinfo-row {
    grid-template-columns: 1fr;
  }

  .jobinfo-label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
  }

  .jobinfo-detail {
    padding: 14px 20px;
  }

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

  /* CTAボタン縦積み */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  /* ヒーロー */
  .hero-visual {
    aspect-ratio: unset;
    min-height: unset;
    height: auto;
  }

  .hero-bg-img {
    position: static;
    width: 100%;
    height: auto;
    min-height: 480px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
  }

  .hero-copy {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    padding: 32px 16px;
    justify-content: center;
    overflow-y: visible;
  }

  .hero-copy h1 {
    font-size: 1.4rem;
  }

  .hero-copy p {
    font-size: 0.85rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* スライダー */
  .slider-item {
    width: 200px;
  }
}

/* スクロール防止（メニューopen時） */
body.menu-open {
  overflow: hidden;
}
