.course-main {
  width: 85%;
  background-color: #FFFAFA;
  text-align: center;
}

.course,
.online,
.begginer {
  margin-top: 100px;
}

/* .trial{
  margin-top: 30px;
} */

/* 共通事項、表角丸、余白消し */
.course-table,
.lesson-table,
.begginer-info {
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid #755532;
  border-radius: 20px;
  overflow: hidden;
  /* 角丸を活かすため */
  border-spacing: 0;
}

.course {
  margin-bottom: 40px;
}

.course-detail,
.lesson-detail,
.begginer-detail {
  max-width: 850px;
  margin: 0px auto;
}

h2{
  font-size: 2rem;
  margin-bottom: 40px;
}
/* ここまで */

/*---------------------------------------------  */
/* ここからコース */
h1 {
  width: 100%;
  font-size: 2.5rem;
  margin: 30px auto;/*0623 上下30pxへ変更*/
}

table {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.course-detail th,
.lesson-detail th {
  background-color: #FFD1DC;
  /* ピンク */
  text-align: center;
  /* 中央寄せ */
  padding: 16px;
  /* 余白を追加して見やすく */
  color: #755532;
  /* テキスト色を揃えるなら */
  width: auto;
  /* border-radius: 20px; */
}

.course-table td,
.lesson-detail td {
  padding: 24px;
  background-color: #ffffff;
}

.course-price td{
  padding: 24px 24px 0px;
}

.course-table th,
.course-table td,
.lesson-detail th,
.lesson-detail td {
  border-bottom: 1px solid #755532;
  border-left: 1px solid #755532;
  /* グレーの枠線 */
  /* padding: 12px 16px; */
  text-align: center;
}

.course-table tr th:first-child,
.course-table tr td:first-child,
.lesson-detail tr th:first-child,
.lesson-detail tr td:first-child {
  border-left: none;
}

.begginer-info tr:last-child th,
.begginer-info tr:last-child td {
  border-bottom: none;
}


/* 一番下の行のセルの下線を消す */
.course-table tr:last-child th,
.course-table tr:last-child td,
.lesson-detail tr:last-child th,
.lesson-detail tr:last-child td {
  border-bottom: none;
}

.course-table tr{
  font-size: large;
}

.course-price p{
  font-size: 22px;
}
.course-price br{
display: none;
}
.course-price td{
  border-bottom: none;
}
.course-priceperonce td{
  border-top: none;
}
.btn a {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 40px;
  text-decoration: none;
  padding: 15px 4px;
  /* 舩津 色変更した*/
  background-color: #3a877a;
  border-radius: 25px;
  color: #ffffff;
  font-size: clamp(1.25rem, 0.3636rem + 2.1818vw, 2rem);
}

.course-attention span {
  /* 舩津　変更分 */
  color: rgb(177, 21, 21);
  font-weight: bold;
}

.course-detail h2 {
  width: 50%;
  background-color: #FFD1DC;
  border-radius: 32px;
  margin-top: 60px;
}

.course-detail a:hover {
  background-color: #4D3821;
  border-radius: 32px;
}

.course-detail h2 a {
  text-decoration: none;
  color: #755532;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px 0;
}

.onlinelesson-attention p{
  line-height: 52px;
  width: 100%;
  margin: 0 auto;
  color: #755532;
  font-size: 1.25rem
}
.onlinelesson-attention br{
display: none;
}
.beginner-lesson {
  max-width: 850px;
  margin: 0 auto;
}


/*---------------------------------------------  */
/* ここからオンラインレッスン */

.onlinelesson {
  display: none;
}

.lesson-table td {
  text-align: left;
}

.lesson-table th {
  background-color: #FFD1DC;
  font-weight: bold;
  width: 25%;
}

/* 川上追加分 */
.timeschedule {
  display: none;
}

.begginer-info th,
.begginer-info td {
  border-bottom: 1px solid #755322;
  padding: 12px 16px;
  /* vertical-align: top; */
}

.begginer-info th {
  width: 25%;
  background-color: #FFD1DC;
  /* 見出しの背景色 */
  text-align: center;
  font-weight: bold;
  border-right: 1px solid #755532;
}

.begginer-info td {
  background-color: #ffffff;
  padding: 8px;
  /* 少し小さめに */
  vertical-align: top;
  text-align: left;
}

/*---------------------------------------------  */
/* ここまで */

/*---------------------------------------------  */
/* ここからインスタ */

.external-link-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.external-link-container h2 {
  text-decoration: none;
  color: #755532;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  width: 100%;
  font-size: 2rem;
  margin: 0;
}

.chara-face {
  width: 100px;
  display: flex;
  align-items: center;
  height: auto;
  text-align: center;
}

.fujimin h2 {
  text-align: center;
}

.fujimin p {
  font-size: 1rem;
  line-height: 1.5rem;
}

.fujimin video {
  width: 200px;
  max-width: 400px;
  /* 必要に応じてサイズ調整 */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  /* 任意：角丸にする */

}

.chara-face img {
  width: 265px;
  height: auto;
}

/* ここから初めての方へ */
.begginer {
  text-align: center;
  margin-bottom: 88px;
}

@media (max-width: 1050px) {
  #course-top {
    background: #FFFAFA;
  }

  .course {
    margin-top: 48px;
  }

  .course-main {
    width: 90%;
    margin: 0 auto;
  }

  h1 {
    max-width: 100%;
  }

  .course-attention ul {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .course-attention ul li {
    font-size: 1rem;
    margin-left: 1.4rem;
    text-indent: -1.4rem;
  }

  /* .course-detail {
    width: 650px;
  } */

  .course-attention {
    padding: 0 64px;
  }

  .onlinelesson-attention p{
    font-size: 1rem;
    line-height: 1.7;
  }

  .trial {
    margin-top: 48px;
  }

  .trial h1 {
    width: 100%;
  }

  .trial h1 a {
    padding: 25px 0;
  }

  .announcement {
    margin-top: 8px;
  }

  .span,
  #begginer {
    margin-top: 96px;
  }

  .margin {
    margin: 48px 56px 0 56px;
  }

  .external-link-container {
    margin-top: 32px;
  }

  .begginer-detail {
    width: 100%;
    max-width: 620px;
    margin: 40px auto;
    border-radius: 20px;
    /* 角丸 */
  }

  .beginner-lesson {
    /* max-width: 400px; */
    margin: 0 auto;
  }
}

@media (max-width: 650px) {

  /* 共通 */
  /* 川上追加 */
  .wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
  }
  /* ここまで */
  .course-main {
    width: 100%;
  }

  /* kawakami add */

  h1{
    font-size: 2rem;
    margin: 40px auto 80px;
  }

  h2{
    font-size: 1.5rem;
    margin: 40px auto 20px;
  }
  
  /* kawakami added */
  .onlinelesson {
    display: block;
  }

   /* kawakami added */
  .timeschedule {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .course {
    width: 100%;
    margin: 16px auto 0;
  }

.beginner-lesson img{
  width: 80%;
  max-width: 400px;
  }
  

  .course-attention {
    line-height: 35px;
  }

  .course-attention ul {
    width: 100%;
  }

  .course-attention ul li {
    font-size: 0.875rem;
  }

  .course-attention p {
    margin-top: 16px;
    font-size: 0.875rem;
  }


.course-text br{
  display: none;
}

  .course-table th,
  .course-table td {
    padding: 5px 5px;
    text-align: center;
    font-size: 14px;
  }

  .course-table td {
    text-align: center;
    font-size: 12px;
  }

  .course-price p{
    font-size: 14px;
  }
.course-price br{
  display: block;
}

  .course-detail {
    /* width: 80%; */
    /* 川上　追加 */
    width: auto;
    margin-bottom: 40px;
  }

  .course-detail h2 {
    width: 100%;
  }

  .online h2 {
    /* auto追加 */
    margin-top: 0;
    padding-top: 0;
  }

  .lesson-detail {
    width: auto;
  }

  .lesson-table th,
  .lesson-table td {
    border-bottom: 1px solid #c69c6d;
    /* 茶系の線（色はお好みで） */
    padding: 12px 16px;
    font-size: 14px;
  }

  .lesson-table th {
    background-color: #FFD1DC;
    font-weight: bold;
    width: 25%;
  }

  .trial {
    margin-top: 48px;
  }

  .trial h2 {
    width: 50%;
  }

  .trial h1 a {
    padding: 30px 0;
  }

  .announcement {
    margin-top: 8px;
    width: 66.67%;
  }

  span {
    font-size: 1.5rem;
  }

  .trial p {
    line-height: 1.25rem;
  }

  .external-link-container {
    flex-direction: column;
    align-items: center;
    /* 中央寄せ（お好みで） */
  }

  .external-link-container h2{
    font-size: 1.5rem;
  }

  .external-link-container .fujimin,
  .external-link-container .chara-face {
    width: 100%;
    max-width: 400px;
    /* 好みのサイズ */
    text-align: center;
  }

  .course-attention p {
    font-size: 0.875rem;
  }

  .onlinelesson-attention br{
    display: block;
  }

  .chara-face a {
    display: block;
    text-align: center;
  }

  .chara-face img {
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .chara-face p {
    font-size: 1rem;
    margin: 8px 0;
    text-align: center;
  }

  .fujimin video {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .begginer th {
    text-align: center;
  }

  .begginer th,
  .begginer td {
    font-size: 0.75rem;
  }

  .begginer td {
    text-align: left;
  }

  .begginer-info th {
    width: 35%;
  }
}