html {
    font-size: calc((100 / 768) * 1vw);
}
@media screen and (min-width: 768px) {
    html {
        font-size: 1px;
    }
}

body{
	background: url("../img/bg_gradation.jpg") no-repeat 50% 0 / cover;
	background-attachment: fixed;
	position: relative;
}

.ab{
  display: none;
}

.ab-btn{
  width: 100%;
  margin: auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.ab-btn img{
  max-width: 346px; /* 384pxの90%に相当 */
  width: 100%;
  height: auto;
}

@media screen and (min-width: 768px) {
  .ab{
    display: block;
    position: fixed;
    top: 62vh;
    left: calc((100vw - 500px - 20% - 384px) / 2);
    transform: translateY(-70%);
    z-index: 100;
    width: 384px;
    height: 480px;
    background: url(../img/n-cta1.png) no-repeat 50% 0 / contain;
  }
  .ab-btn{	
      text-align: center;
      bottom: -10px;
      }
  .ab-btn a {
      display: inline-block;
      width: 75%;
  }
  .ab-btn a:first-of-type {
      margin-bottom: 10px;
  }
  .shadow {
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  }
}

@media screen and (max-width: 768px) {
  .l-container,.sp-cta, footer.footer{
    margin: 0 auto !important;
  }
}

.sp-cta{
  width: 500px;
  padding: 0 10px;
  position: fixed;
  bottom: 1rem;
  margin: auto 15% auto auto;
  display: flex;
  z-index: 999999;
  background: rgba(255,111,111,0.1);
  padding: 6px 0;
}

@media screen and (max-width: 768px) {
  .sp-cta {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

.sp-cta a{
  margin: 0 auto;
}
.sp-cta img{
  text-align: center;
  display: block;
  margin: 0 auto;
  width: 98%;
  justify-content: space-between;
}

.swiper-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

.swiper-container .swiper {
    position: absolute;
    top: 0;
    left: 36px;
    width: calc(100% - 72px);
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.swiper-container img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

.l-container {
    position: relative;
    width: 500px;
    box-sizing: border-box;
    background: white;
    margin: auto 15% auto auto;
    overflow: visible;
    z-index: 1;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
}

.swiper-slide {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
	padding: 0 3%;
	box-sizing: border-box;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

p img {
  width: 100%;
  height: auto;
  display: block;
}

.swiper-button-next, .swiper-button-prev {
    position: absolute;
    color: #776F6F !important;
    width: 30px !important;
    height: 30px !important;
    z-index: 10;
    top: 50% !important;
    transform: translateY(-50%);
}

/*.swiper-button-prev {
    left: -1px !important;
}

.swiper-button-next {
    right: -1px !important;
}*/

.swiper-button-next:after, .swiper-button-prev:after {
    content: '' !important;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 10;
}

.swiper-button-next:after {
  border-width: 15px 0 15px 20px;
  border-color: transparent transparent transparent #776F6F;
}

.swiper-button-prev:after {
  border-width: 15px 20px 15px 0;
  border-color: transparent #776F6F transparent transparent;
}

.swiper-button-next:after {
  border-width: 15px 0 15px 20px;
  border-color: transparent transparent transparent #776F6F;
}

.swiper-button-prev:after {
  border-width: 15px 20px 15px 0;
  border-color: transparent #776F6F transparent transparent;
}

.faq-section {
    padding: calc(48 * (100vw / 768)) calc(24 * (100vw / 768)) calc(24 * (100vw / 768)) calc(24 * (100vw / 768));
    font-size: calc((100 / 768) * 1vw);
}

@media screen and (min-width: 768px) {
    .faq-section {
        padding: 48px 24px 24px 24px;
    }
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px; /* 質問間の余白を20pxに設定 */
}

.faq-question {
    position: relative;
    padding: 16px 16px 16px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    line-height: 1.5;
    color: #323232;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #F5E6E7;
}

.question-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 24px; /* faq-arrowとの余白 */
}

.q-mark {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.faq-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.faq-arrow::before,
.faq-arrow::after {
    content: '';
    position: absolute;
    background-color: #D34D60;
    transition: transform 0.3s ease;
}

.faq-arrow::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
}

.faq-arrow::after {
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.active .faq-arrow::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #FBF7F5;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 0 28px;
}

.faq-answer p {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0;
}

.faq-answer p:first-child {
    color: #D34D60;
    margin-bottom: 24px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.faq-answer p:not(:first-child) {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    color: #323232;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 24px 28px 24px 28px;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .l-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .sp-cta {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .ab {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .faq-section {
        padding: calc(48 * (100vw / 500)) calc(24 * (100vw / 500)) calc(24 * (100vw / 500)) calc(24 * (100vw / 500));
    }

    .faq-question {
        padding: calc(16 * (100vw / 500)) calc(16 * (100vw / 500)) calc(16 * (100vw / 500)) calc(12 * (100vw / 500));
        font-size: calc(16 * (100vw / 500));
    }

    .question-content {
        gap: calc(12 * (100vw / 500));
        padding-right: calc(24 * (100vw / 500));
    }

    .q-mark {
        width: calc(32 * (100vw / 500));
        height: calc(32 * (100vw / 500));
    }

    .faq-arrow {
        right: calc(12 * (100vw / 500));
        width: calc(16 * (100vw / 500));
        height: calc(16 * (100vw / 500));
    }

    .faq-answer p:first-child {
        margin-bottom: calc(32 * (100vw / 500));
        font-size: calc(14 * (100vw / 500));
    }

    .faq-answer p:not(:first-child) {
        font-size: calc(14 * (100vw / 500));
    }

    .faq-item.active .faq-answer {
        padding: calc(24 * (100vw / 500));
    }

    .footer {
        padding: calc(32 * (100vw / 500)) calc(10 * (100vw / 500)) calc(120 * (100vw / 500));
    }

    .footer-links a {
        font-size: calc(14 * (100vw / 500));
    }

    .footer-copyright {
        font-size: calc(12 * (100vw / 500));
    }
}

.footer {
    position: relative;
    width: 500px;
    margin: auto 15% auto auto;
    padding: 20px 0 120px;
    background: #fff;
    border-top: 1px solid #ccc;
}

.footer-container {
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
    align-items: center;
    white-space: nowrap;
}

.footer-links li {
    padding: 0 15px;
    border-right: 1px solid #ccc;
}

.footer-links li:last-child {
    border-right: none;
}

.footer-links a {
    font-size: 14px;
    color: #333;
}

.footer-copyright {
    font-size: 12px;
    color: #333;
    margin: 0;
}

@media screen and (max-width: 768px) {
    body {
        min-width: auto;
    }

    .l-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .swiper-wrapper {
        margin-top: 20px;
    }

    .sp-cta {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding-bottom: 80px;
    }

    .ab {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .footer-links a {
        font-size: calc(14 * (100vw / 500));
    }

    .footer-copyright {
        font-size: calc(12 * (100vw / 500));
    }
}

.swiper-pagination {
    position: absolute;
    bottom: 25px !important;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #D9D9D9;
    margin: 0 4px;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #D44D60 !important;
    opacity: 1;
    width: 6px;
    height: 6px;
}

.working img {
	width: 98%;
	margin: 1vw auto 0;
}

/* schoollist */
.schoollist {
	font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	font-size: 3.3vw;
	padding: 0 6vw 12vw;
}
.schoollist dl dt {
	background: #d44d60;
	color: #fff;
	padding: 0.5vw 2vw;
	border-radius: 1vw;
	margin-bottom: 1vw;
	font-weight: normal;
	font-size: 3.5vw;
}
.schoollist dl dd {
	margin-bottom: 2vw;
}
.schoollist dl dd ul li {
	color: #4a4a4a;
	line-height: 1.5;
	display: inline-block;
	position: relative;
}
.schoollist dl dd ul li:not(:last-of-type):after {
	content: " ／";
	position: relative;	
}
@media screen and (min-width: 768px) {
	.schoollist {
		font-size: 14px;
		padding: 0 4% 50px;
	}
	.schoollist dl dt {		
		padding: 3px 6px;
		border-radius: 4px;
		margin-bottom: 6px;
		font-size: 15px;
	}
	.schoollist dl dd {
		margin-bottom: 15px;
	}	
}
