/* =========================================
   TKM Catalyst - Base Styles
   Color Palette: Navy / Gray / White / Red
   ========================================= */

:root {
  --navy: #0a1e3f;
  --navy-dark: #05132a;
  --navy-light: #1a3260;
  --gray-100: #f4f5f7;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --white: #ffffff;
  --red: #d92626;
  --red-dark: #b31d1d;
  --shadow-sm: 0 1px 3px rgba(10, 30, 63, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 30, 63, 0.1);
  --shadow-lg: 0 12px 32px rgba(10, 30, 63, 0.14);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container-narrow {
  max-width: 720px;
}

/* =========================================
   Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
}

.logo-image {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--red);
  flex-shrink: 0;
}

.logo-mark {
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--red);
  line-height: 1;
}

.logo-text {
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* =========================================
   SVG Icon base
   ========================================= */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.global-nav ul {
  display: flex;
  gap: 40px;
}

.global-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-600);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}

.global-nav a:hover,
.global-nav a.active {
  color: var(--navy);
}

.global-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition);
}

/* =========================================
   Vision Hero
   ========================================= */
.vision {
  position: relative;
  padding: 120px 0 140px;
  /* glasswall画像を全幅に配置、左は濃いネイビーで文字視認性を確保、右はやや透けて画像を見せる */
  background:
    linear-gradient(90deg,
      rgba(5, 19, 42, 0.97) 0%,
      rgba(10, 30, 63, 0.92) 30%,
      rgba(10, 30, 63, 0.72) 60%,
      rgba(10, 30, 63, 0.55) 100%
    ),
    url('../glasswall_diagram_optimized.webp') center / cover;
  color: var(--white);
  overflow: hidden;
}

.vision::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 38, 38, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* 旧: 右半分の画像枠。今は Vision 全体に画像を配置しているため非表示 */
.vision-photo {
  display: none;
}

.vision::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.vision > .container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
}

.vision-lead,
.vision-title,
.vision-body,
.vision-actions {
  max-width: 720px;
}


.vision-lead {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}

.vision-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  position: relative;
}

.vision-title .accent {
  position: relative;
  display: inline-block;
}

.vision-title .accent::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: expand 1s 0.5s forwards ease-out;
}

@keyframes expand {
  to {
    transform: scaleX(1);
  }
}

.vision-body {
  font-size: 17px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  position: relative;
}

.vision-body strong {
  color: var(--white);
  font-weight: 600;
}

.vision-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
  position: relative;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

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

#services {
  scroll-margin-top: 72px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

.header-cta {
  padding: 10px 24px;
  font-size: 14px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   Section common
   ========================================= */
.section-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.sub-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
}

/* =========================================
   Services / Tabs
   ========================================= */
.services {
  padding: 120px 0;
  background: var(--gray-100);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--gray-200);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-400);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover {
  color: var(--navy);
}

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* Split tabs: 画面全体を左右均等に２分割 */
.tabs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.tabs-split .tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  margin: 0;
  border-bottom: none;
  background: var(--white);
  color: var(--gray-400);
  border-bottom: 4px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tabs-split .tab-btn + .tab-btn {
  border-left: 1px solid var(--gray-200);
}

.tabs-split .tab-btn:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.tabs-split .tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-bottom-color: var(--red);
}

.tab-btn-label {
  font-size: 12px;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}

.tabs-split .tab-btn.active .tab-btn-label {
  color: var(--red);
}

.tab-btn-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-desc {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-md);
}

.service-head {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 24px 32px;
  text-align: left;
  gap: 24px;
  transition: background var(--transition);
}

.service-head:hover {
  background: var(--gray-100);
}

.service-role {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 270px;
  height: 56px;
  padding: 0 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  flex-shrink: 0;
}

.service-role .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.role-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
  white-space: nowrap;
}

.role-abbr {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.role-full {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Numbered variant for 事業会社向け tab */
.service-role--num {
  width: auto;
  min-width: 56px;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 16px;
}

.service-name {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.service-caret {
  font-size: 22px;
  color: var(--red);
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.service-item.open .service-caret {
  transform: rotate(45deg);
}

.service-detail {
  display: none;
  padding: 8px 32px 40px;
  border-top: 1px solid var(--gray-200);
}

.service-item.open .service-detail {
  display: block;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flow layout: 上から下へ流れる */
.flow-detail {
  display: none;
}

.service-item.open .flow-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
}

.flow-step {
  position: relative;
  padding: 24px 24px 24px 88px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--navy-light);
  opacity: 0;
  transform: translateY(20px);
  animation: flowIn 0.5s forwards ease-out;
}

.service-item.open .flow-step:nth-child(1) { animation-delay: 0.05s; }
.service-item.open .flow-step:nth-child(2) { animation-delay: 0.15s; }
.service-item.open .flow-step:nth-child(3) { animation-delay: 0.25s; }
.service-item.open .flow-step:nth-child(4) { animation-delay: 0.35s; }
.service-item.open .flow-step:nth-child(5) { animation-delay: 0.45s; }

@keyframes flowIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow-num {
  position: absolute;
  left: 24px;
  top: 24px;
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}

.flow-step h4 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.flow-step p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Grid layout: 並列 */
.grid-detail {
  display: none;
}

.service-item.open .grid-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-top: 32px;
}

.grid-card {
  padding: 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-top: 3px solid var(--navy-light);
  opacity: 0;
  animation: cardIn 0.5s forwards ease-out;
}

.service-item.open .grid-card:nth-child(1) { animation-delay: 0.05s; }
.service-item.open .grid-card:nth-child(2) { animation-delay: 0.1s; }
.service-item.open .grid-card:nth-child(3) { animation-delay: 0.15s; }
.service-item.open .grid-card:nth-child(4) { animation-delay: 0.2s; }
.service-item.open .grid-card:nth-child(5) { animation-delay: 0.25s; }
.service-item.open .grid-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardIn {
  to {
    opacity: 1;
  }
}

.grid-card h4 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.grid-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(217, 38, 38, 0.08);
  color: var(--red);
  margin-bottom: 16px;
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

/* Tech table layout: 技術例と想定業界の表 */
.tech-detail {
  display: none;
}

.service-item.open .tech-detail {
  display: block;
  padding-top: 32px;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tech-table th,
.tech-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
  line-height: 1.7;
}

.tech-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.tech-table tbody th {
  width: 220px;
  background: var(--gray-100);
  color: var(--navy);
  font-weight: 600;
}

.tech-table tbody td {
  color: var(--gray-800);
}

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

@media (max-width: 640px) {
  .tech-table th,
  .tech-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
  .tech-table tbody th {
    width: 40%;
  }
}

/* =========================================
   Contact CTA
   ========================================= */
/* 問い合わせCTA：whiteboard画像を背景に、ネイビーオーバーレイで色を統一 */
.contact-cta {
  padding: 100px 0;
  background:
    linear-gradient(135deg,
      rgba(10, 30, 63, 0.9) 0%,
      rgba(5, 19, 42, 0.92) 100%
    ),
    url('../whiteboard_hand_optimized.webp') center / cover;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--red);
}

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

/* Companyページ下部のCTAもwhiteboard画像で統一 */
body.page-company .contact-cta {
  background:
    linear-gradient(135deg,
      rgba(10, 30, 63, 0.9) 0%,
      rgba(5, 19, 42, 0.92) 100%
    ),
    url('../whiteboard_hand_optimized.webp') center / cover;
}

.contact-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 18px 56px;
  font-size: 16px;
}

/* =========================================
   Page Hero (Company/Contact)
   ========================================= */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

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

/* Companyページヒーロー：glasswall画像を右側にグラデーションで配置、ネイビーオーバーレイで色を統一 */
body.page-company .page-hero {
  background:
    linear-gradient(90deg,
      var(--navy-dark) 0%,
      rgba(10, 30, 63, 0.92) 40%,
      rgba(10, 30, 63, 0.7) 75%,
      rgba(10, 30, 63, 0.65) 100%
    ),
    url('../glasswall_diagram_optimized.webp') right center / cover;
}

/* Contactページヒーロー：whiteboard画像を背景に配置、ネイビーオーバーレイで色を統一 */
body.page-contact .page-hero {
  background:
    linear-gradient(135deg,
      rgba(10, 30, 63, 0.88) 0%,
      rgba(10, 30, 63, 0.85) 100%
    ),
    url('../whiteboard_hand_optimized.webp') center / cover;
}

.page-hero .section-label {
  color: var(--red);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.page-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  max-width: 720px;
}

/* =========================================
   Company Page
   ========================================= */
.company-info {
  padding: 100px 0 60px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

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

.info-table th {
  width: 180px;
  background: var(--gray-100);
  color: var(--navy);
  font-weight: 600;
}

.info-table td {
  color: var(--gray-800);
  line-height: 1.8;
}

.members {
  padding: 60px 0 100px;
}

.member-card {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.member-role {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
}

.member-name {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 700;
}

.member-en {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 400;
  margin-left: 12px;
  letter-spacing: 0.05em;
}

.member-summary {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 2;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.career-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.career-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.career-list li {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--gray-800);
  line-height: 1.8;
}

.career-year {
  min-width: 60px;
  font-weight: 700;
  color: var(--red);
  font-family: "SF Mono", Menlo, monospace;
}

/* =========================================
   Contact form
   ========================================= */
.contact-form-section {
  padding: 100px 0;
  background: var(--gray-100);
}

.contact-form {
  background: var(--white);
  padding: 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hidden-field {
  display: none;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 30, 63, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500 !important;
  color: var(--gray-800) !important;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.form-actions {
  text-align: center;
  margin-top: 40px;
}

/* =========================================
   Thanks page
   ========================================= */
.thanks {
  padding: 160px 0;
  text-align: center;
}

.thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
  color: var(--red);
}

.thanks-icon svg {
  width: 100%;
  height: 100%;
}

.thanks h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin-bottom: 24px;
  font-weight: 700;
}

.thanks p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 2;
  margin-bottom: 40px;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
}

.footer-logo .logo-mark {
  font-size: 22px;
  color: var(--red);
}

.footer-logo .logo-text {
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
  .header-right {
    display: contents;
  }

  .global-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }

  .global-nav.open {
    transform: translateY(0);
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
  }

  .global-nav li {
    border-bottom: 1px solid var(--gray-200);
  }

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

  .global-nav a {
    display: block;
    padding: 16px 0;
  }

  .global-nav a.active::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .vision {
    padding: 80px 0 100px;
    /* モバイルは均一に濃いオーバーレイでテキスト視認性を優先 */
    background:
      linear-gradient(180deg,
        rgba(5, 19, 42, 0.94) 0%,
        rgba(10, 30, 63, 0.9) 100%
      ),
      url('../glasswall_diagram_optimized.webp') center / cover;
  }

  .vision-lead,
  .vision-title,
  .vision-body,
  .vision-actions {
    max-width: none;
  }

  .services {
    padding: 80px 0;
  }

  .impact-strip {
    grid-template-columns: 1fr;
  }

  .impact-card {
    aspect-ratio: 16 / 9;
  }

  .tab-btn {
    padding: 14px 20px;
    font-size: 13px;
    flex: 1;
  }

  .tabs-split .tab-btn {
    padding: 20px 12px;
    gap: 6px;
  }

  .tab-btn-label {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .tab-btn-title {
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .logo-image {
    height: 36px;
  }

  .logo-mark {
    font-size: 20px;
  }

  .logo-text {
    font-size: 16px;
  }

  .service-head {
    padding: 20px;
    gap: 12px;
  }

  .service-role {
    width: auto;
    min-width: 78px;
    height: 40px;
    padding: 0 12px;
    gap: 8px;
  }

  .service-role .icon {
    width: 16px;
    height: 16px;
  }

  .role-abbr {
    font-size: 13px;
  }

  .role-full {
    display: none;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .vision-decoration .shape-1 {
    width: 140px;
    height: 140px;
  }

  .vision-decoration .shape-2 {
    width: 90px;
    height: 90px;
  }

  .vision-decoration .shape-3 {
    display: none;
  }

  .service-name {
    font-size: 15px;
  }

  .service-detail {
    padding: 8px 20px 32px;
  }

  .flow-step {
    padding: 20px 20px 20px 20px;
    padding-top: 60px;
  }

  .flow-num {
    top: 16px;
    left: 20px;
    font-size: 20px;
  }

  .contact-cta {
    padding: 80px 0;
  }

  .member-card {
    padding: 24px;
  }

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

  .info-table th {
    padding-bottom: 4px;
    background: transparent;
    border-bottom: none;
  }

  .info-table td {
    padding-top: 4px;
  }

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

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}
