/* ================================
   スクロールロック（共通）
================================ */
html.ptm-lock,
html.ptm-lock body {
  overflow: hidden;
}

/* ================================
   背景オーバーレイ（共通）
================================ */
.ptm-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  background: rgba(0,0,0,0.55);
}

.ptm-overlay.is-open {
  display: flex;
}

/* ================================
   モーダル共通ベース
================================ */
.ptm-modal {
  position: relative;
  aspect-ratio: 100 / 148;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,0.32);

  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity .22s ease, transform .22s ease;
}

.ptm-overlay.is-open .ptm-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* サイズ */
@media (min-width: 768px) {
  .ptm-modal {
    width: min(430px, 85vw);
  }
}
@media (max-width: 767px) {
  .ptm-modal {
    width: 90vw;
  }
}

/* ================================
   ▼ 通常テーマ
================================ */
.ptm-modal.ptm-theme-default {
  background: #fff;
}

/* ================================
   ▼ お正月テーマ
================================ */
.ptm-modal.ptm-theme-newyear {
  background-image: url("/sorazine/wp-content/uploads/2025/12/ChatGPT-Image-2025年12月22日-12_59_02.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.ptm-theme-newyear .ptm-thumb {
  display: none;
}

/* ================================
   内側レイアウト（共通）
================================ */
.ptm-inner {
  position: relative;
  height: 100%;
  padding: 17px 25px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ================================
   コンテンツ（共通）
================================ */
.ptm-content {
	position: relative;
    text-align: center;
    display: flex;
    width: 100%;
    height: 55%;
    max-width: 380px;
    padding: 0px 22px;
    color: #000;
    align-content: flex-end;
    flex-direction: column;
    justify-content: space-evenly;
}

/* ===== 文字背景ぼかし（共通） ===== */
.ptm-content::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  background: rgba(255,255,255,0.85);
  filter: blur(14px);
  border-radius: 22px;
}

/* ================================
   タイトル（共通）
================================ */
.ptm-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  font-family: 'MyBrush', serif;
  font-weight: 700;
}

/* ================================
   アイキャッチ（共通）
================================ */
.ptm-thumb {
  margin: 0 auto 18px;
  aspect-ratio: 4 / 2;
  overflow: hidden;
}
.ptm-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================
   本文・CTA（共通）
================================ */
.ptm-body {
    margin: 0 0 5px;
    font-size: 0.85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;
    font-family: serif;
}

.ptm-actions {
  display: flex;
  justify-content: center;
}

.ptm-link {
  padding: 12px 26px;
  border-radius: 999px;
  background: #c00;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* ================================
   閉じる（共通）
================================ */
.ptm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.85);
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
}

/* ================================
   SP調整（共通）
================================ */
@media (max-width: 767px) {
  .ptm-title { font-size: 1.2rem; }
  .ptm-body  { 
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        overflow: hidden;
	}
  .ptm-thumb { width: 100%; }
  .ptm-link  { font-size: 0.7rem; padding: 8px 16px; }
}
