.company .m_main .main {
    background-image: url("../img/company/company_top.jpg");
}

.heading-style {
    position: relative;
    border-left: 5px solid #2C4A97;
    padding-left: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    margin: 9rem 0;
    font-size: 32px;
}
.heading-style::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
    margin-left: 20px;
}
.heading-style_sub {
    position: relative;
    border-left: 5px solid #5E7BCB;
    padding-left: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 26px;
}

.mt-8r {
  margin-top: 8rem;
}

.pb-4r {
  padding-bottom: 4rem;
}

.company-profile__value .linkdeco {
  text-decoration: underline;
  text-decoration-color:#2C4A97;
  color: #2C4A97;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.linkdeco:hover {
  opacity: 0.7; 
}

/* ======代表挨拶====== */

.top-message {
  width: 100%;
}
.top-message__title {
  font-size: 30px;
  font-weight: bold;
  margin: 0 0 32px 0;
  line-height: 1.4;
}
.top-message__title-highlight--blue {
  color: #5E7BCB;
}
.top-message__title-highlight--sky {
  color: #5AC1EE;
}
.top-message__text p {
  margin: 0 0 20px 0;
  line-height: 1.8;
}
.top-message__text p:last-child {
  margin-bottom: 0;
}
.top-message__signature {
  margin-top: 40px;
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.top-message__position {
  font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  font-size: 18px;
}
.top-message__name {
  font-family: "Yuji Syuku", serif;
  font-size: 30px;
}


/* ======社名の由来====== */

.company-section__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px; /* 見出し(h2)との間の余白 */
}
.company-section__image {
  flex-shrink: 0;
  width: 300px;
}
.company-section__image img {
  width: 100%;
  height: auto;
  display: block;
}
.company-section__content {
  flex-grow: 1;
}
.company-section__description {
  line-height: 1.7;
  margin-bottom: 24px;
}
.company-section__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  width: 65%;
}
.company-section__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.company-section__term {
  display: flex;
  align-items: center;
  flex-grow: 1;
  margin: 0;
  font-weight: bold;
}
.company-section__term::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: #5E7BCB;
  margin-right: 10px;
  flex-shrink: 0;
}
.company-section__word {
  white-space: nowrap;
}
.company-section__line {
  flex-grow: 1;
  flex-shrink: 0;
  min-width: 20px;
  height: 1px;
  background-color: #ccc;
  margin: 0 16px;
}
.company-section__desc {
  margin: 0;
  font-weight: bold;
  white-space: nowrap;
  min-width: 240px;
}


/* ======会社概要====== */

.company-profile__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}
.company-profile__table.mt-4r {
  margin-top: 4rem;
}
.company-profile__table th,
.company-profile__table td {
  border: 1px solid #ffffff;
  padding: 32px 20px;
  text-align: left;
  vertical-align: middle;
}
.company-profile__table tr:nth-child(2) th,.company-profile__table tr:nth-child(6) th,.company-profile__table tr:nth-child(7) th,.company-profile__table tr:nth-child(8) th,.company-profile__table tr:nth-child(9) th {
  vertical-align: top;
}
.company-profile__label {
  background-color: #E9E9E9;
  font-weight: bold;
  width: 30%;
}
.company-profile__value {
  background-color: #F6F6F6;
  width: 70%;
}
.company-profile__office + .company-profile__office {
  margin-top: 24px;
}
.company-profile__office-title {
  margin: 0 0 6px 0;
  font-size: 16px;
}
.company-profile__address {
  line-height: 1.6;
  margin: 0 0 8px 0;
}
.company-profile__value a.company-profile__map-link,
.company-profile__value a.company-profile__map-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #D71618;
  text-decoration: none;
  padding: 2px 5px;
  background-color: transparent;
  transition: all 0.25s ease;
}
.company-profile__value a.company-profile__map-link:hover {
  background-color: rgba(215, 22, 24, 0.7);
  color: #ffffff !important;
  text-decoration: none;
}
.company-profile__value a.company-profile__map-link:hover .fa-location-dot {
  color: #ffffff !important;
}
.company-profile__officers-grid {
  display: grid;
  grid-template-columns: 112px 1fr;
  row-gap: 4px;
  align-items: center;
}
.company-profile__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}
.company-profile__table th,
.company-profile__table td {
  border: 1px solid #ffffff;
  padding: 32px 20px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.6;
}
.company-profile__label {
  background-color: #E9E9E9;
  font-weight: bold;
  width: 30%;
  white-space: nowrap;
}
.company-profile__value {
  background-color: #F6F6F6;
  width: 70%;
}

/* ======保有許可====== */

.company-license-section {
  width: 100%;
  margin-bottom: 30px;
}
.company-license-section__lead {
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.company-license-section__link a {
  color: #5E7BCB;
  text-decoration: underline;
  transition: opacity 0.25s ease;
}
a.company-license-section__link {
  text-decoration: underline;
  text-decoration-color:#2C4A97;
  color: #2C4A97;
  opacity: 1;
  transition: opacity 0.25s ease;
}
a.company-license-section__link:hover {
  opacity: 0.7; 
}
.company-license-section__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.company-license-section__item {
  display: flex;
  flex-direction: column;
}
.company-license-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.company-license-section__box {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #5E7BCB;
  flex-shrink: 0;
}
.company-license-section__text {
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
}

/* ======許認可====== */

.company-approvals {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
}
.company-approvals__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.company-approvals__item {
  display: flex;
  flex-direction: column;
}
.company-approvals__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.company-approvals__box {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #5E7BCB;
  flex-shrink: 0;
}
.company-approvals__text {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}
.company-approvals__image-wrapper {
  width: 280px;
  flex-shrink: 0;
}
.company-approvals__image {
  width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  display: block;
}


/* ======ハマロードサポーター====== */

.community-activities {
  width: 100%;
}
.community-activities__inner {
  display: flex;
  align-items: center;
  gap: 88px;
  width: 100%;
}
.community-activities__image-wrapper {
  width: 45%;
  flex-shrink: 0;
}
.community-activities__image {
  width: 100%;
  height: auto;
  display: block;
}
.community-activities__content {
  flex: 1;
}
.community-activities__title {
  font-size: 30px;
  font-weight: bold;
  margin: 0 0 24px 0;
  line-height: 1.4;
}
.community-activities__title-highlight--blue {
  color: #5E7BCB;
}
.community-activities__title-highlight--sky {
  color: #5AC1EE;
}
.community-activities__text p {
  margin: 0 0 16px 0;
  line-height: 1.8;
}
.community-activities__text p:last-child {
  margin-bottom: 0;
}

/* ======沿革====== */
.history {
  width: 100%;
}

/* ======環境方針====== */
.environmental-policy {
  width: 100%;
}
.environmental-policy__lead {
  margin: 0 0 40px 0;
  line-height: 1.8;
}
.environmental-policy__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.environmental-policy__item {
  display: flex;
  align-items: center; 
  gap: 32px;
}
.environmental-policy__number {
  font-size: 32px;
  font-weight: bold;
  color: #5E7BCB;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff; 
  border-right: 1.5px solid #B9B9B9; 
  border-bottom: 1.5px solid #B9B9B9; 
  flex-shrink: 0;
}
.environmental-policy__text {
  flex: 1;
  line-height: 1.8;
}


/* ======アクセス====== */

.access-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.access-header__info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.access-map {
  width: 100%;
  margin-bottom: 40px;
}
.access-map iframe {
  width: 100%;
  display: block;
}
.access-detail {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
}
.access-detail__image-wrapper {
  width: 45%;
  flex-shrink: 0;
}
.access-detail__image {
  width: 100%;
  height: auto;
  display: block;
}
.access-detail__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.access-detail__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.access-detail__box {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #5E7BCB;
  flex-shrink: 0;
}
.access-detail__text {
  padding-left: 20px;
  line-height: 1.6;
}
.access-detail__text p {
  margin: 0 0 4px 0;
}
.access-detail__text p:last-child {
  margin-bottom: 0;
}
.access-detail__list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.access-detail__list li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 4px;
}
.access-detail__list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* レスポンシブ対応 (768px以下) */
@media screen and (max-width: 768px) {
    .company-section__inner {
    flex-direction: column;
  }
  .company-section__image {
    width: 220px;
  }
.company-section__line {
  margin: 0
}
  .company-section__list {
    width: 100%;
    font-size: 12px;
  }
  .company-section__line {
    margin: 0 8px; 
  }
  .company-section__desc {
    min-width: auto;
    white-space: normal;
  }
/* ======代表挨拶====== */
  .top-message__title {
    font-size: 24px;
  }
  .top-message__signature {
    margin-top: 28px;
    gap: 16px;
  }
  .top-message__name {
    font-size: 24px;
  }
    /* ======会社概要====== */
  .company-profile__table th,
  .company-profile__table td {
    padding: 20px 16px;
  }
    /* ======許認可====== */
  .company-approvals {
    flex-direction: column;
  }
  .company-approvals__image-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
  }
  /* ======ハマロードサポーター====== */
  .community-activities__inner {
    flex-direction: column;
    gap: 24px;
  }
  .community-activities__image-wrapper {
    width: 100%;
  }
  .community-activities__title {
    font-size: 24px;
  }
    /* ======環境方針====== */
  .environmental-policy__item {
    gap: 16px;
  }

  .environmental-policy__number {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  /* ======アクセス====== */
  .access-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .access-detail {
    flex-direction: column;
    gap: 24px;
  }
  .access-detail__image-wrapper {
    width: 100%;
  }
  
}



@media (max-width: 600px) {
  .company-profile__table,
  .company-profile__table tbody,
  .company-profile__table tr,
  .company-profile__table th,
  .company-profile__table td {
    display: block;
    width: 100%;
  }
  .company-profile__table th {
    border-bottom: none;
  }
}

