/* ==========================================================================
   共通：ヘッダー・フッター・スマホの固定ボタン（本番サイトの見た目を再現）
   色：オレンジ #ff7f50 ／ 茶 #543c32 ／ 緑 #3f8b2c
   ========================================================================== */
:root {
	--s-orange: #ff7f50;
	--s-orange-deep: #f04a0d;
	--s-brown: #543c32;
	--s-green: #3f8b2c;
	--s-header: 96px;
	--s-gutter: 11%;
}
@media (max-width: 1024px) { :root { --s-header: 60px; } }

body {
	color: #000;
	font-family: "Noto Sans JP", Verdana, "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	background: #fff;
}
body img { max-width: 100%; height: auto; }
#content.site-content { padding-top: var(--s-header); }
body.soshin-front #content.site-content { padding-top: 0; }

/* ---------- ヘッダー ---------- */
.soshin-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	height: var(--s-header);
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
body.admin-bar .soshin-header { top: 32px; }
.soshin-header__inner { display: flex; align-items: center; height: 100%; padding-left: var(--s-gutter); }
.soshin-header__logo { margin: 0; line-height: 0; font-size: 0; }
.soshin-header__logo img { display: block; width: 253px; height: auto; max-height: 76px; }
.soshin-header__nav { margin-left: auto; }
.soshin-nav { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.soshin-nav > li { margin: 0; }
.soshin-nav > li > a { display: inline-block; padding: 0 10px; color: #000; font-size: 16px; letter-spacing: 1px; line-height: 1.2; text-decoration: none; }
.soshin-nav > li > a:hover { color: var(--s-orange); }
.soshin-header__tel { display: flex; flex-direction: column; align-items: center; width: 200px; margin-left: 10px; line-height: 1.2; }
.soshin-header__tel-label { font-size: 13px; }
.soshin-header__tel-num { position: relative; padding-left: 22px; color: var(--s-orange) !important; font-size: 24px; font-weight: 900; letter-spacing: .5px; text-decoration: none; }
.soshin-header__tel-num::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.soshin-header__contact { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100px; height: 100%; background: linear-gradient(to right top, #ff7f50, #ffc387); color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.soshin-header__contact img { width: 22px; height: auto; }
.soshin-header__sp-mail, .soshin-header__menu-btn { display: none; }

@media (max-width: 1024px) {
	.soshin-header__inner { padding-left: 16px; }
	.soshin-header__logo img { width: auto; height: 46px; }
	.soshin-header__tel, .soshin-header__contact { display: none; }
	.soshin-header__sp-mail { display: block; margin-left: auto; padding: 0 14px; line-height: 0; }
	.soshin-header__sp-mail img { width: 32px; }
	.soshin-header__menu-btn { position: relative; display: block; width: 60px; height: 60px; padding: 0; border: 0; background: none; cursor: pointer; }
	.soshin-header__menu-btn span, .soshin-header__menu-btn::before, .soshin-header__menu-btn::after { content: ""; position: absolute; left: 20px; width: 20px; height: 2px; background: #000; transition: transform .2s, opacity .2s; }
	.soshin-header__menu-btn span { top: 29px; }
	.soshin-header__menu-btn::before { top: 22px; }
	.soshin-header__menu-btn::after { top: 36px; }
	.soshin-header.is-open .soshin-header__menu-btn span { opacity: 0; }
	.soshin-header.is-open .soshin-header__menu-btn::before { transform: translateY(7px) rotate(45deg); }
	.soshin-header.is-open .soshin-header__menu-btn::after { transform: translateY(-7px) rotate(-45deg); }
	.soshin-header__nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; background: var(--s-orange); }
	.soshin-header.is-open .soshin-header__nav { display: block; }
	.soshin-nav { flex-direction: column; align-items: stretch; }
	.soshin-nav > li > a { display: block; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 13px; }
}
@media (max-width: 782px) { body.admin-bar .soshin-header { top: 46px; } }

/* ---------- フッター ---------- */
.soshin-footer { position: relative; padding: 88px 0; background: #b25a2e url(../images/bg/bg_footer.webp) center / cover no-repeat fixed; color: #fff; }
.soshin-footer a { color: #fff; text-decoration: none; }
.soshin-footer__inner { max-width: 1150px; margin: 0 auto; padding: 0 20px; box-sizing: content-box; }
.soshin-footer__catch { margin: 15px 0 45px; color: #fff; font-size: 44px; font-weight: 900; letter-spacing: 3.08px; line-height: 1; text-align: center; }
.soshin-footer__contact { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; text-align: center; }
.soshin-footer__tel, .soshin-footer__mail { flex: 0 1 540px; box-sizing: border-box; min-height: 158px; }
.soshin-footer__tel { display: flex; flex-direction: column; justify-content: center; gap: 14px; border: 1px solid #fff; }
.soshin-footer__tel-label { font-size: 18px; }
.soshin-footer__tel-num { font-size: 35px; font-weight: 900; letter-spacing: 2px; line-height: 1; }
.soshin-footer__mail { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #fff; background: #fff; color: var(--s-brown) !important; font-size: 20px; font-weight: 700; transition: opacity .2s; }
.soshin-footer__mail:hover { opacity: .85; }
.soshin-footer__mail img { width: 32px; height: 32px; }
.soshin-footer__border { height: 0; margin: 60px 0; border: 0; border-top: 1px solid #fff; background: none; }
.soshin-footer__company { display: flex; justify-content: space-between; gap: 40px; }
.soshin-footer__logo img { display: block; width: 300px; height: auto; }
.soshin-footer__address { margin: 20px 0 0; font-size: 16px; line-height: 1.5; }
.soshin-footer__map { margin: 10px 0 15px; }
.soshin-footer__map a { display: inline-block; padding: 6px 16px; border: 1px solid #fff; font-size: 14px; }
.soshin-footer__telfax { margin: 0; font-size: 16px; }
.soshin-footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
.soshin-footer-nav > li { margin: 0; padding: 0 15px; white-space: nowrap; }
.soshin-footer-nav a { font-size: 16px; letter-spacing: .7px; }
.soshin-footer-nav a:hover { text-decoration: underline; }
.soshin-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; font-size: 13px; line-height: 2; letter-spacing: .7px; }
.soshin-footer__bottom p { margin: 0; }
.soshin-footer__text { white-space: nowrap; }

/* ページの先頭へ */
.soshin-pagetop { position: fixed; right: 30px; bottom: 30px; z-index: 998; width: 55px; height: 55px; border-radius: 50%; background: var(--s-orange-deep); }
.soshin-pagetop::before { content: ""; position: absolute; left: 50%; top: 55%; width: 14px; height: 14px; border-top: 3px solid #fff; border-left: 3px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }

/* スマホの固定ボタン */
.soshin-footer-bar { display: none; }

/* フッター：959px 以下は縦に並べる（本番と同じ。640px 以下はさらにスマホ用の大きさ） */
@media (max-width: 1024px) {
	/* 背景の写真は画面に固定（スマホでも動かない。本番と同じ） */
	.soshin-footer { background: none; clip-path: inset(0); }
	.soshin-footer::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #b25a2e url(../images/bg/bg_footer.webp) center top / cover no-repeat; }
}
@media (max-width: 959px) {
	.soshin-footer { padding: 50px 39px 100px; }
	.soshin-footer__inner { max-width: none; padding: 0; }
	.soshin-footer__catch { margin: 15px 0 45px; }
	.soshin-footer__contact { display: block; padding: 0; }
	.soshin-footer__tel, .soshin-footer__mail { display: block; box-sizing: border-box; height: 158px; min-height: 0; }
	.soshin-footer__tel { margin: 0 0 30px; padding: 52px 0 0; }
	.soshin-footer__tel-label { display: block; line-height: 11.7px; }
	.soshin-footer__tel-num { display: inline-block; margin-top: 13px; padding-left: 0; line-height: 1; }
	.soshin-footer__tel-num::before { position: static; display: inline-block; width: 1em; height: 1em; margin-right: 4px; vertical-align: -0.1em; transform: none; }
	.soshin-footer__mail { padding: 60px 0 0; line-height: 1; }
	.soshin-footer__mail img { vertical-align: bottom; }
	.soshin-footer__border { display: none; }
	.soshin-footer__company { display: flex; flex-direction: column-reverse; gap: 0; }
	.soshin-footer__nav { margin: 50px 0 0; }
	.soshin-footer-nav { display: block; margin: 0 0 16px; }
	.soshin-footer-nav > li { display: block; padding: 15px 0; border-bottom: 1px solid #fff; text-align: center; }
	.soshin-footer-nav a { font-size: 16px; line-height: 1; letter-spacing: .7px; }
	.soshin-footer__about, .soshin-footer__bottom { font-weight: 400; text-align: center; letter-spacing: .7px; }
	.soshin-footer__logo { display: block; margin: 50px 0 10px; }
	.soshin-footer__logo img { display: inline-block; width: 300px; vertical-align: top; }
	.soshin-footer__address, .soshin-footer__telfax { margin: 0; padding: 2px 0; font-size: 15px; line-height: 30px; }
	.soshin-footer__map { margin: 10px 0 15px; padding: 2px 0; line-height: 30px; }
	.soshin-footer__map a { padding: 6px 16px; line-height: 20px; }
	.soshin-footer__bottom { display: block; margin-top: 61px; font-size: 13px; line-height: 1; }
	.soshin-footer__text { white-space: normal; }
	.soshin-footer__copy { margin: 15px 0 0; font-size: 15px; line-height: 30px; }
}
@media (max-width: 640px) {
	.soshin-footer { padding: 50px 15px 100px; }
	.soshin-footer__catch { font-size: 26px; letter-spacing: 1.82px; }
	.soshin-footer__tel, .soshin-footer__mail { height: 135px; }
	.soshin-footer__tel { margin-bottom: 20px; padding-top: 45px; }
	.soshin-footer__tel-num { font-size: 25px; }
	.soshin-footer__mail { padding-top: 50px; }
	.soshin-footer__nav { margin-top: 35px; }
	.soshin-footer__logo { margin-top: 30px; }
	.soshin-footer__bottom { font-size: 12px; line-height: 1.5; }
	.soshin-footer__copy { font-size: 12px; line-height: 24px; }
}

@media (max-width: 767px) {
	.soshin-pagetop { right: 12px; bottom: 76px; width: 44px; height: 44px; }

	.soshin-footer-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 997; display: flex; margin: 0; padding: 0 0 env(safe-area-inset-bottom); list-style: none; background: rgba(255, 255, 255, .96); box-shadow: 0 -2px 8px rgba(0, 0, 0, .12); }
	.soshin-footer-bar li { flex: 1; margin: 0; }
	.soshin-footer-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border-left: 1px solid #eee; color: var(--s-brown); font-size: 11px; font-weight: 700; text-decoration: none; }
	.soshin-footer-bar li:first-child a { border-left: 0; }
	.soshin-footer-bar__icon { width: 22px; height: 22px; background: var(--s-orange); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
	.soshin-footer-bar__icon--home { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-6h4v6h5v-8h3z'/%3E%3C/svg%3E"); }
	.soshin-footer-bar__icon--tel { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
	.soshin-footer-bar__icon--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7z'/%3E%3C/svg%3E"); }
	.soshin-footer-bar__icon--map { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
}

/* ---------- 本番との見比べで手直し ---------- */
/* メニュー：ヘッダーは「サイトマップ」「お問い合わせ」を出さない（本番と同じ）。フッターは「お問い合わせ」だけ出さない */
.soshin-nav > li:has(> a[href*="sitemap"]),
.soshin-nav > li:has(> a[href*="/contact"]),
.soshin-footer-nav > li:has(> a[href*="/contact"]) { display: none; }
.soshin-nav > li > a, .soshin-header__tel-num, .soshin-footer__tel-num { white-space: nowrap; }
@media (max-width: 1024px) {
	.soshin-nav > li:has(> a[href*="sitemap"]), .soshin-nav > li:has(> a[href*="/contact"]) { display: list-item; }
}
.soshin-footer__about, .soshin-footer__bottom { font-weight: 700; }
.soshin-footer__tel-num { position: relative; padding-left: 40px; }
.soshin-footer__tel-num::before { content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 32px; transform: translateY(-50%); background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 1024px) {
	.soshin-header__logo img { height: 54px; }
}
@media (max-width: 767px) {
	/* 画面下の固定ボタン：本番と同じオレンジ地に白 */
	.soshin-footer-bar { background: var(--s-orange); box-shadow: none; }
	.soshin-footer-bar a { border-left-color: rgba(255, 255, 255, .35); color: #fff; }
	.soshin-footer-bar__icon { background: #fff; }
}
body.soshin-sub, body.soshin-front { background: #fff !important; }

/* フッター（959px 以下）：上の「本番との見比べで手直し」より後に置く */
@media (max-width: 959px) {
	.soshin-footer__tel-num { padding-left: 0; }
	.soshin-footer__tel-num::before { position: static; display: inline-block; width: 1em; height: 1em; margin-right: 4px; vertical-align: -0.1em; transform: none; }
	.soshin-footer__about, .soshin-footer__bottom { font-weight: 400; }
}
/* 画面下の固定ボタン：本番と同じ色・大きさ（高さ 63px、アイコン 24px、文字 13px） */
@media (max-width: 767px) {
	.soshin-footer-bar { background: #fe9131; }
	.soshin-footer-bar a { gap: 0; padding: 10px 0 8px; border-left: 0; font-size: 13px; font-weight: 400; line-height: 21px; }
	.soshin-footer-bar__icon { width: 24px; height: 24px; }
}
@media (max-width: 959px) {
	.soshin-footer-nav { margin: 0; }
	.soshin-footer-nav > li { line-height: 16px; }
	.soshin-footer__copy small { font-size: inherit; }
	.soshin-footer__map { padding: 0; line-height: 34px; }
	.soshin-footer__map a { display: inline-block; vertical-align: top; }
}
@media (max-width: 640px) {
	.soshin-footer__copy { margin-top: 0; }
}
@media (max-width: 959px) {
	.soshin-footer__catch { font-size: 44px; line-height: 1; letter-spacing: 3.08px; }
	.soshin-footer__tel-num { font-size: 35px; }
	.soshin-footer__bottom .soshin-footer__copy { margin-top: 15px; }
}
@media (max-width: 640px) {
	.soshin-footer__catch { font-size: 26px; letter-spacing: 1.82px; }
	.soshin-footer__tel-num { font-size: 25px; }
	.soshin-footer__bottom .soshin-footer__copy { margin-top: 0; }
}
