/* =================================================================== */
/* カラーパレット・共通設定 */
/* =================================================================== */

:root {
	--bg: #f6fbfe;
	--line: #d5e8f0;
	--text: #1c3550;
	--sub: #52677c;
	--brand: #1e77c5;
	--soft: #ffffff;
	--cream: #fffaf1;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic",sans-serif;
	color: var(--text);
	background: #fff;
	line-height: 1.7;
}

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

a {
	color: var(--brand);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.wrap {
	width: min(1120px,calc(100% - 32px));
	margin: auto;
}

.narrow {
	width: min(900px,calc(100% - 32px));
	margin: auto;
}

/* =================================================================== */
/* ヘッダー・ロゴ・ナビゲーション */
/* =================================================================== */

.header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid #ebf2f6;
}

.header__in {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
}

.brand__logo {
	height: 48px;
	width: auto;
}

.brand__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 700;
}

.brand__text small {
	font-size: 11px;
	color: var(--sub);
}

.nav {
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
}

.nav__cta, .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 18px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border: none;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(30,119,197,.18);
}

.btn--white {
	background: #fff;
	color: var(--text);
	border: 1px solid var(--line);
}

/* =================================================================== */
/* メインビジュアル・ヒーロー */
/* =================================================================== */

.hero {
	background: linear-gradient(180deg,#ecf8ff 0%,#f9fdff 100%);
	overflow: hidden;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 36px;
	align-items: center;
	padding: 54px 0 32px;
}

.eyebrow, .micro {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fff;
	color: var(--brand);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
}

.hero h1 {
	font-size: clamp(2rem,4vw,4rem);
	line-height: 1.1;
	margin: 16px 0;
}

.hero h1 em {
	font-style: normal;
	color: var(--brand);
}

.hero__lead, .section__desc, .casefeature__body p, .application__left p, .footer p {
	color: var(--sub);
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 24px 0;
}

.hero__sub {
	font-size: 14px;
	color: var(--sub);
}

.hero__stripe {
	height: 10px;
	background: linear-gradient(90deg,#8ad0ff,#dff5ff,#fff2bd,#cce9ff);
}

/* =================================================================== */
/* キャラクター・街並みのイラスト配置 */
/* =================================================================== */

.scene {
	position: relative;
/*    min-height: 420px;*/
	border-radius: 32px;
	background: linear-gradient(180deg,#cdefff 0%,#f4fbff 65%,#fff 100%);
	border: 1px solid #d7edf8;
	overflow: hidden;
/*	padding: 10px;*/
}

.scene img {
	width: 100%;
}

.scene__round {
	position: absolute;
	inset: 25px auto auto 25px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(255,255,255,.55);
}

.scene__sun {
	position: absolute;
	right: 38px;
	top: 32px;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #ffe59b;
}

.scene__skyline {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 100px;
	display: flex;
	align-items: flex-end;
	gap: 10px;
	opacity: .35;
}

.scene__skyline span {
	display: block;
	background: #9bc5df;
	border-radius: 10px 10px 0 0;
}

.scene__skyline span:nth-child(1) {
	height: 120px;
	width: 52px;
}

.scene__skyline span:nth-child(2) {
	height: 170px;
	width: 74px;
}

.scene__skyline span:nth-child(3) {
	height: 135px;
	width: 58px;
}

.scene__skyline span:nth-child(4) {
	height: 200px;
	width: 82px;
}

.scene__skyline span:nth-child(5) {
	height: 150px;
	width: 66px;
}

.scene__skyline span:nth-child(6) {
	height: 110px;
	width: 56px;
}

.scene__skyline span:nth-child(7) {
	height: 185px;
	width: 70px;
}

.scene__ground {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 108px;
	background: linear-gradient(180deg,#dff4c9,#bfe69d);
}

.scene__person {
	position: absolute;
	bottom: 30px;
	max-height: 260px;
	filter: drop-shadow(0 8px 18px rgba(0,0,0,.09));
}

.scene__person--panda {
	left: 8%;
	max-height: 215px;
}

.scene__person--uma {
	right: 10%;
	max-height: 220px;
}

.scene__person--tora {
	right: 30%;
	max-height: 220px;
}

.scene__person--usagi {
	left: 31%;
	max-height: 245px;
}

.scene__tiny {
	position: absolute;
	font-size: 12px;
	font-weight: 800;
	color: #5686ad;
	letter-spacing: .09em;
}

.scene__tiny--a {
	left: 35px;
	bottom: 28px;
}

.scene__tiny--b {
	right: 28px;
	top: 118px;
}

.hero__note {
	position: absolute;
	right: 16px;
	bottom: 10px;
	font-size: 12px;
	color: #5f8095;
}

/* =================================================================== */
/* イントロダクション */
/* =================================================================== */

.introbar {
	border-top: 1px solid #eef4f7;
	border-bottom: 1px solid #eef4f7;
	background: #fff;
}

.introbar__in {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: center;
	padding: 16px 0;
	flex-wrap: wrap;
}

.introbar__statement {
	font-weight: 800;
	font-size: 1.1rem;
}

.introbar__statement span {
	color: var(--brand);
}

.introbar__points {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.introbar__point {
	background: #f4fbff;
	border: 1px solid #deedf8;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 14px;
}

/* =================================================================== */
/* 各セクション共通 */
/* =================================================================== */

.section {
	padding: 64px 0;
}

.section--soft {
	background: #f8fcfe;
}

.section--cream {
	background: var(--cream);
}

.section__header {
	margin-bottom: 28px;
}

.section__header--center {
	text-align: center;
}

.section__header h2 {
	font-size: clamp(1.6rem,3vw,2.4rem);
	line-height: 1.2;
	margin: 12px 0;
}

/* =================================================================== */
/* 活用シーン・事例 */
/* =================================================================== */

.casefeature {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 28px;
	align-items: center;
	background: #fff;
	border: 1px solid #ebf2f7;
	border-radius: 24px;
	padding: 24px;
}

.casefeature__photo {
	position: relative;
}

.casefeature__photo img {
	border-radius: 18px;
}

.casefeature__label {
	position: absolute;
	left: 14px;
	top: 14px;
	background: rgba(28,53,80,.82);
	color: #fff;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
}

.casefeature__link {
	font-weight: 700;
}

/* =================================================================== */
/* カード・利用条件・申請の流れ */
/* =================================================================== */

.casegrid, .rulegrid, .stepgrid {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 18px;
	margin-top: 24px;
}

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

.casecard, .rulecard, .step, .legalbox__item, .application__form, .application__left {
	background: #fff;
	border: 1px solid #e8eff5;
	border-radius: 22px;
	padding: 20px;
}

.casecard__ico {
	font-size: 1.5rem;
}

.rulecard__top span {
	font-size: 11px;
	font-weight: 800;
	color: var(--brand);
}

.rulecard__top h3, .step h3, .casecard h3 {
	margin: .4rem 0;
}

.rulecard--ok {
	background: #f5fbff;
}

.rulecard--ask {
	background: #fffdf5;
}

.rulecard--ng {
	background: #fff7f4;
}

.rule__foot {
	margin-top: 18px;
	color: var(--sub);
}

.step {
	text-align: left;
	position: relative;
	padding-top: 56px;
}

.step__no {
	position: absolute;
	left: 20px;
	top: 18px;
	font-size: 1.5rem;
	font-weight: 900;
	color: #b0c8d8;
}

/* =================================================================== */
/* 帯状CTA・よくある質問 */
/* =================================================================== */

.band {
	background: linear-gradient(90deg,#1e77c5,#53b4ea);
	color: #fff;
}

.band__in {
	padding: 34px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.band .btn {
	background: #fff;
	color: #1e77c5;
}

.faq details {
	background: #fff;
	border: 1px solid #e8eff5;
	border-radius: 18px;
	padding: 18px 20px;
	margin-bottom: 12px;
}

.faq summary {
	font-weight: 700;
	cursor: pointer;
}

.faq__answer {
	padding-top: 12px;
	color: var(--sub);
}

/* =================================================================== */
/* 利用申請フォーム */
/* =================================================================== */

.application {
	display: grid;
	grid-template-columns: .86fr 1.14fr;
	gap: 22px;
}

.mini-check {
	padding: 8px 0;
	color: var(--sub);
}

.fgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.field--full {
	grid-column: 1/-1;
}

.field label, .field__title {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}

.field input, .field select, .field textarea {
	width: 100%;
	padding: 14px;
	border: 1px solid #dbe7f0;
	border-radius: 14px;
	font: inherit;
	background: #fff;
}

.field textarea {
	min-height: 140px;
	resize: vertical;
}

.field__help {
	font-size: 13px;
	color: var(--sub);
	margin-top: 8px;
}

.field__types, .field__radio, .formterms {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.choice {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 10px 12px;
	border-radius: 14px;
	background: #f9fcff;
	border: 1px solid #e0edf7;
}

.req {
	display: inline-block;
	margin-left: 8px;
	font-size: 11px;
	padding: 3px 6px;
	border-radius: 999px;
	background: #1e77c5;
	color: #fff;
	vertical-align: middle;
}

.opt {
	display: inline-block;
	margin-left: 8px;
	font-size: 11px;
	padding: 3px 6px;
	border-radius: 999px;
	background: #eef5fa;
	color: #507087;
	vertical-align: middle;
}

.formtitle h3 {
	margin-top: 0;
}

.formsubmit {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 18px;
}

.formsubmit__help, .formstatus {
	font-size: 14px;
	color: var(--sub);
}

.honeypot {
	position: absolute;
	left: -9999px;
}

/* =================================================================== */
/* 規約・案内リンク */
/* =================================================================== */

.legalbox {
	display: grid;
	gap: 14px;
}

.legalbox__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.legalbox__item small {
	display: block;
	color: var(--sub);
	margin-top: 4px;
}

/* =================================================================== */
/* フッター */
/* =================================================================== */

.footer {
	background: #16314b;
	color: #e3edf6;
	padding: 42px 0;
}

.footer__top {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
}

.footer__brand {
	font-size: 1.2rem;
	font-weight: 800;
}

.footer__brand small {
	font-size: .85rem;
	font-weight: 600;
	color: #a7c0d4;
}

.footer__links {
	display: grid;
	grid-template-columns: repeat(2,minmax(120px,1fr));
	gap: 8px 26px;
}

.footer__links a {
	color: #e3edf6;
}

.footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 26px;
	font-size: 13px;
	color: #b8cbda;
}

/* =================================================================== */
/* アクセシビリティ・プロモーション */
/* =================================================================== */

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 16px;
	z-index: 999;
	background: #fff;
	padding: 12px 14px;
	border-radius: 12px;
}

.promo-banner {
	background: #fff;
	border: 1px solid #e8eff5;
	border-radius: 24px;
	padding: 18px;
	box-shadow: 0 10px 32px rgba(50,98,132,.08);
}

.promo-banner img {
	border-radius: 18px;
}

.promo-banner figcaption {
	margin-top: 12px;
	color: var(--sub);
	font-size: 14px;
}

.tick {
	font-style: normal;
	margin-right: 4px;
	color: #2c9a3f;
}

/* =================================================================== */
/* レスポンシブ対応 */
/* =================================================================== */

@media (max-width:980px) {
	.hero__inner, .casefeature, .application {
		grid-template-columns: 1fr;
	}

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

	.casegrid, .rulegrid {
		grid-template-columns: 1fr;
	}
}

@media (max-width:720px) {
	.nav {
		display: none;
	}

	.fgrid, .footer__links {
		grid-template-columns: 1fr;
	}

	.stepgrid {
		grid-template-columns: 1fr;
	}

	.header__in {
		padding: 10px 0;
	}

	.brand__logo {
		height: 40px;
	}

	.section {
		padding: 48px 0;
	}

	.band__in, .introbar__in {
		align-items: flex-start;
	}

	.scene {
/*		min-height: 340px;*/
	}
}

/* === 申請送信状態の表示（受付API連携） === */

.formstatus[data-type="error"] {
	color: #b32632;
	font-weight: 700;
}

.formstatus[data-type="success"] {
	color: #176c40;
	font-weight: 700;
}

.formstatus[data-type="ready"] {
	color: #355f82;
}
