/* ============================================
   合同会社KALEIDO コーポレートサイト
   LANY (lany.co.jp) デザイン完全再現
   ============================================ */

/* --- CSS変数（カラー・フォント・余白） --- */
:root {
  /* カラーパレット（LANY準拠） */
  --color-primary: #012677;        /* メインカラー（紺） */
  --color-primary-dark: #011748;   /* フッター背景（濃紺） */
  --color-secondary: #FDD247;      /* アクセント（黄） */
  --color-secondary-hover: #f5c623;/* アクセントホバー */
  --color-bg: #f7f7f7;             /* 背景（薄灰） */
  --color-bg-white: #ffffff;       /* 白背景 */
  --color-text: #181818;           /* テキスト（黒） */
  --color-text-light: #333333;     /* テキスト（濃いめ） */
  --color-text-white: #ffffff;     /* 白テキスト */
  --color-border: #e0e0e0;         /* ボーダー */
  --color-card-shadow: rgba(0, 0, 0, 0.08); /* カード影 */
  --color-card-shadow-hover: rgba(0, 0, 0, 0.15); /* カード影ホバー */

  /* フォント */
  --font-en: 'Barlow Semi Condensed', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  /* フォントサイズ */
  --font-size-hero: 52px;
  --font-size-hero-sub: 18px;
  --font-size-section-en: 64px;
  --font-size-section-jp: 14px;
  --font-size-h2: 32px;
  --font-size-h3: 22px;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-xs: 12px;

  /* 余白 */
  --section-padding: 120px;
  --container-width: 1192px;
  --container-narrow: 992px;
  --container-padding: 24px;

  /* その他 */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-pill: 200px;
  --header-height: 100px;
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

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

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

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

/* --- コンテナ --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- パーティクルアニメーション --- */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* --- サービスセクション h3 微調整 --- */
#services h3 {
  text-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* --- ロゴスライダー（無限スクロール） --- */
.logo-slider {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logo-slider__track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.logo-slider__track--rtl {
  animation: slideRTL 35s linear infinite;
}

.logo-slider__track--ltr {
  animation: slideLTR 35s linear infinite;
}

.logo-slider__item {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-slider__item img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: all 0.4s ease;
}

/* プレースホルダー（ロゴ差し替え前の仮表示） */
.logo-ph {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  color: #c0c5d0;
  letter-spacing: 3px;
  white-space: nowrap;
  padding: 14px 36px;
  border: 1.5px dashed #d8dce6;
  border-radius: 8px;
  text-transform: uppercase;
}

@keyframes slideRTL {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slideLTR {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* --- セクション共通 --- */
.section {
  padding: var(--section-padding) 0;
}

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

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.section--footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
}

/* --- セクション見出し（LANY風: 大きな英字 + ●付き日本語） --- */
.section-header {
  margin-bottom: 64px;
}

.section-header__en {
  font-family: var(--font-en);
  font-size: var(--font-size-section-en);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section--dark .section-header__en,
.section--footer .section-header__en {
  color: var(--color-text-white);
}

.section-header__jp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-section-jp);
  font-weight: 500;
  color: var(--color-text-light);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

.section--dark .section-header__jp,
.section--footer .section-header__jp {
  color: rgba(255, 255, 255, 0.7);
}

.section-header__jp::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* セクション見出し中央揃え */
.section-header--center {
  text-align: center;
}

.section-header--center .section-header__jp {
  justify-content: center;
}

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(1, 38, 119, 0.1);
  z-index: 1000;
  transition: box-shadow var(--transition), background-color var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: visible;
}

/* michikusa風セクションナビバー */
.section-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(1,38,119,0.08);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s, transform 0.3s;
}
.section-nav--visible {
  opacity: 1;
  transform: translateY(0);
}
.section-nav__inner {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.section-nav__inner::-webkit-scrollbar {
  display: none;
}
.section-nav__item {
  padding: 14px 20px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #737373;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.section-nav__item:hover {
  color: #012677;
}
.section-nav__item--active {
  color: #012677;
  border-bottom-color: #012677;
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(1, 38, 119, 0.08);
  border-bottom: 1px solid rgba(1, 38, 119, 0.06);
}

/* LANY風ヘッダーホバー */
.header:hover {
  background-color: #4a4a4a;
  border-bottom-color: transparent;
}
.header:hover .nav__link {
  color: rgba(255,255,255,0.85);
}
.header:hover .nav__link:hover {
  color: #fff;
}
.header:hover .nav__link--dropdown::after {
  border-color: rgba(255,255,255,0.85);
}
.header:hover .header__cta .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.header:hover .header__cta .btn--primary {
  background: #fff;
  color: #1a1a1a;
}
.header:hover .nav__dropdown {
  background: #2a2a2a;
}
.header:hover .nav__dropdown-item {
  color: rgba(255,255,255,0.8);
}
.header:hover .nav__dropdown-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ロゴ */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: -60px; /* 左寄せ強化 */
}

.header__logo a {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.header__logo a:hover {
  opacity: 1;
}

/* ナビゲーション */
.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* ドロップダウン矢印 */
.nav__link--dropdown::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition);
}

.nav__item:hover .nav__link--dropdown::after {
  transform: rotate(-135deg);
}

/* ドロップダウンメニュー */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background-color var(--transition), color var(--transition);
}

.nav__dropdown-item:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
  opacity: 1;
}

.nav__dropdown-item--coming-soon {
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__dropdown-item--coming-soon::after {
  content: 'Coming Soon';
  font-size: 10px;
  font-family: var(--font-en);
  background-color: var(--color-secondary);
  color: var(--color-text);
  padding: 2px 8px;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
}

/* ヘッダーCTAボタン */
.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 0;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition);
  border-radius: 1px;
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* --- ボタン共通 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-jp);
  border-radius: var(--border-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  opacity: 1;
}

/* プライマリボタン（紺背景） */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

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

/* セカンダリボタン（黄背景） */
.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border-color: var(--color-secondary);
}

.btn--secondary:hover {
  background-color: transparent;
  color: var(--color-secondary);
}

/* アウトラインボタン */
.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* 白アウトライン（ダークセクション用） */
.btn--outline-white {
  background-color: transparent;
  color: var(--color-text-white);
  border-color: var(--color-text-white);
}

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

/* 小さいボタン */
.btn--sm {
  padding: 10px 24px;
  font-size: 13px;
}

/* 大きいボタン */
.btn--lg {
  padding: 18px 48px;
  font-size: 16px;
}

/* ボタンの矢印アイコン */
.btn__arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.btn:hover .btn__arrow {
  transform: rotate(45deg) translate(2px, -2px);
}

/* --- ヒーローセクション --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: #f7f7f7;
  padding-top: 220px;
  overflow: hidden;
}

/* hero__bg 削除済み — SVGウェーブのみ使用 */

/* LANY風 流れる曲線SVG */
.hero__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.hero__content {
  max-width: 600px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: var(--color-secondary);
}

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--font-size-hero-sub);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- 課題提起セクション --- */
.problems {
  background-color: var(--color-bg);
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.problem-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-card-shadow-hover);
}

.problem-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.problem-card__number {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.problem-card__text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text);
}

/* --- サービスセクション --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.service-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

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

.service-card__image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-white);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.service-card__image--training {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0148b5 100%);
}

.service-card__image--dev {
  background: linear-gradient(135deg, #013da7 0%, var(--color-primary-dark) 100%);
}

.service-card__image--yohaku {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #012060 100%);
}

.service-card__image-label {
  position: relative;
  z-index: 2;
  text-align: center;
}

.service-card__image-label small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 4px;
  font-family: var(--font-jp);
}

/* カード画像の装飾円 */
.service-card__image::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(253, 210, 71, 0.12);
  border-radius: 50%;
  top: -30px;
  right: -30px;
}

.service-card__image::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  bottom: -20px;
  left: -20px;
}

.service-card__body {
  padding: 32px 28px;
}

.service-card__tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-card__desc {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition);
}

.service-card__link:hover {
  gap: 12px;
  opacity: 1;
}

/* その他サービス（映像制作・SNSマーケ） */
.services__other {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.services__other-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-small);
  color: var(--color-text-light);
}

.services__other-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* --- 実績・数字セクション --- */
.numbers {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  text-align: center;
}

.numbers__lead {
  font-size: var(--font-size-body);
  opacity: 0.8;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

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

.number-item__value {
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.number-item__unit {
  font-size: 24px;
}

.number-item__label {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 500;
}

.number-item__desc {
  font-size: var(--font-size-small);
  opacity: 0.6;
  margin-top: 8px;
}

/* --- 導入事例セクション --- */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.case-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-card-shadow-hover);
}

.case-card__header {
  background: linear-gradient(135deg, var(--color-primary), #0148b5);
  padding: 32px 28px;
  color: var(--color-text-white);
}

.case-card__company {
  font-size: var(--font-size-small);
  opacity: 0.8;
  margin-bottom: 8px;
}

.case-card__result {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.case-card__result-label {
  font-size: 15px;
  font-weight: 500;
}

.case-card__body {
  padding: 28px;
}

.case-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.6;
}

.case-card__desc {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

.cases__more {
  text-align: center;
}

/* --- AI×採用ビジョンセクション --- */
.vision {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  position: relative;
  overflow: hidden;
}

.vision__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.vision__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(253, 210, 71, 0.15);
  color: var(--color-secondary);
  padding: 8px 20px;
  border-radius: var(--border-radius-pill);
  font-size: var(--font-size-small);
  font-weight: 600;
  margin-bottom: 32px;
}

.vision__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
}

.vision__title span {
  color: var(--color-secondary);
}

.vision__desc {
  font-size: var(--font-size-body);
  opacity: 0.85;
  line-height: 2;
  margin-bottom: 32px;
}

.vision__image {
  background: linear-gradient(135deg, rgba(253, 210, 71, 0.1) 0%, rgba(1, 38, 119, 0.3) 100%);
  border-radius: var(--border-radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vision__image-text {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 600;
  opacity: 0.5;
  text-align: center;
}

.vision__image::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(253, 210, 71, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 20%;
  left: 20%;
}

/* 背景装飾 */
.vision::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 210, 71, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

/* --- 代表メッセージセクション --- */
.message__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: center;
}

.message__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--color-bg) 0%, #e8e8e8 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--font-size-small);
}

.message__content {
  max-width: 560px;
}

.message__name {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.message__position {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.message__text {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
}

.message__text p {
  margin-bottom: 20px;
}

.message__text p:last-child {
  margin-bottom: 0;
}

/* --- ブログ/ニュースセクション --- */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.blog-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-card-shadow-hover);
}

.blog-card__image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--color-bg) 0%, #ddd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--font-size-small);
}

.blog-card__body {
  padding: 24px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card__date {
  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

.blog-card__category {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-primary);
  background-color: rgba(1, 38, 119, 0.08);
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
}

.blog-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog__more {
  text-align: center;
}

/* --- 会社概要セクション --- */
.company__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.company__table {
  width: 100%;
  border-collapse: collapse;
}

.company__table tr {
  border-bottom: 1px solid var(--color-border);
}

.company__table th {
  padding: 20px 0;
  text-align: left;
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-primary);
  width: 140px;
  vertical-align: top;
  white-space: nowrap;
}

.company__table td {
  padding: 20px 0 20px 24px;
  font-size: var(--font-size-small);
  line-height: 1.8;
}

.company__map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-color: var(--color-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.company__map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* --- 最終CTAセクション --- */
.final-cta {
  background-color: var(--color-bg);
}

.final-cta__lead {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 48px;
  line-height: 1.8;
}

.final-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.cta-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-card-shadow-hover);
}

.cta-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.cta-card__en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cta-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-card__desc {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.final-cta__phone-label {
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.final-cta__phone-number {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

/* --- フッター --- */
.footer {
  background-color: #f5f5f5;
  color: #181818;
  padding: 36px 0 0;
  position: relative;
  overflow: hidden;
}

.footer__inner {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  gap: 40px;
  padding-bottom: 32px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* フッター左（ロゴ+会社情報） */
.footer__brand {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  color: #181818;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.footer__company-name {
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.footer__address {
  font-size: var(--font-size-xs);
  color: #888;
  line-height: 1.8;
}

/* フッター中央（リンク群） */
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__link-group h4 {
  font-size: var(--font-size-small);
  font-weight: 700;
  color: #181818;
  margin-bottom: 16px;
}

.footer__link-group a {
  display: block;
  font-size: var(--font-size-xs);
  color: #666;
  padding: 5px 0;
  transition: color var(--transition);
  text-decoration: none;
}

.footer__link-group a::before {
  content: '- ';
  color: #ccc;
}

.footer__link-group a:hover {
  color: #012677;
  opacity: 1;
}

/* フッター右（CTAカード） */
.footer__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 200px;
  padding: 16px 20px 16px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: #181818;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.footer__cta-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  opacity: 1;
}

.footer__cta-text {
  font-size: 15px;
  font-weight: 700;
}

.footer__cta-text small {
  display: none;
}

.footer__cta-icon {
  width: 36px;
  height: 36px;
  background: #181818;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: #fff;
}

.footer__sns {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.footer__sns-link {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.footer__sns-link:hover {
  opacity: 0.6;
  background: transparent;
}

.footer__sns-link svg {
  width: 20px;
  height: 20px;
  fill: #181818;
}

.footer__sns-link {
  width: 32px;
  height: 32px;
}

/* フッター背景スライドテキスト(リンク群と被せる) */
.footer__slide-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.footer__slide-text span {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 180px;
  font-weight: 800;
  color: rgba(0,0,0,0.05);
  letter-spacing: 0.02em;
  animation: footerSlide 20s linear infinite;
  line-height: 1;
}

@keyframes footerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* フッター下部（コピーライト） */
.footer__bottom {
  border-top: 1px solid #e0e0e0;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer__copyright {
  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  color: #999;
  letter-spacing: 0.05em;
}

/* --- スクロールアニメーション --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-left--visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-right--visible {
  opacity: 1;
  transform: translateX(0);
}

/* 遅延アニメーション用 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   レスポンシブデザイン
   ============================================ */

/* --- タブレット（1024px以下） --- */
@media (max-width: 1024px) {
  :root {
    --font-size-hero: 40px;
    --font-size-section-en: 48px;
    --section-padding: 80px;
  }

  .hero__bg {
    width: 45%;
  }

  .vision__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .message__inner {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}


/* ============================================
   モバイル（768px以下） — 見やすさ重視
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size-hero: 28px;
    --font-size-hero-sub: 14px;
    --font-size-section-en: 44px;
    --font-size-section-jp: 12px;
    --font-size-h2: 24px;
    --font-size-h3: 18px;
    --section-padding: 64px;
    --header-height: 88px;
    --container-padding: 20px;
  }

  body {
    line-height: 1.75;
  }

  /* ========================================
     ヘッダー
     ======================================== */
  .header {
    height: var(--header-height);
  }
  .header:hover {
    background-color: rgba(255,255,255,0.98);
  }
  .header:hover .nav__link,
  .header:hover .header__cta .btn--outline {
    color: var(--color-primary);
  }

  .header__inner {
    padding: 0 20px;
  }

  .header__logo {
    margin-left: 0 !important;
  }

  /* ロゴはインラインstyle 240pxを!importantで上書き */
  .header__logo img {
    height: 132px !important;
  }

  /* セクションナビは非表示(モバイルでは邪魔) */
  .section-nav {
    display: none !important;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 86%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--color-bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 24px 40px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    gap: 0;
  }

  .header__nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav__item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link {
    padding: 18px 4px;
    width: 100%;
    font-size: 15px;
  }

  /* モバイルドロップダウン(クリックで開閉) */
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 12px 12px;
    min-width: 0;
    background: transparent;
    display: none;
  }
  .nav__item--open .nav__dropdown {
    display: block;
  }
  .nav__item:hover .nav__dropdown {
    display: none; /* モバイルではhover制御をオフにしてclickのみ反応させる */
  }
  .nav__item--open .nav__dropdown {
    display: block !important;
  }
  .nav__dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
  }

  .header__cta {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
    gap: 10px;
  }

  .header__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* モバイルオーバーレイ */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-overlay--visible {
    display: block;
  }

  /* ========================================
     ヒーローセクション(index.html)
     ======================================== */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 56px;
  }

  .hero__inner {
    padding: 0 20px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__label {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .hero__label::before {
    width: 24px;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 28px;
  }

  .hero__cta {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .hero__cta .btn,
  .hero__cta .btn--lg {
    width: 100%;
    padding: 16px 28px;
    font-size: 14px;
    justify-content: center;
  }

  /* ヒーロー右下のカードはモバイルでは非表示 */
  .hero > div[style*="position:absolute"][style*="bottom:40px"],
  .hero > div[style*="position: absolute"][style*="bottom: 40px"] {
    display: none !important;
  }

  /* ========================================
     ボタン共通(モバイル)
     ======================================== */
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  .btn--lg {
    padding: 16px 28px;
    font-size: 14px;
  }
  .btn--sm {
    padding: 10px 20px;
    font-size: 12px;
  }

  /* ========================================
     コンテナ/セクション共通
     ======================================== */
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }
  .section-header__en {
    font-size: 40px;
  }
  .section-header__jp {
    font-size: 12px;
  }

  /* Barlow大見出し(100px/80px)をモバイル用に縮小 */
  section h2[style*="font-size:100px"],
  section h2[style*="font-size: 100px"] {
    font-size: 52px !important;
  }
  section h2[style*="font-size:80px"],
  section h2[style*="font-size: 80px"] {
    font-size: 44px !important;
  }

  /* 40px強調テキスト(Mission下) */
  section p[style*="font-size:40px"],
  section p[style*="font-size: 40px"] {
    font-size: 22px !important;
    line-height: 1.6 !important;
  }

  /* 44px / 42px 大見出し (AI×採用, 1人AIチーム等) */
  section h2[style*="font-size:44px"],
  section h2[style*="font-size: 44px"],
  section h2[style*="font-size:42px"],
  section h2[style*="font-size: 42px"] {
    font-size: 24px !important;
    line-height: 1.45 !important;
  }

  /* ========================================
     Mission / Services / Clients / News 等
     (index.html インラインスタイル対応)
     ======================================== */

  /* Missionセクション */
  #mission {
    padding: 72px 0 0 !important;
  }
  #mission .container > div {
    padding: 0;
  }

  /* Servicesセクション */
  #services {
    padding-top: 72px !important;
    padding-bottom: 64px !important;
  }
  #services > .container > div[style*="margin-bottom:80px"] {
    margin-bottom: 40px !important;
  }

  /* サービスカード: 2カラム→1カラム */
  #services a[href="training.html"],
  #services a[href="development.html"],
  #services a[href*="yohakuwithai"] {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 40px 0 !important;
  }
  #services a[href="training.html"] > div:first-child,
  #services a[href="development.html"] > div:first-child,
  #services a[href*="yohakuwithai"] > div:first-child {
    padding-right: 0 !important;
    order: 2;
  }
  #services a[href="training.html"] > div:last-child,
  #services a[href="development.html"] > div:last-child,
  #services a[href*="yohakuwithai"] > div:last-child {
    order: 1;
    justify-content: center !important;
  }
  #services a[href="training.html"] > div:last-child > div,
  #services a[href="development.html"] > div:last-child > div,
  #services a[href*="yohakuwithai"] > div:last-child > div {
    max-width: 100% !important;
    height: 200px !important;
  }
  #services a[href="training.html"] h3,
  #services a[href="development.html"] h3,
  #services a[href*="yohakuwithai"] h3 {
    font-size: 22px !important;
  }
  #services a[href="training.html"] p[style*="font-size:24px"],
  #services a[href="development.html"] p[style*="font-size:24px"],
  #services a[href*="yohakuwithai"] p[style*="font-size:24px"] {
    font-size: 18px !important;
  }
  /* 写真の背景の巨大テキスト(AI Training等)を縮小 */
  #services p[style*="font-size:40px"] {
    font-size: 22px !important;
  }

  /* ========================================
     Clientsセクション(ロゴスライダー)
     モバイルではアニメーションを止めて 3×3 グリッド表示
     ======================================== */
  #numbers {
    padding: 56px 0 !important;
  }
  #numbers > .container > div[style*="margin-bottom:60px"] {
    margin-bottom: 24px !important;
  }
  /* フェードマスクを解除して端まで見えるように */
  #numbers .logo-slider {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding: 0 16px;
  }
  #numbers .logo-slider + .logo-slider {
    margin-top: 18px !important;
  }
  /* アニメーション停止+3列グリッド化 */
  #numbers .logo-slider__track {
    animation: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px 14px !important;
    width: 100% !important;
    justify-items: center;
    align-items: center;
  }
  /* Row 1 (rtl): 先頭6個を表示、複製(7個目以降)を非表示 */
  #numbers .logo-slider__track--rtl > .logo-slider__item:nth-child(n+7) {
    display: none !important;
  }
  /* Row 2 (ltr): 先頭3個(hamamatsu/expedia/dji)のみ表示 */
  #numbers .logo-slider__track--ltr > .logo-slider__item:nth-child(n+4) {
    display: none !important;
  }
  #numbers .logo-slider__item {
    height: 48px;
    width: 100%;
    flex-shrink: 0;
  }
  #numbers .logo-slider__item img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* 背景巨大英字テキスト(180px〜200px)をモバイル用に */
  section span[style*="font-size:180px"],
  section span[style*="font-size: 180px"],
  section span[style*="font-size:200px"],
  section span[style*="font-size: 200px"] {
    font-size: 80px !important;
  }

  /* ========================================
     AI×採用事業セクション(#vision)
     ======================================== */
  #vision > div[style*="max-width:1192px"] {
    margin-top: 48px !important;
    padding: 0 16px !important;
  }
  /* バッジ */
  #vision span[style*="background:#FDD247"] {
    font-size: 11px !important;
    padding: 7px 14px !important;
  }
  /* 写真スライダー高さ */
  #vision div[style*="height:400px"] {
    height: 260px !important;
  }
  #vision div[style*="width:400px"] {
    width: 260px !important;
  }
  /* オーバーレイテキストのpadding */
  #vision div[style*="padding:0 56px"] {
    padding: 0 24px !important;
  }
  #vision p[style*="font-size:14px"][style*="letter-spacing:3px"] {
    font-size: 11px !important;
    letter-spacing: 2px !important;
  }
  #vision p[style*="font-size:18px"] {
    font-size: 14px !important;
  }
  /* 紺エリア(左説明+右カード) → 1カラム化 */
  #vision div[style*="background:#012677"] {
    padding: 40px 24px 32px !important;
  }
  #vision div[style*="background:#012677"] > div {
    flex-direction: column !important;
    gap: 20px !important;
  }
  #vision div[style*="background:#012677"] > div > div:last-child {
    width: 100% !important;
  }
  #vision div[style*="background:#012677"] p[style*="font-size:15px"] {
    font-size: 14px !important;
    line-height: 1.9 !important;
  }
  /* 学生カードのネガティブマージンを解除 */
  #vision a[style*="margin-top:-72px"] {
    margin-top: 0 !important;
  }

  /* ========================================
     代表メッセージ(#message)
     ======================================== */
  #message .section {
    padding: 64px 0 !important;
  }
  .message__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .message__photo {
    max-width: 260px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
  }
  .message__content {
    max-width: 100%;
  }
  .message__text {
    font-size: 14px;
    line-height: 2;
  }
  .message__text p[style*="font-size:20px"] {
    font-size: 17px !important;
  }
  .message__text p {
    margin-bottom: 16px;
  }
  .message__name {
    font-size: 13px;
  }

  /* ========================================
     News カルーセル(#cases)
     ======================================== */
  #cases {
    padding: 64px 0 !important;
  }
  /* ヘッダー(タイトル+ボタン) */
  #cases > .container > div[style*="margin-bottom:64px"] {
    margin-bottom: 32px !important;
  }
  #cases a[href="works.html"] {
    padding: 12px 20px !important;
    font-size: 13px !important;
  }
  /* カルーセルカードはスコープCSSで260pxに設定済 */

  /* ========================================
     会社概要(#company)
     ======================================== */
  .company__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .company__table th {
    width: 92px;
    font-size: 12px;
    padding: 14px 0;
  }
  .company__table td {
    padding: 14px 0 14px 16px;
    font-size: 13px;
  }
  .company__map,
  .company__map iframe {
    min-height: 280px;
    height: 280px;
  }

  /* ========================================
     最終CTAセクション(#contact)
     ======================================== */
  #contact {
    padding: 64px 0 !important;
  }
  #contact > div[style*="max-width:1192px"] {
    padding: 0 20px !important;
  }
  /* 上部: キャッチ+説明 2カラム→1カラム */
  #contact > div > div[style*="grid-template-columns:1fr 1fr"]:first-child {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 32px !important;
  }
  #contact p[style*="font-size:24px"] {
    font-size: 20px !important;
    line-height: 1.6 !important;
  }
  #contact p[style*="font-size:14px"] {
    font-size: 13px !important;
    line-height: 1.9 !important;
  }
  /* 下部: 2カード → 1カラム */
  #contact > div > div[style*="grid-template-columns:1fr 1fr"]:last-child {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  #contact a[style*="min-height:220px"] {
    min-height: 150px !important;
    padding: 28px 28px 24px !important;
  }
  #contact h3[style*="font-size:22px"] {
    font-size: 20px !important;
    margin-bottom: 16px !important;
  }

  /* ========================================
     サブページ共通: クロスセル(写真背景2カラム)
     training.html / development.html で使用
     ======================================== */
  section[style*="padding:0;overflow:hidden"] > div[style*="grid-template-columns:1fr 1fr"],
  section[style*="padding: 0; overflow: hidden"] > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  section[style*="padding:0;overflow:hidden"] > div > a,
  section[style*="padding: 0; overflow: hidden"] > div > a {
    padding: 36px 28px !important;
    min-height: 220px;
  }
  section[style*="padding:0;overflow:hidden"] h3 {
    font-size: 18px !important;
  }

  /* ========================================
     サブページ共通: グレー2カードCTA
     (training/development/company/blog 末尾)
     ======================================== */
  section[style*="background:#4a4a4a"],
  section[style*="background: #4a4a4a"] {
    padding: 56px 0 !important;
  }
  section[style*="background:#4a4a4a"] > div,
  section[style*="background: #4a4a4a"] > div {
    padding: 0 20px !important;
  }
  section[style*="background:#4a4a4a"] > div > div[style*="grid-template-columns:1fr 1fr"]:first-child,
  section[style*="background: #4a4a4a"] > div > div[style*="grid-template-columns:1fr 1fr"]:first-child {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-bottom: 28px !important;
  }
  section[style*="background:#4a4a4a"] p[style*="font-size:24px"],
  section[style*="background: #4a4a4a"] p[style*="font-size:24px"] {
    font-size: 19px !important;
    line-height: 1.6 !important;
  }
  section[style*="background:#4a4a4a"] p[style*="font-size:14px"],
  section[style*="background: #4a4a4a"] p[style*="font-size:14px"] {
    font-size: 13px !important;
  }
  section[style*="background:#4a4a4a"] > div > div[style*="grid-template-columns:1fr 1fr"]:last-child,
  section[style*="background: #4a4a4a"] > div > div[style*="grid-template-columns:1fr 1fr"]:last-child {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  section[style*="background:#4a4a4a"] a[style*="min-height:220px"],
  section[style*="background: #4a4a4a"] a[style*="min-height:220px"] {
    min-height: 140px !important;
    padding: 24px 26px 22px !important;
  }
  section[style*="background:#4a4a4a"] h3[style*="font-size:22px"],
  section[style*="background: #4a4a4a"] h3[style*="font-size:22px"] {
    font-size: 19px !important;
    margin-bottom: 14px !important;
  }

  /* ========================================
     development.html 「1人 × AIチーム」セクション
     紺グラデ背景で特定
     ======================================== */
  section[style*="linear-gradient(135deg,#012677 0%,#011748 100%)"],
  section[style*="linear-gradient(135deg, #012677 0%, #011748 100%)"] {
    padding: 64px 0 !important;
  }
  section[style*="linear-gradient(135deg,#012677 0%,#011748 100%)"] > div[style*="max-width:1192px"],
  section[style*="linear-gradient(135deg, #012677 0%, #011748 100%)"] > div[style*="max-width:1192px"] {
    padding: 0 20px !important;
  }
  section[style*="linear-gradient(135deg,#012677 0%,#011748 100%)"] p[style*="font-size:15px"][style*="line-height:2"],
  section[style*="linear-gradient(135deg, #012677 0%, #011748 100%)"] p[style*="font-size:15px"][style*="line-height:2"] {
    font-size: 13px !important;
    line-height: 1.9 !important;
  }
  section[style*="linear-gradient(135deg,#012677 0%,#011748 100%)"] h3[style*="font-size:22px"],
  section[style*="linear-gradient(135deg, #012677 0%, #011748 100%)"] h3[style*="font-size:22px"] {
    font-size: 17px !important;
  }
  /* YouTubeプレースホルダーの内部paddingを縮小 */
  section[style*="linear-gradient(135deg,#012677 0%,#011748 100%)"] div[style*="padding:40px"],
  section[style*="linear-gradient(135deg, #012677 0%, #011748 100%)"] div[style*="padding:40px"] {
    padding: 28px 20px !important;
  }
  section[style*="linear-gradient(135deg,#012677 0%,#011748 100%)"] div[style*="width:88px"],
  section[style*="linear-gradient(135deg, #012677 0%, #011748 100%)"] div[style*="width:88px"] {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 14px !important;
  }
  /* 黄色CTAボタン */
  section[style*="linear-gradient(135deg,#012677 0%,#011748 100%)"] a[style*="background:#FDD247"],
  section[style*="linear-gradient(135deg, #012677 0%, #011748 100%)"] a[style*="background:#FDD247"] {
    padding: 16px 28px !important;
    font-size: 13px !important;
  }

  /* ========================================
     training.html SERVICE MENUコンパクトブロック
     (features内のグレーボックス)
     ======================================== */
  .features__inner > div[style*="background:#f4f5f7"],
  .features__inner > div[style*="background: #f4f5f7"] {
    padding: 22px 24px !important;
    margin-top: 36px !important;
  }
  .features__inner > div[style*="background:#f4f5f7"] li,
  .features__inner > div[style*="background: #f4f5f7"] li {
    font-size: 13px !important;
  }

  /* ========================================
     page-hero(training/development/blog/works/company等)
     ======================================== */
  .page-hero {
    padding: 100px 0 48px !important;
  }
  .page-hero__en {
    font-size: 36px !important;
  }
  .page-hero__label {
    font-size: 12px !important;
  }
  .page-hero__jp {
    font-size: 13px !important;
  }

  /* ========================================
     フッター
     ======================================== */
  .footer {
    padding: 40px 0 0;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 24px;
  }
  /* ブランド部: ロゴ+SNSを横並びに、他要素は下に縦積み */
  .footer__brand {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
    column-gap: 20px;
  }
  .footer__brand > a:first-child {
    order: 1;
    margin-bottom: 0 !important;
  }
  /* フッターロゴ(インラインstyle 160px上書き) */
  .footer__brand img {
    height: 180px !important;
  }
  .footer__brand .footer__sns {
    order: 2;
    gap: 14px;
    margin: 0;
  }
  .footer__brand .footer__company-name {
    order: 3;
    flex-basis: 100%;
    margin: 8px 0 0 !important;
  }
  .footer__brand > p[style*="info@kaleido"] {
    order: 4;
    flex-basis: 100%;
    margin: 0 !important;
  }
  .footer__brand > a:last-child {
    order: 5;
    flex-basis: 100%;
  }
  .footer__sns-link {
    width: 40px;
    height: 40px;
  }
  .footer__sns-link svg {
    width: 22px;
    height: 22px;
  }
  /* フッターリンク: 2列グリッド(サービス+コンテンツ 1行、会社情報 2行) */
  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer__link-group h4 {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .footer__link-group a {
    font-size: 12px;
    padding: 4px 0;
  }
  .footer__actions {
    gap: 10px;
  }
  .footer__cta-card {
    padding: 14px 16px 14px 20px;
  }
  .footer__cta-text {
    font-size: 14px;
  }
  /* スライドテキストを縮小 */
  .footer__slide-text span {
    font-size: 88px;
  }
  .footer__bottom {
    padding: 16px 0;
  }
  .footer__bottom > .container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .footer__copyright {
    font-size: 10px;
  }
}


/* ============================================
   スマホ小画面（480px以下） — 追加微調整
   ============================================ */
@media (max-width: 480px) {
  :root {
    --font-size-hero: 26px;
    --font-size-section-en: 36px;
    --section-padding: 56px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 13px;
  }

  section h2[style*="font-size:100px"],
  section h2[style*="font-size: 100px"] {
    font-size: 44px !important;
  }
  section h2[style*="font-size:80px"],
  section h2[style*="font-size: 80px"] {
    font-size: 38px !important;
  }
  section p[style*="font-size:40px"],
  section p[style*="font-size: 40px"] {
    font-size: 20px !important;
  }

  /* サービスカード画像の高ささらに縮小 */
  #services a > div:last-child > div {
    height: 180px !important;
  }

  /* AI×採用 写真スライダーさらに縮小 */
  #vision div[style*="height:400px"] {
    height: 220px !important;
  }
  #vision div[style*="width:400px"] {
    width: 220px !important;
  }

  /* フッターリンクは2列を維持(サービス+コンテンツ を1行に) */
  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
}
