@charset "utf-8";


/* ========================================
   基本
======================================== */

#chinfo p {
  margin-bottom: 1em;
}


/* ========================================
   一覧テーブル
======================================== */

.data.table-style-1 {
  font-size: .9em;
}

.data.table-style-1 .chinfo-row {
  cursor: pointer;
}


/* PCなど、ホバー可能な端末だけ */
@media (hover: hover) and (pointer: fine) {

  .data.table-style-1 .chinfo-row {
    transition: background-color .2s ease;
  }

  .data.table-style-1 .chinfo-row:hover {
    background-color: #fff7f0;
  }

}


/* ========================================
   内容
======================================== */

.data.table-style-1 .chinfo-detail__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.data.table-style-1 .chinfo-detail__text {
  flex: 1;
  min-width: 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;

  line-height: 1.7;
}


/* ========================================
   詳細を見るボタン
======================================== */

.data.table-style-1 .chinfo-detail__btn {
  flex: 0 0 auto;

  margin: 0;
  padding: 11px 22px;

  border: 0;
  border-radius: 2px;

  background: #ec6a06;
  color: #fff;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  white-space: nowrap;

  cursor: pointer;
  appearance: none;

  transition: opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {

  .data.table-style-1 .chinfo-detail__btn:hover {
    opacity: .8;
  }

}


/* ========================================
   一覧 SP
======================================== */

@media screen and (max-width: 900px) {

  .data.table-style-1 thead {
    display: none;
  }

  .data.table-style-1,
  .data.table-style-1 tbody,
  .data.table-style-1 tr,
  .data.table-style-1 td {
    display: block;
    width: 100%;
  }


  /* 1事例 */
  .data.table-style-1 tr {
    margin-bottom: 20px;

    border: 1px solid #ccc;

    box-sizing: border-box;
  }


  /* 通常項目 */
  .data.table-style-1 td {
    display: grid;
    grid-template-columns: 38% 62%;

    width: 100%;
    padding: 0;

    border: 0;
    border-bottom: 1px solid #ddd;

    background: transparent;

    box-sizing: border-box;
  }


  /* ラベル */
  .data.table-style-1 td::before {
    content: attr(data-label);

    display: block;

    padding: 12px 14px;

    border-right: 1px solid #ddd;

    background: transparent;

    font-weight: 600;
    line-height: 1.5;

    box-sizing: border-box;
  }


  /* 値 */
  .data.table-style-1 td > div {
    display: block;

    min-width: 0;

    padding: 12px 18px;

    background: transparent;

    line-height: 1.6;

    box-sizing: border-box;
  }

  .data.table-style-1 td:last-child {
    border-bottom: 0;
  }


  /* 空項目は非表示 */
  .data.table-style-1 td.is-empty {
    display: none;
  }


  /* 内容 */
  .data.table-style-1 td.chinfo-detail {
    display: block;

    padding: 16px 14px 12px;

    border-bottom: 0;

    background: transparent;
  }

  .data.table-style-1 td.chinfo-detail::before {
    display: block;

    width: auto;

    padding: 0;
    margin: 0 0 10px;

    border-right: 0;

    background: transparent;

    font-weight: 600;
  }

  .data.table-style-1 .chinfo-detail__inner {
    display: block;
  }

  .data.table-style-1 .chinfo-detail__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    padding: 0;

    overflow: hidden;

    line-height: 1.7;
  }


  /* 詳細を見る */
  .data.table-style-1 .chinfo-detail__btn {
    display: block;

    margin: 14px 0 0 auto;
    padding: 11px 24px;
  }


  /* SPでは既存hoverを明示的に解除 */
  .data.table-style-1 .chinfo-row:hover,
  .data.table-style-1 .chinfo-row:hover td,
  .data.table-style-1 .chinfo-row:hover td::before,
  .data.table-style-1 .chinfo-row:hover td > div {
    background: transparent !important;
  }

}


/* ========================================
   モーダル
======================================== */

.chinfo-modal {
  position: fixed;
  inset: 0;

  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 20px;

  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .25s ease,
    visibility .25s ease;
}

.chinfo-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* 背景 */
.chinfo-modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, .55);
}


/* モーダル本体 */
.chinfo-modal__dialog {
  position: relative;

  z-index: 1;

  width: min(760px, 100%);
  max-height: calc(100dvh - 80px);

  margin: 0;
  padding: 40px;

  overflow-y: auto;

  background: #fff;

  box-sizing: border-box;

  opacity: 0;
  transform: translateY(12px);

  transition:
    opacity .25s ease,
    transform .25s ease;
}

.chinfo-modal.is-open .chinfo-modal__dialog {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================
   閉じるボタン
======================================== */

.chinfo-modal__close {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 38px;
  height: 38px;

  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  color: #333;

  font-size: 0;

  cursor: pointer;
  appearance: none;

  transition: opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {

  .chinfo-modal__close:hover {
    opacity: .55;
  }

}


/* ×を線で作る */
.chinfo-modal__close::before,
.chinfo-modal__close::after {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 24px;
  height: 1px;

  background: currentColor;
}

.chinfo-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.chinfo-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* ========================================
   モーダル内容
======================================== */

.chinfo-modal__content h2 {
  margin: 0 45px 25px 0;

  font-size: 22px;
  line-height: 1.5;
}

.chinfo-modal__data {
  margin: 0;
}


/* 地域〜区分 */
.chinfo-modal__data > div {
  display: grid;
  grid-template-columns: 38% 62%;

  padding: 0;

  border-bottom: 1px solid #ddd;
}

.chinfo-modal__data dt {
  padding: 13px 15px;

  background: #f5f5f5;

  font-weight: 600;

  box-sizing: border-box;
}

.chinfo-modal__data dd {
  margin: 0;
  padding: 13px 18px;

  box-sizing: border-box;
}


/* 内容 */
.chinfo-modal__detail {
  display: block !important;

  padding-top: 25px !important;

  border-bottom: 0 !important;
}

.chinfo-modal__detail dt {
  padding: 0;
  margin-bottom: 10px;

  background: transparent;
}

.chinfo-modal__detail dd {
  padding: 0;
  margin: 0;

  white-space: pre-wrap;

  line-height: 1.8;
}


/* モーダル表示中は背景スクロール禁止 */
body.is-modal-open {
  overflow: hidden;
}


/* ========================================
   モーダル SP
======================================== */

@media screen and (max-width: 900px) {

  .chinfo-modal {
    padding: 12px;
  }

  .chinfo-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);

    margin: 0;
    padding: 42px 20px 25px;

    transform: translateY(8px);
  }

  .chinfo-modal.is-open .chinfo-modal__dialog {
    transform: translateY(0);
  }


  /* 閉じる */
  .chinfo-modal__close {
    top: 8px;
    right: 8px;

    width: 38px;
    height: 38px;
  }

  .chinfo-modal__close::before,
  .chinfo-modal__close::after {
    width: 22px;
  }


  /* タイトル */
  .chinfo-modal__content h2 {
    margin: 0 35px 20px 0;

    font-size: 19px;
  }

}


/*カテゴリーボタン*/
.chinfo-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #fff;
}
.chinfo-category-buttons a {
  color: #fff;
  border-radius: 30px;
}

.chinfo-category-buttons__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  margin: 0;
  padding: 11px 22px;

  border: 0;
  border-radius: 2px;

  background: #ec6a06;
  color: #fff;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  white-space: nowrap;
  text-decoration: none;

  cursor: pointer;

  transition: opacity .2s ease;
}

.chinfo-category-buttons__item:hover {
  color: #fff;
  opacity: .7;
}