@font-face {
  font-family: "NotoSansJP-SmallMoney";
  src: local("Noto Sans JP"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Sans"), local(sans-serif);
  unicode-range: U+4E07, U+5186, U+5104;
  size-adjust: 50%;
}

/* =========================================================
   Common
========================================================= */

.flex-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

/* =========================================================
   Subsidy page background
========================================================= */

main.subsidy-archive,
main.subsidy-single {
  position: relative;
  z-index: 1;

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #5aceff;
    background-image: linear-gradient(57deg, #5aceff 0%, #bdffec 100%);
    opacity: 0.54;
  }

  &:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    aspect-ratio: 709 / 451;
    background: url(../images/page_wave_bg.svg) top center no-repeat;
    background-size: contain;
    z-index: 0;
  }
}

/* =========================================================
   Subsidy common layout
========================================================= */

.subsidy-container {
  margin: 0 auto;
  padding: 0 0 64px;

  @media screen and (max-width: 767px) {
    padding: 0 0 96px;
  }

  main.subsidy-archive & {
    padding: 0;
  }
}

/* =========================================================
   Page header
========================================================= */

.subsidy-page-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(8.75rem, calc(-12rem + 55.333vw), 29.5rem);
  /* min: 140px, max: 472px */
  overflow: hidden;
  box-sizing: border-box;

  h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.875rem, calc(-0.25rem + 3vw), 2rem);
    /* min: 14px, max: 32px */
    font-size: clamp(1.5rem, calc(1rem + 1.333vw), 2rem);
    /* min: 24px, max: 32px */
    font-weight: 700;

    &:before {
      content: "";
      display: block;
      width: 55px;
      height: 44px;
      background: url(../images/subsidy_header_search.svg) top center no-repeat;
    }

    &:after {
      content: "";
      display: block;
      width: 144px;
      height: 5px;
      background: #7edce0;
    }
  }

  &:before {
    content: "";
    position: absolute;
    display: block;
    width: 20%;
    max-width: 237px;
    aspect-ratio: 237 / 132;
    bottom: 32%;
    left: -11px;
    background: url(../images/subsidy_header_ill_left.svg) top center no-repeat;
    background-size: contain;
    z-index: 2;
  }

  &:after {
    content: "";
    position: absolute;
    display: block;
    width: 15%;
    max-width: 157px;
    aspect-ratio: 157 / 173;
    bottom: 5%;
    right: -1vw;
    background: url(../images/subsidy_header_ill_right.svg) top center no-repeat;
    background-size: contain;
    z-index: 2;
  }
}

/* =========================================================
   Subsidy archive
========================================================= */

.post-type-archive-subsidy .breadcrumb {
  margin: clamp(-5rem, calc(1.234rem - 7.974vw), -1rem) auto 0 !important;
}
.subsidy-page-container {
  margin: 64px 0 0;
  padding: 64px 0;
  background: #fff;
}
/* ---------------------------------------------------------
   Search form
--------------------------------------------------------- */

.subsidy-search-form {
  position: relative;
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1rem, calc(-1rem + 5.333vw), 3rem);
  /* min: 16px, max: 48px */
  gap: clamp(1rem, calc(0rem + 2.667vw), 2rem);
  /* min: 16px, max: 32px */
  border-radius: 1rem;
  z-index: 1;

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    z-index: -1;
    background-color: #ffbcb9;
    background-image: linear-gradient(125deg, #ffbcb9 0%, #f9ffb8 100%);
    opacity: 0.6;
  }

  & > .subsidy-field.flex-row {
    padding: 32px 0;
    border-top: 1px solid #0074a3;
    border-bottom: 1px solid #0074a3;
  }

  @media screen and (max-width: 1023px) {
    width: 90vw;
  }
}

.subsidy-field {
  margin: 0;

  &.flex-row {
    gap: clamp(1rem, calc(-1.5rem + 6.667vw), 3.5rem);
    /* min: 16px, max: 56px */
  }

  .flex-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .search-field {
    display: flex;
    gap: 16px;
    align-items: center;

    &:before {
      content: "";
      display: block;
      width: 48px;
      height: 43px;
      background: url(../images/subsidy_search_icn_keyword.svg) top center no-repeat;
      background-size: contain;
    }
  }

  input[type="search"] {
    width: 100%;
    padding: 16px;
    border: 1px solid #0074a3;
    border-radius: 9999px;
    box-sizing: border-box;
  }

  label {
    span {
      display: inline-block;
      padding: 8px 16px;
      border: 1px solid #0074a3;
      border-radius: 9999px;
      background: #0074a3;
      font-size: clamp(0.75rem, calc(0.5rem + 0.667vw), 1rem);
      /* min: 12px, max: 16px */
      color: #fff;
      cursor: pointer;
      transition: all 0.2s ease;

      &:hover {
        background: #fffc56;
        color: #000;
      }
    }

    input[type="radio"],
    input[type="checkbox"] {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;

      &:checked + span {
        background: #fffc56;
        color: #000;
        font-weight: bold;
      }

      &:focus-visible + span {
        outline: 2px solid currentColor;
        outline-offset: 3px;
      }
    }
  }

  legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: clamp(1.125rem, calc(1rem + 0.333vw), 1.25rem);
    /* min: 18px, max: 20px */
    font-weight: 700;

    &:before {
      content: "●";
      color: #88d7df;
      font-size: 16px;
    }
  }
}

.subsidy-tags-wrap {
  position: relative;
  &:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    height: 48px;
    pointer-events: none;
  }
}
.subsidy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 56px;
  overflow: hidden;
  transition: all 0.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  &.is-expanded {
    max-height: 1000px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  label {
    span {
      display: inline-block;
      padding: 8px 16px;
      border: 1px solid #0074a3;
      border-radius: 9999px;
      background: #fff;
      color: #000;
      cursor: pointer;
      transition: all 0.2s ease;
      &:hover {
        background: #fffc56;
      }
    }
    input[type="radio"],
    input[type="checkbox"] {
      display: none;
      &:checked + span {
        background: #fffc56;
        color: #000;
        font-weight: bold;
      }
    }
  }
}
.subsidy-tags-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  &.is-visible {
    display: flex;
  }
}
.subsidy-tags-toggle-line {
  flex: 0 1 120px;
  min-width: 30px;
  height: 1px;
  border: 1px dashed #99a9b0;
}
.subsidy-tags-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 18px;
  line-height: 1;
}
.subsidy-tags-toggle-text {
  font-size: 14px;
  white-space: nowrap;
}

.subsidy-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 340px;
  margin: 48px auto 0;
  padding: 16px 0;
  border: 3px solid #0074a3;
  border-radius: 9999px;
  background: #fff;
  font-size: clamp(1.25rem, calc(1rem + 0.667vw), 1.5rem);
  /* min: 20px, max: 24px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;

  &:after {
    content: "";
    width: 28px;
    height: 28px;
    background: url(../images/subsidy_search_icn_submit.svg) center center no-repeat;
  }

  &:hover {
    color: #fff;
    background: #0074a3;
  }
}

/* ---------------------------------------------------------
   Search results
--------------------------------------------------------- */

.subsidy-result-wrapper {
  margin: 64px 0 0;
  padding: 64px 0;
  background: #edf8fc;
}

.subsidy-current-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 980px;
  margin: 0 auto 24px;
  @media screen and (max-width: 1023px) {
    max-width: 90vw;
  }
}

.subsidy-result-attention {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 980px;
  margin: 0 auto 3rem;
  background: #fff;
  color: hsl(41 90% 30%);
  border: 2px solid hsl(41 100% 50%);
  padding: 13px 16px;
  border-radius: 12px;
  small {
    font-size: clamp(0.75rem, calc(0.625rem + 0.333vw), 0.875rem); /* min: 12px, max: 14px */
    font-weight: 700;
  }
  .ic {
    color: hsl(41 100% 50%);
    flex: none;
    display: flex;
  }
}

.subsidy-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 980px;
  margin: 0 auto 40px;
  font-size: clamp(0.875rem, calc(0.75rem + 0.333vw), 1rem);
  /* min: 14px, max: 16px */

  @media screen and (max-width: 1023px) {
    max-width: 90vw;
  }
}

.subsidy-sort {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  label {
    font-size: 14px;
  }
  select {
    font-size: 14px;
    background: #f0f0f0;
  }

  a.is-active {
    font-weight: 700;
  }
  button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background-color: #0074a3;
    border: 2px solid #0074a3;
    border-radius: 4px;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease;

    &:hover {
      color: #0074a3;
      background-color: #fff;
    }

    &:focus-visible {
      outline: 3px solid #f0a000;
      outline-offset: 3px;
    }
  }
}

.subsidy-results,
.subsidy-related__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;

  @media screen and (max-width: 1023px) {
    max-width: 90vw;
  }

  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

.subsidy-results.is-collapsed {
  max-height: 900px;
  overflow: hidden;
}

/* =========================================================
   Subsidy card
========================================================= */

.subsidy-card {
  position: relative;
  display: flex;
  flex-direction: column;

  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);

  h2 {
    margin: 0;
    font-size: clamp(1rem, calc(0.875rem + 0.333vw), 1.125rem);
  }

  .subsidy-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border-radius: inherit;
    &:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: -2px;
    }

    &:hover {
      opacity: 0.8;
    }
  }

  .subsidy-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    pointer-events: none;
    & > * {
      pointer-events: none;
    }
  }

  .subsidy-data {
    width: 100%;
  }

  .subsidy-meta {
    margin: 8px 0 0;
  }

  .subsidy-date-end,
  .subsidy-organizer {
    p {
      margin: 0;
      font-size: 14px;

      &:not(:first-of-type) {
        margin: 1.25rem 0 0;
      }
    }
  }

  .subsidy-date-end {
    p {
      display: inline-block;
      color: #ba3652;
      border-bottom: 2px dashed;
    }
    .subsidy-deadline-alert {
      display: inline-block;
      font-size: clamp(0.75rem, calc(0.625rem + 0.333vw), 0.875rem); /* min: 12px, max: 14px */
      font-weight: 700;
      color: #fff;
      background: #ba3652;
      margin: 0 0 0 4px;
      padding: 4px 8px;
      border-radius: 9999px;
    }
  }

  .subsidy-amount,
  .subsidy-rate {
    display: flex;
    justify-content: space-between;
    align-items: stretch;

    width: 100%;
    color: #0074a3;
    border: 4px solid #0074a3;
    border-radius: 16px;

    .subsidy-label {
      display: block;
      box-sizing: border-box;
      flex: 0 0 6em;
      width: 6em;
      padding: 16px clamp(0.75rem, calc(0rem + 2vw), 1.5rem);

      font-size: 18px;
      font-weight: 700;
      color: #fff;

      border-right: 1px solid #0074a3;
      background: #0074a3;
      border-radius: 8px 0 0 8px;

      @media screen and (max-width: 767px) {
        flex-basis: 5em;
        width: 5em;
      }
    }

    p {
      display: flex;
      align-items: center;
      flex: 1;
      min-width: 0;
      margin: 0;
      padding: 4px 24px;

      font-family: "NotoSansJP-SmallMoney", var(--font-ja);
      font-size: 32px;
      font-weight: 700;
    }
  }

  .subsidy-rate {
    margin: 8px 0 0;
    p {
      font-size: clamp(1rem, calc(0.875rem + 0.333vw), 1.125rem); /* min: 16px, max: 18px */
    }
  }

  .subsidy-summary {
    margin: 0;
    padding: 0;
    background: inherit;

    p {
      margin: 0;
      font-size: clamp(0.875rem, calc(0.75rem + 0.333vw), 1rem);

      &:not(:first-of-type) {
        margin: 1.25rem 0 0;
      }
    }
  }

  /* ハッシュタグ */
  .subsidy-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    font-size: 0.85rem;
  }

  .subsidy-card-tag {
    position: relative;
    z-index: 3;
    display: inline-block;

    width: auto;
    height: auto;
    padding: 0;

    color: #0074a3;
    text-decoration: none;
    pointer-events: auto;

    transition: opacity 0.2s ease;

    &:hover {
      opacity: 1;
      border-bottom: 1px solid #0074a3;
    }
  }
}

/* ---------------------------------------------------------
   Card badges / metadata
--------------------------------------------------------- */

.subsidy-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subsidy-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #eee;
  font-size: clamp(0.875rem, calc(0.75rem + 0.333vw), 1rem);
  /* min: 14px, max: 16px */
}

.subsidy-target-individual {
  background: #ba3652;
  color: #fff;
}

.subsidy-target-business {
  background: #00837c;
  color: #fff;
}

.subsidy-status-open {
  background: #b65b07;
  color: #fff;
}

.subsidy-status-upcoming {
  background: #0074a3;
  color: #fff;
}

.subsidy-status-closed {
  background: #545454;
  color: #fff;
}

.subsidy-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;

  @media screen and (max-width: 767px) {
    flex-direction: column;
    gap: 4px;
  }
}

/* =========================================================
   Pagination
========================================================= */

.subsidy-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin: 72px auto 24px;
  padding: 8px 32px;
  border-radius: 9999px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  color: #fff;
  background: #0074a3;

  a,
  a:link,
  a:visited,
  a:hover,
  a:active,
  a:focus {
    text-decoration: none;
  }
}

.subsidy-pagination__number,
.subsidy-pagination__next,
.subsidy-pagination__prev,
.subsidy-pagination__first,
.subsidy-pagination__last {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  color: #fff;
  background: #0074a3;
  line-height: 1;
  transition: all 0.2s ease;

  &.is_current,
  &:hover {
    color: #0074a3;
    background: #fff;
  }
}

.subsidy-no-results {
  grid-column: 1 / -1;
  padding: 50px 20px;
  text-align: center;

  a {
    padding: 16px 32px;
    border-radius: 9999px;
    color: #fff;
    background: #0074a3;
    text-decoration: none;
  }
}

/* =========================================================
   Subsidy detail
========================================================= */

.subsidy-post-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: clamp(1rem, calc(0rem + 2.667vw), 2rem);
  /* min: 16px, max: 32px */
  border-radius: 16px;
  background: #fff;

  @media screen and (max-width: 1023px) {
    max-width: 90vw;
  }

  h1 {
    margin: 24px 0;
    font-size: clamp(1.5rem, calc(0.5rem + 2.667vw), 2.5rem);
    /* min: 24px, max: 40px */

    &:after {
      content: "";
      display: block;
      width: 100%;
      height: 4px;
      margin: 24px 0 0;
      background-color: #9cdbdc;
      background-image: linear-gradient(270deg, #9cdbdc 0%, #00b5d5 100%);
    }
  }

  .subsidy-dates {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 30px;
    color: #0074a3;

    @media screen and (max-width: 767px) {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 4px 16px;
      width: fit-content;
      margin-inline: auto 0;
    }

    dt {
      font-size: 14px;
      font-weight: 700;

      &:not(:first-of-type) {
        margin: 0 0 0 16px;

        @media screen and (max-width: 767px) {
          margin: 0;
        }
      }
    }

    dd {
      margin: 0;
      font-size: 14px;
    }
  }

  .subsidy-summary {
    margin: 64px 0 0;
    padding: 16px;
    border-radius: 8px;
    background: #fcffdb;

    p {
      margin: 0;
      font-size: clamp(0.875rem, calc(0.75rem + 0.333vw), 1rem);

      &:not(:first-of-type) {
        margin: 1.25rem 0 0;
      }
    }
  }

  .subsidy-detail-table {
    width: 100%;
    margin: 48px 0 0;
    border-collapse: collapse;

    tbody {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      width: 100%;
      gap: 16px;

      @media screen and (max-width: 767px) {
        grid-template-columns: 1fr;
      }
    }

    tr {
      display: grid;
      grid-template-columns: 140px minmax(0, 1fr);
      border: 1px solid #ddd;
      border-radius: 8px;
      overflow: hidden;

      th,
      td {
        padding: 8px;
        text-align: left;
        border: none;
      }

      th {
        background: #0074a3;
        color: #fff;
        text-align: center;
        border-right: 1px solid #ddd;
      }
    }
  }
}

/* =========================================================
   Detail content
========================================================= */

.subsidy-content {
  margin: 64px auto 0;

  h2 {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;

    min-height: 64px;
    max-height: none;
    box-sizing: border-box;

    margin: 0;
    padding: 12px 24px;

    border-radius: 16px;
    background: #e7f3f8;

    font-size: clamp(1.25rem, calc(0.75rem + 1.333vw), 1.75rem);
    font-weight: 700;
    line-height: 1.3332;

    &::before {
      position: absolute;
      content: "";
      display: block;
      top: 0;
      left: 0;
      bottom: 0;
      flex: 0 0 10px;
      width: 10px;
      min-height: 64px;
      height: auto;

      border-radius: 16px 0 0 16px;
      background: #0074a3;
    }
  }

  h3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: clamp(1.125rem, calc(0.75rem + 1vw), 1.5rem);
    /* min: 18px, max: 24px */
    font-weight: 700;
    line-height: 1.3332;

    &:after {
      content: "";
      display: block;
      width: 100%;
      height: 4px;
      border-radius: 9999px;
      background: #0074a3;
    }
  }

  p,
  ul,
  ol,
  figure,
  blockquote,
  hr,
  div,
  h3,
  h4,
  h5 {
    max-width: 960px;
    margin: 1.7rem auto 0;

    & + h2 {
      margin: 4rem auto 0;
    }

    & + h3 {
      margin: 1.7rem auto 0;
    }

    @media screen and (max-width: 1023px) {
      max-width: 88vw;
    }
  }

  ul,
  ol {
    padding: 0 0 0 1.25rem;
  }

  hr {
    max-width: 960px;
    border: none;
    border-bottom: 2px solid;
    color: #0074a3;
  }

  .wp-block-separator {
    &:not(.is-style-wide) {
      &:not(.is-style-dots) {
        width: 100%;
      }
    }
  }
}

/* =========================================================
   Contact
========================================================= */

.subsidy-contact {
  position: relative;
  max-width: 980px;
  margin: 64px auto;
  padding: 48px;
  border: 6px solid #a7e8f3;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;

  @media screen and (max-width: 1023px) {
    max-width: 90vw;
    padding: 32px;
  }

  h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(1.125rem, calc(0.25rem + 2.333vw), 2rem);
    /* min: 18px, max: 32px */
    color: #0074a3;

    &:after {
      content: "";
      display: block;
      width: 100%;
      height: 2px;
      margin: 24px auto 0;
      background: #0074a3;
    }
  }

  p {
    max-width: fit-content;
    margin: 48px auto;
  }

  .subsidy-source {
    a {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: clamp(0.5rem, calc(0rem + 1.333vw), 1rem); /* min: 8px, max: 16px */
      width: fit-content;
      margin: 48px auto 0;
      padding: 16px clamp(1.5rem, calc(1rem + 1.333vw), 2rem);
      border-radius: 9999px;
      color: #000;
      background: #ffe8e6;
      font-size: clamp(1rem, calc(0.5rem + 1.333vw), 1.5rem);
      /* min: 16px, max: 24px */
      font-weight: 700;
      text-decoration: none;
      box-sizing: border-box;
      transition: all 0.2s ease;

      &:hover {
        opacity: 0.8;
      }

      &:after {
        content: "";
        display: block;
        width: 16px;
        height: 16px;
        background: url(../images/subsidy_contact_link-out.svg) center center no-repeat;
        background-size: contain;
      }
      span {
        display: inline-block;
        width: 0;
        height: 0;
        clip: rect(0, 0, 0, 0);
        overflow: hidden;
      }
    }
  }

  &:after {
    content: "";
    position: absolute;
    bottom: clamp(1rem, calc(-1rem + 5.333vw), 3rem);
    /* min: 16px, max: 48px */
    right: clamp(1rem, calc(-1rem + 5.333vw), 3rem);
    /* min: 16px, max: 48px */
    width: 15%;
    max-width: 104px;
    aspect-ratio: 104 / 157;
    background: url(../images/subsidy_contact_ill_right.svg) center center no-repeat;
    background-size: contain;
  }
}

/* =========================================================
   Detail back link
========================================================= */

.subsidy-detail__back {
  a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: fit-content;
    margin: 48px auto 0;
    padding: 16px 32px;
    border-radius: 9999px;
    color: #fff;
    background: #0074a3;
    border: 2px solid transparent;
    font-size: clamp(0.875rem, calc(0.625rem + 0.667vw), 1.125rem);
    /* min: 14px, max: 18px */
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;

    &:before {
      content: "";
      display: block;
      width: 22px;
      height: 13px;
      background-color: #fcffae;
      mask: url(../images/subsidy_prev_archive_icn.svg) center center no-repeat;
      -webkit-mask: url(../images/subsidy_prev_archive_icn.svg) center center no-repeat;
      background-size: contain;
      transition: background-color 0.3s ease;
    }
    &:hover {
      opacity: 1;
      color: #0074a3;
      background: #fff;
      border: 2px solid #0074a3;
      &:before {
        background-color: #0074a3;
      }
    }
  }
}

/* =========================================================
   Related information
========================================================= */

.subsidy-related {
  position: relative;
  padding: 96px 0;
  z-index: 1;

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #ffbcb9;
    background-image: linear-gradient(125deg, #ffbcb9 0%, #f9ffb8 100%);
    opacity: 0.6;
  }

  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #fff;
  }
}

.subsidy-related__inner {
  max-width: 1024px;
  margin: 0 auto;

  /*
   * 「関連情報」の見出しだけを対象にする。
   * カード内のh2には適用しない。
   */
  > h2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: clamp(1.25rem, calc(0.5rem + 2vw), 2rem);
    /* min: 20px, max: 32px */
    font-weight: 700;

    &:after {
      content: "";
      display: block;
      width: 99%;
      height: 2px;
      background: #0074a3;
    }
  }

  .subsidy-related__list {
    max-width: 1024px;
  }

  @media screen and (max-width: 1023px) {
    max-width: 90vw;
  }
}

/* =========================================================
   Breadcrumb
========================================================= */

.breadcrumb {
  width: 100%;
  max-width: 1024px;
  margin: 16px auto 32px;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;

  @media screen and (max-width: 767px) {
    margin: 24px auto 16px;
  }

  &:-webkit-scrollbar {
    display: none;
  }

  .breadcrumb__list {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    list-style: none;
  }

  .breadcrumb__item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 8px;
    white-space: nowrap;
    font-size: clamp(0.75rem, calc(0.625rem + 0.333vw), 0.875rem);
    /* min: 12px, max: 14px */

    &:not(:first-of-type) {
      &:before {
        content: ">";
        display: block;
        width: fit-content;
      }
    }

    a {
      color: inherit;
      text-decoration: none;

      &:hover {
        color: #0074a3;
        text-decoration: underline;
      }
    }
  }
}
