@charset "UTF-8";

/* =========================================
   タイトルエリア
========================================= */

#equipment h2 {
  width: 100%;
  color: var(--color-gray);
  background-color: var(--color-gray-pale);
  text-align: left;
  padding: 1.5rem 0 1.5rem 2rem;
  font-weight: 500;
  margin-bottom: 3rem;
}

#equipment h3 {margin-bottom: 1rem;}

#equipment .title-en {
  display: block;
  font-family: var(--font-en);
  color:#acadae;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
#equipment .title-ja{font-weight: 500;}

@media screen and (max-width: 768px) {
  #equipment h2 {
    background-color:var(--color-white);
    text-align: center;
    padding: 0;
  }
  #equipment h3{text-align: center;}
  .title-en, .title-ja {font-weight: 500;}
  .title-en{font-size: var(--s26);}
  .title-ja {font-size: var(--s20);}
  #zenibako-factory h3{margin-top: 5rem;}
}
/* =========================================
   マップ
========================================= */

.map {
  width: 100%;
  height: auto;
}

.map rect,
.map polygon {
  transition: fill 0.3s ease;
}

/* ホバー時 */
.map a:hover rect {
  fill: rgba(255, 255, 255, 0.5);
}

.map a:hover polygon {
  fill: rgba(255, 255, 255, 0.5);
}
.text-layout{
   text-align: right;
   margin-bottom: 5rem;
}
@media screen and (max-width: 768px) {
 .text-layout{font-size: var(--s12);}
}
/* =========================================
   モーダル（ポップアップ）
========================================= */

/* 初期状態（非表示） */
.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(90vw, 900px);
  aspect-ratio: 16 / 11;
  background-color: var(--color-gray);
  z-index: 99;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);

  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 表示状態 */
.modal:target {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal-content {
  position: absolute;
  inset: 0;
  padding: 1rem;
}

.modal-content img {
  max-width: 100%;
  height: auto;
}

/* 閉じるボタン */
.close {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  color: var(--color-gray-light);
  text-decoration: none;
  font-size: var(--s30);
}

.close span {
  font-size: var(--s14);
  margin-right: 0.3rem;
  vertical-align: middle;
}
@media screen and (max-width: 768px) {

  .modal {
    width: 90%;
    aspect-ratio: 16 / 11;
  }
  .close {bottom: 0;}
}
/* =========================================
   レイアウト
========================================= */

.flex-item {
  display: flex;
  align-items: flex-start;
  justify-content:space-between;
  gap: 3em;
}

.flex-item > * {width: 46%;}

.flex-two{
  display: flex;
  justify-content:space-between;
  gap: 1em;
  margin-top: 2rem;
}
.flex-two> * {width: 48%;}

@media screen and (max-width: 768px) {
  .flex-item {
    display: inline;
    gap: 0;
  }
  .flex-item > * {width: 100%;}
  #zenibako-factory figure,
  #zenibako-yard figure{margin-top: 1rem;}
  .flex-two{
    justify-content: center;
    margin-top: 1rem;
  }
}
/* =========================================
   テーブル
========================================= */

.factory-list tr:first-child {border-top: 1px solid var(--color-gray-light);}

.factory-list th{ font-weight: 500;}
.factory-list td {padding-left: 2rem;}
.factory-list th, .factory-list td{
   border-bottom: 1px solid var(--color-gray-light);
   padding: 1.1rem 0.5rem;
}

.equipment-table {
   display: flex;
   justify-content:center;
   margin: 3rem auto 5rem auto;
   width:100%;

}
.equipment-table table tr:nth-child(odd) {
  background:var(--color-gray-pale);
}
.equipment-table table th, .equipment-table table td{
   border: solid 1px var(--color-gray-light);
   text-align: center;
   font-size: var(--s12);
   height: 3rem;
   vertical-align:middle;
   padding-left: 0.5rem;
   padding-right: 0.5rem;
}
.equipment-table table + table th,
.equipment-table table + table td {
  border-left: none;
}
#zenibako-yard{margin-top: 5rem;}

@media screen and (max-width: 768px) {
  .table-r tr:nth-child(1){display: none;}
  .factory-list{margin-bottom: 1.5rem;}
  .equipment-table {display: inline;}
  .equipment-table table {width: 100%;}
  .equipment-table table th, .equipment-table table td{
    padding-left: 0.3rem;
    padding-right: 0.3rem;;
  }
  .equipment-table table:nth-child(1){margin-top: 3rem;}
  .equipment-table table + table th,
  .equipment-table table + table td {
    border-left: solid 1px var(--color-gray-light);
  }

  .equipment-table table td:nth-child(2){width:3.8rem;}
  .equipment-table table td:nth-child(3){width:8.5rem;}
  .equipment-table table td:nth-child(4){width:2.6rem;}
}
