@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');


#sub {
  background-image: url(/teach/images/troubli.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top 30%;
}

@media screen and (max-width:768px) {
  #sub {
    background-position: center left 25%
  }
}



/*=========================================
avoidance
=========================================*/
p.teach_boxTxt {
  text-align: center;
  font-size: 24px;
  color: red;
}

/*=========================================
teact01
=========================================*/
#teact01,
#teact02 {
  padding-top: 0;
}

.wrap.mov h2 {
  margin-top: 0;

}

#teact01 p,
#teact02 p {
  text-align: center;
  font-size: 20px;
  margin-bottom: 50px;
}

.safe_tips {
  text-align: center;
  font-size: 18px;
}

.safe_tips ol {
  list-style-position: inside;
  display: inline-block;
  text-align: left;
  padding-left: 0;
}

.safe_tips ol li {
  font-size: 20px;
  text-indent: -16.5px;
  padding-left: 20px;
  font-weight: bold;
}

.safe_tips_content {
  position: relative;
  text-align: center;
}

.safe_tips_box {
  max-width: 1000px;
  width: 100%;
  background-color: #fff;
  background-image: linear-gradient(90deg, #e0e0e0 1px, transparent 1px),
    linear-gradient(#e0e0e0 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 25px 30px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  margin: 60px auto 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.safe_tips_box h3.normal {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.safe_tips_box p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}

.safe_tips_box span.en {
  position: absolute;
  top: -55px;
  left: 160px;
  font-size: 5em;
  font-family: "Tangerine", cursive;
  font-weight: bold;
  color: #24833b;
}

#teact01 .safe_tips_content .safe_tips_box p.safe_tips_txt {
  font-size: 18px;
  margin-bottom: 15px;
}

.safe_tips_content ol {
  max-width: 900px;
  padding: 0 0 0 30px;
}

.safe_tips_content ol li {
  text-align: left;
  font-size: 18px;
}


.safe_box_item {
  display: flex;
  align-items: flex-start; /* テキストと画像を上揃えに */
  gap: 20px; /* テキストと画像の間隔 */
  margin-bottom: 20px; /* 各アイテムの間隔 */
}

.safe_box {
  padding: 0;
}

.safe_box li {
  margin-bottom: 10px;
}



.safe_box_item img {
  width: 200px; /* 画像の幅を調整 */
  height: auto;
}

/* タイトル背景色スタイル */
.summary_section_highlight {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}


#teact02 p.summary_text_highlight {
  font-size: 16px;
  text-align: left;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}




@media screen and (max-width:768px) {
  section#teact02 {
    padding-bottom: 0;
  }
  #teact01 p,
  #teact02 p {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .safe_tips {
    font-size: 14px;
  }

  .safe_tips ol li {
    font-size: 18px;
  }

  .safe_tips_box h3.normal {
    font-size: 22px;
    padding: 20px 0 0;
  }

  h3.normal:before,
  h3.normal:after {
    display: none;
  }

  .safe_tips_box span.en {
    top: -42px;
    left: 4%;
    font-size: 45px;
  }

  #teact01 .safe_tips_content .safe_tips_box p.safe_tips_txt {
    font-size: 15px;
    text-align: left;
    padding: 0 15px;
  }

  .safe_tips_box {
    padding: 0;
  }

  .safe_box_item {
    flex-direction: column;
}


.safe_box_item img {
  margin: 0 auto;
}
}