/*
Theme Name: Astra Child - ニキビケアPRO Lab
Template: astra
Version: 1.1.2
Description: ニキビケアPRO Lab 用 Astra 子テーマ（LP準拠・上品な女性向けデザイン）
*/

/* ============================================================
   デザイントークン（LP lp_01 準拠）
   ============================================================ */
:root {
	--pl-champagne:       #C5A059;
	--pl-champagne-dark:  #b38f4d;
	--pl-champagne-vivid: #D3AE3A;
	--pl-pink-beige:      #E8D3D1;
	--pl-pink-light:      rgba(232, 211, 209, 0.20);
	--pl-pink-lighter:    rgba(232, 211, 209, 0.10);
	--pl-snow:            #FFFAFA;
	--pl-text:            #59504E;
	--pl-text-soft:       #8a7f7c;
	--pl-shadow:          0 10px 40px -10px rgba(0,0,0,0.08);
	--pl-shadow-sm:       0 4px 18px -6px rgba(0,0,0,0.10);
	--pl-font-serif:      "Shippori Mincho", "Noto Serif JP", serif;
	--pl-font-sans:       "Noto Sans JP", -apple-system, "Hiragino Sans", sans-serif;
}

/* ============================================================
   ベース：背景・文字・フォント
   ============================================================ */
body,
.ast-separate-container,
.ast-page-builder-template .site-content > .ast-container {
	background-color: var(--pl-snow);
}
body {
	color: var(--pl-text);
	font-family: var(--pl-font-sans);
	font-weight: 400;
	letter-spacing: .02em;
	line-height: 1.9;
}

/* 見出しは明朝 */
h1, h2, h3, h4, h5,
.entry-title,
.ast-single-post .entry-title,
.site-title {
	font-family: var(--pl-font-serif);
	color: var(--pl-text);
	font-weight: 500;
	letter-spacing: .03em;
}
.site-title { font-weight: 700; }

/* 記事タイトル */
.entry-title { line-height: 1.5; }

/* ============================================================
   本文見出しの装飾（ゴールドの罫）
   ============================================================ */
.entry-content h2 {
	position: relative;
	font-size: 1.5em;
	line-height: 1.55;
	margin: 2.2em 0 1em;
	padding: 0 0 .5em;
	border-bottom: 1px solid var(--pl-pink-beige);
}
.entry-content h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 68px;
	height: 3px;
	background: var(--pl-champagne);
	border-radius: 2px;
}
.entry-content h3 {
	font-size: 1.22em;
	line-height: 1.55;
	margin: 1.8em 0 .8em;
	padding-left: .7em;
	border-left: 3px solid var(--pl-champagne);
}
.entry-content h4 {
	font-size: 1.08em;
	margin: 1.4em 0 .6em;
	color: var(--pl-champagne-dark);
}

/* 本文の余白と行間（読みやすく上品に） */
.entry-content p { margin: 0 0 1.5em; }
.entry-content { line-height: 1.95; }

/* ============================================================
   リンク・アクセント
   ============================================================ */
a { color: var(--pl-champagne-dark); }
a:hover { color: var(--pl-champagne-vivid); }
.entry-content a {
	text-decoration: underline;
	text-decoration-color: var(--pl-pink-beige);
	text-underline-offset: 3px;
}
.entry-content a:hover { text-decoration-color: var(--pl-champagne); }

/* ============================================================
   ボタン（Gutenberg / Astra）
   ============================================================ */
.wp-block-button__link,
.ast-button,
.ast-custom-button,
button.menu-toggle,
input[type="submit"] {
	background-color: var(--pl-champagne);
	border: none;
	border-radius: 999px;
	box-shadow: var(--pl-shadow-sm);
	color: #fff;
	font-family: var(--pl-font-sans);
	font-weight: 700;
	letter-spacing: .04em;
	transition: all .25s ease;
}
.wp-block-button__link:hover,
.ast-button:hover,
input[type="submit"]:hover {
	background-color: var(--pl-champagne-dark);
	box-shadow: var(--pl-shadow);
	transform: translateY(-1px);
	color: #fff;
}
/* アウトラインボタン */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--pl-champagne-dark);
	border: 1px solid var(--pl-champagne);
}

/* ============================================================
   テーブル（上品な罫線とピンクベージュのヘッダ）
   ============================================================ */
.entry-content table {
	border-collapse: collapse;
	box-shadow: var(--pl-shadow-sm);
	border-radius: 10px;
	overflow: hidden;
	font-size: .95em;
}
.entry-content table th,
.entry-content table td {
	border: 1px solid #efe6e5;
	padding: 12px 14px;
}
.entry-content table th {
	background: var(--pl-pink-light);
	color: var(--pl-text);
	font-family: var(--pl-font-sans);
	font-weight: 700;
}
.entry-content table tr:nth-child(even) td {
	background: var(--pl-pink-lighter);
}

/* ============================================================
   グループ・カード・引用（柔らか影＋ピンクベージュ枠）
   ============================================================ */
.entry-content .wp-block-group.has-background {
	box-shadow: var(--pl-shadow);
	border-radius: 14px;
}
.wp-block-quote,
.entry-content blockquote {
	border-left: 3px solid var(--pl-champagne);
	background: var(--pl-pink-lighter);
	padding: 16px 20px;
	border-radius: 0 10px 10px 0;
	font-style: normal;
}
.wp-block-separator {
	border: none;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--pl-pink-beige), transparent);
	max-width: 100%;
}

/* リスト */
.entry-content ul li::marker { color: var(--pl-champagne); }
.entry-content ol li::marker { color: var(--pl-champagne-dark); }

/* ============================================================
   CTA（mu-plugin prolab-cta）の底上げ
   ============================================================ */
.prolab-cta {
	box-shadow: var(--pl-shadow) !important;
}
.prolab-cta a { line-height: 1.4; transition: all .25s ease; }
.prolab-cta a:hover { filter: brightness(.94); transform: translateY(-1px); }

/* ============================================================
   グローバルナビ（上品に・1行に収める）
   ============================================================ */
.main-header-menu a,
.ast-builder-menu .main-header-menu a {
	font-family: var(--pl-font-sans);
	letter-spacing: .02em;
	font-size: 14px;
	white-space: nowrap;
}
/* 項目間の余白を詰めて1行に収める */
.main-header-menu > .menu-item > .menu-link,
.ast-builder-menu .main-header-menu > .menu-item > .menu-link {
	padding-left: 13px;
	padding-right: 13px;
}
/* ロゴを少し小さくして横スペースを確保 */
.site-title,
.site-title a {
	font-size: 21px;
}
/* ナビ内のCTA2項目（無料動画/PRO講座）は枠なしのゴールド太字テキストリンクに */
.main-header-menu > .menu-item:nth-last-child(-n+2) > .menu-link {
	background: transparent !important;
	color: var(--pl-champagne-dark) !important;
	border: none !important;
	border-radius: 0 !important;
	font-weight: 700;
	transition: color .25s ease;
}
.main-header-menu > .menu-item:nth-last-child(-n+2) > .menu-link:hover {
	background: transparent !important;
	color: var(--pl-champagne-vivid) !important;
}

/* ============================================================
   トップ：ヒーローセクションの背景画像（明るいオーバーレイで可読性維持）
   ============================================================ */
.home .entry-content > .wp-block-group.alignfull:first-child {
	background:
		linear-gradient(160deg, rgba(255, 250, 250, 0.68) 0%, rgba(232, 211, 209, 0.55) 100%),
		url('https://nikibilab.com/sensitive-skin-care/wp-content/uploads/2025/12/acne-care-pro03.webp') center / cover no-repeat !important;
	min-height: 78vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
/* 薄いオーバーレイでも文字が読めるよう、ヒーロー内テキストに柔らかい白フチ */
.home .entry-content > .wp-block-group.alignfull:first-child :is(h1, p) {
	text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85), 0 0 3px rgba(255, 255, 255, 0.7);
}
@media (max-width: 600px) {
	.home .entry-content > .wp-block-group.alignfull:first-child {
		min-height: 70vh;
	}
}

/* ============================================================
   トップ（フロントページ）のタイトル二重表示を解消
   ============================================================ */
.home .entry-title,
.page-id-1188 .entry-title,
.home .ast-single-entry-banner,
.page-id-1188 .ast-single-entry-banner {
	display: none;
}

/* ============================================================
   メタ情報（著者・日付）の青リンクを暖色系へ
   ============================================================ */
.entry-meta,
.entry-meta a,
.entry-meta a:visited,
.posted-by a,
.posted-on a,
.author-name a,
.ast-author-name a {
	color: var(--pl-champagne-dark) !important;
}
.entry-meta a:hover,
.posted-by a:hover,
.posted-on a:hover {
	color: var(--pl-champagne-vivid) !important;
}
.entry-meta { color: var(--pl-text-soft) !important; }

/* ============================================================
   スクロールトップボタンを暖色系へ（デフォルトの青を上書き）
   ============================================================ */
#ast-scroll-top {
	background-color: var(--pl-champagne) !important;
	color: #fff !important;
	box-shadow: var(--pl-shadow-sm);
}
#ast-scroll-top:hover {
	background-color: var(--pl-champagne-dark) !important;
}

/* ============================================================
   カテゴリ・アーカイブのカード
   ============================================================ */
.ast-article-post,
.ast-separate-container .ast-article-post {
	box-shadow: var(--pl-shadow-sm);
	border-radius: 14px;
	border: 1px solid #f2eae9;
}

/* ============================================================
   Cocoon互換CSS（旧記事の吹き出し・ブログカード救済）
   縁色をゴールド系トーンへ調整
   ============================================================ */
.speech-wrap { display:flex; align-items:flex-start; gap:14px; margin:1.8em 0; }
.speech-wrap.sbp-r { flex-direction: row-reverse; }
.speech-person { flex:0 0 auto; width:64px; text-align:center; }
.speech-icon, .speech-icon figure { margin:0; }
.speech-icon-image {
	width:60px; height:60px; border-radius:50%; object-fit:cover;
	border:2px solid var(--pl-pink-beige); display:block; margin:0 auto;
	box-shadow: var(--pl-shadow-sm);
}
.speech-name { font-size:11px; color:var(--pl-text-soft); margin-top:5px; line-height:1.3; }
.speech-balloon {
	position:relative; flex:1; border:1px solid var(--pl-pink-beige);
	border-radius:14px; background:#fff; padding:15px 18px;
	box-shadow: var(--pl-shadow-sm);
}
.speech-balloon::before {
	content:""; position:absolute; top:20px; left:-8px;
	border:8px solid transparent; border-right-color:#fff; z-index:1;
}
.speech-balloon::after {
	content:""; position:absolute; top:20px; left:-9px;
	border:8px solid transparent; border-right-color:var(--pl-pink-beige);
}
.sbp-r .speech-balloon::before { left:auto; right:-8px; border-right-color:transparent; border-left-color:#fff; }
.sbp-r .speech-balloon::after  { left:auto; right:-9px; border-right-color:transparent; border-left-color:var(--pl-pink-beige); }
.speech-balloon p:last-child { margin-bottom:0; }

.blogcard, .wp-block-cocoon-blocks-blogcard {
	border:1px solid var(--pl-pink-beige); border-radius:14px; padding:0;
	margin:1.8em 0; overflow:hidden; background:#fff; box-shadow:var(--pl-shadow-sm);
}
.blogcard a, .wp-block-cocoon-blocks-blogcard a { text-decoration:none; color:inherit; display:block; }
.blogcard-content, .blogcard-body { padding:15px 18px; }
.blogcard-title { font-family:var(--pl-font-serif); font-weight:500; line-height:1.55; color:var(--pl-champagne-dark); }
.blogcard-snippet { font-size:13px; color:var(--pl-text-soft); margin-top:6px; }
.blogcard-thumbnail img { max-width:100%; height:auto; }

.block-box { border-radius:12px; }

/* ============================================================
   レスポンシブ微調整
   ============================================================ */
@media (max-width: 600px) {
	.entry-content h2 { font-size: 1.32em; }
	.speech-person { width: 52px; }
	.speech-icon-image { width: 48px; height: 48px; }
}

/* ============================================================
   トップページ（1188）2026-07-25 改修分
   ============================================================ */

/* 明朝で見せる要素（統計数値・カテゴリカード見出し） */
.pl-stat-num,
.pl-cat-title,
.pl-cat-title a {
	font-family: var(--pl-font-serif);
}

/* 統計バッジ：モバイルでも横3列を維持するため縮める */
@media (max-width: 600px) {
	.pl-stat-num { font-size: 23px !important; }
	.pl-stat-num span { font-size: 12.5px !important; }
}
@media (max-width: 380px) {
	.pl-stat-num { font-size: 20px !important; }
	.pl-stat-num span { font-size: 11px !important; }
}

/* カテゴリカード見出し */
.pl-cat-title a {
	color: var(--pl-champagne-dark) !important;
	text-decoration: none;
}
.pl-cat-title a:hover { color: var(--pl-champagne-vivid) !important; }

/* カテゴリカード内の記事リンク */
.pl-cat-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pl-cat-links li {
	position: relative;
	padding-left: 15px;
	margin-bottom: 8px;
}
.pl-cat-links li:last-child { margin-bottom: 0; }
.pl-cat-links li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .78em;
	width: 8px;
	height: 1px;
	background: var(--pl-champagne);
}
.pl-cat-links a {
	color: var(--pl-text) !important;
	text-decoration: none;
	border-bottom: 1px solid rgba(197, 160, 89, 0.35);
	transition: color .2s ease, border-color .2s ease;
}
.pl-cat-links a:hover {
	color: var(--pl-champagne-dark) !important;
	border-bottom-color: var(--pl-champagne);
}

/* 受講生の声カード：明朝の引用符を添える */
.pl-voice { position: relative; overflow: hidden; }
.pl-voice::before {
	content: "\201C";
	position: absolute;
	top: 4px;
	left: 10px;
	font-family: var(--pl-font-serif);
	font-size: 46px;
	line-height: 1;
	color: rgba(232, 211, 209, 0.85);
	pointer-events: none;
}
.pl-voice > * { position: relative; }

/* モバイルでカードが詰まりすぎないように */
@media (max-width: 781px) {
	.page-id-1188 .wp-block-columns,
	.home .wp-block-columns { gap: 14px; }
}

/* ============================================================
   トップページ：モバイルの見出しサイズ（2026-07-25 / v1.1.1）
   流入の約9割がスマホなので、モバイル基準で読める大きさに合わせる。
   PC用に入れた <br> はスマホだと折り返しと二重になって行が汚れるため、
   モバイルでは無効化して自然な折り返しに任せる。
   ============================================================ */
@media (max-width: 600px) {
	.home .entry-content > .wp-block-group.alignfull:first-child h1 {
		font-size: 23px !important;
		line-height: 1.75 !important;
		text-wrap: balance;
	}
	.home .entry-content > .wp-block-group.alignfull:first-child h1 br,
	.home .entry-content > .wp-block-group.alignfull:first-child p br {
		display: none;
	}

	.page-id-1188 .entry-content h2 {
		font-size: 20px !important;
		line-height: 1.7 !important;
	}
	.page-id-1188 .entry-content h2 br { display: none; }

	.page-id-1188 .entry-content h3 { font-size: 17px !important; }

	.page-id-1188 .wp-block-button__link { font-size: 14px !important; }
}

@media (max-width: 380px) {
	.home .entry-content > .wp-block-group.alignfull:first-child h1 {
		font-size: 21px !important;
	}
	.page-id-1188 .entry-content h2 { font-size: 19px !important; }
}

/* ============================================================
   ヒーロー見出しのウェイト（2026-07-25 / v1.1.2）
   ユーザー指定で 500 → 600 に。ブロック側のインライン font-weight:500 を
   上書きするため !important が必要。Google Fonts の読み込みにも 600 を追加済み。
   ============================================================ */
.home .entry-content > .wp-block-group.alignfull:first-child h1 {
	font-weight: 600 !important;
}
