/* ==========================
   MB POST - 独立スタイル（安定版 / 屋根・楕円なし）
   目的：
   - POSTだけで背景/フォーム/ボタンを完結
   - 共通CSSの「白背景」「section背景」「ボタン」干渉を遮断
   - まず表示をきれいに（装飾は最小）
   ========================== */

/* ---- tokens ---- */
:root{
  --post-ink: #0b2a55;
  --post-muted: #6b7a90;
  --post-white: #ffffff;
  --post-accent: #ff7a1a;

  --post-bg1: #7fc8f8;
  --post-bg2: #4fa3e3;

  --post-line: rgba(11,42,85,.16);
  --post-shadow: 0 24px 60px rgba(0,0,0,.28);
  --post-shadow-soft: 0 16px 40px rgba(0,0,0,.18);
}

/* ==========================
   1) 背景：POSTだけで管理
   ========================== */
html, body{
  height: 100%;
  overflow-x: hidden;
}

.post-body{
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  background: linear-gradient(180deg, var(--post-bg1) 0%, var(--post-bg2) 100%) !important;
}

/* 共通CSSの白塗り対策（POST領域だけ透明化） */
.post-body main,
.post-body .mb-post,
.post-body .post-section{
  background: transparent !important;
}

/* container / section を透明化するのは POST 内だけ */
.post-body .mb-post .container,
.post-body .mb-post .section,
.post-body .mb-post .wrap{
  background: transparent !important;
}

/* ==========================
   2) レイアウト
   ========================== */
.post-section{
  min-height: calc(100vh - 72px); /* ヘッダー分ざっくり */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ==========================
   3) ポスト本体（角丸カード：安定表示最優先）
   ========================== */
.post-box{
  width: 100%;
  max-width: 720px;
  padding: 28px 22px;
  border-radius: 28px;

  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08)),
              linear-gradient(180deg, #6fd0ff 0%, #2aa7e8 100%);
  border: 1px solid rgba(255,255,255,.35);

  box-shadow: var(--post-shadow);
}

/* 余計な疑似要素は一切使わない */
.post-box::before,
.post-box::after{
  content: none !important;
  display: none !important;
}

/* ==========================
   4) タイトル
   ========================== */
.post-title{
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: .04em;
}

.post-plate{
  display: inline-block;
  margin-left: 10px;
  padding: 6px 12px;
  border-radius: 999px;

  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255,230,120,.95);

  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.22);
}

.post-lead{
  margin: 0 0 16px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.7;
}

/* ==========================
   5) 投函口（シンプル線だけ）
   ========================== */
.post-slot{
  margin: 10px 0 16px;
}

.post-slot::before,
.post-slot::after{
  content: none !important;
  display: none !important;
}

.post-slot-line{
  display:block;
  width: 100%;
  max-width: 520px;
  height: 10px;
  margin: 0 auto;
  border-radius: 999px;

  background: rgba(0,0,0,.28);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45);
}

/* ==========================
   6) フォーム（白カード）
   ========================== */
.post-form{
  background: rgba(255,255,255,.95);
  border-radius: 20px;
  padding: 16px 16px 18px;
  box-shadow: var(--post-shadow-soft);
  color: #111;
}

.post-form .form-group{
  margin: 0 0 12px;
}

.post-form label{
  display:block;
  margin: 0 0 6px;
  color: #223;
  font-weight: 800;
  font-size: 13px;
}

.post-form input,
.post-form textarea{
  width: 100%;
  box-sizing: border-box;

  background: #fff;
  border: 1px solid var(--post-line);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #111;
  outline: none;
}

.post-form textarea{
  min-height: 170px;
  resize: vertical;
}

.post-form input:focus,
.post-form textarea:focus{
  border-color: rgba(11,42,85,.35);
  box-shadow: 0 0 0 4px rgba(76,194,255,.22);
}

/* ==========================
   7) ボタン（共通CSSに勝つ）
   - “紺ボタンの文字が消える”系の事故を潰す
   ========================== */
.form-actions{
  display:flex;
  gap: 10px;
  justify-content:center;
  margin-top: 14px;
  flex-wrap:wrap;
}

.btn,
button.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;

  padding: 10px 16px;
  border-radius: 999px;
  text-decoration:none;
  cursor:pointer;

  font-weight: 900;
  font-size: 13px;
  line-height: 1;

  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #111 !important;

  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: currentColor;
}

.btn.primary,
.btn-primary{
  background: var(--post-accent) !important;
  color: #fff !important;
  border-color: rgba(0,0,0,.08) !important;
  -webkit-text-fill-color: #fff;
}

.btn.ghost,
.btn-ghost{
  background: rgba(255,255,255,.86) !important;
  color: #111 !important;
  -webkit-text-fill-color: #111;
}

/* hover（任意） */
.btn:hover{
  transform: translateY(-1px);
}
.btn:active{
  transform: translateY(0);
}

/* ==========================
   8) ヘッダーのクリック不能保険
   ========================== */
.site-header{
  position: relative;
  z-index: 50;
}
.site-header a,
.site-header button{
  pointer-events: auto;
}

/* ==========================
   9) モバイル
   ========================== */
@media (max-width: 520px){
  .post-title{ font-size: 24px; }
  .post-box{ border-radius: 22px; padding: 22px 16px; }
  .post-form{ border-radius: 18px; }
}


/* ==== 楕円（謎の装飾）撲滅：POSTページ限定で疑似要素を全停止 ==== */
.post-body::before,
.post-body::after,
.post-body main::before,
.post-body main::after,
.post-body .mb-post::before,
.post-body .mb-post::after,
.post-body .post-section::before,
.post-body .post-section::after{
  content: none !important;
  display: none !important;
}

/* 念のため：絶対配置の装飾レイヤーが居たら背面へ */
.post-body .mb-post,
.post-body .post-section,
.post-body .post-box{
  position: relative;
  z-index: 1;
}

/* POSTページではsticky CTAを無効化（クリック阻害対策） */
.post-body .mb-sticky,
.post-body .mb-sticky-panel{
  display: none !important;
}