/* ==========================================================================
   Public Pages CSS (ログイン不要ページ用)
   - Hero, Clients, CTA, Assignment, About, Program, Contact, 404
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
   .hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    /* Fallback */
    background: url("../images/hero-bg.webp") 65% 31% / cover no-repeat,
      var(--gradient-hero);
    /* WebKit prefix for Safari */
    background: -webkit-image-set(
          url("../images/hero-bg.webp") 1x,
          url("../images/hero-bg@2x.webp") 2x,
          url("../images/hero-bg@3x.webp") 3x
        )
        62% 31% / cover no-repeat,
      var(--gradient-hero);
    /* Standard syntax */
    background: image-set(
          url("../images/hero-bg.webp") 1x,
          url("../images/hero-bg@2x.webp") 2x,
          url("../images/hero-bg@3x.webp") 3x
        )
        62% 31% / cover no-repeat,
      var(--gradient-hero);
  }
  
  .hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    height: 100%;
    padding: 35px 45px;
  }
  
  .hero__content > *:first-child {
    align-self: center;
  }
  
  .hero__images {
    align-self: flex-end;
  }
  
  .hero__badges {
    display: flex;
    gap: 27px;
    margin-bottom: 16px;
  }
  
  .hero__badge {
    position: relative;
    width: 243px;
    height: 103px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    container-type: inline-size;
  }
  
  .hero__badge-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .hero__badge-content {
    position: relative;
    z-index: 1;
    color: var(--color-accent);
  }
  
  .hero__badge-title {
    font-size: 6.6cqi;
    font-weight: 700;
    line-height: 1.2;
  }
  
  .hero__badge-value {
    font-size: 15cqi;
    font-weight: 700;
    line-height: 1.2;
  }
  
  .hero__badge-unit {
    font-size: 10cqi;
    font-weight: 700;
    line-height: 1;
  }
  
  .hero__badge-value-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
  }
  
  .hero__badge-number {
    height: 15cqi;
    width: auto;
  }
  
  .hero__title {
    font-family: var(--font-primary);
    font-size: 64px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.4;
    letter-spacing: -0.3125px;
    margin-bottom: 10px;
  }
  
  .hero__subtitle {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.4;
    letter-spacing: -0.3125px;
    margin-bottom: 32px;
  }
  
  .hero__actions {
    display: flex;
    gap: 20px;
    container-type: inline-size;
  }
  
  .hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 50cqi;
    height: 10.4cqi;
    border-radius: var(--radius-full);
    container-type: inline-size;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3125px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .hero__btn--secondary {
    background: var(--color-white);
    color: var(--color-primary);
  }
  
  .hero__btn--secondary span {
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero__btn--primary {
    background: var(--gradient-button);
    color: var(--color-white);
  }
  
  .hero__btn img {
    width: 6cqi;
    height: 6cqi;
  }
  
  .hero__btn--primary span,
  .hero__btn--secondary span {
    font-size: 5.9cqi;
  }
  
  .hero__images {
    align-self: flex-end;
    margin-right: 35px;
    container-type: inline-size;
    width: 515px;
  }
  
  .hero__images-label {
    font-size: 4cqi;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 10px;
  }
  
  .hero__images-wrapper {
    position: relative;
    width: 100%;
    height: 217px;
  }
  
  .hero__image {
    position: absolute;
    border: 3px solid var(--color-white);
    width: 308px;
    height: 173px;
    object-fit: cover;
  }
  
  .hero__image:first-child {
    bottom: 0;
    left: 0;
    z-index: 1;
  }
  
  .hero__image:last-child {
    top: 0;
    right: 0;
    z-index: 2;
  }
  
  /* ==========================================================================
     Section Title (Common)
     ========================================================================== */
  .section-title {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .section-title__en {
    font-family: var(--font-mincho);
    font-size: 72px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.5;
  }
  
  .section-title__en--white {
    color: var(--color-white);
  }
  
  .section-title__ja {
    font-family: var(--font-gothic);
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 2;
    margin-top: -15px;
  }
  
  .section-title__ja--white {
    color: var(--color-white);
  }
  
  /* ==========================================================================
     Clients Section
     ========================================================================== */
  .clients {
    padding: 67px 0 65px;
    background: var(--color-white);
    overflow: hidden;
  }
  
  .clients__marquee {
    width: 100%;
    overflow: hidden;
  }
  
  .clients__marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
  }
  
  .clients__logos-image {
    flex-shrink: 0;
    width: 1413px;
    max-width: unset;
    object-fit: contain;
  }
  
  @keyframes marquee {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(-1413px, 0, 0);
    }
  }
  
  /* ==========================================================================
     CTA Section
     ========================================================================== */
  .cta-section {
    position: relative;
    padding: 143px 0 113px;
    /* Fallback */
    background: url("../images/cta-bg.webp") center / cover no-repeat;
    /* WebKit prefix for Safari */
    background: -webkit-image-set(
        url("../images/cta-bg.webp") 1x,
        url("../images/cta-bg@2x.webp") 2x,
        url("../images/cta-bg@3x.webp") 3x
      )
      center / cover no-repeat;
    /* Standard syntax */
    background: image-set(
        url("../images/cta-bg.webp") 1x,
        url("../images/cta-bg@2x.webp") 2x,
        url("../images/cta-bg@3x.webp") 3x
      )
      center / cover no-repeat;
  }
  
  .cta-section__title {
    font-family: var(--font-gothic);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 50px;
  }
  
  .cta-section__content {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 0 auto;
  }
  
  .cta-section__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
  
  .cta-section__images {
    position: relative;
    width: 420px;
    height: 260px;
    margin-bottom: 54px;
  }
  
  .cta-section__image {
    position: absolute;
    width: 334px;
    height: 188px;
    object-fit: cover;
  }
  
  .cta-section__image:first-child {
    top: 0;
    right: 0;
    z-index: 1;
  }
  
  .cta-section__image:last-child {
    top: 70px;
    left: 0;
    z-index: 2;
  }
  
  .cta-section__right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .cta-section__cards {
    position: relative;
    width: 400px;
    height: 320px;
    margin-bottom: 10px;
  }
  
  .cta-section__card {
    position: absolute;
    width: 252px;
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 22px;
  }
  
  .cta-section__card:first-child {
    bottom: 0;
    left: 0;
    z-index: 1;
  }
  
  .cta-section__card:last-child {
    top: 0;
    right: 0;
    z-index: 2;
  }
  
  .cta-section__card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .cta-section__card-text {
    position: relative;
    z-index: 1;
    font-family: var(--font-gothic);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
  }
  
  .cta-section__card-quote {
    position: absolute;
    width: 18px;
    height: 16px;
  }
  
  .cta-section__card-quote--open {
    top: 22px;
    left: 13px;
  }
  
  .cta-section__card-quote--close {
    bottom: 45px;
    right: 17px;
  }
  
  .cta-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 338px;
    height: 70px;
    border-radius: var(--radius-full);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3125px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .cta-section__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .cta-section__btn--secondary {
    background: var(--color-white);
    color: var(--color-primary);
  }
  
  .cta-section__btn--secondary span {
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .cta-section__btn--primary {
    background: var(--gradient-button);
    color: var(--color-white);
  }
  
  /* ==========================================================================
     Assignment Section
     ========================================================================== */
  .assignment {
    padding: 96px 0 120px;
    background: var(--gradient-assignment);
  }
  
  .assignment__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: calc(395px * 3 + 24px * 2 + 40px);
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .assignment__card {
    width: 395px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: 246px;
  }
  
  .assignment__card-icon {
    width: 48px;
    height: 48px;
    background: rgba(28, 42, 116, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }
  
  .assignment__card-icon img {
    width: 24px;
    height: 24px;
  }
  
  .assignment__card-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1.5;
    letter-spacing: -0.3125px;
    margin-bottom: 12px;
  }
  
  .assignment__card-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.5;
    letter-spacing: -0.3125px;
  }
  
  /* ==========================================================================
     About Section (NSJAPAN)
     ========================================================================== */
  .about {
    background: var(--gradient-section);
  }
  
  .about__badge {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: -1px;
  }
  
  .about__badge img {
    height: 60px;
  }
  
  .about__content {
    display: flex;
    gap: 35px;
    max-width: 922px;
    margin: 0 auto;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 31px 32px;
  }
  
  .about__image {
    flex-shrink: 0;
    width: 356px;
    height: 235px;
    border-radius: var(--radius-sm);
    object-fit: cover;
  }
  
  .about__text-content {
    color: var(--color-white);
    height: fit-content;
    align-self: center;
  }
  
  .about__title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .about__text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    margin-right: 15px;
  }
  
  /* ==========================================================================
     Program Section
     ========================================================================== */
  .program {
    padding: 95px 0;
    background: var(--gradient-section);
  }
  
  .program__list {
  max-width: 1200px;
    margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  }
  
.program__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
    font-family: var(--font-gothic);
    font-weight: 700;
  color: var(--color-primary);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  }
  
.program__card-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.program__card-category {
  font-size: 12px;
  color: #ffffff;
  background: #1c2a74;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  width: fit-content;
}

.program__card-title {
  font-size: 14px;
  line-height: 1.6;
  color: #222222;
  }

.program__group {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.program__group:first-child {
  margin-top: 0;
}

.program__group-title {
  font-family: var(--font-gothic);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
}
  
  /* ==========================================================================
     Contact Section
     ========================================================================== */
  .contact {
    padding: 88px 0 100px;
    background: var(--color-gray);
  }
  
  .contact__form {
    max-width: 640px;
    margin: 0 auto;
  }
  
  .contact__field {
    margin-bottom: 32px;
  }
  
  .contact__label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .contact__required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 16px;
    background: var(--color-primary);
    font-size: 10px;
    color: var(--color-white);
  }
  
  .contact__label {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.5;
  }
  
  .contact__input,
  .contact__textarea {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .contact__input {
    height: 46px;
  }
  
  .contact__textarea {
    height: 240px;
    resize: vertical;
  }
  
  .contact__input:focus,
  .contact__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
  }
  
  .contact__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .contact__checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
  }
  
  .contact__checkbox-input {
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-border-light);
    background: var(--color-white);
    cursor: pointer;
  }
  
  .contact__checkbox-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
  }
  
  .contact__submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
  }
  
  .contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 36px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    transition: background 0.3s ease, transform 0.3s ease;
  }
  
  .contact__submit:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
  }
  
  /* Contact Form 7 Integration */
  .contact .wpcf7 {
    max-width: 640px;
    margin: 0 auto;
  }
  
  .contact .wpcf7-form-control-wrap {
    display: block;
  }
  
  .contact .wpcf7-form-control-wrap input[type="text"],
  .contact .wpcf7-form-control-wrap input[type="email"],
  .contact .wpcf7-form-control-wrap input[type="tel"] {
    width: 100%;
    height: 46px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .contact .wpcf7-form-control-wrap textarea {
    width: 100%;
    height: 240px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    padding: 12px 16px;
    font-size: 16px;
    resize: vertical;
  }
  
  .contact .wpcf7-form-control-wrap input:focus,
  .contact .wpcf7-form-control-wrap textarea:focus {
    outline: none;
    border-color: var(--color-primary);
  }
  
  .contact .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .contact .wpcf7-checkbox .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
  }
  
  .contact .wpcf7-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-border-light);
    background: var(--color-white);
    cursor: pointer;
  }
  
  .contact .wpcf7-checkbox .wpcf7-list-item > label {
    display: contents;
  }
  
  .contact .wpcf7-checkbox .wpcf7-list-item-label {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
  }
  
  .contact__submit-wrapper > p {
    width: 248px;
    height: 52px;
  }
  
  .contact .wpcf7-submit {
    background: var(--color-primary);
    border: none;
    border-radius: 36px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  
  .contact .wpcf7-submit:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
  }
  
  .contact .wpcf7-spinner {
    display: none;
  }
  
  .contact .wpcf7-form.submitting .wpcf7-submit {
    opacity: 0.6;
    pointer-events: none;
  }
  
  .contact .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 16px;
    border-radius: 4px;
  }
  
  /* ==========================================================================
     404 Page
     ========================================================================== */
  .btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-gothic);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #1c2a74;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }
  
  .btn-back:hover {
    opacity: 0.8;
  }
  
  /* ==========================================================================
     Page Template (固定ページ共通)
     ========================================================================== */
  .page-main {
    position: relative;
    background: #f9f9f9;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .page-hero {
    position: relative;
    padding: 190px 120px 66px;
  }
  
  .page-hero__decoration {
    position: absolute;
    top: -17px;
    right: 0px;
    width: 703px;
    height: auto;
  }
  
  .page-hero__title-en {
    font-family: var(--font-primary);
    font-size: 72px;
    font-weight: 500;
    color: #1c2a74;
    line-height: 1.5;
  }
  
  .page-hero__title-ja {
    font-family: var(--font-primary);
    font-size: 14px;
    color: #222;
    line-height: 2;
    margin-top: -10px;
  }
  
  .page-content {
    padding: 80px 0 100px;
  }
  
  .page-content__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .page-content__inner h2 {
    font-family: var(--font-gothic);
    font-size: 24px;
    font-weight: 700;
    color: #1c2a74;
    line-height: 1.2;
    margin: 40px 0 32px;
  }
  
  .page-content__inner h3 {
    font-family: var(--font-gothic);
    font-size: 20px;
    font-weight: 700;
    color: #1c2a74;
    line-height: 1.3;
    margin: 32px 0 20px;
  }
  
  .page-content__inner ul {
    margin: 20px 0;
    padding-left: 1.5em;
  }
  
  .page-content__inner ul li {
    font-family: var(--font-gothic);
    font-size: 16px;
    font-weight: 700;
    color: #1c2a74;
    line-height: 1.8;
    list-style: disc;
  }
  
  .page-content__inner p {
    font-family: var(--font-gothic);
    font-size: 16px;
    font-weight: 700;
    color: #1c2a74;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  /* ==========================================================================
     Course Detail Page
     ========================================================================== */
  .detail-main {
    background: #f9f9f9;
    padding-top: 0;
  }

  .detail-hero {
    position: relative;
    padding: 80px 0 90px;
    color: var(--color-white);
    background: url("https://sales.ns-japan.com/wp-content/uploads/2026/02/Group-28217-scaled.png")
        center / cover no-repeat,
      var(--gradient-hero);
  }

  .detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
  }

  .detail-hero__card {
    position: relative;
    z-index: 1;
    background: var(--color-white);
    color: var(--color-text);
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 56px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  }

  .detail-hero__eyebrow {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
  }

  .detail-hero__title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .detail-hero__lead {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
  }

  .detail-hero__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
  }

  .detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 56px;
    padding: 0 28px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  }

  .detail-btn--primary {
    background: var(--gradient-button);
    color: var(--color-white);
  }

  .detail-btn--secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
  }

  .detail-sidebar {
    position: fixed;
    right: 24px;
    top: 36%;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .detail-sidebar__item {
    width: 76px;
    padding: 12px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px 0 0 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: -2px 3px 10px rgba(0, 0, 0, 0.08);
  }

  .detail-sidebar__item--primary {
    background: var(--gradient-button);
    border: none;
    color: var(--color-white);
  }

  .detail-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  }

  .detail-float__link {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .detail-float__image {
    display: block;
    width: 280px;
    height: auto;
  }

  .detail-float__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .detail-float__close img {
    width: 100%;
    height: 100%;
    display: block;
  }

  .detail-float.is-hidden {
    display: none;
  }

  .detail-service {
    padding: 80px 0;
    background: var(--color-white);
  }

  .detail-service__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .detail-service__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
  }

  .detail-service__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: rgba(28, 42, 116, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .detail-service__icon img {
    width: 32px;
    height: 32px;
  }

  .detail-service__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .detail-service__text {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: left;
    line-height: 1.7;
  }

  .detail-toc {
    background: var(--color-gray-light);
    padding: 20px 0;
  }

  .detail-toc__list {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
  }

  .detail-toc__list a {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
  }

  .detail-toc__list a:hover,
  .detail-toc__list a.is-active {
    color: var(--color-primary);
    border-color: var(--color-primary);
  }

  .detail-section {
    padding: 80px 0;
    background: var(--color-white);
  }

  .detail-section--alt {
    background: #f9f9f9;
  }

  .detail-section__heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    border-left: 5px solid var(--color-primary-light);
    padding-left: 16px;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .detail-section__text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
  }

  .detail-section__subheading {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
  }

  .detail-issues {
    background: var(--color-gray);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 12px;
  }

  .detail-issues li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--color-text);
    font-size: 14px;
  }

  .detail-issues li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 700;
  }

  .detail-mid-cta {
    margin-top: 32px;
    text-align: center;
  }

  .detail-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  }

  .detail-table th,
  .detail-table td {
    border: 1px solid var(--color-border);
    padding: 20px;
    vertical-align: top;
  }

  .detail-table th {
    width: 28%;
    background: #f3f6ff;
    font-size: 14px;
    color: var(--color-primary);
  }

  .detail-table td ul {
    padding-left: 1.2em;
  }

  .detail-table td li {
    list-style: disc;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 6px;
  }

  .detail-faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .detail-faq__item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--color-border);
  }

  .detail-faq__question {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
  }

  .detail-faq__answer {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
  }

  .detail-price {
    text-align: center;
  }

  .detail-price__box {
    display: inline-block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 40px;
    max-width: 640px;
  }

  .detail-price__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
  }

  .detail-price__amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
  }

  .detail-price__note {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
    line-height: 1.6;
  }

  .detail-cta {
    position: relative;
    padding: 90px 0;
    color: var(--color-white);
    background: url("../images/cta-bg.webp") center / cover no-repeat;
  }

  .detail-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
  }

  .detail-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
  }

  .detail-cta__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
  }

  .detail-cta__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .detail-cta__cards {
    display: flex;
    gap: 16px;
  }

  .detail-cta__card {
    background: var(--color-white);
    color: var(--color-text);
    padding: 16px;
    border-radius: var(--radius-md);
    width: 170px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
  }

  .detail-contact {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 70px 0;
  }

  .detail-contact__inner {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
  }

  .detail-contact__text {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.8;
  }

  .detail-contact__btn {
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    padding: 14px 36px;
    font-weight: 700;
    white-space: nowrap;
  }

  .detail-about {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 90px 0;
  }

  .detail-about__inner {
    display: flex;
    gap: 48px;
    align-items: center;
  }

  .detail-about__image {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  }

  .detail-about__img {
    width: 100%;
    height: auto;
    display: block;
  }

  .detail-about__content {
    flex: 1;
  }

  .detail-about__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .detail-about__text {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 24px;
  }

  .detail-about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .detail-about__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* ==========================================================================
     Responsive - Large Tablet (1350px)
     ========================================================================== */
  @media screen and (max-width: 1350px) {
    .hero__content {
      flex-direction: column;
      align-items: flex-start;
      min-height: auto;
      justify-content: flex-end;
      gap: 10px;
    }
  
    .hero__images {
      align-self: center;
      margin-top: 40px;
      margin-right: 0;
    }
  }
  
  /* ==========================================================================
     Responsive - Tablet (1024px)
     ========================================================================== */
  @media screen and (max-width: 1024px) {
    .clients__logos-image {
      width: 974px;
      height: auto;
    }
    @keyframes marquee {
      0% {
        transform: translate3d(0, 0, 0);
      }
      100% {
        transform: translate3d(-974px, 0, 0);
      }
    }
  
    .section-title__en {
      font-size: 48px;
    }
  
    .cta-section__title {
      font-size: 24px;
      padding: 0 20px;
    }
  
    .cta-section__content {
      flex-direction: column;
      align-items: center;
      gap: 40px;
      padding: 0 20px;
    }
  
    .cta-section__images {
      flex-direction: column;
      align-items: center;
    }
  
    .cta-section__image {
      width: 100%;
      max-width: 334px;
    }
  
    .assignment__cards {
      padding: 0 30px;
    }
  
    .assignment__card {
      width: calc(50% - 12px);
      min-height: 280px;
    }
  
    .about__content {
      flex-direction: column;
      margin: 0 30px;
    }
  
    .about__image {
      width: 100%;
      height: auto;
      aspect-ratio: 356 / 235;
    }
  
    .about__title {
      font-size: 28px;
    }
  
    .program {
      padding: 60px 20px;
    }
  
  .program__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    }
  
    .contact {
      padding: 60px 20px;
    }
  
    .contact__form {
      max-width: 100%;
    }
  
    /* Page Template */
    .page-hero {
      padding: 80px 60px 40px;
    }
  
    .page-hero__decoration {
      width: 600px;
      right: -120px;
    }
  
    .page-hero__title-en {
      font-size: 56px;
    }
  }
  
  /* ==========================================================================
     Responsive - Mobile (767px)
     ========================================================================== */
  @media screen and (max-width: 767px) {
    .hero {
      min-height: auto;
    }
  
    .hero__content {
      padding: 60px 16px;
      justify-content: flex-end;
      gap: 10px;
    }
  
    .hero__badges {
      flex-direction: row;
      gap: 10px;
    }
  
    .hero__badge {
      width: 150px;
      height: 63px;
    }
  
    .hero__actions {
      flex-direction: row;
      gap: 10px;
    }
  
    .hero__btn {
      width: auto;
      flex: 1;
      padding: 0 12px;
    }
  
    .hero__title {
      font-size: clamp(31px, 9.2cqi, 55px);
    }
  
    .hero__subtitle {
      font-size: clamp(10px, 3cqi, 18px);
    }
  
    .hero__images {
      width: 400px;
      max-width: 100%;
    }
  
    .hero__images-wrapper {
      height: auto;
      aspect-ratio: 400 / 180;
    }
  
    .hero__image {
      width: 60%;
      height: auto;
      aspect-ratio: 240 / 135;
    }
  
    .section-title__en {
      font-size: 36px;
    }
  
    .section-title__ja {
      font-size: 12px;
    }
  
    .clients {
      padding: 40px 0;
    }
  
    .clients__slider {
      gap: 20px;
    }
  
    .clients__logo {
      height: 40px;
    }
  
    .cta-section {
      padding: 60px 0;
    }
  
    .cta-section__title {
      font-size: 20px;
      line-height: 1.5;
    }
  
    .cta-section__btn {
      width: 100%;
      max-width: 280px;
      height: 56px;
      font-size: 16px;
    }
  
    .cta-section__images {
      max-width: 420px;
      width: 100%;
      height: auto;
      aspect-ratio: 420 / 260;
    }
  
    .cta-section__image {
      width: 80%;
      height: auto;
      aspect-ratio: 334 / 188;
    }
  
    .cta-section__cards {
      max-width: 400px;
      width: 100%;
      height: auto;
      aspect-ratio: 400 / 320;
    }
  
    .cta-section__card {
      width: 63%;
      height: auto;
      aspect-ratio: 252 / 185;
      container-type: inline-size;
    }
  
    .cta-section__card-text {
      font-size: clamp(12px, 9cqi, 20px);
    }
  
    .cta-section__card-quote {
      width: clamp(12px, 7cqi, 18px);
      height: clamp(10px, 6cqi, 16px);
    }
  
    .cta-section__card-quote--open {
      top: clamp(14px, 9cqi, 22px);
      left: clamp(8px, 5cqi, 13px);
    }
  
    .cta-section__card-quote--close {
      bottom: clamp(28px, 18cqi, 45px);
      right: clamp(10px, 7cqi, 17px);
    }
  
    .cta-section__left,
    .cta-section__right {
      width: 100%;
    }
  
    .assignment {
      padding: 60px 0;
    }
  
    .assignment__cards {
      padding: 0 20px;
    }
  
    .assignment__card {
      width: 100%;
      padding: 24px;
      min-height: auto;
    }
  
    .assignment__card-title {
      font-size: 14px;
    }
  
    .assignment__card-text {
      font-size: 14px;
    }
  
    .about {
      padding: 0 0 40px;
    }
  
    .about__content {
      margin: 0 20px;
      padding: 24px;
    }
  
    .about__title {
      font-size: 22px;
    }
  
    .about__text {
      font-size: 14px;
    }
  
    .program {
      padding: 40px 20px;
    }
  
  .program__list {
    grid-template-columns: 1fr;
    gap: 16px;
    }
  
    .contact {
      padding: 40px 20px;
    }
  
    .contact__field {
      margin-bottom: 24px;
    }
  
    .contact__label {
      font-size: 14px;
    }
  
    .contact__checkbox-text {
      font-size: 14px;
    }
  
    .contact__submit {
      width: 100%;
      max-width: 248px;
    }
  
    /* Page Template */
    .page-hero {
      padding: 60px 20px 30px;
    }
  
    .page-hero__decoration {
      width: 400px;
      right: -100px;
      top: -10px;
    }
  
    .page-hero__title-en {
      font-size: 36px;
    }
  
    .page-content {
      padding: 0 0 60px;
    }
  
    .page-content__inner h2 {
      font-size: 20px;
      margin: 30px 0 15px;
    }
  
    .page-content__inner p {
      font-size: 14px;
    }
  }
  
  /* ==========================================================================
     Utility Classes
     ========================================================================== */
  
  /* スマホのみ表示（767px以下） */
  .sp-only {
    display: none !important;
  }
  
  @media screen and (max-width: 767px) {
    .sp-only {
      display: block !important;
    }
  }
  
  /* PCのみ表示（768px以上） */
  .pc-only {
    display: block !important;
  }
  
  @media screen and (max-width: 767px) {
    .pc-only {
      display: none !important;
    }
  }

  /* ==========================================================================
     Course Detail Page - Responsive
     ========================================================================== */
  @media screen and (max-width: 1024px) {
    .detail-service__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-cta__inner,
    .detail-contact__inner {
      flex-direction: column;
      text-align: center;
    }

    .detail-about__inner {
      flex-direction: column;
      text-align: center;
    }

    .detail-about__image,
    .detail-about__content {
      width: 100%;
    }

    .detail-float {
      display: none;
    }
  }

  @media screen and (max-width: 767px) {
    .detail-main {
      padding-top: 0;
    }

    .detail-hero {
      padding: 60px 0 70px;
    }

    .detail-hero__card {
      padding: 28px 20px;
    }

    .detail-hero__title {
      font-size: 22px;
    }

    .detail-hero__actions {
      flex-direction: column;
      gap: 12px;
    }

    .detail-btn {
      width: 100%;
      max-width: 280px;
    }

    .detail-sidebar {
      display: none;
    }

    .detail-service__grid {
      grid-template-columns: 1fr;
    }

    .detail-toc__list {
      gap: 16px;
    }

    .detail-section {
      padding: 60px 0;
    }

    .detail-table,
    .detail-table tbody,
    .detail-table tr,
    .detail-table th,
    .detail-table td {
      display: block;
      width: 100%;
    }

    .detail-table tr {
      margin-bottom: 16px;
    }

    .detail-table th {
      width: 100%;
    }

    .detail-cta__cards {
      display: none;
    }
  }
  