:root {
  --bg: white;
  --panel: white;
  --line: #2b3243;
  --line-soft: #22293a;
  --text: black;
  --sub: #9aa3bd;
  --muted: #0a0b0e;
  --accent: #f4f6ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mt2{
  margin-top: 1.5% !important;
  @media screen and (min-width: 769px) {
    margin-top: 2% !important;
  }
}
.mt5{
  margin-top: 3% !important;
  @media screen and (min-width: 769px) {
    margin-top: 5% !important;
  }
}
.mt10{
  margin-top: 5% !important;
  @media screen and (min-width: 769px) {
    margin-top: 10% !important;
  }
}
.mt15{
  margin-top: 10% !important;
  @media screen and (min-width: 769px) {
    margin-top: 15% !important;
  }
}
.mt20{
  margin-top: 10% !important;
  @media screen and (min-width: 769px) {
    margin-top: 20% !important;
  }
}
.mt30{
  margin-top: 15% !important;
  @media screen and (min-width: 769px) {
    margin-top: 30% !important;
  }
}
.mt40{
  margin-top: 20% !important;
  @media screen and (min-width: 769px) {
    margin-top: 40% !important;
  }
}
.mt50{
  margin-top: 25% !important;
  @media screen and (min-width: 769px) {
    margin-top: 50% !important;
  }
}

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

body {
scroll-behavior: smooth;
  font-optical-sizing: auto;
  font-size: clamp(14px, 0.2vw + 13.24px, 16px);
    position: relative;
    background-color: #fffff8;
    @media screen and (min-width: 1200px) {
      font-size: 1.6rem;
    }
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  padding: 1rem;
  border-radius: 5px;
  display: block;
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select{
  background-color:#f5f5f5;
  min-height: 5rem;
  margin-top: .5rem;
  margin-bottom: .5rem;
}
textarea{
  margin-top: .5rem;
  background-color:#f5f5f5;
  border-radius: 5px;
}
input[type="date"]{
      width: auto !important;
  @media screen and (min-width: 769px) {
    width: 100% !important;
  }
}
.page{
    padding: 0 2rem;
  padding-bottom: 5rem;
}
.required{
  color: red;
  font-size: 1.2rem;
  @media screen and (min-width: 769px) {
    font-size: 1.4rem;
  }
}
.optional{
  color: #9aa3bd;
  font-size: 1.2rem;
  @media screen and (min-width: 769px) {
    font-size: 1.4rem;
  }
}

.container {
  max-width:1024px;
  margin: 0 auto;
}

.logo-pill {
  text-align: center;
  padding: 2rem 0;
  img{
    width: 100%;
    max-width: 50px;
    object-fit: contain;
    margin: 0 auto;
    @media screen and (min-width: 769px) {
    max-width: 70px;
    }
  }
}

.hero-image {
  width:100%;
  margin: 0 auto 2.5rem;
     padding: 25rem 0;
  max-width: 1280px;
  @media screen and (min-width: 769px) {
margin: 0 auto 5rem;
  }
  img{
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider picture {
  display: contents;
}

.hero-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
  z-index: 0;
}

.hero-slider__img.is-active {
  opacity: 1;
  z-index: 1;
}
.vi{
  position: relative;

  .vi-logo{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
            max-width: 70%;
   
    height: 100%;
    object-fit: contain;
            z-index: 9999;
            @media screen and (min-width: 769px) {
             max-width: 325px;
            }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__img {
    transition-duration: 0.01ms;
  }
}

.intro {
  text-align: center;
  margin-bottom: 16px;
  
  
  .intro-inner{
        background: url(../img/bg_intro.webp) no-repeat center center/cover;

  width: 100%;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
  padding: 5% 3%;
  @media screen and (min-width: 769px) {
 background: url(../img/bg_intro.webp) no-repeat center center/100%;
    padding: 3% 5%;
  }
  
  }
}

.intro h1 {
  margin: 0 auto 1.5rem;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.intro p {
  margin: 8px 0 14px;
  text-align: justify;
  @media screen and (min-width: 769px) {
 text-align: center;
  }
}


.intro small {
  display: block;
  margin: 0 auto 3%;
  width: min(760px, 95%);
  text-align: justify;
  @media screen and (min-width: 769px) {
 text-align: center;
  }
}
.intro-body{
  background-color: rgba(255,255,255,0.9);
  padding:8% 3% 3% ;
  border-radius: 8px;
  @media screen and (min-width: 769px) {
  padding: 3%;
  }
  ol{
    text-align: justify;
    li{
      margin-bottom: 2rem;
      padding: 1.5rem;
      background-color: #b38282;
      border-radius: 8px;
      color: white;
   
            position: relative;
                       text-indent: 0;
            @media screen and (min-width: 769px) {
                 text-indent: -2.5rem;
            padding-left: 4rem;
            }
            
            strong{
              font-size: clamp(16px, 1.5vw, 20px);
              font-weight: 500;
            }
            &:after{
            content: "";
            display: block;
            position: absolute;
            left: 10%;
            bottom: -12px;
            transform: translateX(-10%);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 20px solid #b38282;
            }
            &:last-child{
              &:after{
                display: none;
              }
            }
            }
    }
  }

.form-card {
  margin: 20px auto 0;
  width: min(1024px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 2rem;
}

.fieldset {
  border: 1px solid black;
  padding: 2rem;
  margin: 0 0 2rem;
  border-radius: 5px;
  background-color: white;
}

.fieldset legend {
  padding: 0 8px;
  background: white;
}

.grid {
  @media screen and (min-width: 769px) {
  display: grid;
  gap: 10px;
  }
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field input,
.field select,
.field textarea {
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.full {
  grid-column: 1 / -1;
}

.radio-grid,
.check-grid {
  gap: 0;
}

.choice {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice:nth-child(3n) {
  border-right: 0;
}

.radio-grid .choice:nth-child(2n) {
  border-right: 0;
}

.choice input {
  accent-color: #6f8bff;
}

.course-item {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  @media screen and (min-width: 769px) {
   display: grid;
  grid-template-columns: 35% 1fr 70px;
  align-items: flex-start;
  gap: 24px;

  border-bottom: 1px dotted black;
  }
  &:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .notes{
    font-size: clamp(11px, 1.5vw, 13px);
    color: #9aa3bd;
    margin-top: .5rem;
  }
  &:last-child{
   .course-select{
    margin-bottom: 0;
   }
  }
}
.course-select{
      width: 100%;
    text-align: center;
  border-radius: 5px;
  background-color: #b38282;
  color: white;
  border: none;
  margin-bottom: 5rem;
  @media screen and (min-width: 769px) {
    width: auto;
    margin-bottom: 0;
  }
}

.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.course-text h3 {
  margin: 0 0 .05rem;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  .catch-title{
    font-size: clamp(14px, 1.5vw, 16px);
    @media screen and (min-width: 769px) {
      font-size: clamp(16px, 1.5vw, 18px);
    }
  }
}

.course-text p {
  margin: 0;
  margin-bottom: .5rem;
}
.course-text small{
  font-size: clamp(11px, 1.5vw, 13px);
padding: 1rem;
    background-color: #f7f7f7;
    border-radius: 5px;
    display: inline-block;
    width: 100%;
    line-height: 1.8;
}
.course-price{
  font-size: clamp(16px, 1.5vw, 18px);
  strong{
    font-size: clamp(24px, 1.5vw, 28px);
  }
  
}
.course-price-red{
   color: red;
}

.single-check {
  display: block;
  margin: 2px 0 14px;
}

.submit {
  display: block;
  margin: 16px auto 4px;
  border: 0;
  border-radius: 999px;
  padding: 10px 26px;
  background: linear-gradient(180deg, #f4f4f7 0%, #d9dde8 100%);
  color: #212734;
  
  font-weight: 700;
}

.submit-secondary {
  background: #f0f0f0;
}

.form-error {
  color: #b30000;
  font-weight: 700;
  margin-top: 8px;
  min-height: 1.5em;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.step-card h2 {
  font-size: clamp(20px, 2vw, 26px);
  margin-bottom: 0.5rem;
}

.step-note {
  margin-bottom: 1rem;
}

.confirm-list {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  padding: 1rem;
}

.confirm-list > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  border-bottom: 1px solid #e4e4e4;
  padding: 0.65rem 0;
}

.confirm-list > div:last-child {
  border-bottom: none;
}

.confirm-list dt {
  font-weight: 700;
}

.step-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.is-hidden {
  display: none;
}
.cancel-policy-list{
  padding:0 1rem 1.5rem;
  h4{
    font-size: clamp(16px, 1.5vw, 18px);
    margin-bottom: 1rem;
    color: #828282;
  }
  .cancel-policy-item{
    font-size: clamp(11px, 1.5vw, 13px);
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #828282;
  }
}

@media (max-width: 760px) {
  .confirm-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .step-actions {
    flex-direction: column-reverse;
    align-items: center;
  }
}
