/* =========================================================
   WordPress化に伴う追加スタイル（全ページ共通）
   ========================================================= */

h1.page-hero-title,
h1.hero-main-text,
h2.works-case-title { margin: 0; }
h2.works-case-title { margin-bottom: 4px; }

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

/* トップ：スライドの丸ボタン */
.hero-dots button {
	width: 12px; height: 12px; padding: 0; border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background 0.3s;
}
.hero-dots button.active { background: #fff; }

/* トップ：お知らせのリンク */
.news-item a.news-text { text-decoration: none; }
.news-item a.news-text:hover { color: var(--color-primary); text-decoration: underline; }
.news-more { text-align: center; margin-top: 24px; font-size: 14px; }
.news-more a { color: var(--color-primary); text-decoration: none; }
.news-more a:hover { text-decoration: underline; }
.news-empty { text-align: center; color: var(--color-text-light); font-size: 14px; padding: 16px 0; }

/* トップ：事業内容の写真 */
.service-img img {
	width: 100%; height: 100%;
	object-fit: cover; border-radius: 4px; display: block;
}

/* 事業内容ページの写真 */
.service-item-img img,
.other-item-img img {
	width: 100%; height: auto; aspect-ratio: 4 / 3;
	object-fit: cover; border-radius: 4px; display: block;
}
.other-item-img { padding: 0 !important; overflow: hidden; }

/* 施工事例 */
a.works-filter-btn { text-decoration: none; display: inline-block; }
.works-case-col img {
	width: 100%; height: auto; aspect-ratio: 4 / 3;
	object-fit: cover; border-radius: 4px; display: block;
	margin-bottom: 8px;
}
.works-case-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.works-case-cat {
	font-size: 11px; line-height: 1;
	padding: 5px 10px;
	border: 1px solid var(--color-primary);
	border-radius: 999px;
	color: var(--color-primary);
	text-decoration: none;
}
.works-case-cat:hover { background: var(--color-primary); color: #fff; }
.works-empty { text-align: center; color: var(--color-text-light); padding: 40px 0; }

/* お知らせ一覧 */
.news-entry-title a { color: inherit; text-decoration: none; }
.news-entry-title a:hover { color: var(--color-primary); text-decoration: underline; }
.news-entry-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; display: block; }
.news-year-list a.active { color: var(--color-primary); font-weight: 700; }

/* ページ送り（前へ） */
.news-pagination .prev,
.works-pagination .prev { width: auto; padding: 0 16px; font-size: 13px; }

/* お知らせ詳細 */
.news-article { max-width: 760px; margin: 0 auto; }
.news-article-date { font-size: 13px; color: var(--color-text-light); margin-bottom: 8px; }
.news-article-title {
	font-size: 22px; font-weight: 700; line-height: 1.6;
	margin: 0 0 32px; padding-bottom: 16px;
	border-bottom: 2px solid var(--color-primary);
}
.news-article-thumb { margin-bottom: 32px; }
.news-article-thumb img { width: 100%; height: auto; border-radius: 4px; display: block; }
.news-article-body { font-size: 15px; line-height: 2; }
.news-article-body > * + * { margin-top: 1.4em; }
.news-article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.news-article-body a { color: var(--color-primary); }
.news-article-body h2 { font-size: 18px; border-left: 4px solid var(--color-primary); padding-left: 12px; margin-top: 2em; }
.news-article-body h3 { font-size: 16px; margin-top: 1.8em; }
.news-article-body ul, .news-article-body ol { padding-left: 1.5em; }
.news-article-nav {
	display: flex; justify-content: space-between; gap: 16px;
	margin-top: 56px; padding-top: 24px; border-top: 1px solid #eee;
	font-size: 13px;
}
.news-article-nav a { color: var(--color-text); text-decoration: none; }
.news-article-nav a:hover { color: var(--color-primary); }
.back-link { text-align: center; margin-top: 40px; }
.back-link a {
	display: inline-block; padding: 12px 36px;
	border: 1px solid var(--color-primary); color: var(--color-primary);
	text-decoration: none; font-size: 14px; border-radius: 3px;
}
.back-link a:hover { background: var(--color-primary); color: #fff; }

/* 採用情報：求人がないとき */
.recruit-empty { text-align: center; padding: 40px 16px; background: #f7f7f5; border-radius: 4px; line-height: 2; }

/* お問い合わせフォーム */
.form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error-summary {
	max-width: 680px; margin: 0 auto 32px; padding: 16px 20px;
	background: #fdf0f0; border-left: 4px solid #c00; color: #a00;
	font-size: 14px; line-height: 1.8; border-radius: 3px;
}
.form-error { color: #c00; font-size: 13px; margin-top: 6px; }
.form-input .is-invalid { border-color: #c00 !important; background: #fffafa; }
.form-thanks { max-width: 680px; margin: 0 auto; text-align: center; padding: 60px 0; }
.form-thanks-mark { font-size: 48px; color: var(--color-primary); margin-bottom: 24px; }
.form-thanks-title { font-size: 22px; font-weight: 700; color: var(--color-text); margin-bottom: 16px; }
.form-thanks-text { font-size: 14px; line-height: 2; color: var(--color-text-light); }
.form-thanks-btn {
	display: inline-block; margin-top: 32px; padding: 12px 36px;
	background: var(--color-primary); color: #fff; text-decoration: none;
	font-size: 14px; font-weight: 600; letter-spacing: .05em; border-radius: 3px;
}
.form-privacy .form-error { margin-top: 8px; }

/* 汎用ページ・404 */
.entry-content { max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 2; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content a { color: var(--color-primary); }
.notfound { text-align: center; padding: 40px 0; line-height: 2; }

/* フッターのバナー */
.footer-banner-link img { max-width: 100%; height: auto; display: block; }

/* キーボード操作時の枠 */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* 代表者の写真 */
.greeting-photo img { width: 100%; height: auto; border-radius: 4px; display: block; }

/* ===== v1.1 追加 ===== */

/* トップ：事業内容の写真から施工事例へ */
a.service-link { display: block; color: inherit; text-decoration: none; }
a.service-link .service-img img { transition: transform .3s; }
a.service-link:hover .service-img img { transform: scale(1.05); }
a.service-link:hover .service-name { color: var(--color-primary); }
a.service-link .service-name::after { content: " →"; color: var(--color-primary); }

/* 施工事例：写真1枚 */
/* 施工前・施工後の写真1枚分と同じ大きさ・比率でそろえる */
.works-case-images--single .works-case-col { grid-column: 1; }

/* 代表者挨拶：写真がないとき */
.greeting-inner--no-photo { display: block; max-width: 760px; }

/* フッター上：お問い合わせフォームへのボタン */
.footer-cta-form { margin-top: 24px; }
.footer-cta-form a {
	display: inline-block; padding: 12px 36px;
	border: 1px solid #fff; border-radius: 3px;
	color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .05em;
}
.footer-cta-form a:hover { background: #fff; color: var(--color-primary); }
