/* ==========================================================================
   TMS (Technoan Master School)
   ========================================================================== */
.tms_top {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #F4F9FC;
  padding-top: 80px;
	flex-wrap: wrap;
}

h2:after {
	display: none!important;
}

.tms-top-main {
	min-width: 374px;
	padding: 5px;
}

#tms_title_h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #15337E;
}

#tms_title_h1 .tms_title_sub {
  color: #175EAB;
  text-align: center;
  font-size: 2.5rem;
}

#tms_title_h1 span {
  font-size: 2rem;
}

#tms_title_h1 img {
  width: 380px;
  margin: 20px auto;
}

#tms_title_h1 strong {
  display: block;
  font-size: 2.5rem;
}

.tms-top-main .stats_container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin-bottom: 50px;
  font-weight: bold;
}

.stat_uders {
  display: flex;
  align-items: center;
  color: #495466;
}

.stat_uders span {
  color: #005BAC;
}

.stat_uders span em {
  font-size: 1.5em;
}

.stat_uders p {
  padding-right: 20px;
  border-right: 1px solid #495466;
  font-size: 2rem;
}

.stat_box p {
  color: #495466;
  margin: 0 !important;
  padding: 0 !important;
}

.stat_box .stat_number {
  font-size: 3rem;
  color: #005BAC;
  line-height: 1.5em;
}

.stat_box .stat_number span {
  font-size: 2rem;
}

.tms-top-main .stats_container .stat_box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.tms-top-background {
  display: block;
  content: "";
  max-width: 600px;
  width: 100%;
  height: 450px;
  background: url(https://www.techs-s.com/wp-content/themes/technoa/img/product/tms/tms_top.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.tms-btn_cta {
  display: block;
  background: #005BAC;
  color: #FFF;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  max-width: 500px;
  border: 2px solid #FFF;
  text-align: center!important;
}

.tms-btn_cta:hover {
  color: #005BAC;
  background: #FFF;
  text-decoration: none;
}

.tms-btn-area {
  text-align: center;
  background: #15337E;
  display: flex;
  justify-content: center;
  padding: 15px;
}

.tms-section-wrap section {
  max-width: 1000px;
  margin: auto;
}

.tms-nav-area {
  font-weight: bold;
  background: #EFEFEF;
  padding: 10px;
}

.tms-nav-area ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tms-nav-area ul li {
  border-left: 1px solid #999;
  border-right: 1px solid #999;
  margin-left: -1px;
  padding: 10px;
  width: 240px;
  text-align: center;
}


#about_tms h2 {
  position: relative;
  text-align: center;
  margin: 80px auto 20px auto;
  border: 5px double #C1D1EC;
  padding: 15px 10px;
  max-width: 600px;
}


#about_tms h2 + p {
  text-align: center;
  margin-bottom: 60px;
}

#about_tms .features_grid article {
  display: flex;
  border-radius: 10px;
  padding: 10px 20px;
  background: #F4F7FF;
  border: 1px solid #C1D1EC;
  margin-bottom: 20px;
  padding-bottom: 30px;
	align-items: center;
}

#about_tms .features_grid article img {
  width: 300px;
  height: 300px;
}

.tms_about_tcss {
  background: #D2DDF0;
  padding: 20px;
  margin-top: 20px;
  font-size: 1.5rem;
}

.tms_about_tcss a {
  color: #175EAB;
}

#course_examples .course_category h3 {
  background: #12347C;
  color: #FFF;
  font-size: 2rem !important;
  padding: 5px 10px;
  width: 150px;
  border-radius: 20px;
  text-align: center;
}

.tms-h3 {
  position: relative;
}

.tms-h3:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  border-bottom: 5px dotted #5370A9;
  left: 0;
  top: 20px;
}

.tms-h3 span {
  position: relative;
  z-index: 2;
  padding: 0 15px;
  color: #555;
  font-size: 3.5rem;
}

.tms-h3 span:before {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background: #FFF;
  left: 0;
  top: 0;
  z-index: -2;
}

.tms-h3 span:after {
  display: block;
  position: absolute;
  content: "";
  width: 30px;
  height: 30px;
  background: #C1D1EC;
  left: 0;
  top: 0;
  z-index: -1;
  border-radius: 20px;
}

#course_examples {
  padding: 30px 0;
}

.course_category {
  padding: 0 20px;
}

.course_category dl {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #CCC;
  background: #FFF;
}

.course_category dl dt {
  font-weight: bold;
  padding: 20px;
  width: 240px;
  flex-shrink: 0;
}

.course_category dl dt.for_manager {
  border-left: 20px solid #A4DAF3;
  border-right: 3px dotted #A4DAF3;
}

.course_category dl dt.for_leader {
  border-left: 20px solid #CBE9F4;
  border-right: 3px dotted #CBE9F4;
}

.course_category dl dt.for_newcomer {
  border-left: 20px solid #E7F4FB;
  border-right: 3px dotted #E7F4FB;
}

.course_category dl dd {
  padding: 20px;
}

.course_category dl dd .lecture_example {
  border-radius: 10px;
  padding: 4px 10px 6px 10px;
  line-height: 3em;
}

.course_category dl dd.for_manager .lecture_example {
  background: #A4DAF3;
}

.course_category dl dd.for_leader .lecture_example {
  background: #CBE9F4;
}

.course_category dl dd.for_newcomer .lecture_example {
  background: #E7F4FB;
}

.course_category dl dd span {
  font-size: 1.5rem;
}

.course_category dl dd .tag {
  color: #5370A9;
  padding: 0 10px;
  word-break: keep-all;
}

.course_category dl dd .tag:before {
  content: "#";
}

.course_categories {
  background: #F9F9F9;
  border-radius: 10px;
  margin-top: 20px;
  padding: 20px;
}

#format_section {
  margin: 80px auto;
}

.format_grid {
  background: #F9F9F9;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  border-radius: 10px;
}

.format_grid .card img {
  width: 300px;
}

.format_grid .card {
  background: #FFF;
  border-radius: 15px;
  padding: 10px;
  border: 1px solid #CCC;
}

/* --- 修正: .format_grid .card h4 -> h3 --- */
.format_grid .card h3 {
  font-size: 2rem !important;
  text-align: center;
  margin: 0 !important;
  background: #15337E !important;
  color: #FFF;
  border-radius: 15px;
  padding: 10px !important;
}

.format_grid .card div {
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
  padding: 10px;
}

.answer_body {
  margin-top: 10px;
  font-size: 1.5rem;
  background: #F9F9F9;
  padding: 15px;
  border: 1px solid #EEE;
}

#faq_section details summary {
  cursor: pointer;
}

#faq_section details summary:active {
  background: #F4F7FF;
}

#faq_section details {
  margin: 10px 0;
  border-bottom: 1px dashed #CCC;
}

#faq_section {
  margin-bottom: 80px;
}

.step_list {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
}

.step_list li {
  counter-increment: step-counter;
  margin-bottom: 15px;
  position: relative;
  padding: 10px;
  padding-left: 5em;
  background: #F9F9F9;
  border-bottom: 1px solid #DDD;
}

.step_list li::before {
  content: "STEP" counter(step-counter);
  position: absolute;
  left: 10px;
  top: 10px;
  font-weight: bold;
  color: #415A83;
  background: #C1D1EC;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

#howto_section dl {
  margin: 0 10px 50px 0;
}

#howto_section dl dt {
  color: #415A83;
  margin-top: 20px;
  font-weight: bold;
}

#howto_section dl dd {
  padding: 10px;
}

.tms_cta_bottom {
  padding: 80px 20px 100px 20px;
  background: #F4F7FF;
}

/* --- 修正: .tms_cta_bottom h3 -> h2 --- */
.tms_cta_bottom h2 {
  font-size: 2rem;
  text-align: center !important;
}

.tms_cta_bottom p {
  text-align: center !important;
}

.tms_cta_bottom a.tms-btn_cta {
  margin: auto !important;
}

/* ===================================
   モバイル対応（480px以下）
   =================================== */
@media screen and (max-width: 480px) {
  .tms_top {
    flex-direction: column;
    padding-top: 30px;
    padding: 20px 10px;
  }

  #tms_title_h1 img {
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
  }



  #tms_title_h1 span {
    font-size: 1.4rem;
  }

  /* 統計情報 */
  .tms-top-main .stats_container {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
  }

  .stat_uders p {
    font-size: 1.4rem;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #495466;
    padding-bottom: 15px;
    text-align: center;
  }

  .stat_box .stat_number {
    font-size: 2.5rem;
  }

  .stat_box .stat_number span {
    font-size: 1.6rem;
  }

  /* 背景画像 */
  .tms-top-background {
    height: 250px;
    max-width: 100%;
  }

  /* CTAボタン */
  .tms-btn_cta {
    padding: 12px 20px;
    font-size: 1.4rem;
    max-width: 100%;
    position: relative;
    text-align: center;
  }

  .tms-btn-area {
    padding: 10px;
  }

  /* ナビゲーション */
  .tms-nav-area ul {
    flex-direction: column;
  }

  .tms-nav-area ul li {
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #999;
    margin-left: 0;
  }

  .tms-nav-area ul li:last-child {
    border-bottom: none;
  }

  /* セクション共通 */
  .tms-section-wrap p {
    padding: 0 15px;
  }

  .tms-section-wrap section {
    padding: 20px 10px !important;
  }

  /* About TMS */
  /* --- 修正: #about_tms h2 --- */
  #about_tms h2 {
    margin: 40px auto 15px auto;
    font-size: 2rem;
    padding: 10px 5px;
  }

  /* --- 修正: #about_tms h2 + p --- */
  #about_tms h2 + p {
    margin-bottom: 30px;
    padding: 0 10px;
  }

  #about_tms .features_grid article {
    flex-direction: column;
    padding: 15px 10px;
    padding-bottom: 30px;
	justify-content: center;
	  align-items: center;
  }

  #about_tms .features_grid article:nth-child(even) {
    flex-direction: column-reverse;
  }

  #about_tms .features_grid article img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 15px auto;
  }

	
  .tms_about_tcss {
    font-size: 1.3rem;
    padding: 15px;
  }

  /* 見出し */
  .tms-h3 span {
    font-size: 2.2rem;
    padding: 0 10px;
  }

  .tms-h3:before {
    top: 15px;
  }

  /* 講座カテゴリー */
  .course_category {
    padding: 0 10px;
  }

  .lecture_example {
    display: block;
    padding: 0 10px !important;
    margin: 10px 0;
  }
  
  /* --- 修正: #course_examples .course_category h3 --- */
  #course_examples .course_category h3 {
    font-size: 1.6rem !important;
    width: auto;
    padding: 8px 15px;
  }

  .course_category dl {
    flex-direction: column;
    align-items: flex-start;
  }

  .course_category dl dt {
    width: 100%;
    padding: 15px;
    border-right: none !important;
    border-bottom: 3px dotted #CCC;
  }

  .course_category dl dd {
    padding: 15px;
  }

  .course_category dl dd span {
    font-size: 1.3rem;
  }

  .course_category dl dd .tag {
    display: inline-block;
    margin: 3px 0;
  }

  .course_categories {
    padding: 15px 10px;
  }

  /* 開催形式 */
  #format_section {
    margin: 40px auto;
    padding: 0 10px;
  }

  .format_grid {
    grid-template-columns: 1fr;
    padding: 20px 10px;
    gap: 15px;
  }

  .format_grid .card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* --- 修正: .format_grid .card h3 --- */
  .format_grid .card h3 {
    font-size: 1.6rem !important;
    padding: 8px !important;
  }

  .format_grid .card div {
    font-size: 1.3rem;
  }

  /* FAQ */
  #faq_section {
    margin-bottom: 40px;
  }

  #faq_section details summary {
    font-size: 1.4rem;
    padding: 10px 5px;
  }

  .answer_body {
    font-size: 1.3rem;
    padding: 12px;
  }

  /* How to */
  .step_list li {
    padding: 10px 10px 10px 4.5em;
    font-size: 1.3rem;
  }

  .step_list li::before {
    font-size: 0.8em;
    left: 5px;
    top: 8px;
  }

  #howto_section dl {
    margin: 0 0 30px 0;
  }

  #howto_section dl dt {
    font-size: 1.4rem;
  }

  #howto_section dl dd {
    font-size: 1.3rem;
    padding: 8px;
  }

  /* 最下部CTA */
  .tms_cta_bottom {
    padding: 40px 15px 60px 15px;
  }

  /* --- 修正: .tms_cta_bottom h2 --- */
  .tms_cta_bottom h2 {
    font-size: 1.8rem;
  }

  .tms_cta_bottom p {
    font-size: 1.4rem;
  }
}