/* ============================================================
   1. 共通設定 & 余白リセット
============================================================ */
html, body, #container, header, .header, #header, .header-in, #header-in, .logo-header {
    margin-top: 26px !important; /* ★ 26 を 0 に変更（px忘れも解消） */
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none !important;
}

header { margin-top: 30px; } /* ★ 10px から 0px に変更し、上の設定と統一 */
.grecaptcha-badge { visibility: hidden; }

/* 全ての不要な装飾（下線など）をリセット */
.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;
}

.sidebar-scroll .widget_text,
.footer-widgets .widget_text {
    background-color: transparent !important; 
    border: none !important;                
    box-shadow: none !important;            
    padding: 0 !important;                  
}


/* ============================================================
   2. スマホ上部固定メニュー ＆ ヘッダー余白調整
============================================================ */
@media screen and (max-width: 1023px) {
    /* 固定メニューの高さ(65px)ぴったりにロゴを配置 */
    #header-container, 
    .admin-bar #header-container {
        margin-top: 65px !important; /* ★ メニューの高さぴったりに合わせる */
        padding-top: 15px !important; /* ★ ここでロゴの上に少し余裕（空間）を作る */
    }

    .site-logo-image {
        margin-top: 0 !important;
        vertical-align: bottom;
    }
    
    /* ★ ロゴと下のテキスト（中国産い草を一切〜）の間に少し隙間を作る */
    .header-in {
        padding-bottom: 10px !important; 
    }

    /* メニュー本体 */
    #menu-pc-header-menu-1.mobile-header-menu-buttons {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 65px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        z-index: 999999 !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
        border-bottom: 2px solid #3eb370 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .admin-bar #menu-pc-header-menu-1.mobile-header-menu-buttons { 
        top: 46px !important; 
    }

    .mobile-header-menu-buttons .menu-button {
        flex: 1 !important;
        border-right: 1px solid #f8f8f8 !important;
    }

    .mobile-header-menu-buttons .fa-star { display: none !important; }
    
    .mobile-header-menu-buttons .menu-icon::before {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 20px;
        color: #3eb370;
        display: block;
        margin-bottom: 2px;
        transition: transform 0.3s ease;
    }
    
    .mobile-header-menu-buttons .menu-button:nth-child(1) .menu-icon::before { content: "\f0ae"; }
    .mobile-header-menu-buttons .menu-button:nth-child(2) .menu-icon::before { content: "\f157"; }
    .mobile-header-menu-buttons .menu-button:nth-child(3) .menu-icon::before { content: "\f54e"; }
    .mobile-header-menu-buttons .menu-button:nth-child(4) .menu-icon::before { content: "\f0eb"; }
    .mobile-header-menu-buttons .menu-button:nth-child(5) .menu-icon::before { content: "\f1d8"; }

    .mobile-header-menu-buttons .menu-caption {
        font-size: 10px !important; 
        font-weight: 700 !important; 
        color: #444 !important;
        letter-spacing: 0.03em !important;
    }
    
    .mobile-header-menu-buttons .menu-button-in {
        display: flex !important; flex-direction: column !important;
        align-items: center !important; justify-content: center !important;
        height: 100% !important; text-decoration: none !important;
    }

    .mobile-header-menu-buttons .menu-button-in:active {
        transform: scale(0.95);
        transition: 0.1s;
    }
}

/* PC表示（1024px以上）リセット */
@media screen and (min-width: 1024px) {
    #menu-pc-header-menu-1.mobile-header-menu-buttons { display: none !important; }
    #header-container { 
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body { padding-top: 0 !important; }
}


/* ============================================================
   3. ブログ見出し（H2）
============================================================ */
.article h2 {
    color: #333 !important; 
    background: #f9fdfa !important;
    padding: 15px 20px !important; 
    border-left: 10px solid #3eb370 !important;
    border-bottom: 1px solid #e0e0e0 !important; 
    border-radius: 2px 8px 8px 2px !important;
    font-size: 22px !important;
    font-weight: 700 !important; 
    line-height: 1.4 !important;
    margin: 45px 0 25px 0 !important; 
    box-shadow: 2px 2px 5px rgba(0,0,0,0.02) !important;
}

.article h2::before, .article h2::after {
    display: none !important; 
}

@media screen and (max-width: 480px) {
    .article h2 {
        font-size: 19px !important;
        padding: 10px 15px !important;
    }
}


/* ============================================================
   4. 記事下：お問い合わせ＆エリア
============================================================ */
.ao-action-section { 
    margin: 50px 0; 
    border-top: 1px solid #eee; 
    padding-top: 40px; 
    font-family: sans-serif;
}

.ao-btn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.ao-custom-btn {
    display: flex !important; 
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: center !important;
    padding: 22px 10px !important; 
    border-radius: 15px !important;
    text-decoration: none !important; 
    color: #fff !important;
    font-weight: bold; 
    transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.ao-custom-btn i { font-size: 26px; margin-bottom: 10px; }
.ao-custom-btn span { font-size: 13px; font-weight: bold; }
.ao-custom-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.ao-tel  { background: linear-gradient(135deg, #19448e 0%, #0d2a5e 100%) !important; }
.ao-line { background: linear-gradient(135deg, #06C755 0%, #05a647 100%) !important; }
.ao-mail { background: linear-gradient(135deg, #444444 0%, #222222 100%) !important; }

.ao-area-box {
    background: #fdfdfb !important; 
    border: 1px solid #e2e2d0 !important;
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.ao-area-header {
    background: #4a6741; 
    color: #fff; 
    padding: 12px 20px; 
    font-weight: 900; 
    font-size: 16px;
    letter-spacing: 0.05em;
}

.ao-area-body { padding: 25px; }
.ao-area-group { 
    margin-bottom: 20px !important; 
    line-height: 1.9 !important; 
    font-size: 14px !important; 
    color: #444; 
}

.ao-label {
    display: inline-block; 
    font-size: 11px; 
    background: #4a6741; 
    color: #fff;
    padding: 2px 10px; 
    border-radius: 4px; 
    margin-right: 10px; 
    font-weight: bold;
    vertical-align: middle;
}

.ao-area-group a { color: #3eb370; text-decoration: none; font-weight: bold; border-bottom: 1px solid #eee; }
.ao-area-group a:hover { background: #ebf8f4; }
.ao-area-note { font-size: 11px !important; color: #999; text-align: center; margin: 0 !important; }
.ao-footer-copy { text-align: center; font-size: 13px; color: #888; margin-top: 30px; line-height: 1.6; }

@media screen and (max-width: 600px) {
    .ao-btn-grid { grid-template-columns: 1fr; gap: 10px; }
    .ao-custom-btn { flex-direction: row !important; padding: 18px !important; }
    .ao-custom-btn i { margin: 0 15px 0 0; font-size: 20px; }
    .ao-label { display: block; width: fit-content; margin-bottom: 5px; }
}


/* ============================================================
   5. LINE モーダル（スマホ用） & 各種LINEバナー
============================================================ */
/* --- 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; }
.line-modal .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;
}
.line-modal .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;
}
.line-modal .note { font-size: 12px; color: #666; margin-top: 8px; }

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; justify-content: center; 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; margin: 0 auto; box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  }
  .line-banner-qr {
    flex-shrink: 0; width: 110px; height: auto; border-radius: 8px; object-fit: contain; align-self: flex-end; 
  }
  .line-banner-text {
    flex: 1; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; align-items: flex-start; 
  }
  .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; 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;        
  }
  .line-banner-text p { font-size: 15px; color: #333; margin: 4px 0; }
}

/* --- 投稿本文下 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-unified .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;
}
.line-banner-unified .btn-line:hover { opacity: 0.85; }
.line-banner-unified .note { font-size: 12px; color: #555; margin-top: 6px; }

@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; }
  
  .line-banner-unified .line-banner-inner { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .line-banner-unified .line-banner-qr { width: 160px; margin-bottom: 10px; }
  .line-banner-unified .line-banner-text { text-align: center; justify-content: center; }
  .line-banner-unified .line-banner-text h2 { font-size: 18px; padding: 8px 12px; line-height: 1.5; }
  .line-banner-unified .line-banner-text p { font-size: 14px; }
  .line-banner-unified .btn-line { font-size: 14px; padding: 10px 16px; }
}
body.modal-open .line-banner-unified { display: none; }


/* ============================================================
   6. スマホ最下部：固定ボタン（プレミアム版）
============================================================ */
.aodatami-footer-fixed {
  display: flex !important; position: fixed !important; bottom: 0 !important; left: 0 !important;
  width: 100% !important; height: 65px !important; z-index: 9999999 !important; margin: 0 !important; padding: 0 !important;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.3) !important;
}
.aodatami-btn {
  flex: 1 !important; display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  text-decoration: none !important; color: #ffffff !important; line-height: 1.3 !important;
}
.aodatami-btn-tel { 
  background: linear-gradient(135deg, #001a4d 0%, #003399 100%) !important; 
  border-right: 1px solid rgba(255,255,255,0.2) !important;
}
.aodatami-btn-line { background: linear-gradient(135deg, #06C755 0%, #05a647 100%) !important; }

.aodatami-btn-sub { font-size: 10px !important; opacity: 0.9 !important; margin-bottom: 2px !important; }
.aodatami-btn-main { 
  font-size: 16px !important; font-weight: 900 !important; 
  letter-spacing: 0.05em !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important; 
}
.aodatami-btn-main i { margin-right: 5px; font-size: 1.1em; vertical-align: middle; }

.mobile-footer-menu-buttons, .go-to-top { display: none !important; }
body { padding-bottom: 65px !important; }


/* ============================================================
   7. メニュー（青畳工房） & ご注文の流れバナー
============================================================ */
.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; display: block !important; width: 100% !important;
}

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; 
}
h3.jisseki:hover, h3.nagare:hover, h3.ryokin:hover, h3.jigyo:hover, h3.situmon:hover, h3.toiawase:hover {
    transform: translateY(-5px) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important; 
}
a.top-menulist {
    background-color: rgba(0, 0, 0, 0.4) !important; border-radius: 15px !important; transition: all 0.3s ease !important;
}
a.top-menulist:hover { background-color: rgba(0, 0, 0, 0.1) !important; }

/* ご注文の流れ */
.muryosindant {
  display: block !important; position: relative !important; overflow: hidden !important;
}
.muryosindant::after {
  content: "ご注文の流れ" !important; position: absolute !important; top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important; color: #ffffff !important; font-size: clamp(24px, 4vw, 36px) !important;
  font-weight: 900 !important; text-shadow: 0 0 15px rgba(0,0,0,1), 0 0 5px rgba(0,0,0,1) !important;
  z-index: 10 !important; white-space: nowrap !important; pointer-events: none !important;
}
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;
}

@media screen and (min-width: 1025px) {
  .muryosindant {
    width: calc(100% - 14px) !important; max-width: 1100px !important; height: 250px !important;
    margin: 0 auto 40px auto !important; border-radius: 15px !important; position: relative !important;
    overflow: hidden !important; box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
  }
  .muryosindant img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; display: block !important; }
  
  h3.jisseki, h3.nagare, h3.ryokin, h3.jigyo, h3.situmon, h3.toiawase {
    width: calc(50% - 15px) !important; margin: 10px 7px !important; display: inline-block !important; vertical-align: top !important; height: 120px !important;
  }
  a.top-menulist {
    height: 100% !important; display: flex !important; align-items: center !important;     
    justify-content: center !important; padding: 15px !important; box-sizing: border-box !important;  
  }
}
@media screen and (max-width: 1024px) {
  .muryosindant {
    width: 94% !important; margin: 0 auto 20px auto !important; height: 120px !important; border-radius: 15px !important;
  }
  .muryosindant img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 15px !important; }
}


/* ============================================================
   8. 新着記事・人気記事リスト
============================================================ */
.widget-entry-card {
    display: flex !important; align-items: center !important; padding: 8px 12px !important; 
    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; box-sizing: border-box !important; 
}
.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;
}
.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;
}
.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; display: -webkit-box !important;
    -webkit-box-orient: vertical !important; -webkit-line-clamp: 3 !important; overflow: hidden !important;
}
.widget-entry-card-date, .widget-entry-card-pv {
    color: #888888 !important; font-size: 11px !important; margin: 0 !important; 
}
.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; }

.widget-entry-cards, .new-entry-cards, .popular-entry-cards {
    overflow: visible !important; max-height: none !important; height: auto !important; 
}


/* ============================================================
   9. フッター（会社情報・タイトル）
============================================================ */
a.foot-contact {
    display: flex !important; 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; 
}

.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; }

@media screen and (min-width: 1024px) {
  .footer-title, #footer .widget-title {
    background: transparent !important; color: #ffffff !important; 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;
  }
}
