/**************************************************************************************
*****headerのz-index*****
**************************************************************************************/
.header {
  z-index: 1000;
}

/**************************************************************************************
*****会社情報corporate 部分*****
**************************************************************************************/

.offices_map .content.title {
  position: relative;
  width: 100%;
  padding: 9px;
  border: 5px solid black;
  border-bottom-width: 10px;
  background-color: var(--white);
}

.offices_map .content.title::before,
.offices_map .content.title::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: contain;
}

.offices_map .content.title::before {
  background-image: url(../../assets/images/warpLeft.png);
  background-position: left;
}

.offices_map .content.title::after {
  background-image: url(../../assets/images/warpRight.png);
  background-position: right;
}

.offices_map h2 {
  font-size: 40px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.offices_map h2::after {
  display: inline-block;
  content: attr(data);
  font-size: 12px;
  color: var(--black);
  margin: auto 6px;
}

@media(max-width:997px) {
  .offices_map h2 {
    line-height: 48px;
    flex-direction: column;
  }

  .offices_map h2::after {
    line-height: normal;
  }
}

@media (max-width:576px) {
  .offices_map h2 {
    line-height: 32px;
    font-size: 32px;
  }
}

/**************************************************************************************
*****画面上部のミエグレヒーローと拠点地図ページ 部分*****
**************************************************************************************/

/* 会社情報corporate 部分のcssは上方に記載↑ */

.offices_map {
  padding-bottom: 300px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(5px 0 0 var(--black));
}

.offices_map .background {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 0 var(--black));
}

.offices_map .container {
  padding-top: 30px;
}

.offices_map .wrapper {
  display: block;
  width: 100%;
}

.offices_map .content {
  position: relative;
}

/* 画面上部の拠点一覧テキスト */
.offices_map .offices_list_title {
  display: block;
  text-align: left;
  font-size: 24px;
  letter-spacing: 1.5px;
  padding: 0px 0 20px;
  font-family: "Dela Gothic One";
}

.offices_list_caption {
  text-align: left;
  font-size: 18px;
  font-weight: bold;
}

/* みえぐれひーろーの画像 */
.offices_map .offices_map_hero_img {
  position: absolute;
  bottom: 0;
  left: -20%;
  width: clamp(200px, 30vw, 400px);
  aspect-ratio: 1 / 1;
}

/* 日本地図の画像 */
.offices_map .offices_map_japan_img {
  position: relative;
  z-index: 1;
  width: 80%;
  margin-left: auto;
  margin-right: 0;
  margin-top: -100px;
}

.offices_map .offices_map_japan_img img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 992px) {
  .offices_map .offices_map_hero_img {
    bottom: unset;
    margin-top: 5%;
    left: 15%;
    width: 40%;
  }

  .offices_map {
    min-height: none;
  }

  .offices_list_caption {
    font-size: 24px;
  }

  .offices_map .offices_map_japan_img {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 30% auto 0px;
  }
}

/**************************************************************************************
*****画面中部のオフィス一覧ページ 部分*****
**************************************************************************************/
.offices_info {
  margin-top: -200px;
  padding-bottom: 120px;
  background-color: var(--white);
  background-repeat: repeat;
  background-image: radial-gradient(#00000011 25%, transparent 25%), radial-gradient(#00000011 25%, transparent 25%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
}

.offices_info .container {
  position: relative;
  padding-top: 50px;
  z-index: 5;
}

.offices_info .wrapper.main_office {
  display: block;
}

.offices_info .wrapper.sub_office {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2%;
}

.offices_info .office_info_card {
  position: relative;

  height: auto;
  width: 100%;
  padding: 40px 30px 30px;
  margin-bottom: 60px;

  border: 5px solid black;
  border-bottom-width: 10px;

  background-color: var(--white);
  background-image: url(../asset/offices/shut_2051722625.png);
  background-size: cover;
  background-position: center;
}

.offices_info .office_info_ball {
  position: absolute;
  display: flex;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  height: auto;
  width: 100px;
  aspect-ratio: 1/1;
  min-width: 3rem;
}

.offices_info .office_info_ball::after {
  font-weight: bold;
  position: absolute;
  content: attr(data);
  width: max-content;
  white-space: pre;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  color: var(--white);
  text-wrap: wrap;
}

.offices_info .office_info_ball.white_ball::after {
  font-weight: bold;
  color: var(--black);
}

.offices_info .office_info_text {
  display: flex;
  justify-content: center;
  gap: 30px;
  text-align: left;
  font-weight: bold;
  font-size: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--black);
}

.offices_info .office_map_address {
  margin: auto;
  font-weight: bold;
}

.offices_info .sub_office .office_info_text {
  display: block;
}

@media (max-width: 992px) {
  .offices_info .office_map_address {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .offices_info .sub_office .office_info_text {
    display: flex;
  }

  .offices_info .wrapper.sub_office {
    display: block;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2%;
  }
}

@media (max-width: 576px) {

  .offices_info .sub_office .office_info_text,
  .offices_info .main_office .office_info_text {
    display: block;
  }

  .offices_info .office_tell_fax {
    margin-top: 8px;
  }
}

/**************************************************************************************
*****画面下部の工場一覧ページ 部分*****
**************************************************************************************/
.factories_info {
  background-image: url(../asset/offices/bg3.png);
  background-size: cover;
  /* height: 500px; */
  padding: 120px 0 50px;
}

.factories_info .content {
  width: 100%;
}

.factory_info_card {
  width: 100%;
  position: relative;
  padding: 40px 30px 30px;
  border: 5px solid black;
  border-bottom-width: 10px;
  background-color: var(--white);
  background-image: url(../asset/offices/shut_2051722625.png);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: space-between;
  height: auto;
  margin-bottom: 60px;
  text-align: left;
}

/* とげとげ背景＆工場名 */
.factory_info_ball {
  position: absolute;
  top: -50px;
  left: 50%;
  translate: -50% 0;
  height: 100px;
  width: 100px;
}

.factory_name {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -50px;
  left: 50%;
  translate: -50% 0;
  width: 100px;
  height: 100px;

  text-wrap: nowrap;
  color: var(--white);
  text-align: center;
}

.factory_img {
  width: 160px;
}

.factories_info .office_address {
  font-weight: bold;
  font-size: clamp(15px, 1.5vw, 20px);
  padding-bottom: 15px;
}

.office_address_vertical {
  font-weight: bold;
  font-size: clamp(15px, 1.5vw, 20px);
  padding-bottom: 15px;
  margin-top: 15px;
}

.factories_info .office_tell_fax {
  display: flex;
  justify-content: flex-start;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: bold;
}

.office_tell_fax_vertical {
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: bold;
  margin-top: 15px;
}

.office_plating_tell_fax {
  display: flex;
  justify-content: flex-start;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: bold;
}

.plating_factory {
  display: inline-block;
  font-size: 10px;
  padding-right: 5px;
}

.office_map_address {
  border: 4px solid black;
  border-bottom-width: 8px;
  background-color: var(--white);
  width: 190px;
  height: 60px;
  margin-top: 15px;
  vertical-align: middle;
}

.offive_map_address a:link {
  display: block;
  color: var(--black);
  text-decoration: underline;
}

.check_map_link {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  font-weight: bold;
  color: var(--black);
}

.check_map_link:hover {
  color: red;
}

.pinmark {
  display: block;
  vertical-align: middle;
  color: #333;
  position: relative;
  width: 0.8em;
  height: 0.8em;
  background: currentColor;
  border: 0.1em solid currentColor;
  border-radius: 40% 60% 0% 100% / 40% 100% 0% 60%;
  box-sizing: content-box;
  transform: rotate(45deg);
}

.pinmark::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 18%;
  width: 0.336em;
  height: 0.336em;
  background: #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

@media (max-width: 992px) {

  /* すべての行に適用 */
  .factories_info {
    padding: 100px 0 50px;
  }

  .factory_info_card {
    padding: 60px 2% 30px;
    flex-flow: column;
    justify-content: initial;
    text-align: left;
  }

  .office_tell_sp {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-size: 20px;
    border: 4px solid black;
    border-bottom-width: 6px;
    text-align: center;
    width: 100%;
  }

  .office_fax_sp {
    font-size: 18px;
    padding-bottom: 20px;
  }

  /* １行目のみ適用 */
  .first_factory_card {
    align-items: center;
  }

  .first_factory_card .factory_img {
    width: 100%;
    height: auto;
    max-height: 300px;
    max-width: 500px;
  }

  .first_factory_card .factory_info_text {
    width: 100%;
  }

  .first_factory_card .office_address {
    font-size: 20px;
    text-align: left;
    padding: 20px 0 10px;
  }

  .first_factory_card .office_tell_fax {
    flex-flow: column;
    align-items: center;
  }

  .office_plating_tell_fax {
    flex-flow: column;
  }

  .plating_factory {
    font-size: 20px;
    text-align: left;
    padding-bottom: 10px;
  }

  .office_plating_tell_sp {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border: 4px solid black;
    border-bottom-width: 6px;
    text-align: center;
    width: 100%;
  }

  .office_plating_fax_sp {
    font-size: 18px;
    padding-bottom: 20px;
    text-align: center;
  }

  /* ２，５，６行目に適用 */
  .no_img_card {
    height: auto;
  }

  .office_address_vertical {
    margin-top: 0;
    font-size: 20px;
  }

  .office_tell_fax_vertical {
    margin-top: 0;
    text-align: center;
  }

  .office_map_address {
    margin-top: 0;
    width: 100%;
    font-size: 20px;
    text-align: center;
  }

  /* ３，４行目に適用 */
  .no_plating_card {
    height: auto;
    align-items: center;
  }

  .no_plating_card .factory_img {
    width: 100%;
    height: auto;
    max-height: 300px;
    max-width: 500px;
  }

  .no_plating_card .factory_info_text {
    width: 100%;
  }

  .no_plating_card .office_address {
    font-size: 20px;
    text-align: left;
  }

  .no_plating_card .office_tell_fax {
    flex-flow: column;
    align-items: center;
  }
}