@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

:root {
	--sg-ink: #26302a;
	--sg-muted: #657065;
	--sg-line: #d7dfd4;
	--sg-soft: #f4f7f1;
	--sg-note: #fbf7ed;
	--sg-paper: #fff;
	--sg-green: #557a46;
	--sg-green-dark: #345b35;
	--sg-green-soft: #e1ecd9;
	--sg-gold: #c99f3f;
	--sg-link: #805f1f;
	--sg-link-hover: #a77f43;
	--sg-wine: #800020;
	--sg-shadow: 0 14px 34px rgba(38, 48, 42, .08);
	--color_main: #557a46;
	--color_text: #26302a;
	--color_link: #805f1f;
	--color_header_bg: #fff;
	--color_header_text: #26302a;
	--color_footer_bg: #eef4f6;
	--color_footer_text: #26302a;
}

body {
	color: var(--sg-ink);
	font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Times New Roman", serif;
	line-height: 1.8;
	overflow-x: hidden;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

.sg-site .wp-block-image {
	margin: 0;
}

.sg-site .wp-block-group__inner-container {
	display: contents;
}

.c-gnav > li > a,
.p-spMenu a {
	font-weight: 700;
}

.l-header {
	border-bottom: 1px solid rgba(85, 122, 70, .18);
	box-shadow: 0 2px 16px rgba(38, 48, 42, .05);
}

.l-header__inner {
	align-items: center;
}

.l-header__logo {
	align-items: center;
	display: flex;
}

.c-headLogo.-txt {
	color: var(--sg-green-dark);
	display: block;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	max-width: 100%;
	overflow-wrap: anywhere;
}

#fix_bottom_menu .menu-item a[href^="tel:"] i,
#fix_bottom_menu .menu-item a[href*="/contact/"] i {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	display: block;
	height: 22px;
	margin: 0 auto;
	width: 22px;
}

#fix_bottom_menu .menu-item a[href^="tel:"] i::before,
#fix_bottom_menu .menu-item a[href*="/contact/"] i::before {
	content: none;
}

#fix_bottom_menu .menu-item a[href^="tel:"] i {
	background-image: url("/wp-content/uploads/2026/07/call_icon.svg");
}

#fix_bottom_menu .menu-item a[href*="/contact/"] i {
	background-image: url("/wp-content/uploads/2026/07/talk_icon.svg");
}

.page.sg-custom-layout-page .p-articleHead,
.page.sg-custom-layout-page .c-pageTitle,
.page.sg-custom-layout-page .p-articleMetas,
.home .p-articleHead,
.home .c-pageTitle {
	display: none;
}

.page.sg-custom-layout-page .l-mainContent__inner,
.home .l-mainContent__inner {
	margin: 0;
	max-width: none;
}

.page.sg-custom-layout-page .l-content,
.home .l-content {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.page.sg-custom-layout-page .l-content {
	padding-top: 0;
}

.page.sg-custom-layout-page .l-mainContent,
.home .l-mainContent {
	margin: 0;
	width: 100%;
}

.page.sg-custom-layout-page .l-sidebar,
.home .l-sidebar {
	display: none;
}

.home .p-mainVisual,
.home .p-postSlider,
.home .p-pickupBanners,
.home .p-postListWrap.-top {
	display: none;
}

.page.sg-custom-layout-page .post_content,
.home .post_content {
	margin: 0;
}

.post_content .sg-site :where(h1, h2, h3, p, ul) {
	margin-top: 0;
}

.post_content .sg-site h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
.post_content .sg-site h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
.post_content .sg-site h4:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
	background: none;
	border: 0;
	color: inherit;
	padding: 0;
}

.post_content .sg-site h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
.post_content .sg-site h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
.post_content .sg-site h4:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
	display: none;
}

.sg-site {
	color: var(--sg-ink);
	font-size: 16px;
	letter-spacing: 0;
	max-width: 100vw;
	overflow-x: hidden;
}

.sg-site a:not(.wp-block-button__link):not(.sg-news-row) {
	color: var(--sg-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .16em;
}

.p-breadcrumb a,
.l-footer .textwidget a {
	color: var(--sg-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .16em;
}

.sg-site a:not(.wp-block-button__link):not(.sg-news-row):hover {
	color: var(--sg-link-hover);
	text-decoration: none;
}

.p-breadcrumb a:hover,
.l-footer .textwidget a:hover {
	color: var(--sg-link-hover);
	text-decoration: none;
}

.sg-site,
.sg-site *,
.sg-site *::before,
.sg-site *::after {
	box-sizing: border-box;
}

.sg-site :where(p, h1, h2, h3, h4, li, span, strong, a, small, label) {
	overflow-wrap: anywhere;
}

.sg-container {
	margin: 0 auto;
	max-width: 1120px;
	padding: 0 24px;
	width: 100%;
}

.sg-section {
	padding: 72px 0;
}

.sg-section--soft {
	background: var(--sg-soft);
}

.sg-section--note {
	background: var(--sg-note);
}

.sg-hero {
	background: linear-gradient(90deg, #fff 0%, #fff 56%, var(--sg-soft) 56%, var(--sg-soft) 100%);
	border-bottom: 1px solid var(--sg-line);
}

.sg-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	margin: 0 auto;
	max-width: 1280px;
	min-height: 520px;
}

.sg-hero__copy {
	align-self: center;
	box-sizing: border-box;
	padding: 64px clamp(24px, 5vw, 72px);
	width: 100%;
}

.sg-hero__image {
	min-height: 520px;
	overflow: hidden;
}

.sg-hero__image img,
.sg-image img,
.sg-card__photo img,
.sg-banner__logo img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sg-kicker {
	border-left: 5px solid var(--sg-green);
	color: var(--sg-green);
	display: inline-block;
	font-weight: 800;
	line-height: 1.45;
	margin-bottom: 10px;
	padding-left: 14px;
}

.sg-title {
	color: var(--sg-green-dark);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.35;
	line-break: anywhere;
	margin-bottom: 20px;
	overflow-wrap: anywhere;
	word-break: break-all;
}

.sg-lead {
	color: #415044;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.9;
	margin-bottom: 24px;
	overflow-wrap: anywhere;
	word-break: break-all;
}

.sg-note-list {
	display: grid;
	gap: 10px;
	margin: 0 0 16px;
}

.sg-note-pill {
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	color: var(--sg-green-dark);
	font-weight: 800;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 12px 16px;
}

.sg-hero-support-note {
	color: var(--sg-green-dark);
	font-weight: 700;
	line-height: 1.75;
	margin: 0 0 18px;
}

.sg-button,
.sg-button-block .wp-block-button__link,
.sg-submit .wpcf7-submit {
	align-items: center;
	background: var(--sg-green);
	border: 2px solid var(--sg-green);
	border-radius: 999px;
	box-shadow: 0 10px 22px rgba(85, 122, 70, .18);
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 54px;
	padding: 0 28px;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sg-button:hover,
.sg-button-block .wp-block-button__link:hover,
.sg-submit .wpcf7-submit:hover {
	background: var(--sg-green-dark);
	box-shadow: 0 14px 28px rgba(85, 122, 70, .24);
	color: #fff;
	transform: translateY(-1px);
}

.sg-button--light {
	background: #fff;
	color: var(--sg-green-dark);
}

.sg-section-head {
	align-items: end;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 28px;
}

.sg-heading {
	color: var(--sg-green-dark);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.45;
	margin-bottom: 0;
}

.post_content .sg-site .sg-heading,
.post_content .sg-site .sg-title,
.post_content .sg-site .sg-card-title,
.post_content .sg-site .sg-card h3,
.post_content .sg-site .sg-step h3,
.post_content .sg-site .sg-approach-card h3 {
	color: var(--sg-green-dark);
	font-weight: 800;
}

.sg-helper {
	color: var(--sg-muted);
	font-size: 15px;
	margin-bottom: 0;
}

.sg-grid {
	align-items: stretch;
	display: grid;
	gap: 18px;
}

.sg-grid--5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sg-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sg-guide-grid {
	counter-reset: sg-guide;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.post_content .sg-guide-grid > li,
.sg-guide-grid > li {
	counter-increment: sg-guide;
	margin: 0;
	padding: 0;
}

.sg-guide-grid > li::before {
	content: none !important;
}

.sg-guide-grid > li > a {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(38, 48, 42, .04);
	color: var(--sg-green-dark);
	display: grid;
	font-weight: 800;
	gap: 12px;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	height: 100%;
	line-height: 1.55;
	min-height: 74px;
	padding: 14px 16px;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sg-guide-grid > li > a::before {
	align-items: center;
	background: var(--sg-green-soft);
	border-radius: 50%;
	color: var(--sg-green-dark);
	content: counter(sg-guide, decimal-leading-zero);
	display: flex;
	font-size: 13px;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.sg-guide-grid > li > a::after {
	color: var(--sg-green);
	content: "›";
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.sg-guide-grid > li > a:hover {
	background: #fdfefc;
	border-color: var(--sg-green);
	box-shadow: 0 12px 26px rgba(38, 48, 42, .08);
	color: var(--sg-green-dark);
}

.sg-card {
	align-self: stretch;
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(38, 48, 42, .045);
	height: 100%;
	padding: 22px;
}

.sg-card--center {
	text-align: center;
}

.sg-grid--3 .sg-card {
	text-align: center;
}

.sg-icon {
	align-items: center;
	background: var(--sg-green-soft);
	border-radius: 50%;
	color: var(--sg-green-dark);
	display: inline-flex;
	font-size: 28px;
	height: 64px;
	justify-content: center;
	margin-bottom: 14px;
	width: 64px;
}

.sg-icon img {
	display: block;
	height: 34px;
	object-fit: contain;
	width: 34px;
}

.sg-card h3,
.sg-card-title {
	color: var(--sg-green-dark);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.55;
	margin-bottom: 10px;
}

.sg-card p:last-child,
.sg-text p:last-child {
	margin-bottom: 0;
}

.sg-two-col {
	align-items: center;
	display: grid;
	gap: 42px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sg-image,
.sg-mini-photo {
	border-radius: 10px;
	box-shadow: var(--sg-shadow);
	overflow: hidden;
}

.sg-image {
	aspect-ratio: 4 / 3;
}

.sg-contact-panel {
	display: grid;
	gap: 14px;
}

.sg-contact-row {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 10px;
	display: grid;
	gap: 16px;
	grid-template-columns: 72px 1fr;
	padding: 16px;
}

.sg-contact-row strong {
	color: var(--sg-green-dark);
	display: block;
	font-size: 18px;
}

.sg-contact-row a {
	color: var(--sg-green-dark);
	font-weight: 800;
	text-decoration: none;
}

.sg-small-note {
	color: #5e6b61;
	font-size: 14px;
	line-height: 1.8;
	margin: 0;
}

.sg-mini-photo {
	aspect-ratio: 16 / 10;
	margin-top: 16px;
}

.sg-mini-photo img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sg-service-icon {
	align-items: center;
	background: var(--sg-green-soft);
	border-radius: 50%;
	display: flex;
	height: 92px;
	justify-content: center;
	margin: 0 auto 18px;
	width: 92px;
}

.sg-site .sg-service-icon {
	margin: 0 auto 18px;
}

.sg-service-icon img {
	display: block;
	height: 52px;
	object-fit: contain;
	width: 52px;
}

.sg-approach-card {
	align-self: stretch;
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	display: grid;
	grid-template-rows: auto 170px;
	height: 100%;
	overflow: hidden;
}

.sg-approach-card__text {
	padding: 22px;
}

.sg-approach-card__text h3 {
	align-items: flex-start;
	display: grid;
	gap: 8px;
	grid-template-columns: auto minmax(0, 1fr);
	line-height: 1.45;
}

.sg-approach-card__text h3 span:last-child {
	min-width: 0;
}

.sg-approach-num {
	display: inline-block;
	font-size: 30px;
	line-height: 1;
	margin-top: -1px;
}

.sg-step-line {
	align-items: stretch;
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
}

.sg-step {
	align-self: stretch;
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	height: 100%;
	padding: 18px;
	text-align: center;
}

.sg-step-icon {
	align-items: center;
	background: var(--sg-green-soft);
	border-radius: 50%;
	display: flex;
	height: 70px;
	justify-content: center;
	margin: 0 auto 14px;
	width: 70px;
}

.sg-site .sg-step-icon {
	margin: 0 auto 14px;
}

.sg-step-icon img {
	display: block;
	height: 40px;
	object-fit: contain;
	width: 40px;
}

.sg-step b {
	color: var(--sg-green);
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.sg-step-label {
	margin-bottom: 6px;
}

.sg-step-label strong {
	color: var(--sg-green);
	display: block;
	font-size: 14px;
}

.sg-step h3 {
	margin-bottom: 8px;
}

.sg-step p {
	margin-top: 0;
}

.sg-flow-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 18px;
}

.sg-flow-links p {
	margin: 0;
}

.sg-flow-links a {
	color: var(--sg-green-dark);
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: rgba(85, 122, 70, .35);
	text-underline-offset: 4px;
}

.sg-flow-links a:hover {
	color: var(--sg-green);
}

.sg-arrow {
	align-self: center;
	color: var(--sg-green);
	font-weight: 900;
	text-align: center;
}

.sg-news {
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	overflow: hidden;
}

.sg-news-row {
	display: grid;
	gap: 18px;
	grid-template-columns: 150px 1fr;
	padding: 15px 20px;
	text-decoration: none;
}

.sg-news-row + .sg-news-row {
	border-top: 1px dotted var(--sg-line);
}

.sg-news-row time {
	color: var(--sg-muted);
	font-weight: 700;
}

.sg-news-row span {
	color: var(--sg-ink);
	font-weight: 700;
}

.sg-banner {
	align-items: center;
	background: #fff;
	border: 2px solid var(--sg-gold);
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-top: 30px;
	padding: 22px;
	position: relative;
	text-decoration: none;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sg-banner:hover {
	background: #fffdf8;
	box-shadow: 0 8px 22px rgba(80, 59, 18, .12);
	transform: translateY(-1px);
}

.sg-banner__logo {
	align-items: center;
	background: var(--sg-green-soft);
	border-radius: 50%;
	display: flex;
	flex: 0 0 74px;
	height: 74px;
	justify-content: center;
	width: 74px;
}

.sg-banner__logo img {
	display: block;
	height: 42px;
	object-fit: contain;
	width: 42px;
}

.sg-banner strong {
	color: #805f1f;
	font-size: 18px;
}

.sg-banner a {
	color: #805f1f;
	text-decoration: none;
}

.sg-site .sg-banner a {
	color: #805f1f;
	text-decoration: none;
}

.sg-banner a::after {
	border-radius: inherit;
	content: "";
	inset: 0;
	position: absolute;
}

.sg-banner:focus-within {
	box-shadow: 0 0 0 3px rgba(181, 132, 35, .24);
}

.sg-office-info {
	margin-top: 28px;
}

.sg-footer-block {
	background: #eef4f6;
	border-top: 1px solid #cfdde0;
	padding: 46px 0;
}

.sg-map {
	margin-top: 18px;
}

.sg-map__image {
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 345px;
	width: 100%;
}

.sg-map__link {
	margin: 12px 0 0;
	text-align: center;
}

.sg-sub-hero {
	/* Keep this asset inside the child theme so it survives domain migrations. */
	background: url("./assets/images/forest-sunlight.jpg") center 47% / cover no-repeat;
	border-bottom: 1px solid var(--sg-line);
	padding: 64px 0;
	text-align: center;
}

.post_content .sg-site .sg-sub-hero .sg-title,
.sg-sub-hero .sg-title {
	color: #fff;
	text-shadow: 1px 1px 0 #000;
}

.sg-breadcrumb {
	color: var(--sg-muted);
	font-size: 13px;
	padding: 14px 24px;
}

.sg-site > .sg-breadcrumb {
	display: none;
}

.sg-layout {
	align-items: start;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1fr) 320px;
}

.sg-article-box,
.sg-side-box,
.sg-form-wrap {
	background: #fff;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	padding: 24px;
}

.sg-article-heading {
	border-bottom: 1px solid var(--sg-line);
	border-left: 5px solid var(--sg-green);
	color: var(--sg-green-dark);
	font-size: 24px;
	font-weight: 800;
	margin: 34px 0 18px;
	padding: 0 0 10px 14px;
}

.post_content .sg-site .sg-article-heading {
	border-bottom: 1px solid var(--sg-line);
	border-left: 5px solid var(--sg-green);
	color: var(--sg-green-dark);
	padding: 0 0 10px 14px;
}

.post_content .sg-site h3.sg-card-title,
.sg-site h3.sg-card-title {
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
	font-size: 1.6em;
	line-height: 1.5;
	margin-top: 5em !important;
}

.post_content .sg-site h4.sg-card-title,
.sg-site h4.sg-card-title {
	color: var(--sg-wine);
}

.sg-memo {
	background: #fff;
	border: 1px dashed var(--sg-line);
	border-radius: 8px;
	box-sizing: border-box;
	line-break: anywhere;
	margin: 22px 0;
	max-width: 100%;
	padding: 18px;
	overflow-wrap: anywhere;
	width: auto;
	word-break: break-all;
}

.sg-side-box {
	margin-bottom: 18px;
	padding: 0;
}

.sg-side-box h3 {
	background: var(--sg-green-soft) !important;
	border: 0 !important;
	border-left: 5px solid var(--sg-green) !important;
	color: var(--sg-green-dark);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;
	margin: 0;
	padding: 12px 14px !important;
}

.sg-side-box a,
.sg-side-box span {
	border-top: 0;
	display: block;
	padding: 12px 16px;
	position: relative;
}

.sg-sidebar .sg-side-box:first-of-type a {
	padding-left: 30px;
}

.sg-sidebar .sg-side-box:first-of-type a::before {
	content: "・";
	left: 12px;
	position: absolute;
}

.sg-sidebar .sg-side-box:nth-of-type(2) > .wp-block-group__inner-container > p {
	padding-left: 16px;
	padding-right: 16px;
}

.sg-sidebar .sg-side-box:nth-of-type(2) > .wp-block-group__inner-container > p:last-child {
	margin-bottom: 0;
	padding-bottom: 20px;
}

.sg-form-wrap {
	padding: 0;
}

.sg-form-row {
	border-bottom: 1px solid var(--sg-line);
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
}

.sg-form-label {
	background: #eef4ea;
	font-weight: 800;
	padding: 16px;
}

.sg-form-field {
	padding: 16px;
}

.sg-form-field input,
.sg-form-field select,
.sg-form-field textarea {
	border: 1px solid #bcc9b8;
	border-radius: 6px;
	font-size: 16px;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.sg-form-field textarea {
	min-height: 150px;
}

.sg-form-field .wpcf7-radio,
.sg-form-field .wpcf7-checkbox {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	min-height: 44px;
}

.sg-form-field .wpcf7-radio label,
.sg-form-field .wpcf7-checkbox label {
	align-items: center;
	display: inline-flex;
	gap: 6px;
	margin: 0;
}

.sg-form-field input[type="radio"],
.sg-form-field input[type="checkbox"] {
	min-height: auto;
	width: auto;
}

.sg-form-age {
	align-items: center;
	display: flex;
	gap: 8px;
}

.sg-form-age .wpcf7-form-control-wrap {
	max-width: 140px;
	width: 100%;
}

.sg-submit {
	padding: 24px;
	text-align: center;
}

.wpcf7-not-valid-tip {
	font-size: 14px;
	margin-top: 6px;
}

@media (max-width: 1080px) {
	.sg-grid--5,
	.sg-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sg-guide-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 959px) {
	.l-header__inner {
		align-items: center !important;
		box-sizing: border-box;
		height: auto !important;
		min-height: 72px;
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	.l-header__logo {
		align-items: center;
		display: flex;
		flex: 0 1 calc(100vw - 124px) !important;
		max-width: calc(100vw - 124px) !important;
		min-width: 0;
		overflow: visible;
		padding: 0 !important;
		width: calc(100vw - 124px) !important;
	}

	.l-header__logo .c-headLogo,
	.l-header__logo .c-headLogo__link {
		display: block;
		line-height: 1.18 !important;
		max-width: 100%;
		overflow-wrap: anywhere !important;
		white-space: normal !important;
		word-break: break-all !important;
	}

	.l-header__logo .c-headLogo__link {
		color: transparent !important;
		font-size: 0 !important;
	}

	.l-header__logo .c-headLogo__link::before {
		color: var(--sg-green-dark);
		content: "兵庫・姫路障害年金\Aサポートセンター";
		display: block;
		font-size: clamp(17px, 4.6vw, 19px) !important;
		font-weight: 800;
		line-height: 1.18;
		text-align: center;
		white-space: pre-line;
	}
}

@media (min-width: 782px) and (max-width: 959px) {
	.sg-layout {
		gap: 28px;
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

@media (max-width: 781px) {
	:root {
		--logo_size_sp: 22px !important;
	}

	.sg-site {
		font-size: 15.5px;
	}

	.l-footer #custom_html-2 .textwidget {
		font-size: 15.5px !important;
	}

	.l-footer #custom_html-2 .textwidget strong {
		font-size: 1em !important;
	}

	.sg-container {
		box-sizing: border-box;
		margin-left: 18px;
		margin-right: 18px;
		max-width: none;
		padding: 0;
		width: auto;
	}

	.sg-container > * {
		max-width: 100%;
	}

	.sg-section {
		padding: 50px 0;
	}

	.sg-hero {
		background: #fff;
	}

	.sg-hero__inner {
		display: flex;
		flex-direction: column-reverse;
		min-height: 0;
	}

	.sg-hero__copy {
		max-width: 100vw;
		padding: 34px 22px 42px;
	}

	.sg-hero__image {
		min-height: 260px;
	}

	.sg-title {
		font-size: 24px;
		max-width: calc(100vw - 44px);
	}

	.l-header__inner {
		align-items: center !important;
		box-sizing: border-box;
		gap: 8px;
		height: auto !important;
		min-height: 72px;
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	.l-header__logo {
		flex: 0 1 calc(100vw - 124px) !important;
		max-width: calc(100vw - 124px) !important;
		min-width: 0;
		overflow: visible;
		padding: 0 !important;
		width: calc(100vw - 124px) !important;
	}

	.l-header__logo .c-headLogo,
	.l-header__logo .c-headLogo__link {
		display: block;
		font-size: clamp(15px, 4.25vw, 18px) !important;
		line-break: anywhere;
		line-height: 1.18 !important;
		max-width: 100%;
		white-space: normal !important;
		word-break: break-all !important;
		overflow-wrap: anywhere !important;
	}

	.l-header__logo .c-headLogo__link {
		color: transparent !important;
		font-size: 0 !important;
		position: relative;
	}

	.l-header__logo .c-headLogo__link::before {
		color: var(--sg-green-dark);
		content: "兵庫・姫路障害年金\Aサポートセンター";
		display: block;
		font-size: clamp(17px, 4.6vw, 19px) !important;
		font-weight: 800;
		line-height: 1.18;
		text-align: center;
		white-space: pre-line;
	}

	.sg-lead {
		font-size: 16px;
		line-break: anywhere;
		word-break: break-all;
	}

	.sg-section-head,
	.sg-two-col,
	.sg-layout {
		display: block;
	}

	.page.sg-custom-layout-page .sg-section--note .sg-two-col {
		text-align: center;
	}

	.page.sg-custom-layout-page .sg-section--note :where(.sg-kicker, .sg-heading) {
		display: block;
		margin-left: 0;
		margin-right: 0;
		text-align: left;
		width: 100%;
	}

	.page.sg-custom-layout-page .sg-section--note .wp-block-buttons {
		justify-content: center;
	}

	.sg-helper {
		margin-top: 8px;
	}

	.sg-grid,
	.sg-grid--5,
	.sg-grid--4,
	.sg-grid--3,
	.sg-grid--2 {
		grid-template-columns: 1fr;
	}

	.sg-guide-grid {
		grid-template-columns: 1fr;
	}

	.sg-card,
	.sg-article-box {
		padding: 20px;
	}

	.sg-image {
		margin-top: 24px;
	}

	.sg-step-line {
		grid-template-columns: 1fr;
	}

	.sg-step {
		text-align: center;
	}

	.sg-step p {
		margin-left: auto;
		margin-right: auto;
	}

	.sg-flow-links {
		display: grid;
		gap: 8px;
		justify-items: center;
		text-align: center;
	}

	.sg-arrow {
		transform: rotate(90deg);
	}

	.sg-news-row {
		gap: 4px;
		grid-template-columns: 1fr;
	}

	.sg-banner {
		display: grid;
		gap: 12px;
		justify-items: center;
		margin-left: auto;
		margin-right: auto;
		max-width: none;
		padding: 16px;
		text-align: center;
		width: 100%;
	}

	.sg-banner__logo {
		justify-self: center;
	}

	.sg-banner strong {
		line-height: 1.5;
	}

	.sg-sub-hero {
		padding: 46px 0;
	}

	.sg-side-box {
		margin-top: 22px;
	}

	.sg-form-row {
		grid-template-columns: 1fr;
	}

	.sg-form-label {
		padding-bottom: 8px;
	}

	.sg-form-field {
		padding-top: 8px;
	}
}

/* Header title and description */
.l-header__bar {
	display: none !important;
}

.l-header__logo .c-headLogo {
	line-height: 1.15;
}

.l-header__logo .c-headLogo::after {
	color: var(--sg-green);
	content: "社会保険労務士による障害年金の専門相談窓口です";
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	margin-top: 4px;
}

@media (min-width: 960px) and (max-width: 1180px) {
	.l-header__inner {
		align-items: center !important;
		height: auto !important;
		min-height: 112px;
	}

	.l-header__logo {
		align-self: stretch;
		display: flex;
		flex: 0 1 48% !important;
		max-width: 48% !important;
		min-width: 0;
	}

	.l-header__logo .c-headLogo {
		align-items: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin: 0;
		min-height: 100%;
		text-align: center;
	}

	.l-header__logo .c-headLogo::after {
		font-size: clamp(12px, 1.3vw, 14px);
		line-height: 1.35;
		margin-top: 6px;
		white-space: nowrap;
	}

	.l-header__logo .c-headLogo__link {
		color: transparent !important;
		font-size: 0 !important;
		position: relative;
	}

	.l-header__logo .c-headLogo__link::before {
		color: var(--sg-green-dark);
		content: "兵庫・姫路障害年金\Aサポートセンター";
		display: block;
		font-size: clamp(22px, 2.45vw, 28px);
		font-weight: 800;
		line-height: 1.14;
		text-align: center;
		white-space: pre-line;
	}
}

@media (max-width: 959px) {
	.l-header__inner {
		align-items: center !important;
		box-sizing: border-box;
		display: flex;
		height: auto !important;
		justify-content: space-between;
		min-height: 108px;
		padding-left: 20px !important;
		padding-right: 20px !important;
		position: relative;
	}

	.l-header__menuBtn,
	.l-header__customBtn {
		position: relative;
		z-index: 2;
	}

	.l-header__logo {
		align-items: center;
		bottom: 0;
		display: flex;
		flex: none !important;
		height: auto;
		justify-content: center;
		left: 44px;
		margin: 0 !important;
		max-width: none !important;
		min-width: 0;
		padding: 0 !important;
		position: absolute;
		right: 44px;
		text-align: center;
		top: 0;
		transform: none;
		width: auto !important;
		z-index: 1;
	}

	.l-header__logo .c-headLogo,
	.l-header__logo .c-headLogo__link {
		display: block;
		line-height: 1.12 !important;
		max-width: 100%;
		overflow-wrap: anywhere !important;
		text-align: center;
		white-space: normal !important;
		word-break: keep-all !important;
	}

	.l-header__logo .c-headLogo {
		align-items: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin: 0 !important;
		min-height: 100%;
	}

	.l-header__logo .c-headLogo::after {
		color: var(--sg-green);
		content: "社会保険労務士による障害年金の専門相談窓口です";
		display: block;
		font-size: clamp(9px, 2.45vw, 12px);
		font-weight: 700;
		line-height: 1.3;
		margin-top: 6px;
		overflow-wrap: anywhere;
		text-align: center;
		white-space: nowrap;
		word-break: normal !important;
	}

	.l-header__logo .c-headLogo__link {
		color: transparent !important;
		font-size: 0 !important;
		position: relative;
	}

	.l-header__logo .c-headLogo__link::before {
		color: var(--sg-green-dark);
		content: "兵庫・姫路障害年金\Aサポートセンター";
		display: block;
		font-size: clamp(18px, 4.8vw, 23px) !important;
		font-weight: 800;
		line-height: 1.14;
		text-align: center;
		white-space: pre-line;
	}

	.l-header__logo .c-headLogo__link::after {
		content: none;
	}
}
