/* 一覧ページ
=================================== */
.yochi_map_container {
  img {
    pointer-events: auto;
  }

  area {
    cursor: pointer;
  }
}

.chart_box {
  max-width: 70.0rem;
  margin: 5.0rem auto;
}

#chika_chart {
  min-height: 280px;
}

.img_container {
  max-width: 60.0rem;
  margin: 5.0rem auto;
}

.yochi_list_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.0rem;

  dl {
    position: relative;
  }

  dt {
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.2em 1em 0.2em 0.5em;
    border-radius: 0 100px 100px 0;
    position: absolute;
    top: 1.5rem;
    z-index: 1;
    pointer-events: none;
  }

  dd {
    margin-left: 0;
  }

  a {
    display: block;
    overflow: hidden;
    text-decoration: none;
    position: relative;
  }

  a::after {
    content: '詳しく見る';
    font-weight: 500;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: 0;
    position: absolute;
    right: 1em;
    bottom: 1em;
    padding: 0.1em 0.8em 0.2em;
    border-radius: 100px;
    white-space: nowrap;
    background-color: #FDE029;
    display: flex;
    opacity: 0;
    transition: 0.3s;
  }

  a img {
    width: 100%;
    transition: 0.3s;
    aspect-ratio: 13/8;
  }

  a:hover::after {
    color: #222;
    opacity: 1;
  }

  p {
    margin: auto;
  }
}

/* 団地詳細ページ
=================================== */
/* 立地メリット =========== */
.danchi_gaiyo .intro_text {
  font-size: 2.4rem;
  font-weight: 700;
  margin-block: 0;
}

.pages .danchi_gaiyo h2 {
  margin-block: 1.0rem 0.5em;
}

.danchi_detail_img {
  max-width: 45%;
  flex-shrink: 0;
}

.danchi_merit {
  border-bottom: solid 1px #aaa;
  padding-block: 0.5em;

}

.danchi_merit summary {
  display: flex;
  align-items: center;
  gap: 1.0rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.danchi_merit summary::before {
  content: url(/yochi/img/dot-line.svg);
  order: 2;
  line-height: 0.1;
  margin-left: auto;
}

.danchi_merit summary:hover {
  color: #DA6B18;
}

.danchi_merit summary::after {
  content: '\e145';
  font-family: 'Material Symbols Rounded';
  font-weight: 900;
  background-color: #208E66;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: 0;
  order: 3;
  transition: 0.2s;
}

.danchi_merit[open] summary::after {
  content: '\e15b';
}

.danchi_merit ul {
  margin-block: 0.2em;
  padding-left: 1.5em;
  font-size: 1.4rem;
}

.anchor_link_container {
  width: fit-content;
  max-width: 700px;

  a {
    min-width: 22.0rem;
  }
}


/* 分譲区画 ============== */
.kukaku_container {
  justify-content: space-between;
}

.kukaku_img {
  max-width: 48%;
}

.kukaku_info {
  width: 45%;

  ul {
    padding-left: 1.5em;
  }
}

.kukaku_info_wrap {
  border: solid 4px #208E66;
  border-radius: 15px;
  padding: 0rem 3.5rem 2.0rem;
  width: 100%;

  dl:nth-child(1) {
    border-bottom: solid 1px #208E66;
    margin-block: 0;
    padding-block: 2.0rem;
  }

  dt {
    font-size: 2.2rem;
    color: #208E66;
    font-weight: 700;
    margin-block: 0.5em;
  }

  dd {
    margin-left: 0;
  }

  p {
    margin-block: 0;
    line-height: 1;
  }

  dd p:first-child {
    font-size: 4.0rem;
    font-weight: 700;
  }

  dd p:nth-child(2) {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.8;
  }

  .small-font {
    font-size: 1.6rem;
    font-weight: 600;
  }
}

/* インフラ表、交通表 ============== */
.pages .yochi_infra_table {
  margin-block: auto;

  .setsubi-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .setsubi-icon::before {
    content: '';
    display: inline-block;
    width: 3.0rem;
    height: 3.5rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .electro::before {
    background-image: url(/assets/img/common/icon_electro.png);
  }

  .water::before {
    background-image: url(/assets/img/common/icon_water.png);
  }

  .drainage::before {
    background-image: url(/assets/img/common/icon_drainage.png);
  }

  .gas::before {
    background-image: url(/assets/img/common/icon_gas.png);
  }

  .internet::before {
    background-image: url(/assets/img/common/icon_internet.png);
  }

  .plane::before {
    background-image: url(/assets/img/common/icon_plane.png);
  }

  .ship::before {
    background-image: url(/assets/img/common/icon_ship.png);
  }


  .train::before {
    background-image: url(/assets/img/common/icon_train.png);
  }

  .track::before {
    background-image: url(/assets/img/common/icon_track.png);
  }

  .road::before {
    background-image: url(/assets/img/common/icon_road.png);
  }

  .crane::before {
    background-image: url(/assets/img/common/icon_crane.png);
  }

  th,
  td {
    border: none;
    border-bottom: dashed 1px #222;
  }

  th {
    background-color: transparent !important;
    padding: 1em 0.5em 0.5em;
    white-space: nowrap;
  }

  td {
    padding: 1em 1em 0.5em;
  }

  td .kotsu_label:not(:first-child) {
    margin-top: 0.4em;
  }

}

.kotsu_label {
  background-color: #ccede0;
  color: #037149;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.2em 0.4em 0.1em;
  margin-bottom: 0.2em;
  border-radius: 3px;
  margin-right: 0.3em;
  display: inline-block;
}


.movie_container {
  display: flex;
  gap: 4.0rem;
}

.movie_wrap {
  width: 100%;

  iframe {
    aspect-ratio: 16/9;
  }
}

.google_mymap {
  margin: auto;
  position: relative;

  iframe {
    display: block;
    aspect-ratio: 2/1;
    margin: auto;
  }
}

.google_mymap::after {
  content: 'Googleマップを操作する際は、\A一度クリックしてください。';
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
  white-space: pre;
  display: block;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.3s;
}

.google_mymap:hover::after {
  opacity: 1;
}

.google_mymap.active::after {
  opacity: 0;
  visibility: hidden;
}

/* タッチ操作が主な端末ではオーバーレイを無効化 */
@media (pointer: coarse) and (hover: none) {
  .google_mymap::after {
    display: none;
  }
}


/* 優遇制度、その他の情報の表 ============== */
.yochi_table {
  thead th {
    background-color: #208E66;
    color: #fff;
  }

  th.th_green {
    background-color: #EBF3E5;
  }

  th.th_yellow {
    background-color: #F8F5D7;

  }

  th.th_pink {
    background-color: #F6E2D9;
  }
}

.yochi_infra_table+img {
  max-width: 50%;
}

.pages .other_info_table {
  margin-block: 0 1em;

  caption {
    background-color: #208E66;
    color: #fff;
    text-align: justify;
    padding: 0.5em 1em;
    font-weight: 700;
  }

  th:not(.th_green) {
    background-color: transparent;
  }

  td {
    text-align: center;
  }
}

.pages .kotsu_box {
  justify-content: space-between;
}


/* 立地企業リスト、教育機関リスト ============== */
.shisetsu_list_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(490px, 1fr));
  gap: 0 5.0rem;

  dl {
    border-bottom: dashed 1px #222;
    padding-block: 0 0.8em;
  }

  dt {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    flex-wrap: wrap;

    p {
      font-size: 1.6rem;
      margin-block: 0;
      font-weight: 600;
    }

    a {
      text-decoration: none;
      color: #222;
      border: solid 2px #222;
      border-radius: 100px;
      font-size: 1.3rem;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.2rem;
      padding: 0.2em 0.5em 0.1em 0.8em;
      transition: 0.2s;
      white-space: nowrap;
      position: relative;
      translate: 0 -3px;
    }

    a:first-of-type {
      margin-left: auto;
    }

    a::after {
      font-family: "Material Symbols Rounded";
      content: "\e5c8";
    }

    a[target="_blank"]::after {
      font-family: "Material Symbols Rounded";
      content: "\e89e";
    }

    a:hover {
      background-color: #222;
      color: #fff;
    }
  }

  dd {
    margin-left: 0;
    margin-top: 0.5em;
    font-size: 1.5rem;
  }
}

.school_list {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* くらし・文化のリスト ============== */
ul.kurashi_list {
  padding-left: 0.8em;
  margin-block: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.0rem 2.5rem;

  li {
    margin-left: 1.5em;
  }
}



@media (max-width:767px) {

  /* 一覧ページ
=================================== */
  .yochi_map_container img {
    pointer-events: none;
  }

  .yochi_list_container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    a::after {
      translate: 0 0;
      opacity: 1;
      background-color: rgba(253, 224, 41, 0.8);
    }

    img {
      width: 100%;
    }
  }

  /* 団地詳細ページ
=================================== */
  /* 立地メリット =========== */
  .danchi_gaiyo .intro_text {
    font-size: 2.0rem;
  }

  .danchi_detail_img {
    max-width: 100%;
  }

  .anchor_link_container {
    max-width: 500px;

    a {
      min-width: 15.0rem;
      font-size: 1.4rem;
    }
  }


  /* 分譲区画 ============== */
  .kukaku_img {
    max-width: 100%;
  }

  .kukaku_info {
    width: 100%;

    ul {
      font-size: 1.5rem;
      letter-spacing: 0.06em;
      padding-left: 1em;
    }
  }

  .kukaku_info_wrap {
    padding: 0 2.5rem 2.0rem;
    width: 100%;

    dt {
      font-size: 1.8rem;
      margin-block: 0 0.5em;
    }

    dd p:first-child {
      font-size: 3.2rem;
    }

    dd p:nth-child(2) {
      font-size: 2.2rem;
    }

    .small-font {
      font-size: 1.4rem;
      font-weight: 600;
    }
  }

  /* インフラ表、交通表 ============== */
  .yochi_infra_table {
    .setsubi-icon::before {
      width: 2.8rem;
      height: 3.2rem;
    }
  }


  .movie_container {
    flex-direction: column;
  }

  .google_mymap {
    iframe {
      aspect-ratio: 5/6;
    }
  }

  /* 優遇制度、その他の情報の表 ============== */

  .yochi_infra_table+img {
    max-width: 100%;
  }

  /* 立地企業リスト、教育機関リスト ============== */
  .shisetsu_list_container {
    display: block;

    dl {
      padding-block: 0 1em;
      margin-block: 1.5em;
    }

    dt {
      p {
        white-space: initial;
        width: 100%;
      }

      a:first-of-type {
        margin-left: 0;
      }
    }
  }

}