/* ==========================================================
   株式会社ミライリンク たたき台用スタイル
   色やサイズは :root の変数をまとめて変えれば全体に反映されます
   ========================================================== */

:root {
  --color-primary: #1f4e8c;       /* メインカラー（紺） */
  --color-primary-dark: #163a69;
  --color-accent: #1d7a7f;        /* アクセント（青緑）。白・薄いグレー背景でも文字のコントラスト比4.5:1以上を保つ濃さ */
  --color-text: #222831;
  --color-text-sub: #5b6470;
  --color-border: #dfe3e8;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f9;        /* 交互の背景色 */
  --color-footer: #1b2330;
  --color-error: #c62828;         /* 入力エラー・必須マーク */

  --font-base: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --container: 1120px;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(20, 40, 70, 0.08);
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ページ内リンクで移動したとき、固定ヘッダーの下に隠れないようにする。
   なめらかスクロール（scroll-behavior: smooth）は、別ページの事例などへ移動した直後の
   自動スクロールが途中で止まることがあるため使わない */
html {
  scroll-padding-top: var(--header-height);
}

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

h1, h2, h3 {
  line-height: 1.4;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

.btn--white:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  text-decoration: none;
}

.link-more::after {
  content: "→";
  transition: transform 0.2s;
}

.link-more:hover::after {
  transform: translateX(4px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- 学習課題であることのお知らせ（ページ最上部。本番公開時は削除） ---------- */
.demo-notice {
  margin: 0;
  padding: 6px 16px;
  background: var(--color-footer);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--color-text);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 1rem;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* 横並びのメニューでは「ホーム」を省く（ロゴがホームへのリンクを兼ねるため） */
.global-nav .nav-home {
  display: none;
}

/* ヘッダー右端の「お問い合わせ」ボタン */
.global-nav .nav-cta a {
  margin-left: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  transition: background 0.2s;
}

.global-nav .nav-cta a:hover,
.global-nav .nav-cta a[aria-current="page"] {
  background: var(--color-primary-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

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

/* ---------- メインビジュアル（ホーム） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 128px;
  /* ゆっくり色が移り変わるグラデーション */
  background: linear-gradient(120deg, #163a69, #1f4e8c, #2b7d95, #1f4e8c, #163a69);
  background-size: 300% 300%;
  animation: hero-gradient 20s ease-in-out infinite;
  color: #fff;
}

@keyframes hero-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 点と線のアニメーションを描くキャンバス（文字の後ろに敷く） */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* 「視差効果を減らす」設定の人には動きを止める */
@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}

/* 停止ボタンで止めたとき */
.hero.is-paused {
  animation-play-state: paused;
}

/* 動く背景の停止・再生ボタン */
.hero-motion-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(22, 58, 105, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-motion-toggle[hidden] {
  display: none;
}

.hero-motion-toggle:hover {
  background: rgba(22, 58, 105, 0.9);
}

.hero-motion-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* 一時停止アイコン（縦棒2本） */
.hero-motion-icon {
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

/* 再生アイコン（右向きの三角） */
.hero.is-paused .hero-motion-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: none;
}

.hero-label {
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.2em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ---------- 下層ページのタイトル ---------- */
.page-header {
  padding: 72px 0;
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 4px;
}

.page-header-en {
  margin: 0;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.breadcrumb {
  background: var(--color-bg-alt);
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--color-text-sub);
}

.breadcrumb a {
  text-decoration: none;
}

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

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

.section-heading {
  margin-bottom: 48px;
}

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

.section-label {
  margin: 0 0 4px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.2em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.section-footer {
  margin-top: 40px;
  text-align: center;
}

.text-lead {
  font-size: 1.1rem;
}

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

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

/* 画像が入る場所の仮置き */
.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #e6eaf0 0 12px, #edf0f4 12px 24px);
  color: var(--color-text-sub);
  font-size: 0.9rem;
}

/* 写真 */
.split-media picture {
  display: block;
}

.photo {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* ---------- 2カラム ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.split--reverse .split-media {
  order: 2;
}

/* ---------- カード ---------- */
.card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.2rem;
}

.card p:last-of-type {
  flex-grow: 1;
}

.card .link-more {
  margin-top: 8px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: bold;
}

.card-number {
  margin-bottom: 8px;
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

/* ---------- お知らせ ---------- */
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--color-border);
}

.news-list time {
  color: var(--color-text-sub);
  font-size: 0.9rem;
}

.news-tag {
  display: inline-block;
  min-width: 88px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
}

/* ---------- お問い合わせ誘導 ---------- */
.cta {
  padding: 80px 0;
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-accent));
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.cta p {
  margin-bottom: 32px;
}

.cta-tel {
  display: block;
  margin-bottom: 4px;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}

.cta-note {
  font-size: 0.85rem;
}

.cta .cta-or {
  margin: 32px 0 4px;
  font-size: 0.9rem;
}

/* ---------- お知らせ枠（注意書き） ---------- */
.notice {
  margin-bottom: 40px;
  padding: 16px 20px;
  border: 1px solid #e0b252;
  border-left-width: 6px;
  border-radius: var(--radius);
  background: #fff8e6;
  color: #5c4300;
  font-size: 0.9rem;
}

.notice p {
  margin: 0;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

/* ---------- お問い合わせフォーム ---------- */
.contact-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 48px;
  margin-bottom: 48px;
}

.contact-intro p {
  margin: 0;
}

.contact-tel-box {
  padding: 20px 32px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  text-align: center;
}

.contact-tel-box .contact-tel-label {
  font-size: 0.85rem;
  font-weight: bold;
}

.contact-tel-box a {
  display: block;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.contact-tel-box .contact-tel-note {
  color: var(--color-text-sub);
  font-size: 0.8rem;
}

.form-wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* 入力 → 確認 → 完了 のステップ表示 */
.form-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.form-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-sub);
  font-weight: bold;
  counter-increment: step;
}

.form-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
}

.form-steps li:not(:last-child) {
  padding-right: 32px;
  background: linear-gradient(var(--color-border), var(--color-border)) right center / 24px 2px no-repeat;
}

.form-steps li[aria-current="step"] {
  color: var(--color-primary);
}

.form-steps li[aria-current="step"]::before {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.form-heading {
  margin-bottom: 24px;
  font-size: 1.4rem;
}

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

.form-error-summary {
  margin-bottom: 32px;
  padding: 16px 20px;
  border: 2px solid var(--color-error);
  border-radius: var(--radius);
  background: #fdf1f1;
  color: var(--color-error);
  font-weight: bold;
}

.form-error-summary:focus {
  outline: 3px solid var(--color-error);
  outline-offset: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.form-row:first-of-type {
  border-top: 1px solid var(--color-border);
}

.form-label {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  font-weight: bold;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.6;
}

.badge--required {
  background: var(--color-error);
  color: #fff;
}

.badge--optional {
  background: var(--color-bg-alt);
  color: var(--color-text-sub);
  border: 1px solid var(--color-border);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #8a93a0;
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

.form-control:focus {
  outline: 3px solid rgba(31, 78, 140, 0.35);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

textarea.form-control {
  min-height: 200px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6470' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 16px center no-repeat;
}

.form-control[aria-invalid="true"] {
  border-color: var(--color-error);
  background-color: #fdf1f1;
}

.form-hint {
  margin: 6px 0 0;
  color: var(--color-text-sub);
  font-size: 0.85rem;
}

.form-error {
  margin: 6px 0 0;
  color: var(--color-error);
  font-size: 0.9rem;
  font-weight: bold;
}

.form-error:empty {
  display: none;
}

.form-agree {
  margin: 32px 0 0;
  text-align: center;
}

.form-agree label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  cursor: pointer;
}

.form-agree input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

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

.form-actions .btn {
  min-width: 240px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

/* 確認画面の一覧 */
.confirm-list {
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.confirm-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.confirm-list dt {
  font-weight: bold;
}

.confirm-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.form-complete {
  text-align: center;
}

.form-complete .btn {
  margin-top: 24px;
}

/* ---------- プライバシーポリシー ---------- */
.policy {
  max-width: 840px;
  margin: 0 auto;
}

.policy h2 {
  margin: 56px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--color-primary);
  font-size: 1.25rem;
}

.policy ol,
.policy ul {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

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

.policy-contact {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}

.policy-contact p:last-child {
  margin: 0;
}

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

/* ---------- 私たちについて ---------- */
.philosophy {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-copy {
  margin-bottom: 24px;
  color: var(--color-primary);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: bold;
  line-height: 1.5;
}

.signature {
  margin-top: 32px;
  text-align: right;
  font-weight: bold;
}

/* ---------- サービス一覧 ---------- */
.service-block + .service-block {
  margin-top: 96px;
}

.service-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px dashed var(--color-border);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--color-accent);
  font-weight: bold;
}

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

.flow-list li {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  counter-increment: flow;
}

.flow-list li::before {
  content: "STEP " counter(flow);
  display: block;
  margin-bottom: 8px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.flow-list li + li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -18px;
  border: 8px solid transparent;
  border-left-color: var(--color-primary);
  transform: translateY(-50%);
}

.flow-list h3 {
  font-size: 1.05rem;
}

.flow-list p {
  margin: 0;
  color: var(--color-text-sub);
  font-size: 0.9rem;
}

.service-catch {
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: bold;
}

/* 悩み → 解決方法 → 成果 の3つの箱 */
.service-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.service-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

/* 箱と箱のあいだの矢印 */
.service-step + .service-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -30px;
  border: 10px solid transparent;
  border-left-color: var(--color-primary);
  transform: translateY(-50%);
}

.service-step h3 {
  font-size: 1.05rem;
}

.service-step .feature-list {
  margin-top: 8px;
}

.feature-list--problem li::before {
  color: var(--color-text-sub);
}

.service-step .link-more {
  margin-top: auto;
  padding-top: 16px;
}

/* 成果の数字 */
.result-figure {
  margin: 8px 0 12px;
}

.result-figure-label {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
}

.result-figure-number {
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.result-figure-number small {
  margin-left: 4px;
  font-size: 1rem;
}

/* 料金の目安 */
.price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 32px;
  padding: 20px 28px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: #fff;
}

.price-label {
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
}

.price-value {
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: bold;
}

.price-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--color-text-sub);
  font-size: 0.85rem;
}

/* サンプルであることの小さな注記 */
.sample-note {
  margin: 16px 0 0;
  color: var(--color-text-sub);
  font-size: 0.8rem;
}

/* ---------- 数字で見るミライリンク ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  padding: 32px 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-label {
  margin: 0 0 4px;
  font-weight: bold;
}

.stat-number {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: bold;
  line-height: 1.2;
}

.stat-unit {
  margin-left: 2px;
  font-size: 1rem;
}

/* ---------- 導入事例 ---------- */
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.case-tags li {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: bold;
}

.case-card .result-figure-number {
  font-size: 2rem;
}

/* 導入事例ページ */
.cases-intro {
  margin-bottom: 48px;
}

.case-detail {
  padding: 48px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.case-detail + .case-detail {
  margin-top: 48px;
}

.case-detail h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.case-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.case-figures li {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}

.case-section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.case-section h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1rem;
}

.case-section p {
  margin: 0;
}

.case-voice {
  margin: 24px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-bg-alt);
}

.case-voice p {
  margin: 0 0 8px;
}

.case-voice footer {
  color: var(--color-text-sub);
  font-size: 0.9rem;
}

/* ---------- 会社概要 ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border);
}

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

.info-table th {
  width: 25%;
  background: var(--color-bg-alt);
  font-weight: bold;
}

.history-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 32px;
}

.history-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--color-border);
}

.history-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
}

.history-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -31px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  background: #fff;
}

.history-item dt {
  color: var(--color-primary);
  font-weight: bold;
}

.history-item dd {
  margin: 0;
}

.map-placeholder {
  aspect-ratio: 16 / 9;
  max-height: 420px;
  width: 100%;
  margin-bottom: 24px;
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 64px 0 24px;
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-info .logo {
  margin-bottom: 16px;
  color: #fff;
}

.footer-info p {
  margin: 0;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- タブレット ---------- */
@media (max-width: 960px) {
  .card-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .flow-list li + li::after {
    display: none;
  }

  .split {
    gap: 40px;
  }

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

  /* 悩み → 解決方法 → 成果 を縦に並べ、矢印も下向きにする */
  .service-steps {
    grid-template-columns: 1fr;
  }

  .service-step + .service-step::before {
    top: -32px;
    left: 50%;
    border-left-color: transparent;
    border-top-color: var(--color-primary);
    transform: translateX(-50%);
  }
}

/* ---------- ヘッダーを☰メニューに切り替える幅 ---------- */
/* メニュー＋お問い合わせボタンが1行に収まらなくなる幅で切り替える */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  /* ☰メニューの中では「ホーム」も表示する */
  .global-nav .nav-home {
    display: block;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .global-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--color-border);
  }

  .global-nav a:hover,
  .global-nav a[aria-current="page"] {
    border-bottom-color: var(--color-border);
  }

  .global-nav .nav-cta a {
    margin: 16px 0 0;
    padding: 14px;
    border-bottom: none;
    text-align: center;
  }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 80px 0 88px;
  }

  .hero-motion-toggle {
    right: 16px;
    bottom: 16px;
  }

  .page-header {
    padding: 48px 0;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .split,
  .card-list,
  .card-list--2,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: 0;
  }

  .service-block + .service-block {
    margin-top: 64px;
  }

  .card {
    padding: 24px;
  }

  .stat {
    padding: 24px 8px;
  }

  .service-step {
    padding: 24px;
  }

  .price-box {
    padding: 20px;
  }

  .case-detail {
    padding: 24px;
  }

  .case-section {
    grid-template-columns: 1fr;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .info-table th {
    border-bottom: none;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-intro,
  .form-row,
  .confirm-list div {
    grid-template-columns: 1fr;
  }

  .form-row {
    padding: 20px 0;
  }

  .form-label {
    padding-top: 0;
  }

  .form-steps li:not(:last-child) {
    padding-right: 20px;
    background-size: 12px 2px;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .footer-nav ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }
}
