:root {
	/* Base Variables */
	--color-primary: #004190;
	--color-accent: #E60012;
	--color-accent2: #F06671;
	--color-accent-bg: #fff0f1;
	--color-text: #333333;
	--color-white: #ffffff;
	--color-bg-gray: #f4f7f9;
	--color-accent-gradient: linear-gradient(135deg, #E60012 0%, #cc0010 100%);
	--bg-fv-gradient: linear-gradient(160deg, #f0f4ff 0%, #e6e9ff 100%);
	--container-width: 1000px;
	--padding-section: 80px 20px;
	--z-header: 1000;
	--z-floating: 2000;
}

/* Base Styles & Resets */
html { scroll-behavior: smooth; }
body {
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
	color: var(--color-text);
	line-height: 1.6;
	margin: 0;
}
html,body {
	height: 100%;
}
footer {
	position: sticky;
	top: 100vh;
}
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; }

/* Scroll Offset */
section, #contact, #features, #merit, #houselist, #pricing, #flow, #faq, #cases {
	scroll-margin-top: 90px;
}

/* Utilities */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); font-weight: bold; }
.bg-gray { background-color: var(--color-bg-gray); }
.section-padding { padding: var(--padding-section); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.pc-only { display: inline; }

/* Common Components */
.section-title {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 40px;
	position: relative;
	color: var(--color-primary);
	font-weight: 900;
}
.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--color-accent);
	margin: 15px auto 0;
}
.section-title2 {
	max-width: 800px;
	width: 100%;
	padding: .2em 0 .4em;
	font-size: 2rem;
	text-align: center;
	margin-bottom: 40px;
	color: var(--color-white);
	font-weight: 900;
	background: linear-gradient(45deg, #2B74C5, #004190 20%, #004190 80%, #2B74C5);
	position: relative;
	top: 0;
	left: 50%;
	transform: translateX(-50%) !important;
}
.section-desc { text-align: center; margin-bottom: 40px; }

/* Buttons */
.btn {
	display: inline-block;
	background: var(--color-accent-gradient);
	color: var(--color-white);
	font-weight: bold;
	border-radius: 50px;
	text-align: center;
	border: none;
	cursor: pointer;
}
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 15px 60px; font-size: 1.2rem; position: relative; }
.btn-shadow { box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3); }
.btn-sub { display: block; font-size: 0.8rem; font-weight: normal; margin-top: 5px; opacity: 0.9; }
.btn-white { background: var(--color-white); color: var(--color-primary); font-weight: 900; }

/* Header */
.header {
	position: fixed; top: 0; width: 100%;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	z-index: var(--z-header); height: 70px;
	display: flex; align-items: center;
}
.header-inner { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; margin: 0; font-weight: 900; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a:not(.btn) { font-weight: bold; color: var(--color-primary); }

/* FV */
.fv {
	padding: 140px 0 80px;
	background: url(img/mv-back.webp) center top no-repeat;
	background-size: cover;
	overflow: hidden;
}
.fv-apo {
	font-size: 1rem;
	margin: 0;
}
.fv h1 {
	margin: 0;
	font-size: 4.5rem;
	font-weight: 900;
	line-height: 1.3;
	color: var(--color-primary);
}
.fv h1 span {
	display: block;
	color: var(--color-accent);
}
.fv-title { margin: 15px 0 0; }
.marker {
	display: inline-block;
	margin: 0 .5em 0 0;
	padding: 0 .5em .2em;
	font-size: 2rem;
	font-weight: bold;
	line-height: 1;
	color: var(--color-white);
	background: var(--color-accent);
}
.marker em { font-style: normal; font-size: 140%; }
.fv-copy {
	margin: 10px 0 0;
	font-size: 2.125rem;
	font-weight: 700;
	color: var(--color-primary);
}
.fv-cta a {
	display: inline-block;
	margin: 15px 0 0;
	padding: .6em 2em .8em;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .1em;
	color: var(--color-white);
	background: #0071BC;
	border-radius: 5px;
}
@media (max-width: 768px) {
	.fv { padding: 100px 0 30px; }
	.fv-apo {
		font-size: 0.75rem;
	}
	.fv h1 {
		font-size: 2rem;
	}
	.fv-title { margin: 5px 0 0; }
	.marker {
		font-size: 1rem;
	}
	.fv-copy {
		margin: 0;
		font-size: 1rem;
	}
	.fv-cta a {
		margin: 5px 0 0;
		padding: .6em 2em .8em;
		font-size: 1rem;
		border-radius: 3px;
	}
}

/* Problem Section */
.problem {
	background: var(--color-primary);
}
.problem-title {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 60px;
	position: relative;
	color: var(--color-white);
	font-weight: 700;
}
.problem-title span {
	color: var(--color-accent2);
	font-weight: 900;
}
.problem-list { display: flex; justify-content: space-between; flex-wrap: wrap; }
.problem-item {
	box-sizing: border-box; background: var(--color-white); border: 2px solid #ddd; padding: 20px;
	width: 32%; text-align: center; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.problem-item img {
	width: 60%;
	height: auto;
}
.problem-solution { text-align: center; margin-top: 40px; font-size: 1.75rem; color: var(--color-white); }
.problem-solution strong {
	color: var(--color-accent2);
	font-weight: 900;
}
.arrow-down::before { content: '▼'; display: block; margin-bottom: 10px; font-size: 1rem; color: #ccc; }
@media (max-width: 768px) {
	.problem-item { width: 100%; margin: 0 0 15px; padding: 0 5px; }
	.problem-solution {
		font-size: 1.25rem;
	}
}

/* =========================================
New: Merit Section
========================================= */
.merit-grid {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}
.merit-card {
	background: var(--color-white);
	width: 300px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.merit-card h3 {
	margin: 0;
	font-size: 1.2rem;
	background: var(--color-primary);
	color: var(--color-white);
	padding: 15px;
	text-align: center;
}
.merit-img {
	margin: 0 0 10px;
	text-align: center;
}
.merit-body { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.merit-row { padding: 10px; border-radius: 5px; font-size: 0.9rem; }
.merit-row.bad { background: #f0f0f0; color: #666; }
.merit-row.good { background: var(--color-accent-bg); color: var(--color-text); border: 1px solid #ffcccc; }
.merit-row .label {
	display: block; font-weight: bold; font-size: 0.8rem; margin-bottom: 5px;
}
.merit-row.bad .label { color: #666; }
.merit-row.good .label { color: var(--color-accent); }
.merit-arrow { text-align: center; color: #ccc; margin: 10px 0; font-size: 0.8rem; }
.merit-row p { margin: 0; line-height: 1.4; }

/* Features Section */
.features {
	background: #e3efff;
}
.feature-card {
	display: flex; align-items: center; gap: 40px; background: var(--color-white);
	padding: 40px; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.feature-card.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-img { flex: 1; }
.feature-num {
	color: var(--color-accent); font-weight: bold; display: block; margin-bottom: 10px; letter-spacing: 0.1em;
}
.feature-text h3 { font-size: 1.5rem; margin: 0 0 20px 0; color: var(--color-primary); }

/* Houselist Section */
.houselist-box {
	background: var(--color-white); border: 2px solid #eee; border-radius: 10px; padding: 40px;
	max-width: 800px; margin: 0 auto; display: flex; justify-content: space-between; align-items: stretch;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.houselist-col { flex: 1; padding: 0 20px; }
.houselist-divider { width: 50px; display: flex; align-items: center; justify-content: center; }
.arrow-icon { font-size: 1.5rem; color: #ccc; }
.houselist-col h3 {
	font-size: 1.2rem; margin: 0 0 20px 0; font-weight: 700; color: var(--color-primary);
	text-align: center; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px;
}
.check-list, .point-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.check-list li { margin-bottom: 15px; padding-left: 20px; position: relative; font-weight: bold; color: #555; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: #999; }
.point-list li { margin-bottom: 15px; padding-left: 20px; position: relative; color: #555; }
.point-list li::before { content: '★'; position: absolute; left: 0; color: var(--color-accent); }

/* Cases Section */
.case-list { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.case-item {
	background: var(--color-white); width: calc(30% - 15px); border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column;
}

.case-head {
	background: #eef2f6; 
	padding: 20px 25px; 
	border-bottom: 1px solid #eee;
	min-height: 150px; 
	display: flex; 
	flex-direction: column; 
	justify-content: flex-end;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-color: #eef2f6;
}
.case-industry {
	display: inline-block; font-size: 0.8rem; color: #666; background: var(--color-white);
	width: fit-content; padding: 5px 1em; border-radius: 20px; border: 1px solid #ddd; margin-bottom: 8px;
}
.case-head h3 {
	margin: 0; font-size: 1.25rem; color: var(--color-primary); font-weight: bold;
	text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
}
.case-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.case-result {
	background: var(--color-accent-bg); padding: 15px; border-radius: 8px;
	text-align: center; margin-bottom: 20px; border: 1px solid #ffe0e0;
}
.result-label { font-size: 0.85rem; font-weight: bold; color: var(--color-accent); margin: 0 0 5px 0; opacity: 0.9; }
.result-value { font-size: 1.2rem; font-weight: bold; color: var(--color-text); margin: 0; line-height: 1.4; }
.case-comment { margin: 0; font-size: 0.95rem; color: #555; line-height: 1.7; margin-top: auto; }

/* Case Backgrounds */
.case-img-a {
	background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('img/jirei_a.webp');
}
.case-img-b {
	background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('img/jirei_b.webp');
}
.case-img-c {
	background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('img/jirei_c.webp');
}

/* Pricing Section */
.price-box {
	background: var(--color-white); border: 3px solid var(--color-primary); border-radius: 10px;
	max-width: 600px; margin: 0 auto; padding: 40px; box-shadow: 0 10px 30px rgba(0, 65, 144, 0.1);
}
.price-row {
	display: flex; justify-content: space-between; align-items: center;
	border-bottom: 1px solid #eee; padding: 15px 0; font-size: 1.2rem; font-weight: bold;
}
.price-row.main-price {
	border-bottom: none; font-size: 1.5rem; margin-top: 20px;
	background: var(--color-accent-bg); color: var(--color-primary); padding: 20px; border-radius: 8px;
}
.unit { font-size: 0.8em; margin-left: 5px; }
.note { font-size: 0.8rem; font-weight: normal; color: #666; display: block; margin-top: 5px;}
.price-note { font-size: 0.8rem; color: #666; margin-top: 15px; line-height: 1.4; }

/* New: Pricing Details */
.price-details {
	background: #f8f8f8; padding: 15px; border-radius: 8px;
}
.detail-row {
	display: flex; justify-content: space-between; margin: 0 0 10px 0;
	border-bottom: 1px dotted #ccc; padding-bottom: 10px;
}
.detail-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.detail-row dt { font-weight: bold; color: var(--color-primary); }
.detail-row dd { margin: 0; text-align: right; }
.detail-note { font-size: 0.8em; color: #666; display: block; }

/* Flow Section */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
	background: var(--color-white); padding: 25px 20px; border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.05); border-top: 4px solid var(--color-primary); text-align: left;
}
.step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.step-num {
	background: var(--color-primary); color: var(--color-white); width: 30px; height: 30px; line-height: 30px;
	text-align: center; border-radius: 50%; font-weight: bold; font-size: 0.9rem; flex-shrink: 0;
}
.step-title { margin: 0; font-size: 1rem; color: var(--color-primary); }
.step-text { font-size: 0.9rem; margin: 0; color: #555; line-height: 1.5; }

/* FAQ Section */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
	background: var(--color-white); border-radius: 8px; padding: 20px 30px; margin-bottom: 20px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.05); border-left: 5px solid var(--color-primary);
}
.faq-item h3 { font-size: 1.1rem; color: var(--color-primary); margin: 0 0 10px 0; font-weight: bold; }
.faq-answer { margin: 0; font-size: 0.95rem; color: #555; line-height: 1.6; }

/* Contact Section */
.contact { background: var(--color-primary); color: var(--color-white); text-align: center; }
.contact-title { font-size: 2rem; margin-bottom: 20px; }
.contact-desc { margin-bottom: 30px; font-size: 1.1rem; opacity: 0.9; }
.security-note { margin-top: 20px; font-size: 0.8em; opacity: 0.8; }
.security-note a { color: inherit; text-decoration: underline; }

/* Footer */
.footer { background: #222; color: #999; padding: 40px 0; text-align: center; font-size: 0.9rem; }

/* Floating CTA */
.floating-cta {
	position: fixed; bottom: 0; left: 0; width: 100%; background: var(--color-accent-gradient);
	padding: 15px; text-align: center; z-index: var(--z-floating); display: none; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.floating-cta a { color: var(--color-white); font-weight: bold; font-size: 1.1rem; display: block; }

/* Animations */
.fade-in-up {
	opacity: 0; transform: translateY(30px);
	transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: opacity, transform;
}
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Media Queries (Mobile) */
@media (max-width: 900px) {
	.flow-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	body { padding-bottom: 60px; }
	.pc-only { display: none; }
	.section-title { font-size: 1.5rem; }
	.section-title2 { font-size: 1.5rem; }
	.nav { display: none; }
	/* Merit Mobile */
	.merit-card { width: 100%; }
	
	.feature-card, .feature-card.reverse { flex-direction: column; padding: 25px; gap: 20px; }
	.houselist-box { flex-direction: column; gap: 20px; padding: 30px 20px; }
	.houselist-divider { width: 100%; height: 30px; }
	.arrow-icon { transform: rotate(90deg); }
	.case-item { width: 100%; margin-bottom: 20px; }
	.case-list { gap: 20px; }
	.flow-grid { grid-template-columns: 1fr; }
	.step-card { display: flex; flex-direction: column; text-align: center; }
	.step-header { justify-content: center; flex-direction: column; }
	.price-box { padding: 20px; }
	.price-row.main-price { flex-direction: column; text-align: center; gap: 10px; }
	.floating-cta { display: block; }
}

/* otayori */
.privacy {
	margin: 0;
	padding: 0 6%;
}
.privacy dt {
	font-size: 1.25rem;
	font-weight: bold;
	margin: 0 0 20px;
}
.privacy dd {
	margin: 0;
}
.frame {
	border: 1px solid #959595;
	font-size: 16px;
	line-height: 2.2;
	padding: 10px 5px;
}
.frame > div {
	height: 360px;
	overflow-y: auto;
	padding: 15px 30px;
	font-size: 1rem;
}
#otayori .bold {
	font-weight: bold;
}
#otayori .sup { color: #DC0111; line-height:10px; }
.privacy-link {
	margin-bottom: 60px;
	padding: 0 6%;
}
.privacy-link a {
	color: #cc0010;
}
.agree {
	font-size: 1.125rem;
	line-height: 2;
	text-align: center;
}
.agree input[type="checkbox"] {
	border: 1px solid #000;
	height: 15px;
	width: 15px;
	-webkit-appearance: auto;
	appearance: auto;
}
.frm-wrap {
	background: #ddd;
	margin-top: 50px;
	padding: 100px 0;
}
.frm-tbl {
	margin: 0 auto;
	max-width: 800px;
	width: 75%;
}
.frm-tbl th, .frm-tbl td {
	font-size: 22px;
	line-height: 1.5;
}
.frm-tbl th {
	font-weight: normal;
	padding-right: 15px;
	padding-top: 25px;
	text-align: right;
	width: 240px;
	vertical-align: top;
}
.frm-tbl td {
	padding-bottom: 50px;
}
.frm-tbl tr:last-child td {
	padding-bottom: 0px;
}
.frm-tbl .input-wrap {
	background: #fff;
	border: 1px solid #323232;
	border-radius: 4px;
	outline: none;
	min-height: 60px;
	width: 100%;
	padding: 10px 20px;
	display: flex;
	align-items: center;
}
.frm-tbl .control {
	background: #fff;
	outline: none;
	min-height: 40px;
	width: 100%;
	padding: 0;
	outline: none;
	resize: none;
	border: none;
	font: inherit;
	color: inherit;
	background: none;
	cursor: pointer;
}
.frm-tbl .note {
	font-size: 16px;
	margin: -25px 0 5px;
}
.frm-btn {
	margin: 60px 0 0;
	text-align: center;
}
.confirm-btn {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.5;
	position: relative;
	display: inline-block;
	padding: .7rem 3rem;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	letter-spacing: 0.1em;
	outline: none;
	border: none;
overflow: hidden;
color: #fff;
background: #000;
}
.confirm-btn span {
position: relative;
}
.confirm-btn:before {
position: absolute;
top: 0;
left: 0;
width: 150%;
height: 500%;
content: "";
transition: all 0.5s ease-in-out;
transform: translateX(-88%) translateY(-25%) rotate(45deg);
background: #00b7ee;
}
.confirm-btn:hover:before {
transform: translateX(1%) translateY(-25%) rotate(45deg);
}
#formWrap {
	padding: 50px 0;
}
#formWrap h2 {
	font-size: 1.5rem;
	font-weight: bold;
	text-align: center;
	color: #333;
}
table.formTable{
	width:100%;
	margin:30px auto;
	border-collapse:collapse;
}
table.formTable td,table.formTable th{
	border:1px solid #ccc;
	padding:10px;
}
table.formTable th{
	width:30%;
	font-weight:normal;
	background:#efefef;
	text-align:left;
}
p.error_messe{
	margin:5px 0;
	color:red;
}
.thanks {
	text-align: center;
}
.thanks a {
	text-decoration: underline;
	color: #004190;
}
@media (max-width: 768px) {
	.privacy {
		padding: 0;
	}
	.frame > div {
		height: 300px;
		padding: 10px;
		font-size: 0.875rem;
		line-height: 1.6;
	}
	.privacy-link {
		margin-bottom: 20px;
		padding: 0;
	}
	.agree {
		font-size: 0.9375rem;
		line-height: 1.7;
	}
	.frm-wrap {
		margin-top: 25px;
		padding: 40px 0;
	}
	.frm-tbl th, .frm-tbl td {
		font-size: 14px;
	}
	.frm-tbl th {
		display: block;
		padding-top: 0;
		padding-bottom: 10px;
		text-align: left;
		width: 100%;
	}
	.frm-tbl td {
		display: block;
		padding-bottom: 25px;
		width: 100%;
	}
	.frm-tbl .input-wrap {
		padding: 0 10px;
	}
	.frm-tbl .control {
		min-height: 38px;
	}
	.frm-tbl .note {
		font-size: 10px;
		margin-top: -10px;
	}
}
