/* ============================================
   Company Page Styles
   ============================================ */

/* ========== 会社概要セクション ========== */
.company-profile {
  padding: 80px 0;
  background: var(--color-white);
}
@media (min-width: 768px) {
  .company-profile {
    padding: 100px 0;
  }
}
@media (min-width: 1024px) {
  .company-profile {
    padding: 120px 0;
  }
}
.company-profile__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Profile Table */
.profile-table {
  /* Figma: 最初の行は上線なし */
}
.profile-table__row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 30px 0;
  position: relative;
}
.profile-table__row::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border-light);
}
.profile-table__row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 93px;
  height: 1px;
  background: var(--color-primary);
}
@media (min-width: 768px) {
  .profile-table__row {
    grid-template-columns: 155px 1fr;
    align-items: baseline;
  }
}
.profile-table__label {
  font-family: var(--font-family-accent);
  font-size: 16px;
  font-weight: 900;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .profile-table__label {
    margin-bottom: 0;
  }
}
.profile-table__value {
  font-family: var(--font-family-accent);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-secondary);
  line-height: 28px;
}

/* 免許・資格行 - プライバシーマーク */
.profile-table__license-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 480px) {
  .profile-table__license-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 60px;
  }
}
.profile-table__license-text {
  flex: 0 0 auto;
}
.profile-table__pmark {
  width: 80px;
  height: auto;
}
@media (min-width: 768px) {
  .profile-table__pmark {
    width: 110px;
  }
}

/* ========== 事業所一覧セクション ========== */
.company-office {
  padding: 80px 0;
  background: var(--color-white);
}
@media (min-width: 768px) {
  .company-office {
    padding: 100px 0;
  }
}
@media (min-width: 1024px) {
  .company-office {
    padding: 120px 0;
  }
}
.company-office__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.company-office__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}
@media (min-width: 768px) {
  .company-office__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 30px;
  }
}

/* Office Card */
.office-card {
  display: flex;
  flex-direction: column;
}
.office-card__map {
  width: 100%;
  height: 200px;
  background: var(--color-bg-gray);
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .office-card__map {
    max-width: 525px;
    height: 250px;
  }
}
.office-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.office-card__body {
  padding: 0;
}
.office-card__title {
  font-family: var(--font-family-accent);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0;
}
.office-card__address {
  font-family: var(--font-family-accent);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-secondary);
  line-height: 1.85;
  margin-top: 4px;
  margin-bottom: 4px;
}
.office-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
  margin-top: 26px;
}
.office-card__link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.office-card__link-text {
  transition: color 0.2s ease;
}
.office-card__link:hover .office-card__link-text {
  color: var(--color-primary);
}

/* ========== SPレスポンシブ調整 ========== */
@media (max-width: 767px) {
  /* セクション共通 */
  .company-profile,
  .company-office {
    padding: 50px 0;
  }

  /* Profile Table SP */
  .profile-table__row {
    padding: 20px 0;
  }
  .profile-table__label {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .profile-table__value {
    font-size: 14px;
    line-height: 1.85;
  }

  /* Office Card SP */
  .company-office__grid {
    gap: 40px;
  }
  .office-card__map {
    height: 180px;
    margin-bottom: 20px;
    border-radius: 15px;
  }
  .office-card__title {
    font-size: 22px;
  }
  .office-card__address {
    font-size: 14px;
    margin-top: 2px;
  }
  .office-card__link {
    font-size: 16px;
    margin-top: 16px;
    gap: 8px;
  }
  .office-card__link-icon {
    width: 18px;
    height: 18px;
  }
}
