/*
Theme Name: Nagomi Counseling
Theme URI: https://example.com/nagomi
Author: Your Name
Author URI: https://example.com
Description: 愛着関係（回避型・恐れ回避型・不安型）の恋愛・夫婦のお悩みに寄り添う、安心感と信頼感のあるカウンセリング向けブロックテーマです。白・生成り・淡いベージュ・淡いグリーンを基調に、やわらかく専門的な印象を大切にしています。
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nagomi
Tags: full-site-editing, block-patterns, blog, custom-colors, custom-menu, editor-style, threaded-comments, translation-ready, wide-blocks
*/

/* =========================================================
   Nagomi Counseling - 補助スタイル
   ※ 色・フォント・余白などの基本設定は theme.json で管理しています。
     このファイルは theme.json だけでは表現しにくい装飾を補います。
   ========================================================= */

/* ---- 全体の地ならし ---- */
html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* 句読点や行末のぶら下げを自然に */
:where(p, li) {
	word-break: normal;
	overflow-wrap: anywhere;
	line-break: strict;
}

/* ---- ヘッダー ---- */
.wp-block-template-part .wp-block-site-title a {
	text-decoration: none;
}

/* スマホでのナビゲーションのオーバーレイをやわらかく */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #f7f2e8;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.15rem;
}

/* ---- ボタン：押しやすく、やわらかく ---- */
.wp-block-button__link {
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* アウトライン（線）ボタン：白・淡色背景のセクションで使う想定 */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
	box-shadow: none;
	background-color: transparent;
	color: #3c5a4a;
	border-color: #3c5a4a;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #3c5a4a;
	color: #fffdf8;
}

/* ---- カード（is-style-card）: グループブロックに付与 ---- */
.wp-block-group.is-style-card {
	background-color: #fffdf8;
	border: 1px solid #e8e0cf;
	border-radius: 18px;
	box-shadow: 0 14px 34px -22px rgba(70, 67, 62, 0.28);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	height: 100%;
}

/* ---- やわらかい角丸（is-style-soft）: グループ/カラム/画像に ---- */
.is-style-soft,
.wp-block-image.is-style-soft img {
	border-radius: 20px;
	overflow: hidden;
}

/* ブログ等の画像は標準でも少し角丸に */
.wp-block-post-content .wp-block-image img,
.entry-content .wp-block-image img {
	border-radius: 14px;
}

/* ---- 見出しアクセント（is-style-leaf）: 小さな葉のような印 ---- */
.is-style-leaf {
	position: relative;
	padding-top: 1.1rem;
}

.is-style-leaf::before {
	content: "";
	display: block;
	width: 42px;
	height: 4px;
	border-radius: 4px;
	background-color: #b98a4a;
	margin: 0 0 1.1rem;
}

/* 中央寄せの見出しのときは、線も中央に */
.has-text-align-center.is-style-leaf::before {
	margin-left: auto;
	margin-right: auto;
}

/* ---- 番号付きステップ（カウンセリングの流れ） ---- */
.nagomi-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background-color: #e3ebe2;
	color: #3c5a4a;
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1;
}

/* ---- お悩みチェックリスト（is-style-check） ---- */
.wp-block-list.is-style-check {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.wp-block-list.is-style-check li {
	position: relative;
	padding: 0.85rem 0.5rem 0.85rem 2.6rem;
	border-bottom: 1px dashed #e4d9c2;
}

.wp-block-list.is-style-check li::before {
	content: "";
	position: absolute;
	left: 0.4rem;
	top: 1.05rem;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 6px;
	background-color: #e3ebe2;
	box-shadow: inset 0 0 0 1px #c7d4c6;
}

.wp-block-list.is-style-check li::after {
	content: "";
	position: absolute;
	left: 0.85rem;
	top: 1.2rem;
	width: 0.45rem;
	height: 0.8rem;
	border-right: 2.5px solid #3c5a4a;
	border-bottom: 2.5px solid #3c5a4a;
	transform: rotate(40deg);
}

/* ---- FAQ（詳細・summary） ---- */
.wp-block-details {
	background-color: #fffdf8;
	border: 1px solid #e8e0cf;
	border-radius: 14px;
	padding: 1.1rem 1.4rem;
}

.wp-block-details summary {
	font-family: "Shippori Mincho", serif;
	font-weight: 500;
	cursor: pointer;
}

/* ---- 投稿一覧カード ---- */
.nagomi-cards > li {
	background-color: #fffdf8;
	border: 1px solid #e8e0cf;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 30px -22px rgba(70, 67, 62, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nagomi-cards > li:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 38px -22px rgba(70, 67, 62, 0.32);
}

.nagomi-cards .wp-block-post-featured-image {
	margin: 0;
}

.nagomi-cards .wp-block-post-featured-image img {
	border-radius: 0;
	width: 100%;
}

/* ---- 記事本文（note貼り付け対応の読みやすさ） ---- */
.is-single-content :where(h2) {
	margin-top: 2.8rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid #e6dcc6;
}

.is-single-content :where(h3) {
	margin-top: 2.2rem;
	padding-left: 0.85rem;
	border-left: 4px solid #b98a4a;
}

.is-single-content :where(p) {
	margin-top: 1.5rem;
}

.is-single-content :where(figure, .wp-block-image) {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

/* noteからの貼り付けで入りがちな外部埋め込み・引用も整える */
.is-single-content :where(.wp-block-embed) {
	margin-top: 2rem;
}

/* ---- お問い合わせフォーム（Contact Form 7 を想定） ---- */
.nagomi-form .wpcf7-form p {
	margin: 0 0 1.2rem;
}

.nagomi-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
	color: #33302b;
}

.nagomi-form input[type="text"],
.nagomi-form input[type="email"],
.nagomi-form input[type="tel"],
.nagomi-form input[type="date"],
.nagomi-form select,
.nagomi-form textarea {
	width: 100%;
	background-color: #fffdf8;
	border: 1px solid #d8cdb4;
	border-radius: 12px;
	padding: 0.9rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	color: #33302b;
	box-sizing: border-box;
}

.nagomi-form input:focus,
.nagomi-form select:focus,
.nagomi-form textarea:focus {
	outline: none;
	border-color: #5d7b69;
	box-shadow: 0 0 0 3px rgba(93, 123, 105, 0.35);
}

.nagomi-form textarea {
	min-height: 11rem;
	resize: vertical;
}

.nagomi-form .wpcf7-submit,
.nagomi-form button[type="submit"],
.nagomi-form input[type="submit"] {
	background-color: #3c5a4a;
	color: #fff;
	border: none;
	border-radius: 100px;
	padding: 1rem 3rem;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.2s ease;
}

.nagomi-form .wpcf7-submit:hover,
.nagomi-form button[type="submit"]:hover,
.nagomi-form input[type="submit"]:hover {
	background-color: #5d7b69;
	transform: translateY(-2px);
}

/* 送信後のお知らせ */
.nagomi-form__notice {
	border-radius: 12px;
	padding: 1rem 1.2rem;
	margin-bottom: 1.6rem;
	line-height: 1.8;
}

.nagomi-form__notice--ok {
	background-color: #e3ebe2;
	border: 1px solid #5d7b69;
	color: #33302b;
}

.nagomi-form__notice--ng {
	background-color: #f6e7e0;
	border: 1px solid #d8a692;
	color: #33302b;
}

/* ---- 箇条書きの装飾なし（is-style-none） ---- */
.wp-block-list.is-style-none {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

/* ---- フッター ---- */
.nagomi-footer a {
	text-decoration: none;
}

.nagomi-footer a:hover {
	text-decoration: underline;
}

/* ---- 愛着先生：ブランド要素 ---- */
.nagomi-emblem {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #b98a4a;
	background-color: #fffdf8;
	color: #3c5a4a;
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
	font-size: 1.35rem;
	line-height: 1;
}

.nagomi-emblem--md {
	width: 96px;
	height: 96px;
	font-size: 2.4rem;
}

.nagomi-emblem--lg {
	width: 132px;
	height: 132px;
	font-size: 3.2rem;
}

.nagomi-hero-emblem {
	text-align: center;
}

.nagomi-emblem__caption {
	margin-top: 0.7rem;
	font-size: 0.72rem;
	letter-spacing: 0.28em;
	color: #8a8171;
	text-align: center;
}

.nagomi-hero-side {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.2rem;
}

.nagomi-vertical {
	writing-mode: vertical-rl;
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
	font-size: 0.85rem;
	letter-spacing: 0.42em;
	color: #8a8171;
	height: 10.5em;
}

@media (max-width: 781px) {
	.nagomi-vertical {
		display: none;
	}
}

/* チップ（ヒーローの安心バッジ） */
.nagomi-chip {
	display: inline-block;
	border: 1px solid #d8cdb4;
	background-color: #fffdf8;
	border-radius: 100px;
	padding: 0.35rem 0.95rem;
	font-size: 0.82rem;
	color: #55503f;
	margin: 0;
}

/* バッジ（料金カードの上部ラベル） */
.nagomi-badge {
	display: table;
	margin: 0 auto 0.2rem;
	background-color: #3c5a4a;
	color: #f7f2e8;
	border-radius: 100px;
	padding: 0.25rem 1rem;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
}

.nagomi-badge--soft {
	background-color: #e3ebe2;
	color: #3c5a4a;
}

/* 暗い背景セクション（深緑・墨）での調整 */
.nagomi-dark .wp-block-list.is-style-check li {
	border-bottom: 1px dashed rgba(247, 242, 232, 0.25);
}

.nagomi-dark .wp-block-list.is-style-check li::before {
	background-color: rgba(255, 253, 248, 0.08);
	box-shadow: inset 0 0 0 1px rgba(216, 191, 143, 0.55);
}

.nagomi-dark .wp-block-list.is-style-check li::after {
	border-right-color: #d8bf8f;
	border-bottom-color: #d8bf8f;
}

.nagomi-dark .wp-block-button.is-style-outline .wp-block-button__link {
	color: #f7f2e8;
	border-color: #f7f2e8;
}

.nagomi-dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: #f7f2e8;
	color: #33302b;
}

/* フッター（墨色）内のリンク */
.nagomi-footer a {
	color: #efe8d8;
}

.nagomi-footer .wp-block-site-title a {
	color: #f7f2e8;
}

/* ---- パンくずリスト ---- */
.nagomi-breadcrumb {
	font-size: 0.8rem;
	color: #6e6759;
	margin-bottom: 0.6rem;
}

.nagomi-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
}

.nagomi-breadcrumb li::after {
	content: "›";
	margin-left: 0.45rem;
	color: #b3a689;
}

.nagomi-breadcrumb li:last-child::after {
	content: none;
}

.nagomi-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.nagomi-breadcrumb a:hover {
	text-decoration: underline;
}

/* ---- 記事下：著者ボックス（E-E-A-T） ---- */
.nagomi-author-box .wp-block-avatar {
	flex: 0 0 auto;
}

.nagomi-author-box img {
	border-radius: 50%;
}

/* ---- 記事下：関連記事 ---- */
.nagomi-related-wrap {
	margin-top: var(--wp--preset--spacing--50);
}

.nagomi-related-heading {
	font-size: var(--wp--preset--font-size--x-large);
	margin-bottom: 1.6rem;
}

.nagomi-related {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 1.5rem;
}

.nagomi-related > li {
	background-color: #fffdf8;
	border: 1px solid #e8e0cf;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 30px -22px rgba(70, 67, 62, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nagomi-related > li:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 38px -22px rgba(70, 67, 62, 0.32);
}

.nagomi-related a {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.nagomi-related img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

.nagomi-related__body {
	display: grid;
	gap: 0.45rem;
	padding: 1.2rem 1.3rem 1.4rem;
}

.nagomi-related__cat {
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: #3c5a4a;
}

.nagomi-related__title {
	font-family: "Shippori Mincho", serif;
	font-size: 1.02rem;
	line-height: 1.6;
	color: #33302b;
}

.nagomi-related__date {
	font-size: 0.78rem;
	color: #6e6759;
}

@media (prefers-reduced-motion: reduce) {
	.nagomi-related > li:hover {
		transform: none;
	}
}

/* ---- アクセシビリティ：動きを減らす設定を尊重 ---- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.wp-block-button__link:hover,
	.wp-block-post-template.is-flex-container li:hover,
	.nagomi-form .wpcf7-submit:hover {
		transform: none;
	}
}
