@charset "utf-8";

/* ----------------------------------------------------
  ローディング
---------------------------------------------------- */
.fadeUp{
  animation-name: fadeUpAnime;
  animation-duration:1s;
  animation-fill-mode:forwards;
  opacity: 0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.start {
  background: #20a5ce;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9999;
}

.start img {
  max-width: 400px;
  min-width: 200px;
  height: auto;
}

/* 小さいスマホ用 */
@media only screen and (max-width: 480px) {
  .start img {
    width: 80vw;
    max-width: none;
  }
}

.start p {
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%,-50%);
  display: none;
  z-index: 9999;
}

.loading {
  font-family: "Cormorant Garamond", serif;
  position: fixed;
  top: 69%;
  transform: translate(-50%,-50%);
  display: none;
  z-index: 9999;
  left: 50%;
  color: #fff;
  font-size: 28px;
}

.loading span {
  display: inline-block;
  margin: 0 -.075em 50px;
  animation: loading .7s infinite alternate;
}
.loading span:nth-child(2) {animation-delay: .1s;}
.loading span:nth-child(3) {animation-delay: .2s;}
.loading span:nth-child(4) {animation-delay: .3s;}
.loading span:nth-child(5) {animation-delay: .4s;}
.loading span:nth-child(6) {animation-delay: .5s;}
.loading span:nth-child(7) {animation-delay: .6s;}

@keyframes loading {
  0% { transform: scale(1); }
  100% { transform: scale(0.8); }
}

/* ----------------------------------------------------
  h2
---------------------------------------------------- */
.eachTextAnime span{opacity: 0;}
.eachTextAnime.appeartext span{ animation:text_anime_on 1s ease-out forwards; }
@keyframes text_anime_on {
	0% {opacity:0;}
	100% {opacity:1;}
}	

/* ----------------------------------------------------
  オリジナル　リンクボックス
---------------------------------------------------- */
.link_box {
  display: flex;
  align-items: center;
  padding:10px 20px 20px 20px;
  gap:20px;
  text-decoration: none;
  color: #222;
  border: 0;
  border-radius: 30px;
  transition: box-shadow 0.3s ease;
  position: relative;
  background: #ecf0f5;
}
.link_box .arrow {
  flex-shrink: 0;  
  width: 40px;
  height:40px;
  background: url("../images/arrow.png") no-repeat center / contain;
  transition: transform 0.3s ease;
}
.link_box:hover .arrow {
  transform: translateX(6px);
}
.link_box:hover {
  box-shadow: 0 3px 20px rgba(0,0,0,0.15);
}

@media print, screen and (min-width: 768px) {
.link_box {
  padding: 60px;
  gap:60px;
  }
.link_box .arrow {
  width: 61px;
  height:61px;
  }  
}
@media print, screen and (min-width: 992px) {
.link_box {
  padding: 30px 40px;
  gap:40px;
  }
}
@media print, screen and (min-width: 1600px) {
.link_box {
  padding: 60px;
  gap:60px;
  }
}

/* ----------------------------------------------------
  縦棒グラフ
---------------------------------------------------- */
.vertical-bar-container {
  display: flex;
  gap: 20px;
  align-items: flex-end; /* 縦棒を下に揃える */
  justify-content: center;
  height: 200px; /* グラフの高さ */
  width: 100%; /* コンテナの幅% */
  box-sizing: border-box;
  margin: 0 auto;
  padding-bottom: 40px;
  position: relative;
}

/*　縦グラフ
---------------------------------------------------- */
.vertical-bar {
  position: relative;
  width: 25%;
  border-radius: 5px;
  height: 0; /* 最初の高さ0 */
  --height: 50%;
}

/*　縦グラフの項目名
---------------------------------------------------- */
.vertical-label {
  position: absolute;
  bottom: -40px;
  width: 100%;
  text-align: center;
  font-size: 16px;
}

/*　縦グラフの％
---------------------------------------------------- */
.vertical-percentage {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  font-size: 16px;
  color: #ecf1f5;
  transform: translateY(-50%);
}

/*　各グラフごとの設定
---------------------------------------------------- */
.vertical-bar:nth-child(1) {
  --height: 70%; background-color: #00bfff;
}

.vertical-bar:nth-child(2) {
  --height: 75%; background-color: #3cb371;
}

.vertical-bar:nth-child(3) {
  --height: 85%; background-color: #ff8c00;
}

.vertical-bar:nth-child(4) {
  --height: 70%; background-color: #dc143c;
}

/*　アニメーション
---------------------------------------------------- */
@keyframes vertical-growBar {
  from {
    height: 0;
  }
  to {
    height: var(--height);
  }
}


/* ----------------------------------------------------
  カウントアップ
---------------------------------------------------- */
.scroll-area {
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.countup-container {
  display: flex;
  width: 100%;
  padding: 30px 0;
  box-sizing: border-box;
}
.countup-left,
.countup-right {
  width: 50%;
  display: flex;
  align-items: center;        /* 縦中央 */
  justify-content: center;    /* 横中央 */
}
.countup-container i {
  font-size: 60px;
  color: #667eea;
}
.countup-item {
  text-align: center;
}
.countup-number {
  font-size: 3.5rem;
  font-weight: bold;
  color: #667eea;
}
.countup-number.mei::after {
  content: "名";
  font-size: 0.6em;
  margin-left: 0.3em;
  color: #222;
}
.countup-number.percent::after {
  content: "%";
  font-size: 0.6em;
  margin-left: 0.3em;
  color: #222;
}
.countup-number.nen::after {
  content: "年";
  font-size: 0.6em;
  margin-left: 0.3em;
  color: #222;
}

/* ----------------------------------------------------
  カウントアップ　左右並べ
---------------------------------------------------- */
.countup-container.gender-count {
  display: flex;
  width: 100%;
  justify-content: space-between;  /* 左右に分割 */
  padding: 20px 0;
  box-sizing: border-box;
}
.countup-container.gender-count .countup-left,
.countup-container.gender-count .countup-right {
  display: flex;                  /* 横並び */
  align-items: center;            /* アイコンと info を縦中央 */
  flex: 1;                        /* 均等幅 */
}
.countup-container.gender-count i {
  font-size: 60px;
  color: #667eea;
  margin-right: 12px;             /* アイコンと info の間 */
  flex-shrink: 0;                  /* アイコンが縮まないようにする */
}
.countup-container.gender-count .countup-info {
  display: flex;
  flex-direction: column;         /* ラベル＋数字を縦並び */
  align-items: flex-start;        /* 左寄せ */
  justify-content: center;        /* 縦中央揃え */
}
.countup-label {
  font-size: 1.2rem;
  padding-bottom: 10px;
  text-align: center;
  margin:0 auto;
}

@media only screen and (max-width: 767px) {
  .countup-container.gender-count {
    flex-direction: column;  /* 横→縦に変更 */
    align-items: center;     /* 子要素を中央に揃える */
    gap:60px;
  }

  /* 左右の余白をリセット（必要なら） */
  .gender-count .countup-left,
  .gender-count .countup-right {
    width: auto;
  }
}