/* QSTA Global Renewal — Green × Blue design system (staff-q inspired layout) */

:root {
  --green-600: #0d8f6e;
  --green-500: #12a67f;
  --green-400: #3bc4a0;
  --green-100: #e8f7f2;
  --blue-700: #0a5f8c;
  --blue-600: #1278a8;
  --blue-500: #1a94c4;
  --blue-100: #e6f3f9;
  --navy: #0f2d3d;
  --slate: #4a6272;
  --gray-50: #f7fafb;
  --gray-100: #eef3f5;
  --input-bg: #f2f7f9;
  --input-border: #b3c5d0;
  --input-border-hover: #8faab8;
  --accent-red: #a65d5d;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 45, 61, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 45, 61, 0.1);
  --shadow-lg: 0 20px 48px rgba(15, 45, 61, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-en: "DM Sans", "Noto Sans JP", sans-serif;
  --header-h: 96px;
  --max-w: 1180px;
  --transition: 0.25s ease;
  --transition-nav: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-600);
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: visible;
}

.site-header.is-scrolled {
  border-bottom-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.logo-tagline {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
}

/* ヘッダー・フッター共通：背景透過ロゴ（コーポレート同様 横90px） */
.logo-img--header {
  width: 90px;
  height: auto;
  max-width: 90px;
}

.site-header .logo-img--header {
  filter: brightness(0);
}

.site-footer .logo-img--header {
  filter: brightness(0) invert(1);
}

/* ── Desktop nav（コーポレート風ホバー・ドロップダウン） ── */
.nav-main {
  display: none;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

/* メニュー→サブメニュー移動時のホバー切れ防止（隙間ブリッジ） */
.nav-item--dropdown:hover::before,
.nav-item--dropdown:focus-within::before,
.nav-item--dropdown.is-dropdown-open::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  right: -0.35rem;
  top: calc(100% - 6px);
  height: 14px;
  z-index: 121;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem 0.55rem;
  color: var(--slate);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition:
    transform var(--transition-nav),
    color var(--transition-nav);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--green-500);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-nav);
}

.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-link:focus-visible {
  transform: translateY(-3px);
  color: var(--navy);
}

.nav-item:hover > .nav-link::after,
.nav-item:focus-within > .nav-link::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 300px;
  padding: 0.4rem 0 0.65rem;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 45, 61, 0.14);
  border: 1px solid var(--gray-100);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
  z-index: 120;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-item--dropdown.is-dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0s;
}

.nav-dropdown-link {
  display: block;
  padding: 0.7rem 1.35rem 0.85rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.45;
  position: relative;
  transition:
    background-color var(--transition-nav),
    transform var(--transition-nav);
}

.nav-dropdown-link::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 0.4rem;
  height: 2px;
  background: var(--green-500);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-nav);
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  background: var(--gray-50);
  transform: translateY(-2px);
}

.nav-dropdown-link:hover::after,
.nav-dropdown-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-dropdown-label {
  display: block;
  font-weight: 600;
}

.nav-dropdown-desc {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--slate);
}

.nav-dropdown-link:hover .nav-dropdown-desc,
.nav-dropdown-link:focus-visible .nav-dropdown-desc {
  color: var(--slate);
}

.nav-item--dropdown:nth-last-child(-n + 2) .nav-dropdown {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}

.nav-item--dropdown:nth-last-child(-n + 2):hover .nav-dropdown,
.nav-item--dropdown:nth-last-child(-n + 2):focus-within .nav-dropdown,
.nav-item--dropdown:nth-last-child(-n + 2).is-dropdown-open .nav-dropdown {
  transform: translateX(0) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-dropdown,
  .nav-dropdown-link,
  .nav-link::after,
  .nav-dropdown-link::after,
  .hero-slide,
  .btn,
  .btn::before,
  .menu-toggle-bar,
  .mobile-nav {
    transition: none;
  }


  .nav-item:hover > .nav-link,
  .nav-dropdown-link:hover,
  .nav-dropdown-link:focus-visible {
    transform: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ヘッダーCTA：日英切替でJP/ENボタンが動かないよう幅を固定 */
.header-cta {
  width: 11rem;
  max-width: 11rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  color: var(--slate);
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
}

.lang-switch button.is-active {
  background: linear-gradient(135deg, var(--green-500), var(--blue-600));
  color: white;
}

.btn.btn-multiline {
  display: inline-block;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.75rem;
  min-height: 40px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--blue-600));
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(18, 120, 168, 0.25);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-outline {
  background-color: #fff;
  color: var(--blue-700);
  border: 2px solid var(--blue-500);
}

.btn-secondary {
  background-color: #fff;
  color: var(--blue-700);
  border: 2px solid var(--blue-500);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-100);
}

/* PC：コーポレート同様・左→右スライドで色反転 */
@media screen and (min-width: 769px) {
  .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
  }

  .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: left 0.3s ease;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--green-500), var(--blue-600));
    box-shadow: none;
  }

  .btn-primary::before {
    background-color: #fff;
  }

  .btn-primary:hover {
    color: var(--green-600);
    border-color: var(--blue-600);
  }

  .btn-primary:hover::before {
    left: 0;
  }

  .btn-outline {
    background-color: #fff;
    border-color: var(--blue-600);
    transition: color 0.3s ease, border-color 0.3s ease;
  }

  .btn-outline::before {
    background: linear-gradient(135deg, var(--green-500), var(--blue-600));
  }

  .btn-outline:hover {
    color: #fff;
    border-color: var(--green-500);
  }

  .btn-outline:hover::before {
    left: 0;
  }
}

@media screen and (max-width: 768px) {
  .btn-primary:hover,
  .btn-primary:focus-visible {
    border-color: var(--blue-600);
  }

  .btn-primary:active,
  .btn-outline:active {
    opacity: 0.9;
  }

  /* スマホ：ボタンを中央配置（ヒーロー2列グリッドは除く） */
  .btn {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .btn.btn-multiline {
    display: block;
    width: fit-content;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-cta .btn {
    width: 100%;
    margin-inline: 0;
  }

  p:has(> .btn),
  .category-cta p,
  .staff-post-cta,
  .form-branch {
    text-align: center;
  }

  .category-cta .btn {
    display: flex;
  }

  .service-fee-table-wrap,
  .service-hscroll--flow {
    scrollbar-width: thin;
    scrollbar-color: var(--green-500) var(--gray-100);
  }

  .service-fee-table-wrap::-webkit-scrollbar,
  .service-hscroll--flow::-webkit-scrollbar {
    height: 0.45rem;
  }

  .service-fee-table-wrap::-webkit-scrollbar-track,
  .service-hscroll--flow::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 999px;
  }

  .service-fee-table-wrap::-webkit-scrollbar-thumb,
  .service-hscroll--flow::-webkit-scrollbar-thumb {
    background: var(--green-500);
    border-radius: 999px;
  }

  .student-flow-scroll-body {
    width: max-content;
    min-width: 56rem;
  }

  .student-flow-scroll-body .student-flow-cards--arrow {
    min-width: 56rem;
  }
}

/* ハンバーガー（タブレット以下で表示・PC 960px 以上は非表示） */
.menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  z-index: 102;
  transition:
    border-color var(--transition),
    background-color var(--transition);
}

.menu-toggle:hover {
  border-color: var(--green-500);
  background: var(--gray-50);
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 1.375rem;
  height: 0.875rem;
}

.menu-toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease,
    bottom 0.25s ease;
}

.menu-toggle-bar:nth-child(1) {
  top: 0;
}

.menu-toggle-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle-bar:nth-child(3) {
  bottom: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

@media (max-width: 959px) {
  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 960px) {
  .nav-main {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .nav-link {
    padding-inline: 0.5rem;
  }

  .nav-dropdown {
    min-width: 260px;
  }
}

.mobile-nav {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: 1.25rem 1.5rem 2rem;
  z-index: 101;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

body.is-mobile-nav-open {
  overflow: hidden;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav > ul > li {
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav > ul > li > a {
  display: block;
  padding: 1rem 0;
  color: var(--navy);
  font-weight: 500;
}

.mobile-nav .mobile-nav-group {
  padding: 0.75rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-600);
  letter-spacing: 0.04em;
}

.mobile-nav .mobile-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.75rem;
}

.mobile-nav .mobile-nav-sub a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 400;
}

.mobile-nav > ul > li:last-child > a {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--green-500), var(--blue-600));
  color: var(--white);
  border-radius: 7px;
  font-weight: 600;
}

/* SP：ヘッダーはロゴ＋言語切替＋ハンバーガー（CTAはメニュー内） */
@media (max-width: 767px) {
  .header-inner {
    gap: 0.65rem;
  }

  .header-actions {
    gap: 0.5rem;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .logo-tagline {
    font-size: 10px;
    max-width: 11.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── Hero（背景スライド・フェード） ── */
.hero {
  position: relative;
  min-height: clamp(600px, 92vh, 860px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--green-100);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  overflow: hidden;
  background: var(--green-100);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 3rem 4.5rem;
  padding-left: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(1.5rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.hero-content {
  max-width: 36rem;
  padding-left: clamp(0.5rem, 2vw, 1.25rem);
}

.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 1px 4px rgba(15, 45, 61, 0.2);
}

.hero-dot.is-active {
  background: var(--green-500);
  transform: scale(1.15);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero-dot.is-active:hover {
  background: var(--green-600);
}

/* PC：子要素を .hero-content に直接配置 / SP：コピー＋CTAをまとめて中央寄せ */
.hero-fv-body {
  display: contents;
}

.hero-copy-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.hero-copy-panel {
  display: inline-block;
  max-width: 100%;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 16px rgba(15, 45, 61, 0.06);
  backdrop-filter: blur(6px);
}

.hero-copy-panel--sub {
  margin-top: 0.2rem;
  padding: 0.55rem 0.85rem;
}

.hero-title-line {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
}

.hero-title-en {
  margin: 0.15rem 0 0;
  padding-left: 0.15rem;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hero-title-en {
    text-shadow:
      0 0 6px rgba(18, 166, 127, 0.55),
      0 0 14px rgba(59, 196, 160, 0.35),
      0 1px 2px rgba(13, 143, 110, 0.4);
  }
}

.hero-title,
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
  max-width: 36em;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  position: relative;
  margin-top: 4rem;
  max-width: 44rem;
}

.hero-stats-card {
  --hero-stats-cut: 1.125rem;
  padding-top: 1.25rem;
  background: var(--white);
  clip-path: polygon(
    var(--hero-stats-cut) 0,
    100% 0,
    100% calc(100% - var(--hero-stats-cut)),
    calc(100% - var(--hero-stats-cut)) 100%,
    0 100%,
    0 var(--hero-stats-cut)
  );
  filter: drop-shadow(0 8px 28px rgba(15, 45, 61, 0.12));
}

.hero-stats-badge {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 2.25rem;
  min-width: 15rem;
  max-width: calc(100% - 1.5rem);
  min-height: 2.5rem;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--white);
  white-space: nowrap;
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
  border-radius: 999px;
  border: 2px solid var(--white);
  box-shadow: 0 4px 16px rgba(13, 143, 110, 0.28);
}

.hero-stats-badge > span[data-lang] {
  display: block;
  line-height: 1.2;
}

.hero-stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  background: var(--white);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.stat-item:not(:first-child) {
  border-left: 1px dashed rgba(13, 143, 110, 0.45);
}

@media (max-width: 767px) {
  /* SP：写真は自然な縦幅／コピー・CTAは写真上に重ね／３つの強みはFV下 */
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
    min-height: 0;
    padding-top: var(--header-h);
    background: var(--gray-50);
    align-items: stretch;
  }

  .hero-slider {
    position: relative;
    inset: auto;
    grid-row: 1;
    grid-column: 1;
    height: auto;
    z-index: 0;
  }

  .hero-slide {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    bottom: auto;
    height: auto;
  }

  .hero-slide.is-active {
    position: relative;
  }

  .hero-slide picture {
    height: auto;
  }

  .hero-slide img {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center top;
  }

  .hero-inner {
    display: contents;
  }

  .hero-content {
    display: contents;
    max-width: none;
    padding-left: 0;
    min-height: 0;
  }

  .hero-fv-body {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: 0 1.25rem 1.25rem;
    box-sizing: border-box;
  }

  .hero-copy-group {
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-copy-panel--main .hero-title-line {
    font-size: 1.28rem;
    line-height: 1.3;
    white-space: nowrap;
  }

  html[lang="en"] .hero-copy-panel--main .hero-title-line {
    font-size: 1.05rem;
  }

  .hero-copy-panel--sub {
    width: 100%;
    box-sizing: border-box;
  }

  .hero-copy-panel--sub .hero-lead {
    font-size: 0.9rem;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 0.5rem;
    font-size: 0.8125rem;
    justify-content: center;
    white-space: nowrap;
  }

  .hero-stats {
    grid-row: 2;
    grid-column: 1;
    flex-shrink: 0;
    margin-top: 5rem;
    margin-inline: auto;
    width: 100%;
    max-width: 22rem;
    padding-top: 0.5rem;
    padding-inline: 1.25rem;
    box-sizing: border-box;
  }

  .hero-dots {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    align-self: start;
    justify-self: center;
    left: auto;
    bottom: auto;
    top: auto;
    transform: none;
    margin-top: 0.75rem;
    z-index: 3;
  }
}

@media (max-width: 380px) {
  .hero-copy-panel--main .hero-title-line {
    font-size: 1.65rem;
  }

  html[lang="en"] .hero-copy-panel--main .hero-title-line {
    font-size: 0.95rem;
  }
}

@media (max-width: 720px) {
  .hero-stats {
    max-width: 100%;
  }

  .hero-stats-card {
    --hero-stats-cut: 0.875rem;
  }

  .hero-stats-badge {
    padding: 0.5rem 1.35rem;
    min-height: 2.25rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    min-width: 0;
  }

  .hero-stats-badge > span[data-lang] {
    line-height: 1.2;
  }

  .hero-stats-panel {
    grid-template-columns: 1fr;
  }

  .stat-item:not(:first-child) {
    border-left: none;
    border-top: 1px dashed rgba(13, 143, 110, 0.45);
  }
}

.stat-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.45rem;
  flex-shrink: 0;
  object-fit: contain;
  /* file:// でも表示される img + 黒アイコンを #0d8f6e に */
  filter: brightness(0) saturate(100%) invert(39%) sepia(95%) saturate(747%) hue-rotate(127deg) brightness(92%) contrast(91%);
}

.stat-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 500;
  text-align: center;
}

.stat-em {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.45;
}

/* ── Section common ── */
section {
  padding-block: 5rem;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.section-header p {
  color: var(--slate);
  margin: 0;
}

.section-header--categories,
.section-header--services,
.section-header--flow,
.section-header--staff,
.section-header--access {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: visible;
  padding-top: 0.25rem;
}

.section-header--categories .section-label,
.section-header--categories h2,
.section-header--categories > p:not(.section-label),
.section-header--services .section-label,
.section-header--services h2,
.section-header--services > p:not(.section-label),
.section-header--flow .section-label,
.section-header--flow h2,
.section-header--flow > p:not(.section-label),
.section-header--access .section-label,
.section-header--access h2 {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.section-header--staff {
  text-align: left;
  margin: 0 0 1.5rem;
}

.section-header--staff .section-label,
.section-header--staff h2,
.section-header--staff > p:not(.section-label) {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.section-header--staff h2 {
  margin-bottom: 0.75rem;
}

.section-header--categories .section-bg-word,
.section-header--services .section-bg-word,
.section-header--flow .section-bg-word,
.section-header--staff .section-bg-word,
.section-header--access .section-bg-word {
  position: absolute;
  top: -2.25rem;
  right: 0;
  z-index: 0;
  font-family: var(--font-en);
  font-size: clamp(2.75rem, 7.5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(18, 166, 127, 0.14);
  pointer-events: none;
  user-select: none;
}

.section-header--staff .section-bg-word {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .section-header--categories .section-bg-word,
  .section-header--services .section-bg-word,
  .section-header--flow .section-bg-word,
  .section-header--access .section-bg-word {
    top: -2.75rem;
    right: -0.5rem;
  }

  .section-header--staff .section-bg-word {
    top: -2.25rem;
    right: 0;
  }
}

@media (max-width: 520px) {
  .section-header--categories .section-bg-word,
  .section-header--services .section-bg-word,
  .section-header--flow .section-bg-word,
  .section-header--access .section-bg-word {
    font-size: 2.25rem;
    top: -1.5rem;
    right: 0;
  }

  .section-header--staff .section-bg-word {
    font-size: 1.85rem;
    top: -1.25rem;
    right: 0;
  }
}

.bg-alt {
  background: var(--gray-50);
}

.bg-gradient {
  background: linear-gradient(180deg, var(--green-100) 0%, var(--blue-100) 100%);
}

/* ── Category cards ── */
.category-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(12rem, auto);
  }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1.5rem 1rem;
  background: rgba(18, 166, 127, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  text-align: center;
  color: var(--navy);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

@media (min-width: 640px) {
  .category-card {
    min-height: 12rem;
    height: 100%;
  }

  .category-card > span[data-lang]:has(.category-label-sub) {
    min-height: 3.5rem;
  }
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-400);
  color: var(--navy);
}

.category-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 2.05rem;
}

.category-icon-svg {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  fill: currentColor;
}

.category-icon-image {
  width: 3.4rem;
  height: 3.4rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(39%) sepia(95%) saturate(747%) hue-rotate(127deg) brightness(92%) contrast(91%);
}

.category-card span {
  font-weight: 600;
  font-size: 0.95rem;
}

.category-card .category-label-sub {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

/* SP：対応職種 横2列×縦9行（18カード） */
@media (max-width: 767px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .category-card {
    min-height: 0;
    height: auto;
    padding: 0.65rem 0.4rem 0.75rem;
    border-radius: var(--radius);
  }

  .category-card:hover {
    transform: none;
  }

  .category-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.35rem;
  }

  .category-icon-image {
    width: 2.25rem;
    height: 2.25rem;
  }

  .category-card span {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .category-card > span[data-lang]:has(.category-label-sub) {
    min-height: 0;
  }

  .category-card .category-label-sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.58rem;
    line-height: 1.35;
  }
}

/* ── Service pillars ── */
.service-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
  text-align: center;
}

.service-card__illust {
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10rem;
  width: 100%;
}

.service-card__illust img {
  display: block;
  height: 10rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.service-card--tokutei .service-card__illust img,
.service-card--student .service-card__illust img {
  transform: scale(1.15);
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.service-card p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  flex: 1;
}

.service-card .link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-600);
}

/* ── Flow steps ── */
.flow-note {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin: -1rem 0 2rem;
}

.flow-steps {
  --flow-steps-gap: 1.5rem;
  display: grid;
  gap: var(--flow-steps-gap);
  align-items: stretch;
  position: relative;
}

.flow-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 0.45rem;
  height: 2rem;
  flex-shrink: 0;
  pointer-events: none;
  z-index: 2;
}

.flow-step-arrow::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, rgba(59, 196, 160, 0.5) 0%, rgba(26, 148, 196, 0.38) 100%);
  clip-path: polygon(0 8%, 100% 50%, 0 92%);
}

@media (max-width: 768px) {
  .flow-steps {
    --flow-steps-gap: -0.5rem;
    gap: 0;
  }

  .flow-step-arrow {
    margin-block: -0.5rem;
  }
}

@media (max-width: 639px) {
  .flow-step-arrow {
    transform: rotate(90deg);
  }
}

@media (min-width: 640px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps > .flow-step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .flow-steps > .flow-step:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .flow-steps > .flow-step:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
  }

  .flow-steps > .flow-step:nth-child(7) {
    grid-column: 2;
    grid-row: 2;
  }

  .flow-step-arrow {
    position: absolute;
    transform: translate(-50%, -50%);
  }

  .flow-steps > .flow-step-arrow:nth-child(2) {
    left: calc((100% - var(--flow-steps-gap)) / 2 + var(--flow-steps-gap) / 2);
    top: calc((100% - var(--flow-steps-gap)) / 4);
  }

  .flow-steps > .flow-step-arrow:nth-child(4) {
    display: none;
  }

  .flow-steps > .flow-step-arrow:nth-child(6) {
    left: calc((100% - var(--flow-steps-gap)) / 2 + var(--flow-steps-gap) / 2);
    top: calc((100% - var(--flow-steps-gap)) * 3 / 4 + var(--flow-steps-gap));
  }
}

@media (min-width: 1024px) {
  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .flow-steps > .flow-step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .flow-steps > .flow-step:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .flow-steps > .flow-step:nth-child(5) {
    grid-column: 3;
    grid-row: 1;
  }

  .flow-steps > .flow-step:nth-child(7) {
    grid-column: 4;
    grid-row: 1;
  }

  .flow-steps > .flow-step-arrow:nth-child(4) {
    display: flex;
  }

  .flow-steps > .flow-step-arrow:nth-child(2) {
    left: calc((100% - 3 * var(--flow-steps-gap)) / 4 + var(--flow-steps-gap) / 2);
    top: 50%;
  }

  .flow-steps > .flow-step-arrow:nth-child(4) {
    left: calc((100% - 3 * var(--flow-steps-gap)) / 2 + var(--flow-steps-gap) * 1.5);
    top: 50%;
  }

  .flow-steps > .flow-step-arrow:nth-child(6) {
    left: calc((100% - 3 * var(--flow-steps-gap)) * 3 / 4 + var(--flow-steps-gap) * 2.5);
    top: 50%;
  }
}

.flow-step {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  padding: 0 0 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  height: 100%;
}

.flow-step-illust {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12.5rem;
  flex-shrink: 0;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
  border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
  background: var(--white);
  overflow: hidden;
}

.flow-step-illust img {
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 8.75rem;
  object-fit: contain;
  display: block;
}

.flow-step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  padding: 0 1.25rem;
}

.flow-step-num {
  display: inline-block;
  flex-shrink: 0;
  margin: 0 0 0.65rem;
  padding: 0.4rem 1.35rem;
  min-width: 5.75rem;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500) 0%, var(--blue-600) 100%);
  box-shadow: 0 2px 10px rgba(18, 120, 168, 0.22);
}

.flow-step h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.flow-step-desc {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.65;
}

.flow-step-desc--placeholder {
  visibility: hidden;
}

.flow-step-illust--step01 img,
.flow-step-illust--step02 img,
.flow-step-illust--step03 img {
  max-width: 98%;
  max-height: 11rem;
  transform: scale(1.08);
}

.flow-step-illust--step04 img {
  max-width: 98%;
  max-height: 10.25rem;
}

.flow-point {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 166, 127, 0.2);
  border-radius: var(--radius-lg);
}

.flow-point-label {
  margin: 0 0 1rem;
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-600);
  text-align: center;
}

.flow-point-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.flow-point-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--navy);
}

.flow-point-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

/* ── Staff teaser ── */
.staff-teaser {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .staff-teaser {
    grid-template-columns: 1fr 1fr;
  }
}

.staff-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.staff-mini-card {
  display: block;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

a.staff-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-400);
  color: var(--navy);
}

.staff-mini-card--soon {
  opacity: 0.9;
}

.staff-mini-card .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-100), var(--green-100));
  overflow: hidden;
}

.staff-mini-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-mini-card .info {
  padding: 0.85rem;
  font-size: 0.85rem;
}

.staff-mini-card strong {
  display: block;
  font-size: 0.9rem;
}

/* Staff archive (一覧) */
.staff-archive-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .staff-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.staff-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  color: var(--navy);
  text-decoration: none;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-400);
  color: var(--navy);
}

.staff-card--soon {
  opacity: 0.9;
}

.staff-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-100), var(--green-100));
  overflow: hidden;
}

.staff-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.staff-card-body .section-label {
  text-align: left;
  margin-bottom: 0.5rem;
}

.staff-card-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.staff-card-body p {
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.staff-card-body .link-arrow {
  margin-top: auto;
  font-size: 0.9rem;
}

/* Staff single (個別) */
.staff-post {
  max-width: 44rem;
  margin-inline: auto;
}

.staff-post--article {
  max-width: 52rem;
}

.staff-post-date {
  text-align: left;
  margin-bottom: 1rem;
}

.staff-post-hero {
  display: block;
  width: 100%;
  aspect-ratio: 768 / 325;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-100), var(--green-100));
}

.staff-post-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-100), var(--green-100));
}

.staff-post-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 1rem;
}

.staff-post-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-700);
  margin: 0 0 1rem;
}

.staff-post--article .content-block {
  margin-bottom: 0;
}

.staff-post--article .content-block p {
  margin: 0;
}

.staff-post-section {
  margin-top: 0;
  padding-block: 1rem;
}

.staff-post-section:first-of-type {
  margin-top: 1.25rem;
}

.staff-post-section + .staff-post-section {
  margin-top: 0.5rem;
}

.staff-post-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--green-200);
  color: var(--text);
}

.staff-post-section p {
  margin: 0 0 0.75rem;
  line-height: 1.8;
}

.staff-post-section p:last-child {
  margin-bottom: 0;
}

.staff-post-split {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}

@media (min-width: 768px) {
  .staff-post-split {
    grid-template-columns: 1fr min(42%, 320px);
    align-items: start;
    gap: 1.25rem;
  }

  .staff-post-split--reverse {
    grid-template-columns: min(42%, 320px) 1fr;
  }

  .staff-post-split--reverse .staff-post-split-media {
    order: -1;
  }
}

.staff-post-split-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--gray-100);
}

.staff-post-split-media img[data-ratio="portrait"] {
  aspect-ratio: 3 / 2;
}

.staff-post-split-media img[data-ratio="landscape"] {
  aspect-ratio: 16 / 10;
}

.staff-post-quote {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.85;
}

.staff-post-cta {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--green-100);
  border-radius: var(--radius-lg);
  border: 2px solid var(--green-400);
  box-shadow: var(--shadow-sm);
}

.staff-post-cta h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-600);
  border: none;
  padding: 0;
}

.staff-post-cta p {
  margin: 0;
  line-height: 1.85;
}

.staff-post-cta .btn {
  margin-top: 1.25rem;
}

.staff-post-back {
  margin-top: 2.5rem;
}

.staff-post-back .link-arrow {
  font-size: 0.95rem;
}

/* ── Access ── */
.access-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.access-info dl {
  margin: 0;
}

.access-info dt {
  font-weight: 600;
  margin-top: 1rem;
  color: var(--blue-700);
}

.access-info dt:first-child {
  margin-top: 0;
}

.access-info dd {
  margin: 0.25rem 0 0;
  color: var(--slate);
}

.map-embed {
  position: relative;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 600 / 350;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--green-400);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.75rem;
}

.footer-licenses {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.65;
  opacity: 0.75;
}

.footer-licenses li + li {
  margin-top: 0.35rem;
}

.footer-brand--compact {
  margin-bottom: 1.75rem;
  text-align: center;
}

.footer-brand--compact .footer-licenses {
  max-width: 22rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .footer-brand--compact {
    text-align: left;
  }

  .footer-brand--compact .footer-licenses {
    margin-inline: 0;
    max-width: none;
  }
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  color: var(--green-400);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-categories-lead {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.85;
}

.footer-categories-featured {
  margin: 0 0 0.75rem;
}

.footer-categories-more {
  margin: 0;
}

.footer-categories-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 184, 0.45);
  transition: color var(--transition), border-color var(--transition);
}

.footer-categories-cta:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

/* ── Sub-page hero ── */
.page-hero {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2rem;
  background: linear-gradient(160deg, var(--blue-100), var(--green-100));
}

.page-hero:has(+ .category-page) {
  box-sizing: border-box;
  padding-top: calc(var(--header-h) + 1.25rem);
  padding-bottom: 1.25rem;
  min-height: calc(var(--header-h) + 17rem);
}

.page-hero:has(+ .category-page) .page-hero__inner {
  gap: 1rem;
  align-items: center;
  min-height: 11rem;
}

.page-hero:has(+ .category-page) .breadcrumb {
  margin-bottom: 0.5rem;
}

.page-hero:has(+ .category-page) h1,
.page-hero:has(+ .category-page) h2 {
  margin-bottom: 0.35rem;
}

.page-hero:has(+ .category-page) .page-hero__illust {
  margin: 0;
  width: 100%;
  height: 13rem;
  max-height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.page-hero:has(+ .category-page) .page-hero__illust img {
  display: block;
  width: auto;
  max-width: min(100%, 26rem);
  height: auto;
  max-height: 13rem;
  margin-inline: auto;
  object-fit: contain;
  transform: none;
}

.page-hero:has(+ .category-page) .page-hero__illust--food img {
  max-width: min(100%, 26rem);
  max-height: 13rem;
  transform: scale(1.28);
  transform-origin: center center;
}

.page-hero:has(+ .category-page) .page-hero__illust--raster img {
  max-width: min(100%, 26rem);
  max-height: 13rem;
  transform: scale(1.08);
  transform-origin: center center;
}

.page-hero:has(+ .category-page) .page-hero__illust--care {
  height: 15rem;
  max-height: 15rem;
}

.page-hero:has(+ .category-page) .page-hero__illust--care img {
  max-width: min(100%, 28rem);
  max-height: 15rem;
  transform: scale(1.22);
  transform-origin: center center;
}

@media (min-width: 768px) {
  .page-hero:has(+ .category-page) {
    min-height: calc(var(--header-h) + 17rem);
  }

  .page-hero:has(+ .category-page) .page-hero__inner {
    grid-template-columns: 1fr min(44%, 28rem);
    gap: 1.5rem;
    min-height: 12rem;
  }

  .page-hero:has(+ .category-page) .page-hero__illust {
    height: 14rem;
    max-height: 14rem;
    width: 100%;
  }

  .page-hero:has(+ .category-page) .page-hero__illust img {
    max-width: min(100%, 28rem);
    max-height: 14rem;
  }

  .page-hero:has(+ .category-page) .page-hero__illust--food img {
    max-width: min(100%, 28rem);
    max-height: 14rem;
    transform: scale(1.24);
  }

  .page-hero:has(+ .category-page) .page-hero__illust--raster img {
    max-width: min(100%, 28rem);
    max-height: 14rem;
    transform: scale(1.08);
  }

  .page-hero:has(+ .category-page) .page-hero__illust--care {
    height: 16rem;
    max-height: 16rem;
  }

  .page-hero:has(+ .category-page) .page-hero__illust--care img {
    max-width: min(100%, 32rem);
    max-height: 16rem;
    transform: scale(1.18);
  }
}

@media (min-width: 1024px) {
  .page-hero:has(+ .category-page) {
    min-height: calc(var(--header-h) + 19rem);
  }

  .page-hero:has(+ .category-page) .page-hero__inner {
    grid-template-columns: 1fr min(46%, 32rem);
    min-height: 14rem;
  }

  .page-hero:has(+ .category-page) .page-hero__illust {
    height: 16rem;
    max-height: 16rem;
  }

  .page-hero:has(+ .category-page) .page-hero__illust img {
    max-width: min(100%, 32rem);
    max-height: 16rem;
  }

  .page-hero:has(+ .category-page):has(.page-hero__illust--food) .page-hero__inner {
    grid-template-columns: 1fr min(48%, 34rem);
  }

  .page-hero:has(+ .category-page) .page-hero__illust--food {
    height: 17.5rem;
    max-height: 17.5rem;
  }

  .page-hero:has(+ .category-page) .page-hero__illust--food img {
    max-width: min(100%, 34rem);
    max-height: 17.5rem;
    transform: scale(1.32);
  }

  .page-hero:has(+ .category-page) .page-hero__illust--raster {
    height: 15rem;
    max-height: 15rem;
  }

  .page-hero:has(+ .category-page) .page-hero__illust--raster img {
    max-width: min(100%, 30rem);
    max-height: 15rem;
    transform: scale(0.96);
  }

  .page-hero:has(+ .category-page):has(.page-hero__illust--care) .page-hero__inner {
    grid-template-columns: 1fr min(48%, 35rem);
  }

  .page-hero:has(+ .category-page) .page-hero__illust--care {
    height: 18rem;
    max-height: 18rem;
  }

  .page-hero:has(+ .category-page) .page-hero__illust--care img {
    max-width: min(100%, 35rem);
    max-height: 18rem;
    transform: scale(1.18);
  }
}

.page-hero__inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.page-hero__content {
  min-width: 0;
}

.page-hero__illust {
  margin: 0;
}

.page-hero__illust img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .page-hero__inner {
    grid-template-columns: 1fr min(38%, 300px);
    gap: 1.5rem;
  }

  .page-hero__illust img {
    max-width: 300px;
  }
}

.page-hero h1,
.page-hero h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.page-hero .breadcrumb {
  margin-bottom: 0.65rem;
}

.page-hero p {
  margin: 0;
  line-height: 1.6;
}

.page-hero p + p {
  margin-top: 0.45rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--blue-600);
}

/* ── Contact hub ── */
.contact-hub {
  padding-bottom: 4rem;
}

.contact-hub-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .contact-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.contact-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-400);
  color: inherit;
}

.contact-hub-card--company {
  background: linear-gradient(160deg, var(--green-100) 0%, var(--white) 55%);
}

.contact-hub-card-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-600);
}

.contact-hub-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--navy);
}

.contact-hub-card-desc {
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--slate);
}

.contact-hub-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-600);
}

.contact-hub-card:hover .contact-hub-card-cta {
  color: var(--green-600);
}

.contact-hub-tel {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--slate);
}

.contact-hub-tel a {
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
}

.contact-hub-tel a:hover {
  color: var(--green-600);
}

.contact-alt-link {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.contact-alt-link a {
  font-weight: 600;
  color: var(--blue-600);
}

/* ── Contact form ── */
.form-layout {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.form-layout--single {
  max-width: 40rem;
}

@media (min-width: 900px) {
  .form-layout:not(.form-layout--single) {
    grid-template-columns: 1fr 1fr;
  }
}

.form-required {
  font-weight: 400;
  color: var(--slate);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group label ruby rt {
  font-size: 0.65em;
  color: var(--slate);
  font-weight: 400;
}

/* 求職者フォーム：語単位の ruby で字間のムラを抑える */
.form-layout--furigana .form-group label {
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.form-layout--furigana .form-group label ruby {
  ruby-align: center;
  ruby-position: over;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background-color: var(--input-bg);
  color: var(--navy);
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--input-border-hover);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 148, 196, 0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8a9fad;
}

.form-group input[type="file"] {
  padding: 0.6rem 0.85rem;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--input-border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.form-group input[type="file"]::file-selector-button:hover {
  border-color: var(--blue-500);
  background: var(--blue-100);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.35rem;
}

/* Form branch, resume, server submit */
.form-branch {
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
}

.form-branch__lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.form-branch__btn {
  display: inline-block;
}

.form-branch__note {
  margin: 0 0 1.25rem;
}

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-layout--resume {
  max-width: 52rem;
}

.form-visa-panel[hidden] {
  display: none;
}

.form-visa-panel .form-row {
  margin-top: 0.75rem;
}

.form-visa-panel--quals {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--green-100);
  border-radius: var(--radius);
  border: 1px solid var(--green-400);
}

.form-visa-panel__hint {
  margin: 0 0 0.75rem;
}

.form-subsection__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.form-required-notice {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--blue-100);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.form-privacy-consent {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}

.form-privacy-consent + .btn,
.form-privacy-consent + .btn-primary,
.form-privacy-consent + button[type="submit"] {
  margin-top: 0.5rem;
}

.form-hint + .form-privacy-consent {
  margin-top: 1.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--navy);
}

.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--green-500);
  cursor: pointer;
}

.form-checkbox__text a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checkbox__text a:hover {
  color: var(--green-600);
}

.legal-page p {
  color: var(--slate);
}

.legal-bilingual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-bilingual__section {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.legal-bilingual__heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(180deg, rgba(18, 166, 127, 0.1), rgba(26, 148, 196, 0.06));
  border-bottom: 1px solid var(--gray-100);
}

.legal-bilingual__heading-ja,
.legal-bilingual__heading-en {
  margin: 0;
}

.legal-bilingual__heading-en {
  padding-left: 1rem;
  border-left: 1px solid rgba(18, 166, 127, 0.2);
}

.legal-bilingual__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--gray-100);
}

.legal-bilingual__row:last-child {
  border-bottom: none;
}

.legal-bilingual__col {
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate);
}

.legal-bilingual__col--ja {
  border-right: 1px solid var(--gray-100);
}

.legal-bilingual__sub {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.legal-bilingual__col p {
  margin: 0 0 0.65rem;
}

.legal-bilingual__col p:last-child,
.legal-bilingual__col ul:last-child {
  margin-bottom: 0;
}

.legal-bilingual__col ul,
.legal-bilingual__col ol {
  margin: 0;
  padding-left: 1.15rem;
}

.legal-bilingual__col li {
  margin-bottom: 0.35rem;
}

.legal-bilingual__col li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .legal-bilingual__heading,
  .legal-bilingual__row {
    grid-template-columns: 1fr;
  }

  .legal-bilingual__heading-en {
    padding-left: 0;
    padding-top: 0.35rem;
    border-left: none;
    border-top: 1px solid rgba(18, 166, 127, 0.2);
  }

  .legal-bilingual__col--ja {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
  }

  .legal-bilingual__row:last-child .legal-bilingual__col--ja:last-child {
    border-bottom: none;
  }
}

.form-section {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}

.form-section legend {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding: 0;
}

.form-row {
  display: grid;
  gap: 0.75rem;
  align-items: end;
}

.form-row .form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.form-row .form-group label {
  min-height: 2.85rem;
  margin-bottom: 0.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.form-row .form-group label .label-ja {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.form-row .form-group label .label-en {
  font-size: 0.675rem;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.2;
}

.repeat-item > .form-group label {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.repeat-item > .form-group label .label-ja {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.repeat-item > .form-group label .label-en {
  font-size: 0.675rem;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.2;
}

.repeat-item > .form-group textarea {
  min-height: 4.5rem;
}

.form-row .form-group input,
.form-row .form-group select {
  min-height: 2.875rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.form-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-row--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.form-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .form-row--2,
  .form-row--3,
  .form-row--4,
  .form-row--5 {
    grid-template-columns: 1fr;
  }
}

.postal-lookup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.postal-lookup input {
  flex: 1 1 10rem;
  min-width: 0;
}

.postal-lookup-status.form-alert--error {
  color: var(--coral, #c0392b);
}

.repeat-list {
  display: grid;
  gap: 1rem;
}

.repeat-item {
  padding: 1rem;
  border: 1px dashed var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.en-preview {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.en-preview h3 {
  font-family: var(--font-en);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  margin: 0 0 1rem;
}

.en-preview dl {
  margin: 0;
  font-size: 0.9rem;
}

.en-preview dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.75rem;
}

.en-preview dt:first-child {
  margin-top: 0;
}

.en-preview dd {
  margin: 0.15rem 0 0;
  color: var(--slate);
}

.en-preview .placeholder {
  color: var(--slate);
  font-style: italic;
  opacity: 0.7;
}

/* ── Content blocks (sub pages) ── */
.content-block {
  max-width: 48rem;
}

.content-block h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-100);
}

.content-block p,
.content-block li {
  color: var(--slate);
}

.service-block__header {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.service-block__titles .section-label {
  margin-bottom: 0.35rem;
}

.service-block__titles h2 {
  margin: 0;
  font-size: 1.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-100);
}

.service-block__illust {
  margin: 0;
}

.service-block__illust img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .service-block__header {
    grid-template-columns: 1fr min(38%, 280px);
    gap: 2rem;
  }

  .service-block__illust img {
    max-width: 280px;
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  padding: 0.35rem 0.85rem;
  background: var(--green-100);
  color: var(--green-600);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── サービス詳細（技人国など） ── */
.service-spec {
  margin: 1rem 0 0;
  padding: 0;
}

.service-spec__row {
  margin: 0 0 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--gray-100);
}

.service-spec__row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-spec dt {
  margin: 0 0 0.4rem;
}

.service-spec dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--navy);
}

.service-spec__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.service-spec__dd--options {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.service-spec__or {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
}

.service-subheading {
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--green-100);
}

.service-role-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-role-list li {
  padding: 0.65rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
  border-bottom: 1px solid var(--gray-100);
}

.service-role-list li:last-child {
  border-bottom: none;
}

.service-role-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  color: var(--navy);
}

.service-hscroll,
.service-fee-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

.service-fee-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 0.5rem;
}

.service-hscroll--flow {
  margin-top: 0.35rem;
}

.student-flow-scroll-body {
  width: 100%;
}

.student-flow-scroll-body .student-flow-period {
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}

.student-flow-scroll-body .student-flow-cards {
  width: 100%;
}

.service-fee-table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
}

.service-fee-table th,
.service-fee-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--gray-100);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  color: var(--slate);
  background: var(--white);
}

.service-fee-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--white);
}

.service-fee-table tbody th {
  width: 28%;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
}

.service-fee-table__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--slate);
}

.service-industry-lead {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

.service-industry-more {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--slate);
}

.service-fee-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--slate);
}

.service-fee-table--wide {
  min-width: 42rem;
}

.service-fee-table--wide thead th {
  white-space: nowrap;
}

.service-fee-table--wide tbody th {
  width: 11%;
  min-width: 6.5rem;
}

.service-fee-table--wide td:last-child {
  min-width: 13rem;
}

.service-fee-services {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.service-fee-services li {
  margin-bottom: 0.2rem;
}

.service-fee-services li:last-child {
  margin-bottom: 0;
}

.student-lead {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.student-model-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .student-model-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.student-model-card {
  padding: 1rem 1rem 0.9rem;
  border: 1px solid var(--gray-100);
  border-radius: 0.65rem;
  background: var(--white);
}

.student-model-card--managed {
  border-left: 4px solid var(--blue-500);
}

.student-model-card--referral {
  border-left: 4px solid var(--green-500);
}

.student-model-num {
  margin: 0 0 0.25rem;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.student-model-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--navy);
}

.student-model-points {
  margin: 0;
  padding-left: 1rem;
}

.student-model-points li {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.student-model-points li:last-child {
  margin-bottom: 0;
}

.student-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  margin-top: 0.25rem;
}

.student-diagram-image {
  margin: 0;
  border: 1px solid var(--gray-100);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.student-diagram-image img {
  display: block;
  width: 100%;
  height: auto;
}

.student-support-visual {
  margin-top: 0.25rem;
  padding: 0.95rem;
  border: 1px solid var(--gray-100);
  border-radius: 0.75rem;
  background: #f7f7f7;
}

.student-support-visual__grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 0.85rem;
  align-items: end;
}

.student-support-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.student-support-col--center {
  justify-content: flex-end;
}

.student-support-circle {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 45, 61, 0.06);
}

.student-support-circle--store {
  background: #ffe4ea;
}

.student-support-circle--student {
  background: #e0f0ff;
}

.student-support-circle--qsta {
  background: #ffeaa0;
}

.student-support-circle__title {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}

.student-support-circle__icon {
  font-size: 3rem;
  line-height: 1;
}

.student-support-circle__icon--q {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--navy);
}

.student-support-balloons {
  width: 100%;
  display: grid;
  gap: 0.28rem;
}

.student-support-balloon {
  margin: 0;
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--navy);
}

.student-support-balloon--gray {
  background: #ececec;
}

.student-support-balloon--blue {
  background: #d0e7ff;
}

.student-support-balloon--middle-gray,
.student-support-balloon--middle-blue {
  border-radius: 0.9rem;
  padding: 0.45rem 0.65rem;
  text-align: center;
  font-size: 0.78rem;
}

.student-support-balloon--middle-gray {
  background: #cfcfcf;
}

.student-support-balloon--middle-blue {
  background: #9ecbff;
}

.student-support-box {
  width: 100%;
  background: #ffdddd;
  border: 1px solid #ff9999;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
}

.student-support-box ul {
  margin: 0;
  padding-left: 1.05rem;
}

.student-support-box li {
  margin: 0.1rem 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.student-support-banner {
  margin: 0.95rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 999px;
  background: #ff4b4b;
  color: var(--white);
  text-align: center;
  font-weight: 700;
}

.student-diagram-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.student-diagram-zoom img {
  width: 100%;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
}

body.is-lightbox-open {
  overflow: hidden;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 45, 61, 0.8);
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 88vh;
  margin: 4vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.image-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 45, 61, 0.75);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.student-diagram-node {
  padding: 0.9rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-100);
  background: var(--white);
}

.student-diagram-node--shop {
  background: rgba(74, 98, 114, 0.08);
}

.student-diagram-node--qsta {
  background: linear-gradient(180deg, rgba(18, 166, 127, 0.12), rgba(26, 148, 196, 0.12));
}

.student-diagram-node--student {
  background: rgba(26, 148, 196, 0.12);
}

.student-diagram-node-title {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}

.student-diagram-node p:last-child {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--slate);
}

.student-diagram-arrow {
  position: relative;
  margin: 0;
  padding: 0.25rem 0.35rem;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
  color: var(--slate);
}

.student-diagram-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.student-diagram-arrow--left-to-center {
  grid-column: 1;
}

.student-diagram-arrow--center-to-right {
  grid-column: 2;
}

.student-diagram-arrow--right-to-left {
  grid-column: 3;
  color: var(--green-600);
}

.student-diagram-arrow--right-to-left::after {
  left: -0.45rem;
  right: auto;
  border-top: none;
  border-right: none;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.student-flow-group {
  margin-top: 0.85rem;
  padding: 0.85rem 0.85rem 1rem;
  border: 1px solid rgba(18, 166, 127, 0.22);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(18, 166, 127, 0.08), rgba(18, 166, 127, 0.03));
}

.student-flow-group + .student-flow-group {
  margin-top: 0.85rem;
}

.student-flow-group--dispatch {
  border-color: rgba(26, 148, 196, 0.26);
  background: linear-gradient(180deg, rgba(26, 148, 196, 0.1), rgba(26, 148, 196, 0.03));
}

.student-flow-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--navy);
}

.student-flow-period {
  position: relative;
  margin: 0.35rem 0 0.75rem;
  padding: 0.25rem 0.2rem 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
  color: #bc6b27;
}

.student-flow-period::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: 0.18rem;
  height: 2px;
  background: #f08a31;
}

.student-flow-period::before {
  content: "";
  position: absolute;
  right: 0.2rem;
  bottom: 0.18rem;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid #f08a31;
  border-right: 2px solid #f08a31;
  transform: translateY(50%) rotate(45deg);
}

.student-flow-period--basic::after {
  right: 41%;
}

.student-flow-period--basic::before {
  right: 41%;
}

.student-flow-period--dispatch::after {
  right: 49.5%;
}

.student-flow-period--dispatch::before {
  right: 49.5%;
}

.student-flow-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.student-flow-cards li {
  position: relative;
  margin: 0;
  min-height: 4.4rem;
  padding: 0.65rem 0.85rem 0.65rem 0.75rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #ff9a47, #ff6d00);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  text-align: center;
}

.student-flow-cards li::after {
  display: none;
}

.student-flow-cards li:last-child::after {
  display: none;
}

.student-flow-cards--dispatch {
  grid-template-columns: 1.35fr 0.95fr 1.2fr 2fr 1.5fr;
  margin-bottom: 0.6rem;
  width: 100%;
}

.student-flow-cards--dispatch li:nth-child(1) {
  grid-column: 1 / 4;
}

.student-flow-cards--dispatch li:nth-child(2) {
  grid-column: 4 / 5;
}

.student-flow-cards--dispatch li {
  background: linear-gradient(135deg, #f5a06b, #f5762b);
}

.student-flow-cards--arrow li {
  min-height: 3.5rem;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 1.1rem) 0, 100% 50%, calc(100% - 1.1rem) 100%, 0 100%, 0.85rem 50%);
  padding: 0.65rem 1.05rem 0.65rem 1rem;
}

.student-flow-cards--arrow li:first-child {
  clip-path: polygon(0 0, calc(100% - 1.1rem) 0, 100% 50%, calc(100% - 1.1rem) 100%, 0 100%);
}

.student-flow-cards--arrow li:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0.85rem 50%);
}

.student-flow-cards--dispatch.student-flow-cards--arrow li:last-child {
  clip-path: polygon(0 0, calc(100% - 1.1rem) 0, 100% 50%, calc(100% - 1.1rem) 100%, 0 100%, 0.85rem 50%);
}

.student-flow-cards--arrow li:first-child:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.student-flow-cards--arrow li span[data-lang] {
  width: 100%;
  text-align: center;
}

.student-flow-group--dispatch .student-flow-cards--arrow {
  gap: 0.04rem;
}

.student-flow-group:not(.student-flow-group--dispatch) .student-flow-cards.student-flow-cards--arrow {
  gap: 0.01rem;
}

.student-flow-group:not(.student-flow-group--dispatch) .student-flow-cards.student-flow-cards--arrow li:nth-child(1) {
  background: linear-gradient(135deg, #f8bf9b, #f2a16a);
}

.student-flow-group:not(.student-flow-group--dispatch) .student-flow-cards.student-flow-cards--arrow li:nth-child(2) {
  background: linear-gradient(135deg, #f5a674, #f2893e);
}

.student-flow-group:not(.student-flow-group--dispatch) .student-flow-cards.student-flow-cards--arrow li:nth-child(3) {
  background: linear-gradient(135deg, #f8985c, #f27622);
}

.student-flow-group:not(.student-flow-group--dispatch) .student-flow-cards.student-flow-cards--arrow li:nth-child(4) {
  background: linear-gradient(135deg, #ff8a3a, #ff6400);
}

.student-flow-group:not(.student-flow-group--dispatch) .student-flow-cards.student-flow-cards--arrow li:nth-child(5) {
  background: linear-gradient(135deg, #ff7a2b, #f24b00);
}

.student-flow-group--dispatch .student-flow-cards--dispatch.student-flow-cards--arrow li:nth-child(1) {
  background: linear-gradient(135deg, #f7b489, #f18b49);
}

.student-flow-group--dispatch .student-flow-cards--dispatch.student-flow-cards--arrow li:nth-child(2) {
  background: linear-gradient(135deg, #ff9a47, #ff6d00);
}

.student-flow-group--dispatch .student-flow-cards.student-flow-cards--arrow:not(.student-flow-cards--dispatch) {
  gap: 0.04rem;
}

.student-flow-group--dispatch .student-flow-cards.student-flow-cards--arrow:not(.student-flow-cards--dispatch) li:nth-child(1) {
  background: linear-gradient(135deg, #f8bf9b, #f2a16a);
}

.student-flow-group--dispatch .student-flow-cards.student-flow-cards--arrow:not(.student-flow-cards--dispatch) li:nth-child(2) {
  background: linear-gradient(135deg, #f5a674, #f2893e);
}

.student-flow-group--dispatch .student-flow-cards.student-flow-cards--arrow:not(.student-flow-cards--dispatch) li:nth-child(3) {
  background: linear-gradient(135deg, #f8985c, #f27622);
}

.student-flow-group--dispatch .student-flow-cards.student-flow-cards--arrow:not(.student-flow-cards--dispatch) li:nth-child(4) {
  background: linear-gradient(135deg, #ff8a3a, #ff6400);
}

.student-flow-group--dispatch .student-flow-cards.student-flow-cards--arrow:not(.student-flow-cards--dispatch) li:nth-child(5) {
  background: linear-gradient(135deg, #ff7a2b, #f24b00);
}

.student-flow-step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.9rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: var(--white);
  color: #d45f0a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.student-flow-group--dispatch .student-flow-cards:not(.student-flow-cards--dispatch) {
  grid-template-columns: 1.3fr 0.9fr 1.35fr 1.95fr 1.5fr;
}

.student-compare-table {
  min-width: 38rem;
}

.student-fee-table {
  min-width: 42rem;
}

.student-fee-table tbody th {
  width: 19%;
}

.student-fee-table th,
.student-fee-table td {
  font-size: 0.86rem;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding: 0.7rem 0.85rem;
}

.student-fee-table .service-fee-services {
  font-size: 0.85rem;
}

.student-compare-table th,
.student-compare-table td {
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: anywhere;
}

.student-compare-table th,
.student-compare-table td {
  padding: 0.58rem 0.62rem;
}

.student-compare-table tbody th {
  width: 19%;
}

.student-compare-table thead th.student-compare-head--direct {
  background: var(--gray-100);
  color: var(--navy);
}

.student-compare-table thead th.student-compare-head--direct,
.student-compare-table tbody td:nth-child(2) {
  border-left: 1px solid var(--gray-100);
}

.student-compare-table thead th:nth-child(3),
.student-compare-table tbody td:nth-child(3) {
  background: rgba(26, 148, 196, 0.14);
  box-shadow: inset 1px 0 0 var(--white), inset -1px 0 0 var(--white);
}

.student-compare-table thead th:nth-child(4),
.student-compare-table tbody td:nth-child(4) {
  background: rgba(18, 166, 127, 0.14);
  box-shadow: inset 1px 0 0 var(--white), inset -1px 0 0 var(--white);
}

.student-compare-table thead th:nth-child(3),
.student-compare-table thead th:nth-child(4) {
  font-weight: 700;
  border-bottom-color: var(--white);
}

.student-compare-table thead th.student-compare-head--managed {
  background: var(--blue-600);
  color: var(--white);
}

.student-compare-table thead th.student-compare-head--referral {
  background: var(--green-600);
  color: var(--white);
}

.student-compare-table tbody td:nth-child(3),
.student-compare-table tbody td:nth-child(4) {
  font-weight: 600;
  color: var(--navy);
  border-bottom-color: var(--white);
}

.student-issues-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.student-issues-list li {
  position: relative;
  margin: 0;
  padding: 0.55rem 0.8rem 0.55rem 2rem;
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--slate);
}

.student-issues-list li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.95rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green-500);
}

@media (max-width: 640px) {
  .student-diagram {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .student-support-visual {
    padding: 0.75rem;
  }

  .student-support-visual__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .student-support-circle {
    width: 10.5rem;
    height: 10.5rem;
  }

  .student-support-balloon {
    font-size: 0.7rem;
  }

  .student-support-box li {
    font-size: 0.75rem;
  }

  .student-diagram-arrow {
    grid-column: auto;
    padding: 0 0.25rem 0.15rem;
  }

  .student-diagram-arrow::after {
    top: auto;
    bottom: -0.1rem;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }

  .student-diagram-arrow--right-to-left::after {
    left: 50%;
    bottom: -0.1rem;
    transform: translateX(-50%) rotate(-45deg);
  }

  .student-flow-group {
    padding: 0.7rem;
  }

  .student-flow-title {
    font-size: 0.95rem;
  }

  .student-flow-period {
    font-size: 0.84rem;
  }
}

/* Category industry pages (food, care, hotel template) */
.category-page .content-block {
  max-width: 52rem;
}

.category-section-title {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--color-primary-dark, #0d4d3a);
}

.category-section-lead {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted, #4a5568);
  line-height: 1.65;
}

.category-service-card {
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 0.5rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.category-service-card:last-of-type {
  margin-bottom: 0;
}

.category-service-card--tokutei {
  border-left: 4px solid var(--color-primary, #1a7f5a);
}

.category-service-card--student {
  border-left: 4px solid var(--color-accent, #2563eb);
}

.category-service-card--gijinkoku {
  border-left: 4px solid #6d28d9;
}

.category-service-card__badge--gijinkoku {
  color: #6d28d9;
}

.category-service-card--kaigo {
  border-left: 4px solid #ec4899;
}

.category-service-card__badge--kaigo {
  color: #ec4899;
}

.category-service-card__head {
  margin-bottom: 1rem;
}

.category-service-card__head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.category-service-card__badge {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-primary, #1a7f5a);
  font-weight: 600;
}

.category-service-card__text {
  margin: 1rem 0 0.75rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.category-service-points {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.65;
  font-size: 0.9375rem;
}

.category-service-points li {
  margin-bottom: 0.35rem;
}

.category-student-models {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 640px) {
  .category-student-models {
    grid-template-columns: 1fr 1fr;
  }
}

.category-student-model {
  padding: 1rem 1.15rem;
  background: var(--color-bg-alt, #f7fafc);
  border-radius: 0.375rem;
  border: 1px solid var(--color-border, #e2e8f0);
}

.category-student-model h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-accent, #2563eb);
}

.category-student-model p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.category-fee-table {
  font-size: 0.875rem;
}

/* Optional: 採用条件 — add on care/hotel only */
.category-section--hiring {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, #e2e8f0);
}

.category-section--hiring h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.category-hiring-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.65;
  font-size: 0.9375rem;
}

.category-hiring-blocks {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .category-hiring-blocks {
    grid-template-columns: 1fr 1fr;
  }
}

.category-hiring-block {
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 0.375rem;
}

.category-hiring-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-primary-dark, #0d4d3a);
}

.category-hiring-block p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
}

.category-case-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  background: var(--color-bg-alt, #f7fafc);
  border-radius: 0.375rem;
}

.category-flow-period {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary, #1a7f5a);
}

.category-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0.75rem;
}

.category-flow-steps li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  justify-items: center;
  row-gap: 0.5rem;
  padding: 0.85rem 0.65rem 1.15rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 0.375rem;
  min-height: 10.5rem;
}

.category-flow-steps__illust {
  grid-row: 1;
  margin: 0;
  width: 100%;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.category-flow-steps__illust img {
  display: block;
  width: 100%;
  max-width: 5.5rem;
  height: auto;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .category-flow-steps__illust {
    min-height: 5rem;
  }

  .category-flow-steps__illust img {
    max-width: 6.25rem;
  }
}

@media (min-width: 640px) {
  .category-flow-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .category-flow-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.category-flow-steps__pill {
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  box-sizing: border-box;
  height: 1.375rem;
  min-width: 3.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary, #1a7f5a), var(--color-accent, #2563eb));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  font-family: var(--font-display, "DM Sans", sans-serif);
  text-transform: lowercase;
}

.category-flow-steps__text {
  grid-row: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: start;
  width: 100%;
  min-height: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 500;
  text-align: center;
}

@supports not (grid-template-rows: subgrid) {
  .category-flow-steps {
    grid-template-rows: none;
  }

  .category-flow-steps li {
    grid-row: auto;
    grid-template-rows: auto auto auto;
  }
}

/* 職種別：ご利用の流れ — スマホは横長カードを縦積み */
@media (max-width: 639px) {
  .category-flow-steps {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
  }

  .category-flow-steps li {
    position: relative;
    display: block;
    grid-template-columns: unset;
    grid-template-rows: unset;
    grid-row: auto;
    text-align: left;
    padding: 1rem 1.05rem 1rem calc(5.25rem + 1.05rem + 0.9rem);
    min-height: 0;
    border-radius: var(--radius);
  }

  .category-flow-steps li:not(:last-child) {
    margin-bottom: 0.45rem;
  }

  .category-flow-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.45rem;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.45rem solid transparent;
    border-right: 0.45rem solid transparent;
    border-top: 0.45rem solid var(--green-500);
    pointer-events: none;
  }

  .category-flow-steps__illust {
    position: absolute;
    left: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5.25rem;
    min-height: 0;
    margin: 0;
  }

  .category-flow-steps__illust img {
    max-width: 5.25rem;
  }

  .category-flow-steps__pill {
    display: inline-flex;
    margin: 0 0 0.35rem;
  }

  .category-flow-steps__text {
    display: block;
    margin: 0;
    text-align: left;
    min-height: 0;
    white-space: nowrap;
  }

  .category-flow-steps__text br {
    display: none;
  }
}

.category-flow-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted, #4a5568);
  line-height: 1.6;
}

.category-cta {
  padding: 2rem 0 3rem;
}

.category-cta .btn {
  display: inline-block;
}

/* i18n: hide non-active language text (JP/EN buttons stay visible) */
html[lang="en"] [data-lang="ja"]:not(.always-show):not(.lang-switch *),
html[lang="ja"] [data-lang="en"]:not(.always-show):not(.lang-switch *) {
  display: none !important;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: none;
}

@media (min-width: 640px) {
  .floating-cta {
    display: block;
  }
}
