@charset "UTF-8";

/* お知らせ詳細：日付・カテゴリ（一覧と同じ形） */
.news_single_meta {
  display: flex;
  align-items: center;
  margin-bottom:0.4em;
}

.news_single_date {
  font-size: 18px;
  color: #666;
  margin-right: 1.6em;
}

.news_single_cat {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green);
  color: #fff;
  font-size: 16px;
  padding: 0.3em 1.2em;
  border-radius: 3px;
  text-align: center;
  height: 1.9em;
}

.news_single_cat.subsidy {
  background-color: #88abda;
}

/* 補助金詳細：受付期間・リンクURL */


/* .hojyo_info_wrap {
  background-color: #f5f8fc;
  padding: 1em;
  border-radius: 8px;
  margin-bottom: 2em;
  margin-top: 2em;
} */

.news_single_subsidy_info {
  margin-top: 1.8em;
  padding: 1.4em 1.6em;
  background-color: #f5f8fc;
  border: 2px solid #88abda;
  border-radius: 4px;
  display: table;
}

.news_single_subsidy_info .news_reception {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.5em;
}


.news_reception:has(.news_status.ended) {
  background: transparent;
}

.news_status.ended {
  margin-left: 0;
}


.news_single_subsidy_info .news_reception_period {
  font-size: 14px;
  color: #666;
  margin-bottom: 0.5em;
}

.news_single_subsidy_info .news_link_url {
  font-size: 15px;
}

.news_single_subsidy_info .news_link_url a {
  text-decoration: underline;
  word-break: break-all;
}


.sec_ttl {
  display: inline;
  line-height: 1.6;
  padding-bottom: 0;
  font-size: clamp(26px, 2.7vw, 34px);
}


.news_single_body {
  margin: 3em 0 0;
    h3 {
      font-size: clamp(20px, 2.7vw, 24px);
      font-weight: 700;
      margin: 1em 0 0.8em;
      padding: 0.4em 0.6em 0.4em 0.9em;
      background-color: #eff7f4;
      border-left: 4px solid var(--green);
      /* border-radius: 0 4px 4px 0; */
      line-height: 1.5;
    }
    * + h3 {
      margin-top: 2em;
    }
    p {
      margin: 0.5em 0 1.2em;
      line-height: 1.72;
        img{
          width: auto;
          height: auto;
        }
    }
    a{
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
}


/* class="emoji" の img を持っている p だけに適用（絵文字と電話番号を横並びに） */
.news_single_body p:has(img.emoji) {
  display: inline-flex;
  align-items: center;
}

.news_single_body p:has(img.emoji) img.emoji {
  width: 1em;
  height: auto;
  vertical-align: middle;
  margin-right: 0.4em;
}
main{
  padding-bottom: 10%;
}

.ex_file{
  background-color: #eee;
  padding: 3em;
  border-radius: 8px;
      ul{
        /* display: flex;
        flex-direction: column;
        gap: 2em; */
            li{
              display: flex;
              align-items: center;
              gap: 1em;
                  .ex_file_link {
                    display: flex;
                    align-items: center;
                    /* flex-direction: column; */
                    gap: 1em;
                    line-height: 1.4;
                  }
                  .file_name{
                    display: flex;
                    flex-direction: column;
                    gap: 0.5em;
                  }
                  .pdf_ico{
                    width: 2em;
                    height: 2em;
                  }
            }
            li + li{  
              border-top: 1px solid #ccc;
              padding-top: 1em;
              margin-top: 1em;
            }
            .download_btn {
              background-color: #4a8eff;
              border-radius: 3px;
              text-align: center;
              display: block;
              color: #fff;
              max-width: 170px;
              padding: 0.5em;
            }
      }
}
@media all and (max-width: 899px) {
  .news_single_meta {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.4em;
  }

  .news_single_date {
    font-size: 15px;
    margin-right: 0.8em;
  }

  .news_single_cat {
    font-size: 13px;
    padding: 2px 6px;
    min-width: auto;
  }

  .ex_file{
    background-color: #eee;
    padding: 1.6em;
    border-radius: 4px;
  }
  main {
    padding-bottom: 20%;
    font-size: 16px;
  }
  .news_single_body {
    h3 {
      font-size: 18px;
      padding: 0.3em 0.4em 0.3em 0.5em;
    }
  }

  .news_reception:has(.news_status.ended) {
    padding: 0;
  }
  .news_status.ended {
    font-size: 15px;
    padding: 4px 14px;
  }
}
