:root {
  --ink: #12314a;
  --muted: #63798b;
  --blue: #0FA394;
  --blue-dark: #087C73;
  --sky: #DDF7F4;
  --mint: #6FD6CE;
  --pale: #F3FBFA;
  --white: #ffffff;
  --line: #D8EBE7;
  --shadow: 0 24px 70px rgba(24, 125, 115, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  min-height: 82px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(18, 49, 74, 0.09);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  transform: skewX(-8deg);
}

.brand-mark i {
  background: var(--blue);
}

.brand-mark i:last-child {
  background: var(--mint);
  transform: translateY(7px);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 6px;
  color: #7890a2;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  color: #405b70;
  font-size: 11px;
  font-weight: 650;
}

.site-header nav a {
  padding: 8px 0;
  transition: color 160ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--blue);
}

.header-contact {
  justify-self: end;
  padding: 11px 19px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 750;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.header-contact:hover,
.header-contact:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 108px);
  overflow: hidden;
  padding: 138px clamp(24px, 7vw, 108px) 76px;
  background:
    radial-gradient(circle at 4% 11%, rgba(101, 214, 207, 0.22), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #F1FAF8 100%);
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -38%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: rgba(205, 242, 237, 0.46);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 670px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 5.7vw, 86px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 1.24;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-copy > p:not(.eyebrow) {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 33px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.button-primary {
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(15, 163, 148, 0.22);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-3px);
}

.text-link {
  padding: 7px 0;
  border-bottom: 1px solid #7FAEA9;
  color: #277F77;
  font-size: 11px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 530px;
}

.hero-shape {
  position: absolute;
  top: -30px;
  right: -25px;
  width: 88%;
  height: 88%;
  border-radius: 48% 52% 42% 58% / 44% 43% 57% 56%;
  background: linear-gradient(135deg, #d9f6f3, #E3F6F3);
  transform: rotate(8deg);
}

.hero-visual img {
  position: absolute;
  inset: 30px 0 0 7%;
  width: 93%;
  height: calc(100% - 30px);
  border-radius: 48% 52% 45% 55% / 43% 42% 58% 57%;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

.hero-note {
  position: absolute;
  right: 2%;
  bottom: 7%;
  display: flex;
  min-width: 245px;
  flex-direction: column;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 38px rgba(28, 112, 105, 0.16);
  backdrop-filter: blur(10px);
}

.hero-note small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.hero-note strong {
  margin-top: 4px;
  font-size: 12px;
}

.section {
  padding: 105px clamp(24px, 7vw, 108px);
}

.section-heading h2,
.training-copy h2,
.philosophy h2,
.foundation h2,
.contact h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.services {
  background: var(--white);
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
  align-items: center;
  gap: clamp(55px, 9vw, 145px);
  background: var(--pale);
}

.philosophy-copy > p:not(.section-label) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.philosophy h2 {
  font-size: clamp(26px, 2.7vw, 39px);
}

.philosophy h2 span {
  display: block;
}

.philosophy-title-line {
  white-space: nowrap;
}

.philosophy-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.philosophy-flow div {
  display: flex;
  min-height: 165px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #CBE5E0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(32, 130, 120, 0.08);
}

.philosophy-flow span {
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.philosophy-flow strong {
  margin-top: 5px;
  font-size: clamp(18px, 1.5vw, 23px);
}

.philosophy-flow small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.philosophy-flow > i {
  color: #7FBDB7;
  font-size: 18px;
  font-style: normal;
}

.service-grid {
  display: grid;
  max-width: 1280px;
  margin: 50px auto 0;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service-grid article {
  min-height: 245px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.service-grid article:hover {
  border-color: #A8D9D2;
  box-shadow: 0 16px 38px rgba(32, 130, 120, 0.10);
  transform: translateY(-5px);
}

.service-grid article > span {
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.service-grid h3 {
  margin: 52px 0 12px;
  font-size: 20px;
}

.service-subtitle {
  display: block;
  margin: -9px 0 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.training {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(55px, 8vw, 125px);
  background: var(--pale);
}

.training-image {
  position: relative;
  min-height: 470px;
}

.training-image::before {
  position: absolute;
  inset: -18px 18px 18px -18px;
  border-radius: 28px;
  background: #DDF4F0;
  content: "";
}

.training-image img {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.training-copy > p:not(.section-label) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.theme-list {
  display: grid;
  margin-top: 34px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.theme-list span {
  padding: 13px 15px;
  border: 1px solid #D3E7E3;
  border-radius: 10px;
  background: var(--white);
  font-size: 11px;
  font-weight: 650;
}

.training-service-links {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.training-service-link {
  display: flex;
  min-height: 165px;
  padding: 20px;
  border: 1px solid #B7DDD7;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #F0F9F7 100%);
  color: var(--ink);
  flex-direction: column;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.training-service-link:hover,
.training-service-link:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 15px 34px rgba(15, 130, 120, 0.13);
  outline: none;
  transform: translateY(-3px);
}

.training-service-link small {
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.training-service-link strong {
  margin-top: 8px;
  font-size: 15px;
}

.training-service-link span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.training-service-link b {
  margin-top: auto;
  padding-top: 14px;
  color: var(--blue);
  font-size: 9px;
}

.foundation {
  text-align: center;
}

.foundation-lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.foundation-points {
  display: grid;
  max-width: 1280px;
  gap: 14px;
  margin: 39px auto 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.foundation-points span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid #CBE5E0;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.foundation-points small {
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.company {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(55px, 10vw, 160px);
  background: var(--pale);
}

.company-table {
  margin: 0;
  border-top: 2px solid var(--blue);
}

.company-table > div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid #D1E4E0;
}

.company-table dt {
  color: #698194;
  font-size: 10px;
  font-weight: 700;
}

.company-table dd {
  margin: 0;
  font-size: 12px;
  font-weight: 580;
}

.company-table a:hover,
.company-table a:focus-visible {
  color: var(--blue);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background:
    radial-gradient(circle at 91% 18%, rgba(101, 214, 207, 0.3), transparent 26%),
    linear-gradient(115deg, #EAF8F5, #f5ffff);
}

.news {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background:
    radial-gradient(circle at 8% 82%, rgba(101, 214, 207, 0.22), transparent 25%),
    linear-gradient(115deg, #ffffff, #EEF8F6);
}

.news-copy {
  max-width: 680px;
}

.news-copy h2 {
  margin: 10px 0 18px;
}

.news-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.contact .section-label {
  margin-bottom: 12px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 42px clamp(24px, 7vw, 108px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

footer > p {
  margin: 0;
  color: #587084;
  font-size: 10px;
  font-weight: 650;
}

footer > small {
  justify-self: end;
  color: #91a2af;
  font-size: 8px;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.84fr;
    gap: 45px;
  }

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

  .foundation-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .section {
    padding: 82px 24px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 125px 24px 70px;
  }

  .hero-visual {
    min-height: 480px;
    margin-top: 18px;
  }

  .philosophy,
  .training,
  .company {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .philosophy-flow {
    max-width: 570px;
  }

  .training-image {
    min-height: 400px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .news {
    align-items: flex-start;
    flex-direction: column;
  }

  .foundation-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer .brand,
  footer > small {
    justify-self: center;
  }
}

@media (max-width: 540px) {
  .site-header {
    min-height: 70px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 5px;
  }

  .header-contact {
    padding: 9px 12px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero-copy > p:not(.eyebrow) br {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .button {
    width: 100%;
  }

  .text-link {
    align-self: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-note {
    right: 0;
    bottom: 3%;
    min-width: 215px;
  }

  .service-grid,
  .theme-list,
  .training-service-links,
  .foundation-points {
    grid-template-columns: 1fr;
  }

  .philosophy-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .philosophy-flow div {
    width: 175px;
    min-height: 175px;
    margin: 0 auto;
  }

  .philosophy-flow > i {
    transform: rotate(90deg);
  }

  .service-grid article {
    min-height: auto;
  }

  .service-grid h3 {
    margin-top: 30px;
  }

  .training-image {
    min-height: 310px;
  }

  .company-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-heading h2,
  .training-copy h2,
  .foundation h2,
  .contact h2 {
    font-size: 34px;
  }

  .philosophy h2 {
    font-size: clamp(20px, 6.2vw, 26px);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
