/* ============================================================
   Boardriders Japan — Skeleton Stylesheet
   White / Black minimal, mobile-first responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Corporate site — black base, white text */
  --bg: #000000;
  --fg: #ffffff;
  --muted: #999999;
  --line: #2a2a2a;
  --line-strong: #ffffff;
  /* Frosted header background (semi-transparent so backdrop blur works) */
  --header-bg: rgba(255, 255, 255, 0.97);
  /* Placeholder fill for image cards */
  --visual-bg: #1a1a1a;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --max-w: 1200px;
  --header-h: 60px;

  --font-jp: "Poppins", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-en: "Poppins", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease;
}
a:hover { opacity: .6; }

ul, ol { list-style: none; margin: 0; padding: 0; }
dl, dt, dd { margin: 0; }
figure { margin: 0; }
blockquote { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.25;
}

p { margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: var(--space-7) var(--space-6);
  border-top: 1px solid var(--line);
}

.section__header {
  margin-bottom: var(--space-6);
}

.section__eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.section__title {
  font-family: var(--font-en);
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: .04em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}
/* Image variant — corporate top-left logo uses an image */
.site-header__logo--image img {
  height: 28px;
  width: auto;
  display: block;
}
@media (min-width: 1025px) {
  .site-header__logo--image img { height: 36px; }
}
/* preview.html only: two logos in DOM, swap by body theme */
.site-header__logo-recruit { display: none; }
body.recruit .site-header__logo-corp { display: none; }
body.recruit .site-header__logo-recruit { display: block; }
/* Corporate hamburger: show on mobile, hide on desktop */
body:not(.recruit) .nav-toggle { display: none; }
body:not(.recruit) .nav-toggle-button span { background: #111111; }
@media (max-width: 1024px) {
  body:not(.recruit) .nav-toggle-button { display: inline-flex !important; }
}

/* preview.html only: recruit nav has data-nav attribute and no toggle button,
   so force it to render inline (same pattern as corporate) regardless of theme */
body.recruit [data-nav].site-nav {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: transparent;
  overflow: visible;
  z-index: auto;
}
body.recruit [data-nav].site-nav .site-nav__list {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  font-size: 11px;
  letter-spacing: .08em;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body.recruit [data-nav].site-nav .site-nav__list::-webkit-scrollbar { display: none; }
body.recruit [data-nav].site-nav .site-nav__list li { white-space: nowrap; }
@media (min-width: 1025px) {
  body.recruit [data-nav].site-nav .site-nav__list {
    overflow: visible;
    font-size: 12px;
    gap: var(--space-4);
    letter-spacing: .12em;
  }
}

/* Corporate nav: white drawer on mobile; inline on desktop */
body:not(.recruit) .site-nav {
  background: rgba(255, 255, 255, 0.97);
}
@media (min-width: 1025px) {
  body:not(.recruit) .nav-toggle-button { display: none; }

  body:not(.recruit) .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    overflow: visible;
    z-index: auto;
  }
  body:not(.recruit) .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    padding: 0;
    font-size: 12px;
    letter-spacing: .12em;
    overflow: visible;
  }
  body:not(.recruit) .site-nav__list::-webkit-scrollbar { display: none; }
  body:not(.recruit) .site-nav__list li { white-space: nowrap; }
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
  overflow-y: auto;
  z-index: 90;
}
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: .08em;
}

/* Hamburger button (replaces input+label checkbox pattern for reliability) */
.nav-toggle-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  cursor: pointer;
  position: relative;
  z-index: 101;
  background: transparent;
  border: 0;
  padding: 0;
  /* tap-target padding via ::before */
}
.nav-toggle-button::before {
  content: "";
  position: absolute;
  top: -13px;
  left: -13px;
  right: -13px;
  bottom: -13px;
}
.nav-toggle-button span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--fg);
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
  pointer-events: none;
}

/* Drawer state controlled by body class (set via JS) */
.nav-toggle-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.is-drawer-open .site-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 100%),
    radial-gradient(circle at 20% 30%, #2a2a2a, #000 70%);
  z-index: -1;
  overflow: hidden;
}
.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
/* Subtle dark overlay for text legibility on top of image */
.hero--corporate .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
  z-index: 0;
  pointer-events: none;
}
/* Image-only hero — no text, no overlay needed; full image always visible
   The hero box always matches the image's intrinsic 16:9 ratio so there
   are NO letterbox bars (top/bottom or left/right) at any viewport width. */
.hero--image-only {
  /* Override .hero { min-height: 100svh } so hero adapts to image aspect */
  min-height: auto;
  /* Push hero below the fixed header so the image's top isn't covered. */
  margin-top: var(--header-h);
  /* Hero box is always exactly 16:9 of viewport width.
     Combined with object-fit: contain on a 16:9 source image,
     this means the image fills the box perfectly with zero gap. */
  aspect-ratio: 16 / 9;
  /* Fallback for browsers without aspect-ratio (Safari < 15) */
  height: 56.25vw;
  /* Solid bg only as a fallback during image load */
  background: #000;
}
@supports (aspect-ratio: 16 / 9) {
  .hero--image-only { height: auto; }
}
.hero--image-only .hero__bg { background: #000; }
.hero--image-only .hero__bg::after { display: none; }
.hero--image-only .hero__inner { display: none; }
.hero--image-only .hero__bg-image {
  /* contain instead of cover → image is always fully visible at any
     viewport aspect ratio. No edge cropping, no logo / brand panels lost. */
  object-fit: contain;
  object-position: center;
}

/* ---------- Hero carousel (index.html) ---------- */
.hero--carousel {
  min-height: auto;
  margin-top: var(--header-h);
  aspect-ratio: 16 / 9;
  height: 56.25vw;
  position: relative;
  overflow: hidden;
  background: #000;
}
@supports (aspect-ratio: 16 / 9) {
  .hero--carousel { height: auto; }
}
.hero-carousel { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0); }
.hero-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
}
.hero-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, transform .2s ease;
}
.hero-carousel__nav:hover { background: rgba(0, 0, 0, .65); }
.hero-carousel__nav svg { width: 20px; height: 20px; }
.hero-carousel__nav--prev { left: 16px; }
.hero-carousel__nav--next { right: 16px; }
.hero-carousel__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-carousel__dot[aria-selected="true"] {
  background: #fff;
  transform: scale(1.2);
}
@media (max-width: 767px) {
  .hero-carousel__nav { display: none; }
}
@media (min-width: 1025px) {
  .hero-carousel__nav { width: 52px; height: 52px; }
  .hero-carousel__nav--prev { left: 28px; }
  .hero-carousel__nav--next { right: 28px; }
  .hero-carousel__nav svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track { transition: none; }
}
.hero__inner { padding-block: var(--space-8); }
.hero__eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .35em;
  margin-bottom: var(--space-4);
  opacity: .85;
}
.hero__title {
  font-family: var(--font-en);
  font-size: clamp(48px, 14vw, 128px);
  letter-spacing: .02em;
  line-height: .95;
  margin-bottom: var(--space-5);
}
.hero__sub {
  font-family: var(--font-en);
  font-size: clamp(13px, 2.5vw, 16px);
  letter-spacing: .08em;
  line-height: 1.8;
  max-width: 36em;
  opacity: .92;
}

/* ---------- Message ---------- */
.message__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.message__photo {
  overflow: hidden;
  border-radius: 4px;
}
.message__photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.message__photo-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--visual-bg);
  border: 1px dashed var(--line);
}
.message__text p + p { margin-top: var(--space-3); }
.message__sign {
  margin-top: var(--space-5) !important;
  font-weight: 700;
  letter-spacing: .08em;
}

/* ---------- Profile ---------- */
.profile__list {
  border-top: 1px solid var(--line);
}
.profile__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.profile__row dt {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
}
.profile__row dd { font-size: 15px; }

/* ---------- Mission ---------- */
.mission__quote {
  border-left: 2px solid var(--fg);
  padding: var(--space-4) var(--space-5);
}
.mission__en {
  font-family: var(--font-en);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: var(--space-4);
  letter-spacing: .02em;
}
.mission__ja {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- Core Value ---------- */
.core-value__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.core-value__card {
  border: 1px solid var(--line);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 200px;
  transition: background .2s ease, color .2s ease;
}
.core-value__card:hover {
  background: var(--fg);
  color: var(--bg);
}
.core-value__num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  opacity: .7;
}
.core-value__heading {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: .02em;
  min-height: 2.6em;
}
.core-value__lead {
  font-size: 14px;
}

/* ---------- History (timeline) ---------- */
.timeline {
  position: relative;
  padding-left: var(--space-5);
  border-left: 1px solid var(--line);
}
.timeline__item {
  position: relative;
  padding-block: var(--space-3);
  padding-left: var(--space-3);
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-5) - 5px);
  top: calc(var(--space-3) + 6px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fg);
}
.timeline__year {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.timeline__event {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- Brand ---------- */
.brand__note {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  margin-bottom: var(--space-3);
  letter-spacing: .04em;
}
.brand__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.brand__card {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand__visual {
  aspect-ratio: 4 / 3;
  background: var(--visual-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand__visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  /* contain — image always fully visible regardless of its native aspect.
     Letterboxes via flex centering against --visual-bg if aspects differ. */
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}
.brand__card:hover .brand__visual img {
  transform: scale(1.04);
}
.brand__name {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: .12em;
  padding: var(--space-3) var(--space-4) 0;
}
.brand__lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  padding: var(--space-2) var(--space-4) var(--space-4);
}

/* ---------- Business ---------- */
.business__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.business__card {
  border: 1px solid var(--line);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.business__visual {
  aspect-ratio: 1 / 1;
  /* Transparent so the screen-blended white icon sits on the page bg */
  background: transparent;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.business__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: var(--space-3);
  transition: transform .4s ease;
  /* Black-on-white icon → white icon with no visible background:
     invert() turns it white-on-black, screen blend drops the black */
  filter: invert(1);
  mix-blend-mode: screen;
}
.business__card:hover .business__visual img {
  transform: scale(1.05);
}
/* Photo variant — real photographs, not the white-icon treatment */
.business__visual--photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.business__visual--photo img {
  object-fit: cover;
  padding: 0;
  filter: none;
  mix-blend-mode: normal;
}
.business__num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--muted);
}
.business__name {
  font-family: var(--font-en);
  font-size: 24px;
  letter-spacing: .04em;
}
.business__lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- CSR ---------- */
.csr__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.csr__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.csr__visual {
  aspect-ratio: 16 / 10;
  background: var(--visual-bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.csr__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.csr__card:hover .csr__visual img {
  transform: scale(1.04);
}
.csr__name {
  font-size: 18px;
  letter-spacing: .04em;
}
.csr__lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-6);
  margin-top: var(--space-7);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
}
.site-footer__logo {
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: .12em;
}
.site-footer__address,
.site-footer__copy {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- Adjust top spacing for fixed header ---------- */
main > section:first-child { margin-top: 0; }
/* Carousel/image heroes must clear the fixed header — restore margin-top
   (specificity tie broken by source order, this rule appears later and wins) */
main > section.hero--carousel,
main > section.hero--image-only { margin-top: var(--header-h); }
section[id] { scroll-margin-top: var(--header-h); }

/* Subpage wrapper: leaves room for fixed header, drops the top divider on the first section */
.page { padding-top: var(--header-h); }
.page > .section:first-child { border-top: 0; }

/* Active nav state */
.site-nav__list a[aria-current="page"] {
  font-weight: 700;
}

/* Nav RECRUIT CTA */
.site-nav__cta a {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 8px 16px;
  font-weight: 600;
  letter-spacing: .15em;
}
.site-nav__cta a[aria-current="page"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Nav dropdown group (OTHER) */
.site-nav__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.site-nav__group-label {
  display: block;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}
.site-nav__sub {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid var(--line);
  font-size: 16px;
}
.site-nav__group:has(a[aria-current="page"]) .site-nav__group-label {
  color: #4db8c4;
  font-weight: 700;
}

/* ============================================================
   Recruit pages
   ============================================================ */

/* Recruit hero variant — slightly shorter than corporate hero */
.hero--recruit { min-height: 70svh; }
.hero--recruit .hero__bg {
  background:
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.7) 100%),
    radial-gradient(circle at 70% 40%, #2a2a2a, #000 75%);
}

/* News list (新着情報) */
.news-list {
  border-top: 1px solid var(--line);
}
.news-list__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.news-list__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}
.news-list__date { font-weight: 600; }
.news-list__tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .15em;
}
.news-list__title { font-size: 15px; line-height: 1.7; }
.news-list__link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}
.news-list__link:hover { opacity: .65; }
.news-list__more { margin-top: var(--space-5); text-align: right; }

/* News archive / detail */
.news-archive__list { margin-bottom: var(--space-8); }
.news-article {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--line);
}
.news-article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.news-article__date { font-weight: 600; }
.news-article__tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .15em;
}
.news-article__title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--space-4);
}
.news-article__body { font-size: 15px; line-height: 1.9; color: var(--text); }
.news-article__body p + p { margin-top: var(--space-4); }
.news-archive__back { margin-top: var(--space-6); text-align: center; }

/* Jobs (求人情報) */
.jobs__group { margin-bottom: var(--space-7); }
.jobs__group:last-child { margin-bottom: 0; }
.jobs__group-title {
  font-family: var(--font-en);
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: .08em;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--fg);
  margin-bottom: var(--space-5);
}
.jobs__group-sub {
  display: inline-block;
  margin-left: var(--space-3);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--muted);
  font-family: var(--font-en);
  font-weight: 400;
}
.jobs__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.jobs__item {
  border: 1px solid var(--line);
  padding: var(--space-5);
}
.jobs__item-title {
  font-size: 18px;
  margin-bottom: var(--space-3);
}
.jobs__item-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  font-size: 13px;
  margin-bottom: var(--space-3);
}
.jobs__item-meta dt {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
}
.jobs__item-meta dd { color: #333; }
.jobs__item-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.jobs__item-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  padding: 10px 22px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #ffffff;
  background: #4db8c4;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  align-self: flex-start;
}
.jobs__item-cta:hover {
  background: #7fc4ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(170, 217, 222, .3);
  opacity: 1;
}

/* Interview (社員インタビュー) */
.interview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.interview__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border: 1px solid var(--line);
}
.interview__visual {
  aspect-ratio: 4 / 3;
  background: var(--visual-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.interview__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.interview__body { padding: var(--space-4) var(--space-4) var(--space-5); }
.interview__more {
  margin-top: var(--space-3);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .15em;
  color: #4db8c4;
  font-weight: 700;
}
.interview__card--linked {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border: 1px solid var(--line);
}
.interview__card--linked .interview__visual { border-bottom: 1px solid var(--line); }
.interview__card--linked .interview__visual img {
  transition: transform .4s ease;
}
.interview__card--linked:hover .interview__visual img {
  transform: scale(1.05);
}
.interview__role {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.interview__name {
  font-size: 18px;
  margin-bottom: var(--space-3);
}
.interview__quote {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  border-left: 2px solid var(--fg);
  padding-left: var(--space-3);
}

/* Workplace (職場環境) */
.workplace__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.workplace__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.workplace__visual {
  aspect-ratio: 16 / 10;
  background: var(--visual-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 4px;
}
.workplace__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.workplace__card:hover .workplace__visual img {
  transform: scale(1.04);
}
.workplace__title { font-size: 17px; }
.workplace__lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

/* Categories (職種紹介) */
.categories__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.categories__item {
  border: 1px solid var(--line);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-2);
  transition: background .2s ease, color .2s ease;
}
.categories__item:hover {
  background: var(--fg);
  color: var(--bg);
}
.categories__num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  opacity: .6;
}
.categories__name {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: .04em;
}
.categories__name-ja {
  font-size: 14px;
  margin-bottom: var(--space-2);
}
.categories__lead {
  font-size: 13px;
  line-height: 1.9;
}
.categories__interview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #4db8c4;
  text-decoration: none;
  border: 1px solid #4db8c4;
  border-radius: 999px;
  padding: 7px 16px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.categories__interview:hover {
  background: #4db8c4;
  color: #ffffff;
}
/* Keep the CTA legible when the whole card flips to the orange hover state */
body.recruit .categories__item:hover .categories__interview {
  border-color: #ffffff;
  color: #ffffff;
}
body.recruit .categories__item:hover .categories__interview:hover {
  background: #ffffff;
  color: #4db8c4;
}

/* Recruit landing — combined hero + news on one page,
   keep section divider hidden when first under the hero */
.hero + .section { border-top: 0; }

/* ---------- Hover animation — jobs / interview cards ---------- */
.jobs__item,
.interview__card,
.jobs__item-title,
.jobs__item-meta dt,
.jobs__item-meta dd,
.jobs__item-lead,
.interview__role,
.interview__name,
.interview__quote,
.interview__visual {
  transition:
    background-color .3s ease,
    color .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .3s ease;
}

.jobs__item:hover,
.interview__card:hover {
  background: #4db8c4;
  color: #ffffff;
  border-color: #4db8c4;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(170, 217, 222, .25);
}

.jobs__item:hover .jobs__item-title,
.jobs__item:hover .jobs__item-meta dt,
.jobs__item:hover .jobs__item-meta dd,
.jobs__item:hover .jobs__item-lead,
.interview__card:hover .interview__role,
.interview__card:hover .interview__name,
.interview__card:hover .interview__quote {
  color: #ffffff;
}

.interview__card:hover .interview__quote {
  border-left-color: #ffffff;
}

.interview__card:hover .interview__visual {
  background: #5aa8b0;
}
.interview__card:hover .interview__more {
  color: #ffffff;
}

/* ============================================================
   Recruit theme override — warm orange & white
   Activated by <body class="recruit">
   ============================================================ */
body.recruit {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --line: #e5e5e5;
  --line-strong: #4db8c4;
  --header-bg: rgba(255, 255, 255, 0.95);
  --visual-bg: #f5f5f5;
}
body.recruit .hero__bg {
  background:
    linear-gradient(180deg, rgba(170, 217, 222, .18) 0%, rgba(90, 168, 176, .65) 100%),
    radial-gradient(circle at 70% 40%, #c5e9ec, #5aa8b0 75%);
}
/* Video hero must stay black so the gradient doesn't flash before autoplay */
body.recruit .hero--video .hero__bg { background: #000; }
body.recruit .section__eyebrow { color: #4db8c4; }
body.recruit .site-nav__list a[aria-current="page"] { color: #4db8c4; }
body.recruit .site-nav__cta a {
  background: #4db8c4;
  color: #ffffff;
  border-color: #4db8c4;
}
body.recruit .news-list__tag {
  border-color: #4db8c4;
  color: #4db8c4;
}
body.recruit .jobs__group-title { border-bottom-color: #4db8c4; }
body.recruit .interview__quote { border-left-color: #4db8c4; }
/* Note: .interview__visual and .workplace__visual now use var(--visual-bg)
   which body.recruit overrides to #f5f5f5 above. */
body.recruit .categories__item:hover {
  background: #4db8c4;
  color: #ffffff;
}
body.recruit .site-nav__sub {
  background: #ffffff;
}

/* ---------- Organization Data (組織データ) ---------- */
/* ---------- Organisation Data (グラフ版) ---------- */
.org-data { display: flex; flex-direction: column; gap: var(--space-6); }

.org-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.org-group__title {
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
  background: rgba(170,217,222,.06);
}
.org-group__cols {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .org-group__cols--4 { grid-template-columns: repeat(2, 1fr); }
  .org-group__cols--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .org-group__cols--4 { grid-template-columns: repeat(4, 1fr); }
}

.org-block {
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}
.org-block:last-child { border-right: none; }
@media (min-width: 600px) {
  .org-group__cols--3 .org-block:nth-child(3n) { border-right: none; }
  .org-group__cols--4 .org-block:nth-child(2n) { border-right: none; }
}
@media (min-width: 960px) {
  .org-group__cols--4 .org-block:nth-child(2n) { border-right: 1px solid var(--line); }
  .org-group__cols--4 .org-block:nth-child(4n) { border-right: none; }
}

.org-block__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: var(--space-1);
}
.org-block__big {
  font-family: var(--font-en);
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--fg);
}
.org-block__unit {
  font-size: .45em;
  font-family: var(--font-jp);
  font-weight: 700;
  margin-left: 2px;
}
.org-block__sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* Donut chart */
/* Pie chart */
.org-pie {
  width: 130px;
  height: 130px;
}
.org-pie--sm { width: 110px; height: 110px; }

/* Legend */
.org-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
}
.org-legend__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.org-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Age sub-rows */
.org-age-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: fit-content;
  margin-top: var(--space-2);
}
.org-age-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}
.org-age-icon {
  width: 36px;
  height: 36px;
  color: var(--muted);
  flex-shrink: 0;
}
.org-age-info__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.org-age-info__val {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}
.org-age-info__val span { font-size: 14px; font-family: var(--font-jp); font-weight: 700; }

/* People icon */
.org-people-icon {
  width: 80px;
  height: 54px;
  color: var(--muted);
  margin-top: var(--space-2);
}

/* Callout badge */
.org-callout {
  display: inline-block;
  border: 1px solid #4db8c4;
  color: #5aa8b0;
  background: rgba(170,217,222,.1);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  margin-top: var(--space-1);
}

/* keep stat-card__callout for backward compat */
.stat-card__callout {
  display: inline-block;
  background: rgba(170,217,222,.1);
  color: #5aa8b0;
  border: 1px solid #4db8c4;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
}

/* ============================================================
   Recruit landing — PAL-inspired layout
   ============================================================ */

/* Hero variation for landing: bigger headline + photo bg + MOVIE button */
.hero--landing { min-height: 100svh; position: relative; overflow: hidden; }
.hero--landing .hero__bg {
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.32) 60%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse at 30% 40%, #c5e9ec, #5aa8b0 75%);
}

/* Video hero — full-bleed autoplay loop on RECRUIT TOP */
.hero--video .hero__bg {
  /* Override the orange gradient — video shows through */
  background: #000;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero__video.is-playing {
  opacity: 1;
}
/* Subtle dark overlay for text legibility on top of the video */
.hero--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero--video .hero__inner { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero--video .hero__bg { background: url("../assets/images/hero-recruit-poster.jpg") center/cover #000; }
}
.hero--landing .hero__lead {
  font-family: var(--font-jp);
  font-size: clamp(13px, 2.5vw, 17px);
  font-weight: 500;
  margin-bottom: var(--space-3);
  letter-spacing: .12em;
  opacity: .92;
}
.hero--landing .hero__title {
  font-size: clamp(56px, 14vw, 144px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: 0;
  margin-bottom: var(--space-4);
}
.hero--landing .hero__title em {
  font-style: normal;
  font-size: .55em;
  font-weight: 600;
  margin: 0 .15em;
  vertical-align: middle;
}
/* Featured 2x2 cards (linking to subpages) */
.featured { padding-block: var(--space-7) var(--space-6); }
.featured__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
.featured__card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  display: block;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.featured__card-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.65) 100%),
    radial-gradient(circle at 30% 30%, #c5e9ec, #2d7a82 80%);
  z-index: -1;
  transition: transform .4s ease;
}
.featured__card:hover .featured__card-bg { transform: scale(1.05); }
.featured__card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #4db8c4;
  padding: 5px 12px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}
.featured__card-title {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  font-family: var(--font-en);
  font-size: clamp(20px, 4.5vw, 30px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.1;
}

/* Recruit section with big number watermark */
.recruit-section { position: relative; padding-block: var(--space-8) var(--space-7); overflow: hidden; }
.recruit-section__num {
  font-family: var(--font-en);
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(170,217,222,.10);
  position: absolute;
  top: 20px;
  left: -8px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.recruit-section__inner { position: relative; z-index: 1; }
.recruit-section__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.recruit-section__title {
  font-family: var(--font-en);
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.recruit-section__sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.recruit-section__lead {
  font-size: 14px;
  line-height: 1.9;
  max-width: 640px;
  color: var(--fg);
  margin-bottom: var(--space-6);
}

/* Interview preview (3 photos linking to interview page) */
/* Carousel wrapper — provides positioning context for dots */
.interview-carousel {
  position: relative;
}
.interview-preview {
  /* Horizontal scroll slider — 3 cards visible, auto-rotates with dot navigation */
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Scrollbar hidden — dots provide visual indicator */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.interview-preview::-webkit-scrollbar { display: none; }

/* Dot indicators */
.interview-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.interview-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(170, 217, 222, .25);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.interview-carousel__dot:hover { background: rgba(170, 217, 222, .55); }
.interview-carousel__dot.is-active {
  background: #4db8c4;
  transform: scale(1.35);
}
.interview-carousel__dot:focus-visible {
  outline: 2px solid #4db8c4;
  outline-offset: 3px;
}
.interview-preview > li {
  /* Mobile: ~1.3 cards visible (hint at next) */
  flex: 0 0 75%;
  scroll-snap-align: start;
  list-style: none;
}
.interview-preview__card { display: block; text-decoration: none; color: inherit; }
.interview-preview__photo {
  aspect-ratio: 4 / 5;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  margin-bottom: var(--space-3);
  border-radius: 6px;
  transition: transform .3s ease;
  overflow: hidden;
}
.interview-preview__card:hover .interview-preview__photo { transform: translateY(-4px); }
.interview-preview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.interview-preview__card:hover .interview-preview__photo img { transform: scale(1.05); }
.interview-preview__role {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .15em;
  color: #4db8c4;
  font-weight: 700;
  margin-bottom: 4px;
}
.interview-preview__name { font-size: 18px; font-weight: 700; margin: 0 0 var(--space-2); }
.interview-preview__desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* Daily schedule + Questionnaire (two cards) */
.daily-q {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.daily-q__card { display: block; text-decoration: none; color: inherit; }
.daily-q__photo {
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  margin-bottom: var(--space-3);
  border-radius: 6px;
}
.daily-q__title {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: var(--space-1);
}
.daily-q__desc { font-size: 14px; color: var(--muted); }

/* Big orange JOB INFO section */
.recruit-jobinfo {
  background: #4db8c4;
  color: #fff;
}
.recruit-jobinfo .recruit-section__num { color: rgba(255,255,255,.18); }
.recruit-jobinfo .recruit-section__eyebrow { color: rgba(255,255,255,.85); }
.recruit-jobinfo .recruit-section__title,
.recruit-jobinfo .recruit-section__lead { color: #fff; }
.recruit-jobinfo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
.recruit-jobinfo__visual {
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: hidden;
}
.recruit-jobinfo__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Workplace teaser */
.recruit-workplace-section {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  grid-template-columns: 1fr;
}
.recruit-workplace-section__photo {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
}
.recruit-workplace-section__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Read-more pill button */
.btn-readmore {
  display: inline-block;
  background: #4db8c4;
  color: #fff;
  padding: 14px 36px;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .15em;
  font-size: 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity .2s ease;
}
.btn-readmore:hover { opacity: .85; }
.btn-readmore--inverse { background: #fff; color: #4db8c4; }
.news-list__more .btn-readmore { background: #fff; color: #111; }
.news-archive__back .btn-readmore { background: #fff; color: #111; }

/* Entry buttons (4) */
.entry { padding-block: var(--space-7) var(--space-6); }
.entry__intro {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.entry__buttons {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}
.entry__button {
  display: block;
  background: #4db8c4;
  color: #fff;
  text-align: center;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity .2s ease, transform .2s ease;
}
.entry__button:hover { opacity: .9; transform: translateY(-2px); }

/* SNS section */
.sns { padding-block: var(--space-7); text-align: center; }
.sns__title {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--fg);
  margin-bottom: var(--space-4);
  font-weight: 700;
}
.sns__icons {
  display: inline-flex;
  justify-content: center;
  gap: var(--space-4);
}
.sns__icon {
  width: 48px;
  height: 48px;
  background: #4db8c4;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: transform .2s ease;
}
.sns__icon:hover { transform: scale(1.1); opacity: 1; }

/* Black footer variant on recruit landing */
body.recruit .site-footer--landing {
  background: #1a1a1a;
  color: #fff;
  border-top: 0;
  padding-block: var(--space-7);
  margin-top: 0;
}
body.recruit .site-footer--landing .site-footer__logo {
  font-size: 14px;
  margin-bottom: var(--space-3);
}
body.recruit .site-footer--landing .site-footer__address,
body.recruit .site-footer--landing .site-footer__copy { color: rgba(255,255,255,.6); }

/* ---------- Other systems (その他の人事制度) ---------- */
.other-systems {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.other-system {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
  isolation: isolate;
}
.other-system::before {
  content: "";
  position: absolute;
  inset: 5%;
  background: radial-gradient(circle at center,
    rgba(170, 217, 222, .22) 0%,
    rgba(170, 217, 222, .08) 35%,
    rgba(170, 217, 222, 0) 65%);
  z-index: -1;
}
.other-system__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #4db8c4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.other-system__icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}
.other-system__name {
  font-size: 22px;
  margin-bottom: var(--space-3);
  letter-spacing: .04em;
}
.other-system__lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 320px;
  margin-inline: auto;
}

/* ---------- Events (社内イベント) ---------- */
.events__intro {
  margin-bottom: var(--space-6);
  display: grid;
  gap: var(--space-2);
}
.events__intro li {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.9;
  padding-left: var(--space-4);
  position: relative;
}
.events__intro li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #4db8c4;
  font-size: 18px;
  line-height: 1;
  top: 6px;
}
.events__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.event-card {
  padding: var(--space-5);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}
.event-card--a { background: #f8f8f8; }
.event-card--b { background: #f2f2f2; }
.event-card--c { background: #ececec; }
.event-card__title {
  font-family: var(--font-en);
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--fg);
  padding-bottom: var(--space-2);
  align-self: center;
}
.event-card__visual {
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, .55);
  border-radius: 12px;
}
.event-card__freq {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: .04em;
}

/* ============================================================
   Tablet  (>= 641px)
   ============================================================ */
@media (min-width: 641px) {
  body { font-size: 16px; }

  .section { padding-block: var(--space-8) var(--space-7); }
  .section__header { margin-bottom: var(--space-7); }

  .message__body {
    flex-direction: row;
    gap: var(--space-7);
    align-items: flex-start;
  }
  .message__photo {
    flex: 0 0 38%;
    max-width: 380px;
  }
  .message__text { flex: 1; }

  .profile__row {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-5);
    padding: var(--space-4) var(--space-2);
  }
  .profile__row dt {
    flex: 0 0 180px;
    padding-top: 4px;
  }
  .profile__row dd { flex: 1; }

  .core-value__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .brand__grid { grid-template-columns: repeat(2, 1fr); }

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

  .csr__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  /* Recruit grids — tablet */
  .jobs__list { grid-template-columns: repeat(2, 1fr); }
  .interview__grid { grid-template-columns: repeat(2, 1fr); }
  .workplace__grid { grid-template-columns: repeat(2, 1fr); }
  .categories__list { grid-template-columns: repeat(2, 1fr); }
  .org-data { grid-template-columns: repeat(2, 1fr); }
  .other-systems { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .events__list { grid-template-columns: repeat(3, 1fr); }

  /* PAL-style recruit landing — tablet */
  .featured__grid { grid-template-columns: repeat(2, 1fr); }
  /* Desktop: exactly 3 cards visible — 4th becomes accessible via horizontal scroll */
  .interview-preview > li {
    flex: 0 0 calc((100% - var(--space-4) * 2) / 3);
  }
  .daily-q { grid-template-columns: repeat(2, 1fr); }
  .entry__buttons { grid-template-columns: repeat(2, 1fr); }
  .recruit-workplace-section { grid-template-columns: 1.2fr 1fr; }
  .recruit-jobinfo__grid { grid-template-columns: 1.2fr 1fr; }

  .jobs__item-meta { grid-template-columns: 100px 1fr; row-gap: var(--space-2); column-gap: var(--space-3); }
}

/* ============================================================
   Desktop  (>= 1025px)
   ============================================================ */
@media (min-width: 1025px) {
  :root { --header-h: 72px; }

  .site-header__inner { padding-inline: 0; }

  .nav-toggle-button { display: none; }

  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    overflow: visible;
    z-index: auto;
  }
  .site-nav__list {
    flex-direction: row;
    gap: var(--space-5);
    padding: 0;
    font-size: 13px;
    letter-spacing: .12em;
  }

  .core-value__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline {
    padding-left: var(--space-7);
  }
  .timeline__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-5);
    align-items: baseline;
  }
  .timeline__year { margin-bottom: 0; }

  /* Recruit grids — desktop */
  .interview__grid { grid-template-columns: repeat(3, 1fr); }
  .workplace__grid { grid-template-columns: repeat(3, 1fr); }
  .categories__list { grid-template-columns: repeat(2, 1fr); }
  .org-data { grid-template-columns: repeat(3, 1fr); }

  /* Tighten desktop nav since RECRUIT is added */
  .site-nav__list { gap: var(--space-4); font-size: 12px; }

  /* Desktop dropdown for OTHER */
  .site-nav__group {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .site-nav__group-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-size: 12px;
    letter-spacing: .12em;
    cursor: default;
    padding-block: 4px;
  }
  .site-nav__group-label::after {
    content: "▾";
    font-size: 9px;
    opacity: .6;
  }
  .site-nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
    padding: var(--space-3);
    border-left: 1px solid var(--line);
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 110;
  }
  .site-nav__sub li { white-space: nowrap; }
  .site-nav__sub a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    letter-spacing: .04em;
  }
  .site-nav__group:hover .site-nav__sub,
  .site-nav__group:focus-within .site-nav__sub {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* News list — desktop date row inline */
  .news-list__item {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-5);
  }
  .news-list__meta { flex: 0 0 auto; min-width: 220px; }
  .news-list__title { flex: 1; }
}

/* ============================================================
   Interview detail page (recruit-interview-s.html)
   ============================================================ */
.interview-detail__hero {
  padding-block: var(--space-7) var(--space-6);
}
.interview-detail__eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: #4db8c4;
  margin-bottom: var(--space-3);
}
.interview-detail__notice {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.interview-detail__title {
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.5;
  letter-spacing: .04em;
  margin-bottom: var(--space-3);
}
.interview-detail__sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}
.interview-detail__profile {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
}
.interview-detail__photo {
  width: 100%;
  max-width: 320px;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}
.interview-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.interview-detail__profile-text { display: flex; flex-direction: column; gap: 6px; }
.interview-detail__role {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: #4db8c4;
  font-weight: 700;
}
.interview-detail__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .04em;
}

.interview-detail__body { padding-block: 0 var(--space-7); }
.interview-detail__chapter {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.5;
  text-align: center;
  max-width: 760px;
  margin: var(--space-7) auto var(--space-5);
  padding-top: var(--space-5);
  border-top: 2px solid #4db8c4;
  color: var(--fg);
}
.interview-detail__intro {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  padding: var(--space-5);
  background: #f8f8f8;
  border-radius: 8px;
}
.interview-detail__qa {
  margin-bottom: var(--space-7);
  max-width: 760px;
  margin-inline: auto;
}
.interview-detail__qa-title {
  font-size: clamp(18px, 3.4vw, 22px);
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-left: var(--space-3);
  border-left: 4px solid #4db8c4;
  letter-spacing: .04em;
}
.interview-detail__qa p {
  font-size: 15px;
  line-height: 2;
  color: var(--fg);
}
.interview-detail__qa p + p { margin-top: var(--space-3); }
.interview-detail__qa--message {
  background: #f8f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-5);
}
.interview-detail__figure {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  border-radius: 8px;
  overflow: hidden;
}
/* Portrait (tall) photos — keep them from filling the screen */
.interview-detail__figure--portrait { max-width: 420px; }

/* Career path (社内制度) */
.career-path__group { margin-bottom: var(--space-6); }
.career-path__label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  padding-left: 12px;
  border-left: 4px solid #4db8c4;
}
.career-path__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.career-path__figure img { width: 100%; height: auto; display: block; }
.interview-detail__figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Daily Schedule */
.interview-detail__schedule {
  margin-top: var(--space-8);
  max-width: 760px;
  margin-inline: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.interview-detail__schedule-header { margin-bottom: var(--space-5); }
.interview-detail__schedule-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: #4db8c4;
  margin-bottom: var(--space-2);
}
.interview-detail__schedule-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: .04em;
}
.schedule-list { position: relative; padding-left: var(--space-5); border-left: 1px solid var(--line); }
.schedule-list__item {
  position: relative;
  padding-block: var(--space-3);
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
}
.schedule-list__item:last-child { border-bottom: 0; }
.schedule-list__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-5) - 5px);
  top: calc(var(--space-3) + 8px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4db8c4;
}
.schedule-list__time {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #4db8c4;
  flex: 0 0 auto;
  min-width: 70px;
}
.schedule-list__body { flex: 1; }
.schedule-list__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.schedule-list__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.interview-detail__entry {
  margin-top: var(--space-7);
  text-align: center;
}
.interview-detail__entry-btn {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: .14em;
  font-weight: 800;
  color: #ffffff;
  background: #4db8c4;
  text-decoration: none;
  padding: 16px 48px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.interview-detail__entry-btn:hover {
  background: #7fc4ca;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(170, 217, 222, .35);
}
.interview-detail__back {
  margin-top: var(--space-5);
  text-align: center;
}
.interview-detail__back a {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .12em;
  color: #4db8c4;
  font-weight: 700;
}

/* 1日の仕事の流れ スケジュール表 */
.interview-schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
  font-size: 15px;
  line-height: 1.7;
}
.interview-schedule th,
.interview-schedule td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.interview-schedule th {
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  color: #4db8c4;
  width: 110px;
}
.interview-schedule tr:last-child th,
.interview-schedule tr:last-child td { border-bottom: none; }
.interview-schedule tr:nth-child(odd) { background: rgba(170,217,222,.06); }

@media (min-width: 641px) {
  .interview-detail__profile {
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
  }
  .interview-detail__photo { flex: 0 0 240px; }
}

/* ============================================================
   Top page CTA cards (index.html — 3 link cards)
   ============================================================ */
.top-cta-section {
  padding-top: 0;
  border-top: 0;
}
.top-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.top-cta li { list-style: none; }
.top-cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-7) var(--space-5);
  border: 1px solid var(--line);
  background: var(--visual-bg);
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.top-cta__card:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  opacity: 1;
}
.top-cta__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-2);
  color: var(--fg);
  transition: color .3s ease;
}
.top-cta__card:hover .top-cta__icon { color: var(--bg); }
.top-cta__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.top-cta__label {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .15em;
}
.top-cta__sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  transition: color .3s ease, opacity .3s ease;
}
.top-cta__card:hover .top-cta__sub {
  color: var(--bg);
  opacity: .7;
}
@media (min-width: 641px) {
  .top-cta { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .top-cta__icon { width: 64px; height: 64px; }
  .top-cta__label { font-size: 22px; }
}

/* ============================================================
   Events grid (recruit-workplace.html — 全社会議・イベント section)
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
  margin-bottom: var(--space-5);
}
.event-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.event-item__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  align-self: center;
}
.event-item__icon img,
.event-item__icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.event-item__name {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--fg);
  align-self: center;
  text-align: center;
  width: 100%;
}
.event-item__desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.events-note {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-top: var(--space-4);
}
@media (min-width: 1025px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5) var(--space-4);
  }
  .events-grid--three { grid-template-columns: repeat(3, 1fr); }
  .event-item__icon { width: 96px; height: 96px; }
  .event-item__name { font-size: 20px; }
}

/* ============================================================
   Employee benefits grid (recruit-other.html — 福利厚生 section)
   ============================================================ */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
}
.benefit-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.benefit-item__icon {
  width: 72px;
  height: 72px;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-item__icon svg,
.benefit-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.benefit-item__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
  color: var(--fg);
}

@media (min-width: 641px) {
  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6) var(--space-5);
  }
  .benefit-item__icon { width: 88px; height: 88px; }
}

/* ============================================================
   ENTRY form (recruit-contact.html)
   ============================================================ */
.entry-form-section { background: #f5f5f5; }
.entry-form__header {
  text-align: center;
  margin-bottom: var(--space-5);
}
.entry-form__title {
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--fg);
  margin-bottom: 4px;
}
.entry-form__subtitle {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .15em;
}
.entry-form__intro {
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--fg);
  margin-bottom: var(--space-5);
}
.entry-form__intro p { margin: 0; }
.entry-form__divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-5) 0 var(--space-4);
}
.entry-form__required-note {
  font-size: 13px;
  color: var(--fg);
  margin-bottom: var(--space-4);
}
.entry-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.entry-form__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.entry-form__field { display: block; }
.entry-form__input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--fg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.entry-form__input::placeholder { color: #888; opacity: 1; }
.entry-form__input:focus {
  outline: none;
  border-color: #4db8c4;
  box-shadow: 0 0 0 3px rgba(170, 217, 222, .15);
}
.entry-form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23888' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}
.entry-form__select:invalid { color: #888; }
.entry-form__textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 200px;
  line-height: 1.7;
  padding: 18px 20px;
}
.entry-form__field--textarea { display: block; }

/* File upload */
.entry-form__file {
  margin-top: var(--space-3);
}
.entry-form__file-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.entry-form__star {
  color: #e23c3c;
  font-weight: 700;
  margin-left: 4px;
}
.entry-form__file-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.entry-form__file-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.entry-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.entry-form__file-button {
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: #555;
  border-radius: 6px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .2s ease;
}
.entry-form__file-label:hover .entry-form__file-button { background: #333; }
.entry-form__file-input:focus + .entry-form__file-button {
  outline: 2px solid #4db8c4;
  outline-offset: 2px;
}
.entry-form__file-name {
  font-size: 13px;
  color: var(--muted);
  background: #fafafa;
  padding: 8px 16px;
  border-radius: 4px;
  flex: 1;
  min-width: 200px;
}

/* Privacy checkbox */
.entry-form__privacy {
  margin: var(--space-5) 0 var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.entry-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  cursor: pointer;
  line-height: 1.7;
}
.entry-form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4db8c4;
  margin-top: 3px;
  flex: 0 0 18px;
}
.entry-form__privacy-text { color: var(--fg); font-weight: 700; }
.entry-form__privacy-note {
  display: inline;
  margin-left: 4px;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

/* Submit */
.entry-form__actions { text-align: center; margin-top: var(--space-5); }
.entry-form__submit {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .15em;
  font-weight: 700;
  color: #ffffff;
  background: #4db8c4;
  border: none;
  padding: 16px 56px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.entry-form__submit:hover {
  background: #7fc4ca;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(170, 217, 222, .35);
}

/* Entry completion (thank-you) page */
.entry-thanks-section {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
}
.entry-thanks {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  padding-block: var(--space-6);
}
.entry-thanks__eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .3em;
  color: #4db8c4;
  margin-bottom: var(--space-3);
}
.entry-thanks__title {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-5);
}
.entry-thanks__lead {
  font-size: 16px;
  line-height: 2;
  margin-bottom: var(--space-4);
}
.entry-thanks__text {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: var(--space-6);
}
.entry-thanks__actions { margin-top: var(--space-5); }
.entry-thanks__btn {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .15em;
  font-weight: 700;
  color: #ffffff;
  background: #4db8c4;
  text-decoration: none;
  padding: 16px 48px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.entry-thanks__btn:hover {
  background: #7fc4ca;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(170, 217, 222, .35);
}

/* Tablet+ — 2 column layout */
@media (min-width: 768px) {
  .entry-form__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    align-items: start;
  }
}

/* ============================================================
   Q&A (recruit-qa.html)
   ============================================================ */
.qa__lead {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  text-align: center;
}
.qa__group {
  max-width: 800px;
  margin: 0 auto var(--space-7);
}
.qa__group-title {
  font-family: var(--font-en);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  letter-spacing: .12em;
  border-bottom: 2px solid #4db8c4;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--fg);
}
.qa__list { display: flex; flex-direction: column; gap: var(--space-3); }
.qa__item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.qa__item[open] { border-color: #4db8c4; box-shadow: 0 6px 18px rgba(170, 217, 222, .12); }
.qa__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  position: relative;
  padding-right: 56px;
}
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary::after {
  content: "+";
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #4db8c4;
  transition: transform .2s ease;
  line-height: 1;
}
.qa__item[open] summary::after { content: "−"; }
.qa__q {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 800;
  color: #4db8c4;
  flex: 0 0 auto;
}
.qa__q-text { font-size: 15px; font-weight: 600; line-height: 1.6; }
.qa__a {
  padding: 0 var(--space-5) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border-top: 1px dashed var(--line);
  padding-top: var(--space-4);
  margin: 0 var(--space-5) 0;
}
.qa__a-mark {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
  flex: 0 0 auto;
}
.qa__a p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.qa__cta {
  text-align: center;
  font-size: 14px;
  margin-top: var(--space-7);
  color: var(--muted);
}
.qa__cta a {
  color: #4db8c4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   Job detail page (recruit-jobs-*.html)
   ============================================================ */
.job-detail__hero {
  padding-block: var(--space-7) var(--space-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-7);
}
.job-detail__eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: #4db8c4;
  margin-bottom: var(--space-3);
}
.job-detail__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: var(--space-5);
}
.job-detail__title-sub {
  display: inline-block;
  margin-left: var(--space-2);
  font-size: .65em;
  font-weight: 700;
  color: var(--muted);
}
.job-detail__meta {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.job-detail__meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--line);
}
.job-detail__meta-row dt {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}
.job-detail__meta-row dd { font-size: 15px; line-height: 1.7; }

.job-detail__body {
  max-width: 800px;
  padding-block: 0 var(--space-7);
}
.job-detail__section {
  margin-bottom: var(--space-7);
}
.job-detail__section-title {
  font-size: clamp(20px, 3.4vw, 24px);
  font-weight: 700;
  letter-spacing: .04em;
  padding-left: var(--space-3);
  border-left: 4px solid #4db8c4;
  margin-bottom: var(--space-4);
}
.job-detail__section p {
  font-size: 15px;
  line-height: 2;
  color: var(--fg);
  margin-bottom: var(--space-3);
}
.job-detail__subhead {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: #4db8c4;
}
.job-detail__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
}
.job-detail__list li {
  font-size: 14px;
  line-height: 1.9;
  position: relative;
  list-style: none;
  padding-left: var(--space-3);
}
.job-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4db8c4;
}
.job-detail__note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-3);
}
.job-detail__other .job-detail__meta-row {
  grid-template-columns: 1fr;
}
@media (min-width: 641px) {
  .job-detail__meta-row,
  .job-detail__other .job-detail__meta-row {
    grid-template-columns: 180px 1fr;
    column-gap: var(--space-4);
    align-items: baseline;
  }
}

.job-detail__cta-wrap {
  text-align: center;
  margin: var(--space-7) 0 var(--space-5);
}
.job-detail__cta {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #ffffff;
  background: #4db8c4;
  border-radius: 999px;
  padding: 18px 56px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.job-detail__cta:hover {
  background: #7fc4ca;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(170, 217, 222, .35);
  opacity: 1;
}
.job-detail__back {
  text-align: center;
  margin-top: var(--space-5);
}
.job-detail__back a {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .12em;
  color: #4db8c4;
  font-weight: 700;
}

/* ============================================================
   Jobs selection landing (recruit-jobs.html)
   ============================================================ */
.jobs-select__hero {
  position: relative;
  margin-top: var(--header-h);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #000;
}
.jobs-select__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.jobs-select__hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 100%);
  padding: var(--space-4);
}
.jobs-select__eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .3em;
  margin-bottom: var(--space-2);
  opacity: .9;
}
.jobs-select__title {
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: var(--space-3);
}
.jobs-select__lead {
  font-size: clamp(13px, 2.4vw, 16px);
  letter-spacing: .06em;
}
.jobs-select__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-block: var(--space-7);
  max-width: 880px;
  margin-inline: auto;
}
.jobs-select__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-7) var(--space-5);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  text-decoration: none;
  color: var(--fg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.jobs-select__card:hover {
  background: #4db8c4;
  border-color: #4db8c4;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(170, 217, 222, .35);
  opacity: 1;
}
.jobs-select__card-en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .22em;
  color: #4db8c4;
  font-weight: 700;
  transition: color .25s ease;
}
.jobs-select__card:hover .jobs-select__card-en { color: #fff; }
.jobs-select__card-jp {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: .08em;
}
.jobs-select__card-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: none;
  margin-block: var(--space-2);
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
  transition: color .25s ease;
}
.jobs-select__card:hover .jobs-select__card-desc { color: rgba(255,255,255,.85); }
.jobs-select__card-cta {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-top: var(--space-2);
}
.jobs__back-top {
  margin-bottom: var(--space-5);
  font-size: 13px;
}
.jobs__back-top a {
  color: #4db8c4;
  font-weight: 700;
  letter-spacing: .04em;
}
@media (min-width: 768px) {
  .jobs-select__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Persistent ENTRY floating CTA (all recruit pages)
   ============================================================ */
.entry-fab {
  position: fixed;
  right: 24px;
  top: calc(var(--header-h) + 8px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #4db8c4;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 28px rgba(170, 217, 222, .5);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  animation: entry-fab-pulse 2.4s ease-in-out infinite;
}
.entry-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(170, 217, 222, .5);
  animation: entry-fab-ring 2.4s ease-out infinite;
}
.entry-fab:hover {
  background: #7fc4ca;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 36px rgba(170, 217, 222, .6);
  opacity: 1;
  animation-play-state: paused;
}
.entry-fab__label {
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
}
.entry-fab__sub {
  font-size: 10px;
  letter-spacing: .12em;
  margin-top: 5px;
  opacity: .9;
}
@keyframes entry-fab-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(170, 217, 222, .5); }
  50% { box-shadow: 0 10px 36px rgba(170, 217, 222, .85); }
}
@keyframes entry-fab-ring {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.25); opacity: 0; }
}
@media (max-width: 640px) {
  .entry-fab {
    right: 16px;
    top: calc(var(--header-h) + 8px);
    width: 84px;
    height: 84px;
  }
  .entry-fab__label { font-size: 16px; }
  .entry-fab__sub { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-fab, .entry-fab::after { animation: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   Corporate site overrides
   (scoped to body:not(.recruit) so recruit pages are unaffected)
   ============================================================ */

/* 1. All text white — override muted grey to near-white */
body:not(.recruit) {
  --muted: rgba(255, 255, 255, .85);
}

/* 2. Text sizes +2px across the board */
body:not(.recruit) {
  font-size: 18px;
}
body:not(.recruit) .section__eyebrow { font-size: 15px; }
body:not(.recruit) .news-list__meta  { font-size: 15px; }
body:not(.recruit) .news-list__tag   { font-size: 14px; }
body:not(.recruit) .news-list__title { font-size: 18px; }
body:not(.recruit) .brand__lead      { font-size: 16px; }
body:not(.recruit) .core-value__num  { font-size: 15px; }
body:not(.recruit) .core-value__lead { font-size: 17px; }
body:not(.recruit) .timeline__year   { font-size: 17px; }
body:not(.recruit) .timeline__event  { font-size: 17px; }
body:not(.recruit) .profile__row dt  { font-size: 15px; }
body:not(.recruit) .profile__row dd  { font-size: 18px; }
body:not(.recruit) .mission__ja      { font-size: 18px; }
body:not(.recruit) .top-cta__sub     { font-size: 15px; }
body:not(.recruit) .site-footer__address,
body:not(.recruit) .site-footer__copy,
body:not(.recruit) .site-footer__privacy { font-size: 15px; }
body:not(.recruit) .site-nav__list   { font-size: 14px; }
@media (min-width: 1025px) {
  body:not(.recruit) .site-nav__list { font-size: 15px; }
}

/* 3. Hide ENTRY floating button on corporate pages */
body:not(.recruit) .entry-fab { display: none !important; }

/* 4. Corporate header — white background, dark nav links, image logo */
body:not(.recruit) .site-header {
  border-bottom-color: #e0e0e0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.recruit .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.recruit .site-header__cta { display: none; }
body:not(.recruit) .site-nav__list a {
  color: #111111;
  text-transform: uppercase;
}
body:not(.recruit) .site-nav__cta a {
  color: #111111;
  border-color: #111111;
}
body:not(.recruit) .site-nav__cta a[aria-current="page"] {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}
/* Corporate logo image size */
body:not(.recruit) .site-header__logo--image img {
  height: 36px;
}
@media (min-width: 1025px) {
  body:not(.recruit) .site-header__logo--image img {
    height: 48px;
  }
}

/* 4. Privacy policy footer link */
.site-footer__privacy {
  letter-spacing: .04em;
}
.site-footer__privacy a {
  text-decoration: none;
}

/* ============================================================
   Mobile responsive — small screens (≤ 480px / iPhone SE)
   ============================================================ */
@media (max-width: 480px) {
  /* ドットナビゲーション — 小画面では小さく */
  .hero-carousel__dots { gap: 7px; bottom: 12px; }
  .hero-carousel__dot  { width: 8px; height: 8px; }
}

/* ─── Header CTA (RECRUIT standalone button) ─── */
.site-header__cta {
  display: inline-block;
  border: 1px solid #111111;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  color: #111111;
  white-space: nowrap;
  font-family: var(--font-en);
  text-decoration: none;
}
.site-header__cta:hover {
  background: #111111;
  color: #ffffff;
}

/* ─── Recruit nav: drawer on mobile (≤1024px) ─── */
@media (max-width: 1024px) {
  /* Individual recruit pages & preview.html [data-nav] both → drawer */
  body.recruit .site-nav,
  body.recruit [data-nav].site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(255, 255, 255, 0.97);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    z-index: 90;
  }
  body.recruit .site-nav .site-nav__list,
  body.recruit [data-nav].site-nav .site-nav__list {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4);
    font-size: 18px;
    letter-spacing: .08em;
    overflow: visible;
  }
  /* Open state — higher specificity beats the hidden rules above */
  body.recruit.is-drawer-open .site-nav,
  body.recruit.is-drawer-open [data-nav].site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
