/*
Theme Name: Banner Engineering
Theme URI: https://example.com/
Author: Banner Engineering
Description: バーナーエンジニアリング株式会社 コーポレートサイトテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: banner-engineering
*/


/* ==========================================================================
   Base & layout
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	color: #374151;
	background-color: #ffffff;
}

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

a {
	color: inherit;
	text-decoration: none;
}

.home-page {
	min-height: 100vh;
	background-color: #ffffff;
}

.section-container {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ==========================================================================
   Section heading (shared)
   ========================================================================== */
.section-heading--spaced {
	margin-bottom: 3rem;
}

.section-heading--spaced-sm {
	margin-bottom: 2rem;
}

.section-heading__title {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #5dade2;
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.section-heading__subtitle {
	color: #374151;
	padding-left: 1rem;
	border-left: 2px solid #5dade2;
	margin: 0;
}

.section-heading__title--on-dark {
	color: #5dade2;
}

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	background-color: #ffffff;
}

.site-header__inner {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 6rem;
}

.site-header__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	transition: opacity 0.2s ease;
}

.site-header__logo:hover {
	opacity: 0.8;
}

.site-header__logo-img {
	height: 3rem;
	width: auto;
}

.site-header__nav {
	display: none;
	align-items: center;
	gap: 2rem;
}

.site-header__nav-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	transition: color 0.2s ease;
}

.site-header__nav-link:hover {
	color: #e53935;
}

.site-header__menu-btn {
	display: flex;
	padding: 0.5rem;
	color: #374151;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.site-header__menu-btn:hover {
	color: #e53935;
}

.site-header__icon {
	width: 1.5rem;
	height: 1.5rem;
}

.site-header__icon--close {
	display: none;
}

.site-header__menu-btn--open .site-header__icon--menu {
	display: none;
}

.site-header__menu-btn--open .site-header__icon--close {
	display: block;
}

.site-header__mobile-nav {
	padding-top: 1rem;
	padding-bottom: 1rem;
	border-top: 1px solid #f3f4f6;
}

.site-header__mobile-nav[hidden] {
	display: none;
}

.site-header__mobile-link {
	display: block;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	transition: color 0.2s ease;
}

.site-header__mobile-link:hover {
	color: #e53935;
}

/* ==========================================================================
   Hero section
   ========================================================================== */
.hero-section {
	position: relative;
	width: 100%;
	overflow: hidden;
	--hero-min-h: clamp(18rem, 56.25vw, 56.25rem);
	--hero-grid-min-h: clamp(16rem, 48vw, 47.5rem);
	--hero-visuals-ar: 1280 / 440;
	--hero-pad-y: clamp(2rem, 5vw, 4rem);
	--hero-pad-x: clamp(1rem, 3vw, 2rem);
	--hero-gap: clamp(1.25rem, 3vw, 2rem);
	--hero-title: clamp(1.5rem, 1rem + 4.2vw, 2.25rem);
	--hero-subtitle: clamp(0.875rem, 0.75rem + 1.2vw, 1.125rem);
	--hero-body: clamp(0.875rem, 0.8rem + 0.8vw, 1.125rem);
	--hero-body-pad-top: clamp(0.75rem, 2vw, 2rem);
	/* Hero illust layout: default = 639px 以下 */
	--hero-illust-top-w: 41%;
	--hero-illust-top-inset-y: -26%;
	--hero-illust-top-inset-x: 56%;
	--hero-illust-center-w: 47%;
	--hero-illust-center-x: 43%;
	--hero-illust-center-y: -5%;
	--hero-illust-bottom-w: 52%;
	--hero-illust-bottom-inset-y: -23%;
	--hero-illust-bottom-left: 41%;
	--hero-illust-bottom-right: 0%;
	--hero-illust-bottom-transform: none;
	--hero-bg-offset: clamp(3rem, 8vw, 5rem);
	min-height: var(--hero-min-h);
}

.hero-section__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: calc(100% + var(--hero-bg-offset));
	top: calc(-1 * var(--hero-bg-offset));
}

.hero-section__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
}

.hero-section__content {
	position: relative;
	z-index: 10;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding: var(--hero-pad-y) var(--hero-pad-x);
}

.hero-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hero-gap);
	align-items: start;
	min-height: var(--hero-grid-min-h);
}

.hero-section__text {
	z-index: 20;
}

.hero-section__title {
	font-family: "Noto Sans JP", sans-serif;
	font-size: var(--hero-title);
	font-weight: 700;
	color: #111827;
	line-height: 1.25;
	letter-spacing: -0.025em;
	margin: 0 0 clamp(0.5rem, 1.5vw, 0.75rem);
}

.hero-section__subtitle {
	font-family: "Noto Serif JP", serif;
	font-size: var(--hero-subtitle);
	font-weight: 500;
	color: #1f2937;
	margin: 0 0 clamp(0.5rem, 1.5vw, 1rem);
}

.hero-section__body-wrap {
	padding-top: var(--hero-body-pad-top);
}

.hero-section__body {
	font-family: "Noto Sans JP", sans-serif;
	font-size: var(--hero-body);
	font-weight: 500;
	color: #374151;
	line-height: 1.625;
	max-width: min(28rem, 92vw);
	margin: 0;
}

.hero-section__br-sm {
	display: none;
}
/* 639px以下のみ改行（640px以上で非表示） */
.hero-section__br-below-sm {
	display: inline;
}

.hero-section__visuals {
	position: relative;
	width: 100%;
	aspect-ratio: var(--hero-visuals-ar);
	height: auto;
}

.hero-section__illust {
	position: absolute;
	z-index: 10;
	pointer-events: none;
}

.hero-section__illust--top {
	top: var(--hero-illust-top-inset-y);
	right: var(--hero-illust-top-inset-x);
	left: auto;
	bottom: auto;
	width: var(--hero-illust-top-w);
	z-index: 20;
}

.hero-section__illust--center {
	top: var(--hero-illust-center-y);
	left: var(--hero-illust-center-x);
	right: auto;
	bottom: auto;
	width: var(--hero-illust-center-w);
	z-index: 30;
}

.hero-section__illust--bottom {
	bottom: var(--hero-illust-bottom-inset-y);
	left: var(--hero-illust-bottom-left);
	right: var(--hero-illust-bottom-right);
	top: auto;
	width: var(--hero-illust-bottom-w);
	transform: var(--hero-illust-bottom-transform);
	z-index: 10;
}

.hero-section__illust-img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Hero: consultation unit base + floating hex SVGs */


.hero-section__illust-inner {
	position: relative;
	width: 100%;
	line-height: 0;
}

.hero-section__illust-img--base {
	display: block;
	width: 100%;
	height: auto;
}

.hero-section__hex {
	position: absolute;
	width: var(--hero-hex-size, 24%);
	height: auto;
	pointer-events: none;
	z-index: 2;
	animation: hero-hex-float 8s ease-in-out infinite;
	will-change: transform;
}

/* 配置（base 上のおおよその位置。合わせて % を微調整） */
.hero-section__hex--efic {
	top: 10%;
	left: 7%;
	--hero-hex-dx: 0px;
	--hero-hex-dy: -10px;
	animation-delay: 0s;
}

.hero-section__hex--co2 {
	top: -2%;
	right: 8%;
	left: auto;
	--hero-hex-dx: 10px;
	--hero-hex-dy: 0px;
	animation-delay: -2s;
}

.hero-section__hex--graph {
	bottom: 21%;
	left: 1%;
	top: auto;
	--hero-hex-dx: -8px;
	--hero-hex-dy: 10px;
	animation-delay: -4s;
}

.hero-section__hex--meter {
	bottom: 37%;
	right: -6%;
	left: auto;
	top: auto;
	--hero-hex-dx: 0px;
	--hero-hex-dy: 12px;
	animation-delay: -6s;
}

@keyframes hero-hex-float {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(var(--hero-hex-dx, 0), var(--hero-hex-dy, -10px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-section__hex {
		animation: none;
		will-change: auto;
	}
}

/* ==========================================================================
   About section
   ========================================================================== */
.about-section {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: #ffffff;
}

.about-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: start;
}

.about-section__left > * + * {
	margin-top: 2rem;
}

.about-section__diagram-wrap {
	display: flex;
	justify-content: center;
}

.about-section__diagram {
	width: 100%;
	max-width: 500px;
	height: auto;
}

.about-section__caption {
	font-size: 0.875rem;
	color: #4b5563;
	text-align: center;
	line-height: 1.625;
	margin: 0;
}

.about-section__right > * + * {
	margin-top: 2rem;
}

.about-section__heading {
	font-family: "Noto Serif JP", serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.25;
	margin: 0 0 0.5rem;
}

.about-section__text-block > * + * {
	margin-top: 1rem;
}

.about-section__text-block p {
	color: #374151;
	font-size: 0.875rem;
	line-height: 1.625;
	margin: 0;
}

.about-section__features > * + * {
	margin-top: 1.5rem;
}

.about-section__feature-title {
	font-weight: 700;
	color: #111827;
	margin: 0 0 0.5rem;
}

.about-section__feature-text {
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.625;
	margin: 0;
}

.about-section__feature-list {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.about-section__feature-list > * + * {
	margin-top: 0.25rem;
}

.about-section__feature-list li {
	font-size: 0.875rem;
	color: #374151;
}

/* ==========================================================================
   Services section
   ========================================================================== */
.services-section {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: #c5e3f6;
}

.services-section__grid {
	display: grid;
	grid-template-columns: repeat( 1fr);
	gap: 1rem;
}

.service-card {
	position: relative;
	overflow: hidden;
	border-radius: 4.4rem;
	background-color: #ffffff;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	aspect-ratio: 3 / 4.3;
	transition: box-shadow 0.3s ease;
}

.service-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.service-card__media {
	position: absolute;
	inset: 0;
}

.service-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.service-card:hover .service-card__img {
	transform: scale(1.05);
}

.service-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    opacity: 60%;
}

.service-card__content {
	position: relative;
	z-index: 10;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1rem;
}

.service-card__title {
	color: #ffffff;
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.25;
	text-align: center;
	white-space: pre-line;
	margin: 0;
	font-family: "Noto Serif JP", serif;
}

.service-card__description {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.75rem;
	line-height: 1.625;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	line-clamp: 5;
	-webkit-line-clamp: 5;
	overflow: hidden;
}
@media (max-width: 767.98px) {
	.about-section__grid {
		display: flex;
		flex-direction: column;
		gap: 3rem; /* 既存 .about-section__grid の gap と揃える */
	}

	.about-section__left {
		display: contents;
	}

	.about-section__left .section-heading {
		order: 1;
	}

	.about-section__right {
		order: 2;
	}

	.about-section__diagram-wrap {
		order: 3;
		margin: 0 auto;
	}

	.about-section__caption {
		order: 4;
		margin: 0 auto;
		margin-top: -3rem; 
	}
	.service-card {
		aspect-ratio: 3 / 2.5;
	}
	.service-card__content {
		padding: 3rem;
	}
	.service-card__description {
		font-size: 0.8rem;
	}
}
/* ==========================================================================
   Use cases section
   ========================================================================== */
.use-cases-section {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: #f9fafb;
}

.use-cases-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.use-case-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	background-color: #ffffff;
	border-radius: 0.5rem;
	padding: 1rem;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	border-left: 4px solid transparent;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

a.use-case-card {
	text-decoration: none;
	color: inherit;
}

.use-case-card:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	border-left-color: #e53935;
}

.use-case-card__icon {
	width: 1.25rem;
	height: 1.25rem;
	color: #e53935;
	flex-shrink: 0;
}

.use-case-card__text {
	color: #374151;
	font-size: 0.875rem;
	margin: 0;
}


/* ==========================================================================
   Use case single
   ========================================================================== */
   .use-case-single {
	padding-top: 4rem;
	padding-bottom: 4rem;
}
/* single-use_case.php の .section-container のみ */
.use-case-single .section-container {
	background-color: #f9fafb;
	padding: 3%;
	box-sizing: border-box;
}
.use-case-single__label {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	color: #5dade2;
	font-weight: 500;
	transition: color 0.2s ease;
}
.use-case-single__subtitle {
	color: #374151;
	font-size: 1rem;
	margin: 0 0 1rem;
	border-left: 2px solid #5dade2;
	padding-left: 1rem;
}
.use-case-single__title {
	font-size: 1.875rem;
	margin: 0 0 1.5rem;
}
.use-case-single__thumb {
	position: relative;
	aspect-ratio: 2/ 1;
	width: 100%;
	max-width: 60rem;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5rem;
	border-radius: 0.5rem;
	overflow: hidden;
	background-color: #f3f4f6; /* 読み込み前のプレースホルダー（任意） */
}

.use-case-single__thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: 0.5rem; 
}
/* single-use_case.php の本文エリア */
.use-case-single__content {
	line-height: 1.7;
	color: #374151;
	background-color: #ffffff;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	box-sizing: border-box;

}
.use-case-single__back a {
	color: #374151;
}
.use-case-single__back a:hover {
	color: #5dade2;
}

/* ==========================================================================
   News single（use-case-single と同じ見た目）
   ========================================================================== */
   .news-single {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.news-single .section-container {
	background-color: #f9fafb;
	padding: 3%;
	box-sizing: border-box;
}

.news-single__label {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	color: #5dade2;
	font-weight: 500;
	transition: color 0.2s ease;
}

.news-single__subtitle {
	color: #374151;
	font-size: 1rem;
	margin: 0 0 1rem;
	border-left: 2px solid #5dade2;
	padding-left: 1rem;
}

.news-single__date {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0 0 2rem;
	display: block;
}

.news-single__title {
	font-size: 1.875rem;
	margin: 0 0 1.5rem;
	
}

.news-single__thumb {
	position: relative;
	aspect-ratio: 2 / 1;
	width: 100%;
	max-width: 60rem;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5rem;
	border-radius: 0.5rem;
	overflow: hidden;
	background-color: #f3f4f6;
}

.news-single__thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: 0.5rem;
}

.news-single__content {
	line-height: 1.7;
	color: #374151;
	background-color: #ffffff;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.news-single__back a {
	color: #374151;
	text-decoration: none;
	transition: color 0.2s ease;
}

.news-single__back a:hover {
	color: #5dade2;
}
/* ==========================================================================
/* ==========================================================================
   News section
   ========================================================================== */
.news-section {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: #ffffff;
}

.news-section__panel {
	background-color: #c5e3f6;
	border-radius: 2rem;
	padding: 2rem;
}

.news-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 2rem;
}

.news-card {
	display: block;
	background-color: #ffffff;
	border-radius: 0.75rem;
	padding: 1.25rem;
	transition: box-shadow 0.3s ease;
}

.news-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.news-card__date {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0 0 0.5rem;
}

.news-card__title {
	color: #1f2937;
	font-weight: 500;
	margin: 0;
	transition: color 0.2s ease;
}

.news-card:hover .news-card__title {
	color: #5dade2;
}


.news-archive {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.news-archive__pagination {
	margin-top: 2rem;
}

.news-archive__back {
	margin-top: 2rem;
}

.news-archive__back a {
	color: #374151;
	text-decoration: none;
}

.news-archive__back a:hover {
	color: #5dade2;
}
/* ==========================================================================
   Link arrow (shared)
   ========================================================================== */
.link-arrow-row {
	display: flex;
	justify-content: flex-end;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: #374151;
	transition: color 0.2s ease;
}

.link-arrow:hover {
	color: #5dade2;
}

.link-arrow__circle {
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	border: 2px solid currentColor;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.link-arrow:hover .link-arrow__circle {
	background-color: #5dade2;
	border-color: #5dade2;
	color: #ffffff;
}

.link-arrow__icon {
	width: 1.25rem;
	height: 1.25rem;
}

.link-arrow__label {
	font-size: 0.875rem;
	font-weight: 500;
}


/*===============================================
contact page
==========================================*/
.contact-page {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.contact-page .section-container {
	background-color: #f9fafb;
	padding: 3%;
	box-sizing: border-box;
}

.contact-page__form {
	background-color: #ffffff;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.contact-page__form .wpcf7-form p {
	margin-bottom: 1.25rem;
}

.contact-page__form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.25rem;
}

.contact-page__form input[type="text"],
.contact-page__form input[type="email"],
.contact-page__form input[type="tel"],
.contact-page__form select,
.contact-page__form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.25rem;
}

/* 640px以上: CF7 入力エリアのフォントを約10%拡大 */
@media (min-width: 640px) {
	.contact-page__form .wpcf7-form-control-wrap {
		font-size: 1.1em; /* 親基準で約10%アップ */
	}

	/* input は親の font-size を継承しない場合の保険 */
	.contact-page__form .wpcf7-form-control-wrap input,
	.contact-page__form .wpcf7-form-control-wrap select,
	.contact-page__form .wpcf7-form-control-wrap textarea {
		font-size: inherit;
	}
	/* 送信ボタン（文字・送信表示）を約10%拡大 */
	.contact-page__form .wpcf7-submit {
		font-size: 1.1em;
		padding: 0.825rem 2.2rem; /* 0.75rem×1.1 / 2rem×1.1（任意） */
	}
}
.contact-page__form .wpcf7-submit {
	background-color: #5dade2;
	color: #ffffff;
	border: none;
	padding: 0.75rem 2rem;
	border-radius: 0.25rem;
	cursor: pointer;
}

.contact-page__back a:hover {
	color: #5dade2;
}

/* ==========================================================================
   Company page（会社情報）— モックアップ準拠
   ========================================================================== */
   .company-page {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: #ffffff;
}

.company-page__inner {
	max-width: 72rem;
	margin: 0 auto;
	padding-left: 3%;
	padding-right: 3%;
	box-sizing: border-box;
}

/* モックアップ用アクセント（Message / Access） */
.company-page {
	--company-accent: #c5e2eb;
	--company-text: #374151;
	--company-heading: #111827;
}

/* Hero */
.company-page__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
	margin-bottom: 3rem;
}

.company-page__hero-title {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--company-accent);
	margin: 0 0 0.5rem;
	line-height: 1.1;
}

.company-page__hero-subtitle {
	margin: 0;
	padding-left: 1rem;
	border-left: 2px solid #5dade2;
	color: var(--company-heading);
	font-size: 1rem;
}

.company-page__hero-media {
	margin: 0;
	border-radius: 0.25rem;
	overflow: hidden;
	background-color: #f3f4f6;
}

.company-page__hero-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Message / Outline 共通ラベル（Message, Outline, Access） */
.company-page__section-label {
	font-size: clamp(2rem, 5vw, 3rem);
	font-style: italic;
	font-weight: 400;
	color: var(--company-accent);
	margin: 0 0 3rem;
	line-height: 1.1;
}

.company-page__section-label--on-message {
	color: #ffffff;
}

/* Message ブロック */
.company-page__message {
	
		background-color: var(--company-accent); /* 画像読み込み前のフォールバック */
		background-image: var(--company-message-bg-image);
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		padding: clamp(7rem, 4vw, 10rem);
		margin-bottom: 3rem;
		box-sizing: border-box;
	
}

/* 640px以下: Message の余白を縮小 */
@media (max-width: 639.98px) {
	.company-page__message {
		padding: clamp(1.5rem, 5vw, 2.5rem);
	}
}

.company-page__message-body {
	color: var(--company-heading);
	font-size: 0.9375rem;
	line-height: 1.85;
}

.company-page__message-body p {
	margin: 0 0 1rem;
}

.company-page__block-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.company-page__block-title--spaced {
	margin-top: 5rem;
}

.company-page__catch {
	font-weight: 300;
	font-size: 1.5rem;
}

/* Outline */
.company-page__outline {
	margin-bottom: 3rem;
}

.company-page__outline-list {
	margin: 2rem 0 0 0;
	padding: 0 ;
}

.company-page__outline-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #e5e7eb;
}

.company-page__outline-row dt {
	font-weight: 500;
	color: var(--company-heading);
	margin: 0;
}

.company-page__outline-row dd {
	margin: 0;
	color: var(--company-text);
	line-height: 1.7;
}

/* Facilities（トップの company-location を流用） */
.company-page__facilities {
	margin-bottom: 3rem;
}

.company-page__locations {
	max-width: none;
	margin-bottom: 0;
}

/* Access */
.company-page__access {
	margin-bottom: 2rem;
	scroll-margin-top: 5rem; /* ヘッダー高さに合わせて調整 */

}

.company-page__access-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
	margin-bottom: 1.5rem;
}

.company-page__access-subtitle {
	margin: 0.5rem 0 0;
	padding-left: 1rem;
	border-left: 2px solid #5dade2;
	color: var(--company-heading);
	font-size: 0.9375rem;
}

.company-page__map-wrap {
	background-color: var(--company-accent);
	border-radius: 0.25rem;
	overflow: hidden;
	min-height: 16rem;
}

.company-page__map {
	display: block;
	width: 100%;
	height: clamp(16rem, 40vw, 22rem);
	border: 0;
}

.company-page__access-address {
	text-align: left;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--company-text);
	margin: 2rem 0 0 0;
}

.company-page__back {
	margin-top: 2rem;
}

.company-page__back a {
	color: #374151;
	text-decoration: none;
	transition: color 0.2s ease;
}

.company-page__back a:hover {
	color: #5dade2;
}

@media (min-width: 768px) {
	.company-page__hero {
		grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.4fr);
		gap: 2rem;
		align-items: center;
	}

	.company-page__outline-row {
		grid-template-columns: 10rem 1fr;
		align-items: baseline;
	}

	.company-page__access-grid {
		grid-template-columns: minmax(8rem, 12rem) 1fr;
		gap: 2rem;
	}

	.company-section__locations.company-page__locations {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

/* ==========================================================================
   Company section
   ========================================================================== */
.company-section {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: #ffffff;
}

.company-section__info {
	max-width: 48rem;
	margin: 0 auto 4rem;
}

.company-section__row {
	display: flex;
	flex-direction: column;
	padding-top: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.company-section__label {
	width: 100%;
	font-weight: 500;
	color: #111827;
	margin-bottom: 0.25rem;
}

.company-section__value {
	color: #374151;
}

.company-section__locations {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4.5rem;
	max-width: 56rem;
	margin: 0 auto 3rem;
}

@media (max-width: 767.98px) {
	.company-section__locations {
		grid-template-columns: 1fr;
		gap: 2rem;
		max-width: 100%;
		margin: 0 0 3rem 0;
		justify-items: start;
	}

	.company-location {
		width: 100%;
		text-align: left;
	}

	.company-location__image-wrap {
		width: 100%;
		margin: 0 auto;
	}
}

.company-location {
	text-align: left;
}

.company-location__image-wrap {
	position: relative;
	aspect-ratio: 4 / 2.5;
	border-radius: 0.5rem;
	overflow: hidden;
	margin-bottom: 1rem;
	background-color: #f3f4f6;
}

.company-location__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.company-location__image--hq {
	object-position: center 72%;
}

.company-location__image--factory {
	object-position: center 53%;
}

.company-location__name {
	font-weight: 700;
	color: #111827;
	margin: 0 0 0.25rem;
}

.company-location__address {
	font-size: 0.875rem;
	color: #4b5563;
	margin: 0;
}



/* ==========================================================================
   Contact section
   ========================================================================== */
.contact-section {
	position: relative;
	--contact-pad-y: clamp(3rem, 8vw, 6rem);
	--contact-gap: clamp(1.5rem, 4vw, 3rem);
	--contact-container-pad-y: clamp(2rem, 5vw, 3rem);
	--contact-phone-size: clamp(1.25rem, 1rem + 1.2vw, 1.5rem);
	--contact-form-pad: clamp(1rem, 2.5vw, 1.25rem);
	--contact-right-gap: clamp(1rem, 2vw, 1.5rem);
	padding-top: var(--contact-pad-y);
	padding-bottom: var(--contact-pad-y);
	background-image: var(--contact-section-bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.contact-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--contact-gap);
	align-items: center;
}

.contact-section__subtitle {
	color: rgba(255, 255, 255, 0.8);
	padding-left: 1rem;
	border-left: 2px solid #5dade2;
	margin: 0 0 2rem;
}

.contact-section__text > * + * {
	margin-top: 1rem;
}

.contact-section__text p {
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
}

.contact-section__right-content {
	display: flex;
	flex-direction: column;
	gap: var(--contact-right-gap);
}

.contact-section__form-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #ffffff;
	border-radius: 0.5rem;
	padding: var(--contact-form-pad);
	transition: box-shadow 0.3s ease;
}

.contact-section__form-link:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.contact-section__form-label {
	color: #1f2937;
	font-weight: 500;
}

.contact-section__form-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background-color: #1f2937;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: background-color 0.2s ease;
}

.contact-section__form-link:hover .contact-section__form-icon {
	background-color: #5dade2;
}

.contact-section__form-icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.contact-section__phone {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	padding-top: 1.5rem;
}

.contact-section__phone-label {
	color: rgba(255, 255, 255, 0.8);
}

.contact-section__phone-details {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.contact-section__phone-number {
	color: #ffffff;
	font-size: var(--contact-phone-size);
	font-weight: 500;
	transition: color 0.2s ease;
}

.contact-section__phone-number:hover {
	color: #5dade2;
}

.contact-section__phone-hours {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
}

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer {
	background-color: #ffffff;
	border-top: 1px solid #f3f4f6;
}

.site-footer__inner {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding: 3rem 1rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 3rem;
}

.site-footer__links-group {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.site-footer__brand > * + * {
	margin-top: 1rem;
}

.site-footer__logo {
	display: inline-block;
}

.site-footer__logo-img {
	width: 24rem;   /* お好みで 10rem〜14rem など */
	height: auto;   /* 明示しておくと global と意図が揃う */
	max-width: 100%;
}

.site-footer__contact {
	font-size: 0.875rem;
	color: #4b5563;
	padding-top: 1rem;
}

.site-footer__contact > * + * {
	margin-top: 0.25rem;
}

.site-footer__contact p {
	margin: 0;
}

.site-footer__links-main > * + * {
	margin-top: 1rem;
}

.site-footer__link {
	display: block;
	font-size: 0.875rem;
	color: #374151;
	transition: color 0.2s ease;
}

.site-footer__link:hover {
	color: #5dade2;
}

.site-footer__link--muted {
	color: #4b5563;
}

.site-footer__links-title {
	font-weight: 500;
	color: #111827;
	margin: 0 0 1rem;
}

.site-footer__company-list > * + * {
	margin-top: 0.75rem;
}

.site-footer__copyright {
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 3rem;
}

.site-footer__tagline {
	border-top: 1px solid #f3f4f6;
	padding-top: 3rem;
}

.site-footer__tagline-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-footer__tagline-heading {
	font-family: "Noto Sans JP", serif;
	font-size: 1.875rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
	text-align: center;
}

.site-footer__tagline-en {
	text-align: right;
	color: #4b5563;
	font-style: italic;
}

.site-footer__tagline-en p {
	margin: 0;
}
@media (max-width: 767.98px) {
	.site-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.site-footer__logo {
		display: block;
	}

	.site-footer__logo-img {
		margin-left: auto;
		margin-right: auto;
	}

	.site-footer__contact {
		text-align: center;
	}
	.site-footer__copyright {
		text-align: center;
	}
	.site-footer__tagline-en {
		text-align: center;
	}
	@media (max-width: 767.98px) {
		/* 既存: .site-footer__brand … */
	
		.site-footer__links-group {
			margin-left: 10%;
			margin-right: 10%;
		}
	}
}
@media (min-width: 431px) {
	.site-footer__br-below-430 {
		display: none;
	}
}
/* ==========================================================================
   Responsive: sm (640px+)
   ========================================================================== */
@media (min-width: 640px) {
	.section-container {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.site-header__inner {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.hero-section__content {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.hero-section__br-sm {
		display: inline;
	}
	.hero-section__br-below-sm {
		display: none;
	}

	.contact-section__phone {
		flex-direction: row;
		align-items: center;
	}
}
/* Hero illust layout: 767px 以下 */
@media (max-width: 639.98px) {
	.hero-section {
		/* top / center の位置（変数で調整） */
		--hero-visuals-ar: 4 / 2.5;   /* または 1 / 1、5 / 4 など。数値を小さくすると箱が高くなる */
		--hero-illust-top-w: 63%;
		--hero-illust-top-inset-y: 20%;
		--hero-illust-top-inset-x: 2%;
		--hero-illust-center-w: 68%;
		--hero-illust-center-x: -3%;
		--hero-illust-center-y: 5%;
	}

	.hero-section__illust--bottom {
		display: none;
	}
	/* テキストブロックは中央配置、文字揃えは左 */
	.hero-section__text {
		width: 100%;
		max-width: min(28rem, 92vw);
		margin-inline: auto;
		text-align: left;
	}
	.hero-section__title,
	.hero-section__subtitle {
		text-align: left;
		margin-left: 0;
		margin-right: 0;
	}
	.hero-section__body-wrap {
		width: 100%;
	}
	.hero-section__body {
		margin-left: 0;
		margin-right: 0;
		text-align: left;
	}
}
/* 450px以下: 狭いほど inset-y を大きく */
@media (max-width: 450px) {
	.hero-section {
		--hero-illust-top-inset-y: 22%;
	}
}
@media (max-width: 400px) {
	.hero-section {
		--hero-illust-top-inset-y: 22%;
	}
}
@media (max-width: 375px) {
	.hero-section {
		--hero-illust-top-inset-y: 25%;
	}
}
@media (max-width: 320px) {
	.hero-section {
		--hero-illust-top-inset-y: 27%;
	}
}


/* Hero illust layout: 640px〜767px */
@media (min-width: 640px) and (max-width: 767.98px) {
	.hero-section {
		--hero-visuals-ar: 5 / 4;
		--hero-illust-top-w: 37%;
		--hero-illust-top-inset-y: -104%;
		--hero-illust-top-inset-x: 7%;
		--hero-illust-center-w: 54%;
		--hero-illust-center-x: 18%;
		--hero-illust-center-y: -12%;
		--hero-illust-bottom-w: 49%;
		--hero-illust-bottom-inset-y: -17%;
		--hero-illust-bottom-left: 74%;
		--hero-illust-bottom-right: auto;
		--hero-illust-bottom-transform: translateX(-50%);

		--hero-min-h: clamp(20rem, 70vw, 32rem); /* 例: セクション最低高 */
		--hero-grid-min-h: clamp(18rem, 65vw, 30rem); /* 例: グリッド最低高 */
		--hero-visuals-ar: 5 / 1.5; /* 既存: 大きくすると visuals が低くなる */
		/* …既存の illust 変数… */
	}
	.hero-section__body {
		font-size: calc(var(--hero-body) * 0.9); /* 約10%縮小 */
	}
}

/* ==========================================================================
   Responsive: md (768px+)
   ========================================================================== */
@media (min-width: 768px) {
	.section-heading__title {
		font-size: 2.25rem;
	}

	.section-container {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.site-header__bar {
		height: 7.5rem;
	}

	.site-header__logo-img {
		height: 3.75rem;
	}

	.site-header__nav {
		display: flex;
	}

	.site-header__menu-btn {
		display: none;
	}

	.site-header__mobile-nav {
		display: none !important;
	}

	.hero-section {
		--hero-min-h: clamp(24rem, 56.25vw, 56.25rem);
		/* Hero illust layout: 768px〜1023px */
		--hero-visuals-ar: 1280 / 800;
		--hero-illust-top-w: 26%;
		--hero-illust-top-inset-y: 17%;
		--hero-illust-top-inset-x: 0%;
		--hero-illust-center-w: 43%;
		--hero-illust-center-x: 44%;
		--hero-illust-center-y: 41%;
		--hero-illust-bottom-w: 44%;
		--hero-illust-bottom-inset-y: 0%;
		--hero-illust-bottom-left: 71%;
		--hero-illust-bottom-right: auto;
		--hero-illust-bottom-transform: translateX(-50%);
		display: flex;
		flex-direction: column;
		min-height: var(--hero-min-h);
	}

	.hero-section__content {
		flex: 1;
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 80rem;
		min-height: 0;
		padding-top: clamp(2.5rem, 4vw, 5rem);
		padding-bottom: 0;
	}

	.hero-section__grid {
		position: relative;
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.hero-section__text {
		position: relative;
		z-index: 25;
		flex: 1;
		display: grid;
		grid-template-rows: auto auto 1fr;
		min-height: 0;
		width: 100%;
		max-width: 100%;
		margin-top: 0;
	}

	.hero-section__title {
		max-width: min(920px, 92vw);
		font-size: clamp(2rem, 1.2rem + 4.4vw, 4.4rem);
		line-height: 1.2;
		letter-spacing: -0.02em;
		margin: 0 0 0.75rem;
	}

	.hero-section__subtitle {
		max-width: min(660px, 72vw);
		font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem);
		margin: 0;
	}

	.hero-section__body-wrap {
		grid-row: 3;
		align-self: center;
		justify-self: start;
		max-width: calc(50% - 2.5rem);
		margin: 0;
		padding: clamp(1rem, 3vw, 2.5rem);
		padding-top: 0;
	}

	.hero-section__body {
		max-width: none;
		font-size: clamp(0.95rem, 0.8rem + 0.35vw, 1.125rem);
		line-height: 1.7;
	}

	.hero-section__br-sm {
		display: inline;
	}

	.hero-section__visuals {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		width: 100%;
		height: auto;
		aspect-ratio: var(--hero-visuals-ar);
		min-height: 0;
		pointer-events: none;
	}

	.about-section,
	.services-section,
	.use-cases-section,
	.news-section,
	.company-section {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}

	.about-section__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 4rem;
	}

	.about-section__heading {
		font-size: 1.875rem;
	}

	.about-section__text-block p,
	.about-section__feature-text {
		font-size: 1rem;
	}

	.services-section__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;
	}

	.service-card__content {
		padding: 3rem 1rem;
	}

	.service-card__title {
		font-size: 1.5rem;
	}

	.service-card__description {
		font-size: 0.875rem;
	}

	.use-cases-section__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.use-case-card {
		padding: 1.25rem;
	}

	.use-case-card__text {
		font-size: 1rem;
	}

	.news-section__panel {
		padding: 3rem;
	}

	.news-section__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}

	.news-card {
		padding: 1.5rem;
	}

	.company-section__info {
		width: 60%;
		max-width: none;
		margin: 0 0 4rem auto;
	}

	.company-section__row {
		flex-direction: row;
	}

	.company-section__label {
		width: 8rem;
		margin-bottom: 0;
	}

	.company-section__locations {
		width: 60%;
		max-width: none;
		margin: 0 0 3rem auto;
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-section {
		aspect-ratio: 4 / 2.5;
		padding-top: 0;
		padding-bottom: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		overflow: hidden;
	}

	.contact-section > .section-container {
		width: 100%;
		height: 100%;
		min-height: 0;
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: var(--contact-container-pad-y);
		padding-bottom: var(--contact-container-pad-y);
	}

	.contact-section__grid {
		width: 100%;
		grid-template-columns: repeat(2, 1fr);
		align-items: stretch;
		min-height: 0;
		height: 100%;
		max-height: 100%;
		flex: 1;
		gap: var(--contact-gap);
	}

	.contact-section__left {
		align-self: center;
		min-height: 0;
	}

	.contact-section__right {
		display: grid;
		grid-template-rows: 2fr 1fr;
		min-height: 0;
		height: 100%;
	}

	.contact-section__right-content {
		grid-row: 2;
		align-self: start;
	}

	.site-footer__inner {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		align-items: start;
	}

	.site-footer__links-group {
		flex-direction: row;
		justify-content: center;
		align-items: flex-start;
		gap: 4rem;
	}

	.site-footer__tagline-heading {
		font-size: 2.25rem;
		text-align: left;
	}

	.site-footer__tagline-inner {
		flex-direction: row;
	}
}

/* ==========================================================================
   Responsive: lg (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
	.section-container {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.site-header__inner {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.hero-section {
		/* Hero illust layout: 1024px〜 */
		--hero-visuals-ar: 1280 / 800;
		--hero-illust-top-w: 26%;
		--hero-illust-top-inset-y: 17%;
		--hero-illust-top-inset-x: 0%;
		--hero-illust-center-w: 43%;
		--hero-illust-center-x: 44%;
		--hero-illust-center-y: 41%;
		--hero-illust-bottom-w: 44%;
		--hero-illust-bottom-inset-y: 0%;
		--hero-illust-bottom-left: 71%;
		--hero-illust-bottom-right: auto;
		--hero-illust-bottom-transform: translateX(-50%);
	}

	.hero-section__content {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.site-footer__tagline-heading {
		font-size: clamp(2rem, 1.2rem + 3.5vw, 4.4rem);
	}
	.site-header__bar {
		height: 7.5rem;
	}
	.site-header__logo-img {
		height: 3.75rem;
	}

	
	
}


/* ==========================================================================
   Responsive: xl (1280px+)
   ========================================================================== */
   @media (min-width: 1280px) {
	.hero-section {
		/* visuals の縦横比（必要なら） */
		--hero-visuals-ar: 1280 / 800;

		/* top（base + hex） */
		--hero-illust-top-w: 33%;
		--hero-illust-top-inset-y: 3%;
		--hero-illust-top-inset-x: 3%;

		/* center（BE the Solution） */
		--hero-illust-center-w: 44%;
		--hero-illust-center-x: 38%;
		--hero-illust-center-y: 38%;

		/* bottom（Consultation Design） */
		--hero-illust-bottom-w: 48%;
		--hero-illust-bottom-inset-y: -3%;
		--hero-illust-bottom-left: 65%;
		--hero-illust-bottom-right: auto;
		--hero-illust-bottom-transform: translateX(-50%);
	}
	.hero-section__body {
		font-size: clamp(1.125rem, 1rem + 0.4vw, 1.35rem);
		line-height: 1.8;
	}
}

