/* Load Zen Kaku Gothic for headings */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&display=swap');

/* =====================
   主要変数・ベース設定
   ===================== */
:root {
  /* --- Brand colors requested by user --- */
  --base-black: #323232; /* base text color */
  --brand-blue: #2864f0; /* button & accent */
  --header-text: #323232; /* header text black */
  --header-contact: #1e4cb7; /* contact link in header */
  --footer-bg: #464343; /* footer background */
  --footer-text: #FFFFFF; /* footer text */
  --wave-blue: #007aff; /* wave divider base */
  --wave-opacity: 0.18; /* wave opacity to match reference */
  --section-gray: #f7f5f5; /* alternating gray */
  --accent: var(--brand-blue);
  --accent-hover: #1f56e6;
  /* 固定ヘッダー分の余白を一元管理（JSで自動更新されます） */
  --header-height: 80px;
  --sub-accent: #2864f0;
  --accent-bg: rgba(23,178,224,0.1);
  --icon-accent: #17B2E0;
  --main: #003366;
  --font-base: 'Noto Sans JP',sans-serif;
  --container-max: 1200px;
  --color-text: #1E2A38;
  --color-text-light: #4A5568;
  --color-accent: #17B2E0;
  --color-accent-hover: #2864f0;
  --color-accent-muted: rgba(23,178,224,0.1);
}

/* ===== Modern tokens & Tailwind-like utilities for interview article ===== */
:root {
  --radius-2xl: 1rem;
  --shadow-card: 0 12px 30px rgba(2,6,23,0.08);
  --ring-accent: rgba(23,178,224,0.22);
  --prose-max-width: 72ch;
  /* brand colors fallbacks (override in main theme if exists) */
  --color-accent: #2E43A8; /* teal-500 fallback */
  --color-accent-muted: rgba(14,165,164,0.08);
  --color-text: #323232;
  --color-text-light: #6b7280;
}

/* token aliases used by the article snippet */
.rounded-2xl { border-radius: var(--radius-2xl) !important; }
.shadow-card { box-shadow: var(--shadow-card) !important; }
.text-brand-600 { color: var(--color-accent) !important; }
.bg-brand-50 { background: var(--color-accent-muted) !important; }
.text-muted-foreground { color: var(--color-text-light) !important; }

/* simple focus ring utility (for keyboard accessibility) */
.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring-accent);
  border-radius: inherit;
}

/* subtle transitions for interactive elements */
.transition-smooth { transition: transform .18s ease, opacity .18s ease; }
.transition-smooth:hover { transform: translateY(-2px); }

/* prose adjustments to better match site typography */
.prose {
  max-width: var(--prose-max-width);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
}
.prose p { margin-top: 1rem; margin-bottom: 1rem; }
.prose h2 { margin-top: 1.25rem; margin-bottom: 0.75rem; font-weight:700; }

/* pull-quote / not-prose helpers */
.not-prose { max-width: none; }

/* small utilities used in snippet */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* aspect ratio fallback for environments without Tailwind's aspect utilities */
.aspect-3-4 { aspect-ratio: 3 / 4; }

/* accessible sr-only helper */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ensure image uses object-fit and preserves layout */
.img-cover { width: 100%; height: auto; object-fit: cover; display: block; }

/* ensure tag buttons look modern and subtle */
.tag-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .75rem; border-radius: 9999px;
  font-weight: 600; font-size: .85rem;
  background: var(--color-accent-muted); color: var(--color-accent);
  transition: transform .16s ease, opacity .16s ease;
}
.tag-pill:hover { transform: translateY(-2px); opacity: .95; }

/* small responsive tweak for interview hero spacing */
@media (max-width: 767.98px) {
  .interview-hero { gap: 1rem; }
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  scroll-behavior: smooth;
}

/* 固定ヘッダーがある場合、コンテンツがヘッダー下に隠れないように main に余白を追加 */
/* Keep header offset but increase specificity so Tailwind utilities can override when present */
main {
  padding-top: var(--header-height);
}

@media (max-width: 767.98px) {
  :root { --header-height: 70px; }
}
@media (min-width: 1200px) {
  :root { --header-height: 90px; }
}
h1 { font-size: 2.25rem; font-family: 'Zen Kaku Gothic New', 'Zen Kaku Gothic', var(--font-base); }
h2.section-title { font-size: 1.75rem; font-family: 'Zen Kaku Gothic New', 'Zen Kaku Gothic', var(--font-base); }
h3 { font-size: 1.25rem; font-family: 'Zen Kaku Gothic New', 'Zen Kaku Gothic', var(--font-base); }
h4, h5, h6 { font-family: 'Zen Kaku Gothic New', 'Zen Kaku Gothic', var(--font-base); }
small, .small { font-size: .875rem; }

/* =====================
   ボタン・リンク
   ===================== */
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn-outline-accent { border-color: var(--color-accent-hover); color: var(--color-accent-hover); }
.btn-outline-accent:hover { background: var(--color-accent-hover); color: #fff; }

/* =====================
   レイアウト・ユーティリティ
   ===================== */
.section-max { max-width: var(--container-max); }
.section-padding { padding: 6rem 0; }
.u-w-100 { width: 100% !important; }

/* =====================
   ナビゲーション・ヘッダー
   ===================== */
.nav-link { cursor: pointer; }
#mainNav.navbar {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  min-height: 48px;
  background: #003366 !important;
}
#mainNav .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 1.25rem;
  background: #003366 !important;
}
#mainNav .navbar-nav .nav-link {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 1rem;
}
#mainNav,
#mainNav .navbar-brand,
#mainNav .nav-link,
#mainNav .navbar-nav .nav-link {
  color: #323232 !important;
}
#mainNav .nav-link:hover,
#mainNav .navbar-brand:hover {
  color: var(--accent) !important;
}

/* ----- Navbar：トグラー表示強制 + モバイル時は縦並びに ----- */
/* トグラーアイコンが上書きされている場合のフォールバック表示 */
.navbar-toggler {
  border: 0;
  background: transparent;
  z-index: 1100; /* メニューより前面に */
}
.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.75)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
  width: 1.75rem;
  height: 1.75rem;
  background-repeat: no-repeat !important;
  background-position: center !important;
  display: inline-block;
}

/* モバイルで collapse を開いたときに nav を縦並びにする（強制） */
@media (max-width: 991.98px) {
  .navbar-collapse { width: 100%; }
  .navbar-collapse .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    gap: 0.25rem;
  }
  .navbar-collapse .nav-link {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ヘッダ全体のはみ出し防止 */
header.navbar .container { min-width: 0; overflow: visible; }
/* navbar がコンテンツより上に出るように（必要なら調整） */
header.navbar { z-index: 1080; }
/* =====================
   ヒーロー・セクション
   ===================== */
.hero {
  min-height: 65vh;
  background: var(--main);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}
.hero > .container {
  position: relative;
  z-index: 1;
}

/* Ensure hero-top-overlap sections have white text for readability over dark overlays/images */
.hero-top-overlap, .hero-top-overlap * {
  color: #ffffff !important;
}
.hero-top-overlap a { color: #ffffff !important; }
.hero-top-overlap .lead { color: rgba(255,255,255,0.95) !important; }

/* About（特徴）のリンク下線を消す：service-anchor をターゲットにする */
.service-anchor,
.origin-cards .service-anchor {
  text-decoration: none !important;
  color: inherit !important;
}
.service-anchor:hover,
.origin-cards .service-anchor:hover {
  text-decoration: none !important;
  color: var(--brand-blue) !important;
}
.service-anchor:focus {
  outline: 3px solid var(--ring-accent);
  outline-offset: 2px;
}

/* =====================
   会社概要・プロフィール
   ===================== */
.company-profile-list {
  background: transparent;
  border-radius: 1.2rem;
  box-shadow: none;
  padding: 0;
  max-width: 1000px;
  width: 100%;
}
.company-profile-list .profile-row {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.company-profile-list .profile-row:last-child { border-bottom: none; }
.company-profile-list .profile-label {
  color: #222 !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  min-width: 8em;
  text-align: left;
}
.company-profile-list .profile-value {
  color: #222 !important;
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-all;
}
@media (max-width: 900px) {
  .company-profile-list { max-width: 100%; }
}
@media (max-width: 600px) {
  .company-profile-list { padding: 0; max-width: 100%; }
  .company-profile-list .profile-label { font-size: 0.98rem; min-width: 6em; }
  .company-profile-list .profile-value { font-size: 1rem; }
}

/* =====================
   メンバー紹介（Our Team）
   ===================== */
.team-scroll-list {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) #f8f9fa;
}
.team-card {
  min-width: 260px;
  max-width: 320px;
  border-radius: 1.5rem;
  border: none;
  transition: transform 0.22s cubic-bezier(.4,1.5,.5,1), box-shadow 0.22s;
  position: relative;
  flex: 0 0 23%;
  margin-bottom: 1rem;
}
.team-card:hover {
  transform: scale(1.045) translateY(-4px);
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.13), 0 4px 16px 0 rgba(0,0,0,0.10);
}

/* =====================
   特徴・事業内容カードの立体感強化とボトムバー
   ===================== */
/* Target cards inside the features/services grid */
.origin-cards .card {
  position: relative;
  overflow: visible; /* allow shadow and bottom bar to show */
  /* stronger bottom-right shadow */
  box-shadow: 8px 18px 44px rgba(0,0,0,0.18), 2px 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.22s cubic-bezier(.4,1.5,.5,1), box-shadow 0.22s;
}
.origin-cards .card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 12px 26px 60px rgba(0,0,0,0.22), 4px 10px 26px rgba(0,0,0,0.10);
}

/* reserve space at bottom of card body so content doesn't overlap the bar */
.origin-cards .card .card-body { padding-bottom: 3.5rem; }

/* bottom bar: color and text per request */
.origin-cards .card::after {
  content: attr(data-bottom-text);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: var(--brand-blue);
  color: var(--section-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0 0 0.8rem 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
/* if no text is supplied via data attribute, still show a decorative bar */
.origin-cards .card:not([data-bottom-text])::after { content: ''; }

.member-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  background: #fff;
  margin: 0 auto 1rem auto;
  box-shadow: 0 2px 8px 0 rgba(23,178,224,0.08);
}
.member-tags { margin-top: 1rem; }
.member-tag {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border-radius: 1rem 1rem 1rem 0;
  padding: 0.25em 1em 0.25em 1em;
  font-size: 0.95em;
  font-weight: 700;
  margin-right: 0.3em;
  margin-bottom: 0.2em;
  letter-spacing: 0.02em;
}
@media (max-width: 991.98px) {
  .team-card { flex: 0 0 38%; min-width: 220px; }
}
@media (max-width: 767.98px) {
  .team-scroll-list { gap: 1.2rem !important; }
  .team-card { flex: 0 0 80%; min-width: 90vw; max-width: 95vw; }
  .member-img { width: 72px; height: 72px; }
}

/* =====================
   問い合わせフォーム
   ===================== */
.contact-card {
  color: #222 !important;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.08), 0 2px 8px 0 rgba(0,0,0,0.04);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 520px;
  margin: 0 auto;
}
.contact-card label,
.contact-card .form-control,
contact-card textarea,
.contact-card .form-group {
  color: #222 !important;
}
.contact-card .form-control,
.contact-card textarea {
  border: 1px solid #ccc;
  color: #222 !important;
  border-radius: 0.7rem;
}
.contact-card .form-control:focus,
.contact-card textarea:focus {
  border-color: var(--accent);
  color: #222 !important;
  box-shadow: 0 0 0 2px var(--accent)33;
}
.contact-card .invalid-feedback { color: #d9534f; }
.contact-card .btn-primary {
  background: var(--accent);
  border: none;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7rem 2.2rem;
  margin-top: 1.2rem;
}
.contact-card .btn-primary:hover { background: var(--accent-hover); }
.contact-card .privacy-link a {
  color: var(--accent);
  text-decoration: underline;
  font-size: 0.95rem;
}
.contact-card .required { color: #d9534f; font-size: 1em; }

/* =====================
   問題リスト・カード
   ===================== */
.problem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 1.5rem;
  justify-content: center;
}
.problem-card {
  background: linear-gradient(135deg, #181b2c 80%, #23244a 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18), 0 2px 8px 0 rgba(0,0,0,0.08);
  padding: 2.2rem 1.2rem 1.5rem 1.2rem;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.22s cubic-bezier(.4,1.5,.5,1), box-shadow 0.22s;
  overflow: hidden;
}
.problem-card:hover {
  transform: scale(1.045) translateY(-4px);
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.22), 0 4px 16px 0 rgba(0,0,0,0.10);
}
.problem-badge { display: none !important; }
.problem-text {
  color: #fff;
  font-size: 1.13rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0;
  z-index: 2;
}
.problem-card::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><circle cx='40' cy='40' r='2' fill='white' opacity='0.18'/><circle cx='60' cy='20' r='1.2' fill='white' opacity='0.12'/><circle cx='20' cy='60' r='1.5' fill='white' opacity='0.10'/></svg>") no-repeat center/contain;
  opacity: 0.7;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .problem-list { gap: 1.2rem 0.5rem; }
  .problem-card { padding: 1.3rem 0.7rem; min-height: 110px; }
}
.problem-list-horizontal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: nowrap;
}
.problem-list-horizontal .problem-card {
  min-width: 180px;
  max-width: 260px;
  margin: 0;
}
@media (max-width: 991.98px) {
  .problem-list-horizontal { flex-wrap: wrap; gap: 1.2rem 0.5rem; }
  .problem-list-horizontal .problem-card { min-width: 160px; max-width: 100%; }
}
@media (max-width: 767.98px) {
  .problem-list-horizontal { flex-direction: column; align-items: center; gap: 1rem; }
  .problem-list-horizontal .problem-card { width: 100%; min-width: 0; max-width: 400px; }
}

/* =====================
   フッター
   ===================== */
footer.bg-dark {
  /* user requested footer bg and text */
  background: var(--footer-bg) !important;
  color: var(--footer-text) !important;
}
footer.bg-dark a { color: var(--footer-text) !important; }
footer.bg-dark a:hover { opacity: .9; }

/* ===== Header override: white background, black text for white header only; keep dark header intact ===== */
/* Don't force .bg-dark to white — allow pages that use .bg-dark/.navbar-dark to show dark header */
header.navbar, #mainNav.navbar {
  background: #ffffff !important;
}
/* Only force dark text color for headers that are explicitly white */
header.navbar.bg-white .navbar-brand,
header.navbar.bg-white .nav-link,
header.navbar.navbar-light .navbar-brand,
header.navbar.navbar-light .nav-link {
  color: var(--base-black) !important;
}
/* For dark header variant, ensure links remain white (do not override) */
header.navbar.bg-dark .navbar-brand,
header.navbar.bg-dark .nav-link,
header.navbar.navbar-dark .navbar-brand,
header.navbar.navbar-dark .navbar-link {
  color: var(--header-inverse, #fff) !important;
}
/* target contact link by href (works with current markup) */
.navbar .nav-link[href$="contact.html"] { color: var(--header-contact) !important; }

/* ===== Section alternating backgrounds ===== */
/* default sections remain white; sections using section-alt or bg-light become gray */
section { background: #ffffff; }
section.section-alt, section.bg-light { background: var(--section-gray); }

/* ensure anchored sections are not hidden behind fixed header when scrolling */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

/* Ensure main content isn't hidden under fixed header: set a sensible default header height variable */
:root {
  --header-height: 72px;
}

/* ===== Wave divider styling ===== */
.wave-divider svg path { fill: var(--wave-blue); opacity: var(--wave-opacity); }
.wave-divider.inverted svg path { fill: var(--wave-blue); opacity: var(--wave-opacity); }

/* ===== Buttons & accents ===== */
.btn-accent, .btn.btn-accent, .btn-primary {
  background-color: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  color: #ffffff !important;
}
.btn-accent:hover, .btn.btn-accent:hover, .btn-primary:hover { background-color: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }

/* ===== Typography accents ===== */
/* base text color */
body, p, li { color: var(--base-black) !important; }
.text-accent { color: var(--brand-blue) !important; }



/* =====================
  その他
  ===================== */
img { max-width: 100%; height: auto; display: block; }

/* =====================
  共通ユーティリティ（全ページ共通化用）
  ===================== */
.u-bg-gray { background: #f8f9fa !important; }
.u-py-6 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
.u-py-7 { padding-top: 6.5rem !important; padding-bottom: 6.5rem !important; }
.section-title { font-size: 2rem; font-weight: bold; letter-spacing: 0.05em; color: var(--color-accent); }
@media (max-width: 767px) {
  .py-6 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-7 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .section-title { font-size: 1.4rem; }
}
.hero-section .btn { min-width: 180px; }
.u-mb-6 { margin-bottom: 3.5rem !important; }
.u-mt-6 { margin-top: 3.5rem !important; }
.u-mb-5 { margin-bottom: 2.5rem !important; }
.u-mt-5 { margin-top: 2.5rem !important; }
.u-mb-4 { margin-bottom: 1.5rem !important; }
.u-mt-4 { margin-top: 1.5rem !important; }
.u-mb-3 { margin-bottom: 1rem !important; }
.u-mt-3 { margin-top: 1rem !important; }
/* Added minimal .u- utilities that are referenced in HTML but were missing.
  Values chosen to match the existing scale used by other .u-mt-* and .u-gap-* rules.
  Keep !important to preserve the intended override behavior like the other utilities. */
.u-mt-2 { margin-top: 0.5rem !important; }
.u-gap-2 { gap: 0.5rem !important; }
.u-mt-12 { margin-top: 7rem !important; }
.u-gap-4 { gap: 2rem !important; }
.u-gap-5 { gap: 2.5rem !important; }
.u-g-5 > * { padding: 1.5rem !important; }
.member-list { gap: 2.5rem; }
.member-card { margin-bottom: 2.5rem; }
.step-card { margin-bottom: 2.5rem; }
.cta-gradient { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }

/* =====================
   Interviews: 一覧・詳細用 最小スタイル
   ===================== */
.interview-card:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.lead-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}
.interview-hero img { border-radius: 8px; }
.interview-hero .lead { font-size: 1.05rem; }
.interview-hero { gap: 28px; }

/* card spacing consistent with request */
.card-body { padding: 24px; }

/* =====================
   Global card lift on hover (applies to all .card)
   - Use low-specificity rules so per-section card rules (like .origin-cards) can still override if needed
   - Only apply on devices that have a fine pointer (mouse) and when user hasn't requested reduced motion
   ===================== */
@media (pointer: fine) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 220ms cubic-bezier(.4,1.5,.5,1), box-shadow 220ms ease;
    will-change: transform;
    /* base subtle shadow that can be enhanced by more specific selectors */
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(0) scale(1);
  }
  .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 60px rgba(0,0,0,0.16), 0 6px 22px rgba(0,0,0,0.08);
  }
}

/* On touch devices, avoid hover transforms but keep a subtle focus/active affordance */
@media (pointer: coarse), (hover: none) {
  .card:active, .card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  }
}

/* Safe hover for recruit tiles that use .tile-card (keeps display:flex from d-flex) */
@media (pointer: fine) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile-card {
    transition: transform 220ms cubic-bezier(.4,1.5,.5,1), box-shadow 220ms ease;
    will-change: transform;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(0) scale(1);
  }
  .tile-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 60px rgba(0,0,0,0.14), 0 6px 22px rgba(0,0,0,0.06);
  }
}

@media (pointer: coarse), (hover: none) {
  .tile-card:active, .tile-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  }
}

/* responsive grid: mobile 1 / tablet 2 / desktop 3 */
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ensure images reserve layout space */
img[width][height] { aspect-ratio: attr(width) / attr(height); }

/* small utility for truncating */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 案件フロー：中央画像用 */
.center-hero-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 0.25rem 0;
}
.center-hero-img {
  width: 100%;
  max-width: 1200px; /* 必要に応じて調整 */
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(10,10,10,0.12);
  border-radius: 8px;
}
@media (max-width: 767.98px) {
  .center-hero-img { max-width: 100%; border-radius: 6px; }
}
.feature-hero-img {
  width: 100%;
  max-width: 200px; /* デスクトップ表示幅、調整可 */
  height: auto;
  object-fit: contain;
  display: inline-block;
}
@media (max-width: 767.98px) {
  .feature-hero-img { max-width: 320px; }
}


/* Index hero: full-bleed にして画像は上端を優先し中央に縮小 */
#main-hero {
  position: relative;
  width: 100%; /* 画面幅いっぱい */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 85vh;
  background-image: url('../../images/hero-main3.png');
  background-repeat: no-repeat;
  background-position: center top !important; /* 上端を優先して中央寄せ */
  background-size: 100% auto; /* 変更: 幅を常に画面いっぱいにして高さは自動調整 */
  background-color: #ffffff;
  padding-top: 0;
  padding-bottom: 2.5rem;
  overflow: hidden; /* 横スクロールや余計なはみ出しを防ぐ */
}

/* モバイルでも同様に full-bleed と上寄せ表示 */
@media (max-width: 767.98px) {
  #main-hero {
    width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-image: url('../../images/hero-main3_responsiv.png');
    background-position: center top !important;
    background-size: 100% auto; /* モバイルも幅優先で縮小 */
    overflow: hidden;
  }
}

/* デスクトップ用 override（以前の left center を上書き） */
@media (min-width: 768px) {
  #main-hero {
    background-position: center top !important;
    background-size: contain;
  }
}

/* Hero: 背景を白にし、画像をヘッダー直下に配置 */
#main-hero {
  background-color: #ffffff; /* 背景を白で固定 */
  padding-top: 0; /* main の余白で全体のスペースは確保するためここは0に */
  padding-bottom: 2.5rem;
}


/* Hero: 右端から順に見えなくなる（横方向に連続して表示し、はみ出した分はクリップ） */
.hero {
  position: relative;
  overflow: hidden; /* 親で確実にクリップ */
}

/* 内部のテキスト類を横に並べて折り返さない */
.hero-inner {
  overflow: hidden;
  white-space: nowrap;
  display: block;
}

/* コンテンツブロックはインライン表示で右へ続く。幅が足りない場合は右側が切れる */
.hero-content {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  padding: 3rem 0; /* ヒーローの上下余白調整（必要に応じて調整） */
}

/* 見出し・リードは改行させずに右端で切れる（text-overflow で末尾省略も可） */
.hero-content h1,
.hero-content p {
  display: inline-block;
  white-space: nowrap;
  margin: 0;
  margin-right: 2rem; /* アイテム間の余白 */
  vertical-align: middle;
  max-width: 90vw; /* 安全弁：極端に長くならないよう */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スマホでは通常の縦積みに戻す（画像も切り替え） */
@media (max-width: 767.98px) {
  .hero-inner {
    white-space: normal;
    overflow: visible;
  }
  .hero-content,
  .hero-content h1,
  .hero-content p {
    display: block;
    white-space: normal;
    text-overflow: clip;
    max-width: 100%;
  }
  /* モバイルでは背景画像をレスポンシブ版に（既存の定義と整合） */
  #main-hero {
    background-image: url('../../images/hero-main3_responsiv.png');
    background-position: center top;
    background-size: 100% auto;
  }
}

/* デスクトップ時は背景を左寄せにして右が自然に切れる挙動に（必要なら変更） */
@media (min-width: 768px) {
  #main-hero {
    background-position: center top !important;
    background-size: contain;
  }
}

/* STEPカードの高さを均一化 */
.step-card {
  /* 全体を高さ揃え（親に h-100 を付けている前提） */
  min-height: 220px; /* 必要に応じて調整: 220px / 240px など */
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* カード本文を伸ばして中央寄せにする */
.step-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 中央寄せ */
  gap: 0.5rem;
  padding: 24px;
}

/* モバイルではコンテンツに合わせた高さに戻す */
@media (max-width: 767.98px) {
  .step-card {
    min-height: auto;
  }
  .step-card .card-body {
    justify-content: flex-start;
  }
}

/* Pull-quote image — 詳細カードと同等の幅に揃える */
.pull-quote-img {
  display: block;
  width: 100%;
  max-width: 100%; /* 亲コンテナ幅に合わせる */
  height: auto;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 0.5rem; /* 既存の rounded-lg と整合 */
  box-shadow: 0 6px 18px rgba(2,6,23,0.08);
}

/* どの画面幅でも親コンテナ幅に合わせる（不要な上限を削除） */
@media (max-width: 991.98px) {
  .pull-quote-img { max-width: 100%; }
}
@media (max-width: 767.98px) {
  .pull-quote-img { max-width: 100%; }
}

/* Solution images: カードサイズに合わせて全体が見えるようにする */
.solution-img {
  display: block;
  width: 100%;
  max-width: 320px;       /* 横幅上限を縮小 */
  height: auto !important;/* inline height を上書き */
  max-height: 220px !important; /* 縦の上限を少し縮める */
  object-fit: contain;    /* 画像をトリミングせずカード内に収める */
  background-color: #ffffff; /* 余白が見える場合に背景を白で埋める */
  border-radius: 8px;     /* 角丸 */
  margin: 0 auto;
}

/* モバイルでは少し小さくする */
@media (max-width: 767.98px) {
  .solution-section img,
  .solution-img {
    max-width: 240px;
    max-height: 180px !important;
    height: auto !important;
  }
}

/* =====================
   Solution セクション: カード化と間隔統一
   - 各 solution-section をカード風に見せる
   - カラム内パディングを揃え、画像を縦中央に配置
   - セクション間のマージンを一律化
   ===================== */
.solution-section {
  background: #ffffff; /* カード背景（必要なら微妙に薄いグレーに変更可） */
  border-radius: 12px;
  padding: 16px 18px; /* 横パディングを少し狭める */
  box-shadow: 0 12px 30px rgba(2,6,23,0.06);
  margin: 0 auto 2.5rem !important; /* 中央寄せにして下スペースを維持 */
  border: 1px solid rgba(16,24,40,0.04);
  max-width: 980px; /* セクション全体の横幅を制限（コンテナより小さめに） */
}

/* section-alt が付いている場合でもカードの背景を崩さない（必要に応じて調整） */
.solution-section.section-alt {
  background: #f9fbfd; /* ご希望があれば #ffffff に統一 */
}

/* カラム間の内部余白を揃える */
.solution-section > .col-md-6 {
  padding: 12px 14px;
}

/* 画像カラムを縦中央に整列 */
.solution-section .text-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

/* 画像をカード内で適切に拡大縮小（右カラムにぴったり） */
.solution-section .solution-img {
  margin: 0;
  width: 100%;
  max-width: 360px;
  max-height: 250px !important;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .solution-section {
    padding: 14px;
    margin-bottom: 1.25rem !important;
  }
  .solution-section > .col-md-6 {
    padding: 8px 6px;
  }
  /* モバイルでは画像を上に、テキストを下にしたい場合は flex-direction を切り替え可能 */
  .solution-section .text-center { padding-top: 6px; padding-bottom: 6px; }
}

/* 選択時 / フォーカス時の視覚スタイル */
.solution-section:focus {
  outline: none;
  box-shadow: 0 8px 28px rgba(2,6,23,0.10), 0 0 0 4px rgba(40,100,240,0.06);
  transform: translateY(-4px) scale(1.01);
}
.solution-section.is-selected {
  border-color: rgba(40,100,240,0.16);
  box-shadow: 0 18px 60px rgba(2,6,23,0.12), 0 6px 22px rgba(0,0,0,0.06);
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

/* クリック可能な行はポインタを示す */
.solution-section[role="button"] { cursor: pointer; }



/* Footer: コピーライトを確実に白くする */
footer p.small.mb-0 {
  color: #ffffff !important;
}
footer .container a,
footer .list-inline-item a {
  color: #ffffff !important;
}

/* 募集要項：カードタイトルを青（アクセントカラー）に */
#recruit-info .card-title {
  color: var(--color-accent);
}

/* 応急（もし --color-accent が未定義の場合のフォールバック） */
:root {
  --color-accent: #0d6efd; /* Bootstrap primary の青 */
}

.brand-logo {
  max-width: 160px;
  height: auto;
  display: inline-block;
}

/* navbar 内で幅超過を防ぐ（保険） */
.navbar .container { overflow: hidden; }
@media (max-width: 575.98px) {
  .brand-logo { max-width: 140px; }
}

/* interview: "最後に" カード用の背景（必要なら色は変更可） */
.final-card {
  background: linear-gradient(180deg, #eef6ff 0%, #e1efff 100%); /* 淡い青グラデ */
  border: 1px solid rgba(30,58,138,0.06);
}

/* 小画面でのパディング調整 */
@media (max-width: 767.98px) {
  .final-card { padding: 2rem; }
}

/* ===== VISION: Roadmap（改善版） =====
   - カード幅を広げ読みやすく
   - 見出しは必ず1行（省略）を維持
   - 横幅に収めつつ中央揃え、幅が足りない場合は折返す
*/
:root{
  --roadmap-card-max: clamp(280px, 20vw, 360px); /* カードを広げる（ここを調整） */
  --roadmap-gap: 0.6rem;
  --roadmap-arrow-w: 36px;
}

/* 中央揃え用ラッパー（幅を計算して中央に表示） */
.roadmap-wrapper{
  width: 100%;
  max-width: calc( (4 * var(--roadmap-card-max)) + (3 * var(--roadmap-arrow-w)) + 6 * var(--roadmap-gap) );
  margin: 0 auto;
  padding: 0 1rem;
}

/* 横レイアウト（デスクトップ） */
.roadmap-row{
  display: flex;
  align-items: center;
  justify-content: space-between; /* 要素を等間隔に配置 */
  gap: var(--roadmap-gap);
  flex-wrap: nowrap;
}

/* カード列（カード幅を制限） */
.roadmap-row > .col-md-2{
  flex: 0 0 var(--roadmap-card-max);
  max-width: var(--roadmap-card-max);
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  box-sizing: border-box;
}

/* 矢印カラムをコンパクトに */
.roadmap-row > .col-md-1{
  flex: 0 0 var(--roadmap-arrow-w);
  max-width: var(--roadmap-arrow-w);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* カード本体 */
.roadmap-card{
  width: 100%;
  max-width: var(--roadmap-card-max);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(16,24,40,0.06);
  background: #fff;
  box-shadow: 0 12px 30px rgba(2,6,23,0.06);
  text-align: center;
  margin: 0 auto;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 見出しは必ず1行にして省略（ユーザー要望） */
.roadmap-step{
  font-family: var(--font-base);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 説明文は複数行で読みやすく */
.roadmap-desc{
  font-family: var(--font-base);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  color: var(--color-text-light, #545454);
  white-space: normal;
  word-break: break-word;
  padding-top: 6px;
}

/* 矢印 */
.roadmap-step-arrow{
  font-size: 1.1rem;
  color: var(--color-accent, var(--brand-blue));
  line-height: 1;
  display: inline-block;
}

/* 幅が足りない時は折返して可読性優先（スマホや狭いウィンドウ） */
@media (max-width: 1100px){
  .roadmap-row{ flex-wrap: wrap; justify-content:center; gap:0.75rem 1rem; }
  .roadmap-wrapper{ max-width: 100%; }
}

/* モバイル：縦並び、左寄せにして読みやすく */
@media (max-width: 767.98px){
  .roadmap-row{ flex-direction: column; gap: 1rem; align-items: stretch; }
  .roadmap-row > .col-md-2,
  .roadmap-row > .col-md-1{ flex: 1 1 auto; max-width: 100%; padding: 0; }
  .roadmap-card{ text-align: left; padding: 12px; min-height: auto; align-items:flex-start; }
  .roadmap-step{ font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .roadmap-desc{ font-size: 0.95rem; color: var(--color-text-light); }
  .roadmap-step-arrow{ font-size: 1.2rem; margin-left: 0.3rem; }
}

/* 保険：説明が長すぎる場合は折り返して壊れないようにする */
.roadmap-card .roadmap-desc{ word-wrap: break-word; }
/* ===== Header overflow fix ===== */
/* ヘッダーのコンテナからはみ出す要素を隠す（ハンバーガーが外に出ないように） */
header.navbar { left: 0; right: 0; width: 100%; box-sizing: border-box; z-index:1080; }
header.navbar .container {
  overflow: hidden;         /* はみ出しを切る */
  padding-left: 1rem;       /* 小さめパディング */
  padding-right: 1rem;
  box-sizing: border-box;
}

/* トグラーボタンを確実に右端へ */
.navbar-toggler {
  margin-left: auto;        /* brand の右側に寄せる */
  z-index: 1100;
  position: relative;
}

/* ヘッダーのドロップダウンが切り取られる問題の修正 */
header.navbar { z-index: 1100; }                 /* ヘッダーを前面に */
header.navbar .container { overflow: visible; }  /* dropdown を切らない */

.navbar .dropdown-menu {
  z-index: 1200 !important;                      /* ドロップダウンを前面に */
  pointer-events: auto;
}

/* トグルがクリックできるように確実に cursor を指定 */
.navbar .dropdown-toggle { cursor: pointer; }




