:root {
  --blue: #0B4DBA;
  --blue-dark: #083A8C;
  --yellow: #FFC400;
  --ink: #1F2937;
  --sub: #4B5563;
  --muted: #6B7280;
  --line: #E5E7EB;
  --base: #FFFFFF;
  --paper: #F5F7FA;
  --photo: #DCE3EE;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { background: var(--blue); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--base); text-decoration: none; }
.nav a:hover { color: var(--yellow); }
.nav a[aria-current="page"] { color: var(--yellow); }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 6px; line-height: 1.2; text-align: center; }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.btn-yellow { background: var(--yellow); color: var(--ink) !important; }
.btn-yellow:hover { background: #FFD23F; }
.btn-ghost { border: 2px solid var(--base); color: var(--base) !important; padding: 13px 26px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-blue { background: var(--blue); color: var(--base) !important; }
.btn-blue:hover { background: var(--blue-dark); }

/* hero */
.hero { background: var(--blue); color: var(--base); padding: 72px 0 80px; overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.3; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { margin: 0; font-size: 17px; color: #DCE6F7; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 8px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats .num { font-size: 36px; font-weight: 900; color: var(--yellow); line-height: 1.1; }
.stats .num small { font-size: 15px; margin-left: 2px; }
.stats .lbl { font-size: 13px; color: #DCE6F7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { flex: 1 1 380px; min-width: 0; }
.hero-photo .ph { aspect-ratio: 4 / 3; background: #1E5ECB; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #DCE6F7; font-size: 14px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* section heading with yellow slash */
.h-slash { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 900; display: flex; align-items: center; gap: 12px; }
.h-slash::before { content: ""; width: 10px; height: 30px; background: var(--yellow); transform: skewX(-20deg); flex: 0 0 auto; }

/* list */
.list { background: var(--paper); padding: 72px 0; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 999px; border: 1px solid #D1D5DB; background: var(--base); color: var(--ink); cursor: pointer; min-height: 40px; }
.filters button[aria-pressed="true"] { background: var(--blue); color: var(--base); border-color: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

/* card */
.card { display: block; background: var(--base); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--line); }
.card[hidden] { display: none; }
a.card:hover { color: var(--ink); transform: translateY(-3px); transition: transform 0.15s; }
.card-photo { position: relative; aspect-ratio: 4 / 5; background: var(--photo); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.card-no { position: absolute; top: 10px; left: 10px; background: var(--base); color: var(--ink); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.card-job { position: absolute; left: 0; bottom: 0; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 900; padding: 4px 14px 4px 12px; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.card-name { font-size: 22px; font-weight: 900; line-height: 1.3; }
.card-company { font-size: 13px; color: var(--muted); }

/* companies */
.companies { padding: 56px 0; }
.companies .wrap { display: flex; flex-direction: column; gap: 24px; }
.company-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.company-list li { border: 1px solid var(--line); padding: 12px 20px; border-radius: 6px; font-size: 15px; font-weight: 500; }

/* apply */
.apply { padding: 0 0 80px; }
.apply-box { background: var(--blue); color: var(--base); border-radius: 12px; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.apply-box::after { content: ""; position: absolute; right: -40px; bottom: 0; width: 320px; height: 26px; background: var(--yellow); transform: skewX(-30deg); }
.apply-box h2 { margin: 0 0 8px; font-size: clamp(26px, 3.5vw, 34px); font-weight: 900; line-height: 1.4; }
.apply-box p { margin: 0; color: #DCE6F7; }

/* about */
.page-head { background: var(--blue); color: var(--base); padding: 64px 0; }
.page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); font-weight: 900; line-height: 1.35; }
.page-head h1 em { font-style: normal; color: var(--yellow); }
.prose { max-width: 780px; padding-top: 56px; padding-bottom: 80px; }
.prose p { font-size: 17px; }
.points { display: grid; gap: 28px; margin: 40px 0; padding: 0; list-style: none; counter-reset: p; }
.points li { counter-increment: p; border-left: 0; padding: 20px 24px; background: var(--paper); border-radius: 8px; }
.points h2 { margin: 0 0 4px; font-size: 20px; display: flex; align-items: center; gap: 12px; }
.points h2::before { content: "0" counter(p); background: var(--yellow); padding: 0 10px; border-radius: 3px; font-size: 14px; }
.points p { margin: 0; color: var(--sub); }

/* profile */
.profile { padding: 56px 0 80px; }
.profile-inner { display: flex; flex-wrap: wrap; gap: 48px; }
.profile-card { flex: 1 1 360px; min-width: 0; max-width: 460px; }
.profile-card .card-name { font-size: 32px; }
.profile-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.quote { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.6; }
.video { aspect-ratio: 9 / 16; max-width: 300px; background: var(--photo); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--blue); }
.facts dd { margin: 0; }
.back { font-weight: 700; }

/* footer */
.site-footer { background: var(--ink); color: var(--base); }
.footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.footer-inner img { height: 40px; width: auto; }
.site-footer a { color: #E5E7EB; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .apply-box { padding: 40px 24px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* footer banner */
.footer-banner { position: relative; background: #0B4DBA url(/assets/images/footer-banner.jpg) right center / auto 100% no-repeat; color: #FFFFFF; }
.footer-banner::before { content: ""; position: absolute; inset: 0; background: none; }
.footer-banner .wrap { position: relative; min-height: 260px; display: flex; align-items: center; }
.footer-banner p { margin: 0; font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; line-height: 1.7; max-width: 520px; }
@media (max-width: 640px) {
  .footer-banner::before { background: linear-gradient(180deg, rgba(11, 77, 186, 0.92) 0%, rgba(11, 77, 186, 0.75) 100%); }
  .footer-banner .wrap { min-height: 220px; }
}

/* hero marquee */
.hero-marquee { flex: 1 1 420px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 32s linear infinite; padding: 8px 0; }
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .card { width: 200px; flex: 0 0 auto; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-marquee { overflow-x: auto; }
}

/* article */
.article { border-top: 1px solid var(--line); padding-top: 8px; }
.article h2 { font-size: 22px; margin: 32px 0 8px; }
.article h3 { font-size: 18px; margin: 24px 0 6px; }
.article p { margin: 0 0 16px; font-size: 16px; }
.article img { border-radius: 8px; margin: 16px 0; }
.card-photo img + .card-no, .card-photo img ~ .card-job { z-index: 1; }
