/* ============================================
   AGILOX Japan - Company Page Styles
   本国サイト (agilox.net/en/company/) デザイン準拠

   Typography: style.css のグローバル定義を継承
     h1: clamp(36px, 5vw, 65px), w700, uppercase
     h2: clamp(28px, 3.5vw, 40px), w700, uppercase
     h3: clamp(22px, 2.5vw, 30px), w700
     p:  16px, line-height 1.5
   ============================================ */

/* --- SECTION 1: Company Hero --- */
.company-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--header-height);
}

.company-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.company-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 60px;
}

.company-hero__content h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.company-hero__subtitle {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 30px;
}

/* --- SECTION 1.5: CTO Quote (/en/company/ ヒーロー下準拠) --- */
.company-quote {
  background-color: #1b2227;
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.company-quote__icon {
  margin-bottom: 24px;
}

.company-quote__text {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.5;
  margin: 0 auto 30px;
}

.company-quote__author {
  color: var(--color-white);
}

/* --- SECTION 2: About AGILOX (locations HQ デザイン準拠) --- */
.company-about {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 100px 0;
}

.company-about__heading {
  color: var(--color-green);
  text-align: center;
  margin-bottom: 50px;
}

.company-about__content {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

.company-about__image img {
  width: 100%;
  height: auto;
  display: block;
}

.company-about__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.company-about__location svg {
  flex-shrink: 0;
}

.company-about__text p {
  color: var(--color-white);
}

/* Address Block */
.company-about__address {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-about__address-heading {
  font-size: 20px;
  font-style: italic;
  color: var(--color-green);
  margin-bottom: 16px;
}

.company-about__address p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-white);
  margin-bottom: 4px;
}

.company-about__address a {
  color: var(--color-green);
  text-decoration: none;
}

.company-about__address a:hover {
  text-decoration: underline;
}

/* --- SECTION 3: History Timeline Slider (/en/company/ 準拠) --- */
.company-history {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-slider {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.timeline-slider__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-green);
  cursor: pointer;
  transition: opacity 0.2s;
}

.timeline-slider__arrow:hover {
  opacity: 0.7;
}

.timeline-slider__track {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.timeline-slider__slide {
  display: none;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px;
  animation: fadeIn 0.4s ease;
}

.timeline-slider__slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.timeline-slider__year {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.timeline-slider__title {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--color-green);
  margin-bottom: 20px;
}

.timeline-slider__slide p {
  color: var(--color-white);
}

/* --- SECTION 4: Distributor --- */
.company-distributor {
  /* background-color: #F2F3F8; */
  color: var(--color-text-dark);
  padding: 100px 0;
}

.company-distributor__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.company-distributor__text h2 {
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.company-distributor__text h3 {
  color: var(--color-green);
  margin-bottom: 24px;
}

.company-distributor__text p {
  color: var(--color-text-dark);
}

/* Info Box */
.company-distributor__info-box {
  background: var(--color-white);
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.company-distributor__info-box h4 {
  font-size: 20px;
  text-transform: uppercase;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-green);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.info-list dt {
  font-weight: 700;
  color: var(--color-text-dark);
  white-space: nowrap;
}

.info-list dd {
  color: var(--color-text-dark);
}

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

@media (max-width: 1024px) {
  .company-about__content,
  .company-distributor__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .company-hero {
    height: auto;
    min-height: 400px;
    padding: 120px 0 60px;
  }

  .company-hero__content {
    padding: 0 20px;
  }

  .company-about,
  .company-distributor {
    padding: 60px 0;
  }

  .company-about__heading {
    margin-bottom: 30px;
  }

  .company-history {
    padding: 60px 0;
  }

  .timeline-slider__slide {
    padding: 0 20px;
  }

  .company-distributor__info-box {
    padding: 30px 20px;
  }
}
