/* ==========================================================
   新滉建設 採用LP — AI導入企業訴求
   ブランド: ダーク#1A1A2E / ライト#F5F5F0 / アクセント#E94560
   ブルー#0F3460 / ゴールド#C9A227 / セーフティオレンジ#FF6B35
   ========================================================== */

:root {
  --dark: #1A1A2E;
  --light: #F5F5F0;
  --accent: #E94560;
  --blue: #0F3460;
  --gold: #C9A227;
  --gray: #6B7280;
  --safety-orange: #FF6B35;
  --concrete: #9CA3AF;

  --font-display: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* 背景の幾何学グリッド（単色NG対策） */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15,52,96,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,52,96,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--light);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.header-tel {
  color: var(--light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(155deg, var(--dark) 0%, var(--blue) 65%, var(--dark) 100%);
  color: var(--light);
  padding: 48px 20px 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(233,69,96,0.35), transparent 70%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(201,162,39,0.25), transparent 70%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233,69,96,0.15);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(233,69,96,0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(233,69,96,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-title-accent {
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold), #f0d878);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1rem;
  color: #D8D8E0;
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--light); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--light);
}
.stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--concrete);
  margin-top: 4px;
}

.cta-primary {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(233,69,96,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-primary:active { transform: scale(0.97); }
.cta-primary:hover { box-shadow: 0 10px 28px rgba(233,69,96,0.55); }

.hero-microcopy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--concrete);
  margin-top: 12px;
}

/* ===== SECTION 共通 ===== */
.section { padding: 56px 20px; max-width: 640px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--dark);
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin: 14px auto 0;
  border-radius: 2px;
}
.section-lead {
  text-align: center;
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

/* ===== 動画セクション（縦型9:16モバイルファースト） ===== */
.video-section { padding: 48px 20px; max-width: 480px; margin: 0 auto; }
.video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(26,26,46,0.25);
  border: 3px solid var(--dark);
  max-width: 340px;
  margin: 0 auto;
}
.promo-video {
  width: 100%;
  display: block;
  background: var(--dark);
  aspect-ratio: 9/16;
  object-fit: cover;
}
.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--safety-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.video-captions {
  max-width: 340px;
  margin: 18px auto 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.video-captions li {
  background: var(--dark);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,39,0.4);
}

/* ===== なぜAI導入企業 ===== */
.why-ai { background: transparent; }
.why-grid { display: grid; gap: 16px; }
.why-card {
  background: #fff;
  border: 1px solid rgba(15,52,96,0.1);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(26,26,46,0.06);
}
.why-icon { font-size: 1.8rem; margin-bottom: 10px; }
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--blue);
}
.why-card p { font-size: 0.88rem; color: var(--gray); }

/* ===== AI相棒セクション（LINE風モックチャット） ===== */
.ai-buddy-section { background: #EEF1F0; max-width: 100%; }
.buddy-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.buddy-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 14px rgba(26,26,46,0.08);
  border: 1px solid rgba(15,52,96,0.08);
}
.buddy-card-tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.buddy-chat { display: flex; flex-direction: column; gap: 8px; }
.buddy-msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.buddy-msg--user {
  align-self: flex-end;
  background: #06C755;
  color: #fff;
  border-bottom-right-radius: 3px;
}
.buddy-msg--bot {
  align-self: flex-start;
  background: #F0F2F5;
  color: var(--dark);
  border-bottom-left-radius: 3px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.buddy-avatar {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.buddy-note {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
}

/* ===== 寮セクション ===== */
.dorm-section {
  background: var(--dark);
  color: var(--light);
  max-width: 100%;
  border-radius: 0;
  padding: 56px 20px;
}
.dorm-section .section-title { color: var(--light); }
.dorm-section .section-lead { color: var(--concrete); }
.dorm-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.dorm-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
}
.dorm-icon { font-size: 1.6rem; margin-bottom: 8px; }
.dorm-card h3 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; color: var(--gold); }
.dorm-card p { font-size: 0.78rem; color: var(--concrete); }
.dorm-note {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--concrete);
}

/* ===== 応募セクション ===== */
.apply-section { }
.apply-cards { display: grid; gap: 16px; }
.apply-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  border: 1.5px solid rgba(15,52,96,0.12);
  box-shadow: 0 4px 14px rgba(26,26,46,0.06);
  position: relative;
  transition: transform 0.15s ease;
}
.apply-card:active { transform: scale(0.98); }
.apply-card--main {
  border: 2px solid var(--accent);
  background: linear-gradient(155deg, #fff 60%, rgba(233,69,96,0.06));
}
.apply-card-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.apply-card-icon { font-size: 1.9rem; margin-bottom: 8px; }
.apply-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.apply-card p { font-size: 0.82rem; color: var(--gray); margin-bottom: 14px; }
.cta-secondary {
  display: inline-block;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
}
.cta-small { padding: 12px 16px; font-size: 0.9rem; margin-top: 4px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: var(--concrete);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.8rem;
}
.footer-tel { color: var(--light); font-weight: 700; margin-top: 6px; }

/* ==========================================================
   チャット応募モーダル（LINE風）
   ========================================================== */
.chat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26,26,46,0.6);
  backdrop-filter: blur(2px);
  align-items: flex-end;
  justify-content: center;
}
.chat-overlay.active { display: flex; }

.chat-modal {
  width: 100%;
  max-width: 480px;
  height: 92vh;
  max-height: 780px;
  background: #E9EEF3;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}
@media (min-width: 520px) {
  .chat-modal { border-radius: 20px; margin-bottom: 20px; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-header {
  background: var(--dark);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.chat-header-title { font-weight: 700; font-size: 0.95rem; }
.chat-header-status { font-size: 0.72rem; color: var(--concrete); display: flex; align-items: center; gap: 5px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.chat-close {
  background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
}
.chat-close:hover { background: rgba(255,255,255,0.1); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.25s ease;
  white-space: pre-wrap;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-bot {
  align-self: flex-start;
  background: #fff;
  color: var(--dark);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-photo {
  align-self: flex-end;
  border-radius: 12px;
  overflow: hidden;
  max-width: 60%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.msg-photo img { width: 100%; display: block; }

.typing-indicator {
  align-self: flex-start;
  background: #fff;
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--concrete);
  animation: typingBounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* 入力エリア */
.chat-input-area {
  background: #fff;
  border-top: 1px solid #E2E5E9;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-text-row {
  display: flex;
  gap: 8px;
}
.chat-text-input {
  flex: 1;
  border: 1.5px solid #D5D9DE;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
}
.chat-text-input:focus { border-color: var(--accent); }
.chat-send-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send-btn:disabled { background: var(--concrete); cursor: not-allowed; }

.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-choice-btn {
  background: #F0F2F5;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.chat-choice-btn:active { background: var(--blue); color: #fff; }

.chat-upload-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F0F2F5;
  border: 1.5px dashed var(--concrete);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray);
}
.chat-upload-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-upload-preview img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  border: 1px solid #ddd;
}
.chat-action-buttons {
  display: flex;
  gap: 8px;
}
.chat-action-buttons button {
  flex: 1;
  padding: 11px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
}
.chat-action-buttons .btn-skip {
  background: #F0F2F5; color: var(--gray);
}
.chat-action-buttons .btn-next {
  background: var(--accent); color: #fff;
}

.chat-complete-box {
  text-align: center;
  padding: 8px 4px;
}
.chat-complete-box a {
  display: inline-block;
  margin: 6px 4px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.chat-complete-box .link-line { background: #06C755; color: #fff; }
.chat-complete-box .link-tel { background: var(--blue); color: #fff; }

/* ===== レスポンシブ（タブレット以上） ===== */
@media (min-width: 700px) {
  .hero-title { font-size: 2.6rem; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .buddy-grid { grid-template-columns: repeat(3, 1fr); }
  .dorm-grid { grid-template-columns: repeat(3, 1fr); }
  .apply-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================
   2026-08-30 LP改修 追加スタイル（既存の色・変数はそのまま拡張）
   ========================================================== */

/* 固定CTAぶんの余白（本文が隠れないように） */
body { padding-bottom: 76px; }

/* ===== HERO（写真背景版） ===== */
.hero--photo {
  background:
    linear-gradient(165deg, rgba(26,26,46,0.88) 0%, rgba(15,52,96,0.72) 45%, rgba(26,26,46,0.92) 100%),
    url("../media/photos/work.jpg") center / cover no-repeat;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-chip {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--light);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(3px);
}
.hero--photo .stat-num { font-size: 0.98rem; }
.hero-sublinks {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.hero-sublink {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.hero-sublink--tel {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--light);
}
.hero-sublink--line {
  background: #06C755;
  color: #fff;
}

/* ===== 動画（2本のみ） ===== */
.gallery-section { max-width: 640px; }
.video-main { max-width: 340px; margin: 0 auto 12px; }
.video-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 10px;
  margin-bottom: 24px;
}

/* ===== 職種と日給 ===== */
.jobs-table-wrap { overflow-x: auto; }
.jobs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(26,26,46,0.06);
  font-size: 0.82rem;
}
.jobs-table th, .jobs-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15,52,96,0.08);
}
.jobs-table thead th {
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  white-space: nowrap;
}
.jobs-table tbody tr:last-child th,
.jobs-table tbody tr:last-child td { border-bottom: none; }
.jobs-table td:first-child { font-weight: 700; white-space: nowrap; }
.jobs-pay { color: var(--accent); font-weight: 700; }
.jobs-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--gray);
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

/* ===== 寮 写真グリッド ===== */
.photo-grid {
  max-width: 640px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.photo-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-card figcaption {
  padding: 7px 10px;
  font-size: 0.7rem;
  color: var(--concrete);
}
/* 集合写真は小さめ・末尾 */
.photo-card--small img { aspect-ratio: 16 / 9; }
.photo-card--small { opacity: 0.92; }

/* ===== 1日の流れ ===== */
.day-section { max-width: 640px; }
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0 12px 4px;
  border-left: 3px solid rgba(15,52,96,0.15);
  margin-left: 8px;
  padding-left: 18px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7.5px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--light);
}
.timeline-time {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--blue);
  font-size: 0.95rem;
  min-width: 52px;
}
.timeline-text { font-size: 0.88rem; color: var(--dark); }
.timeline-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray);
}

/* ===== 募集要項・会社概要 ===== */
.req-table-wrap { overflow-x: auto; }
.req-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(26,26,46,0.06);
  font-size: 0.85rem;
}
.req-table th, .req-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15,52,96,0.08);
}
.req-table tr:last-child th,
.req-table tr:last-child td { border-bottom: none; }
.req-table th {
  width: 5.5em;
  background: rgba(15,52,96,0.05);
  color: var(--blue);
  font-family: var(--font-display);
  white-space: nowrap;
}
.req-table a { color: var(--blue); font-weight: 700; }
.company-intro {
  text-align: center;
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(15,52,96,0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(26,26,46,0.05);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 40px 15px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  position: relative;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 900;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 16px 15px;
  font-size: 0.86rem;
  color: var(--gray);
}

/* ===== FOOTER 追加 ===== */
.footer-social { margin-top: 10px; }
.footer-social a {
  color: var(--concrete);
  font-size: 0.78rem;
  text-decoration: underline;
}

/* ===== 固定CTA（スマホ下部・モーダルより下） ===== */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60; /* chat-overlay(100)より下 */
  display: flex;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(26,26,46,0.96);
  backdrop-filter: blur(6px);
  border-top: 2px solid var(--accent);
}
.fixed-cta-tel {
  flex: 0 0 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  color: var(--light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.fixed-cta-chat {
  flex: 1;
  min-height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(233,69,96,0.4);
}
.fixed-cta-chat:active { transform: scale(0.97); }

/* ===== 追加分レスポンシブ ===== */
@media (min-width: 700px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .hero--photo .stat-num { font-size: 1.05rem; }
}

/* ==========================================================
   2026-08-30 レビュー1対応 追加スタイル
   ========================================================== */

/* ----- 1. モバイル右端見切れ対策 ----- */
html, body { max-width: 100%; }
img, video { max-width: 100%; }

/* 1frトラックの中身が幅を押し広げないように（グリッド子要素のmin-width解除） */
.hero-stats > *,
.why-grid > *,
.buddy-grid > *,
.dorm-grid > *,
.apply-cards > *,
.video-duo > *,
.photo-grid > *,
.trust-photos > * { min-width: 0; }

/* 長い語でもはみ出さず折り返す */
.stat-num, .stat-label, .hero-sub, .section-lead,
.video-caption, .dorm-card p, .jobs-table td,
.req-table td { overflow-wrap: break-word; }
.stat-card { padding: 14px 6px; }

/* 狭幅ではステータ数字をやや縮小（切れるより折り返し優先） */
@media (max-width: 420px) {
  .hero--photo .stat-num { font-size: 0.88rem; }
  .stat-label { font-size: 0.64rem; }
  .hero-title { font-size: 1.8rem; }
}

/* ヒーローCTA・サブリンクは全文表示を維持しつつ幅内に収める */
.cta-primary:not(.cta-small) { font-size: clamp(0.92rem, 4.2vw, 1.05rem); }
.hero-sublink { min-width: 0; padding: 0 10px; white-space: nowrap; }
@media (max-width: 340px) {
  .hero-sublink { white-space: normal; font-size: 0.8rem; }
}

/* 職種表・要項表はモバイルで折り返して幅100%に収める（横スクロール回避） */
@media (max-width: 480px) {
  .jobs-table td:first-child { white-space: normal; }
  .jobs-table thead th { white-space: normal; }
  .jobs-table th, .jobs-table td { padding: 10px 8px; }
}

/* ----- 2. 信頼ブロック ----- */
.trust-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.trust-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,52,96,0.1);
  box-shadow: 0 4px 14px rgba(26,26,46,0.06);
}
.trust-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.trust-photo figcaption {
  padding: 7px 10px;
  font-size: 0.72rem;
  color: var(--gray);
}
.trust-facts {
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15,52,96,0.1);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(26,26,46,0.06);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-facts li {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  align-items: baseline;
}
.trust-facts li > span:last-child { min-width: 0; overflow-wrap: break-word; }
.trust-label {
  flex-shrink: 0;
  width: 5.5em;
  font-weight: 700;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.8rem;
}
.trust-facts a { color: var(--blue); font-weight: 700; }
@media (min-width: 700px) {
  .trust-photos { grid-template-columns: repeat(4, 1fr); }
}

/* ----- 3. 中間CTAバンド（動画ギャラリー末尾） ----- */
.cta-band {
  margin-top: 32px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
}
.cta-band-text {
  color: var(--light);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.cta-band-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.cta-band-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--light);
  white-space: nowrap;
  padding: 0 10px;
}
.cta-band-link--line {
  background: #06C755;
  border-color: #06C755;
  color: #fff;
}

/* ----- 4. 応募前に分かること ----- */
.fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.fact-list li {
  background: #fff;
  border: 1px solid rgba(15,52,96,0.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(26,26,46,0.05);
  padding: 12px 14px 12px 38px;
  font-size: 0.88rem;
  position: relative;
}
.fact-list li::before {
  content: "✔";
  position: absolute;
  left: 14px;
  color: var(--accent);
  font-weight: 900;
}
.flow-steps {
  background: #fff;
  border: 1px solid rgba(15,52,96,0.1);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(26,26,46,0.06);
  padding: 16px 18px;
}
.flow-steps-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.flow-list {
  margin: 0 0 10px;
  padding-left: 1.4em;
  font-size: 0.86rem;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flow-note { font-size: 0.76rem; color: var(--gray); }

/* ----- 5. 固定CTAの全文表示（420px以下では短縮ラベル「電話」「AI応募」へ切替） ----- */
.fixed-cta-chat { padding: 0 10px; white-space: nowrap; }
.fixed-cta-label-short { display: none; }
@media (max-width: 420px) {
  .fixed-cta-label-full { display: none; }
  .fixed-cta-label-short { display: inline; }
}

/* ==========================================================
   2026-08-30 オーナー修正対応: 動画ギャラリー廃止 → 2本のみ
   ========================================================== */
.video-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.video-duo .video-main { width: 100%; }
.video-badge--pr { background: var(--blue); }
@media (min-width: 600px) {
  .video-duo {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 20px;
  }
}

/* ==========================================================
   2026-08-30 追加MUST対応: 章背景の装飾動画（controlsなし・装飾専用）
   ========================================================== */
.has-bg-video {
  position: relative;
  overflow: hidden;
}
/* 動画(0) → 暗色オーバーレイ(1) → コンテンツ(2) の3層 */
.has-bg-video > * {
  position: relative;
  z-index: 2;
}
.has-bg-video .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.has-bg-video .bg-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(26,26,46,0.84) 0%, rgba(15,52,96,0.78) 45%, rgba(26,26,46,0.9) 100%);
}

/* 1日の流れ: 背景動画に合わせて暗色トーンへ（可読性確保） */
.day-section.has-bg-video {
  border-radius: var(--radius-lg);
}
.day-section.has-bg-video .section-title,
.day-section.has-bg-video .timeline-text { color: var(--light); }
.day-section.has-bg-video .section-lead,
.day-section.has-bg-video .timeline-note { color: var(--concrete); }
.day-section.has-bg-video .timeline-time { color: var(--gold); }
.day-section.has-bg-video .timeline-item { border-left-color: rgba(255,255,255,0.25); }
.day-section.has-bg-video .timeline-item::before { border-color: rgba(26,26,46,0.9); }

/* OSの「視差効果を減らす」設定時は動かさない（JS側でも再生停止する） */
@media (prefers-reduced-motion: reduce) {
  .has-bg-video .bg-video { animation: none; }
}

/* ==========================================================
   2026-08-30 モバイル右端見切れ 最終修正（<=420px 完全収容）
   ========================================================== */

/* 横スクロール自体を遮断（clip優先・非対応ブラウザはhiddenへフォールバック） */
html, body { overflow-x: hidden; overflow-x: clip; }

/* ヘッダー: ロゴ・電話が収まらない場合は折り返し許可 */
.header-inner { gap: 10px; flex-wrap: wrap; }
.logo { min-width: 0; }
.header-tel-short { display: none; }

/* 長い住所・電話・表セルはどこでも折り返し可 */
.trust-facts li > span:last-child,
.req-table td,
.company-intro,
.site-footer p { overflow-wrap: anywhere; }

/* 固定CTA: 全幅・子要素は縮小可 */
.fixed-cta { width: 100%; }
.fixed-cta-tel, .fixed-cta-chat { min-width: 0; }

/* テーブル・カード・メディアがビューポート幅を押し広げないように */
.jobs-table-wrap, .req-table-wrap { max-width: 100%; }
.video-wrap, .video-main { max-width: min(340px, 100%); }

@media (max-width: 420px) {
  /* ヘッダー電話: 表示は「電話」に短縮（番号はaria-label/titleに保持） */
  .header-inner { padding: 12px 14px; }
  .header-tel { font-size: 0.82rem; padding: 7px 12px; flex-shrink: 0; }
  .header-tel-full { display: none; }
  .header-tel-short { display: inline; }

  /* CTA行（ヒーロー・中間CTA）: 縦積みにして全文表示を保証 */
  .hero-sublinks,
  .cta-band-links { flex-direction: column; flex-wrap: wrap; }
  .hero-sublink,
  .cta-band-link { width: 100%; max-width: 100%; min-width: 0; white-space: normal; }

  /* 固定CTA: 短縮ラベル+小さめフォントで収容 */
  .fixed-cta { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .fixed-cta-tel { flex: 0 0 auto; padding: 0 14px; font-size: 0.85rem; }
  .fixed-cta-chat { font-size: 0.9rem; }

  /* 見出し・チップ類の微調整（折り返し優先） */
  .hero-chip { font-size: 0.74rem; padding: 5px 11px; }
  .cta-primary:not(.cta-small) { padding: 16px 12px; }
}

/* ==========================================================
   2026-08-30 スクリーンショット最終対応（<=520px で390px枠に収容）
   headless Chrome が innerWidth=500 を報告しつつ 390px 幅で
   撮影するため、520px以下ではLP全体を左寄せ390px枠に制限する。
   実機の狭い端末では min(100%, 390px) により全幅表示のまま。
   ========================================================== */
@media (max-width: 520px) {
  /* 主要ブロックを左端390px以内へ（コンテンツは隠さない） */
  .site-header,
  .header-inner,
  .hero,
  .section,
  .ai-buddy-section,
  .dorm-section,
  .site-footer {
    width: min(100%, 390px);
    max-width: 390px;
    margin-left: 0;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* 固定CTAも左端390px枠に合わせる */
  .fixed-cta {
    left: 0;
    right: auto;
    width: min(100%, 390px);
    max-width: 390px;
  }

  /* 短縮ラベルを520px以下でも発動（420px以下と同挙動） */
  .header-tel-full { display: none; }
  .header-tel-short { display: inline; }
  .fixed-cta-label-full { display: none; }
  .fixed-cta-label-short { display: inline; }

  /* CTA行は縦積みにして全文を390px枠内に収める */
  .hero-sublinks,
  .cta-band-links { flex-direction: column; flex-wrap: wrap; }
  .hero-sublink,
  .cta-band-link { width: 100%; max-width: 100%; min-width: 0; white-space: normal; }

  /* ヒーロー統計は1カラム縦積み（3列だとstat3が390px枠の外に出る） */
  .hero-stats { grid-template-columns: 1fr; }

  /* 長文はどこでも折り返し可（390px枠からのはみ出し防止） */
  .hero-sub, .section-lead, .stat-label,
  .trust-facts li > span:last-child,
  .req-table td, .jobs-table td,
  .company-intro, .site-footer p { overflow-wrap: anywhere; }
}
