/*
Theme Name: 合同会社高速成長
Theme URI: https://example.com/
Author: 合同会社高速成長
Description: リフォーム会社向けのワンページ構成コーポレートテーマ。ヒーロー・私たちについて・サービス・お問い合わせの4セクションをカスタマイザーから編集できます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kousoku-seichou
Tags: one-column, custom-logo, custom-menu, editor-style, translation-ready
*/

/* -----------------------------------------------------------------
 * 1. 変数
 * ----------------------------------------------------------------- */
:root {
	--ks-accent: #a3886a;
	--ks-accent-dark: #8d7358;
	--ks-text: #3a3733;
	--ks-text-muted: #6f6a63;
	--ks-bg: #fdfbf8;
	--ks-bg-alt: #f3eee7;
	--ks-border: #e3dbd0;
	--ks-white: #ffffff;

	--ks-container: 1120px;
	--ks-header-h: 76px;

	--ks-font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
		"Yu Gothic", "Meiryo", sans-serif;

	--ks-shadow: 0 2px 20px rgba(120, 100, 75, 0.07);
}

/* -----------------------------------------------------------------
 * 2. リセット / ベース
 * ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--ks-header-h);
}

body {
	margin: 0;
	font-family: var(--ks-font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--ks-text);
	background-color: var(--ks-bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ks-accent-dark);
	text-decoration: none;
	transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
	opacity: 0.75;
}

h1,
h2,
h3,
h4,
p,
figure {
	margin: 0;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
}

:focus-visible {
	outline: 2px solid var(--ks-accent);
	outline-offset: 3px;
}

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

.ks-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 18px;
	clip: auto;
	background: var(--ks-white);
	box-shadow: var(--ks-shadow);
}

/* -----------------------------------------------------------------
 * 3. レイアウト部品
 * ----------------------------------------------------------------- */
.ks-container {
	width: 100%;
	max-width: var(--ks-container);
	margin-inline: auto;
	padding-inline: 24px;
}

.ks-section {
	padding-block: 96px;
}

.ks-section--alt {
	background-color: var(--ks-bg-alt);
}

.ks-section__head {
	text-align: center;
	margin-bottom: 56px;
}

.ks-section__title {
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.5;
}

.ks-section__title::after {
	content: "";
	display: block;
	width: 44px;
	height: 2px;
	margin: 20px auto 0;
	background-color: var(--ks-accent);
}

.ks-section__lead {
	margin-top: 24px;
	color: var(--ks-text-muted);
	font-size: 15px;
}

.ks-button {
	display: inline-block;
	min-width: 224px;
	padding: 16px 32px;
	border: 0;
	border-radius: 2px;
	background-color: var(--ks-accent);
	color: var(--ks-white);
	font-size: 15px;
	letter-spacing: 0.08em;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.ks-button:hover {
	background-color: var(--ks-accent-dark);
	color: var(--ks-white);
	opacity: 1;
	transform: translateY(-2px);
}

.ks-icon {
	display: block;
	margin-inline: auto;
	color: var(--ks-accent);
}

/* -----------------------------------------------------------------
 * 4. ヘッダー
 * ----------------------------------------------------------------- */
.ks-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(6px);
	transition: box-shadow 0.3s ease;
}

.ks-header.is-scrolled {
	box-shadow: 0 1px 14px rgba(120, 100, 75, 0.1);
}

.ks-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--ks-header-h);
}

.ks-header__brand {
	font-size: 19px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--ks-text);
	line-height: 1.4;
}

.ks-header__brand a {
	color: inherit;
}

.ks-header__brand img {
	max-height: 44px;
	width: auto;
}

.ks-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
}

.ks-nav__list a {
	position: relative;
	display: inline-block;
	padding-block: 6px;
	font-size: 14px;
	letter-spacing: 0.06em;
	color: var(--ks-text);
}

.ks-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: var(--ks-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.ks-nav__list a:hover::after,
.ks-nav__list .is-current > a::after {
	transform: scaleX(1);
}

.ks-nav__list a:hover {
	opacity: 1;
	color: var(--ks-accent-dark);
}

.ks-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ks-nav-toggle__bar,
.ks-nav-toggle__bar::before,
.ks-nav-toggle__bar::after {
	display: block;
	width: 24px;
	height: 1.5px;
	margin-inline: auto;
	background-color: var(--ks-text);
	transition: transform 0.3s ease, opacity 0.2s ease;
}

.ks-nav-toggle__bar::before,
.ks-nav-toggle__bar::after {
	content: "";
	position: relative;
}

.ks-nav-toggle__bar::before {
	top: -7px;
}

.ks-nav-toggle__bar::after {
	top: 5.5px;
}

.ks-nav-toggle[aria-expanded="true"] .ks-nav-toggle__bar {
	background-color: transparent;
}

.ks-nav-toggle[aria-expanded="true"] .ks-nav-toggle__bar::before {
	transform: translateY(7px) rotate(45deg);
}

.ks-nav-toggle[aria-expanded="true"] .ks-nav-toggle__bar::after {
	transform: translateY(-5.5px) rotate(-45deg);
}

/* -----------------------------------------------------------------
 * 5. ヒーロー
 * ----------------------------------------------------------------- */
.ks-hero {
	position: relative;
	overflow: hidden;
}

.ks-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: 48px;
	min-height: min(78vh, 620px);
}

.ks-hero__body {
	max-width: 600px;
	margin-left: auto;
	padding: 72px 40px 72px 24px;
}

.ks-hero__title {
	font-size: clamp(24px, 3.1vw, 36px);
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0.04em;
}

.ks-hero__text {
	margin-top: 28px;
	font-size: 15px;
	color: var(--ks-text-muted);
	line-height: 2.1;
}

.ks-hero__actions {
	margin-top: 44px;
}

.ks-hero__scroll {
	display: inline-flex;
	margin-top: 28px;
	margin-left: 84px;
	color: var(--ks-accent);
	animation: ks-bounce 2.4s ease-in-out infinite;
}

@keyframes ks-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(8px);
	}
}

.ks-hero__media {
	position: relative;
	align-self: stretch;
	min-height: 320px;
}

.ks-hero__media img,
.ks-hero__media .ks-hero__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ks-hero__placeholder {
	background: linear-gradient(140deg, #efe7dc 0%, #ded1bf 100%);
}

/* -----------------------------------------------------------------
 * 6. 私たちについて
 * ----------------------------------------------------------------- */
.ks-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	margin-top: 72px;
	text-align: center;
}

.ks-feature__title {
	margin-top: 24px;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.06em;
}

.ks-feature__text {
	margin-top: 14px;
	font-size: 14px;
	color: var(--ks-text-muted);
	line-height: 2;
}

/* -----------------------------------------------------------------
 * 7. サービス
 * ----------------------------------------------------------------- */
.ks-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.ks-service {
	padding: 48px 28px 44px;
	background-color: var(--ks-white);
	text-align: center;
	box-shadow: var(--ks-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ks-service:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(120, 100, 75, 0.13);
}

.ks-service__title {
	margin-top: 24px;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.06em;
}

.ks-service__text {
	margin-top: 14px;
	font-size: 14px;
	color: var(--ks-text-muted);
	line-height: 2;
}

/* -----------------------------------------------------------------
 * 8. お問い合わせ
 * ----------------------------------------------------------------- */
.ks-form {
	max-width: 720px;
	margin: 0 auto;
}

.ks-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ks-form__field--full {
	grid-column: 1 / -1;
}

.ks-form input[type="text"],
.ks-form input[type="email"],
.ks-form input[type="tel"],
.ks-form textarea {
	width: 100%;
	padding: 16px 18px;
	border: 1px solid var(--ks-border);
	border-radius: 2px;
	background-color: var(--ks-white);
	font-family: inherit;
	font-size: 15px;
	color: var(--ks-text);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ks-form textarea {
	min-height: 150px;
	resize: vertical;
}

.ks-form ::placeholder {
	color: #b3aca2;
}

.ks-form input:focus,
.ks-form textarea:focus {
	outline: none;
	border-color: var(--ks-accent);
	box-shadow: 0 0 0 3px rgba(163, 136, 106, 0.12);
}

.ks-form__field--error input,
.ks-form__field--error textarea {
	border-color: #c0554a;
}

.ks-form__error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #c0554a;
}

.ks-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ks-form__actions {
	margin-top: 32px;
	text-align: center;
}

.ks-form__privacy {
	margin-top: 20px;
	font-size: 13px;
	color: var(--ks-text-muted);
	text-align: center;
}

.ks-notice {
	max-width: 720px;
	margin: 0 auto 32px;
	padding: 18px 24px;
	border-radius: 2px;
	font-size: 15px;
	text-align: center;
}

.ks-notice--success {
	border: 1px solid #b7cfb2;
	background-color: #f1f7ef;
	color: #40663a;
}

.ks-notice--error {
	border: 1px solid #e0b3ad;
	background-color: #fbf0ee;
	color: #a1443a;
}

/* -----------------------------------------------------------------
 * 9. フッター
 * ----------------------------------------------------------------- */
.ks-footer {
	padding-block: 56px 32px;
	background-color: var(--ks-text);
	color: rgba(255, 255, 255, 0.82);
	text-align: center;
}

.ks-footer__brand {
	font-size: 18px;
	letter-spacing: 0.08em;
	color: var(--ks-white);
}

.ks-footer__info {
	margin-top: 16px;
	font-size: 14px;
	line-height: 2;
}

.ks-footer__info a {
	color: rgba(255, 255, 255, 0.82);
}

.ks-footer__nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 24px;
	margin-top: 28px;
	font-size: 14px;
}

.ks-footer__nav a {
	color: rgba(255, 255, 255, 0.82);
}

.ks-footer__copyright {
	margin-top: 36px;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.55);
}

/* -----------------------------------------------------------------
 * 10. 汎用ページ（固定ページ・投稿・404）
 * ----------------------------------------------------------------- */
.ks-page {
	padding-block: 80px;
}

.ks-page__title {
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-align: center;
	margin-bottom: 48px;
}

.ks-entry {
	max-width: 760px;
	margin-inline: auto;
}

.ks-entry > * + * {
	margin-top: 24px;
}

.ks-entry h2 {
	font-size: 22px;
	font-weight: 500;
}

.ks-entry h3 {
	font-size: 19px;
	font-weight: 500;
}

.ks-entry ul,
.ks-entry ol {
	padding-left: 1.4em;
	list-style: revert;
}

.ks-entry blockquote {
	margin-inline: 0;
	padding-left: 20px;
	border-left: 3px solid var(--ks-accent);
	color: var(--ks-text-muted);
}

.ks-pagination {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 48px;
}

/* -----------------------------------------------------------------
 * 11. スクロール表示アニメーション
 * ----------------------------------------------------------------- */
.ks-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.ks-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* -----------------------------------------------------------------
 * 12. レスポンシブ
 * ----------------------------------------------------------------- */
@media (max-width: 900px) {
	.ks-section {
		padding-block: 72px;
	}

	.ks-hero__inner {
		grid-template-columns: 1fr;
		gap: 0;
		min-height: 0;
	}

	.ks-hero__body {
		max-width: none;
		margin-left: 0;
		padding: 56px 24px 48px;
		text-align: center;
	}

	.ks-hero__scroll {
		display: none;
	}

	.ks-hero__media {
		order: -1;
		height: 46vw;
		min-height: 240px;
	}

	.ks-features {
		grid-template-columns: 1fr;
		gap: 44px;
		margin-top: 48px;
	}

	.ks-services {
		grid-template-columns: 1fr;
	}

	.ks-nav-toggle {
		display: block;
	}

	.ks-nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--ks-white);
		box-shadow: 0 12px 20px rgba(120, 100, 75, 0.12);
		clip-path: inset(0 0 100% 0);
		transition: clip-path 0.3s ease;
	}

	.ks-nav.is-open {
		clip-path: inset(0 0 0 0);
	}

	.ks-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 24px 20px;
	}

	.ks-nav__list li + li {
		border-top: 1px solid var(--ks-border);
	}

	.ks-nav__list a {
		display: block;
		padding-block: 16px;
	}

	.ks-nav__list a::after {
		display: none;
	}

	.ks-form__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.ks-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ks-hero__scroll {
		animation: none;
	}
}
