@charset "UTF-8";
/*各ページ独自のcss設定*/


/*以下に指定を記述する*/

/*↓これは書き方の例だから消してね*/
  body {
    background-color: #fffbf8;
    font-family: sans-serif;
  }

  .back-to-top {
position: fixed;
bottom: 15px;
right: 15px;
background-color: #f3c75999;
color: white;
padding: 10px 14px;
border-radius: 25px;
text-decoration: none;
font-weight: bold;
font-size: 14px;
z-index: 999;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
}

.back-to-top:hover {
background-color: #e07e0099;
}


  h1 {
 text-align: center;
   margin-top: 40px;
   
    color: #333333;
   font: bold;
  }

  .linebox {
  position: relative;
  width: 265px;
  height: 4px;
  margin: 0 auto;
  margin-bottom: 40px;

}

.line {
  position: absolute;
  height: 4px;
}

.line1 {
  width: 120px;
  background: #edaa0b;
  border-radius: 10px;
  z-index: 3;
  left: 0;
}

.line2 {
  width: 100px;
  background: #f3c759;
  border-radius: 0 10px 10px 0;
  z-index: 2;
  left: 105px;
}

.line3 {
  width: 80px;
  background: #f9e3aa;
  border-radius: 0 10px 10px 0;
  z-index: 1;
  right: 0;
}


  .komidashi-a {
    
    width: 240px;
    background-color: #fffbf8;
    border-top: 1.5px solid #f9e3aa;
    border-bottom: 1.5px solid #f9e3aa;
    font-size: 16px;
    color: #333333;
    text-align: center;
    margin: 20px auto;
    margin-top: 50px;
    position: relative;
    font-weight: 500;
    line-height: 33px;
    margin-top: 50px;
  }
  .komidashi-a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-left: 20px solid #f9e3aa;
    border-bottom: 20px solid transparent;
  }
  .komidashi-a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-left: 20px solid transparent;
    border-bottom: 20px solid #f9e3aa;
  }

  /* タブ切り替えコンテナ */
  .tab-switch {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    gap: 0px;
    max-width: 900px;
    font-weight: 500;
  }

  /* ラジオボタンは非表示 */
  .tab-switch input[type="radio"] {
    display: none;
  }

  /* タブラベル */
  .tab-switch > label {
    flex: 1 1 0;
    order: -1;
    position: relative;
    background-color: #f2f2f250;
    color: #999999;
    text-align: center;
    cursor: pointer;
    transition: 0.3s all;
    padding: 16px 0;
    border-top: 1px solid #99999950;
    border-right: 1px solid #99999950;
    border-bottom: 2px solid #f9e3aa;
    user-select: none;
    padding: 0.7em 0.5em;
    font-size: 14px;
  }

  /* ホバー時と選択時 */
  /*.tab-switch > label:hover,これはレスポンシブ版作成時にいらないので削除した*/
  .tab-switch input[type="radio"]:checked + label {
    background-color: #fffbf8;
    color: #333333;
    border-top: 2px solid #f9e3aa;
    border-right: 2px solid #f9e3aa;
    border-left: 2px solid #f9e3aa;
    border-bottom: 2px solid transparent;
    z-index: 2;
  }

  /* タブコンテンツは初期非表示 */
  .tab-content {
    display: none;
    width: 100%;
    padding: 1.5em 1em;
    background: #fffbf8;
    box-sizing: border-box;
    margin-top: -2px;
  }

  /* チェックされたラジオの兄弟コンテンツを表示 */
  #tab1:checked ~ #tab1_content,
  #tab2:checked ~ #tab2_content,
  #tab3:checked ~ #tab3_content,
  #tab4:checked ~ #tab4_content,
  #tab5:checked ~ #tab5_content {
    display: block;
  }

  

  .timetable {
  width: 100%;
  max-width: 700px;
  margin: 30px auto;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
  text-align: center;
  background-color: white;
}

.timetable th,
.timetable td {
  border: 1px solid #f9e3aa;
  padding: 1px;
  vertical-align: middle;
  word-wrap: break-word;
  font-size: 10px;
}

.timetable thead th {
  background-color: #f9e3aa;
  color: #333333;
  font-weight: 500;
}

.timetable tbody th {
  background-color: #f9e3aa;
  color: #333333;
  font-weight: 500;
}

.subject {
  background-color: #ffefd5; /* 薄いオレンジ */
}

.lunch-break {
  background-color: #f9f9f9;
  font-style: italic;
  color: #666;
}



.on_demand {
  border-collapse: collapse;
}

.on_demand td {
  border: 1px solid #f9e3aa;
  padding: 10px;
  vertical-align: middle;
  font-size: 11px;
  color: #333333;
}

.on_demand .col1 {
  width: 110px;
  background-color:#f9e3aa ;
  font-weight: 500;
}

.on_demand .col2 {
  width: 190px;
  background-color: #ffefd5; /* 薄いオレンジ */

}

.on_demand.no_data .col2 {
    background-color: #ffffff;
  
}



  /* boxスタイル */
  .box {
    background-color: #ffffff;
    width: 335px;
    border: 1px solid #f9e3aa;
    margin: 20px auto;
    font-size: 14px;
    padding: 15px;
    color: #333333;
    box-sizing: border-box;
    text-align: justify;
    word-break: break-word;   /* 長い語や日本語の改行対応 */
  overflow-y: auto;         /* 内容が縦にあふれたときにスクロール */
  }


.back_button_wrap{
    position: relative;
    margin: 0 auto;
    width: 300px;
}

.back_button{
   font-size: 17px;
   font-weight: 500;
   color: #333333;
   display: flex;
   justify-content: center;
   align-items: center;
   background-color: #f9f9f9;
   width: 180px;
   height: 45px;
   margin: 0 auto;
   box-shadow: 1px 1px 1px #00000080;
   margin-top: 60px;
   margin-bottom: 90px;
   position: relative;
   text-decoration: none;
}

.back_button::before{
  content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    border-left: 15px solid #f9e3aa;
    border-top: 15px solid transparent;
   
}

.back_button::after{
   content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-left: 15px solid transparent;
    border-top: 15px solid #b3b3b3;
}

.arrow1 {
    display: inline-block;
    width: 30px;
    height: 0.75px;
    background: #4d4d4d;
    position: absolute;
    top: 55%;
    left: 89px;

}

.arrow2{
   display: inline-block;
    width: 10px;
    height: 0.75px;
    background: #4d4d4d;
    transform: rotate(-45deg) translateY(-60%);
    transform-origin: left bottom;
    position: absolute;
    top: 55%;
    left: 90px;
}



/*
css概説（復習用　要らなければ消してください）

vol.1 用語の解説

セレクタ…装飾をつけたい対象の要素のこと
属性…セレクタに施したい装飾の種類
値…セレクタに施したい装飾の具体的内容

例：h1{color:red;}
h1がセレクタ　colorが属性　redが値

vol.2 セレクタの指定
①要素名で指定
h1{color:red;}

②class名で指定
.class{color:red;}

③id名で指定
#id{color:red;}

④要素名プラスclass名で指定
div.class{color:red;}

⑤要素名プラスid名で指定
div#id{color:red;}

⑥要素の位置から指定
header div{color:red;}   
↑スペースを入れる（ここではheader内のdiv要素を指定）

vol.3 属性・値の指定

①{属性:値;}の形で記述
{color:red;}

②１つのセレクタに対する指定はまとめて記述できる
h1{
   color:red;
   width:90%;
}

③指定が重複したら後の行にあるものが優先
h1{
   color:red;
   width:90%;
   color:blue;
}
↑ここではh1はblueになる

④指定が重複したらより特定が強いものが優先
h1{
   color:red;
   width:90%;
}
header h1{
   color:blue;
}
↑ここではheader内のh1はcolorがblue、widthが90%になる
*/

@media screen and (min-width:1024px) {
    /*レスポンシブ用*/


h1 {
  font-size: 36px;
}

.tab-switch {
    max-width:100%;
  }

.komidashi-a {
  font-size: 20px;
  width: 248px;
  line-height: 41px;
}

.res_timetable {
    margin-left: 10%;
    margin-right: 10%;
}

.timetable{
  max-width: none;
}

.timetable th, .timetable td {
    border: 1.5px solid #f9e3aa;
    padding: 1px;
    vertical-align: middle;
    word-wrap: break-word;
    font-size: 14px;
}

.on_demand td {
  font-size: 14px;
}

.on_demand .col1{
  width: 133px;
}

.box{
  width: 36vw;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
}

.res_about-lessons{
  display: flex;
  flex-direction: column;
}

.res_blocks{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 10%;
  margin-right: 10%;
}

.back_button{
  font-size: 21px;
  width: 188px;
  height: 53px;
}
.back_button::before {
    border-left: 21px solid #f9e3aa;
    border-top: 21px solid transparent;
}

.back_button::after{
    border-left: 21px solid transparent;
    border-top: 21px solid #b3b3b3;
}




.back_button:hover{
  box-shadow: none;
}

.back_button_wrap:hover{
    transform: translateY(4px);

}

/* タブラベル */
  .tab-switch > label {
    font-size: 18px;
  }

/* ホバー時 */
.tab-switch > label:hover {
    opacity: 0.6;
    /*color: white;*/
    /*background-color: #fffbf8;*/
    /*border-top: 2px solid #f9e3aa;
    border-right: 2px solid #f9e3aa;
    border-left: 2px solid #f9e3aa;
    border-bottom: 2px solid transparent;
    z-index: 2;*/
}

.on_demand .col2 .kei-on_demand-res {
    width: 343px;
}



.time-res{
  display: none;
}

}
    