/* 優遇制度目次ページ
=================================== */
.yugu_banner_container {
  text-align: center;
  margin-block: 3.0rem;

  img {
    max-width: 50.0rem;
  }
}

.yugu_banner_list {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  gap: 4.0rem 2.0rem;
}

.yugu_btn_list {
  list-style-type: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.0rem 4.0rem;
  width: fit-content;
  margin: 4.0rem auto;
}



/* 優遇制度詳細ページ
=================================== */
.pages .yugu_point {
  align-items: baseline;
  margin-block: 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.4em 1em;

  dt {
    white-space: nowrap;
    grid-column: 1;
  }

  dd {
    margin-left: 0;
  }

  dd:first-of-type {
    grid-column: 2;
  }

  dd:not(:first-of-type) {
    grid-column: 1 / 3;
  }
}

.pages .yugu_table {
  margin-block: auto 1em;

  th,
  td {
    padding: 0.3em 0.6em;
  }
}

.labeled_heading {
  display: inline-block;
  padding: 0.2em 0.5em;
  margin-inline: 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  background-color: #222;
  color: #fff;
  position: relative;
  translate: 0 -0.15em;
  white-space: nowrap;
}

.labeled_heading--green {
  background-color: #208E66;
}

.labeled_heading--blue {
  background-color: #246FD1;
}

.labeled_heading--yellow {
  background-color: #FDE029;
  color: #222;
}

.popup_container {
  position: relative;
  z-index: 1;

  p {
    font-size: 1.8rem;
    font-weight: 700;
    margin-block: 0 0.5em;
    line-height: 1;
    background-color: #ff4b00;
    color: #fff;
    display: inline-block;
    padding: 0.3em 1em;
    border-radius: 8px;
    position: relative;
    translate: 20px 0;
  }

  p::after {
    content: '';
    display: block;
    background-color: #ff4b00;
    width: 20px;
    height: 20px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    position: absolute;
  }
}


.yugu_table {
  font-size: 1.5em;

  dl {
    margin-block: 0;
  }

  dt {
    font-weight: 600;
  }

  dd {
    margin-left: 1em;
  }
}

.pages .note_ref {
  color: revert;
  text-decoration: none;
}

.table_notes {
  ol {
    padding-left: 0;
    list-style: none;
    counter-reset: note;

    li {
      counter-increment: note;
      display: flex;
      font-size: 1.4rem;
    }
  }
}

.table_notes--num {
  li::before {
    content: "※" counter(note) "　";
    margin-right: 0.25em;
  }
}

.table_notes--alpha {
  li::before {
    content: "※" counter(note, lower-alpha) "　";
    margin-right: 0.25em;
  }
}

.table_notes--upperalpha {
  li::before {
    content: "※" counter(note, upper-alpha) "　";
    margin-right: 0.25em;
  }
}

.table_notes--numMulti {
  display: flex;

  ul {
    margin-block: 0;
    font-size: 1.3rem;
  }
}

.annotations>li::marker {
  content: "※ ";
}


/* 注釈の強調アニメーション */
.note-highlight {
  animation: noteFlash 1.2s ease-out;
}

@keyframes noteFlash {
  0% {
    background-color: rgba(255, 240, 150, 0.9);
  }

  60% {
    background-color: rgba(255, 240, 150, 0.4);
  }

  100% {
    background-color: transparent;
  }
}

.ul-grid {
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  li {
    margin-left: 1.5em;
    font-size: 1.3rem;
  }

  li:last-of-type {
    grid-column: 1 / -1;
  }
}

/* 市町村の優遇制度
============================== */
.gridBox.shichoson_grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  h3 {
    margin-block: 0.5em 0.2em;
  }

  img {
    max-width: 220px;
  }

  p {
    margin-block: 0 1.6em;
  }
}

/* 語句説明等
============================== */
dl.goku-setsumei {
  >dt {
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
  }

  >dt::before {
    content: '';
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #208E66;
    padding-right: 0.2em;
    margin-top: 1.1rem;
    margin-right: 1.0rem;
  }

  >dd {
    margin-left: 1.65em;

    dd {
      margin-left: 1.0em;
    }
  }
}

/* その他
============================== */
.yugu_box {
  max-width: 700px;

  h4 {
    margin-block: 0 0.6em;
  }

  ul {
    margin-bottom: 0;
  }
}

.flex-dl {
  display: flex;
  align-items: center;

  dt {
    width: 200px;
    font-weight: 600;
  }
}

/* 手続の流れ
============================== */
.question-text {
  color: #246FD1;
  font-weight: 700;
  display: flex;
  gap: 0.7em;
  margin-block: 0.5em;
}

.question-text::before {
  content: 'Q';
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 1lh;
  padding-left: 0.15em;
  padding-bottom: 0.12em;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  background-color: #246FD1;
  color: #fff;
  border-radius: 50%;
}

.anser-text {
  margin-block: 0 1.5em;
}

@media (max-width:767px) {
  .yugu_banner_container {
    margin: 1.5rem auto;

    img {
      max-width: 100%;
    }
  }

  .yugu_banner_list {
    margin: 1.5rem auto;
    max-width: 650px;
    flex-direction: column;
    gap: 1.5rem;

    img {
      width: 100%;
    }
  }

  .yugu_btn_list {
    grid-template-columns: 1fr;
    gap: 2.0rem;
    width: fit-content;
    max-width: 450px;
    margin: 2.0rem auto;
  }


  .pages .yugu_point {
    line-height: 1.7;
    gap: 0.4em 0.5em;
    display: block;
    margin-bottom: 1.5em;

    dt {
      white-space: initial;
      grid-column: 1/2;
      margin-bottom: 0.4em;
    }

    dd {
      margin-left: 0;
    }

    p {
      margin-block: auto;
    }
  }

  .flex-wrap:has(.yugu_point) {
    gap: 0.4em;
  }

  /* 市町村の優遇制度
  ============================== */
  .gridBox.shichoson_grid {
    display: grid;
  }

  /* 語句説明等
============================== */


  /* その他
  ============================== */
  .flex-dl {
    display: block;

    dt {
      width: auto;
    }

    dd {
      margin-left: 1em;
    }
  }
}