:root {
  --service-primary: #007cff;
  --service-navy-900: #001833;
  --service-navy-800: #003166;
  --service-navy-700: #004a99;
  --service-pale: #e6f2ff;
  --training-line: #d9e2ec;
  --training-muted: #5b6775;
}

html {
  scroll-behavior: smooth;
}

body[data-training-page] {
  margin: 0;
  overflow-x: clip;
  background: var(--service-navy-900);
}

body[data-training-page].service-menu-open {
  overflow: hidden;
}

body[data-training-page] a:focus-visible,
body[data-training-page] button:focus-visible {
  outline: 2px solid var(--service-primary);
  outline-offset: 4px;
}

.service-header {
  will-change: transform, background-color;
}

.service-header.service-header-scrolled {
  background: linear-gradient(90deg, rgb(230 242 255 / 95%), rgb(255 255 255 / 95%), rgb(230 242 255 / 95%)) !important;
  box-shadow: 0 1px 0 rgb(0 49 102 / 10%);
  backdrop-filter: blur(12px);
}

.service-header.service-header-hidden {
  transform: translateY(-100%) !important;
}

.service-case-nav {
  position: relative;
}

.service-case-caret {
  display: inline-block;
  margin-left: 5px;
  font-size: 8px;
  opacity: 0.55;
  transform: translateY(-1px);
  transition: transform 200ms ease;
}

.service-case-dropdown {
  position: absolute;
  top: calc(100% + 11px);
  left: 50%;
  z-index: 50;
  min-width: 238px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 7px);
  border: 1px solid rgb(0 74 153 / 12%);
  border-radius: 14px;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 18px 50px rgb(0 24 51 / 16%), 0 2px 8px rgb(0 24 51 / 8%);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.service-case-dropdown::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 12px;
  content: "";
}

.service-case-nav:hover .service-case-dropdown,
.service-case-nav:focus-within .service-case-dropdown,
.service-case-nav.service-case-open .service-case-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.service-case-nav:hover .service-case-caret,
.service-case-nav:focus-within .service-case-caret,
.service-case-nav.service-case-open .service-case-caret {
  transform: translateY(-1px) rotate(180deg);
}

.service-case-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.service-case-dropdown a:hover,
.service-case-dropdown a:focus-visible {
  color: var(--service-primary);
  background: rgb(0 124 255 / 8%);
}

.service-case-dropdown small {
  display: block;
  margin-top: 2px;
  color: #9ca3af;
  font-size: 10.5px;
  font-weight: 400;
}

.service-mobile-overlay,
.service-mobile-menu {
  display: none !important;
}

.training-main {
  isolation: isolate;
}

.training-shell {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
}

.training-shell-wide {
  width: min(100% - 64px, 1360px);
}

.training-hero {
  position: relative;
  display: grid;
  min-height: 680px;
  padding-top: 72px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(122deg, var(--service-navy-900) 0%, #002b58 72%, var(--service-navy-800) 100%);
}

.training-hero::before,
.training-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.training-hero::before {
  top: 20%;
  right: -10%;
  width: 48vw;
  height: 48vw;
  border: 1px solid rgb(128 191 255 / 16%);
  border-radius: 50%;
}

.training-hero::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgb(128 191 255 / 22%);
}

.training-hero .training-shell {
  position: relative;
  z-index: 1;
  padding: 76px 0 88px;
}

.training-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-family: var(--font-lato), Lato, "Noto Sans JP", sans-serif;
  font-size: clamp(3rem, 5.7vw, 5.7rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.training-hero-lead {
  max-width: 930px;
  margin: 44px 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 500;
  line-height: 2.05;
}

.training-hero-lead strong {
  color: #fff;
  font-weight: 800;
}

.training-hero-lead small {
  display: block;
  margin-top: 13px;
  color: #80bfff;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.8;
}

.training-section {
  position: relative;
  z-index: 1;
  padding: 112px 0 120px;
  background: #fff;
}

.training-section-title {
  margin: 0 0 48px;
  color: var(--service-navy-900);
  font-family: var(--font-lato), Lato, "Noto Sans JP", sans-serif;
  font-size: clamp(2.15rem, 3.8vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.training-section-title::after {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 20px;
  background: var(--service-primary);
  content: "";
}

.training-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--service-navy-900);
  box-shadow: 0 28px 70px rgb(0 24 51 / 12%);
}

.training-price-card {
  min-width: 0;
  padding: 48px 48px 50px;
}

.training-price-card > p {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.training-price-card h3 {
  min-height: 106px;
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.55rem);
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.training-price-card dl {
  margin: 36px 0 0;
}

.training-price-card dl > div {
  display: grid;
  padding: 22px 0;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid currentColor;
}

.training-price-card dl > div:last-child {
  border-bottom: 1px solid currentColor;
}

.training-price-card dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.training-price-card dd {
  margin: 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.9;
}

.training-price-card dd strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-lato), Lato, "Noto Sans JP", sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.training-price-card-dark {
  color: #fff;
  background: var(--service-navy-900);
}

.training-price-card-dark > p {
  color: #80bfff;
}

.training-price-card-dark dl > div {
  border-color: rgb(255 255 255 / 17%);
}

.training-price-card-light {
  color: var(--service-navy-900);
  background: #fff;
}

.training-price-card-light > p {
  color: var(--service-primary);
}

.training-price-card-light dl > div {
  border-color: rgb(0 24 51 / 15%);
}

.training-notes {
  margin-top: 30px;
  padding: 25px 28px;
  border-left: 3px solid var(--service-primary);
  color: var(--training-muted);
  background: #f5f8fb;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
}

.training-notes p {
  margin: 0;
}

.training-notes p + p {
  margin-top: 7px;
}

.training-aid {
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  background: #f7f9fb;
}

.training-aid-steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--training-line);
  border-bottom: 1px solid var(--training-line);
  list-style: none;
}

.training-aid-steps li {
  min-width: 0;
  padding: 38px 34px 43px;
}

.training-aid-steps li + li {
  border-left: 1px solid var(--training-line);
}

.training-aid-steps li > span {
  display: block;
  color: var(--service-primary);
  font-family: var(--font-lato), Lato, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.training-aid-steps h3 {
  margin: 25px 0 0;
  color: var(--service-navy-900);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.55;
}

.training-aid-steps p {
  margin: 14px 0 0;
  color: var(--training-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.9;
}

.training-curriculum {
  background: #fff;
}

.training-course {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--training-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 52px rgb(0 24 51 / 8%);
}

.training-course + .training-course {
  margin-top: 58px;
}

.training-course-header {
  display: grid;
  padding: 32px 38px;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  color: #fff;
  background: var(--service-navy-900);
}

.training-course-header p {
  margin: 0;
  color: #80bfff;
  font-family: var(--font-lato), Lato, "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.training-course-header h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  font-weight: 850;
  line-height: 1.45;
}

.training-course-facts {
  display: grid;
  gap: 14px;
  padding: 29px 38px;
  border-bottom: 1px solid var(--training-line);
  background: #f7f9fb;
}

.training-course-facts p,
.training-exercises,
.training-completion {
  margin: 0;
  color: #465363;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.9;
}

.training-course-facts strong,
.training-exercises strong,
.training-completion strong {
  color: var(--service-navy-800);
  font-weight: 800;
}

.training-curriculum-pc table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #253244;
}

.training-curriculum-pc th,
.training-curriculum-pc td {
  padding: 22px 19px;
  vertical-align: top;
  border-right: 1px solid var(--training-line);
  border-bottom: 1px solid var(--training-line);
  font-size: 11.5px;
  line-height: 1.8;
  text-align: left;
}

.training-curriculum-pc tr > :last-child {
  border-right: 0;
}

.training-curriculum-pc tbody tr:last-child > * {
  border-bottom: 0;
}

.training-curriculum-pc thead th {
  padding-top: 15px;
  padding-bottom: 15px;
  color: var(--service-navy-800);
  background: var(--service-pale);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.training-curriculum-pc tbody th {
  color: var(--service-primary);
  font-family: var(--font-lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.training-curriculum-pc tbody td:nth-child(2) {
  color: var(--service-navy-900);
  font-size: 12.5px;
  font-weight: 800;
}

.training-curriculum-pc tr > :nth-child(1) {
  width: 7%;
}

.training-curriculum-pc tr > :nth-child(2) {
  width: 21%;
}

.training-curriculum-pc tr > :nth-child(3) {
  width: 25%;
}

.training-curriculum-pc tr > :nth-child(4) {
  width: 47%;
}

.training-curriculum-pc ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-curriculum-pc li {
  position: relative;
  padding-left: 14px;
}

.training-curriculum-pc li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #80bfff;
  content: "";
}

.training-curriculum-sp {
  display: none;
}

.training-exercises {
  padding: 24px 38px 27px;
  border-top: 1px solid var(--training-line);
  background: #f7f9fb;
}

.training-completion {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--service-primary);
  background: var(--service-pale);
}

.training-integrity {
  color: #fff;
  background: var(--service-navy-900);
}

.training-integrity .training-section-title {
  color: #fff;
}

.training-integrity-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(128 191 255 / 22%);
  list-style: none;
}

.training-integrity-list li {
  position: relative;
  min-height: 92px;
  padding: 28px 34px 28px 70px;
  border-bottom: 1px solid rgb(128 191 255 / 22%);
  color: rgb(255 255 255 / 78%);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.9;
}

.training-integrity-list li::before {
  position: absolute;
  top: 33px;
  left: 28px;
  width: 16px;
  height: 9px;
  border-bottom: 2px solid #80bfff;
  border-left: 2px solid #80bfff;
  content: "";
  transform: rotate(-45deg);
}

.service-footer-reveal {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  display: grid;
  height: 100vh;
  place-items: center;
  background-position: bottom center;
  background-size: cover;
}

.service-footer-reveal p {
  padding: 0 24px;
  color: rgb(255 255 255 / 90%);
  font-family: var(--font-klee-one), "Klee One", cursive;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 3px 18px rgb(0 24 51 / 65%);
}

.service-footer-spacer {
  position: relative;
  z-index: 0;
  height: 50vh;
}

.training-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.training-reveal.training-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-header,
  .training-reveal {
    transition: none !important;
  }

  .training-reveal {
    opacity: 1;
    transform: none;
  }
}
