/* =========================================================
   パターンL｜軽やか・前向き
   青＋虹色の光の帯（矢印なし）／細字の英字のセクション名／浮いたカプセル型のヘッダー
   参考: yayoi-kk.co.jp/company/recruiting/（見せ方のみ。素材・文章・コードは不使用）
   数値の根拠は ../design-guideline-l.md。ここに無い数値を足すときは先にガイドラインを直す。
   ========================================================= */

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

:root {
  /* --- 色（ガイドライン3章。これ以外の色は使わない） --- */
  --c-blue: #0B5CAD;          /* 白文字 6.67:1／淡い水色の上 5.94:1 */
  --c-blue-mid: #086BBF;      /* 白文字 5.43:1 */
  --c-blue-deep: #0B2A5B;
  --c-sky-pale: #EAF3FB;
  --c-sky: #B9D6EE;           /* 装飾のみ */
  --c-line: #CFDDEB;          /* 装飾の線のみ */
  --c-text: #2F3437;          /* 白 12.6:1 */
  --c-muted: #5A6470;         /* 白 6.01:1／淡い水色 5.36:1 */
  --c-on-blue-muted: #D6E6F5; /* 青の上 5.24:1 */
  --c-white: #FFFFFF;
  /* 帯の差し色（装飾のみ・文字には使わない） */
  --s-cyan: #3FB6E0;
  --s-violet: #6B4BA8;
  --s-lime: #B5D96A;
  --s-green: #1E9E77;
  --s-pink: #E79BC2;
  --s-sky: #7FB7E8;
  --shadow: 0 6px 24px rgba(11, 42, 91, .10);

  /* --- 文字（ガイドライン4章） --- */
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Poppins', 'Noto Sans JP', sans-serif;
  --fs-body: 16px;
  --fs-en: clamp(44px, 6vw, 80px);
  --fs-title: clamp(28px, 3.4vw, 44px);

  /* --- 余白・幅（ガイドライン2章） --- */
  --gutter: 64px;
  --max-width: 1120px;
  --max-text: 640px;
  --sp-section: 160px;
  --header-h: 64px;
  --header-top: 12px;

  /* --- 動き（main.js が読む） --- */
  --motion-stagger: 0.08s;
  --header-transparent: 0;
}

@media (max-width: 1023px) {
  :root {
    --gutter: 40px;
    --sp-section: 120px;
    --header-h: 60px;
  }
}
@media (max-width: 767px) {
  :root {
    --fs-body: 15px;
    --gutter: 20px;
    --sp-section: 88px;
    --header-h: 56px;
    --header-top: 8px;
  }
}

/* =========================================================
   ベース
   ========================================================= */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--header-top) + 16px); }
body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  padding: 12px 20px; background: var(--c-blue); color: var(--c-white);
}
.skip-link:focus { top: 16px; }

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

.section { position: relative; padding-block: var(--sp-section); }

/* 改行位置の指定（共通ルール0-10）：区切りの位置だけで折り返す */
.nb { display: inline-block; }

/* =========================================================
   見出しの型（ガイドライン5章）：青い線 → 左に英字・右に日本語のラベル → 大きな見出し
   ========================================================= */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--c-blue);
  color: var(--c-blue);
}
.sec-en { font-family: var(--font-en); font-size: var(--fs-en); font-weight: 300; line-height: 1.2; letter-spacing: 0; }
.sec-label { position: relative; padding-bottom: 10px; font-size: 16px; font-weight: 500; letter-spacing: 0.06em; }
/* ラベルの下の直線（10/24 Uiさん指摘でジグザグから変更）。色は文字色に合わせる */
.sec-label::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; }
.section-title {
  margin-top: 24px;
  font-size: var(--fs-title); font-weight: 300; line-height: 1.45; letter-spacing: 0.04em;
}
.section-desc { max-width: var(--max-text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.split .section-desc { color: var(--c-muted); }

/* =========================================================
   ボタン・リンク（ガイドライン6章）
   ========================================================= */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  border-radius: 999px;
  background: var(--c-blue); color: var(--c-white);
  font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease;
}
.btn-pill:hover { background: var(--c-blue-deep); }
.btn-pill-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }

.btn-more {
  color: var(--c-blue);
  font-size: 18px; font-weight: 400; letter-spacing: 0.06em;
  text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px;
}
.btn-more:hover { text-decoration-thickness: 2px; }

/* =========================================================
   ヘッダー（浮いた白いカプセル型のバー・固定）
   ========================================================= */
#site-header {
  position: fixed; z-index: 1000;
  top: var(--header-top); left: 16px; right: 16px;
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h); padding: 0 10px 0 28px;
  border-radius: 999px;
  background: var(--c-white);
  box-shadow: var(--shadow);
}
.header-logo { margin-right: auto; }
.logo-name { font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; color: var(--c-blue); }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; }
.main-nav a:hover { color: var(--c-blue); }

.hamburger {
  display: none;
  position: relative; width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--c-blue); cursor: pointer;
}
.hamburger span {
  position: absolute; left: 13px; right: 13px; height: 2px;
  background: var(--c-white); transition: transform .2s ease;
}
.hamburger span:first-child { top: 17px; }
.hamburger span:last-child  { top: 25px; }
.hamburger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; z-index: 999;
  top: calc(var(--header-top) + var(--header-h) + 8px); left: 16px; right: 16px;
  padding: 8px 24px;
  border-radius: 8px;
  background: var(--c-white);
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: block; }
.mobile-nav li + li { border-top: 1px solid var(--c-line); }
.mobile-nav a { display: block; padding: 16px 0; font-size: 18px; font-weight: 500; text-decoration: none; }

/* =========================================================
   トップ画面（光の帯＋白い帯に載せたキャッチ。写真なし）
   ========================================================= */
.hero-visual {
  position: relative; overflow: hidden;
  min-height: max(640px, 88svh);
  display: flex; align-items: center;
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-sky-pale) 60%, var(--c-white) 100%);
}
/* 帯の置き場。少し傾けて、はみ出す分は隠す */
.streaks,
.contact-streaks { position: absolute; inset: -4% -6%; transform: rotate(-2deg); pointer-events: none; }
.streak {
  position: absolute; top: var(--t); left: var(--l); width: var(--w); height: var(--h);
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, transparent 0%, var(--sc) 70%, var(--sc2, var(--sc)) 100%);
  transform-origin: left center;
}
.c-navy   { --sc: var(--c-blue-deep); }
.c-blue   { --sc: var(--c-blue); --sc2: var(--s-cyan); }
.c-sky    { --sc: var(--s-sky); --sc2: var(--c-blue); }
.c-cyan   { --sc: var(--s-cyan); }
.c-violet { --sc: var(--s-violet); --sc2: var(--s-sky); }
.c-lime   { --sc: var(--s-lime); --sc2: var(--s-green); }
.c-green  { --sc: var(--s-green); }
.c-pink   { --sc: var(--s-pink); --sc2: var(--s-violet); }

.hero-inner {
  position: relative; width: 100%;
  margin-inline: auto; padding: calc(var(--header-h) + 48px) var(--gutter) 120px;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
}
.hero-title { font-size: clamp(36px, 6vw, 84px); font-weight: 400; line-height: 1.15; letter-spacing: 0.02em; color: var(--c-blue); }
.hero-line { display: block; }
.hero-line + .hero-line { margin-top: 0.22em; }
.hero-mark { display: inline-block; padding: 0.08em 0.18em; background: var(--c-white); }
.hero-mark + .hero-mark { padding-left: 0; }

/* キャッチの下：右へ行くほど水色になる地に、白い箱が帯に重なる */
.hero-intro-band {
  padding: 0 var(--gutter) 120px;
  background: linear-gradient(90deg, var(--c-white) 20%, var(--c-sky-pale) 60%, var(--c-sky) 100%);
}
.hero-intro {
  position: relative; z-index: 1;
  max-width: 760px; margin-top: -88px; margin-left: max(0px, calc((100% - var(--max-width)) / 2));
  padding: 48px 56px 52px;
  background: var(--c-white);
}
.hero-sample-note {
  display: inline-block; margin-bottom: 20px; padding: 4px 12px;
  border: 1px solid var(--c-blue); border-radius: 999px;
  font-size: 14px; line-height: 1.6; letter-spacing: 0.02em; color: var(--c-blue);
}
.hero-eyebrow { font-size: 22px; font-weight: 400; line-height: 1.6; color: var(--c-blue); }
.hero-sub { margin-top: 16px; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }

/* =========================================================
   組合概要（段違いの写真3枚＋表）
   ========================================================= */
.photo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; margin-top: 56px; }
.photo-step { display: block; aspect-ratio: 4 / 3; }
.photo-step:nth-child(2) { margin-top: 40px; }
.photo-step:nth-child(3) { margin-top: 100px; }
.photo-step img { width: 100%; height: 100%; object-fit: cover; }

.data-table { width: 100%; margin-top: 64px; border-collapse: collapse; border-top: 1px solid var(--c-blue); }
.data-table th,
.data-table td {
  padding: 20px 8px; border-bottom: 1px solid var(--c-line);
  text-align: left; vertical-align: top;
  font-size: var(--fs-body); line-height: 1.8;
}
.data-table th { width: 9em; font-weight: 500; color: var(--c-blue); }

/* =========================================================
   事業内容（青い角丸の面＋虹の帯 → 写真 → タイル）
   ========================================================= */
.services-panel {
  position: relative; overflow: hidden;
  margin-inline: 16px; padding-block: var(--sp-section) clamp(280px, 24vw, 480px);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--c-blue) 0%, var(--c-blue-mid) 100%);
  color: var(--c-white);
}
.panel-inner { position: relative; }
.sec-head-on-blue { color: var(--c-white); border-top-color: var(--c-on-blue-muted); }
.sec-head-on-blue .sec-label { color: var(--c-on-blue-muted); }
.services-panel :focus-visible,
.contact-panel :focus-visible { outline-color: var(--c-white); }

/* 虹の帯：幅いっぱい・下端に揃える。弧の一番高い所は制度のカードの後ろに隠れる（文字の後ろに帯を置かない） */
.rainbow { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.rb { fill: none; stroke-linecap: round; }
.rb-pink   { stroke: var(--s-pink); }
.rb-violet { stroke: var(--s-violet); }
.rb-sky    { stroke: var(--s-sky); }
.rb-cyan   { stroke: var(--s-cyan); }
.rb-green  { stroke: var(--s-green); }
.rb-lime   { stroke: var(--s-lime); }

.system-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.system-card {
  padding: 36px 32px 40px;
  border-radius: 4px;
  background: var(--c-white); color: var(--c-text);
  box-shadow: var(--shadow);
}
.system-num { font-family: var(--font-en); font-size: 40px; font-weight: 300; line-height: 1; color: var(--c-blue); }
.system-name { margin-top: 20px; font-size: 26px; font-weight: 500; line-height: 1.4; color: var(--c-blue); }
.system-desc { margin-top: 16px; }
.system-note { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--c-blue); }

.wide-photo { margin-top: 120px; aspect-ratio: 16 / 7; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

.tile-group { margin-top: 64px; }
.tile-group + .tile-group { margin-top: 48px; }
.tile-heading { font-size: 18px; font-weight: 500; color: var(--c-blue); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 12px 24px;
  border-radius: 4px;
  background: var(--c-blue); color: var(--c-white);
  font-size: 18px; line-height: 1.5;
}
.tile-en { font-family: var(--font-en); font-size: 14px; font-weight: 300; letter-spacing: 0.04em; color: var(--c-on-blue-muted); }
#services > .container { padding-bottom: var(--sp-section); }

/* =========================================================
   受け入れの流れ（縦1列）
   ========================================================= */
#flow { padding-top: 0; }
.flow-list { margin-top: 56px; border-top: 1px solid var(--c-line); }
.flow-step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding-block: 32px; border-bottom: 1px solid var(--c-line); }
.flow-num { font-family: var(--font-en); font-size: 48px; font-weight: 300; line-height: 1; color: var(--c-blue); }
/* 数字を1桁ずつ同じ幅の枠に入れて、「01」だけ狭く見えないようにする */
.flow-num > span,
.system-num > span { display: inline-block; width: 0.64em; text-align: center; }
.flow-step h3 { font-size: 22px; font-weight: 500; line-height: 1.5; letter-spacing: 0.02em; }
.flow-step p { margin-top: 6px; }

/* =========================================================
   情報公開（青いタイル2枚）
   ========================================================= */
.section-disclosure { padding-top: 0; }
.doc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 48px; }
.doc-tile {
  display: flex; align-items: center; gap: 20px;
  min-height: 96px; padding: 20px 28px;
  border-radius: 4px;
  background: var(--c-blue); color: var(--c-white);
}
.doc-tag {
  flex-shrink: 0; padding: 2px 12px;
  border: 1px solid var(--c-white); border-radius: 999px;
  font-family: var(--font-en); font-size: 14px; line-height: 1.6; letter-spacing: 0.06em;
}
.doc-title { flex: 1; font-size: 20px; font-weight: 500; }
.doc-note { font-size: 14px; color: var(--c-on-blue-muted); }

/* =========================================================
   お問い合わせ（グラデーションの角丸の面＋白いカード → フォーム）
   ========================================================= */
.contact-panel {
  position: relative; overflow: hidden;
  margin-inline: 16px; padding-block: 120px 128px;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--c-blue) 0%, var(--c-blue-mid) 100%);
  color: var(--c-white);
}
.contact-streaks { opacity: .85; }
.contact-title { font-size: clamp(32px, 4.6vw, 64px); }
.contact-text { max-width: var(--max-text); margin-top: 20px; }
.contact-cards { max-width: 640px; margin: 48px 0 0 auto; }   /* 右寄せ＝背景の線が無い側へ（10/24） */
.contact-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 32px 36px;
  border-radius: 4px;
  background: var(--c-white); color: var(--c-text);
  text-decoration: none;
}
.contact-card h3 { font-size: 16px; font-weight: 500; }
.contact-phone { font-family: var(--font-en); font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: 0.02em; color: var(--c-blue); }
.contact-hours { font-size: 14px; color: var(--c-muted); }

.contact-form-area { padding-block: var(--sp-section); }
.form-mock-notice {
  margin-bottom: 32px; padding: 12px 16px;
  border-radius: 4px; background: var(--c-sky-pale);
  font-size: 14px; line-height: 1.7;
}
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 500; line-height: 1.6; letter-spacing: 0.02em; }
.required { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--c-blue); }
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  font-family: inherit; font-size: 16px; line-height: 1.6; letter-spacing: 0.02em;
  color: var(--c-text); background: var(--c-white);
  border: 1px solid var(--c-muted); border-radius: 4px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-muted); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-group input:disabled,
.form-group textarea:disabled { cursor: not-allowed; opacity: 1; background: var(--c-white); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 32px; font-size: 14px; line-height: 1.7; }
.form-consent input { margin-top: 5px; }
.btn-submit {
  display: block; width: 100%; min-height: 60px; border: 0; border-radius: 999px;
  background: var(--c-blue); color: var(--c-white);
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0.06em;
  cursor: not-allowed;
}

/* =========================================================
   フッター（一面の青）
   ========================================================= */
#site-footer { padding-block: 96px 40px; background: var(--c-blue); color: var(--c-white); }
#site-footer :focus-visible { outline-color: var(--c-white); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.footer-org-name { font-size: 26px; font-weight: 700; line-height: 1.4; word-break: keep-all; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.footer-nav a { display: block; font-size: 17px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-en { display: block; font-family: var(--font-en); font-size: 14px; font-weight: 300; letter-spacing: 0.04em; color: var(--c-on-blue-muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--c-on-blue-muted); }
.footer-org-detail { font-size: 14px; line-height: 2; color: var(--c-on-blue-muted); }
.footer-col h4 { margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.footer-col li { font-size: 14px; line-height: 2.1; color: var(--c-on-blue-muted); }
.footer-col a { color: var(--c-white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--c-on-blue-muted);
  font-size: 13px; color: var(--c-on-blue-muted);
}
.footer-copyright { margin-left: auto; }
.footer-demo-note { margin-top: 24px; font-size: 13px; line-height: 1.8; color: var(--c-on-blue-muted); }

/* =========================================================
   フェードイン（JSが動く環境だけ初期状態を透明に）
   ========================================================= */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.js .fade-in.visible { opacity: 1; transform: none; }
/* GSAPが動くときは animation.js が動きを担当する（CSSの遷移と二重にならないよう止める） */
.gsap-on .fade-in { opacity: 1; transform: none; transition: none; }
/* 見出しの線：左から引かれる（animation.js が .is-in を付ける） */
.gsap-on .sec-label::after { transform: scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(.22,1,.36,1) .2s; }
.gsap-on .sec-head.is-in .sec-label::after { transform: none; }

/* =========================================================
   タブレット以下（〜1023px）
   ========================================================= */
@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: block; }
  #site-header { padding-left: 24px; padding-right: 8px; }

  .hero-intro { padding: 40px; }

  .system-cards { grid-template-columns: 1fr; max-width: 640px; }
  .services-panel { padding-bottom: 240px; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; align-items: start; }

  .footer-top,
  .footer-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   スマホ（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  body { line-height: 1.85; }
  #site-header { left: 8px; right: 8px; padding-left: 20px; padding-right: 6px; }
  .logo-name { font-size: 17px; }
  .mobile-nav { left: 8px; right: 8px; }

  .hero-visual { min-height: 560px; }
  .hero-inner { padding-bottom: 96px; }
  .hero-title { font-size: 10.5vw; line-height: 1.2; }
  /* 区切りごとに1行ずつ（4行）。白い帯も1行ずつに分かれる */
  .hero-mark { display: table; }
  .hero-mark + .hero-mark { margin-top: 0.22em; padding-left: 0.18em; }
  .hero-intro-band { padding: 0 12px 88px; }
  .hero-intro { margin-top: -64px; padding: 32px 20px 36px; }
  .hero-eyebrow { font-size: 18px; }
  .hero-links { flex-direction: column; align-items: stretch; gap: 20px; }
  .btn-pill { padding: 0 24px; font-size: 15px; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .section-title { margin-top: 16px; }

  /* スマホ：3枚を大きくし、少し傾けてずらしながら重ねる（10/24 Uiさん指摘） */
  .photo-steps { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0; margin-top: 40px; }
  .photo-step { padding: 4px; background: var(--c-white); box-shadow: var(--shadow); }
  .photo-step:nth-child(1) { grid-column: 1 / 8; grid-row: 1; rotate: -2deg; }
  .photo-step:nth-child(2) { grid-column: 4 / 11; grid-row: 1; margin-top: 46%; rotate: 2.5deg; }
  .photo-step:nth-child(3) { grid-column: 2 / 9; grid-row: 2; margin-top: -14%; rotate: -1deg; }

  .data-table th,
  .data-table td { display: block; width: auto; padding: 0 4px; border: 0; }
  .data-table th { padding-top: 14px; }
  .data-table td { padding-block: 2px 14px; border-bottom: 1px solid var(--c-line); }

  .services-panel,
  .contact-panel { margin-inline: 8px; }
  .services-panel { padding-bottom: 200px; }
  .rainbow { left: -50%; width: 200%; }
  .system-card { padding: 28px 24px 32px; }
  .system-name { font-size: 22px; }

  .wide-photo { margin-top: 72px; aspect-ratio: 4 / 3; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 56px; padding: 10px 20px; font-size: 17px; }

  .flow-step { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding-block: 24px; }
  .flow-num { font-size: 32px; }
  .flow-step h3 { font-size: 18px; }

  .doc-tiles { grid-template-columns: 1fr; }
  .doc-tile { flex-wrap: wrap; gap: 8px 16px; padding: 20px; }
  .doc-title { flex-basis: calc(100% - 80px); font-size: 18px; }
  .doc-note { flex-basis: 100%; }

  .contact-panel { padding-block: 88px 120px; }
  .contact-card { padding: 28px 24px; }
  .contact-phone { font-size: 36px; }

  .footer-nav { gap: 20px 24px; }
  .footer-copyright { margin-left: 0; }
}

/* =========================================================
   動きを減らす設定：すべて停止
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .fade-in { opacity: 1; transform: none; }
}
