/* ================================================================
   femizemi-cafe theme — magazine.css
   マガジン準備中ページ。他サブページと同じ骨格（page-hero / content）＋準備中カード。
   共通トークン・header/footer は main.css を使用。body 背景のみミントに上書き。
   ================================================================ */
body { background: #D4E8E3; }
a { color: inherit; }

/* ── 他サブページと共通の骨格 ───────────────── */
.page-hero { padding: 3.5rem 2rem 2rem; max-width: 800px; margin: 0 auto; }
.eyebrow { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.75rem; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.3; }
.content { max-width: 800px; margin: 0 auto; padding: 0 2rem 5rem; }

/* ── 準備中カード ───────────────────────────── */
.mag-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2.75rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* マガジンパネルと同じ蔓・葉の装飾を隅に控えめに */
.mag-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 190px;
  height: 190px;
  background: url('../img/panel_mint_magazine.png') no-repeat right bottom / contain;
  opacity: 0.45;
  pointer-events: none;
}
.mag-card > * { position: relative; z-index: 1; }

.mag-badge {
  display: inline-block;
  background: var(--yellow);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 100px;
  padding: 0.3rem 1.1rem;
  margin-bottom: 1.35rem;
}

.mag-lead {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 2;
  margin: 0 auto 1.85rem;
  max-width: 34rem;
}

.mag-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 0.1rem;
  transition: opacity 0.15s;
}
.mag-back:hover { opacity: 0.7; }

@media (max-width: 560px) {
  .mag-card { padding: 2rem 1.25rem; }
  .mag-card::after { width: 120px; height: 120px; opacity: 0.35; }
  .mag-lead { font-size: 0.9rem; }
}

/* ================================================================
   記事一覧（マガジン）／記事ページ
   サイトのデザイン言語で独自設計：ミント地・白カード・角丸14px・淡い影、
   見出しアクセントはマガジン色 --yellow、絵文字タイルはヒーローと同系の淡グラデ。
   ================================================================ */

/* ── 記事一覧 ── */
.mag-list { margin-top: 3rem; }
.mag-list-h2 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; color: var(--deep);
  border-left: 4px solid var(--yellow); padding-left: 0.8rem; margin-bottom: 1.5rem;
}
.mag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }

.mag-item {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-decoration: none; color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mag-item:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.12); }

/* 絵文字タイル（正方形・アイキャッチ不要） */
.mag-item-emoji {
  height: 128px; /* カード幅いっぱいの正方形にせず、低いタイルで一覧性を保つ */
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1;
  background: linear-gradient(160deg, #EAF3EB 0%, #F8F7F4 55%, #FDF6EE 100%);
  border-bottom: 1px solid var(--border);
}

.mag-item-body { padding: 1rem 1.1rem 0.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.mag-item-title {
  font-size: 0.95rem; font-weight: 700; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mag-chip {
  display: inline-block; align-self: flex-start; white-space: nowrap;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--sage-dark); background: #e8f0e8; border-radius: 100px; padding: 0.16rem 0.6rem;
}

/* ── 投稿者行（カード下段／記事ページ共通） ── */
.fz-author { display: flex; align-items: center; gap: 0.5rem; }
.mag-item .fz-author { padding: 0.6rem 1.1rem 1rem; }
.fz-avatar {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.fz-avatar-img { width: 28px; height: 28px; border-radius: 50%; display: block; }
.fz-author-name {
  font-size: 0.75rem; color: var(--text-mid); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fz-author-date { font-size: 0.7rem; color: var(--text-light); margin-left: auto; white-space: nowrap; }

/* ── ページネーション ── */
.mag-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; font-size: 0.82rem; }
.mag-pager-link { color: var(--deep); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--sage); padding-bottom: 0.1rem; }
.mag-pager-link:hover { opacity: 0.7; }
.mag-pager-status { color: var(--text-light); }

/* ── 記事ページ ── */
.post-article { max-width: 720px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }
.post-head {
  background: var(--white); border-radius: 14px; padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; margin-bottom: 1.75rem;
}
.post-emoji {
  display: flex; width: 96px; height: 96px; margin: 0 auto 1.1rem;
  align-items: center; justify-content: center; font-size: 3rem; line-height: 1;
  border-radius: 14px; background: linear-gradient(160deg, #EAF3EB 0%, #FDF6EE 100%);
}
.post-chips { margin-bottom: 0.75rem; }
.post-title { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; line-height: 1.45; margin-bottom: 1.1rem; color: var(--text); }
.post-head .fz-author { justify-content: center; }
.post-head .fz-author-date { margin-left: 0; }

.post-body {
  background: var(--white); border-radius: 14px; padding: 2.25rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  font-size: 0.95rem; line-height: 1.9; color: var(--text-mid);
}
.post-body > *:last-child { margin-bottom: 0; }
.post-body p { margin-bottom: 1.2rem; }
.post-body h2 { font-size: 1.15rem; font-weight: 700; color: var(--deep); line-height: 1.5; margin: 2rem 0 0.9rem; padding-left: 0.7rem; border-left: 4px solid var(--sage); }
.post-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.5; margin: 1.6rem 0 0.7rem; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.4rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body blockquote {
  margin: 0 0 1.2rem; padding: 0.9rem 1.2rem; border-left: 3px solid var(--border);
  background: var(--bg); border-radius: 0 10px 10px 0; color: var(--text-light);
}
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body a { color: var(--sage-dark); text-decoration: underline; }
.post-body a:hover { color: var(--deep); }
.post-back { text-align: center; margin-top: 2rem; }

@media (max-width: 560px) {
  .post-article { padding: 2rem 1.25rem 3rem; }
  .post-head, .post-body { padding: 1.5rem 1.25rem; }
  .post-emoji { width: 76px; height: 76px; font-size: 2.4rem; }
}
.fz-by { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-light); }

/* ── 有料会員限定（Simple Membership 連携） ── */
.mag-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mag-chip--paid { color: #7A5B00; background: #FBF0C6; }

/* 目次（施錠時のみ表示） */
.post-toc {
  background: var(--white); border-radius: 14px; padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 1.25rem;
}
.post-toc-h2 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; color: var(--deep);
  border-left: 4px solid var(--yellow); padding-left: 0.7rem; margin-bottom: 1rem;
}
.post-toc-list { margin: 0; padding-left: 1.4rem; }
.post-toc-item { font-size: 0.92rem; line-height: 1.9; color: var(--text-mid); margin-bottom: 0.35rem; }
.post-toc-item--h3 { margin-left: 1rem; font-size: 0.86rem; color: var(--text-light); }

/* 会員限定の案内カード */
.post-locked {
  background: var(--white); border-radius: 14px; padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center;
  border-top: 4px solid var(--yellow);
}
.post-locked-icon { font-size: 2rem; line-height: 1; display: block; margin-bottom: 0.8rem; }
.post-locked-notice { font-size: 0.92rem; line-height: 1.9; color: var(--text-mid); margin: 0 auto 1.4rem; max-width: 30rem; }
.post-locked-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin: 0; }
.post-btn {
  display: inline-block; padding: 0.6rem 1.5rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: opacity 0.15s;
}
.post-btn:hover { opacity: 0.85; }
.post-btn--primary { background: var(--deep); color: #fff; }
.post-btn--outline { background: transparent; color: var(--deep); border: 1.5px solid var(--deep); }

/* ── 検討用プレビュー ── */
.mag-chip--private { color: #5A5A5A; background: #E6E4DC; }
.mag-preview-note {
  font-size: 0.78rem; color: var(--text-light);
  background: var(--white); border-left: 3px solid var(--border);
  border-radius: 0 10px 10px 0; padding: 0.6rem 1rem; margin-bottom: 1.5rem;
}
