/* ============================================================
   horiz-ai.com — Hostinger 版を踏襲する静的サイト用 CSS
   Tokens: dark navy bg、cream text、teal accent、Shippori Mincho 見出し
   ============================================================ */

:root {
  --bg-1: #131D32;        /* メイン背景 (dark navy) */
  --bg-2: #0F1729;        /* 一段濃い navy */
  --bg-3: #1B2742;        /* セクション境界用 */
  --ink-1: #F5F0E8;       /* メインテキスト (warm white) */
  --ink-2: #C7CCD8;       /* サブテキスト */
  --ink-3: #8993A6;       /* 弱テキスト */
  --teal:  #26A69A;       /* アクセント teal */
  --teal-2: #1E867C;
  --gold:  #D4A862;
  --line:  rgba(245, 240, 232, 0.10);

  --serif: 'Shippori Mincho', 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans:  'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --inter: 'Inter', sans-serif;

  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 96px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg-1);
  color: var(--ink-1);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; background: var(--bg-1); }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

main { display: block; }

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

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ────────────────────────────────────────────────────────────
   ヘッダー — 左ロゴ＋タグライン、右ナビ。CTAボタン無し（Hostinger踏襲）
   ──────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color 0.3s ease, height 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(15, 23, 41, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  height: 72px;
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled .brand-mark { width: 120px; transition: width 0.3s ease; }
.brand-mark { transition: width 0.3s ease; }

/* ハンバーガー (モバイル) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.30);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  padding: 0;
  z-index: 2; /* ヘッダー内で primary-nav(暗黙のauto=0) の上に置いて閉じる×を押せるようにする */
}
.nav-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--ink-1);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.brand-mark { width: 150px; height: auto; }

.primary-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-item { position: relative; }
.nav-link {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-1);
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}
.nav-item.is-active .nav-link {
  border-bottom: 1px solid var(--ink-1);
  padding-bottom: 4px;
}
.nav-link:hover { color: var(--teal); }
.caret { font-size: 10px; opacity: 0.7; transform: translateY(-1px); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.nav-sub-item {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--ink-1);
  white-space: nowrap;
}
.nav-sub-item:hover { background: var(--bg-3); color: var(--teal); }

@media (max-width: 1080px) {
  .nav-list { gap: 24px; }
  .header-inner { padding: 0 28px; }
  .brand-mark { width: 110px; }
}
@media (max-width: 820px) {
  .header-inner { padding: 0 18px; }
  .brand-mark { width: 110px; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 86vw);
    height: 100vh;
    height: 100dvh; /* iOS Safari の動的ビューポート対応 */
    background: var(--bg-2);
    padding: 96px 32px calc(32px + env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
    box-shadow: -16px 0 40px rgba(0,0,0,0.35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-item { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-item.is-active .nav-link { border-bottom: 1px solid var(--teal); }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding: 0 0 12px 16px;
    min-width: 0;
  }
  .has-dropdown .nav-link { border-bottom: 1px solid var(--line); }
  .nav-sub-item {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--ink-2);
  }
  .nav-sub-item:hover { background: transparent; color: var(--teal); }
  .caret { display: none; }

  body.nav-locked { overflow: hidden; }
  body.nav-locked::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99; /* ヘッダー(z:100)より下 = ヘッダー内のメニュー＆トグルは前面のままタップ可 */
  }
}

/* ────────────────────────────────────────────────────────────
   ヒーロー (トップ) — フル背景画像、テキスト右側
   ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  background-color: var(--bg-1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ink-1);
}

/* ヒーロー背景画像 — WebP優先、未対応ブラウザはPNG/JPGにフォールバック */
.bg-home        { background-image: url('/assets/images/home_hero.png'); }
.bg-training    { background-image: url('/assets/images/training_hero.jpg'); }
.bg-consulting  { background-image: url('/assets/images/consulting_hero.jpg'); }
.bg-development { background-image: url('/assets/images/development_hero.jpg'); }
/* `webp-supported` クラスは <html> に JS で付与される。下記参照 */
html.webp-supported .bg-home        { background-image: url('/assets/images/home_hero.webp'); }
html.webp-supported .bg-training    { background-image: url('/assets/images/training_hero.webp'); }
html.webp-supported .bg-consulting  { background-image: url('/assets/images/consulting_hero.webp'); }
html.webp-supported .bg-development { background-image: url('/assets/images/development_hero.webp'); }

.hero-home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  /* 縦方向はやや上寄せ — 画像中央の輝点ホライズンライン上にテキストが乗らないように */
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--header-h) + 18vh);
}
/* テキスト後方を集中的に暗くする — ラジアル位置をテキスト中心(38%)に合わせる */
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 38% at 50% 38%, rgba(8,14,28,0.70) 0%, rgba(8,14,28,0.38) 55%, rgba(8,14,28,0.05) 100%),
    linear-gradient(180deg, rgba(19,29,50,0.28) 0%, rgba(19,29,50,0.04) 45%, rgba(19,29,50,0.18) 100%);
  pointer-events: none;
}

.hero-home-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  padding: 0 40px;
  display: flex;
  justify-content: center;
}

.hero-text {
  text-align: center;
  max-width: 760px;
  text-shadow: 0 2px 28px rgba(8,14,28,0.65), 0 1px 2px rgba(8,14,28,0.4);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.4;
  margin: 0 0 48px;
  color: var(--ink-1);
}
.hero-line { display: block; }
.accent-teal { color: var(--teal); }

.hero-lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.7;
  margin: 0;
  color: var(--ink-1);
  letter-spacing: 0.02em;
  text-wrap: pretty;
  word-break: auto-phrase;
}

@media (max-width: 1080px) {
  .hero-home { padding-top: calc(var(--header-h) + 14vh); }
  .hero-home-inner { padding: 0 40px; }
  .hero-title { font-size: 52px; }
}
@media (max-width: 720px) {
  .hero-home { min-height: 80vh; padding-top: calc(var(--header-h) + 10vh); }
  .hero-home-inner { padding: 0 24px; }
  .hero-title { font-size: 36px; margin-bottom: 32px; }
  .hero-lede { font-size: 16px; }
  .hero-lede br { display: none; }
}

/* ────────────────────────────────────────────────────────────
   ページヘッダー (training/consulting/development)
   フル背景写真 + 中央タイトル + 3カラム USP
   ──────────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  background: var(--bg-1);
  background-size: cover;
  background-position: center;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 60px;
  text-align: center;
  color: var(--ink-1);
}

.page-hero-photo {
  min-height: 480px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,29,50,0.45) 0%, rgba(19,29,50,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-photo > .container { position: relative; z-index: 1; }

.page-hero-plain {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding-bottom: 48px;
}

.page-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0 0 56px;
  color: var(--ink-1);
}
.page-hero-plain .page-hero-title { margin-bottom: 16px; }
.page-hero-lede {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 720px) {
  .page-hero-title { font-size: 36px; margin-bottom: 36px; }
  .page-hero-photo { min-height: 360px; padding-top: calc(var(--header-h) + 40px); }
}

/* USP 3カラム (page-hero 内) — エディトリアル系: 大きな数字+下線+本文 */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.usp-cell {
  text-align: center;
  padding: 16px 32px;
  position: relative;
}
/* 区切り線: 各列の左に細い縦線 (最初の列を除く) */
.usp-cell + .usp-cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(245, 240, 232, 0.18) 30%,
    rgba(245, 240, 232, 0.18) 70%,
    transparent 100%);
}
.usp-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--teal);
  display: block;
  line-height: 1;
  margin-bottom: 18px;
  position: relative;
}
/* 数字下のヘアライン下線 */
.usp-num::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  margin: 14px auto 0;
  opacity: 0.7;
}
.usp-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
  color: var(--ink-1);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .usp-grid { grid-template-columns: 1fr; gap: 8px; }
  .usp-cell { padding: 20px 16px; }
  .usp-cell + .usp-cell::before {
    /* 縦線→横線 */
    left: 12%; right: 12%; top: 0; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(to right,
      transparent 0%,
      rgba(245, 240, 232, 0.18) 30%,
      rgba(245, 240, 232, 0.18) 70%,
      transparent 100%);
  }
  .usp-num { font-size: 32px; margin-bottom: 14px; }
  .usp-num::after { width: 24px; margin-top: 10px; }
  .usp-text { font-size: 16px; }
}

/* ────────────────────────────────────────────────────────────
   CTA バンド — フル幅、teal 丸ピル
   ──────────────────────────────────────────────────────────── */

.cta-band {
  background: var(--bg-2);
  padding: 36px 0;
  text-align: center;
}
.cta-pill-wrap {
  text-align: center;
}
.cta-pill {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  padding: 18px 56px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-pill:hover {
  background: var(--teal-2);
  color: #fff;
}

/* ────────────────────────────────────────────────────────────
   セクション共通
   ──────────────────────────────────────────────────────────── */

.section { padding: 96px 0; background: var(--bg-1); }
.section + .section { padding-top: 0; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 24px;
  color: var(--ink-1);
  letter-spacing: 0.05em;
}
.section-lede {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-1);
  margin: 0 auto 48px;
  max-width: 720px;
  text-wrap: pretty;
  word-break: auto-phrase;
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-lede { font-size: 15px; margin-bottom: 32px; }
}

/* ────────────────────────────────────────────────────────────
   北大認定セクション
   ──────────────────────────────────────────────────────────── */

.section-hus {
  background: var(--bg-1);
  text-align: center;
  padding: 100px 0;
}
.section-hus .section-title { margin-bottom: 32px; }
.hus-body {
  max-width: 720px;
  margin: 0 auto 56px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
  text-wrap: pretty;
  word-break: auto-phrase;
}
.hus-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hus-horiz { width: 220px; }
.hus-x {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 56px;
  color: var(--ink-1);
  line-height: 1;
}
.hus-img { width: 220px; transform: translateX(-12px); }
@media (max-width: 720px) {
  .hus-lockup { gap: 14px; flex-wrap: nowrap; }
  .hus-horiz { width: 130px; }
  .hus-img { width: 130px; transform: translateX(-8px); }
  .hus-x { font-size: 28px; }
}

/* ────────────────────────────────────────────────────────────
   事業内容 3 カラム — 画像上、ミンチョタイトル、本文
   ──────────────────────────────────────────────────────────── */

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.service-tile {
  display: block;
  color: var(--ink-1);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), opacity 0.3s ease;
}
.service-tile:hover { color: var(--ink-1); }
.service-tile:hover .service-title { color: var(--teal); }
.service-title { transition: color 0.2s ease; }

.service-image {
  /* 元画像 1440x785 ≒ 16:9。aspect-ratio をソースに合わせて余計なクロップを避ける */
  aspect-ratio: 1440 / 785;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}
.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.service-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-1);
  margin: 0;
}

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-title { font-size: 22px; }
}

/* ────────────────────────────────────────────────────────────
   コース／事例リスト — 画像左、テキスト右の交互配置
   ──────────────────────────────────────────────────────────── */

.course-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 920px;
  margin: 0 auto;
}
.course-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.course-image {
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
  color: var(--ink-1);
}
.course-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
  color: var(--ink-1);
}

@media (max-width: 720px) {
  .course-row { grid-template-columns: 1fr; gap: 16px; }
  .course-image { aspect-ratio: 16 / 10; }
  .course-title { font-size: 22px; }
  .course-body { font-size: 14px; }
}

/* ────────────────────────────────────────────────────────────
   フロー (consulting) — シンプルな縦リスト、teal 左罫線
   ──────────────────────────────────────────────────────────── */

.section-flow .section-title { margin-bottom: 56px; }
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.flow-row {
  border-left: 2px solid var(--teal);
  padding: 4px 0 4px 24px;
}
.flow-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--ink-1);
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.flow-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .flow-title { font-size: 20px; }
  .flow-body { font-size: 14px; }
}

/* ────────────────────────────────────────────────────────────
   料金・助成金
   ──────────────────────────────────────────────────────────── */

.subsidy-lead {
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
  margin: 0 0 48px;
  line-height: 1.7;
  color: var(--ink-1);
}
.subsidy-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 24px;
  text-align: left;
  color: var(--ink-1);
  letter-spacing: 0.04em;
}
.subsidy-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  margin-top: 16px;
  overflow: hidden;
}
.subsidy-table thead th {
  background: var(--teal);
  color: #fff;
  font-weight: 500;
  text-align: left;
  padding: 14px 18px;
}
.subsidy-table tbody th,
.subsidy-table tbody td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
}
.subsidy-table .subsidy-row-label { color: var(--teal); font-weight: 500; }

.subsidy-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
  color: var(--ink-1);
}
.subsidy-bullets li { margin-bottom: 12px; }
.subsidy-bullets li::before { content: "・"; color: var(--teal); margin-right: 4px; }
.subsidy-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .subsidy-lead { font-size: 17px; }
  .subsidy-sub { font-size: 18px; text-align: center; }
  .subsidy-bullets { font-size: 18px; }
  .subsidy-table { font-size: 13px; }
  .subsidy-table thead th, .subsidy-table tbody th, .subsidy-table tbody td { padding: 12px 10px; }
}

/* ────────────────────────────────────────────────────────────
   会社概要 (about)
   ──────────────────────────────────────────────────────────── */

.about-lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
  text-align: center;
  margin: 0 auto 56px;
  color: var(--ink-1);
  max-width: 720px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}
.info-table th {
  width: 200px;
  color: var(--teal);
  font-weight: 500;
  font-family: var(--inter);
  font-size: 13px;
  letter-spacing: 0.08em;
}
@media (max-width: 720px) {
  .about-lead { font-size: 15px; }
  .info-table th, .info-table td { display: block; width: 100%; padding: 8px 0; border-bottom: none; }
  .info-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .info-table th { padding-bottom: 4px; }
}

/* ────────────────────────────────────────────────────────────
   お知らせ (teaser + list)
   ──────────────────────────────────────────────────────────── */

.section-news-teaser .section-title { margin-bottom: 48px; }
.news-teaser { max-width: 720px; margin: 0 auto; }
.news-card { display: block; color: var(--ink-1); }
.news-image {
  aspect-ratio: 16 / 9;
  background: #1a2640;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
}
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink-1);
  letter-spacing: 0.03em;
}
.news-date {
  font-family: var(--inter);
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}
.news-item-image {
  aspect-ratio: 16 / 10;
  background: #1a2640;
  overflow: hidden;
  border-radius: 4px;
}
.news-item-image img { width: 100%; height: 100%; object-fit: cover; }
.news-item-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--ink-1);
}
.news-item-date {
  font-family: var(--inter);
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.news-item-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0;
}
@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; gap: 16px; }
  .news-item-title { font-size: 20px; }
}

/* ────────────────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 36px 28px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-1);
  position: relative;
  text-wrap: pretty;
  word-break: auto-phrase;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 28px;
  font-size: 26px;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-q-mark {
  font-family: var(--inter);
  color: var(--teal);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 36px 28px 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
}
.faq-a-mark {
  font-family: var(--inter);
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.faq-a p { margin: 0; }
@media (max-width: 720px) {
  .faq-q { font-size: 16px; gap: 14px; padding: 22px 32px 22px 0; }
  .faq-q::after { top: 22px; font-size: 22px; }
  .faq-a { font-size: 15px; gap: 14px; padding: 0 32px 22px 0; }
}

/* ────────────────────────────────────────────────────────────
   フォーム — シンプル、teal ボタン
   ──────────────────────────────────────────────────────────── */

.section-contact { background: var(--bg-1); padding-top: 96px; }
.section-contact .section-title { margin-bottom: 56px; }

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-1);
}
.req { color: var(--teal); margin-left: 2px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.25);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-1);
  transition: border-color 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-3); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.7; }

.form-submit {
  align-self: flex-start;
  background: rgba(245, 240, 232, 0.10);
  color: var(--ink-1);
  border: none;
  padding: 16px 56px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
  margin-top: 12px;
}
.form-submit:hover { background: var(--teal); color: #fff; }

/* ────────────────────────────────────────────────────────────
   フッター
   ──────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-2);
  padding: 64px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col {}
.footer-brand .footer-logo {
  width: 130px;
  height: auto;
  margin-bottom: 16px;
}
.footer-tagline {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: 0.04em;
}
.footer-heading {
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--teal); }
.footer-address {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.copyright {
  font-family: var(--inter);
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
  letter-spacing: 0.04em;
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand .footer-logo { margin: 0 auto 16px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-col { text-align: center; }
}

/* ────────────────────────────────────────────────────────────
   スクロール進捗バー (画面上端の細いteal線)
   ──────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 110;
  pointer-events: none;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ヒーロー reveal アニメーション — 要望により無効化 */
.hero-title .hero-line,
.hero-lede,
.page-hero-title {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

/* ────────────────────────────────────────────────────────────
   代表挨拶 (about)
   ──────────────────────────────────────────────────────────── */

.section-greeting {
  background: var(--bg-1);
  padding-top: 0;
}
.greeting-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.greeting-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1B2742 0%, #131D32 100%);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.greeting-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.greeting-photo-placeholder {
  font-family: var(--inter);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.greeting-text { font-family: var(--sans); }
.greeting-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.6;
  margin: 0 0 28px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
}
.greeting-body {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-1);
  margin: 0 0 16px;
}
.greeting-signature {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}
.greeting-role {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin: 0 0 6px;
  font-family: var(--inter);
  font-weight: 500;
}
.greeting-name {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
  color: var(--ink-1);
  letter-spacing: 0.05em;
}
@media (max-width: 720px) {
  .greeting-grid { grid-template-columns: 1fr; gap: 32px; max-width: 480px; }
  .greeting-photo { max-width: 280px; margin: 0 auto; }
  .greeting-headline { font-size: 22px; }
}

/* ────────────────────────────────────────────────────────────
   スクロールフェードイン (controlled by IntersectionObserver script)
   reduced motion を尊重
   ──────────────────────────────────────────────────────────── */
/* スクロール時の浮き上がりアニメーションは無効化（要望により） */
.fade-in,
.fade-in.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ────────────────────────────────────────────────────────────
   ヒーロースクロールインジケータ
   ──────────────────────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: rgba(245, 240, 232, 0.18);
  overflow: hidden;
  z-index: 2;
}
.scroll-indicator-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: linear-gradient(to bottom, transparent 0%, var(--teal) 50%, transparent 100%);
  opacity: 0.6;
}
@media (max-width: 720px) {
  .scroll-indicator { bottom: 20px; height: 40px; }
}

/* picture 要素のデフォルトレイアウト */
picture { display: contents; }
.service-image picture img, .course-image picture img,
.news-image picture img, .news-item-image picture img,
.greeting-photo picture img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.news-empty {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-2);
  text-align: center;
  padding: 64px 0;
}

/* ────────────────────────────────────────────────────────────
   スキップリンク (a11y)
   ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--teal);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
  color: #fff;
}

/* フォーカスリング統一 */
*:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.cta-pill:focus-visible,
.form-submit:focus-visible,
.nav-link:focus-visible,
.floating-cta:focus-visible {
  outline-offset: 4px;
}

/* main にtabindex=-1 を持たせたときのフォーカスリングは消す */
main:focus { outline: none; }

/* ────────────────────────────────────────────────────────────
   パンくずリスト
   ──────────────────────────────────────────────────────────── */
.breadcrumbs {
  background: var(--bg-2);
  padding: 16px 0 14px;
  padding-top: calc(var(--header-h) + 16px);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs.no-header-pad { padding-top: 16px; }
.crumb-list {
  list-style: none;
  margin: 0;
  padding: 0 32px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
}
.crumb { display: inline-flex; align-items: center; gap: 8px; }
.crumb a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.crumb a:hover { color: var(--teal); }
.crumb:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--ink-3);
  opacity: 0.5;
}
.crumb-current {
  color: var(--ink-1);
}
/* page-hero が直後に来る場合は header padding を吸収するので、
   page-hero 自身の padding-top を抑える */
.breadcrumbs + .page-hero,
.breadcrumbs + section.page-hero {
  padding-top: 40px;
}
.breadcrumbs + .page-hero-photo {
  padding-top: 60px;
}
@media (max-width: 720px) {
  .crumb-list { padding: 0 20px; font-size: 12px; }
}

/* ────────────────────────────────────────────────────────────
   Back to Top ボタン
   ──────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-1);
  font-size: 20px;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--inter);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ────────────────────────────────────────────────────────────
   モバイル下部固定 CTA
   ──────────────────────────────────────────────────────────── */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  display: none; /* デスクトップでは非表示 */
}
.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-cta:hover { background: var(--teal-2); color: #fff; }
@media (max-width: 720px) {
  .floating-cta { display: inline-block; }
  .back-to-top { right: 16px; bottom: 80px; }  /* CTA と被らないよう上にずらす */
  /* お問い合わせページではフォームと被るので非表示 */
  body.page-contact .floating-cta { display: none; }
}

/* ────────────────────────────────────────────────────────────
   印刷用スタイル (PDF保存・印刷時)
   ──────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .floating-cta, .back-to-top,
  .scroll-indicator, .breadcrumbs, .nav-toggle, .skip-link {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .hero, .page-hero, .section {
    background: white !important;
    color: black !important;
    padding: 16px 0 !important;
    page-break-inside: avoid;
  }
  .hero-title, .page-hero-title, .section-title,
  .service-title, .course-title, .greeting-headline,
  .greeting-name, .news-item-title {
    color: black !important;
  }
  .hero-lede, .greeting-body, .service-body, .course-body,
  .info-table th, .info-table td {
    color: #333 !important;
  }
  .accent-teal, .usp-num, .greeting-role { color: #1E867C !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  a[href^="#"]::after, a[href^="javascript:"]::after { content: ""; }
  .cta-pill, .cta-band { display: none !important; }
}

/* ────────────────────────────────────────────────────────────
   フォーム送信ステータスメッセージ (mailto: 起動後の案内)
   ──────────────────────────────────────────────────────────── */
.form-status {
  display: none;
  background: rgba(38, 166, 154, 0.10);
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-1);
}
.form-status.is-visible { display: block; }
.form-status strong { color: var(--teal); }

/* ────────────────────────────────────────────────────────────
   Why horiz セクション (home)
   ──────────────────────────────────────────────────────────── */
.section-why { background: var(--bg-1); }
.section-why .section-lede { margin-bottom: 56px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  max-width: 960px;
  margin: 0 auto;
}
.why-cell {
  position: relative;
  padding-left: 0;
  text-align: left;
}
.why-num {
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--teal);
  display: block;
  margin-bottom: 12px;
}
.why-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-1);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 16px;
}
.why-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 1px;
  background: var(--teal);
  opacity: 0.6;
}
.why-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0;
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-title { font-size: 19px; }
}

/* ────────────────────────────────────────────────────────────
   契約系ページ (privacy / terms)
   ──────────────────────────────────────────────────────────── */
.section-legal { background: var(--bg-1); padding-top: 56px; padding-bottom: 80px; }
.legal-lead {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-1);
  margin: 0 0 48px;
}
.legal-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-1);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.section-legal p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.legal-list {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  padding-left: 24px;
  margin: 0 0 24px;
}
.legal-list li { margin-bottom: 6px; }
.legal-meta {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--inter);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.section-legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ────────────────────────────────────────────────────────────
   フッター プライバシーリンク
   ──────────────────────────────────────────────────────────── */
.footer-legal-link {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.footer-legal-link:hover { color: var(--teal); }

/* ────────────────────────────────────────────────────────────
   Contact 直接メールバックアップ
   ──────────────────────────────────────────────────────────── */
.section-contact-channels { padding: 48px 0 16px; background: var(--bg-1); }
.contact-direct {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 2;
  color: var(--ink-2);
  text-align: center;
  margin: 0;
}
.contact-direct-mail {
  font-family: var(--inter);
  font-size: 17px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
}
.contact-direct-mail:hover { color: var(--ink-1); border-color: var(--ink-1); }

/* ────────────────────────────────────────────────────────────
   404
   ──────────────────────────────────────────────────────────── */
.not-found-code {
  font-family: var(--inter);
  font-weight: 600;
  font-size: 96px;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin: 24px 0 16px;
  line-height: 1;
  opacity: 0.85;
}
.page-404 .page-hero-plain { padding-bottom: 56px; }

/* ────────────────────────────────────────────────────────────
   News teaser hover
   ──────────────────────────────────────────────────────────── */
.news-card { transition: transform 0.3s cubic-bezier(.2,.7,.2,1); }
.news-card:hover { /* lift removed per request */ }
.news-card:hover .news-title { color: var(--teal); }
.news-title { transition: color 0.2s ease; }
