/* =====================================================================
 * 細かいデザインの調整（2026-11-16。ビルドなし。main.css のあとに読み込む）
 *
 * 方針（frontend-design の考え方で見直した）
 * - このサイトの個性：白とグレーのモノトーン、古材・古道具の写真、太い英字の見出しと、
 *   画面の左の端から見出しの下まで伸びる黒い太い線。新しい飾りや色は足さず、これを生かす。
 * - 見せ場は 1 つだけ：見出しの黒い線が、画面の左の端から長い材木を引き出すように伸び、
 *   線が文字の下を通るころに英字の見出しが現れる（1 回きり）。
 *   以前は UIkit の slide-left で、見出しと線がまとめて画面の幅ぶん左から滑り込んでいた。
 * - ほかは静かに：グレーのボタンの「浮き上がり＋灰色の影」（2026-10 の _refresh.styl）は、
 *   どのサイトにもある量産型の見た目なのでやめ、色が変わるのと三角が動くのだけに。お問い合わせの送信ボタンも同じ。
 *   キーボードで動かしたときの印、「動きを減らす」設定への配慮。
 * ===================================================================== */

/* ------------------------------------------------------------ 見せ場：見出しの線が左の端から伸びる
 * スクロールで出る見出し（uk-scrollspy で uk-animation-slide-left が付く）は、全体を滑らせる動きを
 * 「何もしない」動きに差し替え、線と文字に別々の動きを付ける。ページの最初の見出し（page-title）は読み込んだときに */
@keyframes wd-stay {
	from { opacity: 1; }
	to { opacity: 1; }
}
@keyframes wd-rule {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}
@keyframes wd-title {
	from { opacity: 0; }
	to { opacity: 1; }
}
.line-title.uk-animation-slide-left {
	animation-name: wd-stay;
	animation-duration: 1.3s;
}
/* UIkit は animationend（線・文字の動きの終わりも親に届く）で uk-animation-slide-left を外すので、
   親・線・文字の動きはどれも 1.3 秒で終わるようにそろえる（そろえないと途中で切れて、線がぱっと伸びきる） */
.line-title:after {
	transform-origin: left center;
}
.line-title.uk-animation-slide-left:after,
.line-title.page-title:after {
	animation: wd-rule 1.3s cubic-bezier(.65, 0, .25, 1) both;
}
.line-title.uk-animation-slide-left > h1,
.line-title.uk-animation-slide-left > h2,
.line-title.page-title > h1,
.line-title.page-title > h2 {
	animation: wd-title .7s ease .6s both;
}

/* ------------------------------------------------------------ ボタン：浮き上がりと灰色の影はやめる（色が変わる・三角が動くのは残す） */
@media (hover: hover) {
	.acf-block-primary-btn:hover {
		transform: none;
		box-shadow: 0 0 0 2px #fff;
	}
	body.page-template-page-contact main form div.send input[type="submit"]:hover {
		transform: none;
		box-shadow: none;
	}
}

/* ------------------------------------------------------------ キーボードで動かしたときの印（マウス・タップでは出ない） */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input[type="submit"]:focus-visible,
select:focus-visible {
	outline: 2px solid #222;
	outline-offset: 3px;
}
.main-contact-banner a:focus-visible,
.line-title.white a:focus-visible {
	outline-color: #fff;
}

/* ------------------------------------------------------------ 「動きを減らす」設定の人には動きを出さない */
@media (prefers-reduced-motion: reduce) {
	.line-title:after,
	.line-title > h1,
	.line-title > h2 {
		animation: none !important;
	}
}

/* =====================================================================
 * ヘッダー・トップの左のメニュー・フッター・お問い合わせ（2026-11-16 にユーザーの依頼で追加。動きは polish.js）
 * 色は今のまま（白・薄いグレー #f5f5f5・墨 #222・ボタンのグレー #707070 とマウスを乗せたときのオレンジ #FF4500）。
 * 線は見出しと同じ「左から伸びる黒い線」で統一（メニューのホバー・トップの左のメニュー・フッターのリンク）。
 * ===================================================================== */

/* ------------------------------------------------------------ 共通：左から伸びる下線（ホバー） */
.main-header__nav > li:not(.has-submenu):not(.sp-sns) > a,
.main-header__nav ul.submenu a,
.wd-footer__menu a,
.wd-footer__info a.wd-footer__logo + h2 a {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 0 1px;
	padding-bottom: 3px;
	transition: background-size .35s cubic-bezier(.3, .7, .3, 1), opacity .3s ease;
}
@media (hover: hover) {
	.main-header__nav > li:not(.has-submenu):not(.sp-sns) > a:hover,
	.main-header__nav ul.submenu a:hover,
	.wd-footer__menu a:hover {
		background-size: 100% 1px;
		opacity: 1;
	}
}

/* ------------------------------------------------------------ ヘッダー：1151px 以上はメニューをヘッダーに並べる（以前はどの幅でもメニューのボタンの中） */
@media only screen and (min-width: 1151px) {
	.main-header__hum {
		display: none !important;
	}
	.main-header__nav-wrapper,
	.main-header .main-header__nav-wrapper.active {
		position: static;
		width: auto;
		max-height: none;
		overflow: visible;
		background-color: transparent;
		margin-left: auto;
		padding: 0;
	}
	.main-header__nav {
		padding: 0 20px 0 0;
		gap: 34px;
		align-items: center;
	}
	.main-header__nav > li > a {
		font-size: 13px;
		letter-spacing: .12em;
	}
	.main-header__nav > li.sp-sns {
		display: none;
	}
	/* トップのヘッダーは地がなく（front-page.styl）、メニューの文字が写真や見出しに重なるので、うすいグレーの地を敷く */
	.page-template-front-page header.main-header {
		background-color: rgba(245, 245, 245, .94);
	}
	.main-header__nav li.has-submenu ul.submenu {
		top: calc(100% + 14px);
		left: -20px;
		padding: 6px 20px 18px;
		border: 1px solid #e3e3e3;
	}
	.main-header__nav li.has-submenu ul.submenu > li:first-child {
		padding-top: 14px;
	}
}

/* ------------------------------------------------------------ ヘッダー：1150px 以下のメニュー（全面の白いパネル）
 * 開いているあいだの html の overflow:hidden（_body.styl）は、スクロールバーが常に出る環境で画面がずれるのでやめ、
 * polish.js でスクロールを止める */
@media only screen and (max-width: 1150px) {
	html.modal {
		overflow: visible;
	}
	.main-header .main-header__nav-wrapper.active {
		max-height: 100vh;
		max-height: 100dvh;
		height: 100vh;
		height: 100dvh;
	}
	.main-header__nav {
		padding-top: 96px;
	}
	.main-header__nav > li {
		border-bottom-color: #e6e6e6;
	}
	.main-header__nav > li:first-child {
		border-top: 1px solid #e6e6e6;
	}
	.main-header__nav > li > a {
		font-size: 15px;
		letter-spacing: .14em;
		padding: 22px 36px;
	}
	/* 項目の右に細い矢印（サブメニューのある項目は元の下向きの印のまま） */
	.main-header__nav > li:not(.has-submenu):not(.sp-sns) > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		line-height: 1.4;
		background-image: none;
		/* 共通の下線の padding-bottom: 3px（詳細度が高い）を打ち消す */
		padding: 22px 36px;
	}
	.main-header__nav > li:not(.has-submenu):not(.sp-sns) > a:after {
		content: '';
		flex: none;
		width: 7px;
		height: 7px;
		margin-right: 2px;
		border-top: 1px solid #222;
		border-right: 1px solid #222;
		transform: rotate(45deg);
	}
	.main-header__nav > li.sp-sns {
		border-bottom: 0;
		padding: 28px 36px;
	}
	.main-header__nav > li.sp-sns ul {
		display: flex;
		gap: 20px;
	}
}
@media only screen and (max-width: 599px) {
	.main-header__nav {
		padding-top: 80px;
	}
	.main-header__nav > li > a,
	.main-header__nav > li:not(.has-submenu):not(.sp-sns) > a {
		padding: 19px 24px;
	}
	.main-header__nav > li.sp-sns {
		padding: 24px;
	}
}

/* ------------------------------------------------------------ トップの左のメニュー：左から短い黒い線が伸びる（ホバー） */
header.home-header nav > li > a {
	position: relative;
	display: inline-block;
	font-size: 14px;
	letter-spacing: .14em;
	transition: color .3s ease;
}
header.home-header nav > li > a:before {
	content: '';
	position: absolute;
	left: -34px;
	top: 50%;
	width: 24px;
	height: 1px;
	background-color: #222;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .4s cubic-bezier(.3, .7, .3, 1);
}
header.home-header nav > li:not(:first-child) {
	margin-top: 22px;
}
header.home-header nav > li.sns-group {
	margin-top: 34px;
}
@media (hover: hover) {
	header.home-header nav > li > a:hover {
		color: #222;
	}
	header.home-header nav > li > a:hover:before {
		transform: scaleX(1);
	}
}
header.home-header nav > li > a:focus-visible:before {
	transform: scaleX(1);
}

/* ------------------------------------------------------------ フッター（template-parts/footer-main.php を組み直した） */
.main-footer.wd-footer {
	text-align: left;
	padding: 64px 0 28px;
}
.wd-footer__inner {
	max-width: var(--contentWidth, 1110px);
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 48px;
	align-items: start;
}
.wd-footer__logo {
	display: inline-block;
	transition: opacity .3s ease;
}
.wd-footer__logo img {
	display: block;
	height: 36px;
	width: auto;
}
@media (hover: hover) {
	.wd-footer__logo:hover {
		opacity: .7;
	}
}
.wd-footer__name {
	margin-top: 20px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .08em;
}
.wd-footer__address,
.wd-footer__tel {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.9;
	letter-spacing: .04em;
	color: #555;
}
.wd-footer__nav {
	display: flex;
	gap: 64px;
}
.wd-footer__menu li + li {
	margin-top: 12px;
}
.wd-footer__menu a {
	color: #222;
	font-size: 13px;
	letter-spacing: .06em;
}
.wd-footer__menu--main a {
	font-weight: 600;
	letter-spacing: .12em;
}
.wd-footer__bottom {
	max-width: var(--contentWidth, 1110px);
	margin: 48px auto 0;
	padding: 20px 20px 0;
	border-top: 1px solid #dedede;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.wd-footer__sns {
	display: flex;
	gap: 16px;
}
.wd-footer__sns a {
	display: block;
	transition: opacity .3s ease;
}
.wd-footer__sns img {
	display: block;
	width: 22px;
	height: 22px;
}
@media (hover: hover) {
	.wd-footer__sns a:hover {
		opacity: .6;
	}
}
.wd-footer__copyright {
	font-size: 11px;
	letter-spacing: .08em;
	color: #6b6b6b;
	margin-left: auto;
}
@media only screen and (max-width: 599px) {
	.main-footer.wd-footer {
		padding: 48px 0 24px;
	}
	.wd-footer__inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.wd-footer__nav {
		gap: 48px;
	}
	.wd-footer__address,
	.wd-footer__tel {
		font-size: 12px;
	}
	.wd-footer__bottom {
		margin-top: 36px;
		flex-direction: column-reverse;
		align-items: flex-start;
	}
	.wd-footer__copyright {
		margin-left: 0;
	}
}

/* ------------------------------------------------------------ お問い合わせ：手順（入力 → 確認 → 送信完了） */
ol.wd-steps {
	list-style: none;
	display: flex;
	max-width: 480px;
	margin: 8px auto 48px;
	padding: 0;
}
ol.wd-steps li {
	flex: 1;
	position: relative;
	text-align: center;
	color: #8a8a8a;
}
ol.wd-steps li:not(:first-child):before {
	content: '';
	position: absolute;
	top: 14px;
	right: 50%;
	width: 100%;
	height: 1px;
	background-color: #cfcfcf;
	z-index: 0;
}
ol.wd-steps li.is-done:before,
ol.wd-steps li.is-current:before {
	background-color: #222;
}
ol.wd-steps .wd-steps__num {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	border: 1px solid #bdbdbd;
	border-radius: 50%;
	background-color: #f5f5f5;
	font-size: 13px;
	font-weight: 600;
}
ol.wd-steps .wd-steps__label {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	letter-spacing: .12em;
}
ol.wd-steps li.is-done {
	color: #222;
}
ol.wd-steps li.is-done .wd-steps__num {
	border-color: #222;
}
ol.wd-steps li.is-current {
	color: #222;
}
ol.wd-steps li.is-current .wd-steps__num {
	border-color: #222;
	background-color: #222;
	color: #fff;
}
ol.wd-steps li.is-current .wd-steps__label {
	font-weight: 600;
}

/* ------------------------------------------------------------ お問い合わせ：フォーム（白い地にまとめる） */
body.page-template-page-contact main div.wpcf7 {
	background-color: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	padding: 48px 56px 44px;
}
body.page-template-page-contact main form div.form {
	margin-bottom: 30px;
}
body.page-template-page-contact main form div.form label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	margin-bottom: 8px;
}
/* 入力の画面だけ、項目名の横に「必須」（どの項目も必須） */
body.page-template-page-contact main.contact form div.form > label:after {
	content: '必須';
	display: inline-block;
	margin-left: 8px;
	padding: 1px 6px;
	border-radius: 2px;
	background-color: #222;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.6;
	vertical-align: 2px;
}
body.page-template-page-contact main form div.form input[type="text"],
body.page-template-page-contact main form div.form input[type="tel"],
body.page-template-page-contact main form div.form input[type="email"],
body.page-template-page-contact main form div.form textarea {
	border: 1px solid #bdbdbd;
	padding: 12px 14px;
	font-size: 16px;
	background-color: #fff;
}
body.page-template-page-contact main form div.form input:focus,
body.page-template-page-contact main form div.form textarea:focus {
	border-color: #222;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
	background-color: #fff;
}
body.page-template-page-contact main form div.tips {
	background-color: #f5f5f5;
	border-radius: 4px;
	padding: 14px 18px;
	font-size: 12px;
	line-height: 2;
	color: #555;
	margin-bottom: 36px;
}
body.page-template-page-contact main form span.wpcf7-not-valid-tip {
	color: #c43c00;
	font-size: 12px;
}
body.page-template-page-contact main form div.send input[type="submit"],
body.page-template-page-contact main form div.send input[type="button"] {
	max-width: 350px;
	width: 100%;
	padding: 16px 0;
	border-radius: 5px;
	font-size: 15px;
	letter-spacing: .14em;
	cursor: pointer;
}
body.page-template-page-contact main form div.send input[type="button"] {
	background-color: #fff;
	color: #222;
	border: 1px solid #bdbdbd;
	display: block;
	margin: 14px auto 0;
	transition: border-color .3s ease;
}
@media (hover: hover) {
	body.page-template-page-contact main form div.send input[type="button"]:hover {
		border-color: #222;
	}
}
/* 電話でのお問い合わせ（polish.js が見出しと文を .wd-telcard にまとめ、番号をリンクに） */
body.page-template-page-contact main .wd-telcard {
	margin-top: 40px;
	padding: 24px 28px;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	background-color: #fff;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 24px;
}
body.page-template-page-contact main .wd-telcard h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
}
body.page-template-page-contact main .wd-telcard p {
	margin: 0;
	font-size: 13px;
	color: #555;
}
body.page-template-page-contact main .wd-telcard a {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .06em;
	color: #222;
	text-decoration: none;
	margin-left: 4px;
	white-space: nowrap;
}
@media only screen and (max-width: 599px) {
	body.page-template-page-contact main div.wpcf7 {
		padding: 28px 20px 28px;
	}
	ol.wd-steps {
		margin-bottom: 36px;
	}
	body.page-template-page-contact main .wd-telcard {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	header.home-header nav > li > a:before,
	.main-header__nav a,
	.wd-footer__menu a {
		transition: none !important;
	}
}
