/* ================================================================
   single.css — Blog / News single post pages
================================================================ */

:root {
	--sgl-pad: 64px;
}

.sgl-body {
	margin: 0;
	padding: 0;
	background: #f5f5f5;
	color: #1f1f1f;
	font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.sgl-body *,
.sgl-body *::before,
.sgl-body *::after {
	box-sizing: border-box;
}

.sgl-body #masthead { display: none; }
.sgl-body #page     { background: none; }
.sgl-body #content  { display: none; }
.sgl-body #colophon { display: none; }

.sgl-body .fp-header {
	background: rgba(10, 10, 10, 0.85);
	box-shadow: 0 2px 20px rgba(0,0,0,0.3);
	backdrop-filter: blur(10px);
}

/* ================================================================
   HERO
================================================================ */
.sgl-hero {
	background: #ffffff;
	padding: 160px 40px 80px;
	text-align: center;
	border-bottom: 1px solid rgba(0,0,0,0.08);
	position: relative;
	overflow: hidden;
}


.sgl-hero__inner {
	position: relative;
	z-index: 1;
}

.sgl-hero__label {
	font-size: clamp(48px, 8vw, 96px);
	font-weight: 700;
	letter-spacing: 0.3em;
	color: #1f1f1f;
	text-transform: uppercase;
	margin: 0 0 2px;
}

.sgl-hero__sub {
	font-size: 13px;
	letter-spacing: 0.1em;
	color: #888;
	margin: 0;
}

/* ================================================================
   MAIN
================================================================ */
.sgl-main {
	padding: 60px 40px 120px;
}

/* ================================================================
   ARTICLE CARD
================================================================ */
.sgl-article {
	max-width: 900px;
	margin: 0 auto;
	background: #fff;
	padding: 60px var(--sgl-pad) 72px;
}

/* ---- Header ---- */
.sgl-article__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sgl-article__date {
	font-size: 13px;
	color: #888;
	letter-spacing: 0.05em;
	flex-shrink: 0;
}

.sgl-article__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sgl-article__cat {
	font-size: 11px;
	color: #0055cc;
	text-decoration: none;
	letter-spacing: 0.03em;
	transition: opacity 0.2s;
}

.sgl-article__cat:visited {
	color: #0055cc;
}

.sgl-article__cat:hover {
	opacity: 0.65;
}

.sgl-article__title {
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 700;
	color: #1f1f1f;
	line-height: 1.55;
	margin: 0 0 40px;
	letter-spacing: 0.02em;
}

/* ---- Thumbnail ---- */
.sgl-article__thumb {
	margin: 0 calc(-1 * var(--sgl-pad)) 48px;
}

.sgl-article__thumb-img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---- Content body ---- */
.sgl-article__content {
	font-size: 16px;
	line-height: 1.9;
	color: #1f1f1f;
}

.sgl-article__content h2 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.45;
	margin: 2.4em 0 0.8em;
	padding-bottom: 10px;
	border-bottom: 2px solid #1f1f1f;
	letter-spacing: 0.02em;
}

.sgl-article__content h3 {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	margin: 2em 0 0.7em;
	letter-spacing: 0.02em;
}

.sgl-article__content h4 {
	font-size: 15px;
	font-weight: 700;
	margin: 1.6em 0 0.6em;
}

.sgl-article__content p {
	margin: 0 0 1.5em;
}

.sgl-article__content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 1.5em;
}

.sgl-article__content a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s;
}

.sgl-article__content a:visited {
	color: inherit;
}

.sgl-article__content a:hover {
	opacity: 0.7;
}

.sgl-article__content ul,
.sgl-article__content ol {
	padding-left: 1.6em;
	margin: 0 0 1.5em;
}

.sgl-article__content li {
	margin-bottom: 0.5em;
}

.sgl-article__content blockquote {
	border-left: 3px solid rgba(31,31,31,0.25);
	padding: 4px 0 4px 20px;
	margin: 0 0 1.5em;
	color: rgba(31,31,31,0.65);
}

.sgl-article__content figure {
	margin: 0 0 1.5em;
}

.sgl-article__content figcaption {
	font-size: 12px;
	color: #888;
	text-align: center;
	margin-top: 8px;
}

/* ---- Footer ---- */
.sgl-article__footer {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid rgba(0,0,0,0.08);
	text-align: center;
}

.sgl-back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: #1f1f1f;
	padding: 14px 40px;
	border: 1px solid rgba(31,31,31,0.3);
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.sgl-back:visited {
	color: #1f1f1f;
}

.sgl-back:hover {
	background: #1f1f1f;
	color: #fff;
	border-color: #1f1f1f;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
	.sgl-hero {
		padding: 100px 24px 56px;
	}

	.sgl-main {
		padding: 32px 16px 80px;
	}

	/* 下限を下げてタイトルが長くても画面内に収まるよう 8vw でスケール */
	.sgl-hero__label {
		font-size: clamp(18px, 8vw, 96px);
		letter-spacing: 0.15em;
	}
}

@media (max-width: 600px) {
	:root {
		--sgl-pad: 24px;
	}

	.sgl-article {
		padding-top: 40px;
		padding-bottom: 48px;
	}

	.sgl-article__meta {
		flex-wrap: wrap;
		gap: 12px;
	}

	.sgl-article__content {
		font-size: 15px;
	}
}

/* ================================================================
   VK ACCORDION — Q row padding reset
================================================================ */
.sgl-article__content .vk_accordion-trigger .wp-block-group {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 0 !important;
}

.sgl-article__content .vk_accordion-target .wp-block-group {
	padding-bottom: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ================================================================
   GUTENBERG BLOCKS — overflow guard
================================================================ */
@media (max-width: 768px) {
	.sgl-article__content .wp-block-cover,
	.sgl-article__content .wp-block-group,
	.sgl-article__content .wp-block-media-text {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* ================================================================
   CONTACT FORM 7
   構造: <div class="cf-field"> <label> <span.required|any> [shortcode] </div>
================================================================ */

/* ---- CF7 ラッパー ---- */
.sgl-article__content .wpcf7 {
	margin-top: 8px;
}

/* ---- フィールド行 ---- */
.sgl-article__content .wpcf7 .cf-field {
	margin-bottom: 28px;
}

/* ---- ラベル ---- */
.sgl-article__content .wpcf7 .cf-field label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1f1f1f;
	margin-bottom: 10px;
	line-height: 1;
}

/* ---- (必須) バッジ ---- */
.sgl-article__content .wpcf7 .required {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
	background: #c80000;
	padding: 2px 6px;
	margin-left: 8px;
	vertical-align: middle;
	line-height: 1.6;
}

/* ---- (任意) バッジ ---- */
.sgl-article__content .wpcf7 .any {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #888;
	background: rgba(0, 0, 0, 0.08);
	padding: 2px 6px;
	margin-left: 8px;
	vertical-align: middle;
	line-height: 1.6;
}

/* ---- wpcf7-form-control-wrap（span ラッパー）---- */
.sgl-article__content .wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

/* ---- テキスト系 input / select / textarea 共通 ---- */
.sgl-article__content .wpcf7 input[type="text"],
.sgl-article__content .wpcf7 input[type="email"],
.sgl-article__content .wpcf7 input[type="tel"],
.sgl-article__content .wpcf7 input[type="url"],
.sgl-article__content .wpcf7 input[type="number"],
.sgl-article__content .wpcf7 input[type="date"],
.sgl-article__content .wpcf7 select,
.sgl-article__content .wpcf7 textarea {
	display: block;
	width: 100%;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.02em;
	font-family: inherit;
	color: #1f1f1f;
	background: #f7f7f7;
	border: 1px solid rgba(31, 31, 31, 0.18);
	border-radius: 0;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.sgl-article__content .wpcf7 input[type="text"]:focus,
.sgl-article__content .wpcf7 input[type="email"]:focus,
.sgl-article__content .wpcf7 input[type="tel"]:focus,
.sgl-article__content .wpcf7 input[type="url"]:focus,
.sgl-article__content .wpcf7 input[type="number"]:focus,
.sgl-article__content .wpcf7 input[type="date"]:focus,
.sgl-article__content .wpcf7 select:focus,
.sgl-article__content .wpcf7 textarea:focus {
	border-color: #1f1f1f;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.07);
}

/* ---- Textarea ---- */
.sgl-article__content .wpcf7 textarea {
	min-height: 180px;
	resize: vertical;
	line-height: 1.75;
}

/* ---- Select（カスタム矢印 + プレースホルダー色）---- */
.sgl-article__content .wpcf7 .wpcf7-form-control-wrap:has(select) {
	position: relative;
}

.sgl-article__content .wpcf7 .wpcf7-form-control-wrap:has(select)::after {
	content: '';
	position: absolute;
	right: 18px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid #1f1f1f;
	border-bottom: 2px solid #1f1f1f;
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

/* first_as_label: 未選択時（value=""）のプレースホルダーを薄く */
.sgl-article__content .wpcf7 select option[value=""] {
	color: #aaa;
}

.sgl-article__content .wpcf7 select:has(option[value=""]:checked) {
	color: #aaa;
}

/* ---- 送信エリア ---- */
.sgl-article__content .wpcf7 .cf-submit {
	margin-top: 8px;
}

/* ---- 送信ボタン ---- */
.sgl-article__content .wpcf7 input[type="submit"],
.sgl-article__content .wpcf7 .wpcf7-submit {
	display: block;
	width: 100%;
	padding: 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-family: inherit;
	color: #fff;
	background: #1f1f1f;
	border: 1px solid #1f1f1f;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
	-webkit-appearance: none;
	border-radius: 0;
}

.sgl-article__content .wpcf7 input[type="submit"]:hover,
.sgl-article__content .wpcf7 .wpcf7-submit:hover {
	background: transparent;
	color: #1f1f1f;
}

.sgl-article__content .wpcf7 input[type="submit"]:disabled,
.sgl-article__content .wpcf7 .wpcf7-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ---- スピナー ---- */
.sgl-article__content .wpcf7 .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

/* ---- バリデーションエラー（インライン）---- */
.sgl-article__content .wpcf7-not-valid-tip {
	display: block;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #c80000;
	margin-top: 7px;
}

.sgl-article__content .wpcf7 input.wpcf7-not-valid,
.sgl-article__content .wpcf7 textarea.wpcf7-not-valid,
.sgl-article__content .wpcf7 select.wpcf7-not-valid {
	border-color: #c80000;
	background: #fff8f8;
}

/* ---- レスポンス出力（送信完了 / エラー）---- */
.sgl-article__content .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 15px 20px;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.03em;
	text-transform: none;
	border: none !important;
	border-radius: 0;
}

.sgl-article__content .wpcf7-form.sent .wpcf7-response-output {
	background: #f0f8f0;
	color: #1a6b1a;
	border-left: 4px solid #1a6b1a !important;
}

.sgl-article__content .wpcf7-form.invalid .wpcf7-response-output,
.sgl-article__content .wpcf7-form.failed .wpcf7-response-output,
.sgl-article__content .wpcf7-form.aborted .wpcf7-response-output {
	background: #fff5f5;
	color: #c80000;
	border-left: 4px solid #c80000 !important;
}

.sgl-article__content .wpcf7-form.spam .wpcf7-response-output {
	background: #fffbf0;
	color: #8a6500;
	border-left: 4px solid #c89800 !important;
}

/* ================================================================
   CONTACT FORM 7 — RESPONSIVE
================================================================ */
@media (max-width: 600px) {
	.sgl-article__content .wpcf7 .cf-field {
		margin-bottom: 20px;
	}

	.sgl-article__content .wpcf7 input[type="text"],
	.sgl-article__content .wpcf7 input[type="email"],
	.sgl-article__content .wpcf7 input[type="tel"],
	.sgl-article__content .wpcf7 select,
	.sgl-article__content .wpcf7 textarea {
		font-size: 16px; /* iOS ズーム防止 */
		padding: 12px 14px;
	}

	.sgl-article__content .wpcf7 input[type="submit"],
	.sgl-article__content .wpcf7 .wpcf7-submit {
		padding: 16px;
	}
}
