#course_select h1{
  letter-spacing: -0.5px;
}

#course_select .key-visual{
  background-image: url(../images/course-bg.gif);
}

#course_select .message_area{
  max-width:1000px;
  margin: 0 auto;
  display: flex;
}

@media screen and (max-width:750px) {
#course_select .message_area{
  max-width: 900px;
  width: 100%;
  flex-direction: column;
  }
  #course_select .message_box{
    width: auto;
    padding: 20px;
  }
}

#course_select .message_box{
  min-height: 275px;
  width: 585px;
  border:2px solid #e83261;
  border-radius: 10px;
  margin: 35px 0;
  padding: 25px 0 25px 35px;
  box-sizing: border-box;
  background-color: #fff;
  position: relative;
}
@media screen and (max-width:750px) {
  #course_select .message_box{
    width: auto;
    height: auto;
    min-height: unset;
    margin: 35px 10px;
    padding: 20px;
  }
}
#course_select .message_box::before{
content: "";
position: absolute;
top: 16%;
left: 100%;
margin-top: -15px;
border: 17px solid transparent;
border-left: 37px solid #e83261;
}
#course_select .message_box h3{
  color: #e83261;
  font-size: 25px;
  margin-bottom: 19px;
  letter-spacing: 1px;
}
#course_select .message_box p{
  line-height: 2;
  letter-spacing: 0px;
  font-size: 15px;
}
@media screen and (max-width:750px) {
  #course_select .message_box p{
  line-height: 1.5;
  letter-spacing: 1px;
  }
  #course_select .message_box::before{
    display: none;
  }
}


#course_select .message_area figure{
  width: 450px;
  text-align: center;
  margin: auto;
}

#course_select .wrapper{
  max-width: 1000px;
  margin: 0 auto;
}
@media screen and (max-width:750px) {
  #course_select .wrapper {
    max-width: calc(100% - 20px);
    margin: 0 auto;
  }
}
#course_select .wrapper figure{
  margin: 30px auto;
}

@media screen and (max-width:750px) {
  #course_select .message_area figure{
    width: auto;
    height: auto;
    margin: -35px 10px 35px;
    padding: 20px;
  }
  #course_select .message_area figure img{
    max-width: 314px;
    width: 100%;
  }
}


.pc_only {
  display: block;
}

.sp_only {
  display: none;
}
.sp_only img{
  max-width: 100%;
}

@media screen and (max-width:750px) {
  .pc_only {
    display: none;
  }
  .sp_only {
    display: block;
  }

}

#course_select .course_feature{
  margin-bottom: 35px;

}

#course_select .course_feature h3 {
  font-size:30px;
  letter-spacing: -1px;
  margin-bottom: 23px;

}

#course_select .course_feature dl{
  max-width: 1000px;
  box-sizing: border-box;
  display:flex;
  flex-wrap: wrap;
}

@media screen and (max-width:750px) {
  #course_select .course_feature dl{
    width: 100%;
    flex-direction: column;
  }
}


#course_select .course_feature .Oneday{
  display: flex;
  justify-content: center;
  align-items: center;
}
#course_select .course_feature dt,
#course_select .course_feature dd
{
  /*height: 92px;*/
  box-sizing: border-box;

}
#course_select .course_feature dt:nth-of-type(-n+2),
#course_select .course_feature dd:nth-of-type(-n+2)
{
  height: 100px;
}
#course_select .course_feature dt{
/*  float: left;
  clear: left;*/
  width: 160px;
  border-top: solid 1px #1e4ab1;
  border-left: solid 1px #1e4ab1;
/*  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;*/

  padding: 5px;
  box-sizing: border-box;
  text-align: center;
}
#course_select .course_feature dt span{
  color: #fff;
  padding: 0px 20px;
  border-radius: 20px;
  font-size:19px;
}
#course_select .course_feature .A span{
  background-color: #468aa2;
}
#course_select .course_feature .B span{
  background-color: #a862cc;
}
#course_select .course_feature .C span{
  background-color: #ca3f3f;
}
#course_select .course_feature .D span{
  background-color: #218366;
}
#course_select .course_feature .E span{
  background-color: #c52069;
}
#course_select .course_feature .Oneday span{
  color: #40979a;
}


#course_select .course_feature dt p{
  font-size: 17px;
  /*letter-spacing: 3px;*/
  font-weight: bold;
  text-align: center;
}
#course_select .course_feature .A p{
  color: #468aa2;
}
#course_select .course_feature .B p{
  color: #a862cc;
}
#course_select .course_feature .C p{
  color: #ca3f3f;
}
#course_select .course_feature .D p{
  color: #218366;
}
#course_select .course_feature .E p{
  color: #c52069;
}

#course_select .course_feature dd{
  width: calc(100% - 160px);
  border: solid 1px #1e4ab1;
  border-bottom: none;
  display: flex;
  align-items: center;
  padding-left: 27px;
  font-size:16px;
  letter-spacing: -1px;
}
#course_select .course_feature dt:first-of-type,
#course_select .course_feature dd:first-of-type{
  /*height: 70px;*/
}
#course_select .course_feature dt:last-of-type,
#course_select .course_feature dd:last-of-type{
  border-bottom: solid 1px #1e4ab1;
}

#course_select .course_feature dt img{
  height: 60px;
  width: auto;
}
@media screen and (max-width:750px) {
  #course_select .course_feature dt,
  #course_select .course_feature dd{
    width: 100%;
    border-left: solid 1px #1e4ab1;
    border-top: solid 1px #1e4ab1;
    border-right: solid 1px #1e4ab1;
    padding: 0 10px 0 10px;
  }
  #course_select .course_feature dt,
  #course_select .course_feature dt:nth-of-type(-n+2)
    {
      padding-top:5px;
      height: 75px;
    }
  #course_select .course_feature dd{
      border-top-style:dotted;
    }
  #course_select .course_feature dt:last-of-type {
    border-bottom: solid 0px #1e4ab1;
  }
  #course_select .course_feature dd:last-of-type {
    border-top: dotted 1px #1e4ab1;
    border-bottom: solid 1px #1e4ab1;
  }

  #course_select .course_feature dt.A,
  #course_select .course_feature dt.B,
  #course_select .course_feature dt.C,
  #course_select .course_feature dt.D,
  #course_select .course_feature dt.E{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #course_select .course_feature dt.A p,
  #course_select .course_feature dt.B p,
  #course_select .course_feature dt.C p,
  #course_select .course_feature dt.D p,
  #course_select .course_feature dt.E p{
    margin-left: 1em;
  }
}

.article_footer{
  max-width: 1000px;
  margin: 0 auto 20px;
}

@media screen and (max-width:750px) {
  .article_footer {
    width: calc(100% - 20px);
    margin: 0 auto 20px;
  }
}

.course-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:inherit;
}

.course-link span{
    margin:0;
    padding:0;
    background:none;
    border:none;
    border-radius:0;
    box-shadow:none;
    text-shadow:none;
    line-height:1;
}

.course_feature dt .course-link{
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* 左揃え */
    padding-left: 30px;            /* 左側の開始位置を統一 */
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.course_feature dt .course-link img{
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

.course_feature dt .course-link span{
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.course_hint{
    display:block;
    font-size:11px;
    color:#777;
    margin-top:3px;
    text-align:center;
}


/* =========================================================
   各コースの特徴：PCでの文字重なり修正／ページ内リンク
   ========================================================= */
#course_select .course_feature dl{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
}

#course_select .course_feature dt,
#course_select .course_feature dd,
#course_select .course_feature dt:nth-of-type(-n+2),
#course_select .course_feature dd:nth-of-type(-n+2){
  width: auto;
  height: auto;
  min-height: 100px;
}

#course_select .course_feature dt{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

#course_select .course_feature dd{
  min-width: 0;
  padding: 18px 24px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#course_select .course_feature dt .course-link{
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-left: 0;
}

#course_select .course_feature dt .course-link span{
  min-width: 0;
  margin: 0;
  padding: 5px 12px;
  font-size: 17px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

#course_select .course_feature .Oneday a{
  display: block;
  text-decoration: none;
}

#course_select .course_feature dt[id]{
  scroll-margin-top: 110px;
}

/* 診断チャート下端の結果ラベルをクリック可能にする。
   PC画像の結果並び：A / B / C / 1日体験 / D / E */
#course_select .course-chart{
  position: relative;
}

#course_select .course-chart img{
  display: block;
  width: 100%;
  height: auto;
}

#course_select .course-chart__hotspots{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#course_select .course-chart__hotspots a{
  position: absolute;
  display: block;
  outline-offset: -4px;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

/* PC版チャート内の既存ラベルをそのままクリック領域にする */
#course_select .course-chart__hotspots--pc .hotspot-a{
  left: 5.2%; top: 82.4%; width: 13.5%; height: 16.5%; border-radius: 50%;
}
#course_select .course-chart__hotspots--pc .hotspot-b{
  left: 21.6%; top: 82.4%; width: 13.5%; height: 16.5%; border-radius: 50%;
}
#course_select .course-chart__hotspots--pc .hotspot-c{
  left: 38.2%; top: 82.4%; width: 13.5%; height: 16.5%; border-radius: 50%;
}
#course_select .course-chart__hotspots--pc .hotspot-oneday{
  left: 91.5%; top: 19%; width: 8.5%; height: 44%; border-radius: 0;
  z-index: 10;
  touch-action: manipulation;
}
#course_select .course-chart__hotspots--pc .hotspot-d{
  left: 70.1%; top: 82.4%; width: 13.5%; height: 16.5%; border-radius: 50%;
}
#course_select .course-chart__hotspots--pc .hotspot-e{
  left: 85.2%; top: 82.4%; width: 13.5%; height: 16.5%; border-radius: 50%;
}

#course_select .course-chart__hotspots a:focus-visible{
  outline: 3px solid #111;
  background: rgba(255,255,255,.25);
}

.visually-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#course_select .course-jump-nav{
  margin: -10px auto 28px;
  padding: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#course_select .course-jump-nav a{
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #1e4ab1;
  border-radius: 7px;
  background: #fff;
  color: #1e4ab1;
  font-weight: bold;
  text-decoration: none;
}

@media screen and (max-width: 900px) and (min-width: 751px){
  #course_select .course_feature dl{
    grid-template-columns: 245px minmax(0, 1fr);
  }
  #course_select .course_feature dt .course-link{
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
  }
  #course_select .course_feature dt .course-link img{
    width: 54px;
  }
  #course_select .course_feature dt .course-link span{
    font-size: 16px;
    padding-inline: 8px;
  }
  #course_select .course_feature dd{
    padding-inline: 18px;
  }
}

@media screen and (max-width:750px){
  #course_select .course_feature dl{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  #course_select .course_feature dt,
  #course_select .course_feature dd,
  #course_select .course_feature dt:nth-of-type(-n+2),
  #course_select .course_feature dd:nth-of-type(-n+2){
    width: 100%;
    height: auto;
    min-height: 0;
  }

  #course_select .course_feature dt{
    min-height: 78px;
    padding: 8px 12px;
  }

  #course_select .course_feature dd{
    min-height: 68px;
    padding: 14px 15px;
  }

  #course_select .course_feature dt .course-link{
    grid-template-columns: 56px minmax(0, 1fr);
    max-width: 330px;
  }

  #course_select .course_feature dt .course-link img{
    width: 56px;
    height: auto;
  }

  #course_select .course_feature dt .course-link span{
    font-size: 16px;
    padding: 5px 10px;
  }

  #course_select .course-jump-nav.sp_only{
    display: grid;
  }
}


/* =========================================================
   スマホ版：画像内の既存A〜E・1日体験だけをタップ可能にする
   （画像下に追加していた別枠ボタンは表示しない）
   ========================================================= */
#course_select .course-jump-nav{
  display: none !important;
}

#course_select .course-chart__hotspots--sp{
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

#course_select .course-chart__hotspots--sp a{
  position: absolute;
  display: block;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/*
 * SP画像下部の既存結果ラベルを覆うタップ領域。
 * 円の縁付近を含めて反応するよう、各列を隙間なく面で分割する。
 * 見た目は一切追加せず、透明リンクだけを画像上に重ねる。
 */
#course_select .course-chart__hotspots--sp .hotspot-a,
#course_select .course-chart__hotspots--sp .hotspot-b,
#course_select .course-chart__hotspots--sp .hotspot-c,
#course_select .course-chart__hotspots--sp .hotspot-d,
#course_select .course-chart__hotspots--sp .hotspot-e{
  /* SP画像ではA〜Eが最下段の同じ高さに横一列で並ぶ */
  top: 83.2%;
  height: 16.4%;
  border-radius: 50%;
}

/* 円枠の実位置に合わせ、枠外へリンクが広がらないよう個別指定 */
#course_select .course-chart__hotspots--sp .hotspot-a{
  left: 3.4%;
  width: 17.5%;
}
#course_select .course-chart__hotspots--sp .hotspot-b{
  left: 24.4%;
  width: 17.5%;
}
#course_select .course-chart__hotspots--sp .hotspot-c{
  left: 45.2%;
  width: 17.5%;
}
#course_select .course-chart__hotspots--sp .hotspot-d{
  left: 62.0%;
  width: 17.5%;
}
#course_select .course-chart__hotspots--sp .hotspot-e{
  left: 80.3%;
  width: 17.5%;
}

#course_select .course-chart__hotspots--sp .hotspot-oneday{
  /* 右端の縦長「1日体験」枠を文字・余白・枠線まで含めて覆う */
  left: auto;
  right: 0;
  top: 17%;
  width: 15%;
  height: 49%;
  border-radius: 0;
  z-index: 10;
}

#course_select .course-chart__hotspots--sp a:focus-visible{
  outline: 3px solid #111;
  outline-offset: -3px;
  background: rgba(255,255,255,.2);
}

@media screen and (min-width:751px){
  #course_select .course-chart__hotspots--sp{
    display: none;
  }
}

@media screen and (max-width:750px){
  #course_select .course-chart__hotspots--pc{
    display: none;
  }
}
