/* ■■■■■■ ヘッダー ■■■■■■ */
header#header {
    background-color: transparent;
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    z-index: 100;
}
header#header .header-wrapper {
    margin: 0 auto;
    display: flex;
    padding: 0 30px;
    width: 95%;
    max-width: var(--pc-content-width);
    height: 60px;
    border-radius: 30px;
    box-shadow: 2px 2px 6px 0 rgba(36, 49, 75, 0.12);
    background-color: rgba(242, 244, 255, 0.9);
    justify-content: space-between;
}
header#header .header-logo {
    width: 100px;
    display: flex;
}
header#header .header-logo a{
    display: flex;
}
header#header .header-logo img {
    margin: auto 0;
}
header#header .header-navigation{
    margin: auto 0;
}
header#header .header-navigation ul{
    display: flex;
    gap: 30px;
}
header#header .header-navigation ul li{
    color: var(--color-2);
    font-weight: bold;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}
header#header .header-navigation ul li:has(a.current),
header#header .header-navigation ul li:hover{
    border-bottom: #257CAC solid 1px;
    color: #257CAC;
}
header#header .menu-trigger-area{
    display: none;
}


@media screen and (max-width: 767px) {
  header#header {
    top: 12px;               
  }
  header#header .header-wrapper {
    height: 52px;
    border-radius: 26px;
    width: calc(100% - 40px);
    padding: 0 12px;
  }
  header#header .header-logo {
    width: 120px;
    display: flex;
    align-items: center; /* 垂直中央揃え */
    }
  header#header .header-logo img {
    /* width: 120px; */
    width: 70%;
    height: auto;
  }
  header#header .menu-trigger-area{
    display: block;
    position: absolute;
    top: 12px;
    right: 32px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 200;
  }
  header#header .menu-trigger-area .menu-trigger{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18.67px;
    height: 12.3px;
    z-index: 2;
  }
  header#header .menu-trigger-area .menu-trigger span{
    position: absolute;
    left: 0;
    width: 100%;
		height: 1px;
		background-color: var(--color-1);
		display: inline-block;
		transition: all .4s;
		box-sizing: border-box;
  }
  header#header .menu-trigger span:nth-of-type(1) {
		top: 0;
  }
  header#header .menu-trigger span:nth-of-type(2) {
		top: calc(50% - 0.5px);
  }
  header#header .menu-trigger span:nth-of-type(3) {
		bottom: 0;
	}
	header#header .active .menu-trigger span:nth-of-type(1) {
		-webkit-transform: translateY(20px) rotate(-45deg);
		transform: translateY(20px) rotate(-45deg);
		top: -15px;
	}
  header#header .active .menu-trigger span:nth-of-type(2) {
		left: 50%;
		opacity: 0;
		-webkit-animation: active-menu-bar02 .8s forwards;
		animation: active-menu-bar02 .8s forwards;
	}
	header#header .active .menu-trigger span:nth-of-type(3) {
		-webkit-transform: translateY(-20px) rotate(45deg);
		transform: translateY(-20px) rotate(45deg);
		bottom: -14px;
	}
	header#header nav.header-navigation{
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.5s ease;
	}
	header#header:has(.active) nav.header-navigation{
		pointer-events: auto;
		opacity: 1;
		background: linear-gradient(180deg, #FFFCE8 0%, #E7F7FF 100%);
	}
	header#header nav.header-navigation{
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--color-base);
		z-index: -1;
		padding-top: 74px;
	}
	header#header nav.header-navigation ul{
		flex-direction: column;
		gap: 0;
		padding: 0 20px;
	}
	header#header nav.header-navigation ul li {
		position: relative; /* 擬似要素の基準に */
		padding: 20px 10px;
	}

	header#header nav.header-navigation ul li::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 1px; /* 線の太さ */
		background: linear-gradient(90deg, #89C4E9 0%, #809AD2 100%);
	}
}



/* ■■■■■■ メインビジュアル ■■■■■■ */
#main-visual {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* ビューポートの高さいっぱいに */
  z-index: 1; /* ヘッダーの下、コンテンツの上 */
}
.main-visual-container{
  margin-top:-15vh;
}
#main-visual .link-button{
  margin-top: 40vh;
}
#main-visual .main-visual-sub {
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0; /* デフォルトでは非表示 */
  transition: opacity 0.4s ease-in-out; /* フェードイン・アウトのトランジション */
}
.background-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 199.78vw;
  height: 113vw; /* 16:9 アスペクト比 */
  min-height: 113vh;
  min-width: 177.77vh; /* 16:9 アスペクト比 */
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none; /* 動画上でのクリックを無効化 */
}
#main-visual .main-visual-sub.active {
  opacity: 1; /* activeクラスがついている要素だけ表示 */
}

/* 以下は既存のクラス定義を維持 */
#main-visual .main-visual-sub.image-1 {
  background-image: url(../img/MV1.png);
}

#main-visual .main-visual-sub.image-2 {
  background-image: url(../img/MV2.png);
}

#main-visual .main-visual-sub.image-3 {
  background-image: url(../img/MV3.png);
}

/* Text Positioning */
.left-aligned-content {
  position: absolute;
  top: 30%;
  left: 38%;
  text-align: left;
  color: var(--color-text-light);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.japanese-text {
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: auto;
}

.title-jp {
  font-size: 5rem;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  margin-right: 1rem;
  display: inline-block;
}

.subtitle-jp {
  font-size: 1.4rem;
  font-family: 'Shippori Mincho', serif;
  line-height: 1.5;
  letter-spacing: 0.11em;
  white-space: nowrap;
  display: inline-block;
}

.centered-text {
  position: absolute;
  top: 40%;
  left: 38%;
  color: var(--color-text-light);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  text-align: left;
  font-family: 'Raleway', sans-serif;
}

.title-en {
  font-size: 6rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  font-weight: 500;
}

.subtitle-en {
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  margin-top: -0.5rem;
}

/* Button Styles */
.button-container {
position: relative;
    top: 40vh;
    left:50vw;
    margin-bottom: -80vh;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.apply-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: 35px;
  padding: 0.7rem 2rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer; /* クリック可能にする */
  pointer-events: auto; /* イベントを有効にする */
}

.apply-button:hover {
  opacity: 0.9;
}

.button-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em;
  text-align: center;
  flex-grow: 1;
  white-space: nowrap;
  position: relative;
}

.button-text-first-line {
  font-size: 1.1rem;
  font-weight: bold;
}

.button-text-date {
  font-size: 0.85rem;
}

.arrow-icon {
  margin-left: 1rem;
  font-size: 1.2rem;
}


/* Media Queries */
@media screen and (max-width: 1200px) {
  .left-aligned-content,
  .centered-text {
    left: 15%;
  }
  
  .circle {
    transform: scale(0.9);
  }
}
/* 画像表示のためのCSS */
.responsive-images {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 3; 
  margin: 0 auto;
  padding: 20px 0;
}

/* PC用画像の設定 */
.pc-image {
  display: block;
  max-width: 47%;
  margin: 0 auto;
  position: relative;
  top:30vh; 
}

/* SP用画像の設定（初期状態では非表示） */
.sp-image {
  display: none;
  width: 90%;
  margin: 0 auto;
  position: relative;
  top:39vh;
}
@media screen and (max-width: 1060px) {
  #main-visual .main-visual-sub.image-1 {
    background-image: url(../img/SP_MV.png);
  }

  #main-visual .main-visual-sub.image-2 {
    background-image: url(../img/SP_MV2.png);
  }

  #main-visual .main-visual-sub.image-3 {
    background-image: url(../img/MV3.png);
  }

  .pc-image {
    display: none; /* PC用画像を非表示 */
  }
  
  .sp-image {
    display: block; /* SP用画像を表示 */
  }
}

@media screen and (max-width: 767px) {
  #main-visual .main-visual-sub.image-1 {
  background-image: url(../img/SP_MV.png);
}

#main-visual .main-visual-sub.image-2 {
  background-image: url(../img/SP_MV2.png);
}

#main-visual .main-visual-sub.image-3 {
  background-image: url(../img/MV3.png);
}

  .pc-image {
    display: none; /* PC用画像を非表示 */
  }
  
  .sp-image {
    display: block; /* SP用画像を表示 */
    top: 30vh;
  }
  .left-aligned-content {
    top: 30%;
    left: 25%;
  }
  
.button-container {
    left: 45vw;
}
  .centered-text {
    top: 34%;
    left: 28%;
  }
  
  .title-jp {
    font-size: 2.8rem;
  }
  
  .subtitle-jp {
    font-size: 1.1rem;
  }
  
  .title-en {
    font-size: 3.5rem;
  }
  
  .subtitle-en {
    font-size: 2rem;
  }
  
  .button-container {
    max-width: 300px;
    bottom: 15%;
    top:40vh;
    left:20vh;
  }
  
  .circle {
    transform: scale(0.6);
  }
}

/* ■■■■■■ vision ■■■■■■ */

:root {
  --color-1: #3f3f3f;
  --color-highlight: #88c0d9;
  --bg-ellipse: #fff;
}

#vision {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 20px;
  box-sizing: border-box;
  gap: 60px;
  text-align: center;
  font-size: 15px;
  color: var(--color-1);
  font-family: 'Noto Sans JP';
  overflow: hidden;
  margin-bottom: -100vh;
  padding: 70px 0px;
}

.section-content {
  margin-top: 10px;
  position: relative;
  width: 100%;
  z-index: 1;
  padding-bottom: 110px;
  margin-bottom: 150px;
}

/* 背景の楕円 - 削除して新しい背景を適用 */
#vision::before {
  content: none;
}

/* 新しい背景の追加 */
.ellipse-div {
  width: 2295px;
  height: 1350px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%; 
  background: linear-gradient(180deg, #fffce8, #e7f7ff);
  z-index: -2;
}

.ellipse-div2 {
  width: 1163px;
  height: 920px;
  filter: blur(43px);
  top: 10%;
  left: 50%;
  position: absolute;
  background-color: var(--bg-ellipse);
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: -1;
  padding-top: 30vh;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 3;
  margin-top: 10vh;
}

.section-title-jp {
  font-size: 2rem !important;
  margin-bottom: 5px;
}

.section-title-en {
  padding-top: 2rem;
  padding-bottom: 5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #89c4e9, #809ad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* メインテキスト */
#vision .section-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.section-text-1 p {
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--color-1);
  margin: 0 0 20px;
  text-align: center;
}

.section-text-2 p {
  font-size: 1.7rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--color-1);
  margin: 0;
  font-weight: 400;
  text-align: center;
}

.vision-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -100px;
  width: 100%;
  max-width: 700px;
  z-index: 1;
}

.vision-visual figure {
  margin: 0;
  width: 100%;
}

.vision-visual img {
  max-width: 100%;
  height: auto;
}

/* スマホ対応 */
@media (max-width: 768px) {
  #vision {
    margin-bottom: -140vh;
    gap: 40px; 
    padding: 50px 0px; 
          padding-left: 0.5vh;
        padding-right: 0.5vh;
  }

  .vision-visual img {
    transform: scale(1.22);
    transform-origin: center;
  }
  
  .section-text-1 p {
    font-size: 1.5rem;
  }

  .ellipse-div {
    width: 2295px;
    height: 1050px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%; 
    background: linear-gradient(180deg, #fffce8, #e7f7ff);
    z-index: -2;
  }
  
  .section-text-2 p {
    font-size: 1.2rem;
  }
  #vision .section-main {
        padding-left: 5vh;
        padding-right: 5vh;
    } 
}

/* ■■■■■■ ニュース ■■■■■■ */
.section-news {
  background-color: var(--color-4);
  padding-top: 85vh;
}

#news .section-main .slider-arrow{
    display: none !important;
}
#news .section-main .slider-container{
    width: 100%;
}

#news .section-main .note-items {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#news .section-main .note-items .note-item {
    width: 240px;
    height: fit-content;
}
#news .section-main .note-items .note-item figure.thumbnail{
    width: 100%;
    height: auto;
    background-color: transparent;
}
#news .section-main .note-items .note-item figure.thumbnail img{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}
#news .section-main .note-items .note-item div{
    margin-top: 10px;
}
#news .section-main .note-items .note-item .post-date{
    font-size: 1.4rem;
    color: var(--color-3);
    line-height: 2.5rem;
}
#news .section-main .note-items .note-item .title{
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-2);
    line-height: 2.5rem;
    height: 7.5rem;  /* 3行分の高さを確保 */

    /* 3行分を表示 */
    line-clamp: 3;                 /* 主要ブラウザは 2024〜25 年に正式対応 */

    /* ── 従来プレフィックス（後方互換）── */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    /* クリップ処理は必須 */
    overflow: hidden;
}
#news .section-main .note-items .note-item .detail-link{
    width: fit-content;
    font-size: 1.2rem;
    line-height: 2.1rem;
    color: var(--color-3);
    border-bottom: var(--color-3) solid 0.5px;
    display: flex;
}
#news .section-main .note-items .note-item .detail-link::after{
    margin: auto;
    content: '';
    background-image: url(../img/button_arrow_small.png);
    width: 9px;
    height: 9px;
    margin-left: 9px;
}

#news .section-main .more-info{
    width: fit-content;
    margin: 60px 0 0 auto;
    display: flex;
}
#news .section-main .more-info>a{
  margin: auto 0;
  font-size: 1.5rem;
  line-height: 2.5px;
  letter-spacing: 6%;
  font-weight: bold;
  color: var(--color-2);
}
#news .section-main .more-info::after{
  margin: auto;
  content: '';
  background-image: url(../img/simple-line-icons_arrow-up.png);
  width: 9px;
  height: 9px;
  margin-left: 9px;
  margin-top: 20vh;
}

#news .link-button{
    width: 60%;
    height: 80%;
    margin:0 auto;
    padding-top:4.5vh;
}

#news .button-text{
  padding-left: 3vw;
  font-size: 19px !important;
  left: -1.8rem;
  color: rgba(37, 124, 172, 0.75);
}
/* .button-text {
  font-family: 'Noto Sans JP', sans-serif;
  color:#257CAC;
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em;
  text-align: center;
  flex-grow: 1;
  white-space: nowrap;
  left: -1.8rem;
  position: relative;
} */

@media screen and (max-width: 1060px) {
    .section-news{
      margin-top: 30rem;
    }
    .section-news {
      background-color: var(--color-4);
      padding-top: 50vh;
    }
    #news .section-main .slider-arrow{
        display: flex;
        width: 100%;
        gap: 20px;
        justify-content: center;
    }
    #news .section-main .slider-arrow .arrow-left,
    #news .section-main .slider-arrow .arrow-right{
        cursor: pointer;
    }
    #news .section-main .slider-container {
        overflow: hidden;
        width: calc(100% + 20px);
    }
    #news .section-main .note-items {
        margin: 20px 0 0;
        width: calc(315px * 4 + 20px * 3);
        display: flex;
        transition: transform 0.5s ease;
        will-change: transform;
    }

    #news .section-main .note-items .note-item {
        width: 315px;
    }
    #news .section-main .note-items .note-item figure.thumbnail img{
        height: auto;
    }
    #news .section-main .note-items .note-item .detail-link{
        line-height: 2.8rem;
    }
    
    #news .section-main .more-info{
        width: fit-content;
        margin: 40px auto 0;
        display: flex;
    }
    #news .section-main .more-info>a{
        margin: auto 0;
        font-size: 1.4rem;
        font-weight: bold;
        color: var(--color-2);
    }
    #news .section-main .more-info>.circle-button>a{
        width: 55px;
        height: 55px;
    }
}

@media screen and (max-width: 767px) {
    .section-news{
      margin-top: 65vh;
    }
    #news .button-text{
      padding-left: 8vw;
      font-size: 10px !important;
    }
}

/* @media screen and (max-width: 500px) {
  .section-news{
    margin-top: 60vh;
  }
  #news .button-text{
    padding-left: 8vw;
    font-size: 10px !important;
  }
} */
/* ■■■■■■ vision ■■■■■■ */

#vision {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Noto Sans',sans-serif;
}

#vision .section-main{
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    gap: 30px;
}

#vision .section-main .section-text p{
    text-align: center;
    font-size: 1.5rem;
    line-height: 3.0rem;
    letter-spacing: 0.04em;
    color: var(--color-2);
}

#vision .vision-visual{
    display: flex;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    height: 550px;
    width: 150%;
    max-width: 100%; 
}

#vision .vision-visual figure{
    margin: auto;
}

@media screen and (max-width: 1060px) {

    #vision .section-main .section-text{
        font-size: 1.4rem;
        line-height: 2.6rem;
        margin-bottom: 40px;
        letter-spacing: 0;
    }

    #vision .vision-visual{
        padding: 10px;
        height: auto;
        margin-top: 5vh;
    }
}

@media screen and (max-width: 767px) {

  #vision .section-main .section-text{
      font-size: 1.4rem;
      line-height: 2.6rem;
      margin-bottom: 40px;
      letter-spacing: 0;
  }

  #vision .vision-visual{
      padding: 10px;
      height: auto;
      margin-top: 5vh;
  }
}

/* プログラムセクション全体 */
#program {
  font-weight: bold;
  background: linear-gradient(270deg, #FFFCE8 0%, #E7F7FF 100%);
  position: relative;
  padding: 80px 20px;
}

#program .button-text{
  font-size: medium;
}
#program .section-title {
  margin-top: 1vh;
  text-align: center;
  margin-bottom: 50px;
}

.section-title-jp {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-1);
  margin-bottom: 10px;
}

.section-title-en {
  font-size: 1.2rem;
  color: #666;
  letter-spacing: 2px;
}

#program .section-sub-title h3 {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-1);
}

#program .link-button.button-text {
  font-size: 99% !important;
}

/* プログラムの流れ */
.program-flow {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.program-step {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 50px;
  position: relative;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-step:last-child {
  margin-bottom: 0;
}

.program-step-number-wrapper {
  position: relative;
  display: inline-block;
  width: fit-content;
  margin-bottom: 15px;
}

.program-step-number-wrapper::before {
  content: '';
  position: absolute;
  top: 61%;
  left: -35px;
  transform: translateY(-62%) rotate(-102deg) scaleX(-0.6);
  width: 63px;
  height: 68px;
  background-image: image-set(
    url('../img/ellipse.png'),
    url('../img/retina/ellipse@2x.png') 2x
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 5.2rem 5.1rem; /* ←ここを追加 */
  z-index: 0;
  pointer-events: none;
}


.program-step-number {
  position: relative;
  background: var(--color-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  z-index: 1;
}

.program-step-description {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--color-1);
}

/* セクションメイン */
.section-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 支援内容 - PC版横並び */
.program-support {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 60px;
  width: 100%;
}

.support-card {
  flex: 0 1 calc(33.333% - 20px) !important;
  min-width: 300px;
  max-width: 400px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px 10px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 420px;
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.15);
}

.program-support-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: var(--color-1);
  line-height: 1.4;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  margin-top: 3vh;
}

.support-icon {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.support-card:hover .support-icon {
  transform: scale(1.05);
}

.support-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-support-description {
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--color-1);
  font-weight: bold;
  margin-bottom: 15px;
  width: 100%;
  text-align: center;
}

/* ボタンスタイル */
.button-text {
  font-size: 111% !important;
}

.link-button {
  width: 100%;
  margin-top: auto;
}

.button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.button-white {
  background-color: white;
  color: var(--color-1);
  border: 2px solid #ddd;
}

.button-yellow-to-blue {
  background: linear-gradient(45deg, #FFD700, #4169E1);
  color: white;
}

.button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button:hover .button-overlay {
  opacity: 1;
}

/* 応募フッター */
.apply-footer {
  width: 100%;
  margin-top: 60px;
  padding: 20px;
  text-align: center;
}

.apply-footer .link-button {
  margin: 0;
  max-width: 400px;
  margin: 0 auto;
}

/* サポートカード内のボタン調整 */
.support-card .link-button {
  width: 94%;
  margin-top: auto;
}

.support-card .button {
  width: 100%;
  max-width: 100%;
  font-size: 1.3rem;
}

/* 表示切り替え用クラス */
.only-sp {
  display: none;
}

.only-pc {
  display: block;
}

.program-support .support-card {
  height: 480px;
}
/* タブレット表示（1060px以下）では横並びを維持 */
@media screen and (max-width: 1060px) {
  .program-support {
      gap: 20px;
      margin-top: 40px;
  }

  
.program-support .support-card {
      min-width: 280px !important;
      max-width: 500px !important;
      height: 500px;
      padding: 30px 20px;
  }
  
  .program-support-title {
      font-size: 1.6rem;
      height: 44px;
      margin-bottom: 15px;
  }
  
  .support-icon {
      width: 120px;
      height: 120px;
  }
  
  .program-support-description {
      font-size: 1.4rem;
      line-height: 1.8;
  }
}

/* スマホ表示（765px以下）- 縦並びに変更 */
@media screen and (max-width: 1060px) {
  #program {
      padding: 50px 10px;
  }

  .section-title-jp {
      font-size: 2rem;
  }

  #program .section-sub-title h3 {
      font-size: 2.2rem;
  }

  .program-step {
      padding: 15px;
      margin-bottom: 25px;
  }
/* 
  .program-step-number-wrapper::before {
      left: -20px;
      width: 40px;
      height: 35px;
  } */

  .program-step-number {
      font-size: 1.9rem;
  }

  .program-step-description {
      font-size: 1.7rem;
  }

  /* 支援内容カードの縦並び */
  .program-support {
      flex-direction: column !important;
      width: 100% !important;
      align-items: center;
  }

  .support-card {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 400px !important;
      /* margin-bottom: 15px;
      padding: 20px; */
      flex: none !important;
      height: 390px;
  }

  .program-support-title {
      height: auto;
      min-height: 44px;
      font-size: 3.5rem;
  }


  .program-support-description {
    font-size: 2.5rem;
  }

  /* 応募ボタン調整 */
  .apply-footer .button .button-text {
      font-size: 1.3rem;
  }

  .apply-footer .button .button-text-first-line {
      font-size: 1.1rem;
  }

  /* モバイルでのボタン高さ調整 */
  .apply-footer .button {
      height: 60px;
  }

  /* SP版のみ表示する要素 */
  .only-sp {
      display: block;
  }

  /* PC版のみ表示する要素 */
  .only-pc {
      display: none;
  }
}

@media screen and (max-width: 760px) {
  .program-support .support-card {
      min-width: 280px !important;
      max-width: 500px !important;
      height: 400px;
      padding: 30px 20px;
  }

  .program-support-description {
    font-size: 1.5rem;
}

.program-step-description {
  font-size: 1.2rem;
}
  
.program-support-title {
  height: auto;
  min-height: 44px;
  font-size: 2.1rem;
}
}

/* ■■■■■■PROJECT SCHEDULE FAQ セクション ■■■■■■ */
    .menu-sections{
      padding: 20px;
      background-color: #FFFFFF;
    }

    #menu-sections .support-card {
      box-shadow: none !important;
    }

    .program-faq {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      width: 100%;
      margin: 40px 0;
      gap: 20px;
    }
    
    .support-card-title{
      font-size: 3.0rem;
      letter-spacing: 5%;
      line-height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      margin-bottom: 20px;
      width: 100%;
      background: var(--color-2);
      background: linear-gradient(90deg, #89C4E9 0%, #809AD2 100%);

      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .support-card-title  h3{
      margin-top:1.0rem;
    }

    .support-card-subtitle{
      font-size: 1.5rem;
      color: var(--color-1);
      letter-spacing: 0%;
      line-height: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      margin-bottom: 20px;
      width: 100%;
      font-weight: 700;
    }

    .support-card-detail{
      font-size: 2.0rem;
      color: var(--color-1);
      letter-spacing: 0%;
      line-height: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      /* margin-top: 5%; */
      width: 100%;
      font-weight: bold;
    }

.support-card-underline {
  position: relative;
  display: inline-block;
  line-height: 2.5rem;
  z-index: 0; 
}

.support-card-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 9px;
  background: linear-gradient(270deg, #DBEEF7 0%, #FFFADE 100%);
  z-index: -1;
}
    #menu-sections .button-text{
      font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.7rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.06em;
    text-align: center;
    flex-grow: 1;
    position: relative;
    }

@media screen and (max-width: 1060px) {
    .menu-sections {
        padding: 60px 15px;
    }
    #menu-sections .button-text{
      font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.06em;
    text-align: center;
    flex-grow: 1;
    white-space: nowrap;
    position: relative;
    }
    /* 支援内容のレイアウト調整 */

    .support-card-title{
        font-size: 3.5rem;
        height: 44px;
        margin-bottom: 15px;
    }

    .support-card-subtitle{
        font-weight: bold;
        font-size: 1.8rem;
        line-height: 2.5rem;
    }

    .support-card-detail{
        font-size: 1.8rem;
        line-height: 2.7rem;
        margin-bottom: 15px;
    }

}

/* 小さいスマホ向け (480px以下) */
@media screen and (max-width: 1060px) {
    .program-support {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .support-card {
        width: 100%;
        max-width: 500px;
    }
}

@media screen and (max-width: 765px) {
    .program-support {
        width: 80%;
    }
}

/* ■■■■■■ schedule ■■■■■■ */

.contact {
  width: 100%;
  background: linear-gradient(to right, #e0f0fa, #fefdeb);
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* 修正: スペースを削除 */
  margin-top: 0;
  font-weight: bold;
  font-family: 'Noto Sans JP', sans-serif; /* 修正: fontではなくfont-family */
}
  
    
    .contact::after {
      content: '';
      position: absolute;
      bottom: -100px;
      left: 0;
      width: 100%;
      height: 150px;
      border-radius: 50% 50% 0 0;
    }
    
    .contact-content {
      width: 100%;
      max-width: 1060px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin: 0 auto;
      position: relative;
      z-index: 1;
      padding-bottom: 80px;
    }
    
    .contact-left {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    
    .contact-label {
      color: #257CAC;
      font-weight: bold;
      font-size: 1.5rem;
      margin-left: 45px;
      letter-spacing: 0.17em;
    }
    
.contact-title {
  font-size: 5.5rem; /* サイズを小さく調整: 5.5rem → 4.5rem */
  font-weight: 400;
  background: var(--color-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-left: 40px;
  letter-spacing: 0.1em; /* レターペーシングを調整: 0.17em → 0.1em */
  line-height: 1.2; /* 行の高さを追加して文字が切れないように */
  padding: 10px 0; /* 上下のパディングを追加して余白を確保 */
}

    
    .contact-right {
      width: 450px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      color: #3F3F3F;
      text-align: left;
    }
    
    .org-name {
      font-weight: bold;
      font-size: 1.8rem;
      line-height: 1.4;
      letter-spacing: 0.3em;
    }
    .org-name.ReGACY {
      text-align: left;
      letter-spacing: 0.1em;
    }
    
    .email {
      font-weight: bold;
      font-size: 1.6rem;
      color: #3F3F3F;
    letter-spacing: 0.17em;
    }
    
    .hours {
      font-size: 1.4rem;
      color: #3F3F3F;
        letter-spacing: 0.15em;
        top: -1rem;
    }
    @media screen and (max-width: 1060px) {
      .contact {
        padding: 40px 20px;
      }
      
      .contact::after {
        bottom: -80px;
        height: 120px;
      }
      
      .contact-content {
        gap: 30px;
        margin-left: 130px;
      }
      
      .contact-left {
        width: 100%;
        gap: 10px;
      }
      
      .contact-label {
        font-size: 1.2rem;
        margin-left: 0px;
      }
      
      .contact-title {
        font-size: 3rem;
        margin-left: 0px;
      }
      
      .contact-right {
        width: 100%;
        gap: 10px;
      }
      
      .org-name {
        font-size: 1.6rem;
      }
      
      .email {
        font-size: 1.5rem;
      }
      
      .hours {
        font-size: 1.3rem;
      }
    }    
    /* Mobile version CSS for Contact Section */
    @media screen and (max-width: 767px) {
      .contact {
        padding: 40px 20px;
      }
      
      .contact::after {
        bottom: -80px;
        height: 120px;
      }
      
      .contact-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-left: 50px;
      }
      
      .contact-left {
        width: 100%;
        gap: 10px;
      }
      
      .contact-label {
        font-size: 1.2rem;
        margin-left: 0px;
      }
      
      .contact-title {
        font-size: 3rem;
        margin-left: 0px;
      }
      
      .contact-right {
        width: 100%;
        gap: 10px;
      }
      
      .org-name {
        font-size: 1.6rem;
      }
      
      .email {
        font-size: 1.5rem;
      }
      
      .hours {
        font-size: 1.3rem;
      }
    }


/* ■■■■■■ FOOTER ■■■■■■ */
.footer {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  font-family: 'Noto Sans JP';
  background: var(--color-2);
}
.ellipse {
  background: var(--color-2);
  height: 30vh;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-top-left-radius: 100% 50px;
  border-top-right-radius: 100% 50px;
  background: linear-gradient(180deg, #fffce8, #e7f7ff);
  z-index: +1;
  background: var(--color-2);
  top: -6vh;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap; 
  z-index: +3;
  color:#FFFFFF;

}
.footer-image{
  width: 48%;
  height: auto;
}

.footer-logo {
  text-align: left;
  flex: 1;
}

.footer-operate, .footer-partner:not(:last-child){
  text-align: center;
  margin-right: 70px;
}

.footer-partner p, .footer-operate p {
  margin: 0;
  padding: 2px 0;
}

.footer-logo {
  text-align: left;
  height: auto;
}

.footer-logo .logo-title {
  font-size: 3.4rem;
  margin: 0;
  font-weight: normal;
  letter-spacing: 0.17em;
}

.footer-logo .logo-sub {
  font-size: 1.4rem;
  margin: 0;
  font-weight: normal;
    letter-spacing: 0.3em;
}

.footer-partner, .footer-operate {
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-partner p, .footer-operate p {
  margin: 0;
  padding: 2px 0;
}

.city-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-logo img {
  max-width: 120px;
  margin-top: 10px;
  height: auto;
}

.logo-box {
  color: black;
  margin-top: 7px;
  padding: 4px 12px;
  font-size: 1.2rem;
  border-radius: 2px;
}

.copyright {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 30px;
  padding-bottom: 15px;
  color:#FFFFFF;
  position: relative;
  z-index:+2;
}

.footer-organization {
  display: flex;
  flex-direction: row;
  justify-content: flex-start; /* 左寄せ（必要に応じて space-between などに） */
  align-items: flex-start;
  gap: 40px; /* 要素間のスペース、調整可能 */
  margin-left: 110px; /* .footer-logo の左マージンに合わせてもよい */
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .footer-wave {
    border-top-left-radius: 100% 50px;
    border-top-right-radius: 100% 50px;
    padding: 30px 5% 15px;
    height: auto;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  
  .footer-logo {
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 0.3em;
    margin-left: 0; /* 左マージンを削除 */
    width: 100%; /* 幅を100%に */
  }
  
  .footer-logo .logo-title {
    font-size: 3.4rem;
    margin: 0 auto; /* 中央揃え */
    font-weight: normal;
    margin-right: 0; /* 右マージンを削除 */
    letter-spacing: 0.17em;
    text-align: center; /* テキスト中央揃え */
  }

  .footer-logo .logo-sub {
    font-size: 1.4rem;
    margin: 0 auto; /* 中央揃え */
    font-weight: normal;
    margin-right: 0; /* 右マージンを削除 */
    letter-spacing: 0.3em;
    text-align: center; /* テキスト中央揃え */
  }

  .footer-partner, .footer-operate {
    margin: 10px auto; /* 左右マージンをautoに */
    width: 100%; /* 幅を100%に */
    text-align: center;
  }
  
  /* フッター全体のスタイルも調整 */
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央揃え */
    justify-content: center;
    padding: 0;
    width: 100%;
  }
  
  /* copyright部分も確実に中央揃え */
  .copyright {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* ellipseも確実に中央に */
  .ellipse {
    width: 100%;
  }
}
