.main-content {
    width: 76%;
}

.section-base{
  margin-bottom: 7%;
}
@media screen and (max-width: 768px) {
  .section-base {
    margin-bottom: 10%;
  }
}

.section-min{
  margin-bottom: 4%;
}

.tags {
  display: flex;
  flex-wrap: wrap;
}

.tags__tag {
  font-size: 12px;
}
@media screen and (min-width: 768px) {
  .news-detail__meta .tags__tag {
    font-size: 16px;
  }
}

.tags__tag:first-of-type{
  padding-left: 20px;
  margin-left: -22px;
}
.tags__tag:first-of-type::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("../img/common/icon-tag.svg");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  vertical-align: middle;
}


.btn-base {
  border:1px solid var(--colorLightBase);
  background-color: var(--colorLightBase);
  color: #fff;
  text-align: center;
  border-radius: 30px;
  padding: 10px 3em;
  display: inline-block;
}
.btn-base:hover{
  border: 1px solid var(--colorLightBase);
  background-color:#fff;
  color: var(--colorLightBase);
}

.btn-base-outline {
  background-color: #fff;
  border:1px solid var(--colorLightBase);
  color: var(--colorLightBase);
  text-align: center;
  border-radius: 30px;
  padding: 10px 3em;
  display: inline-block;
  transition: 0.3s all;
}
.btn-base-outline:hover{
  background-color:var(--colorLightBase);
  color: #fff;
}

.btn-base-seminar {
  border:1px solid var(--colorSubAccent);
  background-color: var(--colorSubAccent);
  color: #fff;
  text-align: center;
  border-radius: 30px;
  padding: 10px 4em;
  display: inline-block;
  transition: 0.3s all;
}

.btn-base-seminar:hover {
  box-sizing: border-box;
  background-color: #fff;
  color: var(--colorSubAccent);
  border:1px solid var(--colorSubAccent);
  text-align: center;
  border-radius: 30px;
  padding: 10px 4em;
  display: inline-block;
}

/* シミュレーターボタン追加 */
.btn-base-simulator {
  border:1px solid var(--colorSubAccent);
  background-color: var(--colorSubAccent);
  color: #fff;
  text-align: center;
  font-weight: bold;
  border-radius: 50px;
  padding: 15px 6em;  
  display: inline-block;
  transition: 0.3s all;
  .icon-login{
    width: 20px;
    position: relative;
    top: 5px;
    @media (max-width: 600px) {
      width: 16px;
      top: 3px;
    }
    margin-left: 10px;
    transition: filter 0.3s;
    /* 白色のSVGに変換 */
    filter: brightness(0) invert(1);
  }
}

.btn-base-simulator:hover {
  box-sizing: border-box;
  background-color: #fff;
  color: var(--colorSubAccent);
  border:1px solid var(--colorSubAccent);
  img {
    /* オレンジ色(FF6D03)のSVGに変換 */
    filter: invert(42%) sepia(97%) saturate(1972%) hue-rotate(359deg) brightness(103%) contrast(106%);
  }
}

.message-wait{
  background: #e6f6f9;
  padding: 1em;
  text-align: left;
  border: 1px solid #5cb4c2;
  color: #168ea1;
  border-radius: 10px;
  font-size: clamp(14px, 2vw, 16px);
}

.message-desc{
  background: #e6f6f9;
  padding: 1em;
  text-align: left;
  border: 1px solid #5cb4c2;
  color: #168ea1;
  border-radius: 10px;
}

.message-none{
  background: #f3f3f3;
  padding: 1em;
  text-align: left;
  border: 1px solid #ddd;
  color: #555;
  border-radius: 10px;
  text-align: center;
  font-size: clamp(14px, 2vw, 16px);
}


.pagination-total{
    /* font-weight: bold; */
    padding-bottom: 1em;
    font-size: clamp(14px, 2vw, 16px);
  }

  .pagination{
    display: flex;    
    align-items: start;
    flex-wrap: wrap;
  }  
  .pagination > .current,
  .pagination > a {
    background: #f3f3f3;
    display: inline-block;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 52px;
    height:52px;
    line-height:53px;
    text-align: center;
  }
  .pagination > .next,
  .pagination > .prev {
    width:64px;
  }

  .pagination > a {
    transition: all 0.3s;
  }
  .pagination > a:hover {
    color:#fff;
    background: var(--colorLightBase);
  }
  .pagination > .current{
    color:#fff;
    background: var(--colorLightBase);
  }
  
  
  .title-base {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
  }
  .title-base__icon {
    width: 28px;
    margin-right: 8px;
  }

  .title-block--min{
    margin-bottom: 1em;
    align-items: center;
  }

  .title-block--min__title {
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px solid #aaa;
  }



  .title-block{
    margin-bottom: 1.4em;
    align-items: center;
  }
  .title-block__title-text {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: bold;
    /* display: flex; */
    align-items: center;
    line-height:1.4;
  }
  .title-block__title__more-link {
    font-size: clamp(12px, 2vw, 16px);
    font-weight: bold;
    color:var(--colorLightBase);
  }

  .title-block__title-icon {
    width: 28px;
    margin-right: 8px;
  }

  .title-block__buttons{
    display: flex;
  }
  .title-block__buttons .button{
    display: inline-flex;
    align-items: center;
    padding: 2px 15px 1px;
    text-decoration: none;
    border-radius: 30px;
    background-color: #fff;
    font-size: 14px;
    color: var(--colorLightBase);
    border: 1px solid var(--colorLightBase);
    position:relative;
    white-space: nowrap;
    transition: all 0.3s ease;
  }
  .title-block__buttons .button:hover {
    background-color: var(--colorLightBase);
    color: #fff;
  }
  .title-block__buttons .button--accent{
    color: var(--colorSubAccent);
    border: 1px solid var(--colorSubAccent);
    transition: all 0.3s ease;
  }
  .title-block__buttons .button--accent:hover {
    color: #fff;
    background-color: var(--colorSubAccent);
  }

  .title-block__buttons .arrow::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
    margin-left: 8px;
  }

  .title-block.obi .title-block__title{
    font-weight: bold;
  }
  /* .title-block__title-text {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: bold;
    display: flex;
    align-items: center;
    line-height:1.4;
  }
 */



  @media (min-width: 769px) {
  }

  .title-block.obi{
    background: #f3f3f3;
    padding: 1em 1em;
    /* border-left: 7px solid #888; */
    border-left: 7px solid var(--colorLightBase);
    font-size: clamp(18px, 2.5vw, 26px);
  }


  /* .buttons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
  }
  
  .button {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    color: #333;
    font-size: 14px;
    padding: 5px 15px;
    text-decoration: none;
    margin-left: 10px;
  } */

  .news-seminars {
    /* display: none;     */
  }
  
  @media (max-width: 768px) {
    .home .news-seminars.type-news {
      display: none;
    }
  }
  
  .news-list {
    list-style-type: none;
    padding: 0;
  }
  
  .news-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
  }
  
  .date {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
  }
  
  /* .category {
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    margin-right: 10px;
  } */
  
  .notice {
    background-color: #999;
  }
  
  .furusato {
    background-color: #6b8e23;
  }
  
  .event {
    background-color: #ff8c00;
  }
  
  .news-list a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
  }
  
  .news-list a:hover {
    text-decoration: underline;
  }


  .project-search {
    text-align: center;
    width: 100%;
    margin:2% auto;
  }
  
  @media (max-width: 768px) {
    .project-search {
      margin: 10% auto;
    }
  }
  
  /* プロジェクトを探すボタン */
  .search-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
    width: 100%;
  }
  
  .search-options__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
    border: 4px solid #AFCCD1;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    container-type: inline-size;
    container-name: search-options__item;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .search-options__item:hover {
    transform: scale(1.03);
    border-color: var(--colorLightBase);
  }
  
  .search-options__text{
    font-size: clamp(14px, 7cqi, 20px);
    font-weight: bold;
    text-align: left;
    line-height: 1.5;
  }
  .search-options__icon {
    width: 65px;
    margin-right: 20px;
  }
  @media (max-width: 960px) {
    .search-options {
      grid-template-columns: repeat(2, 1fr);
    }
    .search-options__item {
      flex-direction: column;
      text-align: center;
    }
    .search-options__text {
      flex-direction: column;
      text-align: center;
    }
    .search-options__icon {
      width: 26%;
      margin: auto auto 6%;
    }
  
  }
  @media (max-width: 768px) {
    .search-options__icon {
      width: 32%;
    }
  }


  /* @container search-options__item (max-width: 980px) {
    .search-options__text{
      font-size: clamp(14px, 2.5vw, 20px);
      font-weight: bold;
      text-align: left;
      line-height: 1.5;
    }
  
  }
 */
  .search-option i {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .project-list-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
  }

  .flex-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .primary-content {
    width: 75%;
    padding-left: 3%;
    box-sizing: border-box;
    container-type: inline-size;
    container-name: primary-content;
  }

  @media (max-width: 768px) {
    .flex-container {
      flex-direction: column;
    }

    .aside,
    .primary-content {
      width: 100%;
      padding: 0;
    }
  }

  .river-editorial .section-header .section-title {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
  }

  .river-editorial .section-header .section-title .more-link {
    font-size: 16px;
    color: #168EA1;
    text-decoration: underline;
    margin-left: 10px;
  }

  .river-editorial .section-header .section-title .more-link:hover {
    text-decoration: underline;
  }





.donation-summary {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
    position:relative;
}

.donation-summary__btn{
  position: absolute;
  left: 60px;
  bottom: 30px;
}

@media (max-width: 1100px) {
  .donation-summary__btn{
    position: inherit;
    left: 0;
    bottom: 0;
    margin: auto;
    width:auto;
  }
}

@media (max-width: 600px) {
  .donation-summary__btn{
    margin-top:5%;
  }
}


.donation-summary__header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; 
    text-align: center;
  }
  
  .donation-summary__logo-container {
    flex-shrink: 0;
    width: 232px;
  }

  @media (max-width: 1100px) {
    .donation-summary__header {
      flex-wrap: wrap;
    }
    /* .donation-summary__logo-container {
      width: 100%;
    } */
  }
  
  .donation-summary__title {
    font-size: clamp(18px, 2.5vw, 30px);
    font-weight: bold;
    color: var(--colorDarkBase);
    margin: 0 20px 0 0;
    width: 5em;
  }
  
  .donation-summary__description {
    font-size: clamp(14px, 1.5vw, 22px);
    font-weight: bold;
    text-align: left;
  }
  
  @media (max-width: 1100px) {
    .donation-summary__description {
      text-align: center;
      margin-top: 1em;
    }
  }
  
  .donation-summary-container {
      background-color: #4a8da3;
      padding: 50px 0;
      width: 100%;
    }
  
.donation-summary__logo {
    margin-right: 10px;
}

.donation-summary__content {
    display: flex;
    width:100%;
}

.donation-summary__main {
    width: 100%;
}

/* .donation-summary__side {
    width: 16%;
} */

.donation-summary__total {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.donation-summary__icon-container {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
} 

.donation-summary__dl_block {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .donation-summary__dl_block {
    flex-wrap:wrap;
    margin-bottom: 10px;
  }
}

.donation-summary__dl {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-left:1em;
  margin-left: 1.5%;
}

@media (max-width: 600px) {
  .donation-summary__dl {
    width: 100%;
    justify-content: flex-start;
    padding:0;
    margin:0 0 8px 0;
    
  }
}

.donation-summary__dl .logo-ruiseki{
  min-width: 190px;
  white-space:nowrap;
  @media (max-width: 600px) {
    width: 7em;
    padding-right: 0px!important;
    margin-right: 15px;
    text-align: right;
  }
}
.donation-summary__dl .logo-ruiseki .text{
  display: none;
  font-size: clamp(14px, 2.5vw, 24px);
  font-weight: bold;
  min-width:4.5em;
}


@media (max-width: 1200px) {
  .donation-summary__dl .logo-ruiseki{
    min-width: inherit;
  }
  
  .donation-summary__dl .logo-ruiseki .text{
    display: block;
  }  
  .donation-summary__dl .logo-ruiseki img{
    display: none;
  }  
}






.donation-summary__dl dt.name {
  margin-right: 10px;
  font-size: clamp(14px, 2.5vw, 24px);
  text-align: right;
  font-weight: bold;
  align-self: center;
  padding-right: 5px;
  line-height: 1.3;
  padding-top:5px ;
  min-width: 4em;
  @media (max-width: 600px) {
    width:6em;
  }  
}

/* @media (max-width: 600px) {
  .donation-summary__dl dt.name br{
    display: none;
  }
} */

.donation-summary__dl dd {
  text-align: right;
  width: auto;
}

.donation-summary__dl__value {
  font-size: clamp(24px, 5vw, 70px);  
  font-weight: bold;
  line-height: 1.3;
  border-radius: 5px;
  text-align: right;
  display: inline-block;
  white-space: nowrap;
  /* overflow: hidden; */
  color: var(--colorAccent);
  vertical-align: bottom;
}
.donation-summary__dl__value .text {
  color: var(--colorBlack);
  vertical-align: bottom;
}




.color_pink{
  color: var(--colorAccent);
}

.bg_half_pale_pink {
  background: linear-gradient(transparent 55%, var(--colorPaleAccent) 50%);
  position: relative;
  z-index: 1;
}

.donation-summary__dl__value .yen,
.donation-summary__dl__value .text {
  font-size: clamp(14px, 3vw, 30px);
  margin-left: 5px;
  font-weight:bold;
}
.donation-summary__dl__value .text {
  position: relative;
  top:-8px;
  @media (max-width: 600px) {
    top:-2px;
  }
}

.table-vertical{
  width: 100%;
}
.table-vertical .table-vertical__th{
  font-weight: bold;
  font-size:14px;
  border:1px solid #fff;
  border-left:none;
  border-right:none;
  background: #eee;
  width:36%;
  padding:1em;
  text-align: left;
  vertical-align: middle;
}
.table-vertical .table-vertical__td{
  border:1px solid #ddd;
  border-left:none;
  border-right:none;
  padding:1em;
}

.table-horizontal{
  width: 100%;
}
.table-horizontal .table-horizontal__th{
  font-weight: bold;
  font-size:14px;
  background: #eee;
  padding:1em;
  text-align: center;
}
.table-horizontal .table-horizontal__td{
  border:1px solid #ddd;
  border-top:none;
  border-left:none;
  border-right:none;
  padding:1em;
  text-align: center;
}

.table-complex{
  width: 100%;
  border:1px solid #ddd;
}
.table-complex .table-complex__th{
  font-weight: bold;
  font-size:14px;
  background: #eee;
  padding:0.8em;
  line-height: 1;
  text-align: center;
  border-top:1px solid #ddd;
}
.table-complex .table-complex__td{
  border:1px solid #ddd;
  padding:0.8em;
  line-height: 1;
  text-align: center;
  font-size:14px;
}
.table-complex .type-left{
  text-align: left;
}

.table-complex .table-complex__border-right{
  border-right:1px solid #ddd;
}
.table-complex .table-complex__border-bottom-none{
  border-bottom:none;
}
.table-complex__td--horizontal-arrow{
  position: relative;
}

.table-complex__td--horizontal-arrow span:first-child {
  float: left;
}

.table-complex__td--horizontal-arrow span:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.table-complex__td--horizontal-arrow span:last-child {
  float: right;
}

.table-complex__td--vertical-arrow{
  position: relative;
  height: 100%;
  padding:10px 5px 10px 5px;
}

.table-complex__td--vertical-arrow span:first-child {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  text-align: center;
}

.table-complex__td--vertical-arrow span:nth-child(2) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.table-complex__td--vertical-arrow span:last-child {
  position: absolute;
  bottom: 10px;
  right: 0;
  width: 100%;
  text-align: center;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 90vw;
    height: 90vh;
    max-width: none;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.btn-accept-off{
  display: inline-flex;
  padding: 0px 8px 0px;
  line-height: 1;
  text-decoration: none;
  border-radius: 4px;
  background-color: #fff;
  font-size: 10px;
  color: var(--colorLightBase);
  border: 1px solid var(--colorLightBase);
  white-space: nowrap;
  height: 24px;
  line-height: 24px;
}

/* ローディングスピナー */
.loading-spinner {
    width: 24px;
    height: 24px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--colorLightBase);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner-container {
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

/* プロジェクト一覧のローディング */
.lg-project-section .loading-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;  /* コンテンツの高さに応じて調整 */
}

/* プロジェクト動画セクションのローディングも同様に */
.lg-project-movie-section .loading-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.no-data-message {
    text-align: center;
    padding: 20px;
    color: #666;
}




/* 検索 */
.filter-form{
  display:flex;
  align-items:flex-end;
  justify-content: flex-start;
  flex-wrap:wrap;
}

.filter-input, .filter-select {
  padding: 5px 5px 5px 30px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: url(../img/common/icon-search.svg) no-repeat 10px center #fff;
  background-size: 16px 16px;
  box-sizing: border-box;
  height:42px;
  width:230px;
  &::placeholder {
    color: #333;
  }
}

@media screen and (max-width: 600px) {
  .filter-input, .filter-select {
    width: 100%;
    margin-bottom: 10px;
  }
}

.filter-select {
  padding: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  padding-right:20px;
}
.filter-submit {
  font-size: 14px; 
  color: #fff; 
  border-radius: 6px; 
  background-color: var(--colorLightBase); 
  padding: 8px 14px; 
  border: none; 
  cursor: pointer; margin-top: 8px;
  height:42px;
}



/* 地域フィルター */
.location-filter {
  position: relative;
  display: inline-block;
  min-width: 240px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.location-filter__header {
  padding: 8px 12px;
  cursor: pointer;
}

.location-filter__content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.location-filter__content.is-open {
  display: block;
}

.location-filter__item {
  padding: 8px 12px;
}

.location-filter__group {
  /* border-top: 1px solid #eee; */
}

.location-filter__group:first-child {
  border-top: none;
}

.location-filter__group-header {
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  /* background: #f5f5f5; */
}

.location-filter__group-content {
  display: none;
  padding-left: 20px;
  background: #fff;
}

.location-filter__group-content.is-open {
  display: block;
}

.location-filter__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s;
}

.location-filter__group-header.is-open .location-filter__toggle {
  transform: translateY(-50%) rotate(-135deg);
}

.location-filter__item label {
  margin-left: 8px;
  cursor: pointer;
}

.location-filter__item input[type="checkbox"] {
  cursor: pointer;
}

/* チェックボックスのカスタマイズ */
.location-filter input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-color: #F3F3F3;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  margin: 0;
}

.location-filter input[type="checkbox"]:checked {
  background-color: var(--colorLightBase);
}

.location-filter input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  top: 2px;
  left: 7px;
  transform: rotate(45deg);
}
