/* =========================================================
   MC Tech株式会社 コーポレートサイト 共通スタイル
   淡いネイビーを基調としたデザイン
   ========================================================= */

/* ---- カラーパレット / 共通変数（一元管理） ---- */
:root {
  /* ネイビー系 */
  --navy-900: #1f2d4a; /* 濃ネイビー: 見出し・フッター・ヒーロー */
  --navy-700: #34466b; /* 見出し・濃いめの面 */
  --navy-500: #4a5f86; /* メインネイビー */
  --navy-300: #8aa0c4; /* 補助 */
  --navy-100: #e1e9f4; /* 淡いネイビー背景 */
  --navy-50:  #eef2f8; /* もっとも淡い背景 */

  /* アクセント */
  --accent: #5b8fd1;      /* 控えめな明るい青（面・装飾用） */
  --accent-dark: #3f73b5; /* 小さい文字でも読めるアクセント */
  --spark: #6ea8ff;       /* 視線のフック用。濃紺背景の上でのみ使う */

  /* テキスト */
  --text: #2c3a52;
  --text-muted: #566173; /* WCAG AA を満たす明度 */
  --white: #ffffff;

  /* フォント */
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-en: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* レイアウト */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(31, 45, 74, 0.08);
  --shadow-lg: 0 18px 50px rgba(31, 45, 74, 0.16);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

h1,
h2,
h3 {
  color: var(--navy-900);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.6em;
  font-feature-settings: "palt"; /* 日本語見出しを詰め組みに */
  letter-spacing: 0.03em;
}

p {
  margin: 0 0 1em;
}

/* ---- アクセシビリティ基盤 ---- */
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ---- 共通レイアウト ---- */
.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--tint {
  background: var(--navy-50);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

/* eyebrow は全セクション共通の見出しラベル */
.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
}

/* 濃紺背景の上でだけ、彩度の高い --spark を使う */
.hero .eyebrow,
.page-hero .eyebrow,
.section--navy .eyebrow {
  color: var(--spark);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0 0 0.4em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.section--navy .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 2em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(91, 143, 209, 0.35);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(63, 115, 181, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateY(-3px);
}

.btn--outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-300);
}

.btn--outline:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  transform: translateY(-3px);
}

/* =========================================================
   ヘッダー / ナビゲーション
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* スクロール後 / 下層ページは白背景に */
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(31, 45, 74, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

.brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--navy-500));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(91, 143, 209, 0.4);
}

.is-scrolled .brand,
.is-solid .brand {
  color: var(--navy-900);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.is-scrolled .nav a,
.is-solid .nav a {
  color: var(--navy-700);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav .btn {
  padding: 0.6em 1.4em;
  margin-left: 8px;
}

/* ピル型CTAボタンには下線アニメーションを出さない */
.nav .btn::after {
  display: none;
}

/* ハンバーガー */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease),
    background 0.3s var(--ease);
}

.is-scrolled .nav-toggle span,
.is-scrolled .nav-toggle span::before,
.is-scrolled .nav-toggle span::after,
.is-solid .nav-toggle span,
.is-solid .nav-toggle span::before,
.is-solid .nav-toggle span::after {
  background: var(--navy-900);
}

.nav-toggle span {
  top: 21px;
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}

.nav-open .nav-toggle span {
  background: transparent;
}
.nav-open .nav-toggle span::before {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--navy-900);
}
.nav-open .nav-toggle span::after {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--navy-900);
}

/* ドロワー展開時の背景オーバーレイとスクロールロック */
body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(31, 45, 74, 0.45);
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, #243456 0%, #16203a 60%);
}

/* 光彩: blur を大きく取らないと「置いた円」に見える */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  opacity: 0.55;
  background: radial-gradient(
    circle,
    rgba(110, 168, 255, 0.5),
    transparent 70%
  );
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: -100px;
  opacity: 0.45;
  background: radial-gradient(
    circle,
    rgba(138, 160, 196, 0.4),
    transparent 70%
  );
}

/* 薄いグリッド線＋粒子ノイズで背景に質感を与える */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(138, 160, 196, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 160, 196, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 40%, black, transparent 72%);
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
}

.hero-inner {
  max-width: 760px;
}

.hero .eyebrow {
  margin-bottom: 22px;
  animation: heroFade 0.6s var(--ease) 0.5s both;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  font-weight: 900;
}

/* 行送りのロード演出（JS不要） */
.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line-inner {
  display: block;
  transform: translateY(110%);
  animation: heroLineUp 0.9s var(--ease) forwards;
}

.hero h1 .line:nth-child(2) .line-inner {
  animation-delay: 0.15s;
}

.hero h1 .accent {
  color: var(--spark);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 2.2em;
  animation: heroFade 0.6s var(--ease) 0.65s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: heroFade 0.6s var(--ease) 0.8s both;
}

@keyframes heroLineUp {
  to {
    transform: none;
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}

.hero-scroll:hover {
  color: var(--white);
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: 12px auto 0;
  background: linear-gradient(rgba(255, 255, 255, 0.7), transparent);
  animation: scrollLine 1.8s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* 下層ページ用の小さめヒーロー */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: radial-gradient(120% 140% at 85% 0%, #243456 0%, #16203a 65%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -180px;
  right: -120px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  background: radial-gradient(circle, rgba(110, 168, 255, 0.45), transparent 70%);
}

/* ページごとに光彩の位置を変え、下層の既視感を消す */
.page-hero--alt {
  background: radial-gradient(120% 140% at 15% 0%, #243456 0%, #16203a 65%);
}

.page-hero--alt::after {
  right: auto;
  left: -120px;
  top: auto;
  bottom: -200px;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
}

.breadcrumb {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.6em;
}

.breadcrumb li + li::before {
  content: "／";
  margin-right: 0.6em;
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* =========================================================
   カードグリッド（事業内容など）
   ========================================================= */
.grid {
  display: grid;
  gap: 28px;
}

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

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

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-300);
}

.card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-50), var(--navy-100));
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2em;
}

.card .card-link {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* カード全体をクリック可能にする（ストレッチドリンク） */
.card .card-link::before {
  content: "";
  position: absolute;
  inset: 0;
}

.card .card-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

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

/* =========================================================
   特徴・約束（番号付きリスト）
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  row-gap: 48px;
  margin-top: 16px;
}

.feature {
  position: relative;
  padding: 48px 28px 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--navy-100);
  overflow: visible;
}

/* アウトライン数字をカードからはみ出させる */
.feature .feature-num {
  position: absolute;
  top: -28px;
  left: 18px;
  font-family: var(--font-en);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy-300);
  opacity: 0.55;
  pointer-events: none;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* =========================================================
   会社概要ティーザー（ホーム）
   ========================================================= */
.about-teaser {
  align-items: center;
  gap: 50px;
}

.about-teaser-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-top: 10px;
}

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

.about-teaser .btn {
  margin-top: 8px;
}

/* =========================================================
   ファクトカード（実績風の演出を排した事実表示）
   ========================================================= */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fact-card {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 20px;
  text-align: center;
}

.fact-num {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* =========================================================
   事業詳細（services）
   ========================================================= */
.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: clamp(40px, 6vw, 70px) 0;
  border-bottom: 1px solid var(--navy-100);
}

.service-row:nth-child(even) .service-visual {
  order: 2;
}

.service-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  color: var(--navy-300);
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* 写真をネイビートーンに寄せて全体の色調に馴染ませる */
.service-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(31, 45, 74, 0.3),
    rgba(91, 143, 209, 0.12)
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-no {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent-dark);
}

.service-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 8px 0 0.5em;
}

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

.service-body ul {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 0;
  display: grid;
  gap: 10px;
}

.service-body li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}

.service-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

/* =========================================================
   ご依頼の流れ
   ========================================================= */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.flow-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -26px;
  transform: translateY(-50%);
  color: var(--navy-300);
  font-weight: 700;
  font-size: 1.2rem;
}

.flow-num {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent-dark);
}

.flow-step h3 {
  font-size: 1.05rem;
  margin: 8px 0 0.4em;
}

.flow-step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* =========================================================
   会社概要テーブル
   ========================================================= */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-table th,
.profile-table td {
  padding: 20px 26px;
  text-align: left;
  border-bottom: 1px solid var(--navy-100);
  vertical-align: top;
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
  border-bottom: none;
}

.profile-table th {
  width: 30%;
  background: var(--navy-50);
  color: var(--navy-700);
  font-weight: 700;
  white-space: nowrap;
}

.profile-table td {
  color: var(--text);
}

/* =========================================================
   代表メッセージ
   ========================================================= */
.message-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.message-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  color: var(--navy-300);
  font-weight: 700;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

.message-sign {
  margin-top: 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.message-sign strong {
  display: block;
  font-size: 1.3rem;
  color: var(--navy-900);
  margin-top: 4px;
}

/* =========================================================
   CTA 帯（対角クリップで単調さを崩す）
   ========================================================= */
.cta {
  text-align: center;
}

.section--navy.cta {
  clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(64px, 9vw, 120px) + 3.5vw);
}

.cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 2em;
}

/* =========================================================
   お問い合わせフォーム
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

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

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

.contact-info .info-item--first {
  margin-top: 30px;
}

.contact-info .info-body {
  margin: 4px 0 0;
}

.contact-info .info-item {
  margin-bottom: 22px;
}

.contact-info .info-item span {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.contact-info .info-item strong {
  color: var(--navy-900);
  font-size: 1.05rem;
  font-weight: 700;
}

.form {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-700);
  margin-bottom: 8px;
}

.field label .req {
  color: #c94f63;
  font-size: 0.8rem;
  margin-left: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--navy-100);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--navy-50);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(91, 143, 209, 0.15);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

/* 同意チェックボックス */
.field--consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.field--consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  flex: none;
  accent-color: var(--accent-dark);
}

/* honeypot は非表示 */
.hp-field {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
  outline: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #e7f4ee;
  color: #1f7a4d;
}

.form-status.is-error {
  background: #fbe9ec;
  color: #b23a4f;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn--block {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* =========================================================
   汎用テキストページ（privacy など）
   ========================================================= */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose p,
.prose ul {
  color: var(--text-muted);
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 1.8em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

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

.prose ul {
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.policy-date {
  margin-top: 3em;
  font-size: 0.88rem;
}

/* Mission（about） */
.mission {
  text-align: center;
}

.mission-title {
  border: none;
  padding: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 14px 0 0.6em;
}

.profile-wrap {
  max-width: 860px;
  margin: 0 auto;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  line-height: 1.9;
}

.footer-heading {
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   スクロールアニメーション
   ※ JS無効時にコンテンツが消えないよう .js 配下でのみ隠す
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.1s;
}
.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}
.js .reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero .eyebrow,
  .hero-lead,
  .hero-actions,
  .hero h1 .line-inner {
    animation: none;
    transform: none;
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
  .grid--3,
  .features,
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .service-row,
  .message-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-row:nth-child(even) .service-visual {
    order: 0;
  }

  .message-photo {
    position: static;
    max-width: 320px;
  }

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

  /* タブレット幅でも水平ナビが窮屈になるためドロワーへ切替 */
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 80px 28px 40px;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(31, 45, 74, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s 0.35s;
    z-index: 105;
  }

  .nav-open .nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
  }

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

  .nav a::after {
    display: none;
  }

  .nav .btn {
    margin: 12px 0 0;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .grid--3,
  .grid--2,
  .features,
  .facts,
  .flow {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .profile-table th {
    padding-bottom: 6px;
  }

  .profile-table td {
    padding-top: 0;
  }
}
