/* ==========================================================================
   Base & Typography
   ========================================================================== */

:root {
	--bg: #ffffff;
	--bg-alt: #f8f9fa;
	--txt: #1d1d1f;
	--txt-l: #555555;
	--acc: #0066cc;
	--pop: #ff3366;
	--shd: 0 4px 20px rgba(0, 0, 0, 0.06);
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--txt);
	background: var(--bg);
	line-height: 1.6;
}
a {
	color: var(--acc);
	text-decoration: none;
	transition: 0.3s;
}
a:hover {
	color: var(--pop);
}
.co {
	max-width: 1024px;
	margin: 0 auto;
	padding: 0 24px;
}
.st {
	font-size: 2.2rem;
	text-align: center;
	margin-bottom: 1.5rem;
	font-weight: 700;
}
.ss {
	font-size: 1.1rem;
	text-align: center;
	color: var(--txt-l);
	margin-bottom: 3rem;
}
/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-block;
	padding: 16px 36px;
	border-radius: 99px;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(255, 51, 102, .3);
	transition: 0.3s;
	text-align: center;
	cursor: pointer;
	border: none;
}
.btn-p {
	background: var(--pop);
	color: #fff;
	animation: bounce 2.5s infinite;
}
.btn-p:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(255, 51, 102, .4);
	color: #fff;
}
.btn-o {
	background: transparent;
	color: var(--acc);
	border: 2px solid var(--acc);
	padding: 14px 34px;
	box-shadow: none;
	animation: none;
}
.btn-o:hover {
	background: var(--acc);
	color: #fff;
	transform: none;
}
@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0)
	}
	40% {
		transform: translateY(-6px)
	}
	60% {
		transform: translateY(-3px)
	}
}
/* ==========================================================================
   Hero Section (鉄壁のレイアウト保護)
   ========================================================================== */

.hi {
	background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
	padding: 100px 20px 80px;
}
.co-flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto;
}
.hi-text {
	flex: 1;
	text-align: left;
}
.ba {
	display: inline-block;
	background: linear-gradient(135deg, #00c6ff, #0072ff);
	color: white;
	padding: 8px 24px;
	border-radius: 30px;
	font-weight: 700;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 10px rgba(0, 114, 255, 0.3);
}
/* 文字サイズを画面幅に合わせて可変にし、不自然な改行を防止 */

.hi h1 {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	margin-bottom: 20px;
	line-height: 1.3;
	font-weight: 800;
	word-break: keep-all;
	overflow-wrap: break-word;
}
.hi-sub {
	font-size: 1.1rem;
	color: #444;
	margin-bottom: 30px;
	font-weight: 700;
	line-height: 1.6;
	word-break: keep-all;
}
/* ▼ 徹底校正箇所1: 画像が無くても枠が崩れない絶対構造 ▼ */

.hi-img {
	flex: 1;
	max-width: 500px;
	width: 100%;
	position: relative;
	z-index: 1;
}
.img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	/* 画像がなくてもこの比率を絶対に維持する */
	background-color: #dbeafe;
	/* 画像がないときの予備色 */
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	border: 8px solid #fff;
	transform: perspective(1000px) rotateY(-12deg) rotateX(5deg);
	transition: 0.5s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.img-wrap:hover {
	transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
	z-index: 2;
}
.img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 枠にぴったり収める */
	border-radius: 12px;
	color: transparent;
	/* 画像が無い時の見苦しいaltテキストを隠す */
}
/* ▼ 徹底校正箇所2: 絶対にはみ出さない吹き出し ▼ */

.mf {
	position: absolute;
	bottom: -25px;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	/* 画像枠の90%の幅に強制指定 */
	max-width: 380px;
	background: rgba(255, 255, 255, 0.95);
	padding: 12px 16px;
	border-radius: 40px;
	font-weight: 700;
	border: 3px solid var(--acc);
	text-align: center;
	line-height: 1.4;
	white-space: normal;
	word-break: keep-all;
	overflow-wrap: break-word;
	animation: fl 3s infinite;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
	z-index: 10;
	font-size: 0.95rem;
	color: #333;
}
@keyframes fl {
	0%, 100% {
		transform: translate(-50%, 0)
	}
	50% {
		transform: translate(-50%, -8px)
	}
}
@media (max-width: 900px) {
	.co-flex {
		flex-direction: column;
		text-align: center;
	}
	.hi-text {
		text-align: center;
	}
	.hi-img {
		max-width: 85%;
		margin-top: 20px;
	}
	.img-wrap {
		transform: none;
		border-width: 5px;
	}
}
/* ==========================================================================
   Layouts & Cards
   ========================================================================== */

section {
	padding: 100px 0;
}
.bg-a {
	background: var(--bg-alt);
}
.g2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}
.g3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}
.cd {
	background: #fff;
	padding: 2.5rem;
	border-radius: 20px;
	box-shadow: var(--shd);
}
.cd h3 {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	color: var(--acc);
}
.rn {
	font-size: 3rem;
	font-weight: 800;
	color: #e0e0e0;
	line-height: 1;
	margin-bottom: 1rem;
}
/* ==========================================================================
   Tabs & Accordion
   ========================================================================== */

.aw {
	max-width: 800px;
	margin: 0 auto;
}
.tn {
	display: flex;
	background: #eee;
	border-radius: 12px;
	padding: 6px;
	margin-bottom: 2rem;
}
.tb {
	flex: 1;
	text-align: center;
	padding: 14px;
	font-weight: 700;
	color: #777;
	cursor: pointer;
	border-radius: 8px;
	transition: 0.3s;
	font-size: 1.1rem;
}
.tb.ac {
	background: #fff;
	color: var(--acc);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.tc {
	display: none;
}
.tc.ac {
	display: block;
	animation: fi 0.4s;
}
@keyframes fi {
	from {
		opacity: 0;
		transform: translateY(10px)
	}
	to {
		opacity: 1;
		transform: translateY(0)
	}
}
details {
	border-bottom: 1px solid #e0e0e0;
	padding: 1.5rem 0;
}
summary {
	font-size: 1.3rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
summary::-webkit-details-marker {
	display: none;
}
summary::after {
	content: '+';
	color: var(--acc);
	font-size: 1.8rem;
	font-weight: 300;
}
details[open] summary::after {
	content: '−';
}
.rb {
	background: #fdf5f7;
	border-left: 5px solid var(--pop);
	padding: 18px 24px;
	border-radius: 0 8px 8px 0;
	margin: 1.5rem 0 2rem;
	font-size: 0.95rem;
}
.el {
	list-style: none;
}
.el li {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #eee;
}
.el li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border: none;
}
.eti {
	font-weight: 700;
	font-size: 1.15rem;
	margin-bottom: 6px;
	color: var(--txt);
}
.ede {
	font-size: 0.95rem;
	color: #555;
	margin-bottom: 14px;
}
.cps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cp {
	background: rgba(0, 102, 204, 0.08);
	color: var(--acc);
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	transition: 0.2s;
	border: 1px solid transparent;
	text-align: center;
	display: inline-block;
}
.cp:hover {
	background: var(--acc);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}
.cp-p {
	background: var(--pop);
	color: #fff;
	box-shadow: 0 4px 10px rgba(255, 51, 102, 0.2);
}
.cp-p:hover {
	background: #e62050;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(255, 51, 102, 0.3);
}
/* ==========================================================================
   Footer
   ========================================================================== */

footer {
	background: #1d1d1f;
	padding: 4rem 0;
	text-align: center;
	font-size: 0.9rem;
	color: #a1a1a6;
}
footer a {
	color: #a1a1a6;
	text-decoration: underline;
}
footer a:hover {
	color: #fff;
}