@charset "UTF-8";

/* ========== Pages（下層ページ）========== */
/* /service/, /cgo/, /contact/, /blog/ などのCSSをここに追加 */


/* =========================================================
   代表メッセージ（会社概要ページの本文ブロック .p-ceo）
   ※ 写真は非表示・1カラムレイアウトに変更
========================================================= */
html body#body:not(.front-page) .p-ceo {
	background: transparent;
	padding: 32px 0 64px;
	margin: 0 auto !important;
	max-width: 720px;
}
html body#body:not(.front-page) .p-ceo .p-ceo__columns {
	display: block !important;
	gap: 0 !important;
	margin: 0 !important;
}
/* 写真カラムは非表示 */
html body#body:not(.front-page) .p-ceo .p-ceo__photo,
html body#body:not(.front-page) .p-ceo .p-ceo__caption {
	display: none !important;
}
html body#body:not(.front-page) .p-ceo .p-ceo__body {
	min-width: 0;
	text-align: left !important;
	width: 100%;
}
/* 末尾の署名 */
html body#body:not(.front-page) .p-ceo .p-ceo__signature {
	margin-top: 40px;
	text-align: right;
	line-height: 1.6;
}
html body#body:not(.front-page) .p-ceo .p-ceo__signature-role {
	font-size: 14px;
	color: var(--color-text-light);
	margin: 0 0 4px !important;
	letter-spacing: .04em;
}
html body#body:not(.front-page) .p-ceo .p-ceo__signature-name {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-main);
	margin: 0 !important;
	letter-spacing: .08em;
}
html body#body:not(.front-page) .p-ceo .p-ceo__eyebrow {
	font-family: var(--font-en) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .14em !important;
	color: var(--color-accent) !important;
	margin: 0 0 12px !important;
	line-height: 1 !important;
}
html body#body:not(.front-page) .p-ceo .p-ceo__title {
	font-size: 28px !important;
	font-weight: 700 !important;
	color: var(--color-main) !important;
	line-height: 1.5 !important;
	margin: 0 0 24px !important;
	text-align: left !important;
	border: none !important;
	padding: 0 !important;
	letter-spacing: .04em !important;
}
html body#body:not(.front-page) .p-ceo .p-ceo__body p {
	font-size: 16px !important;
	line-height: 2 !important;
	margin: 0 0 1em !important;
	color: var(--color-text) !important;
	text-align: left !important;
}
html body#body:not(.front-page) .p-ceo .p-ceo__body p:last-child {
	margin-bottom: 0 !important;
}

@media (max-width: 820px) {
	html body#body:not(.front-page) .p-ceo {
		padding: 24px 0 48px;
	}
	html body#body:not(.front-page) .p-ceo .p-ceo__columns {
		flex-direction: column !important;
		gap: 32px !important;
	}
	html body#body:not(.front-page) .p-ceo .p-ceo__photo {
		flex-basis: auto !important;
		max-width: 280px;
		margin: 0 auto !important;
	}
	html body#body:not(.front-page) .p-ceo .p-ceo__title {
		font-size: 22px !important;
	}
}



/* =========================================================
   News Single (お知らせ詳細) 2カラムレイアウト
   左: 記事本文 + 関連記事 (800px)
   右: 新着お知らせサイドバー (背景なし)
========================================================= */
.p-news-single {
	padding: 40px 24px 80px;
}
.p-news-single__container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 900px 240px;
	gap: 48px;
	align-items: start;
	justify-content: center;
}

/* ---- 左カラム ---- */
.p-news-single__main {
	min-width: 0;
}

/* 記事本文カード */
.p-news-article {
	background: var(--color-white);
	border-radius: 12px;
	padding: 48px 56px 56px;
	box-shadow: 0 4px 24px -12px rgba(0,0,0,.08);
}
.p-news-article__header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--color-line);
}
.p-news-article__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}
.p-news-article__cat {
	display: inline-block;
	padding: 4px 14px;
	background: var(--color-main);
	color: var(--color-white) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	border-radius: 999px;
}
.p-news-article__date {
	font-family: var(--font-en);
	font-size: 14px;
	letter-spacing: .06em;
	color: var(--color-text-light);
}
.p-news-article__title {
	font-size: 28px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	color: var(--color-main) !important;
	letter-spacing: .02em !important;
	margin: 0 !important;
	text-align: left !important;
}
.p-news-article__eyecatch {
	margin: 0 0 32px;
	border-radius: 8px;
	overflow: hidden;
}
.p-news-article__eyecatch img {
	width: 100%;
	height: auto;
	display: block;
}
.p-news-article__body {
	font-size: 16px;
	line-height: 1.9;
	color: var(--color-text);
}
.p-news-article__footer {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--color-line);
	text-align: center;
}
.p-news-article__back {
	display: inline-block;
	padding: 12px 28px;
	border: 1px solid var(--color-main);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-main) !important;
	letter-spacing: .04em;
	text-decoration: none !important;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.p-news-article__back:hover {
	background: var(--color-main);
	color: var(--color-white) !important;
}

/* ---- 左カラム下：関連記事（背景なし） ---- */
.p-news-related {
	margin-top: 56px;
}
.p-news-related__title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: var(--color-main) !important;
	letter-spacing: .06em !important;
	margin: 0 0 24px !important;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-main);
	text-align: left !important;
}
.p-news-related__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px 20px;
}
.p-news-related__item {
	margin: 0 !important;
}
.p-news-related__link {
	display: block;
	text-decoration: none !important;
	transition: opacity .2s var(--ease);
}
.p-news-related__link:hover {
	opacity: .75;
}
.p-news-related__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: var(--color-line);
	margin-bottom: 10px;
}
.p-news-related__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.p-news-related__thumb-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-en);
	font-size: 12px;
	letter-spacing: .1em;
	color: var(--color-text-light) !important;
}
.p-news-related__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.p-news-related__cat {
	display: inline-block;
	padding: 2px 10px;
	background: var(--color-main);
	color: var(--color-white) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	border-radius: 999px;
	line-height: 1.6;
}
.p-news-related__date {
	font-family: var(--font-en);
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--color-text-light) !important;
}
.p-news-related__heading {
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.6 !important;
	color: var(--color-text) !important;
	margin: 0 !important;
	letter-spacing: .02em !important;
	text-align: left !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- 右カラム：新着お知らせサイドバー（背景なし） ---- */
.p-news-single__sidebar {
	min-width: 0;
	position: sticky;
	top: calc(var(--header-h) + 32px);
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.p-news-sidebar {
	/* 背景なし（透明） */
	padding: 0;
}

/* ---- ランキングバッジ（よく読まれている記事） ---- */
.p-news-sidebar__item--ranking .p-news-sidebar__thumb {
	overflow: visible;
}
.p-news-sidebar__item--ranking .p-news-sidebar__thumb img,
.p-news-sidebar__item--ranking .p-news-sidebar__thumb .p-news-sidebar__thumb-placeholder {
	border-radius: 6px;
	overflow: hidden;
}
.p-news-sidebar__rank {
	position: absolute;
	top: -6px;
	left: -6px;
	z-index: 2;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-main);
	color: var(--color-white) !important;
	font-family: var(--font-en);
	font-size: 14px;
	font-weight: 700;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0,0,0,.2);
	letter-spacing: 0;
}
.p-news-sidebar__rank[data-rank="1"] { background: #d4af37; }
.p-news-sidebar__rank[data-rank="2"] { background: #b0b0b0; }
.p-news-sidebar__rank[data-rank="3"] { background: #c17a3f; }
.p-news-sidebar__title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--color-main) !important;
	letter-spacing: .06em !important;
	margin: 0 0 20px !important;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-main);
	text-align: left !important;
}
.p-news-sidebar__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.p-news-sidebar__item {
	margin: 0 !important;
}
.p-news-sidebar__link {
	display: block;
	text-decoration: none !important;
	transition: opacity .2s var(--ease);
}
.p-news-sidebar__link:hover {
	opacity: .75;
}
.p-news-sidebar__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: var(--color-line);
	margin-bottom: 10px;
}
.p-news-sidebar__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.p-news-sidebar__thumb-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-en);
	font-size: 12px;
	letter-spacing: .1em;
	color: var(--color-text-light) !important;
}
.p-news-sidebar__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.p-news-sidebar__cat {
	display: inline-block;
	padding: 2px 8px;
	background: var(--color-main);
	color: var(--color-white) !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	border-radius: 999px;
	line-height: 1.6;
}
.p-news-sidebar__date {
	font-family: var(--font-en);
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--color-text-light) !important;
}
.p-news-sidebar__heading {
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.6 !important;
	color: var(--color-text) !important;
	margin: 0 !important;
	letter-spacing: .02em !important;
	text-align: left !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.p-news-sidebar__more {
	display: block;
	margin-top: 20px;
	padding: 10px 0;
	border-top: 1px solid var(--color-line);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--color-main) !important;
	text-align: center;
	text-decoration: none !important;
	transition: opacity .2s var(--ease);
}
.p-news-sidebar__more:hover {
	opacity: .7;
}

/* =========================================================
   layout.css の c-entry / c-entry__body の max-width / padding-inline を打ち消す
========================================================= */
html body#body:not(.front-page) .p-news-single,
html body#body:not(.front-page) .p-news-single__container,
html body#body:not(.front-page) .p-news-single__main,
html body#body:not(.front-page) .p-news-single__sidebar {
	max-width: none !important;
	padding-inline: 0 !important;
}
html body#body:not(.front-page) .p-news-single {
	padding: 40px 24px 80px !important;
}
html body#body:not(.front-page) .p-news-single__container {
	padding: 0 !important;
	max-width: 1200px !important;
	margin-inline: auto !important;
}
html body#body:not(.front-page) .p-news-single__main article.c-entry.p-news-article,
html body#body:not(.front-page) .p-news-single__main .p-news-article {
	max-width: none !important;
	margin-inline: 0 !important;
	padding: 48px 56px 56px !important;
}
html body#body:not(.front-page) .p-news-single__main .p-news-article__body.c-entry__body {
	max-width: none !important;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
}

/* =========================================================
   サブページの span/a 色強制ルール（layout.css line 213-225）を打ち消す
========================================================= */
html body#body:not(.front-page) .p-news-article__cat,
html body#body:not(.front-page) .p-news-related__cat,
html body#body:not(.front-page) .p-news-sidebar__cat,
html body#body:not(.front-page) .p-news-sidebar__rank,
html body#body:not(.front-page) .c-entry-summary__term {
	color: var(--color-white) !important;
}
html body#body:not(.front-page) .p-news-article__date,
html body#body:not(.front-page) .p-news-related__date,
html body#body:not(.front-page) .p-news-sidebar__date {
	color: var(--color-text-light) !important;
}
html body#body:not(.front-page) .p-news-related__heading,
html body#body:not(.front-page) .p-news-sidebar__heading {
	color: var(--color-text) !important;
}
html body#body:not(.front-page) .p-news-article__title {
	color: var(--color-main) !important;
}
html body#body:not(.front-page) .p-news-related__link,
html body#body:not(.front-page) .p-news-sidebar__link,
html body#body:not(.front-page) .p-news-sidebar__more,
html body#body:not(.front-page) .p-news-article__back {
	color: var(--color-main) !important;
	text-decoration: none !important;
}
/* rtoc-cta ボタン（記事内CTA）の文字・矢印を白に */
html body#body:not(.front-page) .rtoc-cta__btn a,
html body#body:not(.front-page) .rtoc-cta__btn a .arrow-right {
	color: var(--color-white) !important;
}
html body#body:not(.front-page) .rtoc-cta__btn a:hover {
	color: var(--color-white) !important;
	opacity: .85;
}
html body#body:not(.front-page) .p-news-article__back:hover {
	color: var(--color-white) !important;
}

/* ---- レスポンシブ ---- */
@media (max-width: 1240px) {
	.p-news-single__container {
		grid-template-columns: minmax(0, 1fr) 240px;
		gap: 32px;
	}
	html body#body:not(.front-page) .p-news-single__main article.c-entry.p-news-article,
	html body#body:not(.front-page) .p-news-single__main .p-news-article {
		padding: 40px 32px !important;
	}
}
@media (max-width: 820px) {
	.p-news-single__container {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.p-news-single__sidebar {
		position: static;
	}
	html body#body:not(.front-page) .p-news-single__main article.c-entry.p-news-article,
	html body#body:not(.front-page) .p-news-single__main .p-news-article {
		padding: 32px 20px !important;
	}
	.p-news-article__title {
		font-size: 22px !important;
	}
	.p-news-related__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 16px;
	}
}
@media (max-width: 480px) {
	.p-news-related__list {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* =========================================================
   Contact Page (body.is-contact-page) – フォーム幅・タイポをコンパクトに
========================================================= */
html body#body.is-contact-page article.c-entry,
html body#body.is-contact-page div.c-entry,
html body#body.is-contact-page .c-entry__header,
html body#body.is-contact-page .c-entry__body,
html body#body.is-contact-page .c-entry__footer {
	max-width: 720px !important;
	margin-inline: auto !important;
}

/* フォーム周辺のタイポを縮小（layout.css の p/li 強制を上書き） */
html body#body.is-contact-page .c-entry__body p,
html body#body.is-contact-page .c-entry__body li,
html body#body.is-contact-page .c-entry__body label,
html body#body.is-contact-page .c-entry__body dt,
html body#body.is-contact-page .c-entry__body dd,
html body#body.is-contact-page .wpcf7 p,
html body#body.is-contact-page .wpcf7 label {
	font-size: 14px !important;
	line-height: 1.6 !important;
	margin: 0 0 0.6em !important;
}

/* テーブル形式（dl・table）の余白も縮める */
html body#body.is-contact-page .c-entry__body table,
html body#body.is-contact-page .c-entry__body dl {
	font-size: 14px;
	line-height: 1.6;
}
html body#body.is-contact-page .c-entry__body th,
html body#body.is-contact-page .c-entry__body td {
	padding: 8px 12px !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

/* Contact Form 7 の入力欄 */
html body#body.is-contact-page .wpcf7 input[type="text"],
html body#body.is-contact-page .wpcf7 input[type="email"],
html body#body.is-contact-page .wpcf7 input[type="tel"],
html body#body.is-contact-page .wpcf7 input[type="url"],
html body#body.is-contact-page .wpcf7 textarea,
html body#body.is-contact-page .wpcf7 select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 14px;
	padding: 8px 12px;
	line-height: 1.6;
}
html body#body.is-contact-page .wpcf7 textarea {
	min-height: 140px;
}

/* お名前等のラベル（label / dt / th）を小さく */
html body#body.is-contact-page .c-entry__body label,
html body#body.is-contact-page .c-entry__body dt,
html body#body.is-contact-page .c-entry__body th,
html body#body.is-contact-page .wpcf7 label,
html body#body.is-contact-page .wpcf7 dt,
html body#body.is-contact-page .wpcf7 th {
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.5 !important;
}

/* 必須・任意バッジ：白文字 */
html body#body.is-contact-page .wpcf7 .required,
html body#body.is-contact-page .wpcf7 .req,
html body#body.is-contact-page .c-entry__body .required,
html body#body.is-contact-page .c-entry__body .req,
html body#body.is-contact-page .c-entry__body label .required,
html body#body.is-contact-page .c-entry__body dt .required {
	display: inline-block;
	color: #ffffff !important;
	background: #d24d4d;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: 6px;
	letter-spacing: .04em;
	line-height: 1.4;
	vertical-align: middle;
}
html body#body.is-contact-page .wpcf7 .optional,
html body#body.is-contact-page .c-entry__body .optional {
	display: inline-block;
	color: #ffffff !important;
	background: #9e9e9a;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: 6px;
	letter-spacing: .04em;
	line-height: 1.4;
	vertical-align: middle;
}

/* 同意チェックボックス（個人情報保護方針 等）のテキストを小さく */
html body#body.is-contact-page .wpcf7-acceptance,
html body#body.is-contact-page .wpcf7-acceptance .wpcf7-list-item,
html body#body.is-contact-page .wpcf7-acceptance .wpcf7-list-item-label,
html body#body.is-contact-page .wpcf7-acceptance label,
html body#body.is-contact-page .wpcf7-checkbox .wpcf7-list-item-label {
	font-size: 12px !important;
	line-height: 1.6 !important;
	font-weight: 400;
}
html body#body.is-contact-page .wpcf7-acceptance a,
html body#body.is-contact-page .wpcf7-checkbox a {
	font-size: 12px !important;
}

/* 送信ボタン周りの余白 */
html body#body.is-contact-page .wpcf7 input[type="submit"],
html body#body.is-contact-page .wpcf7 button[type="submit"] {
	font-size: 15px;
	padding: 12px 32px;
}
