@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap");

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #24303f;
  background: #ffffff;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Variables ---------- */
:root {
  --navy: #1e2d54;
  --blue: #0b57a4;
  --blue-light: #eaf4fb;
  --blue-pale: #f4f9fd;
  --sky: #4fa8dc;
  --text: #2c3646;
  --text-soft: #5a6577;
  --header-h: 84px;
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: var(--header-h);
}

.section-pad {
  padding: 110px 0;
}

@media (max-width: 720px) {
  .section-pad {
    padding: 72px 0;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head .eyebrow {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--sky);
  margin-bottom: 14px;
}

.section-head .num {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 22px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 3px;
}

.section-head p.lead {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.bg-pale {
  background: var(--blue-pale);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  z-index: 1300;
  border-bottom: 1px solid rgba(30, 45, 84, 0.08);
  transition: box-shadow 0.3s ease, height 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(15, 40, 80, 0.08);
}

.site-header .header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand img {
  height: 46px;
  width: auto;
}

@media (max-width: 720px) {
  .brand img {
    height: 36px;
  }
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.nav-desktop a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  padding: 8px 2px;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--blue);
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  margin-left: 6px;
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--blue);
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  z-index: 1200;
}

.hamburger span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 29px; }

.hamburger.is-open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* Mobile nav panel */
.nav-mobile {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: linear-gradient(160deg, #ffffff 0%, var(--blue-pale) 100%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  padding: 14px 0;
  letter-spacing: 0.04em;
}

.nav-mobile .m-num {
  color: var(--blue);
  font-weight: 900;
  margin-right: 10px;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/top.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.55) 0%, rgba(8, 12, 24, 0.62) 55%, rgba(6, 10, 20, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.hero-content .hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  font-weight: 500;
  color: #cfe4f7;
  margin-bottom: 26px;
  opacity: 0;
  animation: heroFade 1s ease 0.2s forwards;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.55;
  opacity: 0;
  animation: heroFade 1.1s ease 0.5s forwards;
}

.hero-content h1 .line {
  display: block;
}

.hero-content h1 .accent {
  color: #7fc4f2;
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  opacity: 0.85;
}

.hero-scroll .chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(6px, 6px); }
}

/* ---------- About ---------- */
.about-body {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.about-body p {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 26px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 56px auto 0;
}

.about-stats .stat {
  background: var(--blue-pale);
  border-radius: 16px;
  padding: 28px 12px;
}

.about-stats .stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--blue);
  font-weight: 900;
}

.about-stats .stat span {
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}

/* ---------- Service split sections (2,3,4,5) ---------- */
.service {
  overflow: hidden;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.service-grid.reverse .service-photo {
  order: 2;
}

.service-grid.reverse .service-text {
  order: 1;
}

.service-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -20px rgba(15, 40, 80, 0.28);
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}

.service-text .num {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
}

.service-text .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--sky);
  display: block;
  margin-bottom: 6px;
}

.service-text h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.service-text p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* photo-less service section: center the text block */
.service-solo {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* reveal-on-scroll: image slides+fades in from a side */
.reveal-img {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-img.from-left {
  transform: translateX(-70px);
}

.reveal-img.from-right {
  transform: translateX(70px);
}

.reveal-img.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.15s, transform 0.9s ease 0.15s;
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-grid.reverse .service-photo,
  .service-grid.reverse .service-text {
    order: initial;
  }
  .service-photo {
    aspect-ratio: 16 / 11;
  }
}

/* ---------- Fringe benefit: training gym ---------- */
.benefit-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.benefit-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 50px -22px rgba(15, 40, 80, 0.28);
}

.benefit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 760px) {
  .benefit-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---------- Recruit ---------- */
.recruit-table {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px -25px rgba(15, 40, 80, 0.25);
}

.recruit-table .row {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.recruit-table .row:nth-child(odd) {
  background: var(--blue-pale);
}

.recruit-table .row:nth-child(even) {
  background: #fff;
}

.recruit-table .th {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(30, 45, 84, 0.05);
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.recruit-table .td {
  padding: 20px 24px;
  color: var(--text-soft);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
}

.recruit-table .td .note {
  display: block;
  font-size: 0.8rem;
  color: #8a93a3;
  margin-top: 4px;
}

.recruit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recruit-tags span {
  background: #fff;
  border: 1px solid rgba(11, 87, 164, 0.25);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .recruit-table .row {
    grid-template-columns: 1fr;
  }
  .recruit-table .th {
    padding-bottom: 6px;
  }
  .recruit-table .td {
    padding-top: 4px;
  }
}

/* ---------- Flow ---------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.flow-steps::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(11, 87, 164, 0.35) 0 10px, transparent 10px 20px);
  z-index: 0;
}

.flow-step {
  position: relative;
  z-index: 1;
  text-align: center;
  background: #fff;
  padding: 10px;
}

.flow-step .circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 900;
  margin: 0 auto 24px;
  box-shadow: 0 16px 30px -12px rgba(11, 87, 164, 0.55);
}

.flow-step h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.flow-step p {
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 0 8px;
}

@media (max-width: 760px) {
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .flow-steps::before {
    top: 0;
    bottom: 0;
    left: 46px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, rgba(11, 87, 164, 0.35) 0 10px, transparent 10px 20px);
  }
  .flow-step {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    text-align: left;
  }
  .flow-step .circle {
    flex-shrink: 0;
    margin: 0;
    width: 92px;
    height: 92px;
  }
}

/* ---------- Company ---------- */
.rep-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto 90px;
}

.rep-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 40, 80, 0.28);
  aspect-ratio: 3 / 4;
}

.rep-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rep-text .role {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: block;
}

.rep-text p {
  color: var(--text-soft);
  font-size: 0.95rem;
  white-space: pre-line;
  margin-bottom: 20px;
}

.rep-text .sign {
  color: var(--navy);
  font-weight: 700;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .rep-grid {
    grid-template-columns: 1fr;
  }
  .rep-photo {
    max-width: 280px;
    margin: 0 auto;
  }
}

.company-table {
  max-width: 860px;
  margin: 0 auto 90px;
  border-top: 1px solid rgba(30, 45, 84, 0.12);
}

.company-table .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid rgba(30, 45, 84, 0.12);
}

.company-table .th {
  padding: 20px 12px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.company-table .td {
  padding: 20px 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .company-table .row {
    grid-template-columns: 1fr;
  }
  .company-table .th {
    padding-bottom: 2px;
  }
  .company-table .td {
    padding-top: 0;
  }
}

.history {
  max-width: 700px;
  margin: 0 auto;
}

.history h3 {
  text-align: center;
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 34px;
  font-weight: 700;
}

.history-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(30, 45, 84, 0.2);
}

.history-item .date {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.history-item .desc {
  color: var(--text-soft);
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .history-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---------- Contact ---------- */
.contact-box {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  padding: 48px;
  box-shadow: 0 30px 70px -30px rgba(15, 40, 80, 0.3);
}

@media (max-width: 640px) {
  .contact-box {
    padding: 30px 22px;
    border-radius: 16px;
  }
}

.form-row {
  margin-bottom: 24px;
}

.form-row label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-row label .req {
  color: #e0507a;
  font-size: 0.72rem;
  margin-left: 6px;
  font-weight: 700;
  border: 1px solid #e0507a;
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  background: var(--blue-pale);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  border: none;
  background: linear-gradient(120deg, var(--blue), var(--navy));
  color: #fff;
  padding: 16px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 16px 30px -14px rgba(11, 87, 164, 0.6);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -14px rgba(11, 87, 164, 0.7);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-msg {
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.form-msg.success {
  background: #e8f8ef;
  color: #1c7a4c;
  border: 1px solid #bfe9d2;
}

.form-msg.error {
  background: #fdeced;
  color: #b7304a;
  border: 1px solid #f6c6cd;
}

.contact-info {
  text-align: center;
  margin-top: 40px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfd9ea;
  padding: 50px 0 26px;
  text-align: center;
}

.site-footer .brand-foot img {
  height: 48px;
  margin: 0 auto 22px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}

.site-footer .foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 26px;
  font-size: 0.82rem;
}

.site-footer .foot-nav a:hover {
  color: #fff;
}

.site-footer .copyright {
  font-size: 0.76rem;
  color: #8fa0bc;
  letter-spacing: 0.05em;
}

/* ---------- Page-load fade for hero handled separately; generic reveal for section heads ---------- */
.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 12px 26px -10px rgba(15, 40, 80, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translateY(2px);
}
