@charset "UTF-8";

:root {
  --main: #ff8c42;
  --sub: #0068c8;
  --bg-grad: linear-gradient(135deg, #f9ede6 0%, #e5d3bf 100%);
  --bg-op: rgba(248, 208, 208, .25);
  --blk: #2f3940;
  --g1: #c85a28;
  --g2: #c87137;
  --g3: #ff8c42;
}

.fa-solid,
.fa-regular {
  padding-right: .5rem;
}

#content {
  color: var(--blk);
}

.fa-bars {
  display: none;
}

.g1 {
  color: var(--g1);
}

.g2 {
  color: var(--g2);
}

.g3 {
  color: var(--g3);
}

.course_title h1 {
  display: none;
}

.wrap {
  width: 100%;
}

.wrap_inner {
  padding: 20px 0;
}

.wrap_inner h2 {
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--main);
}

.wrap_inner p {
  font-weight: normal;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--blk);
}

.intro_upbar {
  border-top: 2px solid var(--main);
  padding-top: .5rem;
}

.intro_zbtn {
  display: inline-block;
  padding: 5px 10px 3px;
  margin-right: 1rem;
  background-color: var(--main);
  color: #fff;
  font-weight: bold;
}

/*-----------------------------------
headline*/
.headline {
  position: relative;
  display: inline-block;
}

.headline:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 4px;
  background: var(--main);
  transition: all 0.5s;
}

.headline.isActive:after {
  width: 100%;
}

/*-----------------------------------
difference*/
.differenceImage {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.differenceImage img {
  width: 100%;
  height: auto;
}

.difference p {
  margin-top: 15px;
}

/*-----------------------------------
#lesson-style */
#lesson-style {
  max-width: 920px;
  margin: 0 auto;
  background: white;
  overflow: hidden;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

.course-tabs {
  display: flex;
  list-style: none;
  background: #fffdf8;
  margin: 0;
  padding: 0;
  justify-content: center;
  border-bottom: 2px solid #ffefe1;
}

.course-tabs li {
  flex: 1;
  text-align: center;
  padding: 15px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  color: #666;
  background: linear-gradient(135deg, #fffdf8 0%, #ffefe1 100%);
  border-right: 1px solid #ddd;
}

.course-tabs li small {
  font-size: 10px;
}

.course-tabs li:last-child {
  border-right: none;
}

.course-tabs li::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fec14f, #feed00);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.course-tabs li:hover {
  background: linear-gradient(135deg, #ffefe1 0%, #fff1d4 100%);
  color: #fec14f;
  transform: translateY(-1px);
}

.course-tabs li.active {
  background: linear-gradient(135deg, #fec14f 0%, #fed800 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.course-tabs li.active::before {
  width: 100%;
}

.course-area {
  padding: 25px;
  background: white;
}

.course-group {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.course-group.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-group>h3 {
  text-align: center;
  font-size: 18px;
  color: var(--main);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.course-group>h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #fec14f, #fed800);
  transform: translateX(-50%);
  border-radius: 1px;
}

.course-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

/* スライダーの場合はgrid表示を解除 */
.course-cards-container.slider {
  display: block;
}

.course-card {
  margin-bottom: 5px;
}

.course-card img {
  width: 100%;
  height: auto;
}

.course-card {
  box-sizing: border-box;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #ffefe1;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.03), transparent);
  transition: left 0.5s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.12);
  border-color: #fec14f;
}

.course-card:hover::before {
  left: 100%;
}

.course-card h3 {
  color: #333;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 700;
  position: relative;
}

.course-card .desc {
  color: #666;
  font-size: 13px;
  margin-bottom: 15px;
  font-style: italic;
}

.course-card ul {
  list-style: none;
  margin-top: 15px;
}

.course-card ul li {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 15px;
  font-size: 14px;
}

.course-card ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: #fec14f;
  font-size: 10px;
  top: 5px;
}

.course-card ul li:last-child {
  border-bottom: none;
}

.course-card dl {
  background: linear-gradient(135deg, #fffdf8 0%, #ffefe1 100%);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.course-card dt {
  font-weight: 700;
  color: var(--main);
  margin-bottom: 8px;
  font-size: 14px;
}

.course-card dd {
  color: #666;
  line-height: 1.6;
  margin-bottom: 6px;
  font-size: 13px;
}

.course-card dd:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {

  .course-area {
    padding: 15px;
  }

  .course-cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .course-card {
    padding: 15px;
  }

  .course-group>h3 {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .course-cards-container {
    grid-template-columns: 1fr;
  }
}

/* 700px幅のコンテナに最適化 */
@media (max-width: 700px) and (min-width: 481px) {
  .course-cards-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* 特別なエフェクト */
.course-card:nth-child(odd) {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
}

.course-card:nth-child(even) {
  background: linear-gradient(135deg, #fffdf8 0%, #ffffff 100%);
}

/*-----------------------------------
 slider */

/* シンプルスライダー用CSS - grammar.cssに追加 */

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider .course-card {
  display: none;
  width: 100%;
}

.slider .course-card:first-child {
  display: block;
}

/* スライダー内の画像を中央揃え・最大幅500px */
.slider .course-card {
  max-width: 500px;
  margin: 0 auto;
}

.slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}

.slider-prev,
.slider-next {
  background: linear-gradient(135deg, #fec14f 0%, #fed800 100%);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(254, 193, 79, 0.3);
}

.slider-prev:hover,
.slider-next:hover {
  background: linear-gradient(135deg, #fed800 0%, #fec14f 100%);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(254, 193, 79, 0.5);
}

.slider-prev:active,
.slider-next:active {
  transform: scale(0.95);
}

.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex: 1;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: #fec14f;
  transform: scale(1.2);
}

.slider-dot.active {
  background: linear-gradient(135deg, #fec14f 0%, #fed800 100%);
  width: 30px;
  border-radius: 5px;
}

/* スライダー内の画像調整 */
.slider .course-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* スライダー内のカードを横並びレイアウトに */
.slider .course-card {
  display: none;
  gap: 20px;
  align-items: center;
}

.slider .course-card.slider-active {
  display: flex;
}

.slider .course-card img {
  width: 50%;
  flex-shrink: 0;
}

.slider .card-caption {
  font-size: 18px;
  line-height: 1.6;
  color: #ff8c42;
}

/* ============================================
   Lightbox用CSS
   ============================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  z-index: 10001;
  animation: zoomIn 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 90vw;
  /* 左右にボタン用のスペースを確保 */
  max-height: 98vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.lightbox-nav {
  position: fixed;
  /* absoluteからfixedに変更 */
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  /* パディングを増やす */
  pointer-events: none;
  z-index: 10002;
}

.lightbox-prev,
.lightbox-next {
  pointer-events: auto;
  background: linear-gradient(135deg, #fec14f 0%, #fed800 100%);
  border: none;
  color: white;
  font-size: 30px;
  width: 60px;
  /* ボタンを少し大きく */
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(254, 193, 79, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  transform: scale(1.2) rotate(90deg);
  color: #fec14f;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: linear-gradient(135deg, #fed800 0%, #fec14f 100%);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   スマホ対応
   ============================================ */

@media (max-width: 768px) {

  .slider-prev,
  .slider-next {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .slider-nav {
    margin-top: 15px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.active {
    width: 24px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .lightbox-nav {
    padding: 0 10px;
  }
}

.lightbox-inner {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  max-width: 90vw;
}

.lightbox-image {
  max-width: 80%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-caption {
  flex: 1;
  color: white;
  font-size: 16px;
  line-height: 1.8;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .lightbox-inner {
    flex-direction: column;
    gap: 15px;
  }

  .lightbox-image {
    max-width: 100%;
  }

  .lightbox-caption {
    font-size: 14px;
    padding: 15px;
  }
}



/*-----------------------------------
faq*/
.faq_box {
  font-size: 1.6rem;
}

.faq_q {
  margin-bottom: 1rem;
}

.faq_a {
  margin-bottom: 1.5rem;
  background-color: var(--bg-op);
  padding: 1rem;
}

.faq_q .fa-circle-question,
.faq_a .fa-thumbs-up {
  font-size: 2rem;
}

.faq_img img {
  width: 100%;
  height: auto;
}

/*-----------------------------------
tesaku*/
.tensaku {
  background-color: var(--bg-op);
}

.tensaku_flex {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.tensaku_flex_txt {
  width: 60%;
}

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

.tensaku_flex_img {
  margin-bottom: 15px;
}

.tensaku_flex_img img {
  width: 100%;
  height: auto;
}


@media screen and (max-width:769px) {
  .tensaku_flex {
    display: block;
    width: 100%;
    align-items: center;
    margin-bottom: 15px;
  }

  .tensaku_flex_img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px;
  }

  .tensaku_flex_txt {
    width: 100%;
    margin-bottom: 15px;
  }

}

/*-----------------------------------
notice*/
.notice {
  background-color: var(--bg-op);
}

#content .wrap.notice {
  width: 100%;
}

.notice li {
  display: block;
  margin-bottom: 1rem;
}

/*-----------------------------------
pltn_cv_btn*/
.pltn_cv_btn {
  width: 98%;
  max-width: 325px;
  font-weight: bold;
  margin: 0 auto 3rem;
}

.pltn_cv_btn a,
.pltn_cv_btn span {
  display: block;
  box-sizing: border-box;
  padding: 7px 0 5px;
  width: 100%;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  transition: all 0.5s 0s ease;
  text-align: center;
  border-radius: 100px;
}

.pltn_cv_btn a:link,
.pltn_cv_btn a:visited {
  color: #fff;
}

/*級別分岐：ErrorD*/
.pltn_cv_btn.cvg1 a,
.pltn_cv_btn.cvg1 span {
  border: 2px solid var(--g1);
  background-color: var(--g1);
}

.pltn_cv_btn.cvg1 a:hover,
.pltn_cv_btn.cvg1 a:active {
  color: var(--g1);
  background-color: #fff;
  text-decoration: none;
}

/*級別分岐：基礎文法*/
.pltn_cv_btn.cvg2 a,
.pltn_cv_btn.cvg2 span {
  border: 2px solid var(--g2);
  background-color: var(--g2);
}

.pltn_cv_btn.cvg2 a:hover,
.pltn_cv_btn.cvg2 a:active {
  color: var(--g2);
  background-color: #fff;
  text-decoration: none;
}

/*級別分岐：入門基礎文法*/
.pltn_cv_btn.cvg3 a,
.pltn_cv_btn.cvg3 span {
  border: 2px solid var(--g3);
  background-color: var(--g3);
}

.pltn_cv_btn.cvg3 a:hover,
.pltn_cv_btn.cvg3 a:active {
  color: var(--g3);
  background-color: #fff;
  text-decoration: none;
}

.caution {
  display: block;
  text-align: center;
  color: var(--blk);
}

/*-----------------------------------
teacher*/
.teacher ul {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.teacher li figure,
.teacher li h3 {
  margin-bottom: 15px;
}

.teacher li h3 {
  font-weight: bold;
  font-size: 2rem;
  color: var(--sub);
  text-align: left;
}

/*-----------------------------------
flow*/
.flow {
  background: var(--bg-op);
}

.flow .headline:after {
  background: var(--main);
}

.flow .wrap_inner h2 {
  color: var(--main);
}

.flow ol {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.flow li h3 {
  box-sizing: border-box;
  padding: 5px 0;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background: var(--main);
  margin-bottom: 10px;
}

.flow li {
  position: relative;
  background: #fff;
  margin-bottom: 30px;
}

.flow li figure {
  font-size: 5rem;
  color: var(--sub);
  text-align: center;
  margin-bottom: 20px;
}

.flow li p {
  color: var(--blk);
  width: 85%;
  margin: 0 auto 10px;
}

.flow li+li::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054";
  position: absolute;
  top: 45%;
  left: -35px;
  display: flex;
  align-content: center;
  color: var(--main);
}

@media screen and (min-width:769px) {
  .pcNone {
    display: none;
  }

  .wrap_inner {
    width: 920px;
    margin: 0 auto 30px;
  }

  .cv_btn_flex {
    display: flex;
    gap: 5px;
  }

  .shedule_flex {
    display: flex;
    justify-content: space-between;
  }

  .renewal_wrap {
    overflow-x: hidden;
  }

  /*-----------------------------------
	faq*/
  /*
	.faq_box{
		display: flex;
		justify-content: space-between;
	}
*/
  .faq_img {
    width: 70%;
    margin: 0 auto;
  }

  .faq_img figcaption {
    margin-top: 15px;
  }

  .faq_txt {
    width: 70%;
    margin: 0 auto 30px;
  }

  .teacher li {
    width: 32%;
    margin-bottom: 30px;
  }

  .teacher li figure img {
    width: 100%;
    height: auto;
  }

  .flow li {
    width: 20%;
  }
}

@media screen and (max-width:768px) {
  #header .nav h1 {
    display: none;
  }

  .wrap_inner {
    margin: 0 auto 30px;
    width: 90%;
  }

  .teacher li {
    width: 100%;
  }

  .teacher li figure img {
    width: 100%;
    height: auto;
  }

  .flow li {
    width: 100%;
    margin-bottom: 3rem;
  }

  .flow li+li::before {
    transform: rotate(90deg);
    top: -30px;
    left: 46%;
    font-size: 2rem;
  }

  .faq_img {
    width: 90%;
    margin: 0 auto 2rem;
  }
}

/*--------------------------------------------
lesson*/
.inner {
  margin: 20px 50px;
}

#lesson {
  margin-bottom: 30px;
}

.lesson_flex {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 80%;
  margin: 20px auto;
  max-width: 500px;
}

.lesson_flex figure img {
  width: 100%;
}

.txt {
  font-size: 1.6rem;
  width: 90%;
  max-width: 700px;
  margin: 10px auto;
}

b {
  color: #c52211;
}

.lesson_questionnaire {
  width: 210px;
  text-align: center;
  margin-top: 30px;
}

.lesson_que_img img {
  max-width: 100px;
}

#lesson section {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
}

@media screen and (min-width:481px) {
  .lesson_que_txt {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: #ffffff;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.25);
  }

  .lesson_que_txt::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    border-style: solid;
    border-width: 0 10px 20px 10px;
    border-color: transparent transparent #ffffff;
    translate: -50% -100%;
  }
}

@media screen and (max-width:480px) {
  .wrap_inner {
    margin: 15px;
  }

  .lesson_flex {
    width: 90%;
  }

  .lesson_que_txt {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    padding: 15px;
    border-radius: 12px;
    background-color: #ffffff;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.25);
  }

  .lesson_que_txt::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    border-style: solid;
    border-width: 8px 16px 8px 0;
    border-color: transparent #ffffff transparent transparent;
    translate: -100% -50%;
    transform: skew(0, -10deg);
    transform-origin: right;
  }

  .lesson_questionnaire {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .lesson_que_img img {
    width: 10%;
    min-width: 80px;
  }

  .lesson_que_txt {
    width: 90%;
  }
}