/*
Theme Name: GORI Style TT4 Child
Theme URI: https://goristyle.com/
Description: GORI Style original child theme based on Twenty Twenty-Four.
Author: GORI Style
Author URI: https://goristyle.com/
Template: twentytwentyfour
Version: 1.0.0
Text Domain: goristylett4child
*/

/* Custom styles will be added here. */

/* Portfolio archive
--------------------------------------------- */

.gori-portfolio-archive {
	padding-top: 64px;
	padding-bottom: 96px;
}

.gori-portfolio-heading {
	margin-bottom: 52px;
	text-align: center;
}

.gori-portfolio-heading h1 {
	margin: 0 0 14px;
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.035em;
}

.gori-portfolio-heading p {
	margin: 0;
	color: #555;
	font-size: 0.95rem;
	line-height: 1.8;
	letter-spacing: 0.025em;
}

.gori-portfolio-grid {
	gap: 28px;
	align-items: stretch;
}

/* カード */
.gori-portfolio-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	border: 1px solid #e4e8ee;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 5px 18px rgba(31, 42, 68, 0.065);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.gori-portfolio-card:hover {
	transform: translateY(-3px);
	border-color: #d7dde6;
	box-shadow: 0 10px 26px rgba(31, 42, 68, 0.11);
}

/* サムネイル */
.gori-portfolio-thumb {
	margin: 0;
	overflow: hidden;
	background: #f4f6f8;
}

.gori-portfolio-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	height: auto;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.gori-portfolio-card:hover .gori-portfolio-thumb img {
	transform: scale(1.015);
}

/* タイトル */
.gori-portfolio-title {
	margin: 0;
	padding: 22px 22px 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.025em;
}

.gori-portfolio-title a {
	color: inherit;
	text-decoration: none;
}

.gori-portfolio-title a:hover {
	color: #005bac;
}

/* 制作年・URL */
.gori-portfolio-meta {
	padding: 15px 22px 0;
	color: #555;
	font-size: 0.8rem;
	line-height: 1.7;
	letter-spacing: 0.015em;
}

.gori-portfolio-meta-item {
	display: flex;
	align-items: baseline;
	gap: 0.75em;
	margin-top: 3px;
}

.gori-portfolio-meta-label {
	flex: 0 0 4.2em;
	min-width: 0;
	color: #1f2a44;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.gori-portfolio-meta-link {
	color: #005bac;
	font-weight: 600;
	text-decoration: none;
}

.gori-portfolio-meta-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 説明文 */
.gori-portfolio-excerpt {
	display: flex;
	flex: 1;
	flex-direction: column;
	margin: 0;
	padding: 16px 22px 22px;
	color: #555;
	font-size: 0.88rem;
	line-height: 1.85;
	letter-spacing: 0.015em;
}

.gori-portfolio-excerpt p {
	margin: 0;
}

/* 詳しく見るをカード下部に揃える */
.gori-portfolio-excerpt .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: auto;
	padding-top: 18px;
	color: #222;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	text-decoration: none;
}

.gori-portfolio-excerpt .wp-block-post-excerpt__more-link::after {
	content: " →";
	transition: margin-left 0.2s ease;
}

.gori-portfolio-excerpt .wp-block-post-excerpt__more-link:hover {
	color: #005bac;
}

.gori-portfolio-excerpt .wp-block-post-excerpt__more-link:hover::after {
	margin-left: 4px;
}

/* タブレット */
@media (max-width: 1024px) {
	.gori-portfolio-grid {
		gap: 24px;
	}
}

/* スマートフォン */
@media (max-width: 781px) {
	.gori-portfolio-archive {
		padding-top: 40px;
		padding-bottom: 64px;
	}

	.gori-portfolio-heading {
		margin-bottom: 36px;
	}

	.gori-portfolio-heading h1 {
		font-size: 2rem;
	}

	.gori-portfolio-heading p {
		font-size: 0.9rem;
		line-height: 1.75;
	}

	.gori-portfolio-grid {
		gap: 22px;
	}

	.gori-portfolio-title {
		padding: 20px 20px 0;
	}

	.gori-portfolio-meta {
		padding-right: 20px;
		padding-left: 20px;
	}

	.gori-portfolio-excerpt {
		padding-right: 20px;
		padding-bottom: 22px;
		padding-left: 20px;
	}
}

/* Portfolio single
--------------------------------------------- */

/* ページ全体 */
.gori-portfolio-single {
	padding-top: 72px;
	padding-bottom: 112px;
}

.gori-portfolio-single-inner {
	width: min(calc(100% - 40px), 920px);
	margin-right: auto;
	margin-left: auto;
}


/* タイトルエリア
--------------------------------------------- */

.gori-portfolio-single-label {
	margin: 0 0 12px;
	color: #005bac;
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
}

.gori-portfolio-single-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.025em;
}


/* 本文・案件紹介文
--------------------------------------------- */

.gori-portfolio-single-content {
	max-width: 760px;
	margin-top: 24px;
	color: #333;
	font-size: 1rem;
	line-height: 1.95;
	letter-spacing: 0.015em;
}

.gori-portfolio-single-content > * {
	margin-top: 0;
	margin-bottom: 1.5em;
}

.gori-portfolio-single-content > *:last-child {
	margin-bottom: 0;
}

.gori-portfolio-single-content p {
	margin-top: 0;
}

.gori-portfolio-single-content a {
	color: #005bac;
	text-underline-offset: 3px;
}


/* 専用詳細情報全体
--------------------------------------------- */

.gori-portfolio-details {
	margin-top: 40px;
}


/* メイン画像
--------------------------------------------- */

.gori-portfolio-main-image {
	width: 100%;
	max-width: 680px;
	margin: 0 auto 64px;
}

.gori-portfolio-main-image img,
.gori-portfolio-main-image-element {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	border: 1px solid #e1e6ec;
	border-radius: 8px;
	box-shadow: 0 6px 22px rgba(31, 42, 68, 0.07);
}


/* 共通セクション
--------------------------------------------- */

.gori-portfolio-info,
.gori-portfolio-roles,
.gori-portfolio-full-section {
	margin-top: 64px;
}

.gori-portfolio-section-title {
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid #dfe4ea;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.025em;
}


/* 案件概要
--------------------------------------------- */

.gori-portfolio-info-list {
	margin: 0;
}

.gori-portfolio-info-item {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid #edf0f3;
}

.gori-portfolio-info-item:first-child {
	border-top: 1px solid #edf0f3;
}

.gori-portfolio-info-item dt {
	color: #1f2a44;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.7;
}

.gori-portfolio-info-item dd {
	margin: 0;
	color: #444;
	font-size: 0.92rem;
	line-height: 1.7;
}

.gori-portfolio-info-item a {
	color: #005bac;
	font-weight: 600;
	text-decoration: none;
}

.gori-portfolio-info-item a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* 担当したこと
--------------------------------------------- */

.gori-portfolio-role-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gori-portfolio-role-list li {
	padding: 8px 14px;
	border: 1px solid #d5dde7;
	border-radius: 999px;
	background: #f7f9fb;
	color: #1f2a44;
	font-size: 0.84rem;
	line-height: 1.4;
	letter-spacing: 0.015em;
}


/* サイト全体画像
--------------------------------------------- */

.gori-portfolio-full-capture {
	display: block;
	width: 100%;
	max-width: 280px;
	margin: 28px auto 0;
	text-align: center;
}

.gori-portfolio-full-capture a {
	display: block;
	width: 100%;
}

.gori-portfolio-full-capture img,
.gori-portfolio-full-image-element {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	margin: 0 auto;
	border: 1px solid #e1e6ec;
	border-radius: 5px;
	box-shadow: 0 5px 18px rgba(31, 42, 68, 0.06);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.gori-portfolio-full-capture a:hover img {
	transform: translateY(-2px);
	box-shadow: 0 9px 24px rgba(31, 42, 68, 0.1);
}

.gori-portfolio-full-capture figcaption {
	margin-top: 10px;
	color: #777;
	font-size: 0.78rem;
	line-height: 1.6;
}


/* 下部区切り線
--------------------------------------------- */

.gori-portfolio-single-divider {
	width: 100%;
	margin: 72px 0 36px;
	border: 0;
	border-top: 1px solid #dfe3e9;
	opacity: 1;
}

.gori-portfolio-single-divider-bottom {
	margin-top: 80px;
	margin-bottom: 36px;
}


/* 前後ナビ
--------------------------------------------- */

.gori-portfolio-single-navigation {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 32px;
}

.gori-portfolio-single-navigation
	.wp-block-post-navigation-link {
	flex: 1;
	min-width: 0;
	font-size: 0.88rem;
	line-height: 1.6;
}

.gori-portfolio-single-navigation
	.post-navigation-link-next {
	text-align: right;
}

.gori-portfolio-single-navigation a {
	display: block;
	padding: 18px 0;
	color: #222;
	text-decoration: none;
	transition: color 0.2s ease;
}

.gori-portfolio-single-navigation a:hover {
	color: #005bac;
}

.gori-portfolio-single-navigation
	.wp-block-post-navigation-link__label {
	display: block;
	margin-bottom: 6px;
	color: #777;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.gori-portfolio-single-navigation
	.post-navigation-link__title {
	font-size: 0.95rem;
	font-weight: 600;
}


/* 一覧へ戻る
--------------------------------------------- */

.gori-portfolio-back {
	margin-top: 48px;
}

.gori-portfolio-back .wp-block-button__link {
	min-width: 220px;
	padding: 13px 28px;
	border: 1px solid #1f2a44;
	border-radius: 999px;
	background: transparent;
	color: #1f2a44;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.gori-portfolio-back .wp-block-button__link:hover {
	background: #1f2a44;
	color: #fff;
}


/* タブレット
--------------------------------------------- */

@media (max-width: 1024px) {
	.gori-portfolio-single {
		padding-top: 56px;
		padding-bottom: 88px;
	}

	.gori-portfolio-main-image {
		max-width: 640px;
	}
}


/* スマートフォン
--------------------------------------------- */

@media (max-width: 781px) {
	.gori-portfolio-single {
		padding-top: 40px;
		padding-bottom: 64px;
	}

	.gori-portfolio-single-inner {
		width: calc(100% - 40px);
	}

	.gori-portfolio-single-label {
		margin-bottom: 10px;
	}

	.gori-portfolio-single-title {
		font-size: 2rem;
	}

	.gori-portfolio-single-content {
		margin-top: 20px;
		font-size: 0.95rem;
		line-height: 1.9;
	}

	.gori-portfolio-details {
		margin-top: 32px;
	}

	.gori-portfolio-main-image {
		max-width: 100%;
		margin-bottom: 48px;
	}

	.gori-portfolio-info,
	.gori-portfolio-roles,
	.gori-portfolio-full-section {
		margin-top: 48px;
	}

	.gori-portfolio-section-title {
		margin-bottom: 18px;
		font-size: 1.2rem;
	}

	.gori-portfolio-info-item {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 14px 0;
	}

	.gori-portfolio-info-item dt,
	.gori-portfolio-info-item dd {
		font-size: 0.9rem;
	}

	.gori-portfolio-role-list {
		gap: 8px;
	}

	.gori-portfolio-role-list li {
		padding: 7px 12px;
		font-size: 0.8rem;
	}

	.gori-portfolio-full-capture,
	.gori-portfolio-full-capture img,
	.gori-portfolio-full-image-element {
		max-width: 220px;
	}

	.gori-portfolio-single-divider-bottom {
		margin-top: 56px;
		margin-bottom: 24px;
	}

	.gori-portfolio-single-navigation {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
	}

	.gori-portfolio-single-navigation
		.post-navigation-link-next {
		border-top: 1px solid #e3e7ee;
		text-align: left;
	}

	.gori-portfolio-back {
		margin-top: 40px;
	}

	.gori-portfolio-back .wp-block-button,
	.gori-portfolio-back .wp-block-button__link {
		width: 100%;
	}
}

/* 一覧カード画像 */
.gori-portfolio-thumb {
	margin: 0;
	overflow: hidden;
	background: #f4f6f8;
}

.gori-portfolio-thumb a {
	display: block;
	width: 100%;
}

.gori-portfolio-thumb img,
.gori-portfolio-thumb-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.35s ease;
}

.gori-portfolio-card:hover .gori-portfolio-thumb img,
.gori-portfolio-card:hover .gori-portfolio-thumb-image {
	transform: scale(1.015);
}

/* 一覧ページネーション */
.gori-portfolio-pagination {
	gap: 10px;
	margin-top: 48px;
	font-size: 0.9rem;
}

.gori-portfolio-pagination a,
.gori-portfolio-pagination .page-numbers {
	color: #222;
	text-decoration: none;
}

.gori-portfolio-pagination a:hover {
	color: #005bac;
}

.gori-portfolio-pagination .current {
	color: #005bac;
	font-weight: 700;
}

/* Portfolio single decoration
--------------------------------------------- */

/* WORKS */
.gori-portfolio-single-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gori-portfolio-single-label::before {
	content: "";
	display: block;
	width: 30px;
	height: 1px;
	background: #005bac;
}

/* セクションタイトル */
.gori-portfolio-section-title {
	position: relative;
	padding-left: 18px;
}

.gori-portfolio-section-title::before {
	content: "";
	position: absolute;
	top: 0.25em;
	left: 0;
	width: 4px;
	height: 1.1em;
	border-radius: 2px;
	background: #005bac;
}

/* 案件概要 */
.gori-portfolio-info {
	padding: 30px 34px;
	border: 1px solid #e4e9ef;
	border-radius: 10px;
	background: #f7f9fb;
}

/* サイトを見る */
.gori-portfolio-info-item .gori-portfolio-meta-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid #005bac;
	border-radius: 999px;
	background: #fff;
	color: #005bac;
	font-size: 0.82rem;
	text-decoration: none;
}

.gori-portfolio-info-item .gori-portfolio-meta-link::after {
	content: "↗";
	font-size: 0.85em;
}

.gori-portfolio-info-item .gori-portfolio-meta-link:hover {
	background: #005bac;
	color: #fff;
	text-decoration: none;
}

/* 担当タグ */
.gori-portfolio-role-list li {
	border-color: #cbd9e8;
	background: #f2f7fb;
	color: #164c78;
}

/* サイト全体 */
.gori-portfolio-full-capture {
	padding: 14px;
	border: 1px solid #e2e7ed;
	border-radius: 10px;
	background: #f7f9fb;
}

@media (max-width: 781px) {
	.gori-portfolio-info {
		padding: 24px 20px;
	}
}
/* Top page Portfolio title
--------------------------------------------- */

.gori-home-portfolio-title {
	margin-top: 16px;
	margin-bottom: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.gori-home-portfolio-title a {
	color: inherit;
	text-decoration: none;
}

.gori-home-portfolio-title a:hover {
	color: #005bac;
}

@media (max-width: 781px) {
	.gori-home-portfolio-title {
		font-size: 0.95rem;
	}
}

/* Portfolio filter
--------------------------------------------- */

.gori-portfolio-filter {
	gap: 10px;
	margin-top: 28px;
	margin-bottom: 0;
}

.gori-portfolio-filter p {
	margin: 0;
}

.gori-portfolio-filter-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 18px;
	border: 1px solid #ccd6e0;
	border-radius: 999px;
	background: #fff;
	color: #344054;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}

.gori-portfolio-filter-button:hover {
	border-color: #005bac;
	background: #f2f7fb;
	color: #005bac;
}

.gori-portfolio-filter-button.is-current {
	border-color: #005bac;
	background: #005bac;
	color: #fff;
}

@media (max-width: 781px) {

	.gori-portfolio-filter {
		gap: 8px;
	}

	.gori-portfolio-filter-button {
		padding: 7px 14px;
		font-size: 0.78rem;
	}
}


/* =========================
   Contact Form
========================= */

.contact-form-wrap,
.wpcf7 {
	max-width: 760px;
	margin: 0 auto;
}

.wpcf7 form {
	margin-top: 40px;
}

.wpcf7 p {
	margin: 0 0 24px;
}

.wpcf7 label {
	display: block;
	font-weight: 700;
	line-height: 1.7;
	color: #222;
}

/* 必須ラベルなど */
.wpcf7 .required,
.wpcf7 .must {
	color: #b40000;
	font-size: 0.92rem;
	font-weight: 700;
	margin-right: 0.35em;
}

/* テキスト入力系 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	padding: 14px 16px;
	border: 1px solid #cfd6df;
	border-radius: 8px;
	background: #fff;
	font-size: 1rem;
	line-height: 1.6;
	color: #222;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* フォーカス時 */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: #005bac;
	box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.12);
}

/* テキストエリア */
.wpcf7 textarea {
	min-height: 220px;
	resize: vertical;
}

/* プレースホルダー */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #999;
}

/* チェックボックス・ラジオ */
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 8px;
}

.wpcf7 .wpcf7-list-item {
	margin: 0;
}

.wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	line-height: 1.7;
	cursor: pointer;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	margin-top: 0.2em;
}

/* 送信ボタン */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
	display: inline-block;
	min-width: 220px;
	padding: 14px 28px;
	border: none;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* 送信ボタンの配置 */
.wpcf7 .submit-area,
.wpcf7 .form-submit {
	margin-top: 32px;
	text-align: center;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 0.9rem;
	color: #c00000;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	border: 1px solid #e0b4b4;
	background: #fff5f5;
	color: #a40000;
	padding: 14px 16px;
	border-radius: 8px;
	margin: 20px 0 0;
}

.wpcf7 form.sent .wpcf7-response-output {
	border: 1px solid #b8d8bf;
	background: #f4fff5;
	color: #1d6b2a;
	padding: 14px 16px;
	border-radius: 8px;
	margin: 20px 0 0;
}

/* フィールドごとの余白 */
.wpcf7 .form-row {
	margin-bottom: 24px;
}

/* ページ全体に少し余白 */
.page-template-default .entry-content .wpcf7,
.page .entry-content .wpcf7 {
	margin-top: 32px;
}

/* スマホ対応 */
@media (max-width: 767px) {
	.wpcf7 {
		max-width: 100%;
	}

	.wpcf7 input[type="submit"],
	.wpcf7 button[type="submit"] {
		width: 100%;
		min-width: 0;
	}
}
/* =========================
   Contact Form layout adjust
========================= */

.wpcf7 {
	max-width: 820px;
	margin: 0 auto;
}

/* table構造のフォームを整える */
.wpcf7 table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

.wpcf7 table tr {
	border: none;
}

.wpcf7 table th,
.wpcf7 table td {
	border: none;
	background: transparent;
	padding: 10px 0;
	vertical-align: top;
}

/* 左ラベル列 */
.wpcf7 table th {
	width: 150px;
	padding-right: 24px;
	color: #111;
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.7;
	text-align: left;
	white-space: normal;
}

/* 右入力欄 */
.wpcf7 table td {
	width: auto;
}

/* 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
}

/* ご相談内容のチェックボックス行 */
.wpcf7 .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 24px;
	margin-top: 2px;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item {
	margin: 0;
}

/* チェックボックスの文字 */
.wpcf7 .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-weight: 400;
	line-height: 1.6;
}

/* メッセージ欄 */
.wpcf7 textarea {
	min-height: 240px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
	margin-top: 20px;
}

/* スマホでは1カラム */
@media (max-width: 767px) {
	.wpcf7 table,
	.wpcf7 table tbody,
	.wpcf7 table tr,
	.wpcf7 table th,
	.wpcf7 table td {
		display: block;
		width: 100%;
	}

	.wpcf7 table th {
		padding: 16px 0 6px;
		white-space: normal;
	}

	.wpcf7 table td {
		padding: 0 0 8px;
	}

	.wpcf7 .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}

	.wpcf7 input[type="submit"] {
		width: 100%;
	}
}
/* =========================
   Contact Form fine tuning
========================= */

/* フォーム全体の幅 */
.wpcf7 {
	max-width: 860px;
	margin: 0 auto;
}

/* 左ラベル列を少し広げる */
.wpcf7 table th {
	width: 170px;
	padding-right: 28px;
	white-space: nowrap;
}

/* 入力欄側 */
.wpcf7 table td {
	width: auto;
}

/* チェックボックス部分を折れにくくする */
.wpcf7 .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 12px 36px;
	align-items: start;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item {
	margin: 0;
}

.wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
	white-space: nowrap;
	line-height: 1.7;
}

/* 入力欄の高さを少し整える */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select {
	min-height: 56px;
}

/* メッセージ本文 */
.wpcf7 textarea {
	min-height: 280px;
}

/* 送信ボタンを入力欄の左端に揃える */
.wpcf7 input[type="submit"] {
	margin-left: 198px;
	margin-top: 28px;
}

/* スマホでは自然に1カラム */
@media (max-width: 767px) {
	.wpcf7 table th {
		width: 100%;
		padding-right: 0;
		white-space: normal;
	}

	.wpcf7 .wpcf7-checkbox {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.wpcf7 .wpcf7-list-item label {
		white-space: normal;
	}

	.wpcf7 input[type="submit"] {
		margin-left: 0;
		width: 100%;
	}
}