/* インタビュー
===================================== */
.interview_list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  gap: 5.0rem 4rem;

  div {
    width: fit-content;
    border: solid 1px #bbb;
    border-radius: 10px;
    padding: 2.0rem;
    box-shadow: 4px 8px 15px rgba(0, 0, 0, 0.1);
  }

  dt {
    font-size: 2.0rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    display: flex;
  }

  dt::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1lh;
    margin-right: 0.6rem;
    background-image: url(/assets/img/common/icon_hexagon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    flex-shrink: 0;
  }

  dd {
    margin-left: 0;

    &:nth-of-type(2) {
      margin-top: 0.8em;
    }

    p:last-of-type {
      display: flex;
      justify-content: center;
      margin-block: 0;
    }
  }

  img {
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 7/4;
    object-fit: cover;
  }
}

/* インタビュー個別ページ
===================================== */
.interviewPage {
  * {
    text-align: justify;
  }

  .interview-firstview {
    gap: 5.0rem;
    align-items: center;
    margin-block: 4.0rem;
  }

  .interview_thumbnail {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    width: 50%;

    figcaption {
      color: #fff;
      font-size: 1.5rem;
      font-weight: 700;
      line-height: 2.2;
      white-space: nowrap;
      max-width: 96%;
      padding: 0.4rem 2.5rem 0.4rem 3.8rem;
      border-radius: 100px 0 0 100px;
      position: absolute;
      bottom: 1.2em;
      right: 0;
    }

    img {
      width: 100%;
    }

    .seizo_caption {
      background-color: #246FD1;
    }

    .soft_caption {
      background-color: #208E66;
    }
  }

  .interview_title {
    border-bottom: none;
    font-size: clamp(2.2rem, 3.2vw, 3.8rem);
    width: 50%;
    word-break: keep-all;
    text-align: left;
  }

  .interview_title::before {
    display: none;
  }

  .interview_date {
    display: block;
    text-align: right;
  }

  .interview_index {
    border-block: solid 1px #222;
    padding: 3.0rem 2.0rem 2.0rem;
    max-width: 750px;
    margin: 4.0rem auto;

    ul {
      padding-left: 1.5em;
    }

    a {
      text-decoration: none;
      color: #222;
    }

    a:hover {
      text-decoration: underline;
      color: #DA6B18;
    }
  }

  .index_label {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background-color: #222;
    width: fit-content;
    padding: 0 2.0rem;
    border-radius: calc(1px * infinity);
  }


  h3 {
    border-bottom: solid 4px var(--b-yellow);
    position: relative;
    font-size: 2.8rem;
    font-weight: 600;
    margin-block: 2em 0.6em;
    padding-left: 0;
  }

  h3::before {
    content: "";
    display: inline-block;
    width: 5em;
    height: 4px;
    background-color: var(--m-yellow);
    position: absolute;
    top: auto;
    bottom: -3.5px;
  }

  h3::after {
    display: none;
  }

  .interview_text {
    margin-bottom: 6.0rem;

    dt {
      font-size: 1.8rem;
      font-weight: 700;
      color: #208E66;
      margin-block: 1.5em 0.8em;
    }

    dd {
      margin-left: 0;

      p {
        margin-block: 0 1em;
      }
    }

    .flexBox {
      margin-bottom: 0;
    }

    figure {
      margin-bottom: 0.8em;
    }

    figcaption {
      font-size: 1.4rem;
      text-align: center;
    }

    img,
    iframe {
      width: 40vw;
      min-width: 200px;
      max-width: 390px;
    }

    iframe {
      aspect-ratio: 16/9;
    }
  }

  section:nth-of-type(even) .interview_text .flexBox {
    flex-direction: row-reverse;
  }

  .kigyo_info {
    background-color: #F8F5D7;
    padding: 4.0rem;
    border-radius: 20px;

    h4 {
      font-size: 1.8rem;
      font-weight: 600;
      background-color: #222;
      color: #fff;
      width: fit-content;
      padding: 0.5rem 3.0rem;
      border-radius: calc(1px * infinity);
      margin-block: 0 1em;
    }

    dt {
      font-weight: 700;
    }

    dd {
      margin-left: 0;
    }

    p {
      margin-block: 0;
    }
  }

  .kigyo_info_text {
    display: flex;
    margin-block: 0 1em;

    dt {
      width: 5em;
    }

    dd {
      text-align: left;
    }

    a {
      word-break: break-all;
    }
  }

  .img_container {
    display: flex;
    flex-direction: column;
    gap: 2.0rem;
    align-items: center;
    width: clamp(300px, 38vw, 480px);
  }

  .img_gaikan {
    width: 100%;
  }

  .flexBox--wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: clamp(300px, 38vw, 500px);

    a {
      width: clamp(180px, 18vw, 240px);
    }
  }

}


/* 立地企業一覧
===================================== */
.menu_container {
  position: relative;
  display: inline-block;
  margin-block: 1em;
}

.menu_container::after {
  content: '\e984';
  font-family: 'Material Symbols Rounded';
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  right: 0.8rem;
  translate: 0 -50%;
  letter-spacing: 0;
  pointer-events: none;
}

.list_select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: 'YakuHanJP', 'Roboto', 'Noto Sans JP', sans-serif;
  color: #222;
  width: 200px;
  padding: 10px 30px 10px 15px;
  border: 1px solid #ccc;
  background-color: #f7f7f7;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 6px;
  background-color: #FCEF70;
}

.list_select option {
  background-color: #fff;
}

.kigyo_list table tr th {
  word-wrap: break-word;
}

.kigyo_list table th,
.kigyo_list table td {
  padding: 0.5em 0.7em;
}

/* 1列目：No. */
.kigyo_list table tr th:nth-child(1) {
  width: auto;
}

/* 2列目：認定年月日 */
.kigyo_list table tr th:nth-child(2) {
  width: 8%;
}

/* 3列目：企業名 */
.kigyo_list table tr th:nth-child(3) {
  width: 25%;
}

/* 4,5列目：進出元、進出先 */
.kigyo_list table tr th:nth-child(4),
.kigyo_list table tr th:nth-child(5) {
  width: 13.5%;
}

/* 6列目：新設・増設 */
.kigyo_list table tr th:nth-child(6) {
  width: 7.5%;
}

/* 7列目：事業内容 */
.kigyo_list table tr th:nth-child(7) {
  width: 40%;
}

.kigyo_list table tr td:nth-of-type(1),
.kigyo_list table tr td:nth-of-type(6) {
  text-align: center;
}

.kigyo_list table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.kigyo_list {
  transition: 0.5s ease;
}

.kigyo_list.is-hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  translate: 0 5.0rem;
}

.kigyo_list.is-active {
  opacity: 1;
  visibility: visible;
  height: auto;
  translate: 0 0;
}

@media (max-width:767px) {

  /* インタビュー 一覧
===================================== */
  .interview_list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* grid-template-columns: 1fr; */
    gap: 2.5rem;

    >div {
      margin: 0 auto;
    }

    dt {
      font-size: 1.8rem;
    }

    p:not(:has(a)) {
      font-size: 1.3rem;
    }
  }

  /* インタビュー個別ページ
===================================== */
  .interviewPage {

    .interview-firstview {
      gap: 3.0rem;
      margin-block: 2.0rem;

      h2 {
        margin-block: auto;
        font-size: 2.5rem;
        text-align: left;
      }
    }

    .interview_thumbnail {
      width: min(100%, 450px);

      figcaption {
        font-size: clamp(1.3rem, 1.6vw, 1.6rem);
        padding: 0.4rem 2.5rem 0.4rem 3.0rem;
        line-height: 1.9;
      }
    }

    .interview_title {
      word-break: normal;
      overflow-wrap: break-word;
      line-break: strict;
      width: 100%;
    }

    .interview_index {
      padding: 2.0rem 2.0rem 0.2rem;
    }

    h3 {
      padding: 1.0rem 0 0;
      font-size: 2.2rem;
    }

    .interview_text {
      margin-bottom: 4.0rem;

      dt {
        font-size: 1.6rem;
        margin-block: 1.5em 0.5em;
      }

      .flexBox {
        gap: 0;
        align-items: center;
      }

      figure {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      figcaption {
        color: #777;
      }

      img,
      iframe {
        width: 100%;
        min-width: initial;
        max-width: 500px;
        aspect-ratio: 16/9;
        object-fit: cover;
        object-position: center;
      }
    }

    section:nth-of-type(odd) .interview_text .flexBox {
      flex-direction: column-reverse;
    }

    section:nth-of-type(even) .interview_text .flexBox {
      flex-direction: column-reverse;
    }

    .kigyo_info {
      padding: 3.0rem 2.0rem;
      border-radius: 15px;

      h4 {
        font-size: 1.6rem;
        margin: 0 auto 1.8em;
      }

      .flexBox {
        align-items: center;
      }
    }

    .kigyo_info_text dt {
      flex-shrink: 0;
      width: 4.5em;
    }

    .img_container {

      .img_gaikan {
        width: min(100%, 500px);
      }
    }
  }



  /* 立地企業一覧
===================================== */
  .kigyo_list .table_container {
    width: 100%;
    overflow-x: auto;

    table {
      min-width: 880px;
    }
  }

}