/* 移行後のページ表示の補正（WordPress のテーマ CSS の後に読み込む） */

/* 商品詳細（/deli/…）：説明文が <div> のため段落の行間が付かず詰まって見えていた。本文の段落と同じ行間にそろえる */
.single-deli .p-entry__body > div { line-height: 2.2; margin-bottom: 1.5em; }
.single-deli .p-entry__body .product-detail-price { margin-bottom: 1.5em; font-size: 1.1em; }

/* 商品詳細の予約リンク：テーマのボタン（.p-btn）と同じ見た目にする */
.single-deli .p-entry__body .p-button {
  display: inline-block; box-sizing: border-box; min-width: 220px; height: 55px; padding: 0 24px;
  background: #000; color: #fff; font-size: 14px; line-height: 55px; text-align: center; text-decoration: none;
  transition: opacity 0.2s;
}
.single-deli .p-entry__body .p-button:hover { opacity: 0.7; }
@media (max-width: 767px) {
  .single-deli .p-entry__body > div { line-height: 2; }
  .single-deli .p-entry__body .p-button { min-width: 180px; height: 45px; font-size: 12px; line-height: 45px; }
}

/* 本文の埋め込み（地図など）を画面幅に収める。現行はスマホで 600px のまま右がはみ出していた */
.p-entry__body iframe, .l-contents iframe { max-width: 100%; }

/* 長い URL が画面の外へはみ出さないよう、本文中では途中で折り返す */
.p-entry__body, .p-entry__body a { overflow-wrap: anywhere; }

/* パンくずの最後（記事名）が長いとき、画面の外へ出さず末尾を省略する */
.c-breadcrumb__item:last-child { display: inline-block; max-width: calc(100% - 100px); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* 見た目には出さず、読み上げと検索にだけ伝える文字（トップの見出しなど） */
.u-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 画像に付けた width/height は、読み込み前に場所を確保するためのもの。
   高さを決める CSS がない画像では、属性の高さで縦に伸びないよう高さを自動にする（:where で他の指定より弱くする） */
:where(img[width][height]) { height: auto; }

/* メニューの「お問い合わせ」はスマホ（メニューボタンで開く縦並び）だけに出す。PC の横並びメニューは項目を増やすと折り返すため */
@media (min-width: 992px) { #menu-item-contact { display: none; } }
