/* =========================================================
   株式会社テックリーダーズ — Top Page Styles
   素のHTML+CSS / フレームワーク無し
========================================================= */

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

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #0f1f3a;
  --text-sub: #5a6b85;
  --navy: #0b1f3a;
  --navy-2: #102a4c;
  --navy-3: #13315c;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --line: #06c755;
  --border: #e3e8f0;
  --grad-accent: linear-gradient(90deg, #2563eb, #0ea5e9);
  --grad-navy: linear-gradient(135deg, #0b1f3a, #13315c);
  --grad-cta: linear-gradient(135deg, #2563eb, #0ea5e9);
  --shadow: 0 8px 24px rgba(15, 31, 58, .08);
  --shadow-hover: 0 16px 36px rgba(15, 31, 58, .14);
  --radius-card: 16px;
  --radius-btn: 10px;
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 日本語の自動折り返しを文節（文のまとまり）単位にして、不自然な途中改行を防ぐ */
  word-break: auto-phrase;
  line-break: strict;
}

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

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

/* キーボード操作時のフォーカス可視化（アクセシビリティ） */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 96px;
  scroll-margin-top: 80px;
}

.section.worry,
.section.difference {
  background: var(--bg-alt);
}

/* ----- Section headings ----- */
.section-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .22em;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-weight: 900;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: .01em;
}

.section-lead {
  text-align: center;
  color: var(--text-sub);
  margin-top: 16px;
  font-size: 17px;
}

/* =========================================================
   Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.brand-mark-img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-mark {
  height: 38px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--navy);
}

.brand-text small {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .18em;
  color: var(--text-sub);
}

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

.nav a {
  font-weight: 500;
  font-size: 19px;
  color: var(--text);
  transition: color .2s ease;
}

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

.nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.nav .nav-cta:hover {
  color: #fff;
  background: #1d4ed8;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 4px 8px;
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 19px;
  border-radius: var(--radius-btn);
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .35);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(37, 99, 235, .45);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
}

.btn-line {
  background: var(--line);
  color: #fff;
  box-shadow: 0 8px 22px rgba(6, 199, 85, .35);
}

.btn-outline {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: #f0f6ff;
}

/* =========================================================
   Hero
========================================================= */
.hero {
  background:
    linear-gradient(135deg, rgba(11, 31, 58, .9), rgba(19, 49, 92, .82)),
    url(../img/hero-visual.jpg) center / cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(14, 165, 233, .25), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 110px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .12em;
  color: #7dd3fc;
  margin-bottom: 22px;
}

.hero-title {
  font-weight: 900;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: .01em;
}

.hero-title .accent {
  display: inline-block;
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* =========================================================
   Worry
========================================================= */
.worry-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.worry-card {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.8;
}

.worry-foot {
  text-align: center;
  margin-top: 40px;
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
}

.worry-foot strong {
  font-weight: 900;
  color: var(--accent);
}

/* =========================================================
   Reason / Why now（市場の追い風・信頼の根拠）
========================================================= */
.section.reason {
  background:
    linear-gradient(135deg, rgba(11, 31, 58, .94), rgba(16, 42, 76, .88)),
    url(../img/reason-bg.jpg) center / cover no-repeat;
  color: #fff;
  position: relative;
}

.reason-eyebrow {
  color: var(--accent-2);
}

.reason-title {
  color: #fff;
}

.reason-lead {
  color: rgba(255, 255, 255, .78);
}

.reason-stats {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reason-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-card);
  padding: 34px 26px;
  text-align: center;
}

.reason-stat strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reason-stat strong span {
  font-size: 22px;
  margin-left: 4px;
  -webkit-text-fill-color: #7dd3fc;
}

.reason-stat p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
}

.reason-stat small {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, .5);
}

.reason-foot {
  margin-top: 44px;
  text-align: center;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .92);
}

.reason-foot strong {
  color: #fff;
  font-weight: 700;
}

/* =========================================================
   Service
========================================================= */
.service-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eaf2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-ico svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.8;
}

.service-card h3 {
  line-height: 1.5;
}

.service-foot {
  margin-top: 36px;
  text-align: center;
  font-size: 19px;
  color: var(--text-sub);
}

.service-foot strong {
  color: var(--accent);
  font-weight: 700;
}

.service-foot small {
  display: inline-block;
  margin-left: 4px;
  font-size: 17px;
  color: var(--text-sub);
}

.service-media {
  margin-top: 40px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 380px;
}

.service-media img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================================
   Leader (代表)
========================================================= */
.leader-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* 被写体が左向きなので写真を右に置き、視線を本文へ向ける */
.leader-body {
  grid-column: 1;
  grid-row: 1;
}

.leader-photo {
  grid-column: 2;
  grid-row: 1;
}

.leader-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leader-eyebrow {
  text-align: left;
  margin-bottom: 14px;
}

.leader-title {
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--navy);
}

.leader-role {
  margin-top: 18px;
  font-size: 19px;
  color: var(--text-sub);
}

.leader-role strong {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

.leader-text {
  margin-top: 16px;
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.95;
}

.leader-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.leader-links a {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background .2s ease, border-color .2s ease;
}

.leader-links a:hover {
  background: #eaf2ff;
  border-color: var(--accent);
}

.leader-kana {
  margin-left: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-sub);
}

/* 想いの引用 */
.leader-quote {
  margin: 48px auto 0;
  max-width: 880px;
  position: relative;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--accent);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.85;
  color: var(--navy);
}

/* 経歴年表 */
.leader-career {
  margin-top: 48px;
  max-width: 880px;
  margin-inline: auto;
}

.leader-career-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 8px;
}

.career-list {
  list-style: none;
}

.career-list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
}

.career-year {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--accent);
  white-space: nowrap;
}

.career-text {
  font-size: 19px;
  color: var(--text);
  line-height: 1.7;
}

/* 人となり */
.leader-personal {
  margin-top: 44px;
  max-width: 880px;
  margin-inline: auto;
}

.personal-list {
  margin-top: 4px;
}

.personal-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}

.personal-list dt {
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.personal-list dd {
  font-size: 19px;
  color: var(--text);
  line-height: 1.7;
}

/* =========================================================
   Difference (table)
========================================================= */
.difference .section-lead {
  margin-bottom: 8px;
}

.table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* 行ラベル列を固定幅にし、比較2列を均等に分配 */
.compare thead th:first-child {
  width: 140px;
}

.compare th,
.compare td {
  padding: 16px 18px;
  font-size: 19px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  background: #eef1f6;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.compare thead th.hl {
  background: var(--accent);
  color: #fff;
}

.compare tbody th {
  width: 140px;
  font-weight: 700;
  color: var(--navy);
  background: #f8fafc;
  white-space: nowrap;
}

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

.compare td.hl {
  background: #eaf2ff;
  color: var(--text);
  font-weight: 500;
}

.compare td.hl strong {
  color: var(--accent);
  font-weight: 700;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare-note {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* =========================================================
   Strength
========================================================= */
.strength-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strength-card {
  background: var(--bg-alt);
  border-radius: var(--radius-card);
  padding: 34px 28px;
}

.strength-no {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: rgba(37, 99, 235, .35);
  margin-bottom: 14px;
}

.strength-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.strength-card p {
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.85;
}

/* =========================================================
   Works (実績・事例)
========================================================= */
.works-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.work-flagship {
  background: var(--grad-navy);
  border-color: transparent;
  color: #fff;
}

.work-thumb {
  position: relative;
  margin: -34px -30px 24px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-thumb .work-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(11, 31, 58, .28);
}

.work-badge {
  align-self: flex-start;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 18px;
}

.work-badge.alt {
  background: var(--navy);
}

.work-badge.ai {
  background: var(--accent-2);
}

/* 主役カード（オンクラス・画像入り） */
.work-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
  padding: 40px 44px;
  border-radius: var(--radius-card);
  background: var(--grad-navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.work-feature-media img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .35));
}

.work-feature-body {
  display: flex;
  flex-direction: column;
}

.work-feature-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 14px;
}

.works-grid {
  margin-top: 24px;
}

.work-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 14px;
}

.work-flagship h3 {
  color: #fff;
}

.work-card h3 small {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-sub);
  margin-top: 5px;
}

.work-desc {
  font-size: 19px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.85;
}

.work-stats {
  display: flex;
  gap: 32px;
  margin: 26px 0 20px;
}

.work-stats strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: #fff;
}

.work-stats strong span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin-left: 4px;
}

.work-stats small {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  color: rgba(255, 255, 255, .7);
}

.work-source {
  font-size: 17px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
}

.work-note {
  font-size: 17px;
  color: rgba(255, 255, 255, .7);
  margin-top: auto;
  line-height: 1.7;
}

.work-ba {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-ba p {
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.9;
}

.work-ba b {
  display: inline-block;
  background: #eaf2ff;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 9px;
  margin-right: 8px;
  vertical-align: 2px;
}

.work-ba strong {
  color: var(--accent);
  font-weight: 700;
}

.work-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tags span {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}

/* =========================================================
   Business
========================================================= */
.business-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.business-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.business-thumb {
  margin: -32px -28px 24px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}

.business-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.business-card:hover .business-thumb img {
  transform: scale(1.05);
}

.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.business-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.business-card h3 small {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .16em;
  color: var(--text-sub);
  margin-top: 4px;
}

.business-card p {
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.8;
  flex-grow: 1;
}

.business-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

/* school variant */
.business-card.school {
  background: var(--grad-navy);
  border-color: transparent;
}

.business-card.school h3 {
  color: #fff;
}

.business-card.school h3 small {
  color: #7dd3fc;
}

.business-card.school p {
  color: rgba(255, 255, 255, .8);
}

.business-card.school .business-link {
  color: #7dd3fc;
}

/* =========================================================
   Flow
========================================================= */
.flow-body {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.flow-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.flow-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-steps {
  list-style: none;
}

.flow-steps li {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
}

.flow-steps li:last-child {
  padding-bottom: 0;
}

/* connecting line */
.flow-steps li::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.flow-steps li:last-child::before {
  display: none;
}

.flow-steps li > span {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-steps li > div {
  padding-top: 4px;
}

.flow-steps h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.flow-steps p {
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* =========================================================
   FAQ
========================================================= */
.faq {
  background: var(--bg-alt);
}

.faq-list {
  margin-top: 44px;
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 24px 22px;
}

.faq-body p {
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.9;
}

/* =========================================================
   Mission
========================================================= */
.mission {
  background:
    linear-gradient(135deg, rgba(11, 31, 58, .92), rgba(19, 49, 92, .86)),
    url(../img/mission-bg.jpg) center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.mission-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .22em;
  color: #7dd3fc;
  margin-bottom: 20px;
}

.mission-text {
  font-weight: 900;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.4;
}

.mission-sub {
  margin-top: 26px;
  font-size: 19px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.9;
}

/* =========================================================
   Contact / CTA
========================================================= */
.contact {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
  color: #fff;
  text-align: center;
}

.contact-title {
  font-weight: 900;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.4;
}

.contact-lead {
  margin-top: 20px;
  font-size: 17px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.9;
}

.contact-chips {
  list-style: none;
  margin: 28px auto 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-chips li {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 18px;
  color: #fff;
}

.contact-chips li::before {
  content: "“";
  margin-right: 2px;
  opacity: .7;
}

.contact-chips li::after {
  content: "”";
  margin-left: 2px;
  opacity: .7;
}

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

/* 問い合わせフォーム */
.contact-form {
  margin: 32px auto 0;
  max-width: 640px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hover);
  padding: 36px;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-grid .form-row {
  margin-bottom: 0;
}

.form-row label {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.req {
  display: inline-block;
  margin-left: 6px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  vertical-align: 1px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 19px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.contact-form textarea {
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 4px;
  font-size: 17px;
  color: var(--text-sub);
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-consent a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
}

.contact-submit {
  width: 100%;
  margin-top: 20px;
  background: var(--navy);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 8px 22px rgba(11, 31, 58, .25);
}

.contact-submit:hover {
  background: var(--navy-3);
  box-shadow: 0 14px 30px rgba(11, 31, 58, .35);
}

.form-done {
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  color: #0a7d3c;
}

.form-error {
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  color: #c0392b;
}

/* ハニーポット（人には見えない位置に隠す。display:none はbotに気づかれるため使わない） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-or {
  margin-top: 24px;
  font-size: 18px;
  color: rgba(255, 255, 255, .92);
}

.contact-or a {
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
}

.contact-promises {
  list-style: none;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.contact-promises li {
  position: relative;
  padding-left: 26px;
  font-size: 19px;
  color: rgba(255, 255, 255, .92);
}

.contact-promises li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #fff;
}

.contact-promises strong {
  font-weight: 700;
  color: #fff;
}

.contact-note {
  margin-top: 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, .95);
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding-block: 48px;
}

.footer-company {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-company dl {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.footer-company dl > div {
  display: flex;
  gap: 16px;
  font-size: 17px;
  line-height: 1.7;
}

.footer-company dt {
  flex-shrink: 0;
  width: 96px;
  white-space: nowrap;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
}

.footer-company dd {
  color: rgba(255, 255, 255, .85);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  background: rgba(255, 255, 255, .12);
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  line-height: 1.3;
}

.footer-brand small {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  font-size: 18px;
  color: rgba(255, 255, 255, .7);
  transition: color .2s ease;
}

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

.copyright {
  font-size: 17px;
  color: rgba(255, 255, 255, .5);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* =========================================================
   Legal pages (privacy 等)
========================================================= */
.nav--simple {
  position: static;
  display: flex;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.nav--simple a {
  font-weight: 700;
  color: var(--accent);
  border: none;
  padding: 0;
}

.legal {
  padding-block: 72px;
}

.legal-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .22em;
  color: var(--accent);
  text-transform: uppercase;
}

.legal-title {
  font-weight: 900;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--navy);
  margin: 8px 0 20px;
}

.legal-lead {
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.95;
  margin-bottom: 12px;
}

.legal-block {
  margin-top: 36px;
}

.legal-block h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.legal-block p {
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.95;
}

.legal-block ul {
  margin: 12px 0 0 1.2em;
}

.legal-block li {
  font-size: 19px;
  color: var(--text-sub);
  line-height: 1.9;
}

.legal-block a {
  color: var(--accent);
  font-weight: 500;
}

.legal-date {
  margin-top: 40px;
  font-size: 17px;
  color: var(--text-sub);
  text-align: right;
}

/* =========================================================
   Responsive
========================================================= */

/* sp-br: PCで非表示、SPで表示 */
.sp-br {
  display: none;
}

@media (max-width: 900px) {
  .section {
    padding-block: 56px;
  }

  /* nav -> toggle */
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav .nav-cta {
    text-align: center;
    margin-top: 10px;
    padding: 12px 20px;
  }

  /* grids -> 2 cols */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .worry-grid,
  .strength-grid,
  .business-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 24px;
  }

  .leader-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* スマホは1カラム・DOM順（写真→本文）で写真を上に。PCの左右配置を解除 */
  .leader-body,
  .leader-photo {
    grid-column: auto;
    grid-row: auto;
  }

  .flow-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow-media {
    max-width: 560px;
    margin-inline: auto;
  }

  .leader-photo {
    order: -1;
    max-width: 260px;
    margin-inline: auto;
  }

  .hero-inner {
    padding-block: 72px;
  }
}

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

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

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

  .form-grid .form-row {
    margin-bottom: 18px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .sp-br {
    display: inline;
  }

  .section-lead br {
    display: none;
  }

  .work-stats {
    gap: 24px;
  }

  .work-stats strong {
    font-size: 34px;
  }

  .work-stats strong span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .reason-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reason-stat {
    padding: 26px 22px;
  }

  .reason-stat strong {
    font-size: 48px;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .copyright {
    text-align: left;
  }
}
