:root {
  --navy: #132f5d;
  --navy-deep: #0c2145;
  --orange: #e6792b;
  --ink: #202a38;
  --gray: #eef1f5;
  --line: #cad2df;
  --white: #fff;
  --container: 1160px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Noto Sans JP", "Yu Gothic", sans-serif; line-height: 1.9; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }

.site-header { position: fixed; top: 0; z-index: 10; width: 100%; height: var(--header-height); background: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; width: min(var(--container), calc(100% - 40px)); height: 100%; margin: auto; }
.site-logo { width: 190px; }
.site-logo img { width: 100%; max-height: 48px; object-fit: contain; object-position: left center; }
.global-nav { display: flex; gap: 20px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.global-nav a:hover { color: var(--orange); }
.nav-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 720px; padding: calc(var(--header-height) + 68px) 20px 76px; overflow: hidden; color: #fff; background: url("../images/fv-training.webp") center center / cover no-repeat; }
.hero::before { position: absolute; inset: 0; background: rgba(0, 0, 0, .34); content: ""; }
.hero-inner, .media-layout, .profile-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 7vw, 100px); align-items: center; width: min(var(--container), 100%); margin: auto; }
.hero-inner { position: relative; z-index: 1; grid-template-columns: minmax(0, 720px); }
.eyebrow, .num { color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.section-en { display: block; margin: 0; color: var(--navy); font-size: 90px; font-weight: 400; line-height: .9; letter-spacing: .02em; }
.hero h1 { margin: 16px 0 24px; color: #fff; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.35; letter-spacing: .04em; }
.hero-copy > p:not(.eyebrow) { max-width: 680px; font-size: 16px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 28px; font-weight: 700; transition: .2s; }
.button-primary { color: #fff; background: var(--orange); }
.button-primary:hover { background: var(--orange); }
.hero .button-secondary { color: #fff; border: 1px solid #fff; }
.hero .button-secondary:hover { color: var(--navy); background: #fff; }

.menu-section { padding: 48px 20px; background: var(--gray); }
.menu-box { width: min(760px, 100%); margin: 0 auto; padding: 42px 54px; }
.menu-box h2 { margin: 0 0 24px; color: var(--navy); font-size: 24px; line-height: 1.4; }
.menu-icon { margin-right: 8px; color: var(--orange); }
.menu-box ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; counter-reset: menu; }
.menu-box li { border-top: 1px solid rgba(19, 47, 93, .2); counter-increment: menu; }
.menu-box a { display: flex; gap: 12px; padding: 12px 0; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.55; }
.menu-box a::before { color: var(--orange); content: counter(menu, decimal-leading-zero); }
.menu-box a:hover { color: var(--orange); }

.section { position: relative; padding: 108px 20px; overflow: hidden; }
#service::before,
#feature::before,
#training::before,
#simulation::before,
#case::before,
#profile::before,
#news::before {
  position: absolute;
  top: 152px;
  z-index: 0;
  width: 68%;
  height: calc(100% - 190px);
  min-height: 360px;
  background: var(--gray);
  content: "";
}
#service::before,
#training::before,
#case::before,
#news::before { left: 0; }
#feature::before,
#simulation::before,
#profile::before { right: 0; }
.flow, .contact { background: #fff; }
.qa, .company { background: var(--gray); }
.section > * { position: relative; z-index: 1; }
.section-heading { width: min(var(--container), 100%); margin: 0 auto 48px; text-align: center; }
.section-heading h2 { margin-top: 14px; color: var(--orange); font-size: clamp(28px, 3vw, 42px); line-height: 1.45; }
.stagger-wrap, .three-wrap, .training-list, .flow-grid, .company > dl, .contact-form, .contact-inner, .news > .section-lead, .news > .button { width: min(var(--container), 100%); margin-left: auto; margin-right: auto; }
.stagger-wrap, .three-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stagger-card, .feature-card { padding: 0; background: transparent; }
.stagger-card:nth-child(2) { margin-top: 52px; }
.stagger-card:nth-child(3) { margin-top: 104px; }
.stagger-card img, .feature-card img { width: 100%; aspect-ratio: 4 / 3; margin: 12px 0 20px; object-fit: cover; }
.stagger-card h3, .feature-card h3 { margin-bottom: 16px; color: var(--navy); font-size: 20px; line-height: 1.55; }
.stagger-card p:last-child, .feature-card p:last-child { font-size: 14px; }
.feature-card { display: flex; flex-direction: column; }
.training-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 42px; padding: 0; list-style: none; counter-reset: program; }
.training-list li { min-height: 145px; padding: 25px 0; border-top: 1px solid var(--line); font-size: 14px; counter-increment: program; }
.training-list strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 17px; }
.training-list strong::before { margin-right: 10px; color: var(--orange); content: counter(program, decimal-leading-zero); }
.media-layout { position: relative; }
.media-layout > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-layout h3, .flow-grid h3 { margin-bottom: 10px; color: var(--navy); font-size: 23px; }
.media-layout h3 + p { margin-bottom: 28px; }
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.flow-grid article { padding: 0 0 0 24px; border-left: 4px solid var(--orange); }
.case .media-layout > img { order: 2; }
.profile-wrap > img { width: 100%; max-height: 620px; object-fit: cover; object-position: center top; }
.profile-title { margin-bottom: 24px; color: var(--navy); font-size: 23px; font-weight: 700; line-height: 1.65; }
.profile-wrap p + p { margin-top: 16px; }
.news { text-align: center; }
.news .section-lead { max-width: 720px; margin-bottom: 30px; }
.qa > details { width: min(820px, 100%); margin-right: auto; margin-left: auto; padding: 20px 0; border-top: 1px solid var(--line); }
.qa > details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { color: var(--navy); font-weight: 700; cursor: pointer; }
.qa details p { margin: 16px 24px 0; }

.contact-inner { max-width: 880px; }
.contact-text { margin-bottom: 42px; text-align: left; }
.contact-text p + p { margin-top: 16px; }
.contact-text a { color: var(--navy); text-decoration: underline; }
.contact-form { max-width: 880px; line-height: 1.6; }
.contact-form dl { margin: 0; }
.contact-form dl::after { display: block; clear: both; content: ""; }
.contact-form dt, .contact-form dd { min-height: 78px; margin: 0; padding: 20px 0; border-top: 1px solid var(--line); line-height: 1.6; }
.contact-form dt { display: grid; grid-template-columns: 44px 1fr; float: left; clear: both; width: 34%; gap: 13px; align-items: start; font-weight: 700; }
.contact-form dd { float: right; width: 66%; padding-left: 20px; }
.contact-form dt span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 25px; font-size: 11px; font-style: normal; }
.contact-form dt .required { color: #fff; background: var(--orange); line-height: 1; }
.contact-form dt .optional { color: var(--navy); border: 1px solid var(--navy); line-height: 1; }
.contact-form dt em { font-style: normal; line-height: 1.4; }
.contact-form dt small { display: block; margin-top: 2px; color: #6e7888; font-size: 11px; font-weight: 400; line-height: 1.4; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #aeb9c9; border-radius: 0; background: #fff; font: inherit; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form .checks { margin: 0; padding: 0; font-size: 16px; line-height: 1.6; list-style: none; }
.contact-form .checks li { line-height: 1.6; }
.contact-form .checks li + li { margin-top: 10px; }
.contact-form .checks label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.contact-form .checks input { flex: 0 0 auto; margin: 5px 0 0; }
.form-submit, #form_submit { clear: both; margin: 0; padding-top: 34px; text-align: center; }
#form_submit_button { min-height: 52px; padding: 10px 28px; border: 0; color: #fff; background: var(--navy); font: inherit; font-weight: 700; cursor: pointer; transition: .2s; }
#form_submit_button:hover { background: var(--orange); }
.company > dl { display: grid; grid-template-columns: 180px 1fr; max-width: 800px; margin-bottom: 0; border-top: 1px solid var(--line); }
.company dt, .company dd { margin: 0; padding: 18px; border-bottom: 1px solid var(--line); }
.company dt { color: var(--navy); font-weight: 700; }
.footer { padding: 56px 20px 88px; color: #fff; background: var(--navy-deep); text-align: center; }
.footer-nav { display: grid; grid-template-columns: repeat(3, max-content); width: fit-content; justify-content: center; gap: 10px 42px; margin: 0 auto 36px; font-size: 13px; text-align: left; }
.footer-nav a { display: block; text-align: left; }
.footer-nav a:hover { color: var(--orange); }
.copyright { font-size: 13px; }
.fixed-contact { position: fixed; right: 0; bottom: 42%; z-index: 5; display: grid; width: 164px; opacity: 0; visibility: hidden; transition: .25s; }
.fixed-contact.is-visible { opacity: 1; visibility: visible; }
.fixed-contact a { padding: 13px 10px; color: #fff; background: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.45; text-align: center; }
.fixed-contact a + a { background: var(--orange); }
.page-top { position: fixed; right: 18px; bottom: 28px; z-index: 8; display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--navy); font-size: 18px; opacity: 0; pointer-events: none; transition: .3s; }
.page-top:hover { background: var(--orange); }
.page-top.is-show { opacity: 1; pointer-events: auto; }
.u-fadein, .u-fadeinUp, .u-fadeinLeft { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.u-fadeinUp { transform: translateY(20px); }
.u-fadeinLeft { transform: translateX(-20px); }
.is-active { opacity: 1; transform: none; }

@media (max-width: 767px) {
  :root { --header-height: 62px; }
  .site-header-inner { width: calc(100% - 28px); }
  .site-logo { width: 200px; }
  .nav-toggle { display: grid; width: 34px; gap: 6px; padding: 7px 0; border: 0; background: transparent; }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); transition: .2s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .global-nav { position: fixed; top: var(--header-height); left: 0; display: none; width: 100%; padding: 28px 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .global-nav.is-open { display: grid; }
  .hero { min-height: 620px; padding: calc(var(--header-height) + 42px) 20px 50px; background-position: 58% center; }
  .hero-inner, .media-layout, .profile-wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .menu-section { padding: 48px 20px; }
  .menu-box { padding: 28px 22px; }
  .menu-box h2 { margin-bottom: 16px; font-size: 21px; }
  .menu-box ol { grid-template-columns: 1fr; }
  .menu-box a { padding: 11px 0; font-size: 14px; }
  .section-en { font-size: 58px; line-height: .9; }
  .section { padding: 72px 20px; }
  #service::before,
  #feature::before,
  #training::before,
  #simulation::before,
  #case::before,
  #profile::before,
  #news::before { top: 95px; width: 88%; height: calc(100% - 140px); min-height: 240px; }
  .section-heading { margin-bottom: 32px; }
  .stagger-wrap, .three-wrap, .training-list, .flow-grid { grid-template-columns: 1fr; }
  .stagger-card:nth-child(2), .stagger-card:nth-child(3) { margin-top: 0; }
  .stagger-card, .feature-card { padding: 16px; }
  .training-list li { min-height: 0; }
  .contact-form dt, .contact-form dd { float: none; width: 100%; padding: 12px 0; border: 0; }
  .contact-form dt { grid-template-columns: 44px 1fr; padding-top: 20px; border-top: 1px solid var(--line); }
  .contact-form dd { padding-bottom: 20px; }
  .company > dl { grid-template-columns: 1fr; }
  .company dt { padding-bottom: 4px; border-bottom: 0; }
  .company dd { padding-top: 4px; }
  .footer { padding: 48px 20px 88px; }
  .footer-nav { grid-template-columns: 1fr; width: fit-content; gap: 5px; margin-bottom: 30px; text-align: left; }
  .fixed-contact { right: 10px; bottom: 10px; width: calc(100% - 20px); grid-template-columns: 1fr 1fr; }
  .page-top { right: 14px; bottom: 78px; }
}
