:root {
  --navy: #102a43;
  --navy-deep: #071d30;
  --blue: #1769aa;
  --blue-light: #eaf4fb;
  --ink: #172b3a;
  --muted: #526575;
  --line: #dbe5ec;
  --white: #fff;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.9;
  letter-spacing: .025em;
}

a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; line-height: 1.35; }
.brand-ja { display: block; color: var(--navy); font-size: 1.1rem; font-weight: 700; }
.brand-en { display: block; color: var(--muted); font-family: Georgia, serif; font-size: .72rem; letter-spacing: .035em; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--navy); font-size: .88rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); }
.menu-button { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(7,29,48,.98) 0%, rgba(16,42,67,.94) 56%, rgba(23,105,170,.76) 100%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,.05) 80px 81px);
}
.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02);
}
.hero-inner { position: relative; z-index: 1; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 80px 0; }
.eyebrow { margin: 0 0 16px; color: #93c9ef; font-family: Georgia, serif; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 1040px; margin: 0; font-size: clamp(2.2rem, 4.25vw, 3.55rem); line-height: 1.35; letter-spacing: .04em; }
.headline-part { display: inline-block; white-space: nowrap; }
.headline-part + .headline-part { margin-left: .12em; }
.headline-line { display: block; white-space: nowrap; }
.hero-copy { max-width: 760px; margin: 30px 0 36px; color: #e4edf4; font-size: 1.05rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 28px; color: var(--white); background: var(--blue); border: 1px solid #5ca9df; border-radius: 4px; font-weight: 700; text-decoration: none; }
.button:hover, .button:focus-visible { background: #0f5992; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 104px 0; }
.section-heading { margin-bottom: 44px; }
.section-heading p { margin: 0 0 5px; color: var(--blue); font-family: Georgia, serif; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.4; }
.section-heading h2::after { content: ""; display: block; width: 54px; height: 3px; margin-top: 14px; background: var(--blue); }
.about-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(36px, 7vw, 88px); align-items: center; }
.portrait-wrap { aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue-light); border-radius: 3px; box-shadow: 20px 20px 0 var(--blue-light); }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.about-copy > p { margin: 0 0 20px; }
.profile { margin: 32px 0 0; border-top: 1px solid var(--line); }
.profile div { display: grid; grid-template-columns: 7rem 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile dt { color: var(--muted); font-size: .88rem; }
.profile dd { margin: 0; font-weight: 600; }

.section-wide { width: 100%; }
.section-tint { background: #f4f8fb; }
.section-lead { max-width: 900px; margin: 0 0 36px; color: var(--navy); font-size: 1.12rem; font-weight: 600; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { position: relative; padding: 34px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: 0 10px 25px rgba(7,29,48,.045); }
.service-card h3, .topic-panel h3, .experience-grid h3, .process-list h3 { margin: 0 0 16px; color: var(--navy); font-size: 1.2rem; line-height: 1.5; }
.service-card p:last-child { margin-bottom: 0; }
.card-number { position: absolute; top: 24px; right: 28px; color: #c8dce9; font: 700 2rem/1 Georgia, serif; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; margin: 0 0 22px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 20px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .82em; width: 8px; height: 2px; background: var(--blue); }

.training-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 8vw, 90px); align-items: start; }
.topic-panel { padding: 34px; background: var(--navy); color: var(--white); border-radius: 3px; box-shadow: 16px 16px 0 var(--blue-light); }
.topic-panel h3 { color: var(--white); }
.topic-panel ul { margin: 0; padding: 0; list-style: none; }
.topic-panel li { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.topic-panel li:last-child { border-bottom: 0; }

.experience-bg { color: #e9f0f5; background: var(--navy-deep); }
.section-heading-light h2 { color: var(--white); }
.section-heading-light p { color: #7fc1eb; }
.section-heading-light h2::after { background: #4da4df; }
.experience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.experience-grid article { padding: 32px; background: var(--navy-deep); }
.experience-grid h3 { color: #8bc8ef; }
.experience-grid p { margin-bottom: 0; }
.experience-grid ul { margin: 0; padding-left: 1.25rem; }
.experience-grid li + li { margin-top: 9px; }
.experience-grid strong { color: var(--white); font-size: 1.35rem; }
.experience-wide { grid-column: 1 / -1; }
.keep-together { white-space: nowrap; }
.experience-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 !important; list-style: none; }
.experience-list li { margin: 0 !important; padding-left: 16px; border-left: 2px solid var(--blue); }

.coverage { color: var(--white); background: var(--blue); }
.coverage-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 38px 0; display: grid; grid-template-columns: 9rem 1fr; align-items: center; }
.coverage-label { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .16em; }
.coverage-inner > p:last-child { margin: 0; font-size: 1.08rem; font-weight: 600; }

.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 42px 0 30px; padding: 0; list-style: none; counter-reset: none; }
.process-list li { min-height: 195px; padding: 28px; background: #f7fafc; border: 1px solid var(--line); }
.process-list li > span { display: block; margin-bottom: 22px; color: var(--blue); font: 700 1.4rem/1 Georgia, serif; }
.process-list p { margin: 0; color: var(--muted); font-size: .94rem; }
.process-note { padding: 20px 24px; background: var(--blue-light); border-left: 3px solid var(--blue); }

.contact-section { color: var(--white); background: linear-gradient(110deg, var(--navy-deep), var(--navy) 65%, #164d78); }
.contact-inner { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 94px 0; text-align: center; }
.contact-inner .section-heading h2::after { margin-inline: auto; }
.contact-inner > p { max-width: 760px; margin: 0 auto 16px; color: #e4edf4; }
.contact-mail { display: inline-flex; flex-direction: column; gap: 3px; min-width: min(100%, 480px); margin-top: 26px; padding: 18px 30px; color: var(--navy-deep); background: var(--white); border-radius: 3px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.contact-mail span { color: var(--blue); font-size: .82rem; font-weight: 700; }
.contact-mail strong { font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-mail:hover, .contact-mail:focus-visible { background: #eef7fc; }

.privacy-section { padding-block: 72px; }
.compact-heading { margin-bottom: 28px; }
.compact-heading h2 { font-size: 1.55rem; }
.privacy-copy { max-width: 900px; color: var(--muted); font-size: .92rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 25px 50px; padding: 46px max(24px, calc((100vw - var(--max)) / 2)); color: #cbd8e2; background: #061725; }
.site-footer p { margin: 0; }
.footer-brand { color: var(--white); font-weight: 700; }
.footer-en { margin-top: 2px !important; font: .72rem Georgia, serif; }
.footer-info { font-size: .86rem; }
.footer-info a { color: var(--white); }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font: .72rem Georgia, serif; }

@media (max-width: 880px) {
  .menu-button { display: block; padding: 8px 12px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: .86rem; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(7,29,48,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-wrap { width: min(100%, 420px); }
  .training-layout { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .experience-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { min-height: 70px; padding-inline: 18px; }
  .brand-ja { font-size: .95rem; }
  .brand-en { display: none; }
  .hero { min-height: 540px; }
  .hero-inner, .section { width: min(100% - 36px, var(--max)); }
  .hero h1 { font-size: 1.85rem; }
  .headline-part, .headline-line { display: block; width: fit-content; max-width: 100%; margin-left: 0 !important; white-space: nowrap; }
  .hero-copy { font-size: .98rem; }
  .section { padding: 76px 0; }
  .profile div { grid-template-columns: 1fr; gap: 2px; }
  .service-grid, .experience-grid, .process-list { grid-template-columns: 1fr; }
  .experience-wide { grid-column: auto; }
  .service-card { padding: 28px 24px; }
  .check-list { grid-template-columns: 1fr; }
  .coverage-inner { width: min(100% - 36px, var(--max)); grid-template-columns: 1fr; gap: 8px; }
  .contact-inner { width: min(100% - 36px, 900px); }
  .site-footer { grid-template-columns: 1fr; padding-inline: 18px; }
  .copyright { grid-column: auto; }
}

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