/* -----------------------
root
----------------------- */
:root {
    --color-primary: #F18B04;
    --color-accent: #0081C8;
    --color-red: #EA5548;
    --color-green: #00AB8D;
	--color-brown: #8A6E4D;
	--color-paleyellow: #FFF1B3;
    --color-bg: #ffffff;
    --color-text: #333333;

    --font-base: 'Noto Sans JP', sans-serif;
	--font-accent: 'M PLUS 1 Code', monospace;

    --radius: 20px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
	--cards-shadow: 2px 2px 0 0 rgba(204, 147, 62, 0.70);
}

body {
	font-family: var(--font-base);
}

/* -----------------------
inner
----------------------- */
.header-inner,
.hero-inner,
.intro-inner,
.how-to-inner,
.rules-inner,
.movie-inner,
.download-inner,
.product-inner,
.purchase-inner,
.recommend-inner,
.footer-inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 16px;
	position: relative;
}
.product-inner {
	display: flex;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
	z-index: 1000;
}


/* -----------------------
section 共通
----------------------- */
section {
	width: 100%;
}
.bg {
	aspect-ratio: 1200 / 200;
	background:
		url('/kotobarie/img/bg.webp') center -40px / 100% auto repeat,
		var(--color-primary);
}
.bg-bottom {
	width: 100%;
	position: relative;
	z-index: -20;
}
.bg-bottom::after {
	content: "";
	position: absolute;
	z-index: -10;
	bottom: -17vw;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	aspect-ratio: 1200 / 400;
	background:
		url('/kotobarie/img/bg-bottom.webp') bottom center / 100% auto no-repeat;
}
.bg-bottom-reverse {
	width: 100%;
	position: relative;
}

.bg-bottom-reverse::before {
	content: "";
    position: absolute;
    top: -8vh;
    left: 50%;
    transform: translateX(-50%) scaleX(-1) scaleY(-1);
    width: 100%;
    z-index: -1;
    aspect-ratio: 700 / 600;
    background: url(/kotobarie/img/bg-bottom.webp) bottom center / 100% auto no-repeat;
}

.bg-white {
	width: 100%;
	position: relative;
}

.bg-white::before {
	content: "";
	position: absolute;
	top: clamp(-10vw, -6vw, -30px);
	left: 0;
	width: 100%;
	aspect-ratio: 1400 / 120;
	z-index: -1;
	/* background: url(/kotobarie/img/bg-white.png) no-repeat top center / cover; movieなし*/
}
.bg-white-reverse {
	width: 100%;
	position: relative;
}

.bg-white-reverse::after {
	content: "";
    position: absolute;
    bottom: clamp(-20vw, -6vw, -30px);
    left: 50%;
    transform: translateX(-50%) scaleX(-1) scaleY(-1);
    width: 100%;
    z-index: 100;
    aspect-ratio: 1400 / 120;
    background: url(/kotobarie/img/bg-white.png) bottom center / 100% auto no-repeat;
}
.bg-bottom-reverse::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(-1) scaleY(-1);
    width: 100%;
    z-index: -20;
    aspect-ratio: 700 / 600;

    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;

    -webkit-mask-position: bottom;
    mask-position: bottom;

    -webkit-mask-size: contain;
    mask-size: contain;
}

.sp-only {
	display: block;
}


@media screen and (min-width: 768px) {
	.bg-bottom::after {
		bottom: -9vw;
	}
	.bg-bottom-reverse::before {
		top: -15vh;
	}
	.sp-only {
		display: none;
	}
}

/* -----------------------
hero
----------------------- */
.hero {
	padding: 0;
	position: relative;
}
.hero::before {
	content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: -1;
    aspect-ratio: 800 / 60;
    background: url(/kotobarie/img/bg-header.png) top center / cover no-repeat;
}

.hero-inner {
	padding: 24px 0;
	position: relative;
	display: flex;
	justify-content: center;
}

.hero-title {
	font-size: 22px;
	font-weight: 700;
	line-height: normal;
	text-align: inherit;
	color: #fff;
	margin-bottom: 16px;
}
.hero-cards {
	display: none;
}

@media (min-width: 768px) {
	.hero {
		padding: 0 0 64px;
	}
	.hero::before {
		aspect-ratio: 1200 / 60;
	}
	.hero-image {
		max-width: 398px;
	}
	.hero-cards {
		display: block;
		top: 40px;
		left: 0;
	}
	.hero-cards img {
		width: clamp(40px, 8vw, 80px);
		aspect-ratio: 17/26;
		box-shadow: var(--cards-shadow);
		border-radius: 5%;
	}
	.hero-card01 {
		transform: rotate(8.675deg);
		top: 40px;
		left: 2%;
		position: absolute;
	}
	.hero-card02 {
		transform: rotate(-10deg);
		left: 15%;
		top: 30%;
		position: absolute;
	}
	.hero-card03 {
		transform: rotate(-10deg);
		left: 10px;
		bottom: 30%;
		position: absolute;
	}
	.hero-card04 {
		transform: rotate(21.754deg);
		left: 12%;
		bottom: 7%;
		position: absolute;
	}
	.hero-card05 {
		transform: rotate(-6deg);
		top: 40px;
		right: 28px;
		position: absolute;
	}
	.hero-card06 {
		transform: rotate(-1deg);
		right: 12%;
		top: 33%;
		position: absolute;
	}
	.hero-card07 {
		transform: rotate(15deg);
		right: 10px;
		bottom: 28%;
		position: absolute;
	}
	.hero-card08 {
		transform: rotate(13deg);
		right: 15%;
		bottom: 7%;
		position: absolute;
	}

}


/* -----------------------
card共通
----------------------- */

.intro-inner,
.how-to-inner,
.movie-inner,
.download-inner {
	width: 92%;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: flex;
	padding: 32px 16px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

@media (min-width: 768px) {
	.hero-inner,
	.intro-inner,
	.how-to-inner,
	.movie-inner,
	.download-inner,
	.product-inner {
		width: 100%;
		padding: 56px 24px;
	}
}


/* -----------------------
title
----------------------- */
.section-title {
	width: 100%;
	max-width: 670px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 24px;
    padding: 8px 0;
    background: url(/kotobarie/img/bg-yellow.png) top center / cover no-repeat;
    font-size: 23px;
    font-family: var(--font-accent);
    font-weight: 700;
    text-align: center;
    color: #fff;
    border-radius: 999px;
}

.section-title-icon {
    width: 34px;
    height: 30px;
}

.section-title-text {
    line-height: 1;
}
.how-to .section-title {
    background-color: var(--color-red);
}
.rules .section-title {
    background-color: var(--color-accent);
}
.movie .section-title {
    background-color: var(--color-green);
}
.product .section-title {
	background-color: var(--color-primary);
}

/* -----------------------
cards
----------------------- */
.cards {
	position: absolute;
}
.cards img {
	width: 100%;
	height: auto;
	box-shadow: var(--cards-shadow);
	border-radius: 5%;
}
@media (min-width: 768px) {
	.cards {
		display: none;
	}
}

/* -----------------------
intro
----------------------- */
.intro-title {
	color: var(--color-brown);
	text-align: center;
	font-family: "M PLUS 1 Code";
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 32px;
	margin-bottom: 24px;
}
.intro-red { color: var(--color-red); }
.intro-blue { color: var(--color-accent); }
.intro-green { color: var(--color-green); }
.intro-small {
	font-size: 18px;
	margin-top: 16px;
}

.intro-image {
	width: 100%;
	max-width: 450px;
	border-radius: 20px;
	padding: 16px;
	background: var(--color-paleyellow, #FFF1B3);
	position: relative;
}
.intro-image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}
.intro-curio {
	display: none;
}
@media (min-width: 768px) {
	.hero-image {
		max-width: 398px;
	}
	img.intro-curio {
		width: 87px;
		aspect-ratio: 87/106;
		display: block;
		position: absolute;
		bottom: 0;
		left: -10%;
	}
}

/* -----------------------
intro-cards
----------------------- */
.cards.intro-card01,
.cards.intro-card02,
.cards.intro-card03,
.cards.intro-card04,
.cards.intro-card05 {
	width: 35px;
	height: 53px;
	aspect-ratio: 35/53;
}

.intro-card01 {
	transform: rotate(8.675deg);
	right: 22px;
	top: -11.96px;
}
.intro-card02 {
	transform: rotate(21.754deg);
	right: -8px;
	top: 0;
}
.intro-card03 {
	transform: rotate(-11.183deg);
	left: 6px;
	bottom: -11.09px;
}
.cards.intro-card04,
.cards.intro-card05 {
	display: none;
}
@media (min-width: 768px) {
	.cards.intro-card04,
	.cards.intro-card05 {
		display: block;
		width: clamp(40px, 8vw, 80px);
		aspect-ratio: 17/26;
	}
	.intro-card04 {
		transform: rotate(-11.183deg);
		left: 7%;
		top: 10%;
		display: block;
	}
	.intro-card05 {
		transform: rotate(17deg);
		right: 8%;
        top: 46%;
		display: block;
	}
}

/* -----------------------
how-to
----------------------- */
.how-to {
	background: url('/kotobarie/img/bg-howto.webp') top center / cover repeat;
	position: relative;
	z-index: -30;
	padding: 30vw 0;
}
.step-list {
	max-width: 840px;
	display: grid;
	gap: 16px;
}
@media (min-width: 768px) {
	.how-to {
		padding: 220px 0;
	}
}

/* -----------------------
how-to-cards
----------------------- */
.cards.how-to-card01,
.cards.how-to-card02 {
	width: 35px;
	aspect-ratio: 35/53;
}

.how-to-card01 {
	transform: rotate(8.675deg);
	right: 22px;
	top: -11.96px;
}
.how-to-card02 {
	transform: rotate(21.754deg);
	right: -8px;
	top: 0;
}
@media (min-width: 768px) {
	.cards.how-to-card01,
	.cards.how-to-card02 {
		display: block;
		width: 58px;
	}
}

/* -----------------------
rules
----------------------- */
.rules {
	overflow: visible;
	z-index: 10;
	padding: 20px 0;
}
.rules-list {
	display: flex;
	width: 100%;
	padding: 18px 16px 8px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	background: var(--color-paleyellow, #FFF1B3);
	border: none;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.rules-item {
	width: 100%;
	display: flex;
	padding-bottom: 12px;
	align-items: center;
	gap: 10px;
	color: var(--color-brown, #8A6E4D);
	font-family: var(--font-accent);
	font-size: 18px;
	font-weight: 700;
	border-bottom: 2px dashed var(--color-brown, #8A6E4D);
}

.rules-item:last-child {
	border-bottom: none;
}

.rules-item::before {
	content: "";
	width: 30px;
	height: 30px;
	background: url('/kotobarie/img/icon-check.png') center / contain no-repeat;
	flex-shrink: 0;
}
.rules-arrow {
	width: 280px;
    height: auto;
    transform: translateX(2%);
    margin: 32px auto 0;
}

/* -----------------------
rules-cards
----------------------- */
.rules-cards {
	position: relative;
	display: flex;
    justify-content: space-between;
	flex-direction: column;
	align-items: center;
}
.cards.rules-card01,
.cards.rules-card02 {
	width: 35px;
	height: 53px;
	aspect-ratio: 35/53;
}

.rules-card01 {
	transform: rotate(8.675deg);
	right: 22px;
	top: -11.96px;
}
.rules-card02 {
	transform: rotate(21.754deg);
	right: -8px;
	top: 0;
}
@media (min-width: 900px) {
	.rules {
		padding: 0 0 80px;
	}
	.rules-cards {
		flex-direction: row;
	}
	.rules-list {
		width: auto;
		padding: 32px 56px;
		margin-top: 50px;
	}
	.cards.rules-card01,
	.cards.rules-card02 {
		display: block;
		width: 58px;
	}
	.rules-card01 {
		transform: rotate(-23deg);
		left: -5%;
		top: 0;
	}
	.rules-card02 {
		transform: rotate(-10deg);
		left: 1%;
        top: -5%;
	}
	.rules-arrow {
		width: clamp(200px, 60vw, 400px);
		margin: 32px 0 0 32px;
	}
}

/* -----------------------
movie
----------------------- */
.movie {
	background: url(/kotobarie/img/bg-movie.webp) top center / cover repeat;
	position: relative;
	padding: 20vh 0;
}
.youtube {
	width: 100%;
	max-width: 600px;
	aspect-ratio: 16 / 9;
	margin-bottom: 24px;
}

.youtube iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
@media (min-width: 768px) {
	.movie {
		display: block;
		padding: 220px 0;
	}
}

/* -----------------------
movie-cards
----------------------- */
.cards.movie-card01,
.cards.movie-card02 {
	width: 35px;
	height: 53px;
	aspect-ratio: 35/53;
}

.movie-card01 {
	transform: rotate(8.675deg);
	right: 22px;
	top: -11.96px;
}
.movie-card02 {
	transform: rotate(21.754deg);
	right: -8px;
	top: 0;
}
@media (min-width: 768px) {
	.cards.movie-card01,
	.cards.movie-card02 {
		width: 58px;
		display: block;
	}
}

/* -----------------------
download
----------------------- */
.download-box {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}
.download-link {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	color: #fff;
	font-family: var(--font-accent);
	font-weight: 700;
	font-size: 19px;
	background: var(--color-red);
	border-radius: var(--radius);
	text-decoration: none;
	transition: 0.3s;
	box-shadow: 0 6px 0 0 #914741;
}

.download-link:hover {
	opacity: 0.8;
}

@media (min-width: 768px) {
	.download-link {
		padding: 24px;
	}
}

/* -----------------------
product
----------------------- */
.product {
	position: relative;
	z-index: 10;
	padding: 40px 0 60px;
	padding: 120px 0 60px; /* movieなし */
}
.product-bg {
	position: relative;
	overflow: hidden;
}
.product-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: -15%;
	z-index: -100;
	width: 240px;
	aspect-ratio: 480 / 418;
	background: url(/kotobarie/img/bg-shape.png) no-repeat;
	background-size: contain;
}
.product-bg::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: -100px;
	z-index: -100;
	width: 240px;
	aspect-ratio: 480 / 418;
	background: url(/kotobarie/img/bg-shape.png) no-repeat;
	background-size: contain;
}

.product-box {
	width: 100%;
	max-width: 460px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
}
.product-info {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
	align-self: stretch;
}
.product-image {
    flex: 0 0 35%;
}
.product-image img {
    width: 100%;
	max-width: 180px;
    height: auto;
    display: block;
	aspect-ratio: 35/47;
}
.product-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.product-text h3,
.product-contents dt {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-brown);
	font-family: var(--font-accent);
	font-weight: 700;
}

.product-list {
    flex: 1;
}

.product-contents {
	display: flex;
    width: 100%;
    padding: 16px;
    background: var(--color-paleyellow, #FFF1B3);
    border-radius: var(--radius);
    flex-direction: column;
	overflow: hidden;
}
.product-contents dt {
	text-align: center;
}

@media (min-width: 768px) {
	.product-bg::before {
		width: 480px;
		left: -10%;
	}
	.product-bg::after {
		width: 400px;
		right: -15%;
	}
}

/* -----------------------
purchase（波付き）
----------------------- */
.purchase {
	padding: 80px 0 40px;
	background:
		url('/kotobarie/img/bg-footer.webp') top center / cover repeat,
		linear-gradient(180deg, #3aa0e6, #6cc0e5);
	aspect-ratio: 1400 / 550;
	font-family: var(--font-accent);
}
.purchase .section-title {
	color: #fff;
	font-size: 24px;
}
.purchase-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.purchase-header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.purchase-icon {
    width: 40px;
	margin: 0 0 8px -16px;
}

.purchase-text {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

/* Buttons */
.purchase-buttons {
	max-width: 470px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto 40px;
}

.cta-button {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 18px 48px 18px 18px; /* 右に余白を確保 */
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #333;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 6px 0 rgba(0,0,0,0.2);
}
.cta-button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url(/kotobarie/img/icon-arrow.svg) no-repeat center / contain;
}

.purchase-button-amazon {
    background: #f2a74b;
	box-shadow: 0 6px 0 0 #A07129;
}

.purchase-button-rakuten {
    background: #f56c6c;
	box-shadow: 0 6px 0 0 #BC4147;
}

.purchase-img {
	width: 280px;
    height: auto;
    margin: 32px auto 0;
}

/* PC */
@media (min-width: 768px) {
    .purchase {
        padding: 120px 20px 80px;
		aspect-ratio: 1400 / 200;
    }

    .purchase-text {
        font-size: 28px;
    }

    .purchase-buttons {
        justify-content: center;
    }

    .purchase-button {
        width: 320px;
        font-size: 18px;
    }

    .purchase-image img {
        display: none;
    }
}

/* -----------------------
recommend
----------------------- */
.recommend {
	background: #f7f3e8;
	padding: 60px 0;
}


/* -----------------------
footer
----------------------- */
.footer {
	padding: 20px 0;
	text-align: center;
}

.footer small {
	font-size: 12px;
}

/* -----------------------
top button
----------------------- */
.to-top {
	position: fixed;
	z-index: 10000;
	right: 16px;
	bottom: 16px;
	width: 88px;
	opacity: 0;
	transition: 0.3s;
	cursor: pointer;
	aspect-ratio: 154 / 159;
}
.to-top img {
	width: 100%;
	height: auto;
}

.to-top.is-show {
	opacity: 1;
}

/* -----------------------
responsive
----------------------- */
@media screen and (min-width: 768px) {

	.nav-list {
		display: flex;
		gap: 24px;
		position: static;
	}

	.header-toggle {
		display: none;
	}

	.hero-title {
		font-size: 28px;
	}

	.section-title {
		font-size: 22px;
	}

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

}