/*
 Theme Name:   UnderStrap Child
 Description:  UnderStrap の子テーマ
 Author:       forest
 Template:     understrap
 Version:      1.0.0
/* ========== 共通 ========== */


/* --- スマホ表示（画面幅767px以下）の場合 --- */


@media screen and (max-width: 767px) {
	
/* ▼.schedule__arrow は他の img 共通スタイルから除外する ▼
img.schedule__arrow {
  all: unset !important;
  width: 16px !important;
  height: 10px !important;
  display: inline-block !important;
}
	
.newsContainer__item {
    width: 50% !important; 
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 0 10px 20px;
    box-sizing: border-box;
}
*/

.tour__caption.font__Gothic {
  text-align: center;
  font-size: 1.1rem; /* 適度に大きく */
  line-height: 1.6;
}
	
	
/* 投稿本文内の画像を画面幅にフィット */
.entry-content img,
.post-content img,
.single .content img,
.wp-block-image img,
figure img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  box-sizing: border-box;
}

/* 画像コンテナ側もはみ出さないように */
.wp-block-image,
.wp-caption,
figure {
  max-width: 100% !important;
  width: 100% !important;
}

/* エディタが width/height を属性で埋めても上書き */
.entry-content img[width] { width: 100% !important; }
.entry-content img[height] { height: auto !important; }

/* 横スクロールの予防（長い単語・表・埋め込み対策） */
.entry-content { overflow-wrap: anywhere; }
.entry-content table { display: block; width: 100%; overflow-x: auto; }
.entry-content iframe { width: 100% !important; max-width: 100%; aspect-ratio: 16/9; height: auto; }

/* 念のためページ全体の横スクロールを抑止 */
html, body { overflow-x: hidden; }


  /* コラム一覧カードの画像ラッパー
  .newsContainer__item .m-card__imgWrapper {
    position: relative; 
    width: 100%;
    padding-bottom: 66.66%;
    height: 0; 
    overflow: hidden;
    background-color: #eee; 
  } */

  /* 画像ラッパー内の画像 
  .newsContainer__item .m-card__imgWrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
  }*/

}
/* カード内の画像ラッパー */
.m-card__imgWrapper {
  display: block; /* aタグ内のfigure要素の挙動を安定させる */
  overflow: hidden; /* コンテナからはみ出す画像を隠す */
  height: 200px; /* ★ここで高さを強制的に指定 (任意の高さに調整) */
  background-color: #eee; /* 画像読み込み中の背景色 (任意) */
}

/* ラッパー内の画像 */
.m-card__imgWrapper img {
  display: block; /* 画像下の余白を防ぐ */
  width: 100%; /* コンテナの幅に合わせる */
  height: 100%; /* コンテナの高さに合わせる */
  object-fit: cover; /* ★画像の比率を保ったまま、コンテナ全体を覆うように拡大縮小（はみ出し部分はトリミング） */
  object-position: center; /* 画像の中央が表示されるように調整 (任意) */
}

/* フォールバック画像用のクラスがあれば追加 */
.m-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.newsContainer {
  display: flex;
  flex-wrap: wrap;
  margin-left: -2px;
  margin-right: -2px;
}
.newsContainer__item {
  padding-left: 2px;
  padding-right: 2px;
  margin-bottom: 4px;
  display: flex;
}

/* PC（992px以上）は3列 */
@media (min-width: 992px) {
  .section-news .row {
    justify-content: flex-start; /* 中央寄せを解除して左詰め */
  }

  .newsContainer__item {
    flex: 0 0 32.3333% !important;
    max-width: 32.3333% !important;
    box-sizing: border-box;
  }
}


/* 画像フィット */
.newsContainer .m-card__imgWrapper img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== スマホ (<768px): 1列   /* 横書きを強制 
@media (max-width: 767.98px) {
  .newsContainer__item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .newsContainer,
  .newsContainer * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
  }
}========== */
@media (max-width: 767.98px) {

  .newsContainer__item {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    box-sizing: border-box;
    padding: 0 10px 20px;
  }

  .newsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
  }

  .m-card__imgWrapper {
    width: 100%;
    padding-bottom: 66.66%; /* アスペクト比3:2 */
    position: relative;
    height: 0;
    overflow: hidden;
  }

  .m-card__imgWrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
  }

  .m-card__title, .m-card__time {
    font-size: 14px;
    text-align: center;
    margin: 0.4em 0 0;
  }
}

/* ========== タブレット (768px〜991px): 2列 ========== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .newsContainer__item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ========== PC (992px以上): 3列 ========== */
@media (min-width: 992px) {
  .newsContainer__item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}
/* ========= スマホは1カラム固定 & 横書きに強制 ========= */
@media (max-width: 767.98px){

  /* 横書きを強制（!importantで上書き）
  .newsContainer,
  .newsContainer * {
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
  } */

  /* 1カラム固定（幅100%）
  .newsContainer { display:block; margin:0; }
  .newsContainer__item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 0 20px;      
  } */

  /* カード内の並びを縦積みに（画像→日付→タイトル） */
  .newsContainer .m-card { display:block; }

  /* 画像は横幅にフィット
  .newsContainer .m-card__imgWrapper img{
    display:block;
    width:100%;
    height:auto;
  } */

  /* テキストの読みやすさ */
  .newsContainer .m-card__time,
  .newsContainer .m-card__title{
    line-height:1.6;
    word-break: break-word;
    margin: .4em 0 0;
  }
}

/* ========= タブレット以上は2〜3列（任意：必要なら） ========= */
@media (min-width: 576px){
  .newsContainer { display:flex; flex-wrap:wrap; margin:0 -12px; }
  .newsContainer__item { padding:0 12px 24px; }
 /*  .newsContainer__item.col-sm-6 { flex:0 0 50%; max-width:50%; } */
}
@media (min-width: 768px){
  .newsContainer__item.col-md-4 { flex:0 0 33.3333%; max-width:33.3333%; }
}


/* 画面が横長（PC/タブ横）のとき：右下ロゴをより外しやすく */
@media (min-aspect-ratio: 16/9) {
  .mv__video { object-position: 18% 60%; }
}

body {
  background: linear-gradient(
    180deg,
    #f2e3c4 0%,   /* 上部：やや濃い黄土色 */
    #f2e3c4 100%  /* 下部：少し明るめのベージュ */
  );
}

/* ===== Bootstrap最小シム（UnderStrapの構造を支える用）===== */

/* 中央寄せの基本器 */
.container {
  width: 100%;
  max-width: 1200px;                    /* 好みで 1100/1280 などに */
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 4vw, 24px);
  padding-right: clamp(12px, 4vw, 24px);
}

/* フル幅でも左右の“逃げ”は持たせる */
.container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 4vw, 24px);
  padding-right: clamp(12px, 4vw, 24px);
}

/* 行とカラム（ごく簡易版） */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}
[class*="col-"], .col {
  padding-left: 12px;
  padding-right: 12px;
  flex: 1 0 0%;
  min-width: 0;
}

/* ===== ヘッダ/ナビ用の整形 ===== */

/* ヘッダーが左に寄って見えるのを防ぐ（中央のcontainerに合わせる） */
.site-header .container,
.navbar .container,
#page .wrapper > .container {
  max-width: 1200px; /* 上の.containerと揃える */
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 4vw, 24px);
  padding-right: clamp(12px, 4vw, 24px);
}

/* ナビバーの左右整列（ロゴとメニューの間を均等に） */
.navbar {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.navbar > .container,
.navbar > .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ画像の縦位置/オーバーフロー調整 */
.site-branding img, .navbar-brand img {
  display: block;
  height: auto;
  max-height: 56px;     /* 必要に微調整 */
}

/* ページ本文の器も中央に揃える（/history/ 以外にも効く） */
.wrapper #content {
  /* wrapper > .container があれば不要だが保険で */
  margin-left: auto;
  margin-right: auto;
}

/* Gutenbergの横幅指定の馴染ませ（任意） */
.alignwide  { max-width: 1300px; margin-left:auto; margin-right:auto; }
.alignfull  { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* 見出しや段落の左右ズレ対策（保険） */
.entry-content, .page .entry-content {
  margin-left: auto;
  margin-right: auto;
}

/* スマホ時の余白最適化 */
@media (max-width: 768px) {
  .container, .container-fluid,
  .site-header .container,
  .navbar .container,
  #page .wrapper > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* ヘッダー全体をstickyに固定 */
.custom-post-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* ヘッダー内のdlの構成を分割レイアウトに */
.custom-post-header dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin: 0;
  flex-wrap: wrap; /* スマホでも折り返し可能に */
  width: 100%;
  box-sizing: border-box;
}

/* ロゴを左寄せ */
.custom-post-header dl dt:first-child {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ロゴ画像サイズ調整 */
#js-header-logo img {
  max-height: 50px;
  height: auto;
}

/* ナビゲーション項目を右寄せグループとしてまとめる */
.custom-post-header dl dt:not(:first-child) {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

/* スマホ対応：横並びを維持（縦並びにしない） */
@media screen and (max-width: 768px) {
  .custom-post-header dl {
    flex-direction: row; /* ← column を row に変更 */
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .custom-post-header dl dt {
    margin: 5px;
  }

  .custom-post-header dl dt:first-child {
    width: auto;
    margin-bottom: 0;
  }
}


.lang-toggle {
  background-color: #fff; /* 背景を白に */
  color: #333;             /* テキスト色をダークグレーに */
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;  /* 枠線追加 */
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-toggle img {
  border: 1px solid #000;  /* 国旗画像に黒い枠線を追加 */
  border-radius: 2px;
}

/* ドロップダウンの中の国旗にも枠を追加 */
.lang-menu img {
  border: 1px solid #000;
  border-radius: 2px;
}

.lang-menu li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  gap: 5px;
}

.footer__langSwitch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 5px 0;
  margin: 0;
  min-width: 120px;
  list-style: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-dropdown:hover .lang-menu {
  display: block;
}


.lang-menu li {
  padding: 5px 10px;
}


.lang-menu li a:hover {
  background-color: #f0f0f0;
}

/* newsContainer__itemに以下のスタイルを追加 
.newsContainer__item {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}
*/

/* m-card__imgWrapper imgにサイズ調整を追加 */

/* カード一覧全体のレイアウトをグリッドに */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* カードの間隔 */
}

/* 各カードアイテムの幅調整（PC用） */
.newsContainer__item {
  width: calc(33.333% - 20px); /* 3列表示（間隔を除いた計算） */
  box-sizing: border-box;
}

/* カードの中の画像をセンターに */
.m-card__imgWrapper img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* スマホでは1列に（幅100%）
@media screen and (max-width: 768px) {
  .newsContainer__item {
    width: 100%;
  }

  .m-card__imgWrapper img {
    width: 100%;
  }
} */

/* レスポンシブのためのメディア書き込み（スマホ専用） */
@media screen and (max-width: 768px) {
  .newsContainer__item {
    padding: 0 10px;
  }

  .m-card__title {
    font-size: 1rem;
  }

  .m-card__time {
    font-size: 0.875rem;
  }
}

.m-card__imgWrapper img {
  width: auto;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.newsContainer__item {
  margin-bottom: 30px;
  padding: 10px;
}

.m-card {
  display: block;
  text-align: center;
}


footer .copyright {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

footer .copyright a {
  color: #fff;
  text-decoration: none;
  margin: 0;
  padding: 0;
}			  
.footer-nav {
	font-size: 16px;       /* ← 文字サイズを大きく */
	color: #fff;           /* ← 通常文字色（※リンク外の"｜"なども） */
    text-align: center;    /* 中央寄せ */
	display: block;        /* <small> をブロック化して中央寄せを有効に */
	margin: 20px 0;        /* 上下に少し余白を追加（任意） */
}

.footer-nav a {
	  color: #fff;           /* ← リンク文字色を白に */
	  text-decoration: none;
				
	  margin: 0 4px;
}

.footer-nav a:hover {
	  text-decoration: underline;
	  color: #ddd;
}




/* ここにカスタムCSSを追加していく */
body {
    background-color: #f9f9f9;
}

/* ↓ここから追記 */
.site-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body,
#page,
.site,
.wrapper,
#index-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.site-header {
  margin-bottom: 0 !important;
}

/* フッターを画面下端にぴったり付ける */
footer {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

/* HTML・bodyの余白も念のため除去 */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* フッター直前の要素に下余白がある場合に対応 */
.entry-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* map iframe やそのコンテナの下余白も除去 */
.footer__googleMap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* WordPress既定のfooterブロックの非表示 */
#wrapper-footer,
.site-footer,
.site-info {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 独自footerの上下スペース調整 */
footer {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

/* フッター内画像の下余白を消す */
.footer__image {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: none;
}

/* 全体のbodyやhtmlの余白も念のためリセット */
body,
html {
  margin: 0;
  padding: 0;
}
.entry-content {
    background-color: #ffffff !important; /* 背景を白に */
    padding: 20px !important;            /* 内側の余白 */
    border-radius: 5px !important;       /* 角の丸み（任意） */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important; /* 軽い影（任意） */
}
article.post {
    background-color: #ffffff !important; /* 背景色を白に設定 */
    padding: 20px !important;            /* 内側の余白を設定 */
    border-radius: 5px !important;       /* 角を少し丸く（任意） */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important; /* 影をつけて視認性アップ（任意） */
    margin-bottom: 20px !important;      /* 下側の余白 */
}
/* 投稿本文のフォントサイズと行間 */
.single-post .entry-content {
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  word-break: break-word;
  color: #333;
}

/* 見出しの調整 */
.single-post .entry-content h2 {
  font-size: 22px;
  margin-top: 2em;
  margin-bottom: 1em;
  border-left: 5px solid #c58f39;
  padding-left: 0.5em;
  background: #f8f5f0;
}

.custom-post-header {
  text-align: center;
  margin-bottom: 2em;
}
.custom-post-header .custom-post-lead {
  font-size: 20px;
  color: #6b4c1d;
  margin-top: 0.5em;
}

/* h1 見出し */
.entry-header .entry-title {
  font-size: 28px;
  line-height: 1.5;
  font-weight: bold;
  color: #2c2c2c;
  text-align: center;
  margin: 1em 0 0.5em;
  border-bottom: 2px solid #c58f39;
  padding-bottom: 0.5em;
}

/* アイキャッチ画像の整形 */
.entry-header + img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* 本文段落の整形 */
.entry-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5em;
  letter-spacing: 0.03em;
  padding: 0 0.5em;
}

/* セクション見出し（h2など） */
.entry-content h2 {
  font-size: 22px;
  margin-top: 2em;
  margin-bottom: 1em;
  border-left: 5px solid #c58f39;
  padding-left: 0.75em;
  background: #f9f6f0;
  color: #442200;
}



/* メニュー用 */

/* テイスティングセクションの全体フォント調整 */
.tasting-info p,
.section,
.section h4,
.section .item-name,
.section .item-price,
.english-name,
main h3,
main p {
  font-size: 16px;
  line-height: 1.6;
}

/* 見出しh3はやや強調 */
main h3 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* セクション見出しh4 */
.section h4 {
  font-size: 16px;
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  color: #6b4c1d;
}

/* アイテム名と価格 */
.item-name {
  font-size: 15px;
  font-weight: 500;
}

.item-price {
  font-size: 14px;
  color: #a0522d;
  text-align: right;
}

/* 英語表記の補助テキスト */
.english-name {
  font-size: 12px;
  color: #666;
}

/* スマホ用の微調整 */
@media screen and (max-width: 768px) {
  main h3 {
    font-size: 15px;
  }

  .section h4 {
    font-size: 14px;
  }

  .item-name,
  .item-price {
    font-size: 13px;
  }

  .english-name {
    font-size: 11px;
  }
}



            h3 {
              background-color: #8d5a3c;
              color: #fff;
              padding: 10px;
              border-radius: 4px;
              font-size: 1.4em;
            }

            h4 {
              margin-top: 1em;
              color: #8d5a3c;
              font-size: 1.2em;
            }

            .section {
              margin-bottom: 2em;
            }

            .item {
              display: flex;
              flex-wrap: wrap;
              border-bottom: 1px solid #ddd;
              padding: 8px 0;
              font-size: 1.1em;
            }

            .item-name {
              flex: 1 1 60%;
              font-weight: bold;
            }

            .item-price {
              flex: 1 1 30%;
              text-align: right;
              color: #a0522d;
            }

            .item-note {
              flex: 1 1 100%;
              font-size: 0.95em;
              color: #555;
            }

            @media (max-width: 600px) {
              .item {
                flex-direction: column;
              }

              .item-price {
                text-align: left;
                margin-top: 4px;
              }
            }
			  