/* =============================
   共通設定
============================= */
header {
  margin-top: 26px;
}
.grecaptcha-badge { visibility: hidden; }

/* =============================
   LINE モーダル（スマホ用）
============================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.line-modal {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 30px 20px 25px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.2);
  background: url("https://aodatami.com/wp-content/uploads/IMG_8772.jpg") center/cover no-repeat;
}

.line-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
  z-index: 1;
  border-radius: inherit;
}

.line-modal * {
  position: relative;
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #666;
}

.line-modal h2 {
  display: block;
  font-size: 20px;
  margin: 10px auto;
  color: #222;
  font-weight: bold;
  background: rgba(255,255,255,0.95);
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.5;
  border-bottom: 3px solid #06C755;
}

.line-modal p {
  font-size: 15px;
  color: #444;
  margin: 0 0 10px;
}

.btn-line {
  display: inline-block;
  background-color: #06C755;
  color: #fff;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.2s;
}

.btn-line:hover {
  opacity: 0.85;
}

.btn-close-later {
  margin-top: 15px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

.note {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* スマホではQR非表示 */
@media (max-width: 768px) {
  .line-qr { display: none; }
  .line-modal { width: 95%; padding: 20px 15px; }
  .line-modal h2 { font-size: 18px; padding: 8px 10px; }
  .line-modal p { font-size: 14px; }
}

/* モーダル中はスクロール禁止 */
body.modal-open { overflow: hidden; }

/* =============================
   PC上部固定バナー（中央寄せ版）
============================= */
.line-banner-pc {
  display: none;
}

@media (min-width: 1025px) {
  .line-banner-pc {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 9998;
    background: none;
    border-bottom: 3px solid #06C755;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px 0;
  }

  .line-banner-inner {
  display: flex;
  align-items: flex-end; /* &#x2705; QRコードと文字を下揃え */
  justify-content: center; /* &#x2705; 全体を中央寄せ */
  gap: 25px;
  padding: 25px 40px;
  background:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    url("https://aodatami.com/wp-content/uploads/IMG_8772.jpg") center/cover no-repeat;
  border-radius: 10px;
  max-width: 960px;
  width: fit-content; /* &#x2705; 中央寄せ時にちょうど良くフィット */
  margin: 0 auto; /* &#x2705; 横中央に配置 */
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

  .line-banner-qr {
    flex-shrink: 0;
    width: 110px; /* &#x2705; バランス良いサイズ */
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    align-self: flex-end; /* &#x2705; 自身も下端で揃える */
  }

.line-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  align-items: flex-start; /* &#x2705; 子要素を左寄せ（h2の幅を強制しない） */
}

.line-banner-text h2 {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(90deg, #06C755 0%, #0FA94D 100%);
  display: inline-block;
  width: auto;                /* &#x2705; フレックスの影響を受けない */
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 6px;
  line-height: 1.4;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  white-space: nowrap;        /* &#x2705; 一行に収める（好みに応じて削除可） */
}


  .line-banner-text p {
    font-size: 15px;
    color: #333;
    margin: 4px 0;
  }

  .btn-line {
    display: inline-block;
    background-color: #06C755;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s;
    margin-top: 8px;
  }

  .btn-line:hover {
    opacity: 0.85;
  }

  .note {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
  }
}
/* =============================
   投稿本文下 LINEバナー（PC＋スマホ対応）
============================= */
.line-banner-unified {
  position: relative;
  width: 100%;
  background:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    url("https://aodatami.com/wp-content/uploads/IMG_8772.jpg") center/cover no-repeat;
  border-top: 3px solid #06C755;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  margin-top: 40px;
  padding: 25px 20px;
  z-index: 10;
}

/* ===== レイアウト ===== */
.line-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 25px;
  max-width: 960px;
  margin: 0 auto;
}

.line-banner-qr {
  width: 110px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.line-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

.line-banner-text h2 {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(90deg, #06C755 0%, #0FA94D 100%);
  display: inline-block;            /* &#x2705; 背景を文字幅に合わせる */
  width: auto;                      /* &#x2705; 幅を固定しない */
  max-width: 100%;                  /* &#x2705; はみ出し防止 */
  padding: 8px 16px;
  border-radius: 6px;
  line-height: 1.4;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  white-space: nowrap;              /* &#x2705; 折り返さない（見た目をスッキリ） */
}

.line-banner-text p {
  font-size: 15px;
  color: #333;
  margin: 4px 0;
}

.btn-line {
  display: inline-block;
  background-color: #06C755;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.btn-line:hover {
  opacity: 0.85;
}

.note {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .line-banner-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .line-banner-qr {
    width: 160px;
    margin-bottom: 10px;
  }

  .line-banner-text {
    text-align: center;
    justify-content: center;
  }

  .line-banner-text h2 {
    font-size: 18px;
    padding: 8px 12px;
    line-height: 1.5;
  }

  .line-banner-text p {
    font-size: 14px;
  }

  .btn-line {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* ===== スマホモーダル表示中は非表示 ===== */
body.modal-open .line-banner-unified {
  display: none;
}
/* パターンC：スタイリッシュ */
.widget-page-content-bottom-title.main-widget-label {
    background: transparent !important;
    color: #333333 !important;
    padding: 15px 0 !important;
    border: none !important;
    border-top: 2px solid #3eb370 !important; /* 上に緑の線 */
    border-bottom: 2px solid #3eb370 !important; /* 下に緑の線 */
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.1em !important;
    text-align: center !important;
}
.widget-page-content-bottom-title.main-widget-label::after {
    display: none !important;
}
/* --- 1. 各メニューの形を「角丸カード風」にする --- */
h3.jisseki, h3.nagare, h3.ryokin, h3.jigyo, h3.situmon, h3.toiawase {
    border-radius: 15px !important; /* 角を丸くして柔らかい印象に */
    overflow: hidden !important; /* 角丸からはみ出た部分を綺麗に切り取る */
    margin-bottom: 15px !important; /* 要素と要素の間に少し隙間を作る */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important; /* ほんのり影をつけて立体的に */
    transition: all 0.3s ease !important; /* 動きを滑らかにする設定 */
    border: none !important; 
}

/* --- 2. マウスを乗せたときの動き（フワッと浮き上がる） --- */
h3.jisseki:hover, h3.nagare:hover, h3.ryokin:hover, h3.jigyo:hover, h3.situmon:hover, h3.toiawase:hover {
    transform: translateY(-5px) !important; /* 上に5px浮く */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important; /* 影を広げて浮遊感を出す */
}

/* --- 3. 画像の上の暗いフィルターを少し明るく・綺麗にする --- */
a.top-menulist {
    /* 現在かかっている黒いフィルターを少し薄くして、画像を綺麗に見せる（0.4の部分で濃さを調整） */
    background-color: rgba(0, 0, 0, 0.4) !important; 
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
}

/* --- 4. マウスを乗せたときにさらに画像を明るくする --- */
a.top-menulist:hover {
    background-color: rgba(0, 0, 0, 0.1) !important; /* ホバー時はフィルターをさらに薄く */
}

/* --- 5. おまけ：一番上の「ご注文の流れ」の画像も形を合わせる --- */
a.muryosindant img {
    border-radius: 15px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 15px !important;
}
a.muryosindant img:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}
/* --- 新着記事・人気記事のリストを「高さを揃えて綺麗に」 --- */

/* 1. カード全体（高さと余白をキュッと縮める） */
.widget-entry-card {
    display: flex !important;
    align-items: center !important; 
    padding: 8px 12px !important; /* ★上下の余白を8pxに減らす（前回は上下左右12px） */
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease !important;
    
    height: 80px !important; /* ★カードの高さを大幅にカット（前回110px → 今回80px） */
    box-sizing: border-box !important; 
}

/* 2. 画像（サムネイル）エリア */
.widget-entry-card-thumb {
    float: none !important; 
    width: 85px !important;
    min-width: 85px !important;
    height: auto !important;
    margin: 0 15px 0 0 !important; 
    flex-shrink: 0 !important;
}

/* 画像自体の歪み防止 */
.widget-entry-card-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

/* 3. テキスト（文字）エリア */
.widget-entry-card-content {
    float: none !important; 
    margin: 0 !important; 
    width: 100% !important;
    min-height: 0 !important;
    flex: 1 !important; 
    display: flex !important; 
    flex-direction: column !important;
    justify-content: center !important;
}

/* 4. 記事タイトル（長すぎる場合は「...」にする） */
.widget-entry-card-title {
    font-size: 14px !important; 
    line-height: 1.4 !important; /* ★行間を少し詰める */
    font-weight: bold !important;
    color: #333333 !important;
    margin: 0 !important; /* ★タイトルの下の余白をゼロにする */
    transition: all 0.3s ease !important;
    
    /* 文字が長すぎる場合は「3行」でカット */
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important; 
    overflow: hidden !important;
}

/* 5. 日付など（もし表示される場合の設定） */
.widget-entry-card-date,
.widget-entry-card-pv {
    color: #888888 !important;
    font-size: 11px !important; 
    margin: 0 !important; 
}

/* 6. ホバー時の動き */
.widget-entry-card-link:hover .widget-entry-card {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
    border-color: #3eb370 !important;
}
.widget-entry-card-link:hover .widget-entry-card-title {
    color: #1a4313 !important;
}
/* --- お問い合わせボタンの完全固定スタイリング --- */
a.foot-contact {
    display: flex !important; /* flexboxを使って文字をど真ん中に固定 */
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    
    width: 100% !important;
    max-width: 280px !important; /* ボタンの最大幅 */
    height: 55px !important; /* ★高さを固定して巨大化を完全に防ぐ */
    margin: 20px auto !important; /* 上下余白と中央寄せ */
    padding: 0 !important; 
    
    background-color: #3eb370 !important; /* 清潔感のある緑 */
    background-image: none !important; 
    
    color: #ffffff !important; /* 文字は真っ白 */
    border: 2px solid #3eb370 !important; 
    border-radius: 30px !important; /* 綺麗な丸み */
    
    font-size: 16px !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important; /* 文字の間隔を少し開けて上品に */
    text-decoration: none !important;
    text-shadow: none !important; /* ★不気味な黒い影を消し去る */
    line-height: 1 !important; /* ★テーマの行高設定をリセット */
    
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important; /* 柔らかい影 */
    transition: all 0.3s ease !important;
}

/* --- マウスを乗せたとき（ホバー時）の動き --- */
a.foot-contact:hover {
    background-color: #ffffff !important; /* 背景を白に反転 */
    color: #3eb370 !important; /* 文字を緑に反転 */
    transform: translateY(-3px) !important; /* フワッと上に浮く */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important; /* 影を濃くする */
}
/* --- 新着記事・人気記事エリアの不要なスクロールバーを消去 --- */
.widget-entry-cards,
.new-entry-cards,
.popular-entry-cards {
    overflow: visible !important; /* スクロールバーを無効化 */
    max-height: none !important; /* 最大高さの制限を解除 */
    height: auto !important; /* 高さを内容に合わせて自動調整 */
}
/* --- フッターの会社情報・営業時間をカッコよく --- */

/* 全体の枠組み（うっすら透明な枠をつけてカード風に） */
.footer-shop-info {
    background: rgba(255, 255, 255, 0.08) !important; /* うっすら白い背景 */
    padding: 20px !important;
    border-radius: 8px !important; /* 角丸 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    text-align: left !important;
    margin: 20px auto !important;
    max-width: 400px !important;
}

/* 会社名 */
.footer-shop-info .shop-name {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    color: #ffffff !important;
    letter-spacing: 0.1em !important;
}

/* 住所（アイコン付き） */
.footer-shop-info .shop-address {
    font-size: 14px !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
}
.footer-shop-info .shop-address .fa-map-marker {
    color: #3eb370 !important; /* ピンのアイコンを緑に */
    margin-right: 5px !important;
}

/* 営業時間の表（テーブル） */
.footer-shop-info .shop-hours {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 15px !important;
    background: transparent !important;
    border: none !important;
}
.footer-shop-info .shop-hours th,
.footer-shop-info .shop-hours td {
    padding: 8px 0 !important;
    border: none !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3) !important; /* 薄い点線で区切る */
    font-size: 14px !important;
    color: #ffffff !important;
    background: transparent !important;
}
.footer-shop-info .shop-hours th {
    text-align: left !important;
    font-weight: normal !important;
}
.footer-shop-info .shop-hours td {
    text-align: right !important; /* 時間は右寄せで揃える */
    font-weight: bold !important;
}

/* 一番下のリンク */
.footer-shop-info .shop-link {
    text-align: right !important;
    margin-top: 10px !important;
}
.footer-shop-info .shop-link a {
    color: #3eb370 !important; /* リンクを緑に */
    text-decoration: none !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
}
.footer-shop-info .shop-link a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}
/* --- フッター営業時間の「白塗り（しましま）」を強制解除 --- */
.footer-shop-info .shop-hours tr,
.footer-shop-info .shop-hours tr:nth-child(odd),
.footer-shop-info .shop-hours tr:nth-child(even) {
    background-color: transparent !important; /* 背景を完全に透明にする */
}
/* ============================================================
   1. 「青畳工房のメニュー」専用（PC・スマホ共通デザイン）
   ※ここは透明背景のスタイリッシュな見た目を維持します
============================================================ */
.widget-page-content-bottom-title.main-widget-label {
    background: transparent !important;
    background-color: transparent !important;
    color: #333333 !important;
    padding: 15px 0 !important;
    border: none !important;
    border-top: 2px solid #3eb370 !important; /* 上の緑線 */
    border-bottom: 2px solid #3eb370 !important; /* 下の緑線 */
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* ============================================================
   2. フッターの「人気記事・新着記事・お問い合わせ」専用
============================================================ */

/* --- PC版の見栄え（背景透明・文字は白/または濃いグレー） --- */
@media screen and (min-width: 1024px) {
  .footer-title,
  #footer .widget-title {
    background: transparent !important;
    color: #ffffff !important; /* PCは背景が暗いので文字は白を維持 */
    border-top: 2px solid #3eb370 !important;
    border-bottom: 2px solid #3eb370 !important;
    padding: 15px 0 !important;
    text-align: center !important;
  }
}

/* --- スマホ版の見栄え（ここだけ背景を付けて読みやすくします） --- */
@media screen and (max-width: 1023px) {
  /* スマホ版のフッター見出しのみ背景を濃いグレーにする */
  .footer-mobile .footer-title,
  .footer-widgets-mobile .footer-title,
  .footer-widgets-mobile h3,
  .widget-footer-mobile-title,
  #footer .widget-title,
  #footer .footer-title {
    background-color: #333333 !important; /* 背後の画像を隠すための背景色 */
    background-image: none !important;
    color: #ffffff !important;           /* 文字は白 */
    padding: 12px 0 !important;
    border: none !important;
    border-top: 2px solid #3eb370 !important;
    border-bottom: 2px solid #3eb370 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    text-shadow: none !important;
    margin-bottom: 20px !important;
  }
}

/* =============================
   3. 全ての不要な装飾（下線など）をリセット
============================= */
.footer-mobile .footer-title::after,
.footer-widgets-mobile .footer-title::after,
.widget-footer-mobile-title::after,
.widget-page-content-bottom-title.main-widget-label::after,
#footer .widget-title::after {
    display: none !important;
}