/* ****************************** */
/* Below 1344px (Smaller desktops) */
/* ****************************** */

@media (max-width: 1344px) {
  .hero {
    max-width: 120rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }
}

/* ****************************** */
/* Below 1200px (Landscape Tablets) */
/* ****************************** */

@media (max-width: 1200px) {
  html {
    font-size: 56%;
  }

  .grid {
    column-gap: 4.8rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
    row-gap: 6.4rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }

  .header {
    padding: 0 3.2rem;
  }

  .main-nav-list {
    gap: 2.8rem;
  }

  .hero {
    gap: 4.8rem;
  }
}

/**************************  */
/* Below 944px */
/**************************  */

@media (max-width: 944px) {
  html {
    font-size: 54%;
  }

  .section-hero {
    height: auto;
    background-image: linear-gradient(
        to right bottom,
        rgb(135, 206, 235, 0.85),
        rgb(216, 245, 251, 0.9)
      ),
      url(../images/main/hero-1200w.jpg);
    background-position: center top;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 4rem;
    gap: 4.5rem;
  }

  .hero-description {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }

  .hero-img-box {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    height: auto;
  }

  .composition-photo {
    position: relative;
    width: 33.33333%;
    z-index: 1;
    left: 0;
    top: 0;
  }

  .composition-photo--p1 {
    z-index: 2;
    transform: translateX(5%) translateY(1rem);
  }

  .composition-photo--p2 {
    z-index: 3;
    transform: translateY(-1rem);
  }

  .composition-photo--p3 {
    z-index: 2;
    transform: translateX(-5%) translateY(0.5rem);
  }

  .heading-primary span {
    justify-content: center;
  }

  .btns {
    justify-content: center;
  }

  /* Mobile Navigation */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    transform: translateX(100%);
    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    margin-top: -15rem;

    opacity: 0;
    pointer-events: none;
    visibility: none;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name='close-outline'] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name='menu-outline'] {
    display: none;
  }

  .nav-open .main-nav-list {
    flex-direction: column;
    align-items: center;
    gap: 7.2rem;
  }

  .nav-open .main-nav-link:link,
  .nav-open .main-nav-link:visited {
    font-size: 2.4rem;
  }

  .nav-open .btn-nav:link,
  .nav-open .btn-nav:visited {
    font-size: 2.4rem;
    padding: 1.6rem 3.2rem;
  }
}

/**************************  */
/* Below 770px */
/**************************  */

@media (max-width: 770px) {
  .heading-secondary {
    margin-bottom: 4.8rem;
  }

  .grid {
    row-gap: 2rem;
  }

  .grid--2-cols,
  .grid--3-cols {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .btn,
  .btn:link,
  .btn:visited {
    padding: 2rem 2.8rem;
    font-size: 1.7rem;
  }

  .card-title {
    font-size: 2.3rem;
  }

  .card-description,
  .card-details {
    font-size: 1.7rem;
  }

  .access-imgbox,
  .access-info {
    text-align: center;
  }

  .access-imgbox img {
    width: 70%;
  }

  .access-note {
    width: 80%;
    margin: 0 auto;
    text-align: left;
  }

  .workshop-hero {
    /* スマホでは画像を先に見せたいので上下逆に */
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .workshop-hero-carousel {
    flex: auto;
  }

  .carousel-img-container--list-item {
    text-align: center;
  }

  .carousel-img-container--list-item img {
    width: 100%;
  }

  .workshop-title {
    margin-bottom: 0;
  }

  .workshop-title,
  .workshop-heading {
    text-align: center;
  }

  .workshop-heading {
    font-size: 2rem;
  }

  .workshop-table {
    width: 100%;
  }

  .instructor-info {
    flex-direction: column;
    gap: 5rem;
  }

  .instructor-img-box img {
    width: 50%;
  }

  .instructor-name {
    flex-direction: column;
  }

  .instructor-name .name-jpn {
    font-size: 2.4rem;
  }

  .form-group-row {
    flex-direction: column;
  }
}

/* ****************************** */
/* Below 544px (Phones) */
/* ****************************** */

@media (max-width: 544px) {
  .hero {
    row-gap: 2.4rem;
  }

  .heading-primary {
    font-size: 3.8rem;
  }

  .hero-description {
    font-size: 1.8rem;
    text-align: left;
  }

  .heading-primary span {
    font-size: 2.8rem;
  }

  .cards {
    place-items: center;
  }

  .card {
    width: 95%;
  }

  .card-picture {
    height: 35rem;
  }

  .card-picture--3 {
    background-position: center;
  }

  .card-content {
    padding: 5%;
  }

  .card-title {
    font-size: 2.5rem;
  }

  .card-description,
  .card-details {
    font-size: 1.7rem;
  }

  .instructor-img-box img {
    width: 100%;
  }

  /* Carousel Images */

  .workshop-hero-carousel {
    height: 50vh;
  }

  .carousel-btn ion-icon {
    font-size: 5rem;
  }

  .carousel-nav {
    grid-template-rows: repeat(2, 1fr);
    grid-row-gap: 1vh;
    grid-column-gap: 7.5vw;
    height: 14%;
  }

  .carousel-nav--btn {
    height: 2.5rem;
    width: 2.5rem;
  }
}

/* ****************************** */
/* Below 380px (Small Phones) */
/* ****************************** */

@media (max-width: 380px) {
  .btns {
    flex-direction: column;
  }

  .btns .btn {
    justify-content: center;
    align-items: center;
  }
}
