/**************************  */
/* Below 1250px */
/**************************  */

@media (max-width: 1250px) {
  .greeting-content {
    width: 92%;
    max-width: 90rem;
  }

  .greeting-image {
    grid-column: 1 / span 9;
    grid-row: 1 / span 5;
    height: 80%;
    object-position: left top;
  }

  .greeting-text-box {
    grid-column: 5 / span 8;
    grid-row: 2 / span 5;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2.8rem 2.2rem;
    font-size: 1.5rem;
    line-height: 1.85;
  }
}

/**************************  */
/* Below 944px */
/**************************  */

@media (max-width: 944px) {
  html {
    font-size: 50%;
  }

  /* Mobile Navigation */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
    /* position: fixed;
        top: 1rem;
        right: 2rem; */
  }

  .top-fixed {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;

    background-color: #fff;
    height: 6rem;
    width: 6rem;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .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;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 7.2rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }

  .section-hero {
    height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 4rem;
    gap: 5.5rem;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }

  .hero-description {
    text-align: center;
  }

  .btns {
    justify-content: center;
  }

  .modal-content {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "text" 
      "gallery";
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    gap: 2rem;
  }

  .modal-text {
    grid-area: text;
    order: 1;
  }

  .modal-gallery {
    grid-area: gallery;
    order: 2;
  }

   .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .modal-gallery-item img {
    border-radius: 0.6rem;
  }
}

/* ****************************** */
/* Below 800px */
/* ****************************** */

@media (max-width: 800px) {
  .greeting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: 90%;
    max-width: 60rem;
    margin: 0 auto;
  }

  .greeting-image {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
    object-position: center top;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.15);
  }

  .greeting-text-box {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.15);
    padding: 2.6rem 2.4rem;
    font-size: 1.55rem;
    border-radius: 1rem;
    text-align: left;
  }

  .signature {
    text-align: right;
    margin-top: 2.4rem;
  }
}

/* ****************************** */
/* Below 704px (Smaller Tablets) */
/* ****************************** */
@media (max-width: 768px) {
  .grid--2-cols,
  .grid--3-cols {
    grid-template-columns: 1fr;
    row-gap: 5rem;
  }

  .about-container {
    flex-direction: column;
  }

  .about-left {
    height: 35rem;
    width: 100%;
    background-position: center;
  }

  .about-paragraph {
    font-size: 1.7rem;
  }

  .about-content {
    padding: 2rem;
  }

  .section-award .paragraph {
    text-align: left;
  }

  .award-flex {
    flex-direction: column;
    gap: 3rem;
  }
}

/**************************  */
/* Below 600px (Phones) */
/**************************  */

@media (max-width: 600px) {
  .btns {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 10rem;
  }

  .btn:link,
  .btn:visited {
    padding: 2rem 2.8rem;
  }

  .heading-primary {
    font-size: 3.8rem;
    letter-spacing: 1rem;
  }

  .heading-primary .sub {
    font-size: 2.4rem;
  }

  .heading-primary .main {
    font-size: 3.8rem;
  }

  .hero-text-box {
    padding: 3rem 2rem;
  }

  .hero-description {
    font-size: 1.8rem;
    text-align: left;
  }

  .hero-img {
    width: 100%;
  }

  .heading-secondary {
    font-size: 3.5rem;
  }

  .subheading {
    font-size: 1.8rem;
  }

  .gallery {
    grid-row-gap: 3vh;
  }

  .tab-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .tab-button {
    width: 60%;
    font-size: 1.9rem;
    padding: 1rem;
  }

  .reservation-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .reservation-date-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.6rem 1.4rem;
    gap: 1.2rem;
  }

  .reservation-time {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .reservation-time ion-icon {
    display: none;
  }

  .badge,
  .reservation-actions .btn--reserve {
    font-size: 1.7rem;
    font-weight: 600;
    width: 100%;
    max-width: 25rem; /* ← 少しワイドに */
    height: 4.6rem; /* ← 押しやすく */
    padding: 0.8rem 1.6rem;
    border-radius: 3rem;
  }

  .greeting-text-box {
    font-size: 1.5rem; /* 少しだけ小さく */
    line-height: 1.85;
    padding: 2.4rem 2rem; /* 横の余白少し削って見やすく */
  }

  .signature-en {
    font-size: 2.1rem; /* 英字署名も少しだけ縮小 */
  }

  .footer .footer-logo img {
    width: 80%;
  }
}

/**************************  */
/* Below 480px (Small Phones) */
/**************************  */

@media (max-width: 400px) {
  .heading-secondary {
    font-size: 2.8rem;
  }
}
