/* ==========================================================================
   about.css — 会社情報ページ専用スタイル
   フロントページのデザイン言語に準拠（白基調・primary blue）
   ========================================================================== */

/* ------------------------------------------------------------------
   スクロールフェードイン
   ------------------------------------------------------------------ */
.js-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-fade.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-fade { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------
   共通ユーティリティ
   ------------------------------------------------------------------ */

/* section-label（フロントページの .section-label に準拠） */
.ab-label {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* section-title（フロントページの .section-title に準拠） */
.ab-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  font-style: normal;
}

.ab-em {
  color: var(--color-primary);
  font-style: normal;
}

.ab-section-lead {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* 透かし背景テキスト（フロントページの .udemy-bg-scroll に準拠） */
.ab-bg-word {
  position: absolute;
  top: 50%;
  left: 0;
  font-size: clamp(80px, 14vw, 130px);
  font-weight: 900;
  color: rgba(2, 132, 199, 0.055);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  /* transform は JS がスクロールに合わせて上書きする */
  transform: translateY(-50%) translateX(-30vw);
  letter-spacing: -0.02em;
  line-height: 1;
  will-change: transform;
}
.ab-bg-word--right {
  transform: translateY(-50%) translateX(10vw);
}

/* ------------------------------------------------------------------
   Hero — フロントページ .hero に準拠
   ------------------------------------------------------------------ */
.ab-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(to bottom, rgba(8, 16, 28, 0.62) 0%, rgba(8, 16, 28, 0.52) 100%),
    url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=1600&q=80');
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
}

.ab-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(60px, 10vw, 100px);
}

.ab-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
}

.ab-hero__title {
  font-size: clamp(1.9rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.7),
    0 4px 24px rgba(0,0,0,0.55),
    0 8px 48px rgba(0,0,0,0.35);
}

.ab-hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* スクロール矢印 */
.ab-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.ab-hero__scroll span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.55));
  animation: abScrollDrop 1.9s ease-in-out infinite;
  transform-origin: top;
}
@keyframes abScrollDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero__scroll span { animation: none; opacity: 0.3; }
}

/* ------------------------------------------------------------------
   Company Intro — split layout
   ------------------------------------------------------------------ */
.ab-intro {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.ab-intro__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.ab-h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0.4rem 0 1.25rem;
}

.ab-intro__text p {
  color: var(--color-text-mid);
  line-height: 1.9;
  margin-bottom: 0.9rem;
}
.ab-intro__text p:last-child { margin-bottom: 0; }

.ab-intro__img {
  display: flex;
  justify-content: center;
}

.ab-circle-img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  will-change: transform;
}

@media (max-width: 900px) {
  .ab-intro__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ab-circle-img { max-width: 300px; }
}

/* ------------------------------------------------------------------
   Numbers — count-up
   ------------------------------------------------------------------ */
.ab-numbers {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 0;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.ab-numbers .ab-label { margin-bottom: 2rem; }

.ab-numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.ab-numbers__row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.5rem;
}

.ab-numbers__pre {
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--color-text-muted);
  align-self: center;
  margin-right: 0.3rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ab-numbers__pre.is-visible {
  opacity: 1;
}

.ab-numbers__num {
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ab-numbers__unit {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.ab-numbers__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .ab-numbers__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ------------------------------------------------------------------
   Parallax breaks
   ------------------------------------------------------------------ */
.ab-parallax {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.ab-parallax--1 {
  background-image:
    linear-gradient(rgba(10,18,32,0.65), rgba(10,18,32,0.65)),
    url('../images/kawagoe.avif');
}

.ab-parallax--2 {
  background-image:
    linear-gradient(rgba(10,18,32,0.62), rgba(10,18,32,0.62)),
    url('../images/partner.webp');
}

.ab-parallax__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--wrap-pad);
}

.ab-parallax__quote {
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.ab-parallax__sub {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.ab-parallax__blockquote {
  font-size: clamp(1.05rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.ab-parallax__blockquote em {
  color: var(--color-primary-light);
  font-style: normal;
}

/* ------------------------------------------------------------------
   4 Reasons — service-card スタイル
   ------------------------------------------------------------------ */
.ab-reasons {
  padding: var(--section-padding) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.ab-reasons__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ab-reason-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ab-reason-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ab-reason-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.ab-reason-icon--blue   { background: rgba(2,132,199,0.1);   color: var(--color-primary); }
.ab-reason-icon--purple { background: rgba(124,58,237,0.1);  color: #7c3aed; }
.ab-reason-icon--red    { background: rgba(239,68,68,0.1);   color: #ef4444; }
.ab-reason-icon--green  { background: rgba(16,185,129,0.1);  color: #10b981; }

.ab-reason-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.ab-reason-body {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 640px) {
  .ab-reasons__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   CEO Message — 3 cards
   ------------------------------------------------------------------ */
.ab-ceo {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-light);
}

.ab-ceo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.ab-ceo-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.ab-ceo-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.ab-ceo-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.ab-ceo-card p {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 860px) {
  .ab-ceo__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Profile
   ------------------------------------------------------------------ */
.ab-profile {
  padding: var(--section-padding) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.ab-profile__card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  align-items: start;
  border: 1px solid var(--color-border-light);
}

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

.ab-profile__avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}

.ab-profile__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.15rem;
}
.ab-profile__name-en {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}
.ab-profile__role {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 700;
  background: var(--color-primary-pale);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  display: inline-block;
  margin: 0;
}

.ab-profile__body p {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  line-height: 1.9;
  margin-bottom: 0.9rem;
}
.ab-profile__body p:last-child { margin-bottom: 0; }

.ab-profile__fun {
  font-size: 0.9rem !important;
  color: var(--color-text-muted) !important;
  border-left: 3px solid var(--color-primary-pale);
  padding-left: 1rem;
}

.ab-profile__body code {
  background: var(--color-bg-mid);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  color: var(--color-primary-dark);
}

@media (max-width: 680px) {
  .ab-profile__card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
  }
}

/* ------------------------------------------------------------------
   Vision
   ------------------------------------------------------------------ */
.ab-vision {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-light);
}

.ab-vision__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.ab-vision__block {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.ab-vision__icon {
  font-size: 1.8rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 1rem;
}

.ab-vision__block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.ab-vision__block p {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.85;
  margin: 0;
}

/* 大きな引用ブロック */
.ab-vision__quote {
  text-align: center;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  color: var(--color-text);
  line-height: 1.9;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.ab-vision__quote strong {
  color: var(--color-primary);
}

@media (max-width: 680px) {
  .ab-vision__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Company info table
   ------------------------------------------------------------------ */
.ab-info {
  padding: var(--section-padding) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.ab-info__wrap {
  max-width: 720px;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.ab-info__table {
  width: 100%;
  border-collapse: collapse;
}

.ab-info__table th,
.ab-info__table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.7;
}

.ab-info__table tr:last-child th,
.ab-info__table tr:last-child td { border-bottom: none; }

.ab-info__table th {
  width: 170px;
  white-space: nowrap;
  color: var(--color-text-mid);
  font-weight: 600;
  background: var(--color-bg-soft);
}

.ab-info__list {
  margin: 0;
  padding: 0 0 0 1.1em;
  list-style: disc;
}
.ab-info__list li { margin-bottom: 0.25rem; }
.ab-info__list li:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  .ab-info__table th,
  .ab-info__table td { display: block; width: 100%; padding: 0.6rem 1rem; }
  .ab-info__table th {
    border-bottom: none;
    font-size: 0.8rem;
    background: var(--color-primary-pale);
    color: var(--color-primary-dark);
    white-space: normal;
  }
}

/* ------------------------------------------------------------------
   Map
   ------------------------------------------------------------------ */
.ab-map {
  padding-top: var(--section-padding);
}

.ab-map__canvas {
  width: 100%;
  height: 440px;
  display: block;
  margin-top: 2rem;
}

.leaflet-popup-content a { color: var(--color-primary); }
