/* 既存のページを狭い画面に収める共通指定 */
@media screen and (max-width: 959px) {
  .container,
  div#container {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }

  body > article,
  body > main,
  body > section {
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 12px;
  }

  /* コース紹介などに残る固定幅のコンテンツ枠 */
  .content-width,
  article :where(div, section),
  main :where(div, section),
  div#map,
  .map,
  div[id^="map0"],
  #garden,
  #tea,
  #spa {
    box-sizing: border-box;
    max-width: 100%;
  }

  img,
  video,
  iframe,
  table,
  .container article,
  .container section,
  #container article,
  #container section,
  #w,
  #w .c,
  #footer_contents,
  #footer_contents_wrap {
    max-width: 100%;
  }

  img:not(.sp-image),
  video {
    height: auto;
  }

  table {
    overflow-wrap: anywhere;
  }

  input:not([type="radio"]):not([type="checkbox"]),
  select,
  textarea {
    box-sizing: border-box;
    max-width: 100%;
  }

  .container .gmenu,
  #container .gmenu,
  ul.gmenu {
    min-width: 0;
    flex-wrap: wrap;
  }

  ul.gmenu li {
    flex: 1 1 140px;
    width: auto;
  }

  #w .c {
    flex-wrap: wrap;
  }

  #w .box {
    box-sizing: border-box;
    max-width: 100%;
    margin-inline: 0;
  }

  .news_area > div,
  .news_area .text_area {
    min-width: 0;
    max-width: 100%;
  }

  .btn-flat-simple {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding-inline: clamp(16px, 8vw, 64px);
  }
}

@media screen and (max-width: 600px) {
  .container .gmenu li a,
  ul.gmenu li a {
    padding-inline: 4px;
    text-align: center;
  }

  .news_area,
  .news_area dl {
    display: block;
  }

  table.form,
  table.form tbody,
  table.form tr,
  table.form th,
  table.form td {
    display: block;
    box-sizing: border-box;
    width: 100%;
  }
}
