/* ===========================================
   Company / Sustainability — Bento Layout
   =========================================== */

.company {
  background-color: var(--color-base);
}

.company__bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin-top: var(--space-4);
}

@media (min-width: 480px) {
  .company__bento {
    gap: var(--space-2);
  }
}

@media (min-width: 768px) {
  .company__bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: var(--space-3);
    margin-top: var(--space-6);
  }
}

.company__cell {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--color-border);
  transition: transform var(--duration-base) var(--ease-out);
  min-width: 0;
}

@media (min-width: 480px) {
  .company__cell {
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    gap: var(--space-1);
  }
}

@media (min-width: 768px) {
  .company__cell {
    padding: var(--space-4);
  }
}

.company__cell:hover {
  transform: translateY(-4px);
}

/* モバイル: ミッションは2列幅、profile/sdgも2列幅、数値カードは1列ずつ */
.company__cell--mission {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--color-text), #004A6B);
  color: var(--color-base);
  padding: var(--space-3);
  text-align: center;
  align-items: center;
}

.company__cell--mission * { color: var(--color-base); }

.company__cell--sdg {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(179, 210, 53, 0.10) 0%, rgba(255, 255, 255, 1) 60%);
  position: relative;
  overflow: hidden;
}

.company__cell--profile {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(34, 190, 240, 0.10) 0%, rgba(255, 255, 255, 1) 60%);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .company__cell--mission {
    grid-column: span 4;
    padding: var(--space-6);
  }

  .company__cell--year { grid-column: span 1; }
  .company__cell--employees { grid-column: span 1; }
  .company__cell--age { grid-column: span 1; }
  .company__cell--revenue { grid-column: span 1; }

  /* SDG / Profile を 2行ぶんの大きなプレミアムカードに */
  .company__cell--sdg,
  .company__cell--profile {
    grid-column: span 2;
    grid-row: span 2;
    padding: var(--space-5) var(--space-5);
    min-height: 440px;
    border-radius: var(--radius-xl);
    box-shadow:
      0 12px 40px rgba(0, 99, 138, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@media (min-width: 1024px) {
  .company__cell--sdg,
  .company__cell--profile {
    padding: var(--space-6);
    min-height: 480px;
  }
}

.company__cell-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent-sky);
  text-transform: uppercase;
}

/* SDG / Profile セルだけラベルを大きく */
.company__cell--sdg .company__cell-label,
.company__cell--profile .company__cell-label {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

@media (min-width: 768px) {
  .company__cell--sdg .company__cell-label,
  .company__cell--profile .company__cell-label {
    font-size: 1.375rem;
    margin-bottom: 0.875rem;
  }
}

.company__cell--mission .company__cell-label {
  color: var(--color-accent-lime);
}

.company__cell-value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 7vw, 2.75rem);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
  word-break: keep-all;
}

.company__cell-value small {
  font-size: 0.5em;
  color: var(--color-text-sub);
  font-weight: var(--fw-medium);
  margin-left: 4px;
}

.company__cell-text {
  font-size: var(--fs-small);
  color: var(--color-text-sub);
  line-height: var(--lh-relaxed);
}

/* SDG / Profile セル内のテキストも少し大きく */
.company__cell--sdg .company__cell-text,
.company__cell--profile .company__cell-text {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-text-sub);
}

@media (min-width: 768px) {
  .company__cell--sdg .company__cell-text,
  .company__cell--profile .company__cell-text {
    font-size: 1rem;
  }
}

/* ============================================================
   会社プロフィールカード — ロゴ + 構造化情報
   ============================================================ */
.company__cell--profile {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 0;
}

/* ロゴエリア（カード上部） */
.company__profile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0, 99, 138, 0.1);
}

.company__profile-logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 99, 138, 0.10));
  transition: transform var(--duration-base) var(--ease-out);
}

@media (min-width: 768px) {
  .company__profile-logo img {
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .company__profile-logo img {
    max-width: 420px;
  }
}

.company__cell--profile:hover .company__profile-logo img {
  transform: scale(1.02);
}

/* 情報リスト */
.company__profile-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

@media (min-width: 768px) {
  .company__profile-info {
    gap: var(--space-3);
  }
}

/* 1行（ラベル + 値） */
.company__profile-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-2);
  align-items: start;
  padding-block: 0.625rem;
  border-bottom: 1px solid rgba(0, 99, 138, 0.06);
}

.company__profile-row:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .company__profile-row {
    grid-template-columns: 110px 1fr;
    padding-block: 0.875rem;
  }
}

.company__profile-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-sky);
  padding-top: 0.25rem;
}

@media (min-width: 768px) {
  .company__profile-label {
    font-size: 0.75rem;
  }
}

.company__profile-value {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

.company__profile-value p {
  margin: 0;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  max-width: none;
}

@media (min-width: 768px) {
  .company__profile-value {
    font-size: 1rem;
  }
}

/* 電話番号リンク */
.company__profile-tel {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  display: inline-block;
}

.company__profile-tel:hover {
  color: var(--color-accent-sky);
}

@media (min-width: 768px) {
  .company__profile-tel {
    font-size: 1.375rem;
  }
}

/* 事業領域タグ */
.company__profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.company__profile-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(34, 190, 240, 0.12), rgba(34, 190, 240, 0.06));
  border: 1px solid rgba(34, 190, 240, 0.2);
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-out);
}

.company__profile-tags span:hover {
  background: linear-gradient(135deg, rgba(34, 190, 240, 0.2), rgba(34, 190, 240, 0.1));
  border-color: var(--color-accent-sky);
  transform: translateY(-1px);
}

.company__mission-title {
  font-size: clamp(1.375rem, 5vw, 2.25rem);
  font-weight: var(--fw-black);
  margin-bottom: var(--space-1);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .company__mission-title {
    margin-bottom: var(--space-2);
  }
}

.company__mission-text {
  font-size: var(--fs-body);
  max-width: 60ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* SDG ロゴ風 */
.company__sdg-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: #26BDE2;
  color: var(--color-base) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-black);
  margin-bottom: var(--space-2);
}

/* ============================================================
   SDG カード — 会社概要カードと統一した構造（ロゴ+情報行）
   ============================================================ */

.company__cell--sdg {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 0;
}

/* SDG 画像エリア（profile-logo と対応） */
.company__sdg-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0, 99, 138, 0.1);
}

.company__sdg-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow:
    0 12px 32px rgba(179, 210, 53, 0.22),
    0 4px 12px rgba(0, 99, 138, 0.08);
  transition: transform var(--duration-base) var(--ease-out);
  display: block;
}

@media (min-width: 768px) {
  .company__sdg-img {
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .company__sdg-img {
    max-width: 420px;
  }
}

.company__cell--sdg:hover .company__sdg-img {
  transform: scale(1.02);
}

/* 情報リスト（profile-info と対応） */
.company__sdg-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

@media (min-width: 768px) {
  .company__sdg-info {
    gap: var(--space-3);
  }
}

/* 1行（ラベル + 値）— profile-row と同形 */
.company__sdg-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-2);
  align-items: start;
  padding-block: 0.625rem;
  border-bottom: 1px solid rgba(0, 99, 138, 0.06);
}

.company__sdg-row:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .company__sdg-row {
    grid-template-columns: 110px 1fr;
    padding-block: 0.875rem;
  }
}

.company__sdg-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-sky);
  padding-top: 0.25rem;
}

@media (min-width: 768px) {
  .company__sdg-label {
    font-size: 0.75rem;
  }
}

.company__sdg-value {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .company__sdg-value {
    font-size: 1rem;
  }
}

/* 数値の強調：ヘッディングフォントで大きくくっきり */
.company__sdg-value strong {
  font-family: var(--font-heading);
  font-size: 1.15em;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
