@charset "UTF-8";

 /* index用 */


/* 見出しや本文に自然な余白を */
#media  .mt-20 { margin-top: 2rem; }
#media  .mt-40 { margin-top: 4rem; }

/* === タイトルセクション === */
#media  h1 {
  text-align: center;
  color: #0073aa; /* 明るい青系で信頼感 */
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
}

#media  h1 + p {
  text-align: center;
  color: #555;
}

/* === 悩みリスト === */

.list-wrapper {
  text-align: center; /* 子要素を中央寄せする */
}

.center-list {
  display: inline-block; /* 中身の幅に合わせる */
  text-align: left;      /* li 内の文字は左寄せ */
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

#media  h2 {
  color: #e67e22; /* オレンジで明るく */
  text-align: center;
  margin-bottom: 1em;
}

#media  ul {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1.2em;
  list-style: none;
}

#media  ul li {
  position: relative;
  margin: 0.6em 0;
  padding-left: 1.6em;
  line-height: 1.6;
}

#media  ul li::before {
  content: "✔";
  color: #e67e22;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* === 県別紹介ボックス === */
#media  .flexbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

#media  .flexbox-2 {
  border: 1px solid #eee;
  text-align: center;
  padding: 1.5rem;
  flex: 1 1 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* 各県タイトル */
#media  .flexbox-2 h2 {
  color: #0073aa;
  margin-bottom: 0.8rem;
}

/* 画像 */
#media  .flexbox-2 img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin-bottom: 0.8rem;
    border: solid 1px #D1D1D1
}

#media  .flexbox-2 img:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}


/* 各県説明 */
#media  .flexbox-2 p {
  color: #555;
}

/* === レスポンシブ対応 === */
@media (max-width: 768px) {
    body{
        width: 100%;
    }
    
#media  .flexbox {
    flex-direction: column;
    align-items: center;
  }
#media  .flexbox-2 {
    width: 90%;
  }
}

 /* index用ここまで*/

.haifu_wrap{
    
}

.haifu--title{
    margin-bottom: 30px;
}

.haifu--disc_wrap{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.haifu--disc{
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    color:#264F80;
}

.haifu--disc_sub{
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 30px;
}

.haifu--disc_sub span{
    color: #913A04;
}

.haifu--highschool{
    column-count: 2;
    margin-bottom: 10px;
}

.haifu--highschool_block{
    display: flex;
    column-gap: 2px;
    margin-bottom: 2px;
    break-inside:avoid-column;
 }

.haifu--highschool_eria{
    width:25%;
    background-color: #48A3A4;
    color: white;
    padding: 15px;
    align-items: center;
    display: flex;
    font-weight: 600;
}

.haifu--highschool_list{
    width: 60%;
    background-color: #D3DDDF;
    padding: 15px;
}

.haifu--highschool_li{
    margin-left: 2rem;
}

.star:before{
    content: "★　";
    color: #913A04;
    margin-left: -2rem;
}

.haifu--highschool_sum{
    width: 15%;
    background-color: #D3DDDF;
    color: #913A04;
    padding: 10px;
    align-items: center;
    display: flex;
    font-weight: 600;
    font-size: 15px;
}

.haifu--etc{}

.haifu--etc_title{
    width: 100%;
    background-color:#575757;
    color: white;
    padding: 15px;
    margin-bottom: 2px;
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
}

.haifu--etc_disc{
    display: flex;
    column-gap: 2px;
}

.haifu--etc_school{
    width: 85%;
    background-color: #DDDDDD;
    padding: 15px;
    text-align: justify;
    font-size: 1rem;
}

.haifu--etc_sum{
    display: flex;
    width: 15%;
    background-color: #DDDDDD;
    padding: 15px;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    
}

.haifu--sp_wrap{
    text-align: center;
}

.haifu--sp{
    display: inline-block;
    margin: 20px auto;
    padding: 20px;
    border: solid #FBA011 5px;
    border-radius: 10px;
    font-weight: 600;
}

.haifu--all {
  width: 60%;
  aspect-ratio: 16/4;    /* 例えば16:9で指定 */
  position: relative;
  background-color: #0277A8;
  border-radius: 10px;
  margin: 3rem auto;
  /* display: flex; を使うなら aspect-ratio と併用に注意（高さが固定になる） */
}

.haifu--all img {
  position: absolute;
  left: -30%;
  bottom: 0;
  width: 40%; 
  height: auto;
  /* object-fit: cover; 必要なら */
}

.haifu--all p {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  padding-left: 10%;
padding-top:20px;
    padding-bottom: 20px;
}

.flex-video{
    width: 90%;
    margin: auto;
}

.video-size{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 50px auto 10px;
}
.video_title{
    display: block;
    margin:0 auto 40px;
    text-align: right;
    font-size: 1rem;
    font-weight: 100;
}

.graph--title{
    background:#264F80;
    color: white;
    font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	font-size: clamp(1.5rem, calc(1vw + 1.5rem), 3.2rem);
    line-height:1.2em;
    text-align: center;
    padding: 10px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.graph--title span{
	font-size: clamp(1rem, calc(0.25vw + 1rem), 2rem);
}


.graph--graph{
    background:#264F80;
    padding: 0 20px;
}

.graph--graph img{
    width: 100%;
    height: auto;
}


.graph--koumoku{
    border-left: solid 20px #264F80;
    border-right: solid 20px #264F80;
}

.graph--koumoku img{
    width: 30%;
    margin: auto;
}

.graph--under{
    position: static;
    z-index: 1;
    border-left: solid 20px #264F80;
    border-right: solid 20px #264F80;
    border-bottom: solid 20px #264F80;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 10px;
}

.graph--under p{
    font-size: 0.7rem;
    text-align: center;
}


 /* 吹き出し用css */
.balloon5 {
  width: 100%;
  margin: 1.5em 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content:center; 
}

.balloon5 .faceicon {
    margin-top: -50px;
  margin-right: -50px;
  width: 20%;
    
}

.balloon5 .faceicon img{
  width: 100%;
  height: auto;
}

.balloon5 .chatting {
}

.says {
  display: inline-block;
  position: relative; 
  margin: 0 0 0 105px;
  padding: 20px;
  border-radius: 12px;
  background: #D2D2D2;
}

.says p{
	font-size: clamp(1rem, calc(1vw + 1rem), 3rem);
}

.says p span{
	font-size: clamp(0.5rem, calc(0.25vw + 1rem), 2rem);
}

.says:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 20px;
  left: -1.5em;
  border: 12px solid transparent;
  border-right: 12px solid #D2D2D2;
}

.says p {
  margin: 0;
  padding: 0;
}

 /* 吹き出し用css ここまで*/

.stafic_link{
    display: block;
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 100;
    width: 250px;
    height: auto;
}

.stafic_link:hover {
  opacity: 0.6; /* 半透明（60%表示） */
}


.box {
  position: fixed;
  right: 20px;
  top: var(--top, 20px);
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: top 0.8s ease, opacity 0.3s ease;
  will-change: top;
  overflow: hidden;
}

.box:hover {
  opacity: 0.6; /* 半透明（60%表示） */
}

/* 閉じるボタン */
.box .close-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(255,255,255,0.8);
  color: #333;
  font-weight: bold;
  font-size: 14px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 20px;
  text-align: center;
  transition: background 0.2s;
}
.box .close-btn:hover {
  background: rgba(255,255,255,1);
}

/* 非表示時のフェードアウト */
.box.hidden {
  opacity: 0;
  pointer-events: none;
}





@media (max-width : 643px ){

.haifu_wrap{
    width: 95%;
    margin: auto;
}
    
.haifu_wrap p{
   font-size: 1rem;
}
    
.haifu--highschool{
    column-count:1;
}

    .wakayama_graph{
        width: 90%;
    }
    
.stafic_link{
    bottom: 10px;
    right: 10px;
    width: 50vw;
}

}