/* =========================================================
   ワンアップ株式会社 コーポレートサイト
   色・文字・余白は :root の変数でまとめて変更できます
   ========================================================= */
:root {
  --color-navy: #1c2747;
  --color-navy-deep: #0e1528;
  --color-blue: #2f6db5;
  --color-blue-light: #eef4fb;
  --color-gray-bg: #f5f6f8;
  --color-text: #3a3f4b;
  --color-text-muted: #5d6474;
  --color-border: #dfe3ea;
  --color-error: #c8323c;
  --color-white: #fff;
  --color-white-a85: rgb(255 255 255 / 85%);
  --color-white-a25: rgb(255 255 255 / 25%);
  --color-white-a10: rgb(255 255 255 / 10%);
  --color-gray-bg-light: #fbfbfc;
  --color-error-bg: #fff7f7;
  --gradient-navy: linear-gradient(110deg, var(--color-navy-deep) 0%, #15233f 45%, #1d3d6b 100%);
  --shadow-card: 0 2px 16px rgb(28 39 71 / 8%);
  --shadow-card-soft: 0 2px 20px rgb(28 39 71 / 4%);
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", meiryo, sans-serif;
  --font-logo: "Cormorant Garamond", "Times New Roman", serif;
  --header-height: 72px;
  --container: 1080px;
  --container-narrow: 820px;
  --gutter: 24px;
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

section[id],
.page-header[id],
article[id] {
  scroll-margin-top: var(--header-height);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--color-navy);
  color: var(--color-white);
}

.skip-link:focus {
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

.sp-only {
  display: none;
}

/* ---------- ロゴ ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-navy);
  text-decoration: none;
}

/* 支給のロゴマーク（縦長のモノグラム）。幅は縦横比から計算 */
.logo__mark {
  --mark-h: 54px;

  width: calc(var(--mark-h) * 692 / 2034);
  height: var(--mark-h);
  flex-shrink: 0;
  color: var(--color-navy);
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--color-border);
  line-height: 1;
}

.logo__name {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.logo__ja {
  color: var(--color-text-muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.logo--footer,
.logo--footer .logo__mark {
  color: var(--color-white);
}

.logo--footer .logo__mark {
  --mark-h: 72px;
}

.logo--footer .logo__text {
  border-left-color: var(--color-white-a25);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;

  /* スマホのノッチに重ならないよう、上の安全領域ぶん高くする */
  padding-top: env(safe-area-inset-top, 0);
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  background: var(--color-white);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-card);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-nav ul {
  display: flex;
  gap: 32px;
}

.site-nav a {
  position: relative;
  color: var(--color-navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- メインビジュアル ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  background: var(--gradient-navy);
  color: var(--color-white);
  text-align: center;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  padding-block: 80px;
}

.hero__title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.hero__lead {
  margin-top: 24px;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  line-height: 2;
}

/* ---------- セクション共通 ---------- */
.section {
  padding-block: 100px;
}

.section--gray,
.section-head--gray {
  background: var(--color-gray-bg);
}

.section-head {
  padding-block: 88px 64px;
}

.section-title {
  color: var(--color-navy);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--color-blue);
}

.section-lead {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
}

.section-title + .philosophy,
.section-title + .company-table {
  margin-top: 48px;
}

.text-link-center {
  margin-top: 56px;
  text-align: center;
}

.text-link {
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentcolor;
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--color-blue);
}

/* ---------- 会社理念 ---------- */
.philosophy p + p {
  margin-top: 18px;
}

/* ---------- 事業内容 ---------- */
.service {
  padding-block: 96px;
}

.service:nth-of-type(even) {
  background: var(--color-blue-light);
}

.service__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 64px;
}

.service:nth-of-type(even) .service__inner {
  flex-direction: row-reverse;
}

.service__body,
.service__image {
  flex: 1 1 0;
  min-width: 0;
}

.service__image img {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

.service__title {
  color: var(--color-navy);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.service__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  background: var(--color-blue);
}

.service:nth-of-type(even) .service__title {
  text-align: right;
}

.service:nth-of-type(even) .service__title::after {
  margin-left: auto;
}

.service__body p {
  margin-top: 18px;
}

.service__link {
  display: inline-block;
  margin-top: 22px;
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.service__link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.service__link:hover span {
  transform: translateX(4px);
}

/* ---------- 会社概要 ---------- */

/* 直前の事業（退職サポート）も白背景のため、区切り線を入れる */
#company {
  border-top: 1px solid var(--color-border);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border);
}

.company-table th,
.company-table td {
  padding: 22px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 28%;
  color: var(--color-navy);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- お問い合わせ ---------- */
.contact-card {
  max-width: 640px;
  margin: 48px auto 0;
  padding: 40px 32px;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: var(--shadow-card-soft);
}

.field + .field {
  margin-top: 26px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.required {
  padding: 0 8px;
  border-radius: 3px;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 11px;
  line-height: 1.8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-gray-bg-light);
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231c2747' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background-color: var(--color-white);
}

.field [aria-invalid="true"] {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

.field__error {
  margin-top: 6px;
  color: var(--color-error);
  font-size: 13px;
  font-weight: 500;
}

.form-note {
  margin-top: 28px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.form-note a {
  color: var(--color-blue);
}

.button {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 15px 24px;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-white);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.button--outline {
  background: var(--color-white);
  color: var(--color-navy);
}

.button--outline:hover {
  background: var(--color-gray-bg);
  border-color: var(--color-navy);
}

.confirm:focus {
  outline: none;
}

.confirm__title {
  color: var(--color-navy);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.confirm__lead {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
}

.confirm__list {
  margin-top: 28px;
  border-top: 1px solid var(--color-border);
}

.confirm__list div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-border);
}

.confirm__list dt {
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.confirm__list dd {
  white-space: pre-wrap;
}

.confirm__actions {
  display: flex;
  gap: 16px;
}

.contact-result {
  padding: 20px;
  border-radius: 4px;
  background: var(--color-blue-light);
  color: var(--color-navy);
  font-weight: 500;
  text-align: center;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white-a85);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-block: 64px 48px;
}

.site-footer__name {
  margin-top: 18px;
  color: var(--color-white);
}

.site-footer address {
  margin-top: 14px;
  font-style: normal;
  line-height: 1.8;
}

.site-footer__nav {
  display: flex;
  gap: 64px;
}

.site-footer__heading {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
}

.site-footer__heading::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 8px;
  background: var(--color-blue);
}

.site-footer__nav ul {
  margin-top: 16px;
}

.site-footer__nav li + li {
  margin-top: 6px;
}

.site-footer a:not(.logo) {
  color: var(--color-white-a85);
  text-decoration: none;
}

.site-footer a:not(.logo):hover {
  color: var(--color-white);
  text-decoration: underline;
}

.site-footer__copy {
  padding-block: 22px;
  border-top: 1px solid var(--color-white-a10);
  font-size: 12px;
  text-align: center;
}

/* ---------- 下層ページ（プライバシーポリシー） ---------- */
.page-header {
  padding-block: 72px;
  background: var(--gradient-navy);
  color: var(--color-white);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.06em;
}

.policy h2 {
  margin-top: 48px;
  color: var(--color-navy);
  font-size: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--color-blue);
  line-height: 1.5;
}

.policy p,
.policy ol {
  margin-top: 14px;
}

.policy ol {
  padding-left: 1.4em;
}

.policy__date {
  margin-top: 48px;
  text-align: right;
}

/* ---------- スクロール表示 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- タブレット・スマホ ---------- */
@media (width <= 900px) {
  .site-footer__inner {
    flex-direction: column;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    gap: 32px 48px;
  }
}

@media (width <= 768px) {
  :root {
    --header-height: 104px;
    --gutter: 20px;
  }

  .site-header .logo__mark {
    --mark-h: 42px;
  }

  .logo__name {
    font-size: 19px;
  }

  .site-header__inner {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 22px;
  }

  .site-nav a {
    display: block;
    padding-block: 6px;
    font-size: 14px;
  }

  .site-nav a::after {
    bottom: 2px;
  }

  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }

  .hero {
    min-height: 360px;
  }

  .hero__lead {
    text-align: left;
  }

  .section {
    padding-block: 72px;
  }

  .section-head {
    padding-block: 64px 40px;
  }

  .service {
    padding-block: 56px;
  }

  .service__inner,
  .service:nth-of-type(even) .service__inner {
    flex-direction: column-reverse;
    gap: 28px;
  }

  .service__image img {
    max-width: 320px;
  }

  .service:nth-of-type(even) .service__title {
    text-align: left;
  }

  .service:nth-of-type(even) .service__title::after {
    margin-left: 0;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding: 18px 4px 4px;
    border-bottom: 0;
  }

  .company-table td {
    padding: 0 4px 18px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .confirm__list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .confirm__actions {
    flex-direction: column-reverse;
    gap: 0;
  }
}

