@charset "UTF-8";

/*!
Theme Name: Gourmet Child
Description: グルメ紹介サイト（ジャンク地球儀）用の Cocoon 子テーマ
Template: cocoon
Version: 0.1.0
Text Domain: gourmet-child
*/

/************************************
** 子テーマ用のスタイル
** 配色はスキンを決めてから足す
************************************/

/* ストリートビュー・Googleマップの埋め込みを、スマホでもはみ出さずに表示する */
.entry-content iframe[src*="google.com/maps"] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
}

/* お問い合わせの Google フォームを、本文の幅に合わせて表示する */
.entry-content iframe[src*="docs.google.com/forms"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
}

/* 編集部メモ（引用ブロックに gourmet-memo クラスを付けて使う） */
.entry-content .gourmet-memo {
  margin: 1.5em 0;
  padding: 1em 1.2em;
  border: 2px dashed currentColor;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
}
.entry-content .gourmet-memo::before,
.entry-content .gourmet-memo::after {
  content: none; /* Cocoon の引用符アイコン（前後）を出さない */
}

/* ヘッダーのサイト名の左に、ロゴのマーク（地球儀バーガー）を白い丸に入れて添える。
   サイト名は文字のまま。大きさは文字に合わせて変わる（em 指定） */
.logo-header .site-name-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.logo-header .site-name-text::before {
  content: "";
  flex: none;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: #fff url("images/logo-mark.png") no-repeat center / 80%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* お得情報（[gourmet_deals] ショートコード） */
.entry-content .gourmet-deals {
  margin: 1.5em 0;
  padding: 1em 1.2em;
  border: 2px solid #e0a43a;
  border-radius: 8px;
  background: #fffaf0;
}
.entry-content .gourmet-deals p {
  margin: 0;
}
.entry-content .gourmet-deals__title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}
.entry-content .gourmet-deals__chain {
  font-weight: bold;
  font-size: 1.05em;
  margin-top: 1em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #e0a43a;
}
.entry-content .gourmet-deals__chain:first-child {
  margin-top: 0;
}
.entry-content .gourmet-deals__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry-content .gourmet-deals__item {
  margin: 0;
  padding: 0.7em 0;
  border-bottom: 1px dashed #e8c98f;
}
.entry-content .gourmet-deals__item:last-child {
  border-bottom: 0;
}
.entry-content .gourmet-deals__badge,
.entry-content .gourmet-deals__region {
  display: inline-block;
  margin-right: 0.4em;
  padding: 0 0.5em;
  border-radius: 4px;
  font-size: 0.8em;
  line-height: 1.7;
  vertical-align: 0.1em;
}
.entry-content .gourmet-deals__badge.is-standing {
  background: #5b7c4a;
  color: #fff;
}
.entry-content .gourmet-deals__badge.is-limited {
  background: #c0392b;
  color: #fff;
}
.entry-content .gourmet-deals__badge.is-upcoming {
  background: #2c6e9b;
  color: #fff;
}
.entry-content .gourmet-deals__region {
  border: 1px solid #b9a27a;
  color: #6b5a3a;
}
.entry-content .gourmet-deals__detail {
  margin-top: 0.3em;
}
.entry-content .gourmet-deals__meta,
.entry-content .gourmet-deals__note {
  margin-top: 0.3em;
  font-size: 0.85em;
  color: #6b5a3a;
}
.entry-content .gourmet-deals__note {
  margin-top: 0.8em;
}

/************************************
** レスポンシブ（Cocoon の子テーマの区切りに合わせる）
************************************/
/* 834px以下 */
@media screen and (max-width: 834px) {
  /* 店舗カードなどの表で、項目名の列（1列目）が「所/在/地」のように1文字ずつ折り返さないよう幅を確保する。
     長い項目名は折り返すので、表が画面からはみ出すことはない。
     列が多い表（ランキングなど）の右の列が狭くならないよう、2列の表だけに当てる */
  .entry-content table tr > :first-child:nth-last-child(2) {
    width: 5.5em;
  }
}

/* 480px以下 */
@media screen and (max-width: 480px) {
  /* 幅が狭いと質問が折り返して縦に長くなるので、フォームの高さを足す */
  .entry-content iframe[src*="docs.google.com/forms"] {
    height: 1250px;
  }
}
