/* ========== 基本設定 ========== */
:root {
  --color-primary: #0a5bd3;
  --color-primary-dark: #084aab;
  --color-accent: #ff8c1a;
  --color-accent-dark: #e67300;
  --color-text: #26303a;
  --color-text-light: #5f6b78;
  --color-bg-gray: #f3f6fa;
  --color-bg-dark: #16283f;
  --color-white: #ffffff;
  --font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-white);
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.pc-only { display: inline; }
@media (max-width: 767px) {
  .pc-only { display: none; }
}

/* ========== ボタン ========== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(255, 140, 26, 0.4);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ========== ヘッダー ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.header__logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), #2f8bff);
  color: var(--color-white);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.header__logo-text {
  font-size: 17px;
  color: var(--color-text);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav__list a {
  position: relative;
  padding: 4px 0;
}

.nav__list a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s;
}
.nav__list a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--color-primary-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ========== ヒーロー ========== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background:
    linear-gradient(rgba(10, 40, 80, 0.55), rgba(10, 40, 80, 0.65)),
    linear-gradient(135deg, #0a5bd3 0%, #16283f 60%, #0e3a6b 100%);
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.hero::before { width: 480px; height: 480px; top: -140px; right: -120px; }
.hero::after { width: 360px; height: 360px; bottom: -120px; left: -100px; }

.hero__inner { position: relative; z-index: 1; }

.hero__catch {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll span {
  width: 1px;
  height: 36px;
  background: var(--color-white);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========== 実績バー ========== */
.stats {
  background: var(--color-primary);
  color: var(--color-white);
}

.stats__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stats__number {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
}
.stats__number span { font-size: 0.5em; margin-left: 2px; }

.stats__label {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

/* ========== セクション共通 ========== */
.section { padding: 90px 0; }
.section--gray { background: var(--color-bg-gray); }
.section--dark { background: var(--color-bg-dark); color: var(--color-white); }

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section__en {
  text-align: center;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 14px;
}
.section__en--light { color: #7db4ff; }

.section__title {
  text-align: center;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  margin: 6px 0 56px;
  position: relative;
  padding-bottom: 18px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-accent);
}
.section__title--light { color: var(--color-white); }

/* ========== 私たちについて ========== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.about__text h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.about__text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__features li {
  display: flex;
  gap: 20px;
  background: var(--color-white);
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(20, 50, 90, 0.05);
}

.about__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #2f8bff);
  color: var(--color-white);
  font-weight: 900;
  font-size: 15px;
}

.about__features h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.about__features p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ========== サービスカード ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(20, 50, 90, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid var(--color-primary);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(20, 50, 90, 0.13);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f0fc;
  color: var(--color-primary);
}
.card__icon svg { width: 34px; height: 34px; }

.card__title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--color-primary);
}

.card__text {
  font-size: 14px;
  color: var(--color-text-light);
  text-align: left;
}

/* ========== お仕事情報 ========== */
.jobs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.jobs__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-gray);
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}
.jobs__item:hover {
  background: #e3edfb;
  transform: translateY(-3px);
}
.jobs__item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.jobs__note {
  text-align: center;
  margin-top: 28px;
  color: var(--color-text-light);
  font-size: 14px;
}

/* ========== ご利用の流れ ========== */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: flow;
}

.flow__step {
  position: relative;
  background: var(--color-white);
  border-radius: 14px;
  padding: 30px 22px;
  box-shadow: 0 3px 14px rgba(20, 50, 90, 0.07);
}

.flow__step:not(:last-child)::after {
  content: "▶";
  position: absolute;
  top: 50%;
  right: -21px;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 14px;
  z-index: 1;
}

.flow__num {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.flow__step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flow__step p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ========== 会社概要 ========== */
.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 15px;
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e4eaf2;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

/* ========== お問い合わせ ========== */
.contact__lead {
  text-align: center;
  margin-bottom: 32px;
  opacity: 0.9;
}

.contact__tel {
  text-align: center;
  margin-bottom: 48px;
}

.contact__tel-number {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.contact__tel-icon {
  width: 0.8em;
  height: 0.8em;
  color: var(--color-accent);
}

.contact__tel-hours {
  font-size: 13px;
  opacity: 0.8;
}

.form {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 40px 36px;
}

.form__row { margin-bottom: 24px; }

.form__row label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.required {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.form__row input,
.form__row select,
.form__row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
}

.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  outline: 3px solid rgba(255, 140, 26, 0.5);
  border-color: var(--color-accent);
}

.form__submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 17px;
}

.form__note {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 16px;
}

/* ========== 下層ページ共通 ========== */
.page-hero {
  background: linear-gradient(135deg, #0a5bd3 0%, #16283f 70%);
  color: var(--color-white);
  text-align: center;
  padding: 130px 20px 60px;
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 14px;
  opacity: 0.85;
}

.section__inner--narrow { max-width: 860px; }

.legal-lead {
  margin-bottom: 20px;
  color: var(--color-text);
}

.legal-note {
  color: #c0392b;
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-heading {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-primary);
  border-left: 5px solid var(--color-accent);
  padding-left: 14px;
  margin: 48px 0 18px;
}

.legal-list {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0 20px;
  color: var(--color-text);
}

.legal-list li { margin-bottom: 6px; }

.legal-strong {
  font-size: 1.3em;
  color: var(--color-primary);
}

.legal-updated {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid #e4eaf2;
  color: var(--color-text-light);
  font-size: 14px;
  text-align: right;
}

.table-scroll { overflow-x: auto; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}

.legal-table th,
.legal-table td {
  border: 1px solid #dde5ee;
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--color-bg-gray);
  color: var(--color-primary);
  font-weight: 700;
  width: 220px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .legal-table th { width: 130px; white-space: normal; }
}

.text-link {
  color: var(--color-primary);
  text-decoration: underline;
}
.text-link:hover { color: var(--color-accent-dark); }

.legal-table th small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-light);
}

.formula-box {
  background: var(--color-bg-gray);
  border-left: 5px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 8px 0 24px;
}

.formula-box__title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14px;
  margin-bottom: 8px;
}

.formula-box__formula {
  font-size: 14px;
  margin-bottom: 6px;
}

.formula-box__example {
  font-size: 14px;
  color: var(--color-text-light);
}

.formula-box__example strong {
  color: var(--color-primary);
  font-size: 1.2em;
}

/* ========== 求人カード ========== */
.job-card {
  background: var(--color-white);
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 3px 14px rgba(20, 50, 90, 0.06);
}

.job-card__head { margin-bottom: 18px; }

.job-card__tag {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  margin-right: 6px;
}

.job-card__tag--intro { background: var(--color-accent); }
.job-card__tag--category { background: #5f6b78; }

.job-card__title {
  font-size: 20px;
  font-weight: 900;
  margin-top: 10px;
}

.jobs-cta {
  text-align: center;
  margin: 40px 0 24px;
}

.jobs-cta p { margin-bottom: 20px; }

/* ========== フッター ========== */
.footer {
  background: #0e1c2e;
  color: var(--color-white);
  padding: 48px 20px 32px;
  text-align: center;
}

.footer__logo {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer__license {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 24px;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 13px;
  margin-bottom: 32px;
}

.footer__nav a { opacity: 0.8; transition: opacity 0.2s; }
.footer__nav a:hover { opacity: 1; }

.footer__copy { font-size: 12px; opacity: 0.5; }

/* ========== スクロールアニメーション ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== レスポンシブ ========== */
@media (max-width: 1023px) {
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:not(:last-child)::after { display: none; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 767px) {
  .header__logo-text { font-size: 14px; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 28, 46, 0.97);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }
  .nav__list {
    flex-direction: column;
    gap: 30px;
    font-size: 18px;
    color: var(--color-white);
  }
  .nav__list a:not(.nav__cta)::after { background: var(--color-white); }

  .section { padding: 64px 0; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 4px;
  }
  .company-table th { border-bottom: none; padding-bottom: 0; }

  .form { padding: 32px 22px; }
  .hero { min-height: 560px; }
  .btn { width: 100%; max-width: 320px; }
}
