/* ==========================================================================
   Big Three コーポレートサイト スタイルシート
   --------------------------------------------------------------------------
   構成：
     1. フォント定義 / 変数
     2. リセット・ベース / 共通パーツ（ボタン等）
     3. セクション別（ヘッダー → ヒーロー → About → Service → Message → Company → Contact → フッター）
     4. スクロール時のフェードイン（data-reveal）
     5. レスポンシブ（PC小 → SP → タブレット → 小型スマホ）
   Figma 基準：PC 1440px / SP 375px
   ========================================================================== */

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/noto-sans-jp-medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/noto-sans-jp-bold.ttf') format('truetype');
}

/* Figma baseline: PC 1440px / SP 375px. Decorative layers alone use positioning. */

/* ==========================================================================
   変数（デザイントークン）
   --u: Figma 1440px 基準を画面幅に合わせて縮小する単位。calc(80 * var(--u)) = Figma上の80px
   ========================================================================== */
:root {
  --u: min(.0694444444vw, 1px);
  --ink: #222;
  --red: #d03919;
  --wine: #72151a;
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --english: Futura, 'Century Gothic', sans-serif;
}

/* ==========================================================================
   リセット・ベース
   ========================================================================== */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

button, a, input, textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

button {
  border: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

a:hover {
  color: var(--red);
}

[hidden] {
  display: none!important;
}

/* ==========================================================================
   レイアウト共通・アクセシビリティ補助
   ========================================================================== */
.page {
  max-width: 1440px;
  margin: auto;
  overflow: clip;
  position: relative;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  background: white;
  padding: 15px;
}

/* ==========================================================================
   共通ボタン
   ========================================================================== */
.button {
  width: 203px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 58px;
  background: linear-gradient(105deg, var(--red), var(--wine) 98.384%);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .07em;
  font-weight: 700;
  transition: filter .2s;
}

.button:hover {
  color: white;
  filter: brightness(1.12);
}

.button>span {
  position: absolute;
  right: 20px;
}

/* ==========================================================================
   ヘッダー・ナビゲーション
   ========================================================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(80 * var(--u));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(40 * var(--u));
}

.brand {
  display: block;
  position: relative;
  width: calc(243 * var(--u));
  height: calc(32 * var(--u));
  flex-shrink: 0;
}

.brand-mark {
  position: absolute;
  width: 14.16%;
  height: 99.79%;
  left: 0;
  top: 0;
}

.brand-type {
  position: absolute;
  width: 81.73%;
  height: 84.01%;
  right: 0;
  bottom: 0;
}

.desktop-nav {
  display: flex;
  gap: calc(40 * var(--u));
  font-size: calc(14 * var(--u));
  letter-spacing: .05em;
  align-items: center;
}

.header-cta {
  width: calc(203 * var(--u));
  height: calc(52 * var(--u));
  font-size: calc(14 * var(--u));
}

.menu-toggle, .mobile-nav {
  display: none;
}

/* ==========================================================================
   ヒーロー（ファーストビュー）
   ========================================================================== */
.hero {
  height: calc(963 * var(--u));
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(810 * var(--u));
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: calc(219 * var(--u));
  margin-left: calc(104 * var(--u));
  width: calc(610 * var(--u));
}

.hero h1 {
  margin-left: calc(-13 * var(--u));
  width: calc(622.126 * var(--u));
  height: calc(190.241 * var(--u));
}

.hero h1 img {
  width: 100%;
  height: 100%;
}

.hero-line {
  height: calc(2 * var(--u));
  width: calc(120 * var(--u));
  background: #d03919;
  margin: calc(24 * var(--u)) 0 calc(22 * var(--u));
}

.hero-copy p {
  font-size: calc(16 * var(--u));
  line-height: 2;
  letter-spacing: .1em;
}

.hero-bottom {
  position: absolute;
  top: calc(730 * var(--u));
  left: 0;
  width: 100%;
  height: calc(80 * var(--u));
}

.hero-mark {
  display: block;
  position: absolute;
  top: calc(80 * var(--u));
  left: calc(680 * var(--u));
  width: calc(951.368 * var(--u));
  height: calc(883 * var(--u));
  max-width: none;
}

/* --- ロゴマークの描画アニメーション ---------------------------------------
   index.html のインラインSVG内にある .draw（マスク用の太いストローク）を
   stroke-dashoffset で伸ばし、塗り図形が「線でなぞられて完成する」ように見せる。
   開始は script.js（ヒーロー背景の読み込み後に .is-drawing を付与）。
   ------------------------------------------------------------------------ */
.hero-mark .draw {
  fill: none;
  stroke: #fff;
  stroke-width: 160;             /* 帯の太さ(約142) + 余白 */
  stroke-dasharray: 100 200;
  stroke-dashoffset: 100;        /* 100 = まだ何も描かれていない状態 */
}

.hero-mark.is-drawing .draw {
  animation: hero-mark-draw 2s cubic-bezier(.45, 0, .2, 1) forwards;
}

.hero-mark.is-drawing .draw-2 {
  animation-delay: .3s;          /* 3本の線を少しずつずらして描き始める */
}

.hero-mark.is-drawing .draw-3 {
  animation-delay: .6s;
}

@keyframes hero-mark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.scroll-cue {
  position: absolute;
  top: calc(710 * var(--u));
  left: calc(104 * var(--u));
  width: calc(67 * var(--u));
  height: calc(81 * var(--u));
  color: #8e8e8e;
}

.scroll-cue:before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(5 * var(--u));
  height: calc(61 * var(--u));
  border-left: 1px solid #8e8e8e;
}

.scroll-cue span {
  position: absolute;
  left: calc(20 * var(--u));
  top: calc(40 * var(--u));
  font-family: var(--english);
  font-size: calc(10 * var(--u));
  letter-spacing: .2em;
}

.scroll-cue img {
  position: absolute;
  bottom: 0;
  width: calc(11 * var(--u));
  height: calc(6 * var(--u));
}

/* ==========================================================================
   マーキー（流れるロゴ帯）
   ========================================================================== */
.marquee {
  height: calc(291.58 * var(--u));
  margin-top: calc(81.42 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
  overflow: hidden;
}

.marquee-row {
  /* --offset：Figma上の各行の開始位置 / --shift：画像1枚分（幅 + 間隔）。
     1枚分だけ左へ流して先頭に戻すと、同じ絵柄が続くため継ぎ目が見えない */
  --offset: calc(-846 * var(--u));
  --shift: calc(-1541.86 * var(--u));
  display: flex;
  gap: calc(30 * var(--u));
  width: max-content;
  transform: translateX(var(--offset));
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.marquee-row:nth-child(2) {
  --offset: calc(-1462 * var(--u));
}

.marquee-row:nth-child(3) {
  --offset: calc(-1134 * var(--u));
}

@keyframes marquee-scroll {
  from {
    transform: translateX(var(--offset));
  }
  to {
    transform: translateX(calc(var(--offset) + var(--shift)));
  }
}

.marquee-row img {
  width: calc(1511.86 * var(--u));
  height: calc(84 * var(--u));
  max-width: none;
}

/* ==========================================================================
   セクション共通パーツ（英字見出し・背景ワード）
   ========================================================================== */
.eyebrow {
  font-family: var(--english);
  font-weight: 500;
  font-size: calc(14 * var(--u));
  line-height: 1.3;
  letter-spacing: .2em;
  color: var(--red);
  position: relative;
  z-index: 2;
}

.eyebrow:after {
  content: '';
  display: block;
  height: 1px;
  width: calc(40 * var(--u));
  background: var(--red);
  margin-top: calc(15 * var(--u));
}

.section-word {
  position: absolute;
  pointer-events: none;
}

/* ==========================================================================
   About（私たちについて）
   ========================================================================== */
.about {
  position: relative;
  min-height: calc(800 * var(--u));
  margin-top: calc(74 * var(--u));
  padding: calc(3 * var(--u)) calc(90 * var(--u)) 0;
  display: grid;
  grid-template-columns: calc(362 * var(--u)) 1fr;
  column-gap: calc(117 * var(--u));
  align-items: start;
}

.about-mark {
  position: absolute;
  left: calc(90 * var(--u));
  top: calc(92 * var(--u));
  width: calc(362 * var(--u));
  height: calc(336 * var(--u));
}

.about-content {
  position: relative;
  z-index: 1;
  width: calc(720 * var(--u));
  padding-bottom: calc(115 * var(--u));
}

.about-prose {
  font-size: calc(17 * var(--u));
  letter-spacing: .15em;
  line-height: 1.9;
}

.about-prose p+p {
  margin-top: 1.5em;
}

.about-prose h3 {
  font-size: inherit;
  font-weight: 700;
  color: var(--red);
  margin-bottom: .5em;
}

.about-prose p+h3 {
  margin-top: 2em;
}

/* 旧: union_about.svg（文字画像）。文言変更のためHTMLテキスト化し、画像と同じ太字＋赤グラデーションで再現 */
.about-statement {
  width: calc(580.499 * var(--u));
  margin-top: calc(36 * var(--u));
  font-size: calc(22 * var(--u));
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.85;
  background: linear-gradient(105deg, var(--red), var(--wine) 98.384%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-word {
  right: calc(90 * var(--u));
  bottom: 0;
  width: calc(541.087 * var(--u));
  height: calc(104.313 * var(--u));
}

/* ==========================================================================
   Service（サービス）
   ========================================================================== */
.service {
  position: relative;
  min-height: calc(887 * var(--u));
  margin-top: calc(78 * var(--u));
  padding-top: calc(38 * var(--u));
  padding-bottom: calc(170 * var(--u));
}

.service>.eyebrow {
  text-align: center;
}

.service>.eyebrow:after {
  margin-left: auto;
  margin-right: auto;
}

.service-intro {
  position: relative;
  margin: calc(48 * var(--u)) auto calc(21 * var(--u));
  min-height: calc(89 * var(--u));
  text-align: center;
  font-size: calc(23 * var(--u));
  line-height: 1.75;
  letter-spacing: .15em;
}

.service-intro>img {
  position: absolute;
  top: calc(-32 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  width: calc(146.53 * var(--u));
  height: calc(136 * var(--u));
  opacity: .1;
}

.service-intro>p {
  position: relative;
}

.service-grid {
  /* 2枚構成：カード幅は3枚時（350）より大きい 540 とし、中央に寄せる（説明文が意図した改行位置で収まる幅） */
  max-width: calc(1140 * var(--u));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(60 * var(--u));
}

.service-number {
  display: block;
  font-family: var(--english);
  font-size: calc(50 * var(--u));
  line-height: 1.3;
  letter-spacing: .12em;
  color: #eee;
}

.service-number:after {
  content: '';
  display: block;
  width: calc(40 * var(--u));
  height: 1px;
  background: var(--red);
  margin-top: calc(5 * var(--u));
}

.service-card h3 {
  font-size: calc(28 * var(--u));
  line-height: 1.75;
  letter-spacing: .07em;
  margin: calc(3 * var(--u)) 0 0;
  white-space: nowrap;
}

/* 見出し直下の英字サブコピー（eyebrowと同じ書体・色） */
.service-sub {
  display: block;
  font-family: var(--english);
  font-weight: 500;
  font-size: calc(13 * var(--u));
  line-height: 1.3;
  letter-spacing: .2em;
  color: var(--red);
  margin: calc(-2 * var(--u)) 0 calc(14 * var(--u));
}

.service-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.4;
  object-fit: cover;
  border-radius: calc(10 * var(--u));
}

.service-card>p {
  font-size: calc(18 * var(--u));
  line-height: 1.75;
  letter-spacing: .07em;
  margin-top: calc(20 * var(--u));
}

/* HOW WE WORK（相談〜定着の3ステップ） */
.how-we-work {
  position: relative;
  z-index: 1;
  max-width: calc(1140 * var(--u));
  margin: calc(96 * var(--u)) auto 0;
  padding-top: calc(56 * var(--u));
  border-top: 1px solid #eee;
}

.how-eyebrow {
  text-align: center;
}

.how-eyebrow:after {
  margin-left: auto;
  margin-right: auto;
}

.how-steps {
  list-style: none;
  margin: calc(44 * var(--u)) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(40 * var(--u));
}

.how-number {
  display: block;
  font-family: var(--english);
  font-size: calc(50 * var(--u));
  line-height: 1.3;
  letter-spacing: .12em;
  color: #eee;
}

.how-number:after {
  content: '';
  display: block;
  width: calc(40 * var(--u));
  height: 1px;
  background: var(--red);
  margin-top: calc(5 * var(--u));
}

.how-step p {
  margin-top: calc(14 * var(--u));
  font-size: calc(15 * var(--u));
  line-height: 1.9;
  letter-spacing: .07em;
}

.service-word {
  right: 0;
  bottom: calc(7 * var(--u));
  width: calc(646.538 * var(--u));
  height: calc(105.625 * var(--u));
}

/* ==========================================================================
   Message（代表メッセージ）
   ========================================================================== */
.message {
  position: relative;
  min-height: calc(957 * var(--u));
  margin-top: calc(115 * var(--u));
  padding-top: calc(56 * var(--u));
  padding-bottom: calc(200 * var(--u));
}

.message>.eyebrow {
  margin-left: calc(180 * var(--u));
}

.portrait {
  position: absolute;
  left: 0;
  top: calc(104 * var(--u));
  width: calc(613.965 * var(--u));
  height: calc(676 * var(--u));
  overflow: hidden;
}

.portrait img {
  position: absolute;
  width: 204.61%;
  height: 123.86%;
  max-width: none;
  left: -37.89%;
  top: -23.89%;
}

.message-mark {
  position: absolute;
  top: calc(197 * var(--u));
  left: calc(761 * var(--u));
  width: calc(795.53 * var(--u));
  height: calc(738.361 * var(--u));
  max-width: none;
  opacity: .1;
}

.message-content {
  position: relative;
  margin: calc(14 * var(--u)) 0 0 calc(574 * var(--u));
  width: calc(765 * var(--u));
}

.message h2 {
  font-size: calc(62 * var(--u));
  line-height: 1.4;
  letter-spacing: .15em;
}

.message h2:after {
  content: '';
  display: block;
  width: calc(70 * var(--u));
  height: 1px;
  background: #f56c59;
  margin: calc(26 * var(--u)) 0 calc(43 * var(--u));
}

.message-prose {
  font-size: calc(20 * var(--u));
  line-height: 1.75;
  letter-spacing: .15em;
}

.message-prose p+p {
  margin-top: 1.75em;
}

.signature {
  font-size: calc(24 * var(--u));
  line-height: 1.75;
  letter-spacing: .15em;
  margin-top: calc(141 * var(--u));
  margin-left: calc(570 * var(--u));
}

.signature span {
  display: block;
  font-size: calc(14 * var(--u));
}

/* 経歴（CAREER） */
.career {
  margin-top: calc(64 * var(--u));
}

.career-label {
  font-family: var(--english);
  font-weight: 500;
  font-size: calc(13 * var(--u));
  line-height: 1.3;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: calc(16 * var(--u));
}

.career-list {
  font-size: calc(15 * var(--u));
  line-height: 1.9;
  letter-spacing: .07em;
}

.career-list>div {
  display: grid;
  grid-template-columns: calc(96 * var(--u)) minmax(0, 1fr);
  align-items: baseline;
  border-top: 1px solid #eee;
  padding: calc(14 * var(--u)) 0;
}

.career-list>div:last-child {
  border-bottom: 1px solid #eee;
}

.career-list dt {
  font-family: var(--english);
  font-size: calc(18 * var(--u));
  letter-spacing: .12em;
  color: var(--red);
}

.career-list dd {
  overflow-wrap: anywhere;
}

.message-word {
  left: 0;
  bottom: calc(22 * var(--u));
  width: calc(752.35 * var(--u));
  height: calc(108.188 * var(--u));
}

/* ==========================================================================
   Company（会社概要）
   ========================================================================== */
.company {
  position: relative;
  min-height: calc(648 * var(--u));
  margin-top: calc(45 * var(--u));
  padding: calc(15 * var(--u)) calc(180 * var(--u)) calc(62 * var(--u));
}

.section-title {
  font-size: calc(68 * var(--u));
  line-height: 1.4;
  letter-spacing: .15em;
  margin-top: calc(12 * var(--u));
}

.company-table {
  width: calc(857 * var(--u));
  max-width: 100%;
  margin: calc(40 * var(--u)) auto 0;
  font-size: calc(18 * var(--u));
  line-height: 1.4;
  letter-spacing: .05em;
}

.company-table>div {
  display: grid;
  grid-template-columns: calc(166 * var(--u)) minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid #eee;
  padding: calc(7 * var(--u)) 0;
  min-height: calc(65 * var(--u));
}

.company-table>div:last-child {
  border-bottom: 1px solid #eee;
}

.company-table dt {
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: .15em;
  border-right: 1px solid #eee;
  padding-left: calc(8 * var(--u));
}

.company-table dd {
  padding: calc(10 * var(--u)) 0 calc(10 * var(--u)) calc(39 * var(--u));
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Contact（お問い合わせフォーム）
   ========================================================================== */
.contact {
  position: relative;
  margin-top: calc(41 * var(--u));
  padding: calc(46 * var(--u)) calc(180 * var(--u)) 0;
}

.contact .section-title {
  margin-top: calc(12 * var(--u));
}

.contact-mark {
  position: absolute;
  top: calc(475 * var(--u));
  left: calc(-157 * var(--u));
  width: calc(682 * var(--u));
  height: calc(633 * var(--u));
  opacity: .1;
  pointer-events: none;
}

.contact-form {
  position: relative;
  z-index: 1;
  max-width: calc(900 * var(--u));
  margin: calc(64 * var(--u)) auto 0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 17px #0000001a;
  padding: calc(50 * var(--u)) calc(66 * var(--u)) calc(29 * var(--u));
}

.form-intro {
  text-align: center;
  font-size: calc(16 * var(--u));
  line-height: 1.6;
  letter-spacing: .05em;
  margin-bottom: calc(41 * var(--u));
}

.field {
  display: grid;
  grid-template-columns: calc(230 * var(--u)) minmax(0, 1fr); /* 「必須」バッジが1行に収まる幅（Figmaは189） */
  margin-bottom: calc(22 * var(--u));
  align-items: start;
}

.field label {
  font-size: calc(19.661 * var(--u));
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.4;
  padding-top: calc(11 * var(--u));
  padding-right: calc(8 * var(--u));
}

.field input, .field textarea {
  border: 1.2px solid #d9d9d9;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
  height: calc(49.152 * var(--u));
  background: #fff;
  padding: calc(10 * var(--u)) calc(20 * var(--u));
  font-size: calc(19.661 * var(--u));
  line-height: 1.4;
  color: var(--ink);
}

.field textarea {
  height: calc(147.457 * var(--u));
  resize: vertical;
  min-height: 118px;
}

.field input::placeholder, .field textarea::placeholder {
  color: #c4c4c4;
  opacity: .93;
}

.submit-button {
  margin: calc(45 * var(--u)) auto 0;
}

.form-help {
  font-size: 11px;
  line-height: 1.6;
  color: #737373;
  text-align: center;
  margin-top: 14px;
}

.form-status {
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.form-status a {
  text-decoration: underline;
}

.form-status.is-error {
  color: var(--red);
}

/* 必須ラベル（列幅に収まらないときはバッジだけ2行目に折り返す） */
.required-mark {
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: .6em;
  padding: .15em .5em;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: .6em;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
}

/* ハニーポット（スパム対策）：画面外に配置し、人には見せない */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 送信中のボタン */
.submit-button[disabled] {
  opacity: .6;
  cursor: progress;
  filter: none;
}

/* 送信完了メッセージ（フォーム本体と入れ替わりで表示） */
.form-done {
  text-align: center;
  padding: calc(30 * var(--u)) 0 calc(20 * var(--u));
  font-size: calc(16 * var(--u));
  line-height: 1.9;
  letter-spacing: .05em;
}

.form-done:focus {
  outline: none;
}

.form-done-title {
  font-size: calc(24 * var(--u));
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
}

.form-done-title:after {
  content: '';
  display: block;
  width: calc(40 * var(--u));
  height: 1px;
  background: var(--red);
  margin: calc(18 * var(--u)) auto calc(22 * var(--u));
}

.form-noscript {
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  margin-top: 16px;
}

.form-noscript a {
  text-decoration: underline;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  position: relative;
  text-align: center;
  padding-top: calc(103 * var(--u));
  padding-bottom: calc(22 * var(--u));
}

.footer .brand {
  margin: auto;
}

.footer small {
  display: block;
  font-size: calc(11 * var(--u));
  letter-spacing: .05em;
  line-height: 1.6;
  margin-top: calc(96 * var(--u));
}

/* ==========================================================================
   スクロール時のフェードイン（data-reveal）
   index.html で data-reveal を付けた要素が画面に入ると、script.js が
   .is-visible を付与し、下から少し浮き上がりながら表示される。
   html.has-js が無い（JS無効）ときは何もせず最初から表示。
   ========================================================================== */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease-out, transform .9s ease-out;
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* サービスカードは 1 → 2 の順に少し遅らせて表示 */
html.has-js .service-card:nth-child(2) {
  transition-delay: .15s;
}

/* ==========================================================================
   レスポンシブ：PC小（901〜1150px）
   ========================================================================== */
@media (min-width: 901px) and (max-width: 1150px) {
  .desktop-nav {
    gap: 20px;
    font-size: 12px;
  }

  .header .brand {
    width: 180px;
    height: 24px;
  }

  .header-cta {
    min-width: 180px; /* 「今すぐ相談する」＋矢印が重ならない幅 */
    min-height: 40px;
    font-size: 12px;
  }

  .message-prose .pc-only {
    display: none;
  }

  .service-card>p br {
    display: none;
  }
}

/* ==========================================================================
   レスポンシブ：SP/タブレット（〜900px）※ --u を 1px に固定
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --u: 1px;
  }

  .page {
    width: 100%;
    max-width: none;
  }

  .header {
    height: 60px;
    padding: 0 20px;
    background: white;
  }

  .brand {
    width: 132px;
    height: 17.38px;
  }

  .desktop-nav, .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    z-index: 12;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: #222;
    transition: transform .2s;
  }

  .menu-toggle[aria-expanded=true] span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded=true] span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 14px 20px 24px;
    background: #fff;
    box-shadow: 0 12px 20px #0000000d;
    max-height: calc(100dvh - 60px);
    overflow: auto;
  }

  .mobile-nav>a:not(.button) {
    padding: 15px 4px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
  }

  .mobile-nav .button {
    margin: 20px auto 0;
  }

  .hero {
    height: 714px;
  }

  .hero-bg {
    width: 1282px;
    height: 721.5px;
    max-width: none;
    object-fit: cover;
  }

  .hero-copy {
    padding-top: 96px;
    margin: 0 auto;
    width: calc(100% - 40px);
    max-width: 560px;
  }

  .hero h1 {
    margin-left: -1px;
    width: 338.4px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 622.126/190.241;
  }

  .hero h1 img {
    width: 100%;
    height: auto;
  }

  .hero-line {
    height: 1px;
    width: 59.4px;
    margin: 13px 0 11px 6px;
  }

  .hero-copy p {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .05em;
    max-width: 420px;
  }

  .pc-only {
    display: none;
  }

  .hero-bottom {
    top: 674px;
    height: 40px;
  }

  .hero-mark {
    width: 433.668px;
    height: 402.503px;
    top: 310px;
    left: calc(50% - 124.5px);
  }

  .scroll-cue {
    top: 587px;
    left: 15px;
    width: 44.53px;
    height: 53.5px;
  }

  .scroll-cue:before {
    left: 3.32px;
    height: 40.54px;
  }

  .scroll-cue span {
    left: 13.29px;
    top: 26.58px;
    font-size: 6.646px;
  }

  .scroll-cue img {
    width: 7px;
    height: 4px;
  }

  .marquee {
    height: 157.125px;
    margin-top: 30px;
    gap: 10.55px;
  }

  .marquee-row {
    --offset: -558px;
    --shift: -830.709px; /* 814.709 + 16 */
    gap: 16px;
  }

  .marquee-row:nth-child(2) {
    --offset: -889px;
  }

  .marquee-row:nth-child(3) {
    --offset: -713px;
  }

  .marquee-row img {
    width: 814.709px;
    height: 45.266px;
  }

  .eyebrow {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .2em;
  }

  .eyebrow:after {
    width: 31.515px;
    margin-top: 12px;
  }

  .about {
    display: block;
    margin-top: 0;
    padding: 40px 20px 72px;
    min-height: 763px;
  }

  .about-content {
    max-width: 560px;
    width: 100%;
    padding-bottom: 0;
    margin: 29px auto 0;
  }

  .about-prose {
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: .15em;
  }

  .about-prose p+p {
    margin-top: 1.5em;
  }

  .about-statement {
    width: 100%;
    max-width: 560px;
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.85;
  }

  .about-mark {
    left: 50%;
    transform: translateX(-50%);
    width: 239.189px;
    height: 222px;
    top: 274px;
  }

  .about-word {
    right: 0;
    bottom: 0;
    width: 292.103px;
    height: 56.313px;
  }

  .service {
    margin-top: 0;
    min-height: 1380px; /* カード2枚分（3枚時は1882px） */
    padding: 40px 15px 170px; /* 下余白はHOW WE WORKと背景ワードが重ならない分を確保 */
  }

  .service>.eyebrow {
    text-align: left;
    margin-left: 5px;
  }

  .service>.eyebrow:after {
    margin-left: 0;
  }

  .service-intro {
    font-size: 19px;
    line-height: 1.75;
    letter-spacing: .15em;
    margin: 49px auto 38px;
    min-height: 100px;
    max-width: 580px;
  }

  .service-intro>img {
    width: 146.53px;
    height: 136px;
    top: -18px;
  }

  .sp-break {
    display: block;
  }

  .service-grid {
    max-width: 560px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-number {
    font-size: 49.272px;
    line-height: 1.3;
    letter-spacing: .12em;
  }

  .service-number:after {
    width: 39.418px;
    margin-top: 5px;
  }

  .service-card h3 {
    font-size: 27.593px;
    line-height: 1.75;
    letter-spacing: .07em;
    margin: 3px 0 0;
  }

  .service-sub {
    font-size: 12px;
    margin: -2px 0 14px;
  }

  .service-image {
    aspect-ratio: 1.4;
    border-radius: 9.854px;
  }

  .service-card>p {
    font-size: 14.782px;
    line-height: 1.75;
    letter-spacing: .07em;
    margin-top: 20px;
  }

  .how-we-work {
    max-width: 560px;
    margin: 64px auto 0;
    padding-top: 40px;
  }

  .how-eyebrow {
    text-align: left;
    margin-left: 5px;
  }

  .how-eyebrow:after {
    margin-left: 0;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }

  .how-number {
    font-size: 40px;
  }

  .how-number:after {
    width: 39.418px;
    margin-top: 4px;
  }

  .how-step p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.9;
  }

  .service-word {
    width: 346.605px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 646.538/105.625;
    right: 0;
    bottom: 42px;
  }

  .message {
    margin-top: 0;
    min-height: 778px;
    padding: 40px 20px 73px;
  }

  .message>.eyebrow {
    margin-left: 0;
  }

  .portrait {
    top: 66px;
    width: 252.489px;
    height: 278px;
  }

  .message-mark {
    top: 42px;
    left: calc(50% - 61.5px);
    width: 287.79px;
    height: 267.108px;
  }

  .message-content {
    margin: 277px auto 0;
    width: 100%;
    max-width: 560px;
  }

  .message h2 {
    font-size: 34px;
    line-height: 1.4;
    letter-spacing: .15em;
  }

  .message h2:after {
    width: 33.587px;
    margin: 12px 0 9px;
  }

  .message-prose {
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: .15em;
  }

  .message-prose p+p {
    margin-top: 1.75em;
  }

  .signature {
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: .15em;
    margin: 24px 0 0;
  }

  .signature span {
    font-size: 9px;
  }

  .career {
    margin-top: 40px;
  }

  .career-label {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .career-list {
    font-size: 13px;
    line-height: 1.8;
  }

  .career-list>div {
    grid-template-columns: 60px minmax(0, 1fr);
    padding: 12px 0;
  }

  .career-list dt {
    font-size: 15px;
  }

  .message-word {
    left: auto;
    right: 0;
    bottom: 0;
    width: 337px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 752.35/108.188;
  }

  .company {
    margin-top: 0;
    min-height: 563px;
    padding: 40px 20px 73px;
  }

  .section-title {
    font-size: 34px;
    line-height: 1.4;
    letter-spacing: .15em;
    margin-top: 9px;
  }

  .company-table {
    width: 100%;
    max-width: 560px;
    margin: 30px auto 0;
    font-size: 14px;
    letter-spacing: .05em;
    line-height: 1.4;
  }

  .company-table>div {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 46px;
    padding: 6px 0;
  }

  .company-table dt {
    padding-left: 5px;
    letter-spacing: .15em;
  }

  .company-table dd {
    padding: 6px 0 6px 20px;
  }

  .contact {
    margin-top: 0;
    padding: 40px 20px 0;
  }

  .contact .section-title {
    margin-top: 9px;
  }

  .contact-form {
    max-width: 560px;
    margin: 30px auto 0;
    padding: 30px 15px 25px;
    border-radius: 10px;
  }

  .form-intro {
    display: none;
  }

  .field {
    display: block;
    margin-bottom: 15px;
  }

  .field label {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: .05em;
    padding-top: 0;
    margin-bottom: 6px;
  }

  .field input, .field textarea {
    height: 40px;
    font-size: 16px;
    line-height: 1.4;
    padding: 8px 10px;
  }

  .field input::placeholder, .field textarea::placeholder {
    font-size: 14px;
  }

  .field textarea {
    height: 118px;
  }

  .submit-button {
    margin: 30px auto 0;
  }

  .form-help {
    font-size: 10px;
    margin-top: 13px;
    line-height: 1.5;
  }

  .form-done {
    padding: 10px 0 6px;
    font-size: 14px;
  }

  .form-done-title {
    font-size: 20px;
  }

  .contact-mark {
    top: auto;
    bottom: -99px;
    left: -71px;
    width: 287.673px;
    height: 267px;
  }

  .footer {
    padding: 40px 12px 16px;
  }

  .footer small {
    font-size: 10px;
    line-height: 1.6;
    margin-top: 15px;
  }

  .footer .brand {
    width: 132px;
    height: 17.38px;
  }
}

/* ==========================================================================
   レスポンシブ：タブレット（601〜900px）
   ========================================================================== */
@media (min-width: 601px) and (max-width: 900px) {
  .hero-copy {
    padding-top: 105px;
  }

  .hero h1 {
    width: 460px;
  }

  .hero-mark {
    left: calc(50% + 30px);
  }

  .hero-copy p {
    max-width: 370px;
  }

  .service-grid {
    gap: 45px;
  }

  .service-card>p {
    font-size: 16px;
  }

  .about, .message, .company, .contact {
    padding-left: 40px;
    padding-right: 40px;
  }

  .message-content {
    margin-top: 277px;
  }

  .about-prose, .message-prose {
    font-size: 16px;
  }

  .service {
    min-height: 0;
  }

  .service-intro {
    margin-bottom: 40px;
  }

  .company-table>div {
    min-height: 58px;
  }

  .company-table {
    font-size: 16px;
  }
}

/* ==========================================================================
   レスポンシブ：小型スマホ（〜374px）
   ========================================================================== */
@media (max-width: 374px) {
  .hero-copy {
    width: calc(100% - 32px);
  }

  .hero-copy p {
    font-size: 13px;
  }

  .service-intro {
    font-size: clamp(16px, 5.066vw, 19px);
    letter-spacing: .1em;
  }

  .service-card h3 {
    font-size: clamp(23px, 7.35vw, 27.593px);
  }

  .service-card>p {
    font-size: 13px;
    letter-spacing: .035em;
  }

  .service-card>p br {
    display: none;
  }

  .service {
    min-height: 0;
  }

  .message h2, .section-title {
    font-size: 30px;
    letter-spacing: .1em;
  }

  .company-table {
    font-size: 12px;
  }

  .company-table>div {
    grid-template-columns: 73px minmax(0, 1fr);
  }

  .company-table dd {
    padding-left: 12px;
  }

  .about, .company, .message, .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .field label {
    font-size: 14px;
  }

  .footer small {
    font-size: 9px;
  }
}

/* ==========================================================================
   アニメーション抑制設定への対応
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *:before, *:after {
    transition: none!important;
  }

  /* アニメーション抑制時はマーキーを止める（Figmaの配置で静止） */
  .marquee-row {
    animation: none;
  }

  /* アニメーション抑制時はフェードインせず最初から表示 */
  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* アニメーション抑制時は線を描かず、最初から完成したロゴを表示 */
  .hero-mark .draw {
    stroke-dashoffset: 0;
    animation: none!important;
  }
}
