/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0d2d6e;
  --blue:        #1a4dbf;
  --blue-mid:    #2563eb;
  --blue-light:  #3b82f6;
  --blue-pale:   #dbeafe;
  --gray-dark:   #1e293b;
  --gray:        #475569;
  --gray-mid:    #94a3b8;
  --gray-light:  #e2e8f0;
  --gray-bg:     #f8fafc;
  --white:       #ffffff;
  --accent:      #0ea5e9;

  --radius:      12px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(13,45,110,.12);

  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --font:        'Noto Sans JP', sans-serif;
  --max-w:       1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only { display: inline; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .04em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue-mid);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.btn--primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.45);
}
.btn--outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--blue-mid);
}
.btn--sm { padding: 10px 22px; font-size: .875rem; }
.btn--lg { padding: 18px 48px; font-size: 1rem; }

/* ===========================
   SECTION COMMON
=========================== */
.section { padding: 100px 0; }

.section__head { text-align: center; margin-bottom: 64px; }
.section__head--left { text-align: left; margin-bottom: 40px; }

.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--blue-mid);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section__desc {
  font-size: .9375rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  background: var(--gray-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  transition: color var(--transition);
}
.logo span { color: var(--blue-light); }
.logo__img {
  height: 44px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.logo--footer {
  color: var(--white);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: .04em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__list a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: .04em;
  transition: color var(--transition);
}
.nav__list a:hover { color: var(--blue-mid); }
.nav__list .btn--sm {
  background: var(--blue-mid);
  color: var(--white);
  border: none;
  padding: 8px 20px;
}
.nav__list .btn--sm:hover { background: var(--blue); color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: var(--transition);
}
.header.scrolled .hamburger span { background: var(--gray-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--accent) 100%);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(255,255,255,.06) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  max-width: 700px;
}
.hero__eyebrow {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: rgba(255,255,255,.65);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: .02em;
  margin-bottom: 24px;
}
.hero__lead {
  font-size: clamp(.9375rem, 1.5vw, 1.0625rem);
  color: rgba(255,255,255,.8);
  line-height: 1.85;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .65rem;
  letter-spacing: .2em;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================
   NUMBERS
=========================== */
.numbers {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--gray-light);
}
.numbers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  border-right: 1px solid var(--gray-light);
  gap: 8px;
}
.numbers__item:last-child { border-right: none; }
.numbers__value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--blue-mid);
  line-height: 1;
  letter-spacing: -.02em;
}
.numbers__value small { font-size: 60%; margin-left: 2px; }
.numbers__label {
  font-size: .875rem;
  color: var(--gray);
  font-weight: 400;
}

/* ===========================
   MISSION / VISION
=========================== */
.mv {
  background: var(--gray-dark);
  padding: 72px 0;
}
.mv__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.mv__block { flex: 1; }
.mv__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--blue-light);
  margin-bottom: 16px;
}
.mv__text {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.75;
}
.mv__divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mv__inner { flex-direction: column; gap: 40px; }
  .mv__divider { width: 60px; height: 1px; }
}

/* ===========================
   SERVICE
=========================== */
.service { background: var(--gray-bg); }

.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: stretch;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 52px;
  height: 52px;
  color: var(--blue-mid);
  margin-bottom: 20px;
}
.card__icon svg { width: 100%; height: 100%; }
.card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-dark);
}
.card__text {
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card__tags li {
  font-size: .75rem;
  font-weight: 500;
  color: var(--blue-mid);
  background: var(--blue-pale);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===========================
   ABOUT
=========================== */
.about { background: var(--white); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__visual {
  position: relative;
  height: 440px;
}
.about__visual-box {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: 20px;
  overflow: hidden;
}
.about__visual-box::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  top: -80px;
  right: -60px;
}
.about__visual-box::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  bottom: 20px;
  left: 20px;
}
.about__visual-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: var(--blue-pale);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about__table { width: 100%; border-collapse: collapse; }
.about__table tr { border-bottom: 1px solid var(--gray-light); }
.about__table tr:last-child { border-bottom: none; }
.about__table th,
.about__table td { padding: 16px 0; vertical-align: top; font-size: .9375rem; }
.about__table th {
  width: 38%;
  font-weight: 600;
  color: var(--gray-dark);
  white-space: nowrap;
  text-align: left;
}
.about__table td { color: var(--gray); }

/* ===========================
   CONTACT
=========================== */
.contact {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
}
.contact .section__label { color: rgba(255,255,255,.55); }
.contact .section__title { color: var(--white); }
.contact .section__desc { color: rgba(255,255,255,.7); }

.form {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 56px 64px;
  box-shadow: var(--shadow-md);
}
.form__row { display: flex; gap: 24px; }
.form__row--half > * { flex: 1; min-width: 0; }
.form__group { margin-bottom: 24px; }
.form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
}
.required {
  font-size: .7rem;
  font-weight: 700;
  color: var(--white);
  background: #ef4444;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--gray-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--gray-mid); }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form__textarea { resize: vertical; min-height: 140px; }

.form__check { margin-bottom: 32px; }
.form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--gray);
}
.form__checkbox input[type="checkbox"] { display: none; }
.form__checkbox-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-light);
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}
.form__checkbox input:checked ~ .form__checkbox-mark {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
}
.form__checkbox input:checked ~ .form__checkbox-mark::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 6px; height: 10px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.form__link { color: var(--blue-mid); text-decoration: underline; }

.form__submit { text-align: center; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--gray-bg);
  color: var(--gray);
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 56px;
  padding-bottom: 56px;
  gap: 40px;
}
.footer__tagline {
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--gray-mid);
  margin-top: 8px;
}
.footer__nav ul {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: .875rem;
  color: var(--gray);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--blue-mid); }
.footer__copy {
  border-top: 1px solid var(--gray-light);
  padding: 20px 24px;
  text-align: center;
  font-size: .8rem;
  color: var(--gray-mid);
}
.footer .logo__img {
  filter: none;
  mix-blend-mode: multiply;
}

/* ===========================
   PAGE TOP
=========================== */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  z-index: 90;
}
.page-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.page-top svg { width: 20px; height: 20px; }
.page-top:hover { background: var(--blue); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .service__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { height: 300px; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .section { padding: 72px 0; }

  /* Nav */
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav__list a { color: var(--gray-dark); font-size: 1rem; }
  .nav__list .btn--sm {
    border-color: var(--blue-mid);
    color: var(--blue-mid);
  }
  .hamburger { display: flex; }

  /* Hero */
  .hero__content { padding-top: 80px; }

  /* Numbers */
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__item { padding: 32px 16px; border-right: none; border-bottom: 1px solid var(--gray-light); }
  .numbers__item:nth-child(odd) { border-right: 1px solid var(--gray-light); }
  .numbers__item:nth-last-child(-n+2) { border-bottom: none; }

  /* Service */
  .service__grid { grid-template-columns: 1fr; }

  /* Form */
  .form { padding: 36px 24px; }
  .form__row { flex-direction: column; gap: 0; }

  /* Footer */
  .footer__inner { flex-direction: column; gap: 24px; }
  .footer__nav ul { gap: 20px; }

  /* Page top */
  .page-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
}
