/* =========================================
   /shop/ ページ専用 スマホ対応CSS
   2カラム崩れ修正版
   ========================================= */

@media screen and (max-width: 768px) {

  /* 基本 */
  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }

  * {
    box-sizing: border-box !important;
  }

  body {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  /* はみ出し防止 */
  div,
  p,
  span,
  ul,
  ol,
  li,
  dl,
  dt,
  dd,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  form {
    max-width: 100% !important;
  }

  table {
    width: 100% !important;
    max-width: 100% !important;
  }

  td,
  th {
    max-width: 100% !important;
    line-height: 1.8 !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
    border: none !important;
  }

  a img {
    max-width: 100% !important;
    height: auto !important;
    border: none !important;
  }

  iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  p,
  div,
  td,
  th,
  li,
  a {
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  a {
    word-break: break-all !important;
  }

  table[width],
  td[width],
  div[style*="width"] {
    max-width: 100% !important;
  }

  img[width] {
    max-width: 100% !important;
    height: auto !important;
  }

  /* =========================================
     拡大画像・ポップアップ系を壊さない
     ========================================= */

  #lightbox,
  #lightbox *,
  .lightbox,
  .lightbox *,
  #TB_window,
  #TB_window *,
  #TB_ajaxContent,
  #TB_ajaxContent *,
  #TB_iframeContent,
  #TB_iframeContent *,
  .lb-outerContainer,
  .lb-outerContainer *,
  .lb-container,
  .lb-container *,
  .lb-image,
  .highslide-container,
  .highslide-container *,
  .highslide-image,
  .fancybox-container,
  .fancybox-container *,
  .fancybox-image {
    max-width: none !important;
    box-sizing: content-box !important;
  }

  #lightbox img,
  .lightbox img,
  #TB_window img,
  #TB_ajaxContent img,
  #TB_iframeContent img,
  .lb-image,
  .highslide-image,
  .fancybox-image {
    max-width: none !important;
    height: auto !important;
  }

  /* =========================================
     古い固定幅指定への保険
     ========================================= */

  [width="1000"],
  [width="980"],
  [width="960"],
  [width="950"],
  [width="900"],
  [width="850"],
  [width="800"],
  [width="780"],
  [width="760"],
  [width="750"],
  [width="740"],
  [width="720"],
  [width="700"],
  [width="680"],
  [width="650"],
  [width="640"],
  [width="600"],
  [width="580"],
  [width="560"],
  [width="550"],
  [width="520"],
  [width="500"],
  [width="480"],
  [width="450"],
  [width="400"],
  [width="380"],
  [width="350"],
  [width="320"],
  [width="300"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* =========================================
     一番上のメニューを見やすく
     ========================================= */

  body table:first-of-type {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 18px auto !important;
  }

  body table:first-of-type td {
    padding: 4px 6px !important;
    text-align: center !important;
  }

  body table:first-of-type a {
    display: inline-block !important;
    margin: 3px 2px !important;
    padding: 9px 10px !important;
    background: #fff7f8 !important;
    border: 1px solid #e7b8c0 !important;
    border-radius: 7px !important;
    color: #5a2a2a !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
  }

  body table:first-of-type a:hover {
    background: #ffecef !important;
  }

  body table:first-of-type img {
    max-width: 100% !important;
    height: auto !important;
    vertical-align: middle !important;
  }

  /* =========================================
     本文エリアの2カラムを解除
     スタッフ紹介・商品のご予約を縦並びにする
     ========================================= */

  body table:not(:first-of-type) tr,
  body table:not(:first-of-type) tbody,
  body table:not(:first-of-type) td,
  body table:not(:first-of-type) th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body table:not(:first-of-type) td,
  body table:not(:first-of-type) th {
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: left !important;
  }

  /* 画像が左に寄らないよう中央寄せ */
  body table:not(:first-of-type) img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* スタッフ写真・予約写真を見やすく */
  body table:not(:first-of-type) img[src*="staff"],
  body table:not(:first-of-type) img[src*="shop"],
  body table:not(:first-of-type) img[src*="tenpo"],
  body table:not(:first-of-type) img[src*="yoyaku"],
  body table:not(:first-of-type) img[src*="reserve"] {
    margin-top: 12px !important;
    margin-bottom: 18px !important;
  }

  /* 文章部分を読みやすく */
  body table:not(:first-of-type) td {
    font-size: 15px !important;
    line-height: 1.9 !important;
    letter-spacing: 0.02em !important;
  }

  p {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  /* =========================================
     緑の見出し画像まわり
     ========================================= */

  img[alt*="スタッフ"],
  img[alt*="商品のご予約"],
  img[src*="shop_ttl"],
  img[src*="ttl"],
  img[src*="title"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 28px auto 18px auto !important;
  }

  /* =========================================
     「商品のご予約」部分をさらに見やすく
     ========================================= */

  img[alt*="商品のご予約"],
  img[src*="shop_ttl03"],
  img[src*="shop_ttl3"],
  img[src*="yoyaku"],
  img[src*="reserve"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px auto 18px auto !important;
    padding: 6px 0 !important;
    background: #fff7f8 !important;
    border-radius: 8px !important;
  }

  /* 電話番号やメールリンクを見やすく */
  a[href^="tel"],
  a[href^="mailto"] {
    font-weight: bold !important;
  }

}