/* Studito Online homepage styles.
 * Loaded only on the front page via studito-public-site mu-plugin.
 * Component rules are scoped under .studito-home; body.home is used only to
 * hide the theme-printed page title node.
 */

/* --- Hide the theme-printed bare page title ("ホーム") on the front page.
 *     It is an unwrapped text node directly inside <main>, so collapse main's
 *     own inline text and restore the element children. Also make the content
 *     full-bleed so the section bands can reach the screen edges. --- */
body.home main {
	font-size: 0;
	max-width: none;
	margin: 0;
	padding: 0;
}
body.home main > * {
	font-size: 1rem;
}

/* --- Base --- */
.studito-home {
	font-size: 16px;
	line-height: 1.8;
	color: #1f2a44;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.studito-home * {
	box-sizing: border-box;
}
.studito-home h1,
.studito-home h2,
.studito-home p,
.studito-home ol,
.studito-home li {
	margin: 0;
	padding: 0;
}
.studito-home ol {
	list-style: none;
}
.studito-home a {
	color: inherit;
}

.studito-home .studito-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Homepage inline navigation --- */
.studito-home .studito-next-inline,
.studito-home .studito-next-inline__text {
	text-align: center;
}

.studito-home .studito-next-btn--primary,
.studito-home .studito-next-btn--primary:visited,
.studito-home .studito-next-btn--primary:hover,
.studito-home .studito-next-btn--primary:focus,
.studito-home .studito-next-btn--primary:active {
	color: #ffffff;
}

/* --- Buttons --- */
.studito-home .studito-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.studito-home .studito-btn {
	display: inline-block;
	padding: 15px 30px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.4;
	text-decoration: none;
	transition: transform .15s ease, background-color .15s ease;
}
.studito-home .studito-btn--primary {
	background: #ffffff;
	color: #061e4d;
	box-shadow: 0 6px 18px rgba(3, 12, 35, 0.25);
}
.studito-home .studito-btn--primary:hover {
	transform: translateY(-2px);
}
.studito-home .studito-btn--ghost {
	background: transparent;
	color: #ffffff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.studito-home .studito-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.10);
}

/* --- Hero --- */
.studito-home .studito-hero {
	background: linear-gradient(160deg, #061e4d 0%, #0a2a63 100%);
	color: #ffffff;
}
.studito-home .studito-hero__inner {
	padding-top: 92px;
	padding-bottom: 92px;
}
.studito-home .studito-hero__eyebrow {
	font-size: 0.82rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #9db4e6;
	margin-bottom: 18px;
}
.studito-home .studito-hero__title {
	font-size: clamp(2rem, 4.8vw, 3rem);
	line-height: 1.38;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 26px;
}
.studito-home .studito-hero__lead {
	font-size: 1.06rem;
	line-height: 2;
	color: #d7e0f3;
	max-width: 760px;
	margin-bottom: 36px;
}
.studito-home .studito-hero__sub {
	margin-top: 22px;
	font-size: 0.95rem;
}
.studito-home .studito-hero__sub a {
	color: #bcd0f7;
	text-decoration: none;
}
.studito-home .studito-hero__sub a:hover {
	text-decoration: underline;
}

/* --- Generic section --- */
.studito-home .studito-section {
	padding: 76px 0;
	background: #ffffff;
}
.studito-home .studito-section--tint {
	background: #f4f7fc;
}
.studito-home .studito-section__title {
	font-size: clamp(1.45rem, 3.2vw, 2rem);
	line-height: 1.5;
	font-weight: 800;
	color: #061e4d;
	text-align: center;
	margin-bottom: 44px;
}

/* --- Cards --- */
.studito-home .studito-cards {
	display: grid;
	gap: 22px;
}
.studito-home .studito-cards--3 {
	grid-template-columns: repeat(3, 1fr);
}
.studito-home .studito-cards--2 {
	grid-template-columns: repeat(2, 1fr);
}
.studito-home .studito-card {
	background: #ffffff;
	border: 1px solid #e2e8f4;
	border-radius: 14px;
	padding: 30px 28px;
	box-shadow: 0 2px 12px rgba(6, 30, 77, 0.05);
}
.studito-home .studito-card__num {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #9db4e6;
	margin-bottom: 12px;
}
.studito-home .studito-card__text {
	font-size: 1rem;
	line-height: 1.9;
	color: #34405e;
}

/* --- Layers --- */
.studito-home .studito-layer {
	border-top: 4px solid #061e4d;
}
.studito-home .studito-layer__name {
	font-size: 1.2rem;
	font-weight: 800;
	color: #061e4d;
	margin-bottom: 4px;
}
.studito-home .studito-layer__role {
	font-size: 0.9rem;
	font-weight: 700;
	color: #2f5bd0;
	margin-bottom: 14px;
}

/* --- Flow steps --- */
.studito-home .studito-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.studito-home .studito-step {
	background: #ffffff;
	border: 1px solid #e2e8f4;
	border-radius: 14px;
	padding: 28px 20px;
	text-align: center;
}
.studito-home .studito-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #061e4d;
	color: #ffffff;
	font-weight: 800;
	font-size: 1.1rem;
}
.studito-home .studito-step__label {
	display: block;
	font-size: 0.98rem;
	line-height: 1.7;
	color: #34405e;
}

/* --- Final CTA --- */
.studito-home .studito-cta-section {
	background: linear-gradient(160deg, #061e4d 0%, #0a2a63 100%);
	color: #ffffff;
}
.studito-home .studito-cta__inner {
	padding-top: 84px;
	padding-bottom: 84px;
	text-align: center;
}
.studito-home .studito-cta__title {
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 20px;
}
.studito-home .studito-cta__text {
	font-size: 1.05rem;
	line-height: 2;
	color: #d7e0f3;
	max-width: 720px;
	margin: 0 auto 34px;
}
.studito-home .studito-cta__inner .studito-actions {
	justify-content: center;
}
.studito-home .studito-cta__sub {
	margin-top: 24px;
	font-size: 0.95rem;
}
.studito-home .studito-cta__sub a {
	color: #bcd0f7;
	text-decoration: none;
}
.studito-home .studito-cta__sub a:hover {
	text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 880px) {
	.studito-home .studito-cards--3,
	.studito-home .studito-steps {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.studito-home .studito-hero__inner {
		padding-top: 62px;
		padding-bottom: 62px;
	}
	.studito-home .studito-section {
		padding: 54px 0;
	}
	.studito-home .studito-cards--3,
	.studito-home .studito-cards--2,
	.studito-home .studito-steps {
		grid-template-columns: 1fr;
	}
	.studito-home .studito-actions {
		flex-direction: column;
	}
	.studito-home .studito-btn {
		width: 100%;
		text-align: center;
	}
}
