.cf_caut {
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: -0.2em;
    text-decoration-thickness: 0.5em;
    text-decoration-color: rgba(255, 228, 0, 0.7);
    text-decoration-skip-ink: none;
}


.hoge-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  list-style: none;
  /* ← コレで黒ポチ消える */
  padding: 0;
}

.item12 {
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
}


.item12 .mline {
  position: relative;
  display: inline-block;
}

.item12:hover .cf_img_mg img {
  filter: brightness(0.9); /* 少し暗くして白っぽく見せる */
}

.cf_img_mg {
  position: relative;
  overflow: hidden;
}

.cf_img_mg img {
  max-width: 115px;
  height: auto;
  position: relative;
  overflow: hidden;
}

.cf_img_mg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.3); /* 白く */
  opacity: 0;
  transition: 0.3s ease;
}

.item12:hover .cf_img_mg::after {
  opacity: 1;
}

.mline {
  position: relative;
  display: inline-block;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  padding-bottom: 0;
  line-height: 1;    
}

.mline::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 110%; /* ← 名前よりちょっと長く */
  height: 1px;
  background-color: #000;
}


.remodal .remimg {
  width: 8%;
  margin: 0px 0px 20px 0px;
}

.remodal .remimg img {
  max-width: 100%;
}

.remodal .h1tl {
  font-size: 21px;
  fonte-weight: normal;
  letter-spacing: 0.05em;
  margin: 20px 0 0.5rem 0;
  text-align: left;
}

.remodal .h1tl span {
  font-size: 14px;
  margin-left: 5px;
  ;
}


/* ポップアップここから */

body.fixed {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  /* 初期は非表示 */
  justify-content: center;
  align-items: flex-start;
  z-index: 9999;
  padding: 120px;
  overflow-y: auto;
  
}

.popup-content {
  background: white;
  padding: 40px;
  border-radius: 0px;
  max-width: 590px;
  max-height: 650px;
  overflow-y: auto;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}

.rewrap {
   display: flex;          /* ← これが必要！ */
  align-items: center;    /* 縦方向の中央揃え（任意） */
  justify-content: flex-start; 
  gap: 40px;
}

.remimg {
 width: 270px;
  display: block;
  margin: 0;
  padding: 0;

}

.remimg img {
 display: block;    /* ← ← 中央寄せ防止 */
  max-width: 100%;
  height: auto;
  object-fit: contain;

}

.h1tl {
	font-size: 21px;
	fonte-weight: normal;
	letter-spacing: 0.05em;
	margin: 20px 0 0.5rem 0;
	text-align: left;
}

.h1tl span {
	font-size: 14px;
	margin-left: 5px;
}


.h1min {
  font-size: 13px;
  color: #090909;
  margin-bottom: 10px;
  text-align: left;
}

.popup-content p {
  font-size: 14px;
  line-height: 200%;
  text-align: left;
  margin-top: 20px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #444;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  color: #000;
}

.popup-content button {
  display: block;
  margin: 30px auto 0 auto;
  font-size: 13px ;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

#popup-close-btn {
  font-size: 13px;
  width: 120px;
  height: 60px;
  box-sizing: border-box; 
  padding: 0;
  line-height: 60px;
  text-align: center; 
}

.popup-content button:hover {
  background: #000;           /* 黒背景に */
  color: #fff;                /* 白文字に */
}

/* 森山先生画像左 */
.img-yamamori {
	transform: translateX(-40px);
}

/* 佐藤先生画像左 */
.img-sato {
	transform: translateX(-50px);
}
/* 西村先生画像左 */
.img-nishimura {
	transform: translateX(-15px);
}
/* 前田先生画像左 */
.img-maeda {
	transform: translateX(-20px);
}
/* 宮崎先生画像左 */
.img-miyazaki {
	transform: translateX(-20px);
}


.remtl.shift-left {
  position: relative;
  left: -50px;
}




@media only screen and (max-width: 480px) {
  .hoge-list {
    grid-template-columns: repeat(2, 1fr); /* 2列にする */
    gap: 10px;
  }

  .cf_img_mg img {
    max-width: 100px;
  }

  .popup-overlay {
    padding: 60px 10px;
    align-items: flex-start;
  }

  .popup-content {
    max-width: 95%;
    max-height: 90vh;
    padding: 20px;
  }

  .rewrap {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .remimg {
    width: 100%;
    max-width: 250px;
  }

  .h1tl {
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
  }

  .h1min {
    font-size: 13px;
    text-align: center;
  }

  .popup-content p {
    font-size: 13px;
    line-height: 1.8;
  }

  #popup-close-btn {
    width: 100%;
    height: 50px;
    font-size: 14px;
    line-height: 50px;
  }

  .close-btn {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .img-yamamori,
  .img-sato {
    transform: none; /* スマホでは位置調整解除 */
  }

  .mline::after {
    width: 100%;
  }
}


