@charset "utf-8";

/* all
------------------------------*/
.p-agencies {
  padding: 0 30px;
  overflow: hidden;
  margin-bottom: 160px;
}

@media all and (max-width: 1000px) {
  .p-agencies {
    margin-bottom: 120px;
  }
}
@media all and (max-width: 576px) {
  .p-agencies {
    padding: 0 20px;
  }
}
.p-agencies__inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* mv
------------------------------*/
.p-mv {
  padding-bottom: 100px;
}
@media all and (max-width: 1000px) {
  .p-mv {
    padding-bottom: 80px;
  }
}

.p-mv__pagenav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-mv__pagenav-list {
  display: inline-flex;
  gap: 0 80px;
  justify-content: center;
  align-items: flex-end;
  margin: 0 auto;
  padding: 0 0 100px;
}

@media all and (max-width: 1000px) {
  .p-mv__pagenav-list {
    gap: 0 60px;
    padding: 0 0 80px;
  }
}

@media all and (max-width: 900px) {
  .p-mv__pagenav-list {
    gap: 0 50px;
  }
}

@media all and (max-width: 800px) {
  .p-mv__pagenav-list{
    gap: 38px;
  }
}

.p-mv__pagenav-list br { 
  display: none;
}

@media all and (max-width: 1000px) {
  .p-mv__pagenav-list br { 
    display: inline;
  }
}

.p-mv__pagenav-list-item {
  list-style: none;
}

.p-mv__pagenav-list-item > a {
  position: relative;
  display: block;
  padding-bottom: 20px;
  text-align: center;
  font-size: 18px;
  color: #1f2426;
  line-height: 1.3;
  text-decoration: none;
}

@media all and (max-width: 576px) {
  .p-mv__pagenav-list-item > a {
    font-size: 16px;
  }
}

.p-mv__pagenav-list-item > a:hover {
  color: #dc000c;
}

.p-mv__pagenav-list-item > a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  margin: auto;
  border-style: solid;
  border-width: 7px 5px 0 5px;
  border-color: #939a9b transparent transparent transparent;
  pointer-events: none;
}

.p-mv__pagenav-list-item > a:hover::before {
  bottom: -5px;
  border-color: #dc000c transparent transparent transparent;
}

.p-mv__desc {
}

.p-mv__descTxt {
  font-size: 16px;
  line-height: 2;
}


/* agencies list
------------------------------*/
.p-agenciesList + .p-agenciesList {
  margin-top: 170px;
}

@media all and (max-width: 1000px) {
  .p-agenciesList + .p-agenciesList {
    margin-top: 120px;
  }
}

@media all and (max-width: 576px) {
  .p-agenciesList + .p-agenciesList {
    margin-top: 72px;
  }
}

.p-agenciesList__content {
  max-width: 800px;
  margin: 60px auto 0;
  width: 100%;
}

@media all and (max-width: 576px) {
  .p-agenciesList__content {
    margin: 40px auto 0;
  }
}

/* table
------------------------------*/
.p-agenciesList__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.p-agenciesList__table th,
.p-agenciesList__table td {
  border: 1px solid #D7DBDE;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
}

.p-agenciesList__table thead th {
  background: #EFF2F5;
  text-align: center;
  line-height: 30px;
}

.p-agenciesList__table thead th:nth-child(1) {
  width: 50px;
  padding: 10px;
}

.p-agenciesList__table thead th:nth-child(3) {
  width: 300px;
}

.p-agenciesList__table tbody tr td:nth-child(1) {
  background: #EFF2F5;
  padding: 10px;
}

.p-agenciesList__table td:nth-child(1) {
  text-align: center;
}

.p-agenciesList__table td a {
  color: #1f2426;
  text-decoration: underline;
}

.p-agenciesList__table td a:hover {
  color: #dc000c;
  text-decoration-color: transparent;
}

.is-pc .p-agenciesList__table td a[href^="tel"] {
  text-decoration: none;
  pointer-events: none;
}

.p-agenciesList__note {
  text-align: right;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}

/* SP card layout */
@media all and (max-width: 576px) {
  .p-agenciesList__table thead {
    display: none;
  }

  .p-agenciesList__table,
  .p-agenciesList__table tbody {
    display: block;
  }

  .p-agenciesList__table tr {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    border: 1px solid #D7DBDE;
    margin-top: -1px;
  }

  .p-agenciesList__table td {
    border: none;
    padding: 0;
    width: auto;
    font-size: 14px;
    line-height: 1.5;
  }

  .p-agenciesList__table td:nth-child(1) {
    grid-row: 1 / 3;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-right: 1px solid #D7DBDE;
  }
  
  .p-agenciesList__table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 6px;
    padding: 15px 20px;
    border-bottom: 1px solid #D7DBDE;
  }

  .p-agenciesList__table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    padding: 10px 20px 9px;
  }

  .p-agenciesList__table td:nth-child(3)::before {
    content: "連絡先";
    font-size: 14px;
    line-height: 1.5;
    display: block;
    margin-bottom: 5px;
  }
}
