/*
Theme Name: sample-kennel
Theme URI: https://example.com/
Author: BUHI MEDIA 犬舎サイト制作
Description: フレンチブルドッグ犬舎向けデモ・販売用WordPressテーマ（クラシックテーマ）。これはデモサイトの原型テンプレートです。
Version: 0.1.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sample-kennel
*/

/* -----------------------------------------
   CSS変数（色）
   犬舎ごとに配色を変える場合はここだけ差し替える
----------------------------------------- */
:root {
	/* デフォルトの配色（配色パターン「グレー」と同じ値）。
	   実際の配色は inc/color-patterns.php が <head> 内で上書きする。 */
	--color-bg: #f4f4f3;
	--color-surface: #ffffff;
	--color-text: #33322f;
	--color-text-muted: #7d7a75;
	--color-primary: #7a756d;
	--color-primary-dark: #5f5b54;
	--color-accent: #c9c4bc;
	--color-border: #dedad3;
	--color-white: #ffffff;
	--color-header-bg: #e4e1da;
	--color-note-bg: #efede9;

	--font-family-base: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
		"Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

	--content-max-width: 960px;
}

/* -----------------------------------------
   リセット・基本設定
----------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-family-base);
	line-height: 1.7;
	font-size: 16px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
p {
	margin: 0 0 1em;
}

.container {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 16px;
}

/* デモサイト表示 */
.demo-notice {
	background-color: var(--color-accent);
	color: var(--color-text);
	font-size: 12px;
	text-align: center;
	padding: 6px 8px;
}

/* -----------------------------------------
   ヘッダー・メインメニュー
----------------------------------------- */
.site-header {
	background-color: var(--color-header-bg);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.site-header__title {
	margin: 0;
	font-size: 18px;
	font-weight: bold;
}

.site-header__title a {
	color: var(--color-text);
	text-decoration: none;
}

.site-header__logo img {
	max-height: 60px;
	width: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.site-nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	cursor: pointer;
}

.site-nav-toggle__bar {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--color-text);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle.is-active .site-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-active .site-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.site-nav-toggle.is-active .site-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-header__menu {
	display: none;
	flex-basis: 100%;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}

.site-header__menu.is-open {
	display: flex;
}

.site-nav__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.site-nav__list a {
	display: inline-block;
	padding: 6px 2px;
	color: var(--color-text);
	text-decoration: none;
	font-size: 14px;
}

.site-nav__list a:hover {
	color: var(--color-primary);
}

.site-sns {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.site-sns a {
	display: inline-block;
	padding: 6px 2px;
	color: var(--color-text-muted);
	text-decoration: none;
	font-size: 13px;
}

.site-sns a:hover {
	color: var(--color-primary);
}

/* -----------------------------------------
   フッターの法定表示ブロック
----------------------------------------- */
.site-footer {
	background-color: var(--color-surface);
	border-top: 1px solid var(--color-border);
	padding: 24px 0;
	margin-top: 40px;
}

.legal-info-block__heading {
	font-size: 13px;
	font-weight: bold;
	color: var(--color-text-muted);
	margin-bottom: 8px;
}

.legal-info {
	margin: 0 0 8px;
}

.legal-info__row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	font-size: 12px;
	color: var(--color-text-muted);
	padding: 2px 0;
	border-bottom: 1px dotted var(--color-border);
}

.legal-info__row dt {
	flex: 0 0 auto;
	font-weight: bold;
}

.legal-info__row dd {
	margin: 0;
}

.legal-info-block__link a {
	font-size: 12px;
}

.site-footer__copyright {
	font-size: 12px;
	color: var(--color-text-muted);
	margin: 16px 0 0;
}

/* 事業者情報ページ */
.page-business-info .legal-info__row {
	font-size: 14px;
}

/* -----------------------------------------
   共通パーツ
----------------------------------------- */
.section {
	padding: 40px 0;
}

.section__heading {
	font-size: 22px;
	margin-bottom: 16px;
}

.button {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
}

.button--primary {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.button--primary:hover {
	background-color: var(--color-primary-dark);
}

/* -----------------------------------------
   トップページ：ファーストビュー
----------------------------------------- */
.hero__photo {
	position: relative;
}

.hero__photo img {
	display: block;
	width: 100%;
	height: 60vh;
	min-height: 360px;
	object-fit: cover;
}

.hero__photo--empty {
	height: 60vh;
	min-height: 360px;
	background-color: var(--color-primary);
}

.hero__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.hero__photo--empty .hero__overlay {
	position: static;
	background: none;
	padding-top: 40px;
}

.hero__catchcopy {
	color: var(--color-white);
	font-size: 20px;
	font-weight: bold;
	line-height: 1.6;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 16px;
}

.hero__photo--empty .hero__catchcopy {
	color: var(--color-white);
	text-shadow: none;
}

/* トップページ：募集中の子犬 */
.puppy-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.puppy-card {
	display: block;
	color: inherit;
	text-decoration: none;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	overflow: hidden;
}

.puppy-card__image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.puppy-card__name {
	padding: 8px 12px;
	margin: 0;
	font-weight: bold;
}

.puppy-card__sex {
	font-weight: normal;
	font-size: 12px;
	color: var(--color-text-muted);
	margin-left: 4px;
}

.puppy-card__birth {
	padding: 0 12px 8px;
	margin: 0;
	font-size: 12px;
	color: var(--color-text-muted);
}

.puppies-section__empty {
	color: var(--color-text-muted);
}

/* トップページ：犬舎からのメッセージ（任意） */
.kennel-message {
	text-align: center;
}

.kennel-message__label {
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--color-text-muted);
	font-weight: bold;
	margin-bottom: 14px;
}

.kennel-message__text {
	max-width: 480px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 2;
}

.kennel-message__rule {
	width: 32px;
	height: 1px;
	background-color: var(--color-text-muted);
	margin: 22px auto 0;
}

/* トップページ：見学ポイント（カード） */
.visit-points {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.visit-point-card {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 16px;
}

.visit-point-card__title {
	font-weight: bold;
	margin-bottom: 8px;
}

.visit-point-card__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 14px;
}

.contact-section {
	text-align: center;
}

/* -----------------------------------------
   共通：ページタイトル
----------------------------------------- */
.page-title {
	font-size: 22px;
	margin: 24px 0 16px;
}

/* -----------------------------------------
   子犬一覧
----------------------------------------- */
.status-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.status-filter__item {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	text-decoration: none;
	color: var(--color-text);
	font-size: 13px;
}

.status-filter__item.is-active {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.puppy-card {
	position: relative;
}

.puppy-card--graduated {
	opacity: 0.55;
}

.puppy-card__image {
	position: relative;
}

.placeholder-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 85%;
	text-align: center;
	background-color: rgba(59, 46, 39, 0.65);
	color: var(--color-white);
	font-size: 12px;
	line-height: 1.5;
	padding: 6px 12px;
	border-radius: 4px;
}

.puppy-card__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background-color: var(--color-text);
	color: var(--color-white);
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 999px;
}

/* -----------------------------------------
   子犬詳細
----------------------------------------- */
.puppy-gallery__main {
	position: relative;
}

.puppy-gallery__main img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 4px;
}

.puppy-gallery__sub {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 8px;
}

.puppy-gallery__sub img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
}

.puppy-info-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
}

.puppy-info-table th,
.puppy-info-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid var(--color-border);
}

.puppy-info-table th {
	width: 30%;
	color: var(--color-text-muted);
	font-weight: bold;
}

.puppy-block {
	margin-bottom: 24px;
}

.puppy-block__heading {
	font-size: 16px;
	margin-bottom: 8px;
}

.puppy-block--care {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 16px;
}

.puppy-block--note {
	background-color: var(--color-note-bg);
	border-radius: 4px;
	padding: 16px;
}

.single-puppy__contact {
	text-align: center;
	margin: 32px 0;
}

/* -----------------------------------------
   親犬一覧・詳細
----------------------------------------- */
.parent-section {
	margin-bottom: 40px;
}

.parent-section__empty {
	color: var(--color-text-muted);
}

.parent-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.parent-card {
	display: block;
	color: inherit;
	text-decoration: none;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	overflow: hidden;
}

.parent-card__image {
	position: relative;
}

.parent-card__image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.parent-card__name {
	padding: 8px 12px;
	margin: 0;
	font-weight: bold;
}

.single-parent__role {
	display: inline-block;
	font-size: 13px;
	font-weight: normal;
	color: var(--color-text-muted);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: 2px 10px;
	margin-left: 8px;
	vertical-align: middle;
}

.single-parent__photo {
	position: relative;
}

.single-parent__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 4px;
}

/* -----------------------------------------
   見学についてページ
----------------------------------------- */
.visit-steps__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 0 0 32px;
	list-style: none;
	padding: 0;
}

.visit-steps__item {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 16px;
	position: relative;
}

.visit-steps__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.visit-steps__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: var(--color-primary);
	color: var(--color-white);
	font-weight: bold;
}

.visit-steps__title {
	font-weight: bold;
	margin: 0;
}

.visit-steps__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 14px;
}

.entry-content {
	margin-bottom: 32px;
}

.entry-content h2 {
	font-size: 18px;
	margin-top: 32px;
}

.entry-content ul {
	list-style: disc;
	padding-left: 1.4em;
	margin-bottom: 1em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.visit-legal-notice {
	background-color: var(--color-accent);
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 32px;
}

.visit-legal-notice p {
	margin: 0;
	font-weight: bold;
}

.page-visit__contact {
	text-align: center;
	margin: 32px 0;
}

/* -----------------------------------------
   お問い合わせページ
----------------------------------------- */
.page-contact__lead {
	color: var(--color-text-muted);
}

.page-contact__demo-notice {
	background-color: var(--color-accent);
	border-radius: 4px;
	padding: 12px 16px;
	font-weight: bold;
	margin-bottom: 24px;
}

.contact-form__row {
	margin-bottom: 20px;
}

.contact-form__row label {
	display: block;
	font-weight: bold;
	margin-bottom: 6px;
}

.contact-form__required,
.contact-form__optional {
	font-weight: normal;
	font-size: 12px;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
}

.contact-form__required {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.contact-form__optional {
	background-color: var(--color-border);
	color: var(--color-text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 10px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: inherit;
	background-color: var(--color-surface);
}

.contact-form__row--submit {
	text-align: center;
}

.contact-form__disabled-note {
	margin-top: 8px;
	color: var(--color-text-muted);
	font-size: 13px;
}

/* ブレークポイントは768pxの1つのみ */
@media (min-width: 768px) {
	body {
		font-size: 17px;
	}

	.site-nav-toggle {
		display: none;
	}

	.site-header__menu {
		display: flex;
		flex-direction: row;
		flex-basis: auto;
		align-items: center;
		gap: 8px 16px;
		padding-top: 0;
	}

	.site-nav__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px 16px;
	}

	.site-sns {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.puppy-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.visit-points {
		grid-template-columns: repeat(3, 1fr);
	}

	.parent-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.hero__catchcopy {
		font-size: 32px;
	}

	.hero__overlay {
		padding: 40px 20px;
	}
}