/* ==========================================================================
   Trend-ONE renewal - base stylesheet (draft)
   ========================================================================== */

:root {
  --bg: #0b0b0b;
  --bg-alt: #121212;
  --line: #242424;
  --text: #f4f3f0;
  --text-muted: #8f8d88;
  --text-dim: #807d76;

  /* ロゴから採取したイエロー。アクセントは要所のみに使う */
  --accent: #f2d75a;
  --accent-soft: rgba(242, 215, 90, 0.12);

  /* 業種タグのように面積が広い箇所用。
     元のイエローだと明るすぎ、落としすぎると画面が暗く見えるため中間に置いている */
  --accent-dim: #dabe51;


  --header-h: 76px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-en: "Poppins", "Noto Sans JP", sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

a:hover {
  opacity: 0.65;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section--alt {
  background: var(--bg-alt);
}

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

.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.5;
}

.section-lead {
  margin-top: 24px;
  color: var(--text-muted);
  max-width: 720px;
}

/* 見出しに添える小さな注記 */
.section-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.text-muted {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  width: min(100% - 48px, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

/* ロゴ画像を入れたときの受け皿。
   assets/img/logo.svg を置き、.logo の中身を <img> に差し替えれば効く */
.logo img {
  display: block;
  height: 34px;
  width: auto;
}

.footer .logo img {
  height: 44px;
}

@media (max-width: 768px) {
  .logo img {
    height: 30px;
  }

  .footer .logo img {
    height: 38px;
  }
}

.gnav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.gnav__link {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.gnav__link.is-current {
  color: var(--accent);
  opacity: 1;
}

.gnav__link small {
  display: block;
  font-family: var(--font-jp);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-top: 2px;
}

.gnav__link.is-current small {
  color: var(--accent);
}

/* 本文のボタン（フォームで問い合わせる）と同じ、白枠＋太字＋矢印のデザインに揃える */
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--text);
  padding: 14px 28px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.header__cta::after {
  content: "→";
  transition: transform 0.3s ease;
}

.header__cta:hover::after {
  transform: translateX(4px);
}

.header__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  opacity: 1;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.is-nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.is-nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 120px;
  background:
    radial-gradient(70% 55% at 18% 42%, rgba(242, 215, 90, 0.07), transparent 72%),
    var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 素材が明るく白い画面が多いため、映像側を少し沈めて文字を立たせる */
  filter: brightness(0.7) contrast(1.03) saturate(1.06);
}

/* 動画を殺さない濃さに調整。左は文字が乗るので濃く、右は映像を見せる。
   周辺光量を落とす(vignette)ことで奥行きを出している */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 11, 11, 0.93) 0%, rgba(11, 11, 11, 0.82) 30%, rgba(11, 11, 11, 0.46) 62%, rgba(11, 11, 11, 0.3) 100%),
    linear-gradient(0deg, rgba(11, 11, 11, 0.9) 0%, rgba(11, 11, 11, 0.3) 34%, transparent 58%),
    radial-gradient(120% 100% at 50% 45%, transparent 34%, rgba(0, 0, 0, 0.52) 100%);
}

/* うっすらとしたグリッド。動画が入ると背面に沈む程度の濃さにしている */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 78%);
}

/* 社名は主役から背景の意匠へ */
.hero__ghost {
  position: absolute;
  right: -0.05em;
  bottom: -0.3em;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(90px, 17vw, 280px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  /* 背景が動画のときは情報量が多く、抜き文字がノイズになるため隠す */
  display: none;
}

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

.hero__eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 16px;
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(32px, 5.6vw, 74px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6);
}

.hero__lead {
  margin-top: 28px;
  /* 動画の上ではグレーだと沈むため、白寄りに上げて影を添える */
  color: rgba(244, 243, 240, 0.84);
  max-width: 660px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__facts {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  font-size: 13px;
  color: rgba(244, 243, 240, 0.8);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.hero__facts li {
  position: relative;
  padding-left: 20px;
}

.hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.hero__facts b {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  margin: 0 2px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 36px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  padding-bottom: 44px;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-line 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--header-h) + 32px) 0 110px;
  }

  .hero__actions {
    margin-top: 36px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero__facts {
    margin-top: 40px;
    gap: 10px;
    flex-direction: column;
  }

  /* 画面幅が狭いと社名が途中で切れて読めないため、モバイルでは出さない */
  .hero__ghost {
    display: none;
  }

  .hero__scroll {
    bottom: 24px;
    padding-bottom: 30px;
  }

  .hero__scroll::after {
    height: 24px;
  }
}

/* --------------------------------------------------------------------------
   Intro (company introduction at the top of home)
   -------------------------------------------------------------------------- */

.intro {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

.intro__inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.intro__title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.7;
  margin-top: 24px;
}

.intro__text {
  margin-top: 32px;
  color: var(--text-muted);
}

.intro__text + .intro__text {
  margin-top: 20px;
}

.intro__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, #1a1a1a, #2c2c2c);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #4a4a4a;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.intro__numbers {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

@media (max-width: 768px) {
  .intro {
    padding: 90px 0 80px;
  }

  .intro__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro__numbers {
    grid-template-columns: 1fr;
    margin-top: 64px;
    gap: 40px;
  }
}

/* page hero (lower pages) */

.page-hero {
  padding: calc(var(--header-h) + 120px) 0 100px;
  background:
    radial-gradient(50% 70% at 20% 30%, rgba(242, 215, 90, 0.04), transparent 70%),
    var(--bg);
}

.page-hero__en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(44px, 9vw, 108px);
  line-height: 1;
}

.page-hero__jp {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text);
}

.breadcrumb {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  white-space: nowrap;
}

.marquee__row + .marquee__row {
  margin-top: 14px;
}

.marquee__inner {
  display: inline-flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
  font-family: var(--font-en);
  /* 2行になったぶん1行あたりは控えめにして、帯が主張しすぎないようにする */
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--text-muted);
}

/* 2行目は逆方向へ。同じ向きだと2行が一体に見えて動きが死ぬ。
   速度も少しずらして、周期が揃わないようにしている */
.marquee__inner--reverse {
  animation-direction: reverse;
  animation-duration: 34s;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__inner {
    animation: none;
  }
}

/* 帯のすぐ下に置く注記。帯は全幅なので、文字だけ本文の幅に揃える */
.marquee-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.marquee-note .container {
  display: block;
  text-align: right;
}

@media (max-width: 768px) {
  .marquee-note {
    font-size: 11px;
    line-height: 1.7;
  }

  .marquee-note .container {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Lead copy (ABOUT US の中央寄せコピー)
   1文を複数行に割り、強調語だけサイズ・色・下線で立てる組み方
   -------------------------------------------------------------------------- */

.section-label--center {
  text-align: center;
}

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

.lead-copy__line {
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text);
}

.lead-copy__line--spaced {
  margin-top: 44px;
}

/* 強調語。em を使っているが斜体にはしない */
.mark {
  position: relative;
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 0 6px;
  vertical-align: baseline;
}

.mark--accent {
  color: var(--accent);
}

/* 手書き風のアンダーライン。文字幅に合わせて伸縮する */
.mark__underline {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -2px;
  width: calc(100% - 4px);
  height: 0.28em;
  color: var(--accent);
  overflow: visible;
}

.mark__icon {
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.18em;
  vertical-align: -0.06em;
  color: var(--accent);
}

.section-button--center {
  text-align: center;
  margin-top: 64px;
}

/* --------------------------------------------------------------------------
   Pains (ホームのお悩み訴求)
   見出しを中央、箇条書きは左。強調語はイエローの下線で拾わせる
   -------------------------------------------------------------------------- */

.pains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 80px;
}

.pain {
  position: relative;
}

/* フィルタ定義だけを持つSVG。描画はしない */
.ink-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* もやもやの線。引き伸ばすと線が歪むので比率は保ったまま、
   背面の透かしとして中央に置く */
.pain__cloud {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 168%;
  width: auto;
  color: rgba(150, 148, 142, 0.07);
  pointer-events: none;
  z-index: 0;
}

.pain__title,
.pain__list {
  position: relative;
  z-index: 1;
}

.pain__title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-align: center;
  margin-bottom: 30px;
}

.pain__list {
  display: grid;
  gap: 18px;
}

/* 背面に線が入るため、通常より明るさと太さを上げて文字を前に出す */
.pain__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--text);
}

.pain__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* 悩みの核になる言葉だけを拾わせる */
.pain__list b {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* 4つの悩みの下。VIEW SERVICE と横並びで右側に立たせる */
.pains__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.pains__foot .section-button {
  margin-top: 56px;
  margin-bottom: 8px;
}

/* 下の余白ぶんだけ引き下げて、セクション下端のラインに足元を合わせる。
   -120px は .section の padding-bottom と同じ値 */
.pains__person {
  position: relative;
  flex: none;
  width: min(240px, 28%);
  margin-right: 40%;
  margin-bottom: -120px;
}

/* 濃紺のスーツが黒背景に溶けるため、背面に淡い光を敷いて輪郭を出す */
.pains__person::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: 118%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(242, 215, 90, 0.09), transparent 66%);
  pointer-events: none;
}

.pains__person img {
  position: relative;
}

.pains__person img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .pains {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pains__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pains__person {
    width: 200px;
    margin: 12px auto -80px;
  }

  .pain__title {
    text-align: left;
    text-indent: 0;
    margin-bottom: 22px;
  }
}

@media (max-width: 768px) {
  .pain__list {
    gap: 14px;
  }

  .pain__list li {
    font-size: 14px;
  }

  /* 幅が狭いと線が文字に重なりやすいので、さらに薄くする */
  .pain__cloud {
    height: 150%;
    color: rgba(150, 148, 142, 0.05);
  }
}

/* --------------------------------------------------------------------------
   Strengths (ABOUTページの強み 2x2)
   番号を角丸のチップにして見出しと同じ行に置く組み方
   -------------------------------------------------------------------------- */

.strengths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.strength {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 36px 34px 38px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.strength:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.strength__head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.strength__num {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.strength__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.strength__text {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text);
}

@media (max-width: 1024px) {
  .strengths {
    gap: 20px;
  }

  .strength {
    padding: 30px 26px 32px;
  }

  .strength__title {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   Philosophy (ABOUTページの理念)
   左に人物写真、右に本文と署名を置く見開きの組み方
   -------------------------------------------------------------------------- */

.philosophy__inner {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 72px;
  align-items: start;
}

.philosophy__photo img {
  width: 100%;
  height: auto;
}

/* 本文側の小見出し。大見出しより一段下げて、読み出しの入口にする */
.philosophy__heading {
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 30px;
}

.philosophy__text {
  color: var(--text);
  font-size: 15px;
  line-height: 2.25;
}

.philosophy__text + .philosophy__text {
  margin-top: 30px;
}

.philosophy__sign {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.philosophy__sign b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.philosophy__sign span {
  font-size: 13px;
  color: var(--text);
}

@media (max-width: 900px) {
  .philosophy__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* 1カラムになると写真が大きくなりすぎるため上限をつける */
  .philosophy__photo {
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  .philosophy__text {
    line-height: 2.05;
  }

  .philosophy__text + .philosophy__text {
    margin-top: 24px;
  }

  .philosophy__sign {
    margin-top: 36px;
  }
}

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

  .strength__num {
    width: 42px;
    height: 42px;
    font-size: 13px;
    border-radius: 10px;
  }

  .strength__head {
    gap: 14px;
  }

  .strength__text {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .lead-copy {
    margin-top: 40px;
  }

  .lead-copy__line {
    line-height: 2;
  }

  .lead-copy__line--spaced {
    margin-top: 32px;
  }

  .section-button--center {
    margin-top: 48px;
  }
}

/* --------------------------------------------------------------------------
   Grid / cards
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 32px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  border: 1px solid var(--line);
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card__num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.card__title {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}

.card__text {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* 番号をチップで見せるカード。ABOUTの「4つの強み」と同じ見え方に揃えている */
.card--numbered .card__head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.card--numbered .card__num {
  flex: none;
  /* 「01」だけでなく「集客」のような2文字も入るので、下限を決めて内容に合わせる */
  min-width: 48px;
  padding: 0 10px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.card--numbered .card__title {
  margin-top: 0;
}

.card--numbered .card__text {
  margin-top: 26px;
  line-height: 1.95;
}

@media (max-width: 768px) {
  .card--numbered .card__head {
    gap: 14px;
  }

  .card--numbered .card__num {
    width: 42px;
    height: 42px;
    font-size: 13px;
    border-radius: 10px;
  }

  .card--numbered .card__text {
    margin-top: 20px;
  }
}

/* thumbnail placeholder */

.thumb {
  /* 中に置く再生マークなどの基準にする。無いとページ上部へ飛び出してしまう */
  position: relative;
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #4a4a4a;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.thumb--wide {
  aspect-ratio: 16 / 9;
}

/* 動画を開くサムネイル。button なので既定の見た目を打ち消す */
.thumb--play {
  padding: 0;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
}

.thumb__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.thumb__play svg {
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.thumb--play:hover .thumb__play svg {
  background: var(--accent);
  color: #111;
}

/* --------------------------------------------------------------------------
   Lightbox (動画の拡大再生)
   -------------------------------------------------------------------------- */

/* display を指定すると hidden 属性が効かなくなるので、明示的に打ち消す */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox__frame {
  width: min(430px, 92vw);
  aspect-ratio: 9 / 16;
  max-height: 86vh;
  background: #000;
}

/* 横動画は幅を基準にする */
.lightbox__frame.is-wide {
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  max-height: 86vh;
}

.lightbox__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(11, 11, 11, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

/* 開いている間は背面をスクロールさせない */
body.is-lightbox-open {
  overflow: hidden;
}

/* 画像は枠を埋める。差し替え時もトリミングは CSS 側で吸収する */
.thumb,
.member__photo,
.intro__visual {
  overflow: hidden;
}

.thumb img,
.member__photo img,
.intro__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.thumb:hover img {
  transform: scale(1.05);
}

.work__meta {
  margin-top: 16px;
  font-size: 13px;
}

.work__cat {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* --------------------------------------------------------------------------
   Numbers / member / table
   -------------------------------------------------------------------------- */

.num__value {
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.1;
}

.num__value small {
  font-size: 18px;
  margin-left: 6px;
}

.num__label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 支給写真が約360px四方のため、引き伸ばさないサイズに収める */
.member__photo {
  aspect-ratio: 1 / 1;
  max-width: 240px;
  background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #4a4a4a;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.member__role {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text);
}

.member__name {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
}

.member__name span {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text);
  margin-top: 6px;
}

.member__text {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.table th {
  width: 200px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.1em;
}

/* tag list */

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

/* サイト内の番号チップと同じ、イエロー塗りの角丸に揃える */
.tags li {
  background: var(--accent-dim);
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111;
}

/* price */

.price__amount {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.2;
  margin-top: 24px;
}

.price__amount small {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 8px;
}

.price__list {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.price__list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

/* flow */

.flow {
  counter-reset: flow;
}

.flow__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

/* 強みや工程の番号と同じく、イエローのチップで揃える */
.flow__step {
  display: inline-block;
  align-self: start;
  /* グリッドの列幅いっぱいに伸びると文字が左に寄るため、文字幅に合わせる */
  justify-self: start;
  background: var(--accent);
  color: #111;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons / CTA
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--text);
  padding: 18px 40px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.btn:hover {
  background: var(--text);
  color: #111;
  opacity: 1;
}

.btn--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent);
  color: #111;
}

.section-button,
.intro__button {
  margin-top: 56px;
}

.intro__button {
  margin-top: 40px;
}

.cta {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 100% at 50% 100%, rgba(242, 215, 90, 0.045), transparent 70%),
    var(--bg-alt);
}

.cta__title {
  font-family: var(--font-en);
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 300;
  line-height: 1.1;
}

.cta__text {
  margin-top: 24px;
  color: var(--text);
}

.cta__buttons {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Price page
   -------------------------------------------------------------------------- */

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card__note {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

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

.table--compare {
  min-width: 620px;
}

.table--compare thead th {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  width: auto;
  padding-bottom: 16px;
}

.table--compare tbody th {
  width: 200px;
}

.table--compare td {
  width: auto;
  color: var(--text-muted);
}

.table--compare td strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .table--compare th,
  .table--compare td {
    display: table-cell;
    padding: 16px 12px 16px 0;
  }

  .table--compare tbody th {
    width: 42%;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   Plans (プラン比較表)
   -------------------------------------------------------------------------- */

.plans {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  text-align: center;
}

.plans th,
.plans td {
  border: 1px solid #2c2c2c;
  padding: 26px 20px;
  vertical-align: middle;
}

.plans__corner {
  border-color: transparent !important;
  background: transparent;
}

/* 行見出しの列 */
.plans tbody th {
  width: 170px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  background: #252525;
}

.plans tbody td {
  background: #1e1e1e;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
}

/* プラン名のヘッダー。2プランを色で区別する */
.plans__head {
  padding: 30px 20px;
}

.plans__head--standard {
  background: linear-gradient(135deg, #e9d79b, #d6b442);
  color: #14120b;
  border-color: #d6b442;
}

/* ライトプランはシルバー。ゴールドと並べると等級の差が直感的に伝わり、
   黒＋イエローの配色からも浮かない */
.plans__head--light {
  background: linear-gradient(135deg, #eceae5, #b4b1a9);
  color: #14120b;
  border-color: #b4b1a9;
}

.plans__name {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.plans__badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.18);
}

.plans__head--light .plans__badge {
  background: rgba(0, 0, 0, 0.14);
}

/* 数値 */
.plans__fig {
  display: block;
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.plans__fig--sm {
  font-size: 30px;
}

.plans__fig small {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 400;
  margin-left: 6px;
}

/* サービス内容のチェックリスト */
.plans__feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  text-align: left;
}

.plans__feats li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.plans__feats li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.plans__feats--light li::before {
  color: #b4b1a9;
}

@media (max-width: 768px) {
  .plans th,
  .plans td {
    padding: 20px 14px;
  }

  .plans tbody th {
    width: 120px;
    font-size: 13px;
  }

  .plans__fig {
    font-size: 30px;
  }

  .plans__fig--sm {
    font-size: 24px;
  }

  /* 幅が足りないので特典は1列に */
  .plans__feats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Case (数値実績の事例)
   左に成果の見出し、中央に数値、右に人物の画像を置く3段構成
   -------------------------------------------------------------------------- */

/* 複数の事例で、見出し・数値・画像の列位置を揃える。
   外側で列を決め、各事例はその列を借りる（subgrid） */
.cases {
  display: grid;
  /* 画像の列は minmax(0, 1fr)。幅が足りないときは画像側が縮んで、カードがはみ出さないようにする */
  grid-template-columns: max-content max-content minmax(0, 1fr);
  /* 人物画像の列に幅を残すため、列の間は詰め気味にする */
  column-gap: 24px;
  row-gap: 24px;
}

.case {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  gap: 24px;
  padding: 48px;
  border: 1px solid #2c2c2c;
  /* セクションの地（#121212）より一段明るいグレーにして、事例のカードを浮かせる */
  background: #1e1e1e;
}

/* 社名はサイト内の番号チップと同じ、イエロー塗りの角丸 */
.case__client {
  display: inline-block;
  padding: 15px 27px;
  border-radius: 18px;
  background: var(--accent);
  color: #111;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.case__title {
  margin-top: 20px;
  /* 横長の人物画像でも高さ310pxで入るよう、見出しは少し控えめに */
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  /* 右肩上がりに傾けて、成果の勢いを出す */
  transform: rotate(-4deg) skewX(-6deg);
  transform-origin: left bottom;
}

.case__title em {
  font-style: normal;
  color: var(--accent);
}

.case__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 右端を矢印型に切り取ったイエローの帯 */
.case__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 40px 18px 20px;
  background: var(--accent);
  color: #111;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
}

.case__stat-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.case__stat-value {
  font-family: var(--font-en);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
}

.case__stat-value small {
  font-family: var(--font-jp);
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 2px;
}

/* 数値の前に付ける「約」など */
.case__stat-value .case__stat-pre {
  margin-left: 0;
  margin-right: 3px;
}

/* 人物はカードの下端に足元を合わせる（-48px はカードの padding と同じ値） */
/* 人物はカードの下端に足元を合わせる（-48px はカードの padding と同じ値） */
/* 人物は画像の縦横比がまちまちなので、横幅ではなく高さで揃える。
   足元はカードの下端に合わせる（-48px はカードの padding と同じ値） */
.case__visual {
  position: relative;
  /* 人物ごとに横幅が違うので、右寄せではなく中央で揃える（各社で人物の中心線が一致する） */
  justify-self: center;
  align-self: end;
  margin-bottom: -48px;
}


/* 濃紺のスーツが黒背景に沈まないよう、背面に淡い光を置く */
.case__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4%;
  width: 120%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(242, 215, 90, 0.1), transparent 64%);
  pointer-events: none;
}

.case__visual img {
  position: relative;
  display: block;
  height: 310px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

@media (max-width: 1024px) {
  .cases {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .case {
    grid-column: auto;
    grid-template-columns: max-content 1fr;
    gap: 36px;
    padding: 40px;
  }

  .case__head {
    grid-column: 1 / -1;
  }

  .case__visual {
    margin-bottom: -40px;
  }

  .case__visual img {
    height: 250px;
  }

  /* 画像が入るまでは空き枠が縦に場所を取りすぎるので、狭い画面では畳む */
  .case__visual:empty {
    display: none;
  }
}

@media (max-width: 768px) {
  .case {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 24px;
  }

  .case__stats {
    max-width: 320px;
  }

  .case__visual {
    justify-self: center;
    margin-bottom: -32px;
  }

  .case__visual img {
    height: 240px;
  }
}

/* --------------------------------------------------------------------------
   Voice (お客様の声)
   -------------------------------------------------------------------------- */

.voice {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 36px 32px 32px;
}

.voice__text {
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text);
}

.voice__meta {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice__meta b {
  font-size: 14px;
  font-weight: 700;
}

.voice__meta span {
  font-size: 12px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   FAQ (よくある質問)
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 48px 26px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

/* 開閉の目印。開くと「＋」が「−」になる */
.faq__q::after,
.faq__q::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq__q::before {
  transform: rotate(90deg);
}

.faq__item[open] .faq__q::before {
  transform: rotate(0deg);
  opacity: 0;
}

.faq__q:hover {
  color: var(--accent);
}

.faq__mark {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
}

.faq__mark--a {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.faq__a {
  display: flex;
  gap: 18px;
  padding: 0 48px 28px 0;
}

.faq__a p {
  padding-top: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.95;
  color: var(--text);
}

@media (max-width: 768px) {
  .faq__q {
    gap: 14px;
    padding: 22px 36px 22px 0;
    font-size: 15px;
  }

  .faq__mark {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .faq__a {
    gap: 14px;
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   Policy page
   -------------------------------------------------------------------------- */

.policy {
  max-width: 800px;
}

.policy__intro {
  color: var(--text);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.policy__item {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.policy__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.policy__text {
  color: var(--text);
}

.policy__list {
  margin-top: 16px;
  color: var(--text);
}

.policy__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.policy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--text-dim);
}

.policy__address {
  margin-top: 20px;
  font-style: normal;
  color: var(--text);
  font-size: 14px;
}

.policy__address a {
  color: var(--accent);
}

.policy__date {
  margin-top: 48px;
  font-size: 13px;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Map (会社概要のアクセス)
   -------------------------------------------------------------------------- */

.map {
  position: relative;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #1a1a1a;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  /* 横長のままだと細すぎて地図が読めないので、縦を増やす */
  .map {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.form {
  margin-top: 80px;
  max-width: 780px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.form__note {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 40px;
}

.form__required {
  color: var(--accent);
}

.form__row {
  margin-bottom: 32px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}

.form__label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.form__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  padding: 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.form__input::placeholder {
  color: var(--text-dim);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.form__input[aria-invalid="true"] {
  border-color: #e2603f;
}

select.form__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

select.form__input option {
  background: #1a1a1a;
  color: var(--text);
}

textarea.form__input {
  resize: vertical;
}

.form__error {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: #e2603f;
}

.form__row--check {
  margin-top: 8px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  cursor: pointer;
}

.form__check input {
  margin-top: 6px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  margin-top: 16px;
  cursor: pointer;
  font-family: var(--font-en);
  background: none;
}

.form__submit[disabled] {
  opacity: 0.4;
  cursor: default;
}

.form__status {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 22px;
}

.form__status.is-error {
  color: #e2603f;
}

.form__status.is-success {
  color: var(--accent);
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__address {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text);
  font-style: normal;
}

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

.footer__nav li {
  font-size: 13px;
  padding: 6px 0;
}

.footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-en);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Loading screen
   -------------------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8vw;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

body.is-loaded .loader {
  opacity: 0;
  visibility: hidden;
}

.loader__label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.loader__count {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(60px, 12vw, 150px);
  line-height: 1;
  color: #333;
}

.loader__count sup {
  font-size: 0.18em;
  vertical-align: super;
}

.loader__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Scroll animation
   -------------------------------------------------------------------------- */

/* fade up */
.reveal,
[data-anim] {
  opacity: 0;
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    clip-path 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal,
[data-anim="up"] {
  transform: translateY(48px);
}

[data-anim="left"] {
  transform: translateX(-48px);
}

[data-anim="right"] {
  transform: translateX(48px);
}

[data-anim="scale"] {
  transform: scale(1.08);
}

[data-anim="clip"] {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
}

.reveal.is-visible,
[data-anim].is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* split text (character by character) */
.split-line {
  display: block;
  overflow: hidden;
}

.split-char {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}

.is-visible .split-char {
  transform: none;
  opacity: 1;
}

/* parallax */
[data-parallax] {
  will-change: transform;
}

/* header state on scroll */
.header {
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}

body.is-scrolled .header {
  background: rgba(11, 11, 11, 0.94);
}

body.is-header-hidden .header {
  transform: translateY(-100%);
}

/* scroll progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  z-index: 200;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-anim],
  [data-stagger] > *,
  .split-char {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  .marquee__inner {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hamburger {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .gnav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }

  body.is-nav-open .gnav {
    opacity: 1;
    pointer-events: auto;
  }

  .gnav__list {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .gnav__link {
    font-size: 18px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .section {
    padding: 80px 0;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .flow__item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .table th,
  .table td {
    display: block;
    width: auto;
    padding: 12px 0;
  }

  .table th {
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 12px;
  }
}

/* ==========================================================================
   Home refresh - トップページ用コンポーネント
   ここから下はトップページのリニューアルで追加したパーツ。
   下層ページの見た目を変えないよう、既存クラスは触らず新しい名前で足している。
   ========================================================================== */

/* 見出しとリード文を左右に振り分け、縦積みの単調さを崩す */
.section-head--split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px 80px;
  align-items: end;
}

.section-head--split .section-lead {
  margin-top: 0;
  padding-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Buttons (追加バリエーション)
   -------------------------------------------------------------------------- */

.btn--fill {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.btn--fill:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
  opacity: 1;
}

/* 動画やイメージの上に置くため、枠線を見える濃さにして背面を少しぼかす */
.btn--ghost {
  border-color: rgba(244, 243, 240, 0.6);
  background: rgba(11, 11, 11, 0.35);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: #111;
}

/* --------------------------------------------------------------------------
   Intro visual badge
   -------------------------------------------------------------------------- */

.intro__visual {
  overflow: visible;
}

.intro__visual img {
  position: relative;
  z-index: 0;
}

.intro__badge {
  position: absolute;
  left: -28px;
  bottom: -28px;
  z-index: 1;
  background: var(--accent);
  color: #111;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-align: center;
  padding: 18px 22px;
}

.intro__badge b {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Reasons (なぜSNSなのか)
   カードを並べる代わりに横一列の行にして、視線を左から右へ流す
   -------------------------------------------------------------------------- */

.reasons {
  border-top: 1px solid var(--line);
}

.reason {
  display: grid;
  grid-template-columns: 150px 1fr 230px;
  gap: 40px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}

.reason:hover {
  background: rgba(242, 215, 90, 0.03);
}

.reason__en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--accent);
}

.reason__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
}

.reason__text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.reason__fig {
  font-family: var(--font-en);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 300;
  line-height: 1.2;
  text-align: right;
}

.reason__fig small {
  font-family: var(--font-jp);
  font-size: 14px;
  margin-left: 4px;
}

.reason__fig span {
  display: block;
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Steps (サービスの4工程)
   番号を大きく出し、上端のラインで流れを示す
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  position: relative;
  padding: 40px 0 0;
}

.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(242, 215, 90, 0.15) 70%, transparent);
}

.step {
  position: relative;
  padding-top: 28px;
}

.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -40px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: translateY(-4px);
}

.step__num {
  font-family: var(--font-en);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 200;
  line-height: 1;
  color: var(--text-dim);
  transition: color 0.35s var(--ease);
}

.step:hover .step__num {
  color: var(--accent);
}

.step__title {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
}

.step__text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Plan strip (料金の要約)
   -------------------------------------------------------------------------- */

.plan-strip {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.plan-strip__item {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.35s var(--ease);
}

.plan-strip__item:hover {
  background: rgba(242, 215, 90, 0.05);
  opacity: 1;
}

.plan-strip__label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.plan-strip__name {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 500;
}

.plan-strip__price {
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.2;
}

.plan-strip__price small {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Works (実績カード)
   -------------------------------------------------------------------------- */

.works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.work {
  display: block;
}

.work:hover {
  opacity: 1;
}

.work .thumb {
  position: relative;
}

.work__title {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.3s var(--ease);
}

.work:hover .work__title {
  color: var(--accent);
}

.work__note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

/* 縦動画のグリッドと続けて並ぶので、区切りの余白を置く */
.works-wide {
  margin-top: 56px;
}

@media (max-width: 768px) {
  .works-wide {
    margin-top: 40px;
  }
}

.tags--compact {
  margin-top: 48px;
  gap: 8px;
}

.tags--compact li {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Member (写真の大きさを揃える)
   -------------------------------------------------------------------------- */

.member .member__photo {
  max-width: 100%;
  aspect-ratio: 4 / 5;
}

.member .member__photo img {
  object-position: center 22%;
}

/* --------------------------------------------------------------------------
   CTA (日本語見出しパターン)
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
}

.cta .section-label {
  margin-bottom: 24px;
}

.cta__title--jp {
  font-family: var(--font-jp);
  font-size: clamp(26px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.5;
}

/* 工程は6つあるので、他より早い段階で1行に収まらなくなる。
   横一列をやめたら上端のラインは流れを示せないため、
   マーカーを各項目の左に付け替える */
@media (max-width: 1200px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 28px;
    padding-top: 0;
  }

  .steps::before {
    display: none;
  }

  .step {
    padding-top: 0;
    padding-left: 22px;
  }

  .step::before {
    top: 14px;
    left: 0;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .section-head--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .works {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .reason {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .reason__fig {
    text-align: left;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .step__num {
    font-size: 32px;
  }

  .intro__badge {
    left: 16px;
    bottom: -20px;
    padding: 14px 18px;
  }

  .tags--compact {
    margin-top: 36px;
  }
}

/* --------------------------------------------------------------------------
   Contact buttons（LINE・フォームの導線）
   元のボタンの見た目は保ったまま、ひと回り大きく・太くして少しだけ目立たせる
   -------------------------------------------------------------------------- */

.cta__buttons .btn {
  justify-content: center;
  min-width: 260px;
  padding: 22px 44px;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, transform 0.3s ease;
}

.cta__buttons .btn::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.3s ease;
}

.cta__buttons .btn:hover {
  transform: translateY(-2px);
}

.cta__buttons .btn:hover::after {
  transform: translateX(4px);
}

/* LINEは主導線なので、イエローをうっすら敷いて光らせる */
.cta__buttons .btn--accent {
  border-width: 2px;
  background: rgba(242, 215, 90, 0.08);
  box-shadow: 0 0 24px rgba(242, 215, 90, 0.18);
}

.cta__buttons .btn--fill {
  box-shadow: 0 0 24px rgba(242, 215, 90, 0.3);
}

.cta__buttons .btn--accent:hover,
.cta__buttons .btn--fill:hover {
  box-shadow: 0 0 32px rgba(242, 215, 90, 0.35);
}

@media (max-width: 600px) {
  .cta__buttons .btn {
    width: 100%;
    min-width: 0;
  }
}

/* 目的別のアプローチ。数値実績のカードと同じグレーを敷いて3つの目的を目立たせる */
.approach .card {
  border-color: #2c2c2c;
  background: #1e1e1e;
}

.approach .card:hover {
  border-color: var(--accent);
}

/* グレーのカードに合わせて、説明文も白にして読みやすくする */
.approach .card__text,
.section-lead--bright,
.card__text--bright,
.texts-bright .card__text {
  color: var(--text);
}

/* お悩みの核になる言葉は、周りより大きくして一目で拾えるようにする */
.pain__list b {
  font-size: 1.3em;
}

/* 工程・流れ・強みのカードに数値実績と同じグレーを敷いて目立たせる */
.panels-gray .card,
.panels-gray .strength,
.panels-gray .flow__item {
  border: 1px solid #2c2c2c;
  background: #1e1e1e;
}

.panels-gray .card:hover,
.panels-gray .strength:hover {
  border-color: var(--accent);
}

.panels-gray .flow__item {
  padding: 36px 40px;
}

.panels-gray .flow__item + .flow__item {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .panels-gray .flow__item {
    padding: 28px 24px;
  }
}

/* お客様の声は縦に1列で並べ、枠を横長にする。
   会社名を左にまとめ、声を右に広く取る */
.grid.voices {
  grid-template-columns: 1fr;
  gap: 20px;
}

.voices .voice {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
  padding: 40px 48px;
}

.voices .voice__meta {
  order: -1;
  margin-top: 0;
  padding: 4px 32px 4px 0;
  border-right: 1px solid var(--line);
}

@media (max-width: 768px) {
  .voices .voice {
    grid-template-columns: 1fr;
    padding: 32px 24px 28px;
  }

  .voices .voice__meta {
    margin-bottom: 24px;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* お客様の声も数値実績のカードと同じグレーに揃える */
.voices .voice {
  border-color: #2c2c2c;
  background: #1e1e1e;
}

.voices .voice__text {
  font-weight: 700;
}

/* 業種名は数値実績の「A社」と同じイエローのチップで見せる */
.voices .voice__meta {
  align-items: flex-start;
}

.voices .voice__meta b {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 14px;
  background: var(--accent);
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* 業種名のチップは「歯科クリニック」のチップ幅の中で中央揃えにし、
   短い業種名でも中心の位置が揃うようにする。区切り線は声の側に持たせる */
.voices .voice {
  column-gap: 0;
}

.voices .voice__meta {
  justify-self: start;
  width: 172px;
  padding: 0;
  border-right: 0;
  align-items: center;
}

.voices .voice__text {
  padding: 4px 0 4px 48px;
  border-left: 2px solid var(--text);
}

@media (max-width: 768px) {
  .voices .voice__meta {
    width: auto;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0;
    border-bottom: 0;
  }

  .voices .voice__text {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 2px solid var(--text);
  }
}

/* よくある質問も1問ずつグレーの箱にして、数値実績などと見た目を揃える */
.faq {
  display: grid;
  gap: 12px;
  border-top: 0;
}

.faq__item {
  border: 1px solid #2c2c2c;
  background: #1e1e1e;
}

.faq__q {
  padding: 24px 64px 24px 28px;
}

.faq__q::after,
.faq__q::before {
  right: 28px;
}

.faq__a {
  padding: 0 64px 26px 28px;
}

@media (max-width: 768px) {
  .faq__q {
    padding: 20px 48px 20px 18px;
  }

  .faq__q::after,
  .faq__q::before {
    right: 18px;
  }

  .faq__a {
    padding: 0 18px 22px;
  }
}

/* 白い本文・案内文は細いと読みにくいため、お客様の声と同じ太さに揃える */
.hero__lead,
.hero__facts li,
.hero__facts b,
.marquee-note,
.lead-copy__line,
.pain__list li,
.section-lead--bright,
.section-note,
.work__title,
.work__meta,
.table th,
.table td,
.card__text,
.cta__text,
.footer__address,
.footer__nav a,
.page-hero__jp,
.breadcrumb,
.philosophy__text,
.philosophy__sign span,
.strength__text,
.member__role,
.member__text,
.plans tbody th,
.plans tbody td,
.plans__fig small,
.plans__feats li,
.faq__a p,
.form__note,
.form__label,
.form__check,
.form__check a,
.policy__intro,
.policy__text,
.policy__list li,
.policy__address,
.policy__address a,
.policy__date {
  font-weight: 700;
}

/* 送信ボタンはCONTACTのLINEボタンと同じ、黄色の塗り＋矢印のデザインにする */
.form__submit.btn--fill {
  justify-content: center;
  min-width: 260px;
  padding: 22px 44px;
  font-size: 14px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(242, 215, 90, 0.3);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, transform 0.3s ease;
}

.form__submit.btn--fill::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.3s ease;
}

.form__submit.btn--fill:not([disabled]):hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(242, 215, 90, 0.35);
}

.form__submit.btn--fill:not([disabled]):hover::after {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .form__submit.btn--fill {
    width: 100%;
    min-width: 0;
  }
}

/* お客様ロゴを載せるため、帯の高さを1.5倍（約174px→261px）にする。
   そのぶんトップの動画の高さを詰めて、帯がファーストビューに入るようにする */
.hero {
  min-height: calc(100svh - 87px);
}

.marquee__row {
  display: flex;
  align-items: center;
  height: 96px;
}

.marquee__inner {
  flex: none;
  align-items: center;
}

.marquee__logo {
  display: block;
  height: 96px;
  width: auto;
}

@media (max-width: 768px) {
  .marquee__row {
    height: 72px;
  }

  .marquee__logo {
    height: 72px;
  }
}

/* ロゴは元の色味のまま載せる。紺や黒のロゴが沈まないよう、帯だけ白に寄せる */
.marquee {
  background: #f4f3f0;
  border-color: #f4f3f0;
}

/* ロゴだけの帯になったので、ロゴ同士の間隔を広げて1つずつ見分けやすくする */
.marquee__inner {
  gap: 64px;
}

/* ロゴは白背景を抜いて帯の色になじませている。形がばらばらなので、
   高さと幅の上限を決めて見た目の大きさを揃える */
.marquee__logo {
  height: auto;
  width: auto;
  max-height: 72px;
  max-width: 190px;
}

@media (max-width: 768px) {
  .marquee__logo {
    height: auto;
    max-height: 56px;
    max-width: 150px;
  }
}

/* ロゴの帯をさらに1.2倍（約260px→312px）に広げ、ロゴも同じ比率で大きくする。
   広げたぶんトップの動画の高さを詰める */
.hero {
  min-height: calc(100svh - 139px);
}

.marquee__row {
  height: 122px;
}

.marquee__logo {
  max-height: 86px;
  max-width: 228px;
}

@media (max-width: 768px) {
  .marquee__row {
    height: 86px;
  }

  .marquee__logo {
    max-height: 67px;
    max-width: 180px;
  }
}

.marquee__logo--wide {
  max-width: 300px;
}

@media (max-width: 768px) {
  .marquee__logo--wide {
    max-width: 230px;
  }
}

/* --------------------------------------------------------------------------
   Top movie（ホーム最上部のPR動画）
   文字やボタンは載せず、動画を切らずに丸ごと見せる。
   画面の高さに収まらないときは左右を黒で埋めて全体を表示する
   -------------------------------------------------------------------------- */

.top-movie {
  padding-top: var(--header-h);
  background: #000;
}

.top-movie__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - var(--header-h));
  object-fit: contain;
  background: #000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* お悩みセクションの雲の飾りがスマホで画面右へはみ出し、ページ全体が横に広がっていた。
   bodyのhiddenだけでは防げないため、html側で横方向を切り取る（clipならstickyも壊れない） */
html {
  overflow-x: clip;
}

/* 4プラン版の料金表。10本（金系）と4本（銀系）で色の系統を分け、
   レポート・コンサル付きを濃く、制作のみのプランを淡くして違いが直感的に伝わるようにする */
.plans--4 {
  min-width: 980px;
}

.plans--4 th,
.plans--4 td {
  padding: 24px 14px;
}

.plans--4 .plans__head {
  padding: 28px 12px;
}

.plans--4 .plans__name {
  font-size: 17px;
}

.plans--4 .plans__fig {
  font-size: 32px;
}

.plans--4 .plans__fig--sm {
  font-size: 28px;
}

/* 列が細いので、月額の「円（税込）」は数字の下に回す */
.plans--4 .plans__fig small {
  display: block;
  margin: 6px 0 0;
}

.plans--4 .plans__fig--sm small {
  display: inline;
  margin-left: 6px;
}

.plans--4 .plans__feats {
  grid-template-columns: 1fr;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
}

/* 上段のベーシック・ミニマムも、下段のスタンダード（金）・ライト（銀）と同じ色味に揃える */
.plans__head--basic {
  background: linear-gradient(135deg, #e9d79b, #d6b442);
  color: #14120b;
  border-color: #d6b442;
}

.plans__head--minimum {
  background: linear-gradient(135deg, #eceae5, #b4b1a9);
  color: #14120b;
  border-color: #b4b1a9;
}

.plans__head--minimum .plans__badge {
  background: rgba(0, 0, 0, 0.14);
}

.plans__feats--basic li::before {
  color: var(--accent);
}

.plans__feats--minimum li::before {
  color: #b4b1a9;
}

/* サービス内容は項目数がプランで違うため、上揃えにして行頭を揃える */
.plans td:has(.plans__feats) {
  vertical-align: top;
}

/* 料金表は2プランずつ上下2段に分けて並べる */
.plans-next {
  margin-top: 48px;
}

/* 対象外のサービス。一覧には載せてプラン同士を比べやすくしつつ、
   グレーの文字と「−」印で「このプランには含まれない」と伝える */
.plans__feats li.is-off {
  color: #5f5e5a;
}

.plans__feats li.is-off::before {
  content: "\2212";
  color: #5f5e5a;
}

/* 契約期間の「6ヶ月ごとの自動更新」は途中で折り返さず1行で見せる */
.plans__fig--nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   スマホのメニュー（三本線）
   ヘッダーの背景ぼかし（backdrop-filter）があると、中の固定配置のメニューが
   画面全体ではなくヘッダーの高さを基準にしてしまい、背景が透けて本文と重なっていた。
   画面いっぱいの大きさを明示し、不透明な背景で本文を完全に隠す
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .gnav {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #0b0b0b;
    overflow-y: auto;
  }

  .hamburger {
    position: relative;
    z-index: 2;
  }

  /* 開いている間は後ろのページがスクロールしないようにする */
  body.is-nav-open {
    overflow: hidden;
  }

  .gnav__list {
    gap: 28px;
  }

  .gnav__link {
    font-size: 22px;
    letter-spacing: 0.16em;
  }

  .gnav__link small {
    margin-top: 6px;
    font-size: 12px;
  }
}

/* メニューを開いている間は、スクロールで上部の帯が隠れる動きを止める。
   帯が上にずれるとメニューも一緒にずれ、画面下に本文が見えてしまうため */
@media (max-width: 1024px) {
  body.is-nav-open .header {
    transform: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0b0b0b;
  }
}

/* スマホでは番号チップの幅が42pxに固定され、「集客」などの2文字が縦に折り返していた。
   幅を文字に合わせ、折り返さないようにする */
@media (max-width: 768px) {
  .card--numbered .card__num {
    width: auto;
    min-width: 42px;
    padding: 0 10px;
    white-space: nowrap;
  }
}

/* 理念の写真は下端をセクションの境目に接地させ、写真の下に余白を残さない。
   2カラムで写真が本文より背の高い時だけ（1カラムでは写真の下に本文が続くため対象外） */
@media (min-width: 901px) {
  .philosophy__photo {
    margin-bottom: -120px;
  }
}

/* ホームページ制作・システム開発の料金表。SNS運用のプラン表との間を空けて別の話題だと分かるようにする */
.plans-other {
  margin-top: 120px;
}

/* 表の中の補足（例：「それ以上は別途相談」） */
.plans__sub-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

/* 箇条書きの上に置く見出し（例：システム開発の「業務の効率化」） */
.plans__feats-lead {
  margin: 0 0 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 768px) {
  .plans-other {
    margin-top: 80px;
  }
}

.plans__feats--note {
  grid-template-columns: 1fr;
}
