/* =========================================================
   株式会社ACT コーポレートサイト
   デザイン: ACT_PC/SP_webdesign_260728
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fc;
  --color-surface: #ffffff;
  --color-blue: #1a5cff;
  --color-blue-deep: #0f3fd9;
  --color-black: #111111;
  --color-orange: #eb6e1e;
  --color-text: #1a1a1a;
  --color-text-muted: #1a1a1a;
  --color-line: #e3e8ef;
  --color-white: #ffffff;
  --color-req: #e05c39;

  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Outfit", "Noto Sans JP", sans-serif;

  --page-max: 1120px;
  --content-pad: clamp(1.25rem, 4vw, 2rem);
  --section-space: clamp(4rem, 8vw, 6.5rem);
  --header-h: 72px;
  --radius: 14px;
  --radius-pill: 999px;
  --confirm-scroll-height: 220px;
  --shadow: 0 16px 40px rgba(17, 40, 90, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 1.8;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* メニュー展開中はヘッダー背景を必ず不透明に（scroll lock で is-scrolled が外れるため） */
body.nav-open .site-header,
body.nav-open .page-home .site-header {
  background: #fff;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.page-top {
  position: relative;
  width: 0;
  height: 0;
  overflow: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }

.text-accent { color: var(--color-blue); font-weight: 900; }

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow--center { text-align: center; }
.eyebrow--light { color: var(--color-white); }

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--color-black);
}

.section-title--center { text-align: center; }
.section-title--light { color: var(--color-white); }

.section { padding: var(--section-space) 0; }

.section__inner {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.section__inner--narrow { width: min(100%, 760px); }
.section--message .section__inner--narrow { width: min(100%, 900px); }
.section__inner--form { width: min(100%, 720px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.btn__arrow {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.btn__chevron {
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  translate: 0 -0.1rem;
}

.btn__external-icon {
  display: block;
  flex: 0 0 auto;
  margin-left: 0.1rem;
  width: 16px;
  height: 13px;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(26, 92, 255, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-blue-deep);
  transform: translateY(-1px);
  outline: none;
}

/* 美工ボタン：事業内容を見ると同じ角丸四角 */
.btn--group {
  border-radius: 12px;
  min-width: 0;
  padding-inline: 1.5rem;
}

.btn--group .btn__external-icon {
  width: 16px;
  height: 13px;
  margin-left: 0.35rem;
}

.btn--orange {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(235, 110, 30, 0.28);
}

.btn--orange:hover,
.btn--orange:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  outline: none;
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-blue);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(17, 40, 90, 0.1);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: #f3f7ff;
  border-color: rgba(26, 92, 255, 0.28);
  outline: none;
}

.btn--down {
  min-width: 12.5rem;
  border-radius: 12px;
}

.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  opacity: 0.88;
  outline: none;
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn--pill,
.btn--pill-light {
  border-radius: var(--radius-pill);
  min-width: 200px;
}

.btn--pill-light {
  background: var(--color-white);
  color: var(--color-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.btn__chat {
  width: 1.15rem;
  height: 1.05rem;
  border: 2px solid currentColor;
  border-radius: 0.35rem 0.35rem 0.35rem 0.1rem;
  position: relative;
}

.btn__chat::after {
  content: "";
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  width: 0.7rem;
  height: 0.65rem;
  border: 2px solid currentColor;
  border-radius: 0.25rem;
  background: var(--color-white);
}

.btn--pill-light:hover,
.btn--pill-light:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  overflow: visible;
  background: rgba(255, 255, 255, 0.96);
  /* backdrop-filter は fixed 子要素の基準を崩すため使わない */
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* トップ：ヘッダー透過＋KVをヘッダー裏まで表示 */
.page-home .site-header {
  background: transparent;
}

.page-home .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--page-max));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
}

.site-header__logo img {
  display: block;
  width: clamp(90px, 22vw, 120px);
  height: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  margin-left: auto;
}

/* PCヘッダーCTA：上辺フラット／下だけ角丸のタブ型 */
.btn--header-cta {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
  margin-left: 1.5rem;
  padding: 0 1.5rem;
  border-radius: 0 0 18px 18px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 24px rgba(235, 110, 30, 0.28);
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: 100%;
}

.global-nav__list a {
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-black);
}

.global-nav__list 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.28s ease;
}

.global-nav__list a:hover,
.global-nav__list a:focus-visible {
  color: var(--color-black);
  outline: none;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--color-black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 820px);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: #f7f9fd;
}

/* ヘッダー裏まで背景を伸ばす */
.page-home .hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(0.75rem, 1.8vw, 1.25rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  min-height: clamp(640px, 100svh, 920px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  top: 0;
  bottom: -30%;
  background: url("../images/kv.png") right center / cover no-repeat;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 820px) {
  /*
    SPのKVは 750×1200。100svh だと縦に足りず cover で下が切れるため、
    表示エリアを画像と同じ比率にして全体を収める。
  */
  .page-home .hero {
    margin-top: 0; /* SPヘッダーは fixed のため負マージン不要 */
    min-height: calc(100vw * 1200 / 750);
    height: calc(100vw * 1200 / 750);
    max-height: none;
  }

  .hero__bg {
    inset: 0;
    bottom: 0;
    background-image: url("../images/kv-sp.png");
    background-position: center center;
    background-size: cover;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.hero__copy {
  width: min(100%, 34rem);
}

.hero__title {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5.2vw, 3.55rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.hero__slogan {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  font-weight: 700;
}

/* 画面左端（余白）からテキスト手前まで伸びる青ライン */
.hero__slogan-line {
  position: absolute;
  top: 50%;
  left: calc(-1 * (max(0px, (100vw - var(--page-max)) / 2) + var(--content-pad)));
  width: calc(max(0px, (100vw - var(--page-max)) / 2) + var(--content-pad) - 0.75rem);
  height: 3px;
  background: currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__lead {
  margin-bottom: 0.7rem;
  font-size: clamp(1.1rem, 2.1vw, 1.25rem);
  font-weight: 700;
}

.hero__text {
  margin-bottom: 1.75rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- About ---------- */
.section--about { background: var(--color-surface); }

.about__text {
  margin-top: 1.6rem;
  text-align: center;
  font-size: clamp(1.1rem, 2.1vw, 1.25rem);
  font-weight: 700;
  line-height: 2.1;
}

.about__text--sub {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

/* ---------- Services ---------- */
.section--services {
  background: var(--color-bg-alt);
  padding-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.service-card {
  padding: 2rem 1.5rem 1.9rem;
  background: var(--color-white);
  border-radius: 18px;
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 28px rgba(17, 40, 90, 0.1);
}

.service-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.service-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
}

.service-card__icon img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 3.4rem;
  object-fit: contain;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.service-card__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.services-band {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}

.services-band img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 820px) {
  .services-band img {
    max-height: none;
  }
}

/* ---------- Strengths ---------- */
.section--strengths { background: var(--color-bg-alt); }

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.strength-item { text-align: center; }

.strength-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 120px;
  margin: 0 auto 1.15rem;
  overflow: visible;
}

.strength-item__icon img {
  display: block;
  width: 140px;
  height: 120px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 820px) {
  .strength-item__icon {
    width: 112px;
    height: 96px;
  }

  .strength-item__icon img {
    width: 112px;
    height: 96px;
  }
}

.strength-item__title {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.strength-item__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: center;
}

/* ---------- Needs ---------- */
.section--needs { background: var(--color-bg-alt); }

.needs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 2rem auto 0;
}

.needs-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  background: var(--color-white);
  border-radius: 14px;
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 28px rgba(17, 40, 90, 0.1);
  font-size: 1.4rem;
  font-weight: 700;
}

.needs-item::before {
  content: "";
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%231a5cff'/%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.needs-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 1rem) / 2);
  justify-self: start;
}

/* ---------- Message ---------- */
.section--message {
  position: relative;
  color: var(--color-white);
  /* 画像自体が暗いため、暗幕フィルターはかけない（発色優先） */
  background: url("../images/message-bg.png") center / cover no-repeat;
  text-align: center;
}

@media (max-width: 820px) {
  .section--message {
    background-image: url("../images/message-bg-sp.png");
  }
}

.section--message .eyebrow {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0.2em;
}

.section--message .section-title {
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
  letter-spacing: 0.06em;
}

.section--message .section-title--center::after,
.section--about .section-title--center::after,
.section--services .section-title--center::after,
.section--strengths .section-title--center::after,
.section--needs .section-title--center::after,
.section--contact .section-title--center::after {
  content: none;
}

.message__text {
  margin-top: 1.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  line-height: 2.15;
}

.message__role {
  margin-top: 2rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* PC：上へ寄せつつ、見出し〜本文〜代表名の間隔を広げる（下余白は維持） */
@media (min-width: 821px) {
  .section--message {
    padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
    padding-bottom: var(--section-space);
  }

  .section--message .eyebrow {
    margin-bottom: 1.6rem;
    font-size: 1.5rem;
  }

  .section--message .section-title {
    margin-bottom: 0;
  }

  .message__text {
    margin-top: 2.75rem;
    font-size: 1.25rem;
  }

  .message__role {
    margin-top: 2.75rem;
  }
}

/* ---------- Company ---------- */
.section--company { background: var(--color-bg-alt); }

.company-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.company-table { border-top: 1px solid var(--color-line); }

.company-table__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--color-line);
}

.company-table__row dt { font-weight: 700; }
.company-table__row dd { margin: 0; color: var(--color-text-muted); }

.group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 28px rgba(17, 40, 90, 0.1);
}

.group-card__brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.group-card__logo {
  flex: 0 0 auto;
  display: block;
  width: clamp(110px, 22vw, 148px);
  height: auto;
}

.group-card__text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.group-card .eyebrow { margin-bottom: 0.35rem; }

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative;
  padding: clamp(4rem, 9vw, 6rem) 0;
  /* 白フィルターなし：背景画像をそのまま表示 */
  background: url("../images/cta-band.png") center / cover no-repeat;
  text-align: center;
}

@media (max-width: 820px) {
  /*
    SP画像は 750×1080。cover のまま短い帯にすると上下が切れるため、
    表示高さを画像比率に合わせ、文字は上寄せ。
  */
  .cta-band {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: calc(100vw * 1080 / 750);
    min-height: calc(100vw * 1080 / 750);
    padding: clamp(2.5rem, 9vw, 3.75rem) 0 0;
    box-sizing: border-box;
    background-image: url("../images/cta-band-sp.png");
    background-position: center center;
    background-size: cover;
  }
}

.cta-band__inner {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.cta-band__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cta-band__title {
  margin-bottom: 0;
  color: var(--color-black);
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.br-sp { display: none; }

/* ---------- Contact ---------- */
.section--contact { background: var(--color-surface); }

.contact__lead {
  margin: 1.1rem 0 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.confirm-box {
  margin-bottom: 2rem;
  padding: 1.35rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.confirm-box__title {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.confirm-box__intro {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.confirm-box__scroll-wrap {
  position: relative;
}

.confirm-box__scroll {
  max-height: var(--confirm-scroll-height);
  overflow-y: scroll;
  padding-right: 0.5rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, 0.35) rgba(17, 17, 17, 0.08);
}

/* PC等：ネイティブのスクロールバーを見やすく */
.confirm-box__scroll::-webkit-scrollbar {
  width: 8px;
}

.confirm-box__scroll::-webkit-scrollbar-track {
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
}

.confirm-box__scroll::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.35);
  border-radius: 999px;
}

/* デフォルトはカスタムバー非表示（PC二重表示防止） */
.confirm-box__scrollbar {
  display: none;
}

/* iOS等タッチ端末のみ：常時表示のカスタムスクロールバー */
@media (hover: none), (pointer: coarse) {
  .confirm-box__scroll {
    padding-right: 1rem;
    /* ネイティブバーは隠し、カスタムのみ表示 */
    scrollbar-width: none;
  }

  .confirm-box__scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .confirm-box__scrollbar {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.1);
    pointer-events: none;
  }

  .confirm-box__scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 28px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.4);
    transform: translate3d(0, 0, 0);
    will-change: transform, height;
  }
}

.confirm-list { display: grid; gap: 1rem; }
.confirm-list dt { margin-bottom: 0.25rem; font-size: 1rem; font-weight: 700; }
.confirm-list dd { margin: 0; color: var(--color-text-muted); font-size: 1rem; line-height: 1.85; }

.contact-form { display: grid; gap: 1.15rem; }

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field { display: grid; gap: 0.45rem; }
.form-field label { font-size: 1rem; font-weight: 700; }
.req { color: var(--color-req); font-weight: 700; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  border-radius: 10px;
  resize: vertical;
  min-height: 160px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.12);
}

.form-field__error {
  margin-top: 0.2rem;
  color: #d93025;
  font-size: 1rem;
  font-weight: 700;
}

.contact-form__error {
  color: #d93025;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.form-check {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  cursor: pointer;
}

.form-check input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-blue);
}

.contact-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* ---------- Form confirm / thanks ---------- */
.form-confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.form-confirm-table th,
.form-confirm-table td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  font-size: 1rem;
  line-height: 1.8;
}

.form-confirm-table th {
  width: 34%;
  padding-right: 1rem;
  font-weight: 700;
  color: var(--color-black);
}

.form-confirm-table td {
  color: var(--color-text-muted);
  word-break: break-word;
}

.form-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.form-confirm__actions .btn {
  min-width: 10rem;
  border-radius: 12px;
}

.form-confirm__note {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.form-confirm__errors {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: #fff5f5;
  border: 1px solid #f0c2c2;
  border-radius: 10px;
  color: #c62828;
}

.form-confirm__errors p {
  margin: 0.25rem 0;
}

@media (max-width: 820px) {
  .form-confirm-table th,
  .form-confirm-table td {
    display: block;
    width: 100%;
    padding: 0.55rem 0;
  }

  .form-confirm-table th {
    padding-top: 1rem;
    border-bottom: 0;
    font-size: 0.9rem;
  }

  .form-confirm-table td {
    padding-bottom: 1rem;
    font-size: 0.9rem;
  }

  .form-confirm__actions {
    flex-direction: column;
  }

  .form-confirm__actions .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  color: var(--color-white);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--content-pad) 1.5rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  width: min(100%, var(--page-max));
  margin: 0 auto 2rem;
}

.site-footer__brand > a img {
  width: 120px;
  height: auto;
  margin-bottom: 0.85rem;
}

.site-footer__ja {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.site-footer__badge {
  display: block;
  width: 111px;
  height: auto;
  margin-top: 1rem;
}

.site-footer__nav {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.site-footer__nav ul {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.site-footer__nav li {
  line-height: 1.35;
}

.site-footer__nav a {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1.35;
  transition: opacity 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  opacity: 0.7;
  outline: none;
}

.site-footer__copy {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-family: var(--font-en);
  font-size: 1rem;
  opacity: 0.8;
}

.site-footer__bottom {
  width: min(100%, var(--page-max));
  margin: 0 auto;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: center;
}

.site-footer__bottom .site-footer__copy {
  width: 100%;
  border-top: 0;
  padding-top: 0;
}

/* ---------- Back to TOP / Modal ---------- */
.back-to-top {
  position: fixed;
  right: clamp(0.85rem, 3vw, 1.5rem);
  bottom: clamp(0.85rem, 3vw, 1.5rem);
  z-index: 150;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
}

.back-to-top span:first-child {
  display: block;
  font-size: 0.75rem;
  line-height: 1;
}

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

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--content-pad);
}

.form-modal[hidden] { display: none; }

.form-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.form-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.form-modal__eyebrow {
  margin-bottom: 0.65rem;
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.form-modal__title {
  margin-bottom: 1rem;
  font-size: 1.55rem;
  font-weight: 900;
}

.form-modal__text {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

body.modal-open { overflow: hidden; }

/* ---------- Legal / 404 ---------- */
.legal-page {
  background: var(--color-bg-alt);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 5.5rem);
}

.legal-page__inner {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.legal-page__inner--center { text-align: center; }

.legal-page__head {
  margin-bottom: 1.75rem;
  text-align: center;
}

.legal-page__title {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
}

.legal-page__lead {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.legal-page__panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(17, 40, 90, 0.08);
}

.legal-page__panel--center {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.legal-page__panel--center .legal-page__lead {
  margin-bottom: 1.75rem;
}

.legal-page__panel--center .legal-page__back {
  margin-top: 0;
}

.legal-page__body h2 {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

.legal-page__body h2:first-child {
  margin-top: 0;
}

.legal-page__body h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-black);
}

.legal-page__body p,
.legal-page__body li {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.95;
}

.legal-page__body p + p {
  margin-top: 0.85rem;
}

.legal-page__body ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
  list-style: disc;
}

.legal-page__body a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-page__body a:hover,
.legal-page__body a:focus-visible {
  opacity: 0.8;
}

.legal-page__date {
  margin: 1.75rem 0;
  font-weight: 700;
  line-height: 2;
  color: var(--color-black);
}

.legal-page__back {
  margin-top: 2.5rem;
  text-align: center;
}

.legal-page__back .btn {
  min-width: 12rem;
}

@media (max-width: 820px) {
  .legal-page__panel {
    padding: 1.35rem 1.15rem;
  }

  .legal-page__body p,
  .legal-page__body li {
    font-size: 0.9rem;
  }

  .legal-page__body h2 {
    font-size: 1.05rem;
  }

  .legal-page__body h3 {
    font-size: 0.98rem;
  }
}

.error-page__code {
  margin: 0.35rem 0 0.75rem;
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    min-height: clamp(520px, 72vh, 700px);
  }

  .page-home .hero {
    min-height: clamp(600px, 100svh, 820px);
  }

  .hero__bg {
    background-position: 72% center;
  }

  @media (max-width: 820px) {
    .page-home .hero {
      min-height: calc(100vw * 1200 / 750);
      height: calc(100vw * 1200 / 750);
    }

    .hero__bg {
      background-position: center center;
    }
  }

  .hero__copy {
    width: min(100%, 32rem);
  }

  .service-grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
  .company-layout .eyebrow,
  .company-layout .section-title { text-align: center; }
  .company-table__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    text-align: left;
  }
  .group-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .group-card__brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .group-card .btn { width: 100%; }
}

@media (max-width: 560px) {
  .strengths-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }

  /* 固定ヘッダー分の余白（TOPはヒーロー側で相殺） */
  body:not(.page-home) {
    padding-top: var(--header-h);
  }

  .nav-toggle { display: block; position: relative; z-index: 220; }

  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 210;
    display: grid;
    gap: 1.25rem;
    height: auto;
    margin-left: 0;
    padding: 1.25rem var(--content-pad) 1.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .global-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .global-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
    height: auto;
  }

  /* SP：相談ボタンをヘッダー内に常時表示（追従） */
  .btn--header-cta {
    align-self: center;
    width: auto;
    height: auto;
    min-height: 36px;
    margin-left: auto;
    margin-right: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px rgba(235, 110, 30, 0.28);
  }

  .needs-grid,
  .contact-form__row { grid-template-columns: 1fr; }

  .needs-item:last-child:nth-child(odd) {
    width: 100%;
  }

  .br-sp { display: inline; }

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

  .site-footer__nav {
    flex-direction: column;
    gap: 0.25rem;
  }

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

  .hero__actions .btn {
    width: 66.666%;
    min-width: 0;
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
  }

  .hero__lead {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .hero__text {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  /* ABOUT以降：ヒーローに合わせたSP文字サイズ */
  body {
    font-size: 0.9rem;
  }

  .eyebrow,
  .cta-band__eyebrow {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* MESSAGE：SPでも見出しを大きめに */
  .section--message .eyebrow {
    font-size: 1.3rem;
  }

  .section--message .section-title {
    font-size: 1.85rem;
  }

  .about__text {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .about__text--sub {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  .service-card__title {
    font-size: 1.1rem;
  }

  .service-card__text,
  .strength-item__text,
  .message__text,
  .message__role,
  .company-table__row dd,
  .contact__lead,
  .confirm-list dt,
  .confirm-list dd,
  .form-field label,
  .form-check,
  .site-footer__nav a,
  .site-footer__ja {
    font-size: 0.9rem;
  }

  .strength-item__title {
    font-size: 1.15rem;
  }

  .needs-item {
    font-size: 1.05rem;
  }

  .group-card__text,
  .confirm-box__title,
  .company-table__row dt {
    font-size: 0.98rem;
  }

  .cta-band__title {
    font-size: 1.75rem;
  }

  .btn {
    font-size: 0.95rem;
    min-height: 48px;
  }

  .form-field input,
  .form-field textarea {
    font-size: 0.9rem;
  }

  .site-footer__copy {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .back-to-top,
  .global-nav,
  .nav-toggle span,
  .global-nav__list a::after { transition: none; }
}
