.project-main{

  .iframe-wrap{
    position: relative;
    width: 100%;
    /* アスペクト比ボックスは LazyYouTube 側で自己完結させる（再生前の余白防止） */
  }
      
  .project-tab-section {
    margin-bottom: 5%;
  }

  .tab-container {
    display: flex;
    border-bottom: 3px solid var(--colorLightBase);
  }

  .tab {
    width: 32%;
    padding: 15px 10px;
    margin-right: 15px;
    text-align: center;
    background-color: #EAEAEA;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: background-color 0.3s ease;
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: bold;
    white-space: nowrap;
  }
  
  @media (max-width: 768px) {
    .tab {
      width: 47%;
    }
  }

  .tab:hover,
  .tab.active {
    background-color: var(--colorLightBase);
    color: white;
  }

  .tab-content {
    margin-top: 5%;
  }


  .tab-pane {
    display: none;
  }

  .tab-pane.active {
    display: block;
  }

  .ul-bg{
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
  }

  /* 活動報告・お知らせ見出しに白地を敷く（詳細ページは .main__wrapper が #eee のため） */
  .news-seminars .title-block__title-text{
    display: inline-block;
    background: #fff;
    padding: 0.3em 0.7em;
  }

} /* project-main*/

html.project_detail_root .project-main .news-seminars .title-block__title-text,
body.project_detail_root .project-main .news-seminars .title-block__title-text{
  background: transparent;
  padding: 0;
}


.main__wrapper.project-detail-bg{
  background: var(--colorLightGray);
  overflow: visible;
}
@media (max-width: 1024px) {
  .main__wrapper.project-detail-bg{
    overflow: hidden;
  }
}

html.project_detail .main__wrapper,
body.project_detail .main__wrapper {
  background: var(--colorLightGray);
  overflow: visible;
  position: relative;
}
@media (max-width: 1024px) {
  html.project_detail .main__wrapper,
  body.project_detail .main__wrapper {
    overflow: hidden;
  }
}

html.project_detail .main__wrapper::before,
body.project_detail .main__wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: var(--colorLightBase) transparent transparent transparent;
  z-index: 0;
  border-width: 630px 48vw 0 0;
}

@media screen and (max-width: 960px) {
  html.project_detail .main__wrapper::before,
  body.project_detail .main__wrapper::before {
    border-width: 630px 68vw 0 0;
  }
}

@media screen and (max-width: 767px) {
  html.project_detail .main__wrapper::before,
  body.project_detail .main__wrapper::before {
    border-width: 500px 100vw 0 0;
  }
}

html.project_detail .main__inner,
body.project_detail .main__inner {
  position: relative;
  z-index: 1;
}


.project-detai-container{
  padding-bottom: 5%;
  position: relative;
}

@media (max-width: 1024px) {
  .project-detai-container{
    padding-bottom: 8%;
  }
}
.project-detail-title-block{
  /* padding: 3em 0; */
  padding: 1em 0 3em;
}

@media (max-width: 768px) {
  .project-detail-title-block {
    padding: 0 0 20px;
  }
}

.project-detail-title{
  font-size: clamp(18px, 3vw, 30px);
  font-weight: bold;
  background: #fff;
  padding: 10px 1em;
}


.project-main {
  width: 60%;
  padding-right: 3%;
}

@media (max-width: 1024px) {
  .project-main {
    width: 100%;
  }
}
.project-content{
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .project-content {
    flex-direction: column;
  }
}

.project-content-block{
  margin-bottom: 8%;
}

.project-detail-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8%;
}

.project-detail-navigation__link {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 164px;
  padding: 10px 64px 10px 10px;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 5px 16px rgba(23, 58, 101, 0.12);
  color: var(--colorLightBase);
  position: relative;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-detail-navigation__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 142px;
  border-radius: 8px;
  background: var(--colorLightBase);
}

.project-detail-navigation__icon--government svg {
  width: 44px;
  height: 54px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-detail-navigation__icon--japan::before {
  content: "";
  width: 50px;
  height: 50px;
  background-color: var(--colorLightBase);
  -webkit-mask: url("/oem-base/assets/img/common/japan.svg") center / contain no-repeat;
  mask: url("/oem-base/assets/img/common/japan.svg") center / contain no-repeat;
}

.project-detail-navigation__icon--japan {
  background: #eaf2fb;
}

.project-detail-navigation__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.project-detail-navigation__eyebrow {
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.4;
}

.project-detail-navigation__text {
  color: var(--colorLightBase);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.project-detail-navigation__description {
  color: #8a96a6;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.5;
}

.project-detail-navigation__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid var(--colorLightBase);
  border-radius: 50%;
  color: var(--colorLightBase);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.project-detail-navigation__link:hover {
  box-shadow: 0 8px 22px rgba(23, 58, 101, 0.2);
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .project-detail-navigation {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-detail-navigation__link {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    min-height: 130px;
    padding: 8px 56px 8px 8px;
  }

  .project-detail-navigation__icon {
    width: 68px;
    height: 112px;
  }

  .project-detail-navigation__icon--government svg {
    width: 38px;
    height: 48px;
  }

  .project-detail-navigation__icon--japan::before {
    width: 44px;
    height: 44px;
  }

  .project-detail-navigation__arrow {
    right: 10px;
    width: 38px;
    height: 38px;
  }
}

.content-box{
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
}
.content-box__obi{
  border-radius: 10px 10px 0px 0px;
  background: var(--colorLightBase);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);  
  color: #FFF;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: normal;
  padding: 0.7em 1em;
}

.project-action-list{
  /* margin-bottom: 5%; */
}
.project-action-list__item{
  margin-bottom: 1%;
}
.project-action-list__item a{
  font-size: clamp(16px, 2vw, 20px);
  font-weight: bold;
}
.project-action-list__item a:hover{
  text-decoration: underline;
}

.content-box__inner{
  padding: 30px;
}
.project-img-box{
  margin-bottom: 4%;
}

.project-img-box img{
  max-height:600px;
  object-fit: contain;
}

.project-text-box p{
  font-size: clamp(14px, 2.5vw, 18px);
  margin-bottom: 1em;
  line-height: 2em;
}
.project-text-box a{
  font-size: clamp(14px, 2.5vw, 18px);
  text-decoration: underline;
  color:var(--colorLightBase);
}
.project-text-box a:hover{
  text-decoration: none;  
}
.project-text-box h2{
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: bold;
  margin-bottom: 1em;
}
.project-text-box h3{
  font-size: clamp(20px, 1.8vw, 24px);
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: bold;
  margin-bottom: 1em;

  background: #f3f3f3;
  border-left: 5px solid var(--colorLightBase);  
  padding-left: 14px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.project-text-box h4{
  /* font-size: clamp(17px, 1.4vw, 20px); */
  font-size: clamp(14px, 2.3vw, 20px);
  font-weight: bold;
  margin-bottom: 1em;

  border-left: 5px solid var(--colorLightBase);
  padding-left:14px;
}

.project-text-box h1 + br,
.project-text-box h2 + br,
.project-text-box h3 + br,
.project-text-box h4 + br,
.project-text-box h5 + br,
.project-text-box h6 + br {
    display: none;
}


.project-region-heading{
  font-size: clamp(19px, 2.8vw, 25px);
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 4%;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.2vw, 22px);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-left: 8px solid var(--colorLightBase);
}

.project-index-list__link{
  font-size: clamp(16px, 2.5vw, 18px);
  text-decoration: underline;
  padding-left: 10px;
}
.project-index-list__item{
  margin-bottom: 1%;
}
/**/

.project-sidebar {
  width: 38%;
  box-sizing: border-box;
  /* min-width: 500px; */
  background-color: #fff;
  padding: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 6px;
  align-self: flex-start;
}





.project-sidebar--sticky {
  position: sticky;
  top: 80px;
  right:3%;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .project-sidebar {
    width: 100%;
    min-width: auto;
    position: static;
    margin-bottom:8%;
  }
}


/* @media (max-width: 768px) {
  .project-sidebar--sticky  {
      position: static;
      height: auto;
      overflow-y: visible;
  }
} */


.project-sidebar__inner {
  padding: 20px;
}


.project-sidebar__location {
  background-color: var(--colorLightBase);
  padding: 5px 10px;
  border-radius: 6px 0 0 0;
  display: inline-block;
  margin-bottom: 15px;
}
.project-sidebar__location-text{
  color: #fff;
  font-size: clamp(20px, 2vw, 26px);
  transition: opacity 0.3s ease;
}

.project-sidebar__location-text:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 右サイドバー: 自治体名(pill)の行。名前の右に「自治体データを見る」を並べる（狭ければ折返し） */
.project-sidebar__location-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 15px;
}
.project-sidebar__location-row > .project-sidebar__location {
  margin-bottom: 0;
}
/* 自治体データ(/lg/:code)への控えめなテキストリンク（.project-sidebar__tag と同系統） */
.project-sidebar__lg-data-link {
  color: var(--colorLightBase);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: bold;
  text-decoration: underline;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.project-sidebar__lg-data-link::before {
  content: "→ ";
}
.project-sidebar__lg-data-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* 左「自治体情報」エリア: 自治体データ(/lg/:code)へのボタン（青文字・青ボーダー・白背景、hoverで反転） */
.lg-data-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 4px auto 24px;
  padding: 14px 20px;
  background-color: #fff;
  color: var(--colorLightBase);
  border: 2px solid var(--colorLightBase);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 17px);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.lg-data-cta:hover {
  background-color: var(--colorLightBase);
  color: #fff;
}
.lg-data-cta__arrow {
  font-size: 1.1em;
  line-height: 1;
}

.project-sidebar__donation {
  margin-bottom: 5%;
}

.project-sidebar__donation-current {
  margin-bottom: 10px;
}
.project-sidebar__donation-current-label{
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
  display: block;
  margin-bottom: 3%;
}
.project-sidebar__donation-current-label::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 26px;
  background-image: url('../img/common/icon-yen.svg');
  background-size: 26px;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 0.5em;
  vertical-align: middle;
  transform: translateY(-3px);
}
.project-sidebar__donation-current-amount{
  font-size: clamp(36px, 4vw, 50px);
  font-weight:900;
  line-height: 1;
}
.project-sidebar__donation-current-amount .yen{
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight:900;
  padding-left: 5px;
}
.project-sidebar__donation-current-amount.type-hide{
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight:bold;
  line-height: 1;
}

.project-sidebar__donation-goal{
  margin-bottom: 10px;
}
.project-sidebar__donation-goal-label{
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
}
.project-sidebar__donation-goal-amount{
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
}
.project-sidebar__donation-notice{
  font-size: clamp(12px, 1.15vw, 14px);
  color:var(--colorLightBlack);
}

.project-sidebar__progress-bar {
  background-color: #e0e0e0;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.project-sidebar__progress {
  background-color: #FF6B6B;
  height: 100%;
}

.project-sidebar__stats {
  display: flex;
  justify-content: flex-start;
  gap:5%;
  margin-bottom: 20px;
}

.project-sidebar__stat-item {
  text-align: center;
}

.project-sidebar__stat-label {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
  margin-right: 10px;
}

.project-sidebar__stat-value {
  font-size: clamp(30px, 2.6vw, 36px);
  font-weight: 900;
  line-height: 1;
}
.project-sidebar__stat-value .min{
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
  margin-left: 2px;
}

.project-sidebar__tags {
  margin-bottom: 20px;
}

.project-sidebar__tag {
  display: inline-block;
  color: var(--colorLightBase);
  margin-right: 5px;
  text-decoration: underline;
  font-size: clamp(14px, 1.15vw, 16px);
}
.project-sidebar__tag:hover {
  text-decoration: none;
}

.project-sidebar__donate-button-wrap {
  margin-bottom: 10%;
}

.project-sidebar__donate-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-size: 200% auto;
  background-image: linear-gradient(91deg, #FF724D 0%, #EB0139 50%, #FF724D 100%);
  width: 254px;
  height: 64px;
  color: #FFF;
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  transition: background-position 0.2s ease;
}

.project-sidebar__donate-button:hover {
  background-position: 100% 0;
}

@media (max-width: 1024px) {
  .project-sidebar__donate-button-wrap {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    z-index: 100;
  }
  .project-sidebar__donate-button{
    max-width: 160px;
    height:55px;
  }
}
@media (max-width: 650px) {
  .project-sidebar__donate-button-wrap {
    width: 60%;
  }
  .project-sidebar__donate-button{
    max-width: 180px;
  }
}




/* 寄付ボタン直下の振込反映タイミング注記。wrap の margin-bottom:10% を相殺してボタンに寄せる */
.project-sidebar__donate-note {
  font-size: clamp(11px, 0.9vw, 12px);
  color: #777;
  text-align: center;
  line-height: 1.6;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  margin: -5% 0 7%;
}

@media (max-width: 1024px) {
  /* ボタン wrap は画面下部固定になるため相殺をやめて通常の流れに置く */
  .project-sidebar__donate-note {
    margin-top: 0;
  }
}

.project-sidebar__donate-button--disabled {
  background: #eee;
  color: #888;
  cursor: default;
}

.project-sidebar__payment-methods {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
}

.project-sidebar__payment-label {
  margin-bottom: 5px;
  width: 6em;
  white-space: nowrap;
  font-weight: bold;
  font-size: clamp(13px, 1.15vw, 15px);
}

.project-sidebar__payment-options {
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.4;
  font-weight: bold;
}

.project-sidebar__supporting-companies {
}

.project-sidebar__companies-title {
  border-radius: 30px;
  background: var(--colorGold);
  color:#fff;
  text-align: center;
  border-radius: 30px;
  padding:0.5em 1em;
  margin-bottom: 3%;
}

.project-sidebar__companies-notice {
  font-size: clamp(11px, 0.9vw, 12px);
  color:#777;
  margin-bottom: 3%;
  padding:0 0 0 20px;
}

.project-sidebar__companies-list {
  list-style: none;
  padding: 0;
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(min-content, max-content);
  gap: 20px 2%; 
}

.project-sidebar__companies-item__link {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  height:100%;
}

.project-sidebar__company-logo-wrap {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  height: 60px; 
  max-height: 60px; 
  overflow: hidden; 
  margin-bottom: 10px;
}

.project-sidebar__company-logo {
  max-height: 100%; 
  object-fit: contain; 
}

.project-sidebar__company-name {
  display: block; 
  text-align: center; 
  font-size: clamp(11px, 0.9vw, 12px);
  line-height: 1.2;
  padding:0 1.5em;
}


/**/






/**/

.lg-project__info-header{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 1%;
}

.lg-project__info-header__logo {
  width: 136px;
  height: 136px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

@media (max-width: 768px) {
  .lg-project__info-header__logo {
    width: 100px;
    height: 100px;
  }
}

.lg-project__info-header__logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.lg-project__info-header__name-block {
  flex: 1;
  display: flex;
}

.lg-project__info-header__name-kana {
   font-size: clamp(10px, 2vw, 14px);
}

.lg-project__info-header__name {
  font-size: clamp(16px, 2vw, 26px);
  font-weight: bold;
}

.btn-donate-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-size: 200% auto;
  background-image: linear-gradient(91deg, #FF724D 0%, #EB0139 50%, #FF724D 100%);
  width: 254px;
  height: 64px;
  color: #FFF;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  transition: background-position 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}
.btn-donate-lg:hover {
  background-position: 100% 0;
}
@media (max-width: 768px) {
  .btn-donate-lg {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    max-width: 254px;
    height: 55px;
  }
}

.featured-project-wrapper {
    position: relative;
    background-color: #fff;
    padding-top: 30px;
    margin-bottom: 30px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    min-height: 40vw;  /* 比率で指定 - 三角形サイズに合わせて十分な高さを確保 */
    overflow: visible; /* 三角形が切れないように変更 */
}

@media (max-width: 768px) {
  .featured-project-wrapper {
    padding: 3%;
    min-height: 50vw; /* モバイル用の高さを比率で指定 */
    overflow: visible;
  }
}

/* triangle-fixクラスのスタイル */
.triangle-fix {
  position: relative;
  overflow: visible !important; /* 三角形が切れないようにする */
}

.triangle-fix::after {
  content: '';
  display: block;
  clear: both;
}

/* 基本の三角形スタイル */
.feature-triangle,
.featured-project-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; /* ウィンドウの左端から始まる */
    width: 0;
    height: 0;
    border-style: solid;    
    border-color: var(--colorLightBase) transparent transparent transparent;
    z-index: 0;
    border-width: 630px 48vw 0 0; /* 基本サイズ統一 */
}

/* 内側の三角形は少し小さめに */
.front_page .feature-triangle {
    border-width: 600px 43vw 0 0;
}


@media screen and (max-width: 960px) {
  .feature-triangle,
  .featured-project-wrapper::before {
    border-width: 630px 68vw 0 0; /* 基本サイズ統一 */
  }
}

@media screen and (max-width: 767px) {
  .featured-project-header__title {
      font-size: clamp(18px, 3vw, 24px);
      min-width: 250px;
  }    
  .featured-project-header__text {
      padding-left: 10px;
  }

  .feature-triangle,
  .featured-project-wrapper::before {
      border-width: 500px 100vw 0 0;
  }
  
  .front_page .feature-triangle {
      border-width: 480px 95vw 0 0;
  }

}

.featured-project-content {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.featured-project-header {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
}

.featured-project-header__text {
    display: flex;
    flex-direction: column;
}

.project_detail .featured-project-header__text{
  width: 200px;
}

@media screen and (max-width: 768px) {
  .featured-project-header {
    margin-bottom: 20px;
  }

  .project-detai-container:not(.type-support-detail) .featured-project-header__text{
    display: none;
  }
}

.featured-project-header__feature {
    display: block;
    color: #FFE100;
    font-weight: bold;
    font-size: clamp(11px, 0.9vw, 12px);
    margin-bottom: 0px;
}

.featured-project-header__title {
    color: #fff;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: bold;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    padding-right:1em;
}
.featured-project-header__title-sub {
    background:#fff;
    font-size: clamp(12px, 1.15vw, 14px);
    padding:5px 10px;
    margin-top: 10px;
}

.featured-project-header__buttons {
    display: flex;
    align-items: center;
    padding-top: 45px;
}

.featured-project-header__buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1.5em;
    min-width: 12em;  /* 約206px */
    background: #fff;
    border-radius: 30px;
    border: 1px solid var(--colorLightBase);
    color: var(--colorLightBase);
    font-size: clamp(12px, 1.15vw, 14px);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.featured-project-header__buttons .button:hover {
    background: var(--colorLightBase);
    color: #fff;
    opacity:1;
}

@media screen and (max-width: 600px) {
  .featured-project-header__buttons {
    margin-bottom: 10px;
  }
  .featured-project-header__buttons .button {
    padding: 0.5em 0.2em;
    transition: none;
    right: inherit;
  }
  .featured-project-header__buttons .button:hover {
    opacity: 1;
  }
}


.featured-project-header__buttons .button.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;
}

.featured-project-and-grid {
    position: relative;
    z-index: 1;
}


.trend-section {
    position: relative;
    margin: 0 calc(50% - 50vw);
    padding: 0 calc(50vw - 50%);
    margin-bottom: 11%;
    margin-top: 4%;
}

.trend-section__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.trend-section__header {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.trend-section__background {
    position: absolute;
    left: -50vw;
    right: -50vw;
    width: 150vw;
    /* top: 380px; */
    top: 480px;
    
    height: calc(100% + 200px);
    background: var(--colorLightBase);
    transform: skewY(-10deg);
    transform-origin: 0 0;
    z-index: -1;
}

.trend-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.trend-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    /* 個別にトランジションを設定 */
    transition-property: opacity, transform, box-shadow;
    transition-duration: 0.6s, 0.6s, 0.3s;
    transition-timing-function: ease-out, ease-out, ease;
    /* box-shadowのdelayは常に0s */
    transition-delay: 0s, 0s, 0s;
    opacity: 0;
    transform: translateY(40px);
}

.trend-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* カードの位置を調整（元の高さ比率を保持） */
.trend-card:nth-child(1) {
    transform: translateY(70px);
    transition-delay: 0s, 0s, 0s;
}

.trend-card:nth-child(2) {
    transform: translateY(-20px);
    transition-delay: 0.2s, 0.2s, 0s;
}

.trend-card:nth-child(3) {
    transform: translateY(-110px);
    transition-delay: 0.4s, 0.4s, 0s;
}

.trend-card.is-visible:nth-child(1) {
    transform: translateY(40px);
}

.trend-card.is-visible:nth-child(2) {
    transform: translateY(-50px);
}

.trend-card.is-visible:nth-child(3) {
    transform: translateY(-140px);
}

.trend-card:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .trend-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* モバイル時は通常の配置に戻す */
    .trend-card:nth-child(1),
    .trend-card:nth-child(2),
    .trend-card:nth-child(3) {
        transform: translateY(40px);
        /* モバイル時もbox-shadowのdelayは0sに */
        transition-delay: 0s, 0s, 0s;
    }
    
    .trend-card.is-visible:nth-child(1),
    .trend-card.is-visible:nth-child(2),
    .trend-card.is-visible:nth-child(3) {
        transform: translateY(0);
    }
    
    .trend-card:hover {
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
}

.trend-section__title-en {
    font-size: clamp(12px, 1.15vw, 14px);
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--colorLightBase);
}

.trend-section__title-ja {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: bold;
    margin-bottom: 18px;
    color: var(--colorLightBase);
    line-height: 1.2;
}

.trend-section__description {
    font-size: clamp(12px, 1.15vw, 14px);
    line-height: 1.8;
    margin-bottom: 20px;
    display: inline-block;
    background: #fff;
}

.trend-section__button {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: #fff;
    border-radius: 30px;
    color: var(--colorLightBase);
    font-size: clamp(12px, 1.15vw, 14px);
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}

.trend-section__button:hover {
    opacity: 0.8;
}

.trend-section__button::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;
}

.trend-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.trend-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trend-card__content {
    padding: 20px;
}

.trend-card__title {
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend-card__description {
    font-size: clamp(12px, 1.15vw, 14px);
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.trend-card__tag {
    font-size: clamp(11px, 0.9vw, 12px);
    color: var(--colorLightBase);
    text-decoration: underline;
}

.trend-card__tag:hover {
    text-decoration: none;
}


.project-news-section {
  background-color: #fff;
  padding: 3%;
  border-radius: 10px;
}

@media screen and (max-width: 600px) {
  .project-news-section {
    padding: 5%;
    border-radius: 0px;
  }
}

/* トレンドページ専用のスタイル */
.project-detai-container .trend-section__inner {
    max-width: inherit;
}

.project-detai-container .trend-card {
    transform: translateY(0) !important; /* 位置を強制的に揃える */
    transition: box-shadow 0.3s;
}

.project-detai-container .trend-card.is-visible {
    transform: translateY(0) !important;
}

/* ===== プロジェクト一覧トップ ヒーロー（左テキスト＋右イメージエリア） ===== */
.projects-hero {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.8vw, 42px);
    margin-bottom: 2.4em;
}
.projects-hero__text {
    flex: 0 1 36%;
    min-width: 0;
}
.projects-hero__heading {
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: bold;
    color: var(--colorDarkBase);
    line-height: 1.3;
    letter-spacing: 0.04em;
}
.projects-hero__count {
    display: flex;
    align-items: baseline;
    gap: clamp(6px, 1vw, 14px);
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0.1em 0 0.6em;
    line-height: 1;
}
.projects-hero__count-num {
    display: inline-block;
    font-size: clamp(48px, 6.4vw, 78px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, var(--colorDarkBase) 0%, var(--colorLightBase) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.projects-hero__count-label {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: bold;
    color: var(--colorDarkBase);
    white-space: nowrap;
}
.projects-hero__lead {
    font-size: clamp(13px, 1.4vw, 15px);
    line-height: 1.9;
    color: var(--colorLightBlack);
}
.projects-hero__image {
    flex: 1 1 64%;
    align-self: stretch;
    min-height: clamp(190px, 23vw, 280px);
    background-image: url("/oem-base/assets/img/projects-hero/projects-hero-collage.webp");
    background-position: center right;
    background-repeat: no-repeat;
    background-size: contain;
}
.projects-hero-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 18px);
    margin: -0.8em 0 2em;
}
.projects-hero-nav__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.4vw, 18px);
    aspect-ratio: 4 / 3;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid var(--colorPaleBase);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 54, 120, 0.08);
    color: var(--colorDarkBase);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.projects-hero-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(50px, 5.2vw, 64px);
    height: clamp(50px, 5.2vw, 64px);
    border-radius: 50%;
    background: #e8f1fb;
    color: var(--colorDarkBase);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.projects-hero-nav__icon svg {
    width: 52%;
    height: 52%;
}
.projects-hero-nav__link:hover .projects-hero-nav__icon {
    background: var(--colorDarkBase);
    color: #fff;
}
.projects-hero-nav__link::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 11px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.75;
}
.projects-hero-nav__link:hover {
    transform: translateY(-2px);
    border-color: var(--colorDarkBase);
    box-shadow: 0 14px 34px rgba(0, 54, 120, 0.14);
}
.projects-hero-nav__label {
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
}
@media (max-width: 768px) {
    .projects-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .projects-hero__image {
        width: 100%;
        min-height: 150px;
        background-position: center;
    }
    .projects-hero-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 0 1.6em;
    }
}
@media (max-width: 480px) {
    .projects-hero-nav__link {
        padding: 14px 16px;
    }
    .projects-hero-nav__link::after {
        right: 14px;
        bottom: 14px;
    }
    .projects-hero-nav__label {
        font-size: 14px;
    }
}

/* front-page用の段差のあるスタイルはそのまま残す *//* .trend-card:nth-child(1),
.trend-card:nth-child(2),
.trend-card:nth-child(3),
.trend-card.is-visible:nth-child(1),
.trend-card.is-visible:nth-child(2),
.trend-card.is-visible:nth-child(3) {
    // ... existing transform styles ...
} */

/* ============================================================
   週間/月間アクセスランキング（リスト表示・1位は大きく）
   ============================================================ */
.access-ranking {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- 共通: ランクバッジ（しおり型） --- */
.access-ranking__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  background-color: var(--colorLightBase);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.access-ranking__badge--1 { background-color: #F39800; }
.access-ranking__badge--2 { background-color: #BBC5CF; }
.access-ranking__badge--3 { background-color: #C89177; }
.access-ranking__badge--other { background-color: var(--colorLightBase); }

.access-ranking__badge--hero {
  position: absolute;
  top: 0;
  left: clamp(16px, 2vw, 28px);
  width: clamp(40px, 4vw, 52px);
  height: clamp(52px, 5.5vw, 68px);
  font-size: clamp(22px, 2.6vw, 30px);
  padding-bottom: 10px;
  z-index: 2;
}
.access-ranking__badge--row {
  flex: 0 0 auto;
  width: clamp(28px, 3vw, 36px);
  height: clamp(38px, 4vw, 48px);
  font-size: clamp(16px, 1.8vw, 22px);
  padding-bottom: 8px;
}

/* --- 1位（ヒーロー） --- 写真を斜めにカットし暗いグラデに名前を重ねる --- */
.access-ranking__hero {
  position: relative;
  display: block;
  /*
   * PCではカード左半分が画像領域。
   * カード全体を3:1にすると、画像領域は正確に3:2になり、
   * 元画像を過度に上下トリミングせず表示できる。
   */
  aspect-ratio: 3 / 1;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
/* 写真エリア（左）— 右端を斜めにカット（上が広く・下が狭い） */
.access-ranking__hero-media {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  display: block;
  overflow: hidden;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%);
}
.access-ranking__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.access-ranking__hero-media:hover .access-ranking__hero-image { transform: scale(1.03); }
/* 写真上は地域ピルのみ。グラデは薄めに（読みやすさ確保のため軽く） */
.access-ranking__hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(12px, 1.6vw, 20px);
  padding-right: clamp(90px, 10%, 120px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0) 100%);
}
.access-ranking__hero-location {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.97);
  color: var(--colorBlack);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 18px);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.access-ranking__hero-body {
  margin-left: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1vw, 14px);
  padding: clamp(14px, 1.6vw, 22px) clamp(18px, 2vw, 30px) clamp(14px, 1.6vw, 22px) clamp(14px, 1.4vw, 24px);
  box-sizing: border-box;
}
/* プロジェクト名（白エリア・濃色で可読） */
.access-ranking__hero-title { margin: 0; }
.access-ranking__hero-title-link {
  color: var(--colorBlack);
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 23px);
  line-height: 1.5;
  text-decoration: none;
}
.access-ranking__hero-title-link:hover { text-decoration: underline; }
.access-ranking__hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.access-ranking__hero-body .access-ranking__detail { align-self: flex-start; }
/* ヒーローは右エリアを広く取り、寄付statsを横一列にして高さを抑える */
.access-ranking__hero .access-ranking__stats {
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: clamp(14px, 1.4vw, 22px);
  row-gap: 6px;
}

/* --- 2位以降（行） --- */
.access-ranking__row {
  display: grid;
  grid-template-columns: auto clamp(120px, 14vw, 168px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.6vw, 22px);
  box-sizing: border-box;
}
.access-ranking__row-media {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}
.access-ranking__row-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.access-ranking__row-media:hover .access-ranking__row-image { transform: scale(1.04); }
.access-ranking__row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.access-ranking__row-title { margin: 0; }
.access-ranking__row-title-link {
  color: var(--colorBlack);
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.6;
  text-decoration: none;
}
.access-ranking__row-title-link:hover { text-decoration: underline; }
.access-ranking__row-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* --- 共通: ロケーション・カテゴリチップ --- */
.access-ranking__location {
  font-weight: 700;
  font-size: clamp(11px, 0.95vw, 13px);
  color: var(--colorBlack);
  background-color: var(--colorLightGray);
  padding: 2px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.access-ranking__chip {
  font-size: clamp(10px, 0.9vw, 12px);
  color: var(--colorLightBase);
  text-decoration: underline;
  word-break: break-word;
}
.access-ranking__chip:hover { text-decoration: none; }

/* --- 共通: 統計（寄付件数 / 寄付金額 / 閲覧数） --- */
/* 縦に3行、各行は[アイコン][ラベル][数値]の横一列。ラベル幅を揃えて数値の左端を合わせる */
.access-ranking__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, 0.6vw, 8px);
}
.access-ranking__stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: var(--colorLightBlack);
}
.access-ranking__stat-icon {
  flex: 0 0 auto;
  width: clamp(15px, 1.5vw, 18px);
  height: clamp(15px, 1.5vw, 18px);
  object-fit: contain;
  color: var(--colorLightBlack);
}
.access-ranking__stat-label {
  font-size: clamp(10px, 0.85vw, 12px);
  min-width: 4.5em;
}
.access-ranking__stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.access-ranking__stat-num {
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--colorBlack);
}
.access-ranking__stat-unit { font-size: clamp(10px, 0.85vw, 12px); }

/* --- 共通: 詳細ボタン --- */
.access-ranking__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--colorDarkBase);
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 14px);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.access-ranking__detail::after {
  content: "›";
  font-size: 1.3em;
  line-height: 1;
}
.access-ranking__detail:hover { opacity: 0.85; }

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  /* モバイルは斜めをやめて縦積み（写真の上に名前を重ねる） */
  .access-ranking__hero {
    min-height: 0;
    aspect-ratio: auto;
  }
  .access-ranking__hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    clip-path: none;
  }
  .access-ranking__hero-overlay { padding-right: clamp(16px, 2vw, 26px); }
  .access-ranking__hero-body {
    margin-left: 0;
    height: auto;
    min-height: 0;
  }
  /* モバイルは従来どおり縦積み（全幅で横並びは窮屈なため） */
  .access-ranking__hero .access-ranking__stats {
    flex-direction: column;
  }
  .access-ranking__row {
    grid-template-columns: auto clamp(96px, 26vw, 128px) minmax(0, 1fr);
    grid-template-areas:
      "badge media main"
      "stats stats stats";
    row-gap: 12px;
  }
  .access-ranking__badge--row { grid-area: badge; }
  .access-ranking__row-media { grid-area: media; }
  .access-ranking__row-main { grid-area: main; }
  .access-ranking__row .access-ranking__stats {
    grid-area: stats;
    justify-content: flex-start;
  }
}

/* 財政指標の説明アコーディオン（プロジェクト詳細・自治体情報タブ下部） */
.finance-accordion-list {
  border-top: 1px solid var(--colorGray);
}
.finance-accordion {
  border-bottom: 1px solid var(--colorGray);
}
.finance-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 1.6vw, 20px) 4px;
  cursor: pointer;
  list-style: none;
  transition: background 0.3s;
}
.finance-accordion__summary::-webkit-details-marker {
  display: none;
}
.finance-accordion__summary:hover {
  background: var(--colorPaleGray);
}
.finance-accordion__title {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: bold;
  line-height: 1.4;
}
.finance-accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.finance-accordion__icon::before,
.finance-accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--colorLightBase);
}
.finance-accordion__icon::before {
  width: 16px;
  height: 2px;
}
.finance-accordion__icon::after {
  width: 2px;
  height: 16px;
  transition: opacity 0.3s;
}
.finance-accordion[open] .finance-accordion__icon::after {
  opacity: 0;
}
.finance-accordion__body {
  padding: clamp(8px, 1.2vw, 14px) 4px clamp(20px, 2.4vw, 32px);
}
