/* =========================================================
  Company Common
========================================================= */

.company-page {
  color: #111;
  background: #fff;
}

.company-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.company-section {
  padding: 80px 0;
}

.company-section--gray {
  background: #f7f7f7;
}

/* Hero
--------------------------------------------------------------------------- */

.company-hero {
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 48%,
    #f4f6f8 48%,
    #f4f6f8 100%
  );
  overflow: hidden;
}

.company-hero__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 48px;
}

.company-hero__label {
  margin: 0 0 12px;
  color: #9b001f;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.company-hero__title {
  margin: 0;
  color: #111;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.company-hero__text {
  margin: 28px 0 0;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 2;
  font-weight: 600;
}

.company-hero__text span {
  white-space: nowrap;
}

.company-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 0 40px;
  object-fit: cover;
}

/* Heading
--------------------------------------------------------------------------- */

.company-heading {
  margin-bottom: 40px;
  text-align: center;
}

.company-heading__en {
  margin: 0 0 8px;
  color: #9b001f;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.company-heading__ja {
  margin: 0;
  color: #111;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Link cards
--------------------------------------------------------------------------- */

.company-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.company-link-card {
  padding: 34px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.company-link-card__label {
  margin: 0 0 10px;
  color: #9b001f;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.company-link-card h3 {
  margin: 0 0 16px;
  color: #111;
  font-size: 1.45rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.company-link-card p {
  margin: 0;
  color: #444;
  font-size: 0.96rem;
  line-height: 1.9;
}

.company-link-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  margin-top: 26px;
  padding: 14px 20px;
  color: #fff !important;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  background: #9b001f;
  border: 1px solid #9b001f;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.company-link-card a::after {
  content: "→";
  margin-left: 10px;
}

.company-link-card a:hover {
  color: #9b001f !important;
  background: #fff;
  transform: translateY(-1px);
}

/* Buttons
--------------------------------------------------------------------------- */

.company-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 14px 22px;
  color: #fff !important;
  background: #9b001f;
  border: 1px solid #9b001f;
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(155, 0, 31, 0.18);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.company-button::after {
  content: "→";
  margin-left: 10px;
}

.company-button:hover {
  color: #9b001f !important;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(155, 0, 31, 0.14);
}

/* Responsive
--------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .company-hero {
    background: #fff;
  }

  .company-hero__inner {
    max-width: 720px;
    min-height: auto;
    padding: 28px 0 0;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .company-hero__image img {
    max-height: 360px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
  }

  .company-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .company-container,
  .company-hero__inner {
    width: min(100% - 28px, 1120px);
  }

  .company-hero__text span {
    white-space: normal;
  }

  .company-section {
    padding: 56px 0;
  }

  .company-link-card {
    padding: 28px 20px;
  }

  .company-link-card h3 {
    font-size: 1.3rem;
  }

  .company-link-card a,
  .company-button {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
}
