/* Page: Company Profile */

/* ===== Company Info (Vertical List) ===== */
/* .company-info {
  max-width: 800px;
} */

.company-info__item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ccc;
}

/* .company-info__item:last-child {
  border-bottom: none;
} */

.company-info__label {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary, #e60012);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.company-info__label::before {
  content: "●";
  margin-right: 8px;
  font-size: 10px;
}

.company-info__value {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  padding-left: 22px;
}

.company-info__sp-break {
  display: none;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  line-height: 1.7;
}

.company-table th {
  width: 180px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  vertical-align: top;
}

.company-table td {
  /* color: #333; */
}

.company-table td ul {
  margin: 0;
  padding-left: 20px;
}

.company-table td li {
  margin-bottom: 4px;
}

.company-mission {
  text-align: center;
  padding: 40px 0;
}

.company-mission__main {
  /* font-family: "Zen Old Mincho", serif; */
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.company-mission__sub {
  /* font-family: var(--font-en, "Inter"), sans-serif; */
  font-size: 16px;
  font-weight: 600;
  color: #e60012;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.company-mission__desc {
  font-size: 16px;
  line-height: 1.8;
  /* color: #333; */
  max-width: 700px;
  margin: 0 auto;
}

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

.company-access__map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
}

.company-table tr:nth-child(even) {
  background: #fafafa;
}

.company-access__info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.company-access__info p {
  font-size: 15px;
  line-height: 1.7;
  /* color: #333; */
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .company-table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .company-table td {
    display: block;
    padding-top: 0;
  }
  .company-access {
    grid-template-columns: 1fr;
  }
}

/* ===== Tab Navigation ===== */
.company-tabs {
  padding: 32px 0;
  border-bottom: 1px solid #ccc;
}

.company-tabs__nav {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.company-tabs__btn {
  padding: 0px 36px;
  border: 2px solid var(--color-primary, #e60012);
  border-radius: 30px;
  background: #fff;
  color: var(--color-primary, #e60012);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 240px;
  height: 44px;
}

.company-tabs__btn--active,
.company-tabs__btn:hover {
  background: var(--color-primary, #e60012);
  color: #fff;
}

/* ===== Office List ===== */
.offices-list {
  max-width: 800px;
  margin: 0 auto;
}

.office-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
}

/* .office-item:last-child {
  border-bottom: none;
} */

.office-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-primary, #e60012);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.office-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.office-item__name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--color-primary);
}

.office-item__info p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .company-tabs__nav {
    flex-direction: row;
    gap: 8px;
  }
  .company-tabs__btn {
    padding: 0px 20px;
    font-size: 9px;
    font-weight: 400;
    width: 150px;
    height: 27.5px;
  }
  .company-tabs {
    padding: 18px 0;
  }
}

/* ===== Offices 2-column Layout ===== */
.offices-layout {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 40px;
  align-items: flex-start;
}

.offices-map {
  position: sticky;
  top: 100px;
}

.offices-map__placeholder {
  min-height: 600px;
}

@media (max-width: 768px) {
  .offices-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .offices-map {
    position: static;
    order: -1;
  }
  .offices-map__placeholder {
    position: static;
    min-height: auto;
  }
  .offices-map__placeholder > div,
  .offices-map__placeholder > img {
    height: auto !important;
    min-height: 250px;
  }
  /* .office-item__name {
    font-size: 16px;
  } */
  /* .office-item__info p {
    font-size: 13px;
  } */
  .section {
    padding-bottom: 10px;
  }
  .company-info {
    max-width: 100%;
  }
  .company-info__item {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }
  .company-info__label {
    font-size: 15px;
  }
  .company-info__value {
    font-size: 15px;
    padding-left: 18px;
  }
  .company-info__sp-break {
    display: block;
  }
  .company-info__value img {
    height: 35px !important;
  }
}

/* ===== Group List (グループ一覧) ===== */
.container--group {
  max-width: 1400px;
}

.group-layout {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 48px;
  align-items: flex-start;
}

.group-map {
  position: sticky;
  top: 100px;
}

.group-map__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Segment */
.group-segment {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.group-segment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.group-segment__title {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
  color: var(--color-primary, #e60012);
  margin-bottom: 10px;
  /* letter-spacing: 0.05em; */
}

.group-segment__desc {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
}

.group-segment__desc li {
  font-size: 15px;
  line-height: 1.4;
  /* color: #333; */
  margin-bottom: 8px;
}

.group-segment__sub {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary, #e60012);
  margin-bottom: 16px;
}

/* Affiliates Grid */
.group-affiliates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.group-affiliate {
  display: flex;
  align-items: center;
  gap: 8px;
  /* background: #fff; */
  border-radius: 8px;
  min-height: 52px;
}

.group-affiliate__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-primary, #e60012);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.group-affiliate__logo {
  max-width: 170px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .group-layout {
    grid-template-columns: 1fr;
  }
  .group-map {
    position: static;
    max-width: 420px;
    margin: 0 auto 32px;
  }
  .group-affiliates {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .group-affiliates {
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
  }
  .group-segment__sub {
    margin-bottom: 0px;
  }
  .group-segment {
    padding-bottom: 28px;
    margin-bottom: 0px;
    border-bottom: none;
  }
  .group-affiliate__logo {
    max-width: 131px;
    max-height: 37px;
  }
  /* .group-affiliate {
    background: none;
  } */
  /* .group-affiliate__num {
    width: 18px;
    height: 18px;
    font-size: 10px;
  } */
}
