/*
Theme Name: Bonpoint（ボンポアン）
Theme URI: https://www.bonpoint.co.jp/
Description: 六甲菓子工房ボンポアン公式サイトのデザインをそのまま再現したオリジナルテーマです。お知らせ・商品・コラム・トップページのスライド/バナー・メールフォームを管理画面から更新できます。
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Author: Bonpoint Inc.
License: GPL-2.0-or-later
Text Domain: bonpoint
*/

/* 旧サイトのCSSは assets/css/ にそのまま入っています。
   ここには WordPress で必要になった最小限の追加スタイルのみ記述します。 */

/* ブロックエディタで書いたお知らせ本文 */
.list01 dd .bp-post-body > * + * { margin-top: 1em; }
.list01 dd .bp-post-body p { line-height: 1.8; }
.bp-post-body img { max-width: 100%; height: auto; }
.bp-post-body .wp-block-image { margin: 1em 0; }
.bp-post-body .wp-block-image figcaption { font-size: 12px; color: #666; margin-top: .5em; }
.bp-post-body .alignleft { float: left; margin: 0 1.5em 1em 0; }
.bp-post-body .alignright { float: right; margin: 0 0 1em 1.5em; }
.bp-post-body .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.bp-post-body::after { content: ""; display: block; clear: both; }
.bp-post-body ul.wp-block-list { list-style: disc; padding-left: 1.5em; }
.bp-post-body ol.wp-block-list { list-style: decimal; padding-left: 1.5em; }
.bp-post-body strong { font-weight: bold; }
.bp-post-body .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.bp-post-body .wp-block-button__link { display: inline-block; padding: 10px 24px; background: #333; color: #fff; border-radius: 0; }
.bp-post-body .wp-block-button__link:hover { background: #F7A91A; text-decoration: none; }

/* お知らせ：一覧のページ送り・個別ページの戻るリンク */
.bp-pager { text-align: center; margin: 40px 0 10px; letter-spacing: 0; }
.bp-pager .page-numbers { display: inline-block; min-width: 36px; padding: 8px 6px; margin: 0 3px 6px; border: 1px solid #ccc; color: #333; text-decoration: none; }
.bp-pager .page-numbers.current, .bp-pager a.page-numbers:hover { background: #333; border-color: #333; color: #fff; }
.bp-back { text-align: center; margin: 40px 0 0; }
.bp-back a { display: inline-block; padding: 10px 40px; border: 2px solid #333; color: #333; }
.bp-back a:hover { background: #333; color: #fff; text-decoration: none; }
.list01 dd .bp-news-title { display: block; margin-bottom: 1.5em; }
.list01 dd .bp-news-title a { color: inherit; }

/* メールフォーム（確認画面・エラー表示） */
.bp-form-errors { border: 2px solid #c00; background: #fff5f5; padding: 15px 20px; margin: 0 0 30px; color: #c00; line-height: 1.8; }
.entryForm dl.bp-confirm dd { line-height: 1.8; word-break: break-all; }
.bp-form-buttons { text-align: center; }
.bp-form-buttons button { margin: 0 8px 10px; }
.bp-form-buttons .bp-back-btn { background: #999 !important; }
.bp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bp-thanks { text-align: center; line-height: 2; padding: 40px 0; font-size: 15px; }

/* 管理バー表示時に右側スライドメニューが隠れないように */
.admin-bar .sb-slidebar { padding-top: 46px; }
@media screen and (min-width: 783px) { .admin-bar .sb-slidebar { padding-top: 32px; } }

/* 検索結果・404 */
.bp-search-list li { border-bottom: 1px dotted #ccc; padding: 15px 0; line-height: 1.7; }
.bp-search-list li a { font-weight: bold; }
