/* SP Styles */
@media (max-width: 1024px) {
  body.drawer-open {
    overflow: hidden;
  }

  .main {
    padding-top: 60px;
  }

  .section-title__en {
    font-size: 20px;
  }

  .section-title__ja {
    font-size: 24px;
  }

  .section-title__ja span {
    font-size: 20px;
  }

  .header {
    padding: 0 20px;
  }

  .header__inner {
    height: 60px;
  }

  .header__logo img {
    width: 93%;
  }

  .header__nav,
  .header__contact-btn {
    display: none;
  }

  .header__hamburger {
    position: relative;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1500;
  }

  .header__hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header__hamburger span:nth-child(1) {
    top: 0;
  }
  .header__hamburger span:nth-child(2) {
    top: 11px;
  }
  .header__hamburger span:nth-child(3) {
    top: 22px;
  }
  .header__hamburger.is-open span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
    background: #153c7f;
  }
  .header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .header__hamburger.is-open span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
    background: #153c7f;
  }

  .header__drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transition: right 0.5s ease-in-out;
    z-index: 1400;
    padding: 80px 40px;
    gap: 40px;
    max-width: 500px;
    margin-inline: auto;
  }

  .header__drawer.is-open {
    right: 0;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
  }

  .header__drawer-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .header__drawer-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }

  .header__drawer-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .header__drawer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-white);
    padding: 20px 0;
  }

  .header__drawer-en {
    font-family: var(--font-josefin-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .header__drawer-ja {
    font-size: 20px;
    font-weight: 500;
  }

  .header__drawer-cta {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .header__drawer-cta-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background-color: var(--color-white);
    padding: 16px;
    width: 100%;
    justify-content: center;
  }

  .header__drawer-cta-en {
    font-family: var(--font-josefin-sans);
    font-size: 16px;
    letter-spacing: 0.2em;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 6px 16px 2px;
    line-height: 1;
  }

  .header__drawer-cta-ja {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-primary);
  }

  .fv {
    height: 483px;
    padding-left: 0;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .fv__content {
    gap: 40px;
    padding: 0;
    align-items: center;
  }

  .fv__title-en {
    font-size: 36px;
  }

  .fv__title-ja {
    font-size: 18px;
    font-weight: 600;
  }

  .fv__company-name {
    font-size: 28px;
  }

  .fv__contact-btn {
    width: 100%;
    max-width: 348px;
    height: 56px;
    font-size: 16px;
  }

  .service-card__title {
    font-size: 20px;
  }

  .service-card__icon {
    width: 30px;
    height: 30px;
  }

  .service-card__text,
  .service-card__list-item a {
    font-size: 14px;
  }

  .about__container,
  .service__inner,
  .creator__inner,
  .cta__inner,
  .company__inner {
    max-width: 460px;
  }

  .service__inner,
  .creator__inner,
  .cta__inner,
  .works__inner,
  .company__inner {
    gap: 40px;
  }

  .cta-button {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .main {
    padding-top: 60px;
  }

  /* FV */
  .fv {
    height: 483px;
    padding-left: 0;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .fv__content {
    gap: 40px;
    width: fit-content;
  }

  .fv__title-en {
    font-size: 36px;
  }

  .fv__title-ja {
    font-size: 18px;
    font-weight: 600;
  }

  .fv__company-name {
    font-size: 28px;
  }

  .fv__contact-btn {
    width: 100%;
    max-width: 348px;
    height: 56px;
    font-size: 16px;
  }

  /* About */
  .about {
    padding: 40px 20px;
  }

  .about__container {
    padding: 16px;
    background-color: rgba(21, 60, 127, 0.3);
  }

  .about__content {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .about__title-group {
    padding-right: 0;
    border-right: none;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-primary);
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about__title-group .section-title {
    width: fit-content;
  }

  .about__title-group .section-title__ja {
    letter-spacing: 0.05em;
  }

  .about__read-more {
    padding-left: 0;
    justify-content: center;
  }

  #about-modal .modal__content {
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
    padding: 20px;
  }

  /* Service */
  .service {
    padding: 64px 20px;
  }

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

  .section-title__en {
    font-size: 20px;
  }

  .section-title__ja {
    font-size: 24px;
  }

  .service-card__title {
    font-size: 20px;
  }

  .service-card__icon {
    width: 30px;
    height: 30px;
  }

  /* Creator */
  .creator {
    padding: 64px 20px;
  }

  .creator__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .creator-card__header {
    gap: 16px;
  }

  .creator-card__img {
    width: 130px;
    height: 130px;
  }

  .creator-card__name {
    font-size: 20px;
  }

  .creator-card__job {
    font-size: 16px;
  }

  .creator-card__works {
    gap: 16px;
  }

  /* Works */

  .works__inner {
    padding: 40px 5% 40px 40px;
  }

  .works-card__title {
    font-size: 20px;
  }

  /* Company */
  .company {
    padding: 64px 20px;
  }

  .company__list-row {
    border-bottom: none;
    flex-direction: column;
  }

  .company__list-term {
    width: 100%;
    padding: 12px;
  }

  .company__list-desc {
    padding: 24px;
    background-color: var(--color-white);
  }

  /* CTA */
  .cta {
    padding: 64px 20px;
  }

  .cta__title-group {
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta__text {
    text-align: left;
  }

  .cta__text br {
    display: block;
  }

  .cta__buttons {
    flex-direction: column;
    gap: 24px;
    background-color: transparent;
    padding: 0;
  }

  .cta-button {
    border-right: none;
    background-color: var(--color-white);
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .works__inner {
    max-width: 460px;
  }

  .works__grid {
    flex-direction: column;
    gap: 24px;
  }

  .works-card__img {
    width: 100%;
    height: auto;
  }

  #loading video {
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: block;
  }
}
