/* ============================================
   Chinasoft Tokyo - Global Stylesheet
   Design: Modern Professional IT Consulting
   Primary: Deep Navy Blue | Accent: Orange
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0B1F3F;
  --primary-light: #132D5E;
  --primary-dark: #071529;
  --accent: #0B1F3F;
  --accent-hover: #0B1F3F;
  --accent-light: #0B1F3F;
  --text-dark: #1A1A2E;
  --text-body: #4A4A5A;
  --text-light: #6B7280;
  --text-white: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-light: #F7F8FC;
  --bg-gray: #EEF0F6;
  --border-light: #E2E5EE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

/* --- Typography --- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-title.white {
  color: var(--text-white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 1000px;
  margin: 0 auto 48px;
}

.section-subtitle.white {
  color: rgba(255,255,255,0.8);
}

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

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

.section {
  padding: 80px 0;
}

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

.section.bg-dark {
  background: var(--primary);
}

.section.bg-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 32px;
}

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

/* 社内環境ページ：教育環境セクション内の委員会説明カードとの間隔 */
.environment-education-committee-wrap {
  margin-top: 32px;
}

/* 社内環境ページ：社会貢献カード内で3枚の写真を横並びに表示 */
.card-contribution-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-contribution-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.card.card-contribution {
  padding: 0;
  overflow: hidden;
}
.card.card-contribution .card-body {
  padding: 24px 28px;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

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

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand .logo-img {
  height: 40px;
}

/* 1.2.5: 旧 logo-icon 已替换为 logo 图片
.logo-icon { ... } */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

/* 0.4.17: ナビ現在地は下線のみで明示し、背景色は変更しない。 */
.nav a.active:not(.nav-cta),
.nav .dropdown-toggle.active {
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* 0.4.17: 初回 active 判定完了後にのみ遷移演出を有効化し、ロード時のちらつきを抑制する。 */
html.nav-ready .nav a {
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.nav .dropdown {
  position: relative;
}

.nav .dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav .dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: var(--transition);
}

.nav .dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}

.nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.nav .dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

/* 0.4.17: サブメニュー内の現在地も背景を使わず下線のみで統一する。 */
.nav .dropdown-menu a.active {
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--primary);
}

.nav-cta {
  margin-left: 8px;
}

.nav a.nav-cta {
  color: var(--text-white);
}

/* お問い合わせボタン：ホバー時は文字を深藍色に */
.nav a.nav-cta:hover {
  color: var(--primary);
}

/* お問い合わせボタン：クリック時・現在ページ（entry）では白底・深藍文字 */
.nav a.nav-cta:active,
.nav a.nav-cta.active {
  background: var(--bg-white);
  color: var(--primary);
  border-color: var(--primary);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--bg-white);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 31, 63, 0.2);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: var(--text-white);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: transparent;
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(11,31,63,0.1), rgba(11,31,63,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card-title-accent {
  color: var(--primary);
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* カード内リスト（例：マイクロソフト系システム開発の要点） */
.card-list {
  margin: 12px 0 0;
  padding-left: 1.2em;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  list-style: disc;
}
.card-list li {
  margin-bottom: 0.35em;
}
.card-list li:last-child {
  margin-bottom: 0;
}

/* ソリューションページ：番号付きカード（BPM・マイクロソフト系） */
.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}
.solutions-card {
  padding: 28px 32px;
}
.solutions-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.solutions-card-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

/* ソリューションページ：BPM 2カードのグリッド幅を統一 */
.solutions-grid-bpm {
  max-width: 960px;
  margin: 0 auto;
}

/* プロダクトカード：缩略图（YuiChat 等） */
/* 缩略图容器：悬停时裁剪放大效果 */
.product-card-thumb-link {
  display: block;
  line-height: 0;
  overflow: hidden;
  background: var(--bg-light);
}
.product-card-thumb {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  object-position: center top;
  vertical-align: top;
  transition: transform 0.35s ease;
}
/* 卡片悬停时缩略图轻微放大 */
.product-card:hover .product-card-thumb {
  transform: scale(1.06);
}

/* LiSEN 等：展示图を表示領域いっぱいに表示（容器で高さを確保し object-fit: cover で鋪满） */
.product-card-thumb-area {
  display: block;
  line-height: 0;
  overflow: hidden;
}
.product-card-thumb-area--full {
  position: relative;
  width: 100%;
  min-height: 360px;
  background: var(--bg-light);
}
.product-card-thumb-area--full .product-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

/* プロダクトカード内ロゴ（YuiChat 等）：AI バッジ・タイトル替わり */
.product-card-logo {
  display: block;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.card-link:hover {
  gap: 10px;
  color: var(--accent-hover);
}

.card-link::after {
  content: '→';
  transition: var(--transition);
}

/* Image Card */
.card-img {
  overflow: hidden;
  padding: 0;
}

.card-img .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-img .card-body {
  padding: 24px 28px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  /* 1.2.7: 深藍背景＋元画像 SVG に戻す */
  background-color: var(--primary);
  background-image: url('../images/image_4f8a6ba3-a3c2-478c-9257-b230f9984854.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(11,31,63,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #FF7A45, #E85D26);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 480px;
}

/* Hero CTA ボタン群：折り返し・多端末対応 */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-orb {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(99,147,255,0.4), rgba(11,31,63,0.15) 60%, transparent 80%);
  position: relative;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-visual-orb::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1), transparent 70%);
  border: 1px solid rgba(255,255,255,0.1);
  animation: rotate-slow 20s linear infinite;
}

.hero-visual-orb::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  right: 20%;
  bottom: 20%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.08);
  animation: rotate-slow 15s linear infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 60px rgba(99,147,255,0.2), 0 0 120px rgba(11,31,63,0.05); }
  50% { box-shadow: 0 0 80px rgba(99,147,255,0.35), 0 0 160px rgba(11,31,63,0.1); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- 主要取引先 logo 墙：3 排并列向右滑动（无缝循环）--- */
.partners-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.partners-section .section-label {
  display: block;
  margin-bottom: 8px;
}

.partners-section .section-title {
  margin-bottom: 32px;
}

.partners-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 单行：溢出隐藏，实现横向滚动视窗 */
.partners-row {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* 轨道：容纳两份相同内容，宽度为内容的两倍，用于无缝循环 */
.partners-track {
  display: flex;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* 动画时长延长以减慢滑动速度（0.2.17：45/52/48s → 72/84/76s） */
.partners-track-1 { animation-name: partners-slide-right; animation-duration: 72s; }
.partners-track-2 { animation-name: partners-slide-right; animation-duration: 84s; }
.partners-track-3 { animation-name: partners-slide-right; animation-duration: 76s; }

/* 向右滑动：从 0 移动到 -50%，与重复内容配合形成无缝循环 */
@keyframes partners-slide-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-track-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  padding: 0 12px;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  white-space: nowrap;
  transition: var(--transition);
}

.partner-logo:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(11,31,63,0.06) 0%, transparent 70%);
}

/* デザインシステム: page-hero 内の section-label は白で表示 */
.page-hero .section-label {
  color: rgba(255,255,255,0.9);
  position: relative;
}

.page-hero h1 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  position: relative;
}

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

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

.breadcrumb .sep {
  font-size: 0.7rem;
}

.breadcrumb .current {
  color: var(--accent-light);
}

/* --- Why Section (3 columns) --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.why-item {
  padding: 20px;
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80%;
  left: -20%;
  width: 60%;
  height: 260%;
  background: radial-gradient(ellipse, rgba(11,31,63,0.08), transparent 70%);
}

.cta-section h2 {
  font-size: 2rem;
  color: var(--text-white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* --- 実績ページ（achievement.html）--- */

/* 業界ナビ：ページ内アンカーリンクをフレックスで横並び表示 */
.achievement-industry-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* 業界リンク：バッジ風の角丸ボタン */
.achievement-industry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.achievement-industry-link:hover {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.achievement-industry-link i {
  font-size: 0.85rem;
}

/* セクションヘッダー：アイコン＋タイトル横並び */
.achievement-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

/* 業界アイコン：丸枠で深藍背景 */
.achievement-section-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.achievement-section-header .section-title {
  margin-bottom: 0;
}

/* 実績カード一覧：縦に並べるレイアウト */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* 実績カード本体 */
.achievement-card {
  padding: 28px 32px;
}

/* カードタイトル：案件名称用 */
.achievement-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* フィーチャーカード：Microsoft 365 等の目立つ案件用（左アクセント線） */
.achievement-card--featured {
  border-left: 4px solid var(--primary);
}

/* バッジ：カード上部の技術タグ */
.achievement-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(11, 31, 63, 0.08);
  border-radius: 50px;
  margin-bottom: 14px;
}

/* カード内セクション区切り */
.achievement-card-section {
  margin-top: 18px;
}

.achievement-card-section:first-of-type {
  margin-top: 4px;
}

/* サブタイトル：「案件内容」「弊社の価値」「解決成果」等 */
.achievement-card-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

/* ハイライト表示：数値成果やキー情報の強調 */
.achievement-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 18px;
  background: rgba(11, 31, 63, 0.05);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-dark);
}

.achievement-highlight i {
  color: var(--primary);
  font-size: 1rem;
}

.achievement-highlight strong {
  color: var(--primary);
}

/* 成果リスト：アイコン付きの解決成果表示 */
.achievement-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.achievement-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

.achievement-result-item i {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.achievement-result-item strong {
  color: var(--primary);
  font-weight: 700;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

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

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

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 0.4.15: ブランド説明文の直下に認証/加盟ロゴを横並びで配置し、画面幅に応じて折り返す。 */
.footer-cert-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 0.4.15: 元画像の縦横比を保持しつつ、フッター内で高さを揃えて視覚ノイズを抑える。 */
.footer-cert-logos img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 120px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-white);
}

.footer h4 {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.footer-links a:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-item i {
  color: #ffffff;
  width: 16px;
  text-align: center;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,0.5);
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.footer-bottom a:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

/* 0.4.13: フッターリンクのキーボード操作時にもホバー同等の視認性を提供する。 */
.footer-links a:focus-visible,
.footer-bottom a:focus-visible {
  color: #ffffff;
  background-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}

/* 0.4.11: フッター下段のポリシーリンク群を横並びで表示し、右寄せで統一する。 */
.footer-policy-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Table Styles --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th {
  background: var(--primary);
  color: var(--text-white);
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-light);
}

.data-table .label {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  width: 180px;
  background: var(--bg-light);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--accent);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11,31,63,0.1);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* チェックボックス: デザインシステム（primary・border-light・radius-sm） */
.form-group-checkbox {
  margin-bottom: 28px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  accent-color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,31,63,0.15);
}

.form-check-input:checked {
  background-color: var(--primary);
}

.form-check-label {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  cursor: pointer;
}

.contact-privacy-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-privacy-link:hover {
  opacity: 0.85;
}

.contact-privacy-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- お問い合わせページ: 電話カード・フォーム --- */
.contact-phone-card {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.contact-phone-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.contact-phone-link:hover {
  color: var(--primary);
}

.contact-phone-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.contact-phone-icon {
  font-size: 2rem;
  color: var(--primary);
}

.contact-phone-number {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-phone-note {
  font-size: 0.88rem;
  color: var(--text-light);
}

.contact-form.card {
  padding: 40px 36px;
}

.contact-form-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.contact-form-actions .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .contact-form.card {
    padding: 24px 20px;
  }
}

/* --- エントリーフォーム（採用情報）: 説明文・必須バッジ・2列レイアウト --- */
/* 説明文幅は他ページの長文（.container-narrow 800px）と統一 */
.entry-form-instructions {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.entry-form-instructions p {
  margin-bottom: 16px;
  color: var(--text-body);
  line-height: 1.8;
}
.entry-form-instructions p:last-child {
  margin-bottom: 0;
}

/* 必須バッジ: 赤背景・白文字（参考: 公式エントリーフォーム） */
.badge-required {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #c00;
  border-radius: var(--radius-sm);
  margin-right: 8px;
  vertical-align: middle;
}

/* 2列レイアウト: ラベル左・入力右 */
.entry-form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px 24px;
  align-items: start;
}
.entry-form-label-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding-top: 12px;
}
.entry-form-label-wrap .form-label {
  margin-bottom: 0;
  display: inline;
}
.entry-form-control-wrap {
  min-width: 0;
}
.entry-form-control-wrap .form-control {
  width: 100%;
}

/* チェックボックス・ラジオを横並び */
.entry-form-checkbox-group,
.entry-form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 8px;
}
.form-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.form-check-inline .form-check-input {
  margin: 0;
  flex-shrink: 0;
}
.form-check-inline-label {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* ファイル入力・フォームヒント */
.form-control-file {
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}
.form-hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* エントリーフォーム内のチェックボックス項目（個人情報同意）はラベルをブロック表示 */
.entry-form-row.form-group-checkbox .entry-form-label-wrap {
  padding-top: 14px;
}
.entry-form-row.form-group-checkbox .form-hint {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .entry-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .entry-form-label-wrap {
    padding-top: 0;
  }
  .entry-form-checkbox-group,
  .entry-form-radio-group {
    padding-top: 0;
  }
}

/* ボタン右矢印（内容確認画面へ・エントリー）：デザイン参考のキャプセル＋矢印 */
.btn-with-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-with-arrow .btn-arrow {
  font-size: 0.85em;
  opacity: 0.9;
}

/* エントリー内容確認画面 */
.entry-confirm {
  padding: 40px 36px;
}
.entry-confirm-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.entry-confirm-lead {
  color: var(--text-body);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.entry-confirm-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.entry-confirm-list dt {
  font-weight: 600;
  color: var(--text-dark);
  grid-column: 1;
}
.entry-confirm-list dd {
  margin: 0;
  color: var(--text-body);
  grid-column: 2;
  word-break: break-word;
}
.entry-confirm-message {
  white-space: pre-wrap;
}
.entry-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.entry-confirm-actions .btn {
  min-width: 160px;
}
@media (max-width: 640px) {
  .entry-confirm-list {
    grid-template-columns: 1fr;
  }
  .entry-confirm-list dd {
    grid-column: 1;
  }
  .entry-confirm {
    padding: 24px 20px;
  }
}

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  gap: 16px;
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-question .faq-icon {
  background: var(--accent);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- FAQ accordion-003（お問い合わせページ下部・details/summary 統一配色） --- */
.faq-accordion-wrap {
  margin-top: 1rem;
}

.accordion-003 {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-003:hover {
  border-color: var(--primary);
}

.accordion-003 summary {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-003 summary::-webkit-details-marker {
  display: none;
}

.accordion-003 summary::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
  transition: var(--transition);
}

.accordion-003[open] summary::before {
  transform: rotate(-135deg) translateY(0);
}

.accordion-003 summary:hover {
  color: var(--primary);
}

.accordion-003 p {
  padding: 0 24px 20px 34px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
}

.accordion-003 p br {
  margin-top: 0.25em;
}

/* --- Tags / Badges --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(11,31,63,0.1);
  color: var(--accent);
}

.badge.blue {
  background: rgba(59,130,246,0.1);
  color: #3B82F6;
}

.badge.green {
  background: rgba(16,185,129,0.1);
  color: #10B981;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.stat-item.white .stat-number {
  color: var(--text-white);
}

.stat-item.white .stat-label {
  color: rgba(255,255,255,0.7);
}

/* --- Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Responsive（多端対応: 1440 / 1024 / 768 / 480 / 375）--- */
/* 1024px: タブレット */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .hero-content p {
    margin: 0 auto 32px;
  }
  
  .hero-visual-orb {
    width: 280px;
    height: 280px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 768px: スマートフォン（縦）・小型タブレット */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  /* モバイル展開メニュー：ヘッダー直下から全画面相当で安定展開 */
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    background: #ffffff;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 24px 24px;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav a {
    display: block;
    width: 100%;
    max-width: 480px;
    font-size: 1.1rem;
    padding: 12px 24px;
    color: var(--text-dark);
    text-align: left;
  }

  .nav .dropdown {
    width: 100%;
    max-width: 480px;
  }
  
  .nav .dropdown-toggle {
    color: var(--text-dark);
  }
  
  /* モバイル: ドロップダウンは閉じた状態で、.open で展開（サブメニューも白系で可読） */
  .nav .dropdown .dropdown-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f7f8fc;
    border-radius: var(--radius-sm);
    margin-top: 4px;
  }
  .nav .dropdown.open .dropdown-menu {
    display: block;
  }
  .nav .dropdown.open .dropdown-menu a {
    color: var(--text-body);
    padding-left: 16px;
  }
  .nav .dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
  }
  
  .mobile-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }
  
  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .card-contribution-images {
    grid-template-columns: 1fr;
  }
  .card-contribution-images img {
    height: 160px;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-policy-links {
    justify-content: center;
  }
  
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .data-table .label {
    width: 120px;
  }
  
  .page-hero h1 {
    font-size: 1.8rem;
  }

  /* 実績ページ：狭い画面でカードの余白を調整 */
  .achievement-card {
    padding: 22px 20px;
  }

  .achievement-industry-nav {
    gap: 8px;
  }

  .achievement-industry-link {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* 480px: 小型スマートフォン */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-content h1 {
    font-size: 1.7rem;
  }
  
  .card {
    padding: 24px;
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}

/* 375px: 超小型端末（横スクロール防止・タップ領域確保） */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  
  .hero-content p {
    font-size: 0.95rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  
  .card {
    padding: 20px;
  }
  
  .stats-row {
    gap: 16px;
  }
  
  .stat-item {
    padding: 16px;
  }
  
  .partner-logo {
    min-width: 120px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

/* 横スクロール防止：全断点で有効（body は Reset で overflow-x: hidden 済み） */
html {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   会社情報ページ（company.html）専用スタイル
   design-system/pages/company.md 準拠
   主ページと同一の --primary / フォント / 余白を維持
   ============================================ */

/* スキップリンク: フォーカス時のみ表示、キーボードa11y */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: calc(var(--header-height) + 16px);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 会社情報タブ：下線スタイル（選択=深藍、未選択=灰） */
.company-tabs-section {
  padding-top: 48px;
}

.company-tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}

.company-tab {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid var(--border-light);
  padding: 12px 20px 14px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.company-tab:hover {
  color: var(--text-body);
}

.company-tab[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.company-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.company-tab-panel-hidden {
  display: none;
}

/* 会社情報: デザインシステム準拠（section-label + section-title + text-center） */
.company-section-head {
  text-align: center;
  margin-bottom: 32px;
}

.company-section-head .section-label {
  display: block;
  margin-bottom: 12px;
}

.company-section-head .section-title {
  margin-bottom: 16px;
}

.company-section-head .section-subtitle {
  margin-bottom: 24px;
}

/* 旧 .company-title は .section-title に統一済み。互換用に残す */
.company-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.company-title-line {
  width: 48px;
  height: 2px;
  background: var(--border-light);
  margin: 0 auto 16px;
}

.company-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.company-lead {
  font-size: 1rem;
  color: var(--text-body);
  text-align: center;
  margin-bottom: 24px;
}

/* 枠付きブロック（ご挨拶・企業理念・行動指針） */
.company-block {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 24px;
  background: var(--bg-white);
}

/* ご挨拶専用: 枠を外してページ上にフラット表示 */
.company-block-plain {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.company-block p {
  margin-bottom: 1em;
  color: var(--text-body);
  line-height: 1.8;
}

.company-block p:last-of-type {
  margin-bottom: 0;
}

.company-signature {
  text-align: right;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5em !important;
}

/* ご挨拶本文: 既定の文字サイズ・行間は保ちつつ、本文のみ中央揃えにする */
.company-greeting-flat {
  text-align: center;
}

.company-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 16px;
}

.company-list-num {
  list-style: decimal;
  padding-left: 1.5em;
  margin: 0;
  color: var(--text-body);
  line-height: 1.8;
}

.company-list-num li {
  margin-bottom: 0.5em;
}

/* 3つの円（信頼・協力・発展） */
.company-circles {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.company-circle {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

/* 基本理念：社是・企業理念・行動指針のカード／図解レイアウト */
.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.philosophy-pillar-card {
  text-align: center;
  cursor: default;
}

.philosophy-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.philosophy-pillar-icon {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-pillar-title {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.philosophy-mission-wrap {
  margin-bottom: 40px;
}

.philosophy-mission-card {
  border-left: 4px solid var(--primary);
  padding-left: 28px;
  cursor: default;
}

.philosophy-mission-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: left;
}

.philosophy-mission-text {
  color: var(--text-body);
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
}

.philosophy-guide-heading {
  margin-bottom: 20px;
}

.philosophy-guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  list-style: none;
  padding: 0;
}

.philosophy-guide-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
}

.philosophy-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.philosophy-guide-num {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  opacity: 0.9;
}

.philosophy-guide-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* 会社概要：dl 直下の dt/dd でラベル・値の2列（HTML5 セマンティクス） */
.company-info-table {
  margin: 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 24px;
  align-items: start;
}

.company-info-table dt {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.company-info-table dt:first-of-type {
  padding-top: 0;
}

.company-info-table dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.company-info-table dd:first-of-type {
  padding-top: 0;
}

/* TEL リンク: クリック可能・hover 明確（design-system アンチパターン回避） */
.company-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.company-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.company-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- 採用情報ページ: 人材募集リンク・募集要項（recruit.html） --- */
.recruit-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 24px;
}

.recruit-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.recruit-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.recruit-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.recruit-jobs {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.recruit-job {
  padding: 28px 32px;
}

.recruit-job-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.recruit-job-table {
  margin-bottom: 24px;
}

.recruit-job .btn {
  margin-top: 8px;
}

/* 採用職種カード内の募集要項（公式サイト #a01 と同内容をカード内に表示） */
.recruit-job-card .card-title {
  margin-bottom: 16px;
}

.recruit-card-specs {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.recruit-card-specs dt {
  margin-top: 10px;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--text-dark);
}

.recruit-card-specs dt:first-child {
  margin-top: 0;
}

.recruit-card-specs dd {
  margin: 0;
  color: var(--text-body);
  padding-left: 0;
}

/* 沿革：dl 直下の dt/dd で年月｜説明のタイムライン */
.company-timeline {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 24px;
  align-items: start;
}

.company-timeline dt {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.company-timeline dt:first-of-type {
  padding-top: 0;
}

.company-timeline dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.company-timeline dd:first-of-type {
  padding-top: 0;
}

/* 沿革：縦型タイムライン（縦線＋ノード）・現サイト配色（--primary / グレー） */
.timeline-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

/* 縦線：日付の左側に配置（日付テキストと重ならない） */
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  pointer-events: none;
}

.company-timeline.timeline-visual {
  grid-template-columns: 120px 1fr;
  gap: 0 28px;
}

.company-timeline.timeline-visual dt,
.company-timeline.timeline-visual dd {
  border-bottom: none;
  padding: 14px 0;
}

.company-timeline.timeline-visual dt:first-of-type,
.company-timeline.timeline-visual dd:first-of-type {
  padding-top: 0;
}

.company-timeline.timeline-visual dt {
  position: relative;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  padding-left: 24px;
  padding-right: 0;
}

/* ノード（円）：日付の左側・縦線上に配置（テキストと重ならない） */
.company-timeline.timeline-visual dt::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--bg-light);
  pointer-events: none;
}

.company-timeline.timeline-visual dd {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* アクセスリスト・地図 */
.company-access-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.company-access-list li {
  padding: 8px 0;
  color: var(--text-body);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
}

.company-map-wrap {
  width: 100%;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-gray);
}

.company-map-iframe {
  display: block;
  width: 100%;
  min-width: 100%;
  height: 400px;
  min-height: 400px;
  border: 0;
  border-radius: var(--radius-md);
}

/* アクセスマップ: 外部 Google マップへの明示リンク */
.company-map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.company-map-link:hover {
  border-bottom-color: currentColor;
}

.company-map-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- 個人情報のお取り扱いページ --- */
.privacy-body {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.privacy-item {
  margin-bottom: 32px;
}

.privacy-item:last-child {
  margin-bottom: 0;
}

.privacy-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

/* 0.4.35: policy 中段に置いた見出し（組織情報直上）と前段テーブルの間隔 */
.privacy-item-title--midsection {
  margin-top: 1.75rem;
}

.privacy-item-body {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
}

.privacy-item-body p {
  margin-bottom: 1em;
}

.privacy-item-body p:last-child {
  margin-bottom: 0;
}

.privacy-list {
  margin: 0;
  padding-left: 1.5em;
  list-style: disc;
}

.privacy-list li {
  margin-bottom: 0.5em;
}

.privacy-list li:last-child {
  margin-bottom: 0;
}

.privacy-contact-box {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.privacy-contact-box p {
  margin: 0 0 8px;
}

.privacy-contact-box p:last-child {
  margin-bottom: 0;
}

.privacy-contact-heading {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.privacy-contact-box a {
  color: var(--primary);
  text-decoration: none;
}

.privacy-contact-box a:hover {
  text-decoration: underline;
}

/* 0.4.23: policy.html 全文掲載用（表・手続き見出し・右寄せ制定文） */
.privacy-lead {
  margin: 1.25em 0 0.75em;
}

.privacy-lead:first-child {
  margin-top: 0;
}

.privacy-text-right {
  text-align: right;
}

.privacy-table-wrap {
  /* 0.4.31: policy 表格在桌面端会覆盖大面积内容区域，overflow-x:auto 容器会影响鼠标滚轮纵向滚动体验。 */
  overflow-x: visible;
  margin: 0.75em 0 1.25em;
  -webkit-overflow-scrolling: auto;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy-table th,
.privacy-table td {
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

/* 組織情報：左列を項目見出しとして強調 */
.privacy-table:not(.privacy-table--security) th[scope="row"],
.privacy-table:not(.privacy-table--security) th[scope="col"] {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
  width: 28%;
}

.privacy-table--purpose tr:first-child th {
  width: 32%;
}

/* 0.4.29: 個人情報の種別・利用目的・開示区分の3列（thead 行あり）。単一ルールの th[scope=col] 幅28% を上書きして均等化する。 */
.privacy-table--3col thead th[scope="col"] {
  width: 33.33%;
}

.privacy-table--3col tbody td {
  background: var(--bg-white);
}

/* 安全管理：左列にカテゴリ名（公式サイトの tech_tab に相当） */
.privacy-table--security td:first-child {
  width: 30%;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-dark);
}

.privacy-h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.65em;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-light);
}

/* グローバル ul,ol { list-style:none } を上書きし、開示等の請求手続きの各見出し前に 1. 2. 3. … を表示 */
.privacy-procedure-ol {
  margin: 1em 0 0;
  padding-left: 2.25em;
  list-style-type: decimal;
  list-style-position: outside;
}

.privacy-procedure-ol > li {
  margin-bottom: 1.5em;
}

.privacy-procedure-ol > li:last-child {
  margin-bottom: 0;
}

.privacy-nested-ol {
  margin: 0.35em 0 0;
  padding-left: 1.35em;
}

.privacy-nested-ol li {
  margin-bottom: 0.4em;
}

.privacy-attention {
  margin: 1em 0;
  line-height: 1.85;
}

@media (max-width: 480px) {
  .privacy-body {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .privacy-table-wrap {
    /* 0.4.31: 小屏仍保留表格横向滚动，避免挤压破版。 */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 組織図: スクリーンショット風・縦展開・レスポンシブ（現サイト配色） */
.org-chart-figure {
  margin: 0;
  padding: 24px 0;
  text-align: center;
}

/* 組織図 PNG 画像：幅に合わせて縮小、縦横比維持 */
.org-chart-figure .org-chart-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.org-chart-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* 縦展開組織図コンテナ */
/* 組織図：4本部（開発・営業・管理・セキュリティ）を横一列に収めるため幅を拡大 */
.org-chart {
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

.org-chart-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* 行：最上段・監査等は横並び */
.org-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

/* 最上段を縦3段に（取締役会→株主総会→代表取締役社長、同一層にしない） */
.org-tier-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 4px;
}

.org-tier-vertical .org-connector-v {
  margin: 0 auto 4px;
}

.org-row-top {
  margin-bottom: 4px;
}

/* 業務監査・相談役を竖線の両側に配置し、中央の縦線を遮らない */
.org-row-advisory {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 260px;
  max-width: 360px;
  margin: 0 auto 4px;
}

/* 代表取締役社長から横線まで1本の縦線で直結（業務監査・相談役の行を貫通） */
.org-connector-advisory-wrap {
  position: relative;
  padding-top: 16px;
  padding-bottom: 16px;
  margin-bottom: 0;
}
.org-connector-advisory-wrap .org-connector-v.org-connector-to-hub {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  min-height: 0;
  margin: 0;
  background: var(--primary);
}

/* 本部4つを同一階層で横並び */
/* 4本部を折線の4列と揃えるためグリッドに統一 */
.org-row-hq {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.org-row-hq .org-block {
  margin-bottom: 0;
  min-width: 0;
}

/* 縦線（ノード間の接続） */
.org-connector-v {
  width: 2px;
  min-height: 16px;
  background: var(--primary);
  margin: 0 auto 4px;
  flex-shrink: 0;
}

/* 代表取締役社長から4本部への折線：横線は4本部幅に収め両端はみ出しなし */
.org-connector-hub {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

/* 主 hub の横線のみ両端を切り（spokes は4本部と位置合わせのため 100% 維持） */
.org-connector-hub .org-connector-h {
  width: calc(100% - 48px);
  max-width: 790px;
  margin: 0 auto;
  box-sizing: border-box;
}

.org-connector-hub .org-connector-spokes {
  width: 100%;
  max-width: 1040px;
  box-sizing: border-box;
}

.org-connector-h {
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.org-connector-spokes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  width: 100%;
  max-width: 1040px;
}

.org-connector-spoke {
  min-height: 12px;
  margin: 0 auto;
}

/* 横線に接続する縦線は下端の余白をなくす */
.org-connector-to-hub {
  margin-bottom: 0;
}

/* ノード共通：角丸四角・枠線・現サイト配色 */
.org-node {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 取締役会・株主総会：薄青枠（スクリーンショット風） */
.org-node-special {
  border-color: var(--primary-light);
  border-width: 1.5px;
  background: var(--bg-white);
}

/* 代表取締役社長 */
.org-node-ceo {
  background: var(--bg-white);
  border-color: var(--primary);
}

/* 業務監査・相談役 */
.org-node-advisory {
  background: var(--bg-white);
}

/* 本部：グレー背景（スクリーンショット風） */
.org-node-hq {
  background: var(--bg-gray);
  border-color: var(--border-light);
  font-weight: 700;
}

.org-node-long {
  white-space: normal;
  text-align: center;
  max-width: 320px;
}

/* 本部配下の部・室 */
.org-node-dept {
  font-weight: 500;
  white-space: normal;
}

/* 本部ブロック：縦に積む */
.org-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}

.org-block:last-child {
  margin-bottom: 0;
}

/* 本部直下の子ノード：縦並び・左に短い接続線風 */
.org-children {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 280px;
}

.org-children .org-node {
  width: 100%;
  text-align: center;
  white-space: normal;
}

/* 開発事業本部直下：折線＋4部門を縦書き・横並び */
/* 折線の幅を4子ノード幅に合わせ、両側のはみ出しをなくす */
.org-dept-connector {
  width: 240px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.org-dept-connector .org-connector-v:first-child {
  margin-bottom: 0;
}

/* 本部直下の折線用：横線を子ノード幅に限定（.org-connector-h の width:100% を上書き） */
/* プレビュー調整：横線幅を 240px から 193px に変更 */
.org-dept-connector .org-connector-h.org-dept-connector-h {
  width: 193px;
  min-height: 2px;
  box-sizing: border-box;
}

.org-dept-spokes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.org-dept-spokes .org-connector-spoke {
  min-height: 10px;
}

.org-children-horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  max-width: none;
  margin-top: 0;
}

/* 縦長条・横並び（截图1の代表取締役社長スタイルに合わせる） */
.org-children-horizontal .org-node {
  width: auto;
}

/* 縦書きノード：竖长条（高＞幅）・横並び */
.org-node-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  width: 48px;
  min-width: 48px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  line-height: 1.5;
  flex-shrink: 0;
}

/* CTA リンク: ボタンに cursor-pointer と focus 可視（設計書準拠） */
.cta-link {
  cursor: pointer;
}

.cta-link:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .company-info-table {
    grid-template-columns: 1fr;
    gap: 0 0;
  }

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

  /* 沿革タイムライン：1列時は縦線・ノードを左端に寄せる */
  .timeline-wrap::before {
    left: 7px;
  }

  .company-timeline.timeline-visual dt::before {
    left: 0;
    top: 1.1em;
  }

  .company-timeline.timeline-visual dt {
    padding-left: 28px;
  }

  .company-timeline.timeline-visual dd {
    padding-left: 28px;
  }

  .company-info-table dt,
  .company-info-table dd,
  .company-timeline dt,
  .company-timeline dd {
    padding: 12px 0;
  }

  .company-info-table dd:first-of-type,
  .company-timeline dd:first-of-type {
    padding-top: 0;
  }

  .company-circles {
    gap: 24px;
  }

  .company-circle {
    width: 80px;
    height: 80px;
    font-size: 0.9rem;
  }

  .company-block {
    padding: 20px 20px;
  }

  /* 基本理念：768px 以下で社是・行動指針を1列に */
  .philosophy-pillars {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  .philosophy-guide-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .philosophy-mission-card {
    padding-left: 20px;
  }

  /* 組織図：狭い画面でノード折り返し・余白調整 */
  .org-chart {
    max-width: 100%;
    padding: 0 12px;
  }

  .org-row {
    gap: 8px 12px;
  }

  .org-node {
    white-space: normal;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .org-node-long {
    max-width: 100%;
  }

  .org-children {
    max-width: 100%;
  }

  /* 本部同一階層：狭い画面で2列に */
  .org-row-hq {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* 開発事業本部直下：4部門を2列に折り返し・縦書き維持・折線幅も2列に合わせる */
  .org-dept-connector {
    width: 104px;
  }

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

  .org-node-vertical {
    width: 44px;
    min-width: 44px;
    height: 110px;
  }
}

/* --- トップへ戻るボタン：スクロール量が一定以上のとき右下に表示。クリックでページ先頭へスムーズスクロール --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.25s ease;
}

/* スクロールで閾値を超えた時に .visible を付与して表示 */
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

/* モバイル端末ではやや小さく・端の余白を狭める */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* ===== フォーム送信結果メッセージ ===== */

/* 送信成功時の完了画面スタイル */
.form-result-success {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 1.5rem;
}

.form-result-success .form-result-icon {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.form-result-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.form-result-success p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* 送信エラー時のインラインメッセージ */
.form-result-error {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.95rem;
}
