@charset "UTF-8";
/* ==========================================================
   株式会社良美工業  wp-extra.css
   WordPress化に伴って追加したスタイル(静的コーディングのCSSは変更していません)
   ( ページャーの現在地 / 記事なしメッセージ / 記事本文(エディタ出力) /
     Contact Form 7 / サンクスページ / 汎用固定ページ )
   読み込み順: common.css → ページ別CSS → このファイル
   ========================================================== */

/* ---------- ブログ: 一覧・トップ ---------- */
.blogIndex__list img {
	object-fit: cover
}

.blog__empty,
.blogIndex__empty {
	margin: 46px auto 0;
	padding: 24px 0;
	font-size: 16px;
	line-height: 1.8;
	color: #444;
	text-align: center
}

.blogIndex__empty {
	margin-top: 0;
	padding: 40px 20px 20px
}

/* ---------- ページャー: 現在のページ / 省略記号 ---------- */
.pager a.is-current {
	background: var(--teal);
	color: #fff;
	pointer-events: none
}

.pager__dots {
	display: block;
	min-width: 20px;
	font-size: 20px;
	font-weight: 700;
	line-height: 48px;
	text-align: center;
	color: #333
}

/* ---------- ブログ詳細: エディタで作成した本文のスタイル ----------
   ※ 段落は静的コーディング通り「行間のみ」で区切っています。
      段落の間を空けたい場合は、下の p + p の行を有効にしてください。 */
/* .blogPost__text p + p { margin-top: 1em } */

.blogPost__text>*:first-child {
	margin-top: 0
}

.blogPost__text a {
	color: var(--teal-dark);
	text-decoration: underline
}

.blogPost__text h2 {
	margin: 1.8em 0 .7em;
	padding: .4em .8em;
	border-left: 6px solid var(--teal);
	background: var(--bg);
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.5
}

.blogPost__text h3 {
	margin: 1.6em 0 .6em;
	padding-bottom: .3em;
	border-bottom: 2px solid var(--mint);
	font-size: 1.125em;
	font-weight: 700;
	line-height: 1.5
}

.blogPost__text h4 {
	margin: 1.4em 0 .5em;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.5;
	color: var(--teal-dark)
}

.blogPost__text ul,
.blogPost__text ol {
	margin: 1em 0;
	padding-left: 1.6em
}

.blogPost__text ul {
	list-style: disc
}

.blogPost__text ol {
	list-style: decimal
}

.blogPost__text blockquote {
	margin: 1.6em 0;
	padding: .8em 1.2em;
	border-left: 4px solid var(--mint);
	background: #f7f7f7;
	color: #444
}

.blogPost__text figure {
	margin: 32px 0 30px
}

.blogPost__text img {
	max-width: 100%;
	height: auto
}

.blogPost__text figcaption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	text-align: center
}

.blogPost__text .alignleft {
	float: left;
	margin: 0 1.5em 1em 0
}

.blogPost__text .alignright {
	float: right;
	margin: 0 0 1em 1.5em
}

.blogPost__text .aligncenter {
	margin-right: auto;
	margin-left: auto
}

.blogPost__text table {
	width: 100%;
	border-collapse: collapse
}

.blogPost__text th,
.blogPost__text td {
	padding: .6em .8em;
	border: 1px solid #ccc;
	text-align: left
}

.blogPost__text th {
	background: var(--bg)
}

.blogPost__text iframe {
	max-width: 100%
}

.blogPost__text::after {
	content: "";
	display: block;
	clear: both
}

/* ---------- 汎用固定ページ / 404 / サンクスページ ---------- */
.pageContent {
	padding-bottom: 82px
}

.pageContent__inner {
	width: min(800px, calc(100% - 80px));
	margin: 0 auto;
	font-size: 18px;
	line-height: 2;
	color: #333
}

.pageContent__btn,
.thanks__btn {
	margin-top: 48px;
	text-align: center
}

.thanks {
	width: min(800px, calc(100% - 80px));
	margin: 0 auto;
	padding: 20px 0 100px;
	text-align: center
}

.thanks__title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--teal-dark)
}

.thanks__text {
	margin-top: 26px;
	font-size: 17px;
	line-height: 2;
	color: #333
}

/* ---------- お問い合わせ: Contact Form 7 ----------
   CF7 は各入力欄を <span class="wpcf7-form-control-wrap"> で包むため、
   静的コーディング時のレイアウト(.form__inline / .form__pair)が崩れないよう調整しています。 */
.contactForm__notice {
	margin-top: 40px;
	font-size: 16px;
	line-height: 1.8;
	text-align: center
}

.wpcf7-form-control-wrap {
	display: block;
	position: relative
}

/* 姓・名などの短い入力欄 */
.form__inline .wpcf7-form-control-wrap {
	flex: 0 1 160px;
	width: 160px;
	min-width: 0
}

/* 郵便番号・電話番号の分割入力欄 */
.form__inline--seq .wpcf7-form-control-wrap {
	flex: 0 1 130px;
	width: 130px
}

.wpcf7-form-control-wrap .form__input {
	width: 100%
}

/* 入力エラー */
.wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #db0b00
}

.wpcf7-form-control.wpcf7-not-valid {
	border-color: #db0b00
}

/* 「同意する」チェックボックス (.form__check の見た目を [acceptance] 出力に適用) */
.form__agree {
	flex-direction: column;
	align-items: center
}

.form__agree .wpcf7-form-control-wrap {
	display: inline-block
}

.form__agree .wpcf7-list-item {
	display: inline-block;
	margin: 0
}

.form__agree .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	line-height: 1;
	color: #333;
	cursor: pointer
}

.form__agree input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid #a4a4a4;
	border-radius: 4px;
	background: #fff;
	cursor: pointer
}

.form__agree input[type="checkbox"]:checked {
	border-color: var(--teal);
	background: var(--teal)
}

.form__agree input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg)
}

.form__agree input[type="checkbox"]:focus-visible {
	outline: 2px solid rgba(0, 154, 172, .45);
	outline-offset: 2px
}

.form__agree .wpcf7-not-valid-tip {
	text-align: center
}

/* 送信ボタン横のスピナーは非表示 / 送信結果メッセージ */
.form__submit .wpcf7-spinner {
	display: none
}

.wpcf7 form.contactForm__inner .wpcf7-response-output {
	margin: 28px 0 0;
	padding: 14px 18px;
	border: 2px solid var(--teal);
	background: #fff;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
	color: #333
}

.wpcf7 form.invalid.contactForm__inner .wpcf7-response-output,
.wpcf7 form.unaccepted.contactForm__inner .wpcf7-response-output,
.wpcf7 form.failed.contactForm__inner .wpcf7-response-output,
.wpcf7 form.aborted.contactForm__inner .wpcf7-response-output,
.wpcf7 form.spam.contactForm__inner .wpcf7-response-output {
	border-color: #db0b00
}

.wpcf7 form.contactForm__inner.init .wpcf7-response-output {
	display: none
}

/* ==========================================================
   タブレット縦 (〜1024px)
   ========================================================== */
@media (max-width: 1024px) {
	.pager__dots {
		min-width: 14px;
		font-size: 18px;
		line-height: 44px
	}

	.pageContent {
		padding-bottom: 64px
	}

	.pageContent__inner {
		width: calc(100% - 80px);
		font-size: 16px
	}

	.pageContent__btn,
	.thanks__btn {
		margin-top: 40px
	}

	.thanks {
		width: calc(100% - 80px);
		padding-bottom: 80px
	}

	.thanks__title {
		font-size: 22px
	}
}

/* ==========================================================
   スマホ (〜767px)
   ========================================================== */
@media (max-width: 767px) {
	.blog__empty {
		margin-top: 32px
	}

	.pager__dots {
		min-width: 10px;
		font-size: 16px;
		line-height: 38px
	}

	.blogPost__text figure {
		margin: 22px 0
	}

	.blogPost__text figcaption {
		font-size: 12px
	}

	.pageContent {
		padding-bottom: 48px
	}

	.pageContent__inner {
		width: calc(100% - 40px);
		font-size: 14.5px
	}

	.thanks {
		width: calc(100% - 40px);
		padding: 8px 0 64px
	}

	.thanks__title {
		font-size: 18px
	}

	.thanks__text {
		font-size: 14.5px
	}

	/* 姓・名 / セイ・メイ は横並びで均等幅に */
	.form__pair .wpcf7-form-control-wrap {
		flex: 1 1 0;
		width: 100%
	}

	.form__agree .wpcf7-list-item label {
		font-size: 16px
	}

	.wpcf7 form.contactForm__inner .wpcf7-response-output {
		margin-top: 20px;
		font-size: 14px
	}
}

/* コンテンツが短くても、フッターを画面の一番下に配置する */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* スマホのアドレスバーを考慮 */
}

body > main {
  flex: 1 0 auto; /* 余った高さを本文エリアが埋める */
}

.footer {
  margin-top: auto;
}

/* ログイン中は管理バーの高さ分を引く(訪問者には影響しません) */
body.admin-bar {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar {
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

/* PC・タブレットでは、電話番号のリンクを無効にする(スマホは発信できるままにする) */
@media (min-width: 768px) {
  .header__nav a.header__tel,
  .footer__banner li:first-child a {
    pointer-events: none; /* クリック・ホバーに反応させない */
    cursor: default;      /* マウスカーソルを矢印のままにする */
    opacity: 1;           /* 半透明にしない */
  }

  .header__nav a.header__tel:hover,
  .footer__banner li:first-child a:hover {
    opacity: 1;
  }
}