/* スマートフォン用のスタイル */
@media (max-width: 768px) {

  nav {
    background-color: transparent;
    /* navの背景を透明にする */
  }

  .nav-icon {
    display: none;
    /* 店のアイコンを非表示にする */
  }

  .hamburger-icon {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    /* メニューの後ろに隠れないようにする */
  }

  .nav-menu {
    display: none;
    /* デフォルトではメニューを非表示にする */
    flex-direction: column;
    width: 200px;
    /* メニューの幅を適切に設定 */
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding-top: 60px;
    /* ハンバーガーメニューアイコンの高さ分の余白を追加 */
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
    /* アクティブなときのみメニューリストを表示 */
  }

  .nav-menu li {
    margin: 0.5em 0;
    text-align: left;
    /* テキストを左揃えにする */
    padding-left: 15px;
    /* 左に余白を追加して見やすくする */
  }

  .hamburger-icon {
    display: block;
  }
}

.logo {
  width: 50%;
}

.cut-model-photos {
  flex-direction: column;
  align-items: center;
}

.cut-model-photos img {
  width: 100%;
  margin-bottom: 1em;
}

.pricing-table,
.staff-members {
  flex-direction: column;
  align-items: center;
}

.category,
.staff-member {
  flex: 1 1 100%;
  margin-bottom: 1em;
}

form {
  padding: 1em;
}

.form-group input[type="submit"] {
  width: 100%;
}

/* タブレット用のスタイル */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-container {
    flex-direction: row;
    align-items: center;
  }

  .nav-menu {
    flex-direction: row;
    width: auto;
  }

  .nav-menu ul {
    flex-direction: row;
  }

  .nav-menu li {
    margin: 0 1em;
  }

  .logo {
    width: 33.33%;
  }

  .cut-model-photos {
    flex-direction: row;
    justify-content: space-between;
  }

  .cut-model-photos img {
    width: 48%;
    margin-bottom: 0;
  }

  .pricing-table,
  .staff-members {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category,
  .staff-member {
    flex: 1 1 48%;
    margin-bottom: 1em;
  }

  form {
    padding: 1.5em;
  }

  .form-group input[type="submit"] {
    width: auto;
  }
}

/* スマートフォンおよびタブレット用のスタイル */
@media (max-width: 1024px) {
  .cut-model-photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .cut-model-photos img {
    width: 48%;
    margin-bottom: 1em;
  }

  .pricing-table {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .category {
    flex: 1 1 calc(50% - 1.5em);
    margin-bottom: 1.5em;
  }
}

@media (max-width: 768px) {
  .category {
    flex: 1 1 100%;
  }
}


/* デスクトップ用のスタイル */
@media (min-width: 1025px) {
  .nav-container {
    flex-direction: row;
    align-items: center;
  }

  .nav-menu {
    flex-direction: row;
    width: auto;
  }

  .nav-menu ul {
    flex-direction: row;
  }

  .nav-menu li {
    margin: 0 1em;
  }

  .logo {
    width: 33.33%;
  }

  .cut-model-photos {
    flex-direction: row;
    justify-content: space-between;
  }

  .cut-model-photos img {
    width: 24%;
    margin-bottom: 0;
  }

  .pricing-table,
  .staff-members {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category,
  .staff-member {
    flex: 1 1 calc(25% - 1em);
    margin-bottom: 1em;
  }

  form {
    padding: 2em;
  }

  .form-group input[type="submit"] {
    width: auto;
  }
}