/*
 * single.css — お知らせ詳細(single.php)用スタイル
 * 参考サイトの news 詳細を自前クラスで再現（元の任意Tailwindクラスは未コンパイルのため）。
 * 本文(.single-content)は本文エディタ(the_content)出力の h2/h3/h4/p/ul/ol/img を汎用セレクタで装飾。
 * 色: primary #00584c / primary-light #4cb75d / 本文 #464646
 */

/* ヒーロー(#f6f6f6の角丸ストリップ)と本文を繋ぐ白い角丸オーバーラップ */
#news-detail { position: relative; }
.sl-news-round { position: absolute; left: 0; right: 0; top: -60px; height: 60px; background: #fff; border-radius: 60px 60px 0 0; pointer-events: none; }

/* 本文セクションの上下パディング（参考: pt 0→20px / pb 48→110px） */
.sl-news-body { padding-top: 0; padding-bottom: 48px; }
@media (min-width: 1024px) { .sl-news-body { padding-top: 5px;  padding-bottom: 70px; } }
@media (min-width: 1280px) { .sl-news-body { padding-top: 10px; padding-bottom: 90px; } }
@media (min-width: 1536px) { .sl-news-body { padding-top: 20px; padding-bottom: 110px; } }

/* 全体ラッパー */
.sl-news { width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; }
@media (min-width: 768px)  { .sl-news { max-width: 600px; gap: 48px; } }
@media (min-width: 1024px) { .sl-news { max-width: 800px; } }
@media (min-width: 1280px) { .sl-news { gap: 64px; } }

/* ヘッダー（タイトル + バッジ/日付） */
.sl-news__header { width: 100%; border-bottom: 1px solid #00584c; padding-bottom: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px)  { .sl-news__header { padding-bottom: 24px; gap: 24px; } }
@media (min-width: 1280px) { .sl-news__header { padding-bottom: 32px; gap: 32px; } }

.sl-news__title { color: #00584c; font-weight: 700; line-height: 1.5; white-space: pre-line; font-size: 20px; margin: 0; }
@media (min-width: 768px)  { .sl-news__title { font-size: 26px; } }
@media (min-width: 1024px) { .sl-news__title { font-size: 31px; } }
@media (min-width: 1280px) { .sl-news__title { font-size: 41px; } }

.sl-news__meta { display: flex; align-items: center; gap: 10px; }
@media (min-width: 1280px) { .sl-news__meta { gap: 16px; } }

.sl-news__badge { background: #00584c; color: #fff; font-weight: 700; line-height: 1; border-radius: 4px; padding: 3px 6px; font-size: 10px; }
@media (min-width: 1280px) { .sl-news__badge { padding: 4px 8px; font-size: 14px; } }

.sl-news__date { font-family: var(--font-dm-sans), sans-serif; font-weight: 900; color: #4cb75d; line-height: 1.4; font-size: 12px; margin: 0; }
@media (min-width: 768px)  { .sl-news__date { font-size: 14px; } }
@media (min-width: 1280px) { .sl-news__date { font-size: 18px; } }

/* キャンペーン期間（任意・キャンペーン記事のみ） */
.sl-news__period { color: #4cb75d; font-weight: 700; font-size: 13px; line-height: 1.6; }
@media (min-width: 1280px) { .sl-news__period { font-size: 16px; } }

/* 本文（the_content）。エディタで入力した見出し・段落・リスト・画像を汎用装飾 */
.single-content { width: 100%; color: #464646; font-size: 14px; line-height: 1.9; }
@media (min-width: 1280px) { .single-content { font-size: 18px; } }
.single-content > * { margin: 0; }
/* 内側ギャップ：段落・リスト間など（参考: 20→35px） */
.single-content > * + * { margin-top: 20px; }
/* 外側ギャップ：見出し・画像の前はセクションの切れ目として大きく空ける（参考: 32→70px） */
.single-content > * + h2,
.single-content > * + h3,
.single-content > * + h4,
.single-content > * + figure,
.single-content > * + img,
.single-content > * + .wp-block-image { margin-top: 32px; }
@media (min-width: 768px) {
  .single-content > * + * { margin-top: 24px; }
  .single-content > * + h2,
  .single-content > * + h3,
  .single-content > * + h4,
  .single-content > * + figure,
  .single-content > * + img,
  .single-content > * + .wp-block-image { margin-top: 48px; }
}
@media (min-width: 1280px) {
  .single-content > * + * { margin-top: 32px; }
  .single-content > * + h2,
  .single-content > * + h3,
  .single-content > * + h4,
  .single-content > * + figure,
  .single-content > * + img,
  .single-content > * + .wp-block-image { margin-top: 64px; }
}

.single-content p { color: #464646; line-height: 1.9; }
.single-content a { color: #4cb75d; text-decoration: underline; text-underline-offset: 2px; }
.single-content a:hover { opacity: .8; }
.single-content strong { font-weight: 700; }

.single-content h2,
.single-content h3,
.single-content h4 { color: #00584c; font-weight: 700; line-height: 1.5; }
.single-content h2 { font-size: 20px; }
.single-content h3 { font-size: 18px; }
.single-content h4 { font-size: 16px; }
@media (min-width: 768px)  { .single-content h2 { font-size: 24px; } .single-content h3 { font-size: 22px; } .single-content h4 { font-size: 20px; } }
@media (min-width: 1024px) { .single-content h2 { font-size: 28px; } .single-content h3 { font-size: 26px; } .single-content h4 { font-size: 21px; } }
@media (min-width: 1280px) { .single-content h2 { font-size: 38px; } .single-content h3 { font-size: 35px; } .single-content h4 { font-size: 28px; } }

.single-content img { display: block; width: 100%; height: auto; border-radius: 8px; }
.single-content figure { margin: 0; }
.single-content figure img { width: 100%; }
.single-content figcaption { margin-top: 8px; font-size: 12px; color: #888; text-align: center; }

/* 箇条書き（緑のドット） */
.single-content ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.single-content ul li { position: relative; padding-left: 16px; color: #464646; line-height: 1.9; }
.single-content ul li::before { content: ""; position: absolute; left: 0; top: 0.95em; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 9999px; background: #4cb75d; }

/* 番号付き（緑の番号） */
.single-content ol { list-style: none; padding: 0; counter-reset: sl-ol; display: flex; flex-direction: column; gap: 8px; }
.single-content ol li { position: relative; padding-left: 24px; counter-increment: sl-ol; color: #464646; line-height: 1.9; }
.single-content ol li::before { content: counter(sl-ol); position: absolute; left: 0; top: 0; width: 16px; text-align: center; color: #4cb75d; font-family: var(--font-dm-sans), sans-serif; font-weight: 900; }

/* ネストしたリストの余白調整 */
.single-content li > ul,
.single-content li > ol { margin-top: 8px; }

/* 「一覧に戻る」ボタン */
.sl-news__back { position: relative; display: flex; align-items: center; justify-content: center; background: #00584c; color: #fff; font-weight: 700; border-radius: 6px; box-shadow: 0 4px 8px rgba(0, 0, 0, .1); transition: background .2s; text-decoration: none; width: 100%; padding: 14px 0; font-size: 22px; }
.sl-news__back:hover { background: #4cb75d; }
.sl-news__back svg { position: absolute; left: 16px; width: 16px; height: 16px; transform: rotate(180deg); }
@media (min-width: 768px)  { .sl-news__back { width: 200px; padding: 0; height: 28px; font-size: 14px; } .sl-news__back svg { left: 8px; width: 12px; height: 12px; } }
@media (min-width: 1024px) { .sl-news__back { width: 217px; height: 32px; font-size: 15px; } }
@media (min-width: 1280px) { .sl-news__back { width: 289px; height: 43px; font-size: 20px; } .sl-news__back svg { left: 6px; width: 18px; height: 18px; } }
