/* ===== Responsive tuning (>=1200px / >=1920px) ===== */
@media (max-width: 768px) {
  .sp-only {
    display: block !important;
  }

  .pc-only {
    display: none;
  }


  .nav-menu.pc-only {
    display: none !important;
  }
  
  .nav-menu.sp-only {
    display: flex !important; /* または既存のnav-menuの表示方法 */
  }


    .container {
    max-width: 660px;
    padding: 20px 8px 40px;
    }

    .ttl-container h2 {
    font-size: clamp(28px, 3.2vw, 40px);
    text-align: center;
    line-height: 1.2;
    }

    .sec-chance .ttl-container h2 {
    display: block;
  }

    /* ===== Header ===== */
.header {
  /* position: relative; */
    display: flex;
    align-items: center;           /* ヘッダー自身を縦中央 */
    height: 100px;
  }

  .header > .nav {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;           /* ナビ領域でも縦中央を維持 */
  }

  .nav-container {
    display: flex;
    align-items: center;           /* コンテナでも縦中央 */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px;
  }

  .logo h1 img {
    height: 44px;                  /* ロゴも少し小さめに */
  }

  .nav-menu {
    display: flex;
    align-items: center;           /* ulの交差軸＝縦を中央 */
    justify-content: center;
    gap: 8px;
    height: 100%;                  /* ヘッダーの高さに合わせる */
    margin: 0;                     /* 念のためリセット */
    padding: 0;
    list-style: none;
  }

  .nav-menu li {
    height: auto;       /* ← 高さを固定せず自動に */
    min-width: 0;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important; /* 影を消す */
    border: none !important;     /* hover時の枠も消す */
  }

  .nav-menu li a {
    display: flex;
    align-items: center;           /* aでも縦中央を維持 */
    justify-content: center;
    height: 100%;
  }

  .nav-menu li img {
    height: 60px;       /* ← お好みで 60〜80px など */
    width: auto;        /* 縦横比を維持 */              /* 余白を消す */
  }

    /* ===== MV ===== */
    .sec-mv {
    height: auto;
    margin-top: 100px;
    background: none;
    overflow: hidden; /* 装飾のはみ出しを念のため抑制 */
    z-index: 0;
  }

  .sec-mv::before {
    content: unset;
    background: unset;
    z-index: 10;
  }

  /* ===== Chance ===== */
  .sec-chance {
    position: relative;
    margin-top: 40px;
    z-index: 100;
  }

  .sec-chance .ttl-container h2::before {
    content: "";
    background: url(./img/rsn-ttl.png) center/contain no-repeat;
  }

  .chance-box {
    display: block;
    gap: unset;
  }

  .chance-box::after {
    top: 5%;
    right: -24%;
    width: 40%;
    height: 40%;
    background: url(./img/rsn-bg-y.png) center/contain no-repeat;
  }

  .chance-block {
    flex: 1 1 0;
    min-width: 0;
    min-height: 700px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    padding: 20px 10px 30px;
    height: 90%;
  }

  .chance-block-ttl {
    margin: 70px 0 10px;
    text-align: center;
  }

  .chance-block-ttl p {
    font-weight: 700;
    font-size: 24px;
  }

  .chance-block-ttl h3 {
    position: relative;
    display: inline-block;
    font-size: 32px;
    z-index: 0;
  }

  .chance-block-ttl h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 10px;
    background: #FFEA00;
    z-index: -1;
  }

  .chance-block img {
    margin: 30px auto;
    width: auto;
    height: 240px;
    object-fit: cover;
  }

  .chance-block p {
    text-align: center;
  }

  .chance-block img + p {
    text-align: left;
  }

  /* ===== Contact (lead) ===== */
  .sec-contact {
    position: relative;
    border-radius: 40px;
    z-index: 10;
  }

  .sec-contact::after {
    content: "";
    bottom: 0;
    right: 0%;
    width: 100px;
    background: url(./img/contact-woman.png) right bottom/contain no-repeat;
  }

  .sec-contact .ttl-container {
    margin: 60px 0 60px;
  }

  .sec-contact .ttl-container::after {
    content: "";
    top: 20%;
    left: 50%;
  }

  .contact-wrapper {
    position: relative;
    padding: 20px 10px;
  }

  .contact-wrapper::before {
    content: unset;
  }

  .contact-wrapper > p {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 18px;
  }

  .contact-btn-wrapper {
    display: block;
    gap: unset;
    padding: 80px 0 20px;
    width: 100%;
  }

  .contact-btn-wrapper a {
    display: flex;
    justify-content: center;
    min-width: 0;
    margin: 20px 0;
  }

  .contact-btn-wrapper a img {
    width: 80%;
    object-fit: contain;
  }

  .contact-tel-wrapper {
    padding: 20px;
    width: 100%;
  }

  .contact-tel-wrapper p {
    margin-top: 0;
  }

  .contact-tel-wrapper .contact-tel a {
    position: relative;
    display: inline-block;
    text-decoration: none;
  }

  .contact-tel-wrapper .contact-tel a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 30px;
    height: 30px;
    margin-left: -20px;
    background: url(./img/icon-tel.png) center/contain no-repeat;
    transform: translateY(-51%);
  }

  .contact-tel-wrapper img {
    width: 90%;
    margin: 0 auto;
  }

  .contact-tel-wrapper small {
    display: block;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
  }

    /* ===== Plan (slider) ===== */
  .sec-plan {
    padding: 40px 0;
  }

  .sec-plan .ttl-container {
    gap: 2rem;
    justify-content: center;
    margin-bottom: 16px;
    text-align: center;
  }

  .sec-plan .ttl-container img {
    width: 200px;
    margin: 0 auto;
  }

  .plan-slider {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
  }

  .plan-nav {
    width: 44px;
    height: 44px;
    border: 1px solid #252525;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    cursor: pointer;
  }

  .plan-nav:disabled {
    opacity: .4;
    cursor: default;
  }

  .plan-nav::before {
    content: "";
    position: relative;
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    top: 1px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
  }

  .plan-prev::before {
    transform: rotate(-135deg);
  }

  .plan-viewport {
    overflow: hidden;
    padding: 0;
  }

  .plan-viewport,
  .instr-viewport {
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 12px;
  }

  .plan-track {
    --track-gap: 4rem;
    display: flex;
    gap: var(--track-gap);
    will-change: transform;
    transition: transform .35s ease;
  }

  .plan-card {
    flex: 0 0 calc((100% - var(--track-gap)) / 2);
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #A7A7A7;
    border-radius: 12px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .08);
    padding: 30px 20px;
    text-align: center;
  }

  .plan-card .row {
    margin-bottom: 12px;
  }

  .plan-card .row:last-child {
    margin-bottom: 0;
  }

  .plan-card .row-1 {
    display: block;
    gap: unset;
    margin: 20px;
    padding-bottom: 20px;
  }

  .plan-card .badge {
    display: inline-block;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #00A29A;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 999px;
    margin-right: 14px;
    line-height: 1;
  }

  .plan-card .badge::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #00A29A;
  }

  .plan-card .badge span {
    font-size: 24px;
    color: #FFF67C;
  }

  .plan-card .label {
    font-weight: 700;
    color: #252525;
    border: 1px solid #252525;
    padding: 5px;
    margin-left: auto;
    border-radius: 5px;
  }

  .plan-card .date {
    margin-left: 10px;
    font-weight: 700;
    font-size: 30px;
    color: #00A29A;
  }

  .plan-card .row-2 {
    display: block;
    gap: unset;
  }

  .plan-card .type {
    font-weight: 700;
    font-size: 18px;
    padding: 5px 10px;
    background: #FFF67C;
    border-radius: 10px;
  }

  .plan-card .price {
    font-size: 20px;
    color: #252525;
  }

  .plan-card .price span {
    font-size: 50px;
    color: #e73b79;
    margin-right: unset;
  }

  .plan-card .row-3 p {
    margin: 0;
    color: #444;
    line-height: 1.7;
    font-size: 14px;
    text-align: left;
  }

  .plan-card .row-4 {
    margin-top: 12px;
  }

  .plan-btn {
    display: block;
    width: 70%;
    text-align: center;
    border: 1px solid #252525;
    border-radius: 30px;
    padding: 12px 16px;
    margin: 30px auto;
    font-weight: 700;
    color: #252525;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  }

  .plan-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 14px rgba(44, 90, 160, .25);
    background: #252525;
    color: #fff;
  }

   .plan-track {
    --track-gap: 1rem;
  }

  .plan-card {
    flex: 0 0 110%;
  }

  .plan-viewport {
    overflow: visible;
    padding: 0;
    margin-left:  -56px; /* 左矢印側へも重ねる */
    margin-right: -56px; /* 右矢印側へも重ねる */
  }
  .plan-card { flex: 0 0 100%; }
  .plan-prev, .plan-next { z-index: 2; }

    /* ===== Number ===== */
  .sec-number {
    position: relative;
    margin-top: -40px;
    padding-top: 20px;
  }

  .sec-number .ttl-container {
    gap: unset;
    margin: 60px 0 16px;
  }

  .sec-number .ttl-container::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 120px;
  }

  .sec-number .ttl-container img {
    width: 180px;
    margin: 0 auto;
  }

  .sec-number .ttl-container h2 {
    margin: 20px 0 40px;
    font-size: clamp(24px, 3vw, 36px);
  }

  .sec-number .ttl-container h2 span {
    color: #006AB7;
  }

 /* 1列・自動高さに切替 */
 /* === タブレット以下：2カラム（高さは画像に追従） === */
  .sec-number .num-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;   /* ← 固定高さを解除 */
    gap: 12px;
  }

  /* PC用の nth-child 配置を無効化して自然配置に */
  .sec-number .num-item {
    grid-column: auto / auto;
  }

  /* 画像は比率維持で縮むだけ（トリミングしない） */
  .sec-number .num-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: unset;
    box-shadow: unset;
  }
}

/* === スマホ：1カラム === */
@media (max-width: 600px) {
  .sec-number .num-grid {
    grid-template-columns: 1fr;
  }


  /* レイアウト配置 */
  .sec-number .num-item:nth-child(1) {
    grid-column: 1 / span 6;
  }

  .sec-number .num-item:nth-child(2) {
    grid-column: 7 / span 6;
  }

  .sec-number .num-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .sec-number .num-item:nth-child(4) {
    grid-column: 1 / span 4;
  }

  .sec-number .num-item:nth-child(5) {
    grid-column: 5 / span 4;
  }

  .sec-number .num-item:nth-child(6) {
    grid-column: 9 / span 4;
  }

  .sec-number .num-item:nth-child(7) {
    grid-column: 1 / span 4;
  }

  .sec-number .num-item:nth-child(8) {
    grid-column: 5 / span 4;
  }

  .sec-number .num-item:nth-child(9) {
    grid-column: 9 / span 4;
  }

  .sec-number .num-item:nth-child(10) {
    grid-column: 1 / span 4;
  }

  .sec-number .num-item:nth-child(11) {
    grid-column: 5 / span 8;
  }

  .sec-number .num-item:nth-child(12) {
    grid-column: 1 / span 8;
  }

  .sec-number .num-item:nth-child(13) {
    grid-column: 9 / span 4;
  }

  .sec-number .num-item:nth-child(14) {
    grid-column: 1 / span 4;
  }

  .sec-number .num-item:nth-child(15) {
    grid-column: 5 / span 8;
  }

    .sec-number .num-grid {
      grid-template-columns: 1fr;
      grid-auto-rows: 200px;
    }

    .sec-number .num-item {
      grid-column: 1 / -1;
    }

    /* ===== Reason ===== */
    .sec-reason .ttl-container p {
    text-align: left;
    line-height: 2;
    width: 90%;
    margin: 0 auto;
    }

    .reason-wrapper {
    margin-top: 30px;
    }

    .reason-content-wrap {
    display: block;
    gap: unset;
    margin-top: 80px;
    }

    .reason-content-wrap:nth-child(even) {
    flex-direction: unset;
    }

    .content-left {
    width: 100%;
    }

    .content-left img {
    width: 70px;
    }

    .reason-content-wrap .content-left h3 {
    margin: 10px 0;
    font-size: 28px;
    line-height: 2;
    }

    .content-left p {
    line-height: 2;
    }

    .content-right {
    width: 100%;
    margin-top: 20px;
    }

    .reason-content-wrap:nth-child(1) .content-right::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -30%;
    width: 60%;
    height: 60%;
    background: url(./img/reason-bg-p.png) center/contain no-repeat;
    z-index: -1;
    }

    .reason-content-wrap:nth-child(2) .content-right::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -30%;
    width: 60%;
    height: 60%;
    background: url(./img/reason-bg-y.png) center/contain no-repeat;
    z-index: -1;
    }

    .reason-content-wrap:nth-child(3) .content-right::before {
    content: "";
    position: absolute;
    bottom: -20%;
    right: -30%;
    width: 60%;
    height: 60%;
    background: url(./img/reason-bg-g.png) center/contain no-repeat;
    z-index: -1;
    }

    .reason-content-wrap:nth-child(4) .content-right::before {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -30%;
    width: 60%;
    height: 60%;
    background: url(./img/reason-bg-b.png) center/contain no-repeat;
    z-index: -1;
    }

    .content-right img {
    width: 100%;
    }

    /* セクションバリエーション */
    .sec-plan02 {
    position: relative;
    background: #C4E5E4;
    background-image: none;
    }

    .sec-plan02 .container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 160px;
    aspect-ratio: 3/4;
    background: url(./img/plan-woman.png) right bottom/contain no-repeat;
    z-index: 0;
    }

    .sec-contact02 {
    margin-top: -30px;
    }

    /* ===== Voice ===== */
  .sec-voice {
    background: url(./img/plan-bg.png) center/contain repeat;
  }

  .sec-voice .ttl-container {
    margin-top: 80px;
  }

  .sec-voice .ttl-container img {
    width: 320px;
    margin: 0 auto 20px;
  }

  .voice-wrapper {
    margin-top: 0;
  }

  .voice-content-wrap {
    margin-top: 30px;
  }

  .voice-ppl-info {
    display: flex;
    align-items: center;
    margin-top: -10px;
  }

  .voice-ppl-info img {
    width: 100px;
  }

  .voice-ppl-info p {
    margin-left: 20px;
    font-size: 16px;
    font-weight: 700;
  }

  /* ===== Message ===== */
  .sec-message .ttl-container {
    margin-top: 60px;
  }

  .sec-message .ttl-container img {
    width: 100px;
    margin: 0 auto 20px;
  }

  .messege-content-wrap {
    display: block;
    margin-top: 60px;
    gap: unset;
  }

  .messege-content-wrap .content-left {
    width: 100%;
  }

  
  .messege-content-wrap .content-left h3 {
    margin-top: 0;
    font-size: 24px;
    text-align: center;
  }
  
  .messege-content-wrap .content-left img {
    width: 50%;
    margin: 20px auto;
  }
  
  .messege-content-wrap .content-left img {
    width: 100%;
  }

  .messege-content-wrap .content-right {
    position: relative;
    width: unset;
  }

  .messege-content-wrap .content-left h3 + p + img {
    width: 50%;
    display: block;
    margin: 20px 0 0 auto;
  }

  .messege-content-wrap .content-right::after {
    content: "";
    position: absolute;
    bottom: -50%;
    right: -40%;
    width: 100%;
    height: 100%;
    background: url(./img/message-bg-y.png) center/contain no-repeat;
    z-index: -1;
  }

    /* ===== Instructor (slider) ===== */
  .sec-instructor {
    border-radius: 40px 40px 0 0;
    padding-bottom: 120px;
  }

  .sec-instructor .ttl-container {
    margin-top: 60px;
  }

  .sec-instructor .ttl-container img {
    width: 280px;
    margin: 0 auto 20px;
  }

  .instructor-slider {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
    margin-top: 30px;
  }

  .instr-nav {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    cursor: pointer;
  }

  .instr-nav:disabled {
    opacity: .4;
    cursor: default;
  }

  .instr-nav::before {
    content: "";
    position: relative;
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    top: 1px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
  }

  .instr-prev::before {
    transform: rotate(-135deg);
  }

  .instr-viewport {
    overflow: visible;          
    margin-left: -56px;   /* ← 左矢印側に潜り込む */
    margin-right: -56px;
    position: relative;
    padding: 0;
  }

  .instr-track {
    --track-gap: 2rem;
    display: flex;
    gap: var(--track-gap);
    will-change: transform;
    transition: transform .35s ease;
  }

  .instr-card {
    flex: 0 0 100%;;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    padding: 16px;
  }

  .instr-photo {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    margin: 0 0 12px 0;
  }

  .instr-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .instr-name-kanji {
    font-weight: 700;
    font-size: 24px;
  }

  .instr-name-kana {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .instr-license {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .instr-license .license-item {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    color: #00A29A;
    border: 1px solid #00A29A;
    border-radius: 6px;
    line-height: 1.4;
  }

  .instr-text {
    background: #ECECE3;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    line-height: 1.7;
    font-size: 14px;
  }

  .instr-prev, 
  .instr-next {
    position: relative;     /* 元のグリッド配置のまま位置をずらす */
    top: -30px;  
    z-index: 2;           /* 矢印がカードより上に */
  }

  @media (max-width: 768px) {
    .instr-track {
      --track-gap: 1rem;
    }

    .instr-card {
      flex: 0 0 calc((100% - var(--track-gap)) / 2);
    }
  }

  @media (max-width: 560px) {
    .instr-card {
      flex: 0 0 100%;
    }
  }

  /* ===== FAQ ===== */
.sec-faq {
  border-radius: 40px 40px 0 0;
  margin-top: -80px;
}

.sec-faq::after {
  content: "";
  position: absolute;
  background-image: url(./img/faq-bg-bike.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 40px;
  min-height: 40px;
  bottom: 0px;
  right: 0%;
}

.sec-faq .ttl-container {
  margin: 80px 0 60px;
}

.sec-faq .ttl-container img {
  width: 60px;
  margin: 0 auto 20px;
}

.sec-faq .ttl-container h2 {
  color: #fff;
}

.faq-item {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  margin: 12px 0;
  overflow: hidden;
}

.faq-a {
  background: #ECECE3;
  height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 20px;
  transition: height .35s ease, opacity .25s ease;
  will-change: height;
}

.faq-item.is-open .faq-a {
  padding: 10px 20px 20px;
}

.faq-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  text-align: left;
  padding: 30px 64px 30px 80px;
  font-size: 16px;
  font-weight: 700;
  color: #242424;
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-toggle::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: url("./img/faq-q.png") center/contain no-repeat;
}

.faq-toggle::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00A29A;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
}

.faq-item.is-open .faq-toggle::after {
  content: "−";
}

.faq-a p {
  margin: 0;
  padding: 10px 0 20px 60px;
  line-height: 1.8;
  color: #444;
  position: relative;
}

.faq-a p::before {
  content: "";
  position: absolute;
  left: 12px;
  top: .3em;
  width: 36px;
  height: 36px;
  background: url("./img/faq-a.png") center/contain no-repeat;
}

.faq-toggle:focus-visible {
  outline: 2px solid #006ab7;
}

/* ===== Access ===== */
.sec-access .ttl-container {
  margin-top: 30px;
}

.sec-access .ttl-container img {
  width: 80px;
  margin: 0 auto 20px;
}

.sec-access .ttl-container h2 {
  text-align: center;
}

.sec-access .container iframe {
  height: 300px;
  margin-top: 20px;
}

/* ===== Form ===== */
.sec-form {
  position: relative;
  background: #FFF67C;
  border-radius: 40px 40px 0 0;
  padding-top: 40px;
  z-index: 0;
}

.sec-form .ttl-container img {
  width: 240px;
  margin: 0 auto 40px;
}

.sec-form .ttl-container h2 {
  position: relative;
  z-index: 0;
  margin-top: 50px;
}

.sec-form .ttl-container h2::before {
  content: "";
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  white-space: nowrap;
}

.contact-info-wrapper {
  display: block;
  gap: unset;
  margin-top: 0px;
}

.contact-info-wrapper .contact-line-wrap,
.contact-info-wrapper .contact-tel-wrap {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;   /* ← containからcoverに変更 */
  min-height: auto;         /* ← 380px固定を外す */
  height: 100%;             /* ← 中身に合わせる */
  display: flex;            /* ← 中身を中央揃え */
  flex-direction: column;
  align-items: center;
  justify-content: center;  /* ← 縦方向も中央に */
  padding: 20px;       /* ← 上下左右の余白を適度に */
  margin-top: 40px;
}

.contact-info-wrapper .contact-line-wrap p,
.contact-info-wrapper .contact-tel-wrap p {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-top: 80px;
}

.contact-info-wrapper .contact-line-wrap a img,
.contact-info-wrapper .contact-tel-wrap a img {
  width: 80%;
  margin: 20px auto;
}

.contact-info-wrapper .contact-tel-wrap small {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.contact-form-wrapper {
  padding: 60px 30px 40px;
  margin-top: 60px;
  background: url(./img/form-bg.png) top/cover no-repeat;
}

.contact-form-wrapper h3 {
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  margin-top: 40px;
}

.contact-form-wrapper p {
  margin: 20px 0;
  text-align: left;
}

/* 入力レイアウト */
#contactForm {
  display: grid;
  gap: 12px;
  margin-top: 60px;
}

#contactForm {
  row-gap: 12px;
  column-gap: 4px;
}

.field-row {
  padding-top: 8px;
  padding-bottom: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 30% 65%;
  gap: 10px;
  align-items: start;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #222;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: #fff;
  line-height: 1.6;
}

.badge-required {
  background: #E73B79;
}

.badge-optional {
  background: #00A29A;
}

.field-input input:not([type="radio"]):not([type="checkbox"]),
.field-input select,
.field-input textarea {
  width: 100%;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #CFCFCF;
  border-radius: 8px;
  background: #fff;
  color: #222;
  display: block;
}

.field-input input:focus,
.field-input select:focus,
.field-input textarea:focus {
  outline: none;
  border-color: #006AB7;
  box-shadow: 0 0 0 3px rgba(0, 106, 183, .12);
}

.field-input.center.no-wrap {
  width: 60%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.radio input {
  accent-color: #00A29A;
}

#topic.field-input.center.no-wrap {
  margin: 0;
  justify-content: flex-start;
  text-align: left;
}

#topic .radio {
  margin-right: 16px;
}

.addr-vertical {
  display: grid;
  gap: 12px;
  justify-items: start;
  width: 100%;
}

.addr-vertical input,
.addr-vertical select,
.addr-vertical textarea {
  width: 100%;
}

.zip-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.zip-mark {
  font-weight: 700;
}

.zip-example {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

.addr1-wrap {
  display: grid;
  gap: 4px;
  width: 100%;
}

.addr-note {
  color: #666;
  font-size: 13px;
}

.note {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  color: #666;
  font-size: 13px;
}

.consent-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  text-align: center;
}

.consent-row .check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-submit {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 30px;
  border: 1px solid #252525;
  background: #fff;
  color: #252525;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn-submit:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 14px rgba(44, 90, 160, .25);
  background: #252525;
  color: #fff;
}

/* フォーム：スマホ縦積み */
@media (max-width: 768px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .field-input.center.no-wrap {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .note {
    text-align: left;
  }
}

/* ===== Footer ===== */
.footer-container {
  display: block;
  max-width: 90%;
  margin: 0 auto;
  padding: 30px 16px;
}

.footer-logo img {
  height: 140px;
  display: block;
  margin: 0 auto;
}

.footer-info {
  margin: 40px auto;
}

.footer-info p {
  margin: 5px 0;
  text-align: center;
}

.footer-info .school-name {
  font-size: 20px;
  font-weight: 700;
}

.ft-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.ft-sns img {
  width: 30px;
  height: 30px;
}

.footer-banner {
  display: flex;
  flex-direction: column;
}

.footer-banner img {
  width: 100%;
}

/* はみ出し防止 */
html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* はみ出しやすいセクションは横方向だけクリップ */
  .sec-mv,
  .chance-box,
  .sec-contact,
  .sec-faq,
  .sec-number,
  .instructor-slider,
  .plan-slider {
    overflow-x: hidden;
    position: relative; /* 疑似要素の基準 */
  }

  /* MVの飾り（左に出過ぎていた） */
  .sec-mv::after {
    left: -6%;
    width: 36%;
    height: auto;
    max-width: 40vw;
    aspect-ratio: 1 / 1;
    z-index: -1;
  }

  /* Chance の飾り（右に出過ぎていた） */
  .chance-box::after {
    right: -8%;
    width: 45vw;            /* 画面幅に依存させる */
    height: auto;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    z-index: -1;
  }

  /* Contact の人物イラストが右へ張り出すのを抑制 */
  .sec-contact::after {
    right: -12px;
    width: min(240px, 24vw);
    height: auto;
  }

  /* FAQ 背景の丸オブジェクト（左へ張り出し） */
  .sec-faq .container::after {
    left: -10%;
    width: min(300px, 50vw);
    height: auto;
  }

  /* スライダー系：ビューポート内にカードを収める */
  .plan-viewport,
  .instr-viewport {
    overflow-x: hidden;
    padding-inline: 8px;    /* 端でチラつかないよう少し内側に */
  }

  .plan-track,
  .instr-track {
    margin: 0;              /* 予期せぬ外側余白を消す */
  }

  .plan-card,
  .instr-card {
    min-width: 0;           /* flex項目のはみ出し抑制（長い文言対策） */
  }

  /* SPフッターやヘッダーのアイコン群も安全側に */
  .sp-only.nav-menu {
    overflow-x: hidden;
    margin: 0;
    padding-inline: 8px;
  }

  .sp-only.nav-menu li img {
    max-width: 100%;
    height: 44px;           /* 必要に応じて 48～56px へ */
    display: block;
  }

  /* プライバシーポリシー Styles */


    .privacy-content h4 {
    font-size: 20px;
    margin-top: 0;
    }

    .privacy-contact {
    padding: 10px;
    border-radius: 10px;
    background: #e1e1e1;
    }

}
