/* 会社概要ページ用スタイル */

/* ========= Scroll Animations ========= */
[data-animate] {
  --animate-offset: translate3d(0, 48px, 0);
  --delay: 0s;
  opacity: 0;
  transform: var(--animate-offset);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--delay);
}
[data-animate][data-animate="fade-up"] { --animate-offset: translate3d(0, 48px, 0); }
[data-animate][data-animate="fade-left"] { --animate-offset: translate3d(-48px, 0, 0); }
[data-animate][data-animate="fade-right"] { --animate-offset: translate3d(48px, 0, 0); }
[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ========= Hero ========= */
.company-hero {
  position: relative;
  margin-top: 60px;
  min-height: 75vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .55) 0%, rgba(30, 41, 59, .45) 50%, rgba(15, 23, 42, .6) 100%),
    url('assets/img/oldcompany.jpg') center/cover no-repeat fixed;
}
.company-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, .15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, .1) 0%, transparent 50%);
  pointer-events: none;
}
.company-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(15, 23, 42, .9), transparent);
  pointer-events: none;
}

.company-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(100px, 15vh, 140px) clamp(20px, 5vw, 48px);
  min-height: auto;
}
.company-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
}
.company-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}
.company-hero__label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .65);
}
.company-hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, .85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.company-hero__lead {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, .95);
  text-transform: uppercase;
}
.company-hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-content: start;
}
.hero-metric {
  position: relative;
  padding: 26px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(15, 19, 30, .08);
  box-shadow: 0 15px 35px rgba(7, 8, 12, .18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1f2535;
}
.hero-metric__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(31, 37, 53, .65);
}
.hero-metric__value {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-metric__accent {
  font-size: 1.4rem;
  font-weight: 600;
  color: #c0592f;
}
.hero-metric__unit {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(31, 37, 53, .65);
}
.hero-metric__note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(31, 37, 53, .8);
}

/* ========= Stats Bar ========= */
.company-stats {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding: clamp(50px, 7vw, 80px) 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(40px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 24px);
  position: relative;
}
.stat-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .15), transparent);
}
.stat-item:last-child::after {
  display: none;
}
.stat-value {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, .7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: visible;
}
.stat-label {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  color: rgba(255, 255, 255, .65);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  white-space: nowrap;
  overflow: visible;
}

/* ========= Layout ========= */
.company-main {
  background: #f5f6f9;
}
.company-section {
  position: relative;
  padding: clamp(72px, 12vw, 110px) 0;
  background: #fff;
  overflow: hidden;
}
.company-section:nth-of-type(even) {
  background: linear-gradient(180deg, #fbfbfd 0%, #fff 100%);
}
.company-section .container {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.company-section__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 64px);
}
.company-section__header h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  letter-spacing: .02em;
  color: #181d2f;
}
.company-section__header h2::after {
  content: "";
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #d50012 0%, rgba(213, 0, 18, 0) 100%);
}
.company-section__header p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: #555e6f;
}

/* ========= Profile ========= */
.company-profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  margin: 0;
}
.company-profile__item {
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.9), #fff);
  border-radius: 20px;
  border: 1px solid rgba(14, 24, 60, .08);
  box-shadow: 0 22px 50px rgba(10, 30, 80, .06);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.company-profile dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #9b0a1a;
  text-transform: uppercase;
}
.company-profile dd {
  margin: 0;
  font-size: 0.98rem;
  color: #1f2636;
  line-height: 1.7;
}
.company-profile a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.company-profile__note {
  margin: clamp(24px, 4vw, 32px) 0 0;
  font-size: 0.82rem;
  color: #7b889c;
  text-align: right;
}

/* ========= Message ========= */
.company-message {
  background: radial-gradient(120% 160% at 10% 0%, #ffe9ed 0%, #fff7f8 40%, #ffffff 100%);
}
.company-message__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: stretch;
}
.company-message__panel {
  margin: 0;
  padding: clamp(40px, 7vw, 56px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(213, 0, 18, .12);
  border: 1px solid rgba(213, 0, 18, .12);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 24px);
  color-scheme: light;
}
.company-message__photo {
  border-radius: 28px;
  min-height: 360px;
  background: linear-gradient(140deg, rgba(213, 0, 18, .16), rgba(255, 138, 0, .08));
  border: 1px dashed rgba(213, 0, 18, .35);
  box-shadow: 0 30px 70px rgba(213, 0, 18, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #b50000;
  font-weight: 700;
  letter-spacing: 0.08em;
  background-size: cover;
  background-position: center;
  position: relative;
}
.company-message__photo span {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.6;
}
.company-message__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(213, 0, 18, .12);
  color: #b50000;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  font-weight: 700;
}
.company-message__panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: #b50000;
}
.company-message__panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: #2c3243;
}
.company-message__sign {
  margin-top: 16px;
  align-self: flex-end;
  font-weight: 700;
  letter-spacing: .06em;
  color: #991019;
}
.company-message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
@media (max-width: 960px) {
  .company-message__layout {
    grid-template-columns: 1fr;
  }
  .company-message__photo {
    min-height: 280px;
  }
}

/* ========= Pillars ========= */
.company-pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 4vw, 28px);
}
.company-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(246, 250, 255, 0.92));
  border: 1px solid rgba(10, 40, 80, .06);
  box-shadow: 0 24px 48px rgba(20, 30, 70, .08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color-scheme: light;
}
.company-card::before {
  content: "";
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d50012 0%, #ff8a00 100%);
}
.company-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #202538;
}
.company-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.85;
  color: #4b5063;
}

/* ========= History ========= */
.company-history__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.company-history__list::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(213, 0, 18, .7) 0%, rgba(213, 0, 18, 0) 100%);
}
.company-history__item {
  position: relative;
  margin-left: 0;
  padding: 0 0 28px 56px;
}
.company-history__item:last-child {
  padding-bottom: 0;
}
.company-history__item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #d50012;
  box-shadow: 0 0 0 6px rgba(213, 0, 18, .12);
}
.company-history__year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  color: #d50012;
  text-transform: uppercase;
}
.company-history__year::after {
  content: "";
  width: 36px;
  height: 1px;
  background: rgba(213, 0, 18, .45);
}
.company-history__detail {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.8;
  color: #2d3141;
}
.company-history__note {
  margin-top: clamp(28px, 5vw, 36px);
  font-size: 0.82rem;
  text-align: right;
  color: #7b889c;
}

/* ========= Facts ========= */
.company-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 4vw, 28px);
}
.fact-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(245, 249, 255, .9));
  border: 1px solid rgba(40, 50, 90, .06);
  box-shadow: 0 22px 44px rgba(20, 30, 70, .08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color-scheme: light;
}
.fact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(213, 0, 18, .08);
  pointer-events: none;
}
.fact-card__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #b50000;
  letter-spacing: .04em;
}
.fact-card__label {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4b5063;
}
.company-facts__note {
  margin-top: clamp(24px, 4vw, 30px);
  font-size: 0.82rem;
  color: #7b889c;
  text-align: right;
}

/* ========= CTA ========= */
.company-cta {
  background: linear-gradient(140deg, #fdeff0 0%, #ffffff 60%, #f8f5ff 100%);
}
.company-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 6vw, 48px);
  align-items: center;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(80, 15, 40, .12);
  border: 1px solid rgba(213, 0, 18, .12);
  padding: clamp(36px, 6vw, 52px);
}
.company-cta__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.company-cta__text h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: #b50000;
}
.company-cta__text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #2d3141;
}
.company-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.company-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* ========= Responsive ========= */
@media (max-width: 1080px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .stat-item::after {
    display: none;
  }
  .stat-item:nth-child(odd)::after {
    display: block;
  }
  .stat-item:nth-last-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .company-hero {
    min-height: 75vh;
    margin-top: 60px;
    background-attachment: scroll;
  }
  .company-hero__inner {
    padding: clamp(80px, 15vh, 120px) clamp(20px, 6vw, 32px);
    min-height: auto;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stat-item {
    padding: 24px 16px;
  }
  .stat-item::after {
    display: none !important;
  }
  .stat-value {
    white-space: normal;
    font-size: 2rem;
  }
  .stat-label {
    white-space: normal;
    font-size: 0.85rem;
  }
  .company-section__header {
    text-align: left;
  }
  .company-section__header h2 {
    justify-content: flex-start;
  }
  .company-section__header h2::after {
    width: 36px;
  }
  .company-history__list::before {
    left: 10px;
  }
  .company-history__item {
    padding-left: 48px;
  }
  .company-history__item::before {
    left: 1px;
  }
  .company-cta__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .company-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .company-hero {
    margin-top: 28px;
  }
  .company-hero__label {
    letter-spacing: 0.22em;
    padding: 5px 12px;
  }
  .hero-metric {
    padding: 22px 20px;
  }
  .company-card {
    padding: 24px 20px;
  }
  .company-history__item {
    padding-left: 42px;
  }
  .company-cta__inner {
    padding: 32px 24px;
  }
  .company-btn {
    width: 100%;
    justify-content: center;
  }
}
