﻿@charset "UTF-8";

.c-content-lessonplan--type_lessonplan .c-content-lessonplan__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: #f4f4f4; */
}

.c-content-lessonplan--type_lessonplan .c-content-lessonplan__bgW {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.c-content-lessonplan--type_lessonplan .c-content-lessonplan__inner {
  position: relative;
  z-index: 1
}

.c-content-lessonplan--type_lessonplan .c-content-lessonplan__inner {
  padding-top: 60px;
  padding-bottom: 60px
}

@media only screen and (max-width:47.9375em) {
  .c-content-lessonplan--type_lessonplan .c-content-lessonplan__inner {
    padding-top: 0px;
    padding-bottom: 0px
  }
}

@media print,
screen and (min-width:48em) {
  .c-content-lessonplan--type_lessonplan .c-content-lessonplan__inner {
    padding-top: 0px;
    padding-bottom: 0;
  }
}


.c-content-lessonplan {
  position: relative;
  padding-top: 80px;
}

@media only screen and (max-width:47.9375em) {
  .c-content-lessonplan {
    position: relative;
    padding-top: 0px;
  }
}

.c-content-lessonplan__inner {
  -webkit-box-sizing: border-box;
  box-sizing: border-box
}

@media only screen and (max-width:47.9375em) {
  .c-content-lessonplan__inner {
    width: 100%;
    padding: 54px 2% 50px;
  }
}

@media print,
screen and (min-width:48em) {
  .c-content-lessonplan__inner {
    position: relative;
    z-index: 1;
    width: 90.64%;
    padding-top: 54px;
    padding-bottom: 50px;
    margin-right: auto;
    margin-left: auto
  }
}

@media print,
screen and (min-width:61.25em) {
  .c-content-lessonplan__inner {
    max-width: 1400px;
    padding-top: 75px;
    padding-bottom: 80px
  }
}

@media print,
screen and (min-width:87.5em) {
  .c-content-lessonplan__inner {
    padding-right: 0;
    padding-left: 0
  }
}

.c-content-lessonplan__inner>:first-child {
  margin-top: 0
}



.mix,
.gap {
  display: inline-block;
  margin: 10px 2% 0;
  padding: 0;
  width: 96%;
}

.mix {
  display: none;
}

/* Main container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header section */
.header-section {
  margin-bottom: 30px;
}

.main-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.description {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* Lesson type tags */
.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.lesson-tag {
  background-color: #5fb3b3;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.lesson-tag:hover {
  background-color: #4a9999;
}

.lesson-tag.active {
  background-color: #4a9999;
}

/* Filter controls */
#lesson-types {
  margin-bottom: 30px;
}

.lesson-grid {
  margin-bottom: 20px;
}

.controlBox {
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter,
#Reset {
  background-color: #5fb3b3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.filter.active {
  background-color: #e69c41;
}

.filter:hover,
#Reset:hover {
  background-color: #4a9999;
}

#Reset {
  background-color: #666;
}

#Reset:hover {
  background-color: #555;
}

/* Instructor grid */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Instructor cards */
.instructor-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
  border: 1px solid #ddd;
  text-decoration: none;
  color: inherit;
  display: block;
  max-width: 700px;
}

.instructor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card_txt {
  padding: 20px;
}

.card_txt span {
  display: inline-block;
  background-color: #5fb3b3;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin: 0 .5rem .4rem 0;
}

.card_txt h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.card_txt p {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

.card_txt p:last-child {
  margin-bottom: 0;
}

.lesson_info p {
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}

.lesson_info p .koshi {
  background: #c2f1f1;
  padding: 4px 8px;
  margin-right: .6rem;
  border-radius: 4px;
  margin-bottom: 0;
  color: #333;
}

.lesson_info p .kaiki {
  background: #ffdecb;
  padding: 4px 8px;
  margin-right: .6rem;
  border-radius: 4px;
  margin-bottom: 0;
  color: #333;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
}

.sidebar-button {
  display: block;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  padding: 12px 16px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.sidebar-button:hover {
  background-color: #f5f5f5;
}

.sidebar-button::after {
  content: "▶";
  float: right;
  color: #999;
}

/* Search section */
.search-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.search-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.search-link {
  font-size: 12px;
  color: #e74c3c;
  text-decoration: none;
}

.search-link:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .main-title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 16px;
  }

  .instructor-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 30px;
  }

  .lesson-tags {
    justify-content: center;
  }

  .controlBox {
    justify-content: center;
  }
}

@media (max-width: 480px) {

  .lesson-tag,
  .filter,
  #Reset {
    font-size: 14px;
    padding: 6px 12px;
  }

  .card_txt {
    padding: 15px;
  }
}

.sub {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}


@media print,
screen and (min-width:61.25em) {
  .sp {
    display: none;
  }
}

/* @media print,
screen and (min-width:61.25em) {
  .position-absolute {
    position: absolute;
    top: 3rem;
    right: 0;
    display: block;
  }
} */

.position-absolute {
  position: absolute;
  top: 3rem;
  right: 0;
  display: block;
}

@media print,
screen and (max-width:61.25em) {
  .position-absolute {
    position: relative;
    top: 0;
    margin-bottom: 1em;
  }
}

.btn_min {
  padding: 1rem;
  padding: 0;
  border: 1px solid #333;
  border-radius: 0;
  background: #d8d8d8;
  line-height: 36px;
  max-width: 240px;
  color: #333;
}

.btn_min:hover {
  border: 1px solid #333;
}

.btn_min:after {
  line-height: 36px;
  color: #333;
}

/* 「空席から探す」ボタンのみダーク＋角丸（注意事項ボタンは従来デザインのまま） */
.btn_min.position-absolute {
  border: 1px solid #555;
  border-radius: 6px;
  background: #555;
  color: #fff;
}

.btn_min.position-absolute:hover {
  border: 1px solid #555;
  background: #444;
}

.btn_min.position-absolute:after {
  color: #fff;
}

.flexN {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* 狭い画面で折り返し可能に */
  margin-bottom: 20px;
}

.flexN h2 {
  margin: 0;
  font-size: 20px; /* 必要に応じて調整 */
}

.flexN .btn {
  width: 390px; /* 初期指定値を尊重 */
}

@media screen and (max-width: 979px) {
  .flexN {
    flex-direction: column; /* 上下表示に切り替え */
    align-items: flex-start; /* 左寄せ */
  }

  .flexN .btn {
    width: 100%; /* スマホでは横幅いっぱいに */
    margin-top: 15px; /* h2との間に余白 */
    padding: 0;
  }
}
@media screen and (max-width: 800px) {
  .flexN .btn {
    line-height: 30px;
  }
  .btn:after {
    line-height: 30px;
    right: 10px;
}
}
.title_sub4 {
  position: relative;
  padding: 0.5em;
  background: #7ec5cf;
  color: white;
  margin-bottom: 1em;
}   
 
.title_sub4::before{
     position: absolute;
 content: '';
 top: 100%;
 left: 0;
 border: none;
 border-bottom: solid 15px transparent;
 border-right: solid 20px rgb(149, 158, 155);
  }
