/* =============================
   共通設定
============================= */
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;
}
