/* --- タブレット用レスポンシブ対応 --- */
@media screen and (max-width: 1060px) {
  header h1 {
    font-size: 1.2rem;
  }
  .about-wrap {
    width: 92%;
  }
  .about-text {
    text-align: left;
    font-size: 16px;
  }
  .articles-wrap {
    width: calc(100% - 20px);
  }
  article {
    width: 92%;
    margin: 10px;
  }
}
@media screen and (max-width: 900px) {
  .articles {
    padding: 40px 10px;
  }
  article h2 {
    font-size: 1rem;
  }
  article img {
    height: 160px;
  }
  .articles-date {
    font-size: 12px;
  }
}

/* --- スマホ用レスポンシブ対応 --- */
@media screen and (max-width: 800px) {
  /* 元のナビは非表示 */
  header nav {
    display: none;
  }

  /* ハンバーガーメニュー表示 */
  .nav_menu {
    display: block;
    position: relative;
  }

  #menu__toggle {
    display: none;
  }

  /* ハンバーガーボタンの設定 */
  .menu__btn {
    position: absolute;
    top: -16px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
  }

  .menu__btn span,
  .menu__btn span::before,
  .menu__btn span::after {
    display: block;
    background-color: #333;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    position: absolute;
    transition: 0.3s;
  }

  .menu__btn span::before {
    content: "";
    transform: translateY(-8px);
  }

  .menu__btn span::after {
    content: "";
    transform: translateY(8px);
  }

  /* チェックされたらバツマークに */
  #menu__toggle:checked + .menu__btn span {
    background: transparent;
  }

  #menu__toggle:checked + .menu__btn span::before {
    transform: rotate(45deg);
  }

  #menu__toggle:checked + .menu__btn span::after {
    transform: rotate(-45deg);
  }

  /* メニューのボックス */
  .menu__box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* height: 100vh; */
    height: calc(100vh - 53px);
    background: #fff;
    background-size: 100% 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    animation: fadeSlideIn 0.6s ease forwards;
    margin-top: 0px;
  }

  #menu__toggle:checked ~ .menu__box {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu__item {
    font-size: 1.2rem;
    font-family: "M PLUS 1p", sans-serif;
    color: #333;
    margin: 20px 0;
    text-decoration: none;
    font-weight: normal;
    padding: 10px 0px;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.45em;
  }

  .menu__item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #f7ef8a;
    transform: scale(1.1);
  }

  .nav_menu li {
    margin: 0 15px;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    width: 80%;
    text-align: left;
  }
  .nav_menu li:last-child {
    width: 100%;
  }
  li.menu__icon {
    position: absolute;
    bottom: 0;
    font-size: 20px;
    background-color: #222;
    color: #fff;
    width: 100%;
    text-align: center;
    height: 32px;
    line-height: 32px;
    font-family: "Quicksand", sans-serif;
  }

  /* .menu__icon img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 6px;
    background-color: beige;
    border-radius: 50%;
  } */

  /* メインビジュアル調整 */
  .hero {
    height: 60vh;
  }

  .about {
    height: auto;
  }

  .about-text {
    line-height: 28px;
  }
  .hero {
    height: 60vh;
  }
  .about {
    height: auto;
  }
  .about-text {
    line-height: 28px;
  }
}

@media screen and (max-width: 767px) {
  .modal-open p {
    font-size: 1.4rem;
  }
  /* -------------- modal -------------- */
  /* モーダルボディのサイズ調整 */
  .modal-body {
    width: 90%;
    height: auto;
    padding: 20px;
  }
  /* モーダルのコンテンツ配置を縦並びに */
  .modal-flex {
    flex-direction: column;
    align-items: center;
  }
  /* 画像のサイズ調整 */
  #modal-img {
    width: 92%;
    height: auto;
    max-height: none;
    border-radius: 8px;
    margin-bottom: 5px;
  }
  /* テーブルの幅を100%に */
  .modal-info {
    width: 100%;
    font-size: 14px;
  }
  .modal-info tr {
    display: flex;
  }
  /* テーブルのセル配置 */
  .modal-info td {
    display: block;
    text-align: left;
    padding: 5px;
  }
  /* 一文字ずつ囲んでいる部分の配置調整 */
  .modal-info td:nth-child(1) {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 15px;
    width: 26%;
  }
  /* 店舗情報のテキストサイズを調整 */
  #modal-shop,
  #modal-phone,
  #modal-address,
  #modal-hours,
  #modal-holiday,
  #modal-url {
    font-size: 16px;
    text-align: left;
  }
  /* モーダルのタイトルと説明の余白調整 */
  #modal-title {
    font-size: 16px;
    margin-top: 20px;
  }
  #modal-description {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.4;
  }
  /* 閉じるボタンを大きくする */
  .modal-close {
    font-size: 28px;
    top: 10px;
    right: 10px;
  }
}
@media screen and (max-width: 700px) {
  .about-wrap {
  }
  .articles-wrap {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .profile-wrap {
    flex-direction: column;
    gap: 20px;
  }
  .profile-text {
    width: 100%;
  }
  .news-date {
    width: 80px;
  }
}
@media screen and (max-width: 600px) {
  .modal-body {
    width: 80%;
  }
  .section-title {
    font-size: 28px;
    letter-spacing: 0.2em;
  }
  .banner {
    right: -220px;
    bottom: 0;
    width: auto;
    flex-direction: row;
    padding: 4px 10px;
  }
  .banner__image {
    margin-bottom: 0;
    margin-right: 10px;
  }
  .banner__text {
    writing-mode: horizontal-tb;
  }
  .news-list li {
    flex-direction: column;
    gap: 6px;
  }
  .back-to-top {
    right: 230px;
    bottom: 10px;
  }
}
@media screen and (max-width: 475px) {
  header h1 {
    font-size: 1.4rem;
  }
  .overlay-text {
    width: 100%;
    bottom: 0;
    left: 0;
    text-align: center;
    padding: 10px 0;
    font-size: 1.7rem;
    border-radius: unset;
  }
  .articles-wrap {
    grid-template-columns: 1fr;
  }
  article img {
    height: 250px;
  }
  article {
    margin: 12px auto;
  }
  .video-gallery {
    padding: 10px;
  }
}
