@charset "utf-8";

/*********************************
	Base
*********************************/
:root {
	--color-red: #B71C1A;
}

body {
	font-family: -apple-system, 'BlinkMacSystemFont', 'Hiragino Kaku Gothic ProN', 'メイリオ', Sans-Serif;
	font-size: clamp(28px, 3.70vw, 40px);
	font-weight: bold;
	line-height: 1.5;
	touch-action: manipulation;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
}

img {
	width: 100%;
	max-width: 100%;
	pointer-events: none;
}

/*********************************
	Common
*********************************/
/* view area */
.screen {
	background-image: url(../images/bg.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	width: 1080px;
	height: 810px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	max-width: 1080px;
	max-height: 810px;
	overflow: hidden;
}

/* color */
.text-red {
	color: var(--color-red);
}

.bg-red {
	background-color: var(--color-red);
}

/* font-size */
.fs-large {
	font-size: clamp(55px, 7.22vw, 78px);
}

.fs-larger {
	font-size: clamp(42px, 5.55vw, 60px);
}

.fs-normal {
	font-size: clamp(28px, 3.70vw, 40px);
}

.fs-smaller {
	font-size: clamp(20px, 2.59vw, 28px);
}

.fs-small {
	font-size: clamp(15px, 2.03vw, 22px);
}

/* anchor */
:is(a, button) img {
	transition: 0.3s;
}

:is(a, button):hover img {
	filter: brightness(1.2);
	/*transform: translateY(0.5rem);*/
}

/* button */
.btn {
	padding: 0;
	outline: none;
	border: none;
	z-index: 10;
}

.btn:focus {
	box-shadow: none;
}

.btn:disabled, .btn.disabled {
	pointer-events: none;
	opacity: 0.7;
	filter: grayscale(1);
}

.btn:disabled img {
	filter: none;
	transform: none;
}

/* guide */
.btn-guide {
	position: absolute;
	top: 1%;
	right: 1%;
	width: 25.27%;
	animation-name: btn-guide-show;
	animation-fill-mode:forwards;
	animation-duration:0.3s;
	animation-timing-function:ease;
	animation-delay: 1s;
	opacity: 0;
}

@keyframes btn-guide-show {
  0% {
    opacity: 0;
	/*transform: scale(0, 0);*/
  }

  60% {
	/*transform: scale(1.1, 1.1);*/
  }

  100% {
    opacity: 1;
	/*transform: scale(1, 1);*/
  }
}

/* total price */
.txt-total {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"price tax"
		"price unit";
	grid-column-gap: 0.1em;
	align-items: center;
	width: fit-content;
	line-height: 1.3;
	white-space: nowrap;
}

.txt-total span {
	grid-area: price;
}

.txt-total::before {
	content: "円";
	grid-area: unit;
	font-size: 42%;
	align-self: flex-start;
	margin-bottom: -15%;
}

.txt-total::after {
	content: "税込";
	grid-area: tax;
	font-size: 20%;
	align-self: flex-end;
}

/*********************************
	Index
*********************************/
:where(#index) .pic-title {
	width: 55.55%;
	position: absolute;
	top: 5%;
	left: 50%;
	transform: translateX(-50%);
}

:where(#index) .txt-welcome {
	position: absolute;
	top: 35%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	-webkit-text-stroke: 2px;
	text-stroke: 2px;
}

:where(#index) .btn-next {
	position: absolute;
	top: 53%;
	left: 50%;
	transform: translateX(-50%);
	width: 82.4%;
}

/*********************************
	Input
*********************************/
:where(#input) .txt-title {
	position: absolute;
	top: 7%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#input) .txt-title strong {
	font-size: 120%;
}

:where(#input) .box {
	position: absolute;
	top: 5%;
	left: 50%;
	transform: translateX(-50%);
	width: 94%;
	display: grid;
	grid-template-areas: "note note detail" "numbers input detail";
	grid-template-columns: 33.82% 26.76% 1fr;
	grid-template-rows: auto 1fr;
	grid-gap: 2.74%;
	align-items: flex-start;
}

:where(#input) .box>.row {
	--bs-gutter-x: 5%;
}

:where(#input) .card {
	border-radius: 0.5em;
	border: none;
}

:where(#input) .card-body {
	padding: 7%;
}

:where(#input) .txt-input {
	background-color: #fff;
	border-radius: 1rem;
	padding: 0.2em 1em 0em 0.1em;
	margin-bottom: clamp(14px, 1.85vw, 20px);
	font-size: clamp(39px, 5.09vw, 55px);
	min-height: 1.7em;
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-end;
	position: relative;
}

:where(#input) .txt-input::before {
	content: "円";
	font-size: clamp(20px, 2.59vw, 28px);
	position: absolute;
	top: 42%;
	right: 8%;
}

:where(#input) .pic-note {
	grid-area: note;
}

:where(#input) .numbers {
	grid-area: numbers;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	--gap: 4.8%;
	--gap: 16px;
	--gap: clamp(11px, 1.14vw, 16px);
	grid-gap: var(--gap);
}

:where(#input) .btn-number {
	--size: clamp(71px, 9.26vw, 100px);
	width: var(--size);
	height: var(--size);
	font-weight: bold;
	background-color: #fff;
	border-radius: 100vh;
	padding-top: 0.1em;
}

:where(#input) .btn-reset {
	width: calc(2 * var(--size) + var(--gap));
	height: calc(0.7 * var(--size));
}

:where(#input) .input {
	grid-area: input;
}

:where(#input) .detail {
	grid-area: detail;
	height: 85%;
	max-height: 61vh;
}

:where(#input) .detail .card {
	height: 100%;
}

:where(#input) .detail .card-body {
	display: grid;
	grid-template-rows: 1fr auto auto;
	height: 100%;
}

:where(#input) .items {
	overflow-y: scroll;
	background-color: #F5F5F5;
	border-radius: 0.3em;
	display: flex;
	flex-direction: column;
	padding-left: 0;
	margin-bottom: 1rem;
	padding: 0.5rem 1rem;
	height: 95%;
}

:where(#input) .item {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 1.5em;
	font-size: 98%;
}

:where(#input) .item .btn {
	width: clamp(22px, 2.96vw, 32px);
}

:where(#input) .item small {
	font-size: 70%;
}

:where(#input) .txt-total {
	grid-template-areas: "price unit";
	line-height: 1;
}

:where(#input) .txt-total::before {
	align-self: flex-end;
	transform: translateY(-28%);
	font-size: 60%;
}

:where(#input) .txt-total::after {
	display: none;
}

:where(#input) .btn-prev {
	position: absolute;
	bottom: 1%;
	left: 2%;
	width: 39.81%;
}

:where(#input) .btn-next {
	position: absolute;
	bottom: 1%;
	right: 1%;
	width: 54.63%;
}

/*********************************
	Hangaku
*********************************/
:where(#hangaku) .box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 94%;
	transition: 0.5s;
}

:where(#hangaku) .box>.row {
	--bs-gutter-x: 2%;
}

:where(#hangaku) .card {
	border-radius: 0.5em;
	border: none;
}

:where(#hangaku) .card-body {
	padding: 5% 9%;
}

:where(#hangaku) .card-before {
	height: 73%;
	transform: translateY(3%);
}

:where(#hangaku).open .card-before {
	height: 100%;
	transform: none;
}

:where(#hangaku) .btn-prev {
	position: absolute;
	bottom: 3%;
	left: 0%;
	width: 39.81%;
}

:where(#hangaku) .btn-next {
	position: absolute;
	top: 48%;
	left: 0%;
	width: 54.63%;
}

/* hangaku area */
:where(#hangaku).open .box {
	top: 14%;
}

:where(#hangaku).open .btn-half {
	pointer-events: none;
	animation: none;
	opacity: 1;
}

:where(#hangaku) .collapse {
	position: absolute;
	/* top: 26%; */
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 94%;
	height: 74%;
	transition: 1.0s;
	opacity: 1;
	display: block !important;
}

:where(#hangaku) .collapse.show {
	top: 26%;
	opacity: 1;
}

:where(#hangaku) .card-after .txt-total {
	font-size: 280%;
	line-height: 1;
	transform: translateY(5%);
}

:where(#hangaku) .pic-smile {
	position: absolute;
	bottom: 0;
	right: -5%;
	width: 57.59%;
	z-index: 1;
}

/*********************************
	Payment method
*********************************/
:where(#method) .txt-title {
	position: absolute;
	top: 7%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#method) .txt-title strong {
	font-size: 120%;
}

:where(#method) .txt-total {
	position: absolute;
	top: 13%;
	left: 50%;
	transform: translateX(-50%);
	font-size: 300%;
}

:where(#method) .txt-lead {
	position: absolute;
	top: 34%;
	top: 31%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#method) .box {
	position: absolute;
	top: 45%;
	top: 40%;
	left: 50%;
	transform: translateX(-50%);
	width: 94%;
}

:where(#method) .box>.row {
	--bs-gutter-x: 3%;
}

:where(#method) .card {
	border-radius: 0.5em;
	border: none;
	text-decoration: none;
	color: inherit;
	transition: 0.3s;
}

:where(#method) .card:hover {
	color: inherit;
	filter: brightness(1.2);
	/*transform: translateY(0.5rem);*/
}

:where(#method) .card:hover img {
	filter: none;
	transform: none;
}

:where(#method) .card-body {
	padding: 8% 4% 5%;
	text-align: center;
}

:where(#method) .card-img {
	width: auto;
	/* max-width: 80%; */
	margin: 0 auto 3%;
	height: clamp(142px, 18.51vw, 200px);
}

:where(#method) .card-title {
	margin-bottom: 0.1em;
}

:where(#method) .card-note {
	width: 80%;
	padding: 0.1em 1em;
	margin: auto;
}

:where(#method) .btn-prev {
	position: absolute;
	bottom: 2%;
	left: 2%;
	width: 39.81%;
}

/*********************************
	PayPay
*********************************/
:where(#paypay) .txt-title {
	position: absolute;
	top: 7%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#paypay) .txt-title strong {
	font-size: 120%;
	font-weight: bold;
}

:where(#paypay) .box {
	position: absolute;
	top: 23%;
	left: 50%;
	transform: translateX(-50%);
	width: 94%;
}

:where(#paypay) .box>.row {
	--bs-gutter-x: 5%;
}

:where(#paypay) .card {
	border-radius: 0.5em;
	border: none;
}

:where(#paypay) .card-body {
	padding: 5%;
}

:where(#paypay) .qr {
	width: clamp(213px, 27.77vw, 300px);
	height: auto;
	display: block;
	margin: auto;
}

:where(#paypay) .txt-note {
	position: absolute;
	top: 73%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#paypay) .btn-prev {
	position: absolute;
	bottom: 2%;
	left: 2%;
	width: 39.81%;
}

:where(#paypay) .btn-next {
	position: absolute;
	bottom: 1%;
	right: 1%;
	width: 56.48%;
}

/*********************************
	Cash
*********************************/
:where(#cash) .txt-title {
	position: absolute;
	top: 7%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#cash) .txt-title strong {
	font-size: 120%;
}

:where(#cash) .txt-lead {
	position: absolute;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.1em 1em;
	white-space: nowrap;
}

:where(#cash) .box {
	position: absolute;
	top: 29%;
	left: 50%;
	transform: translateX(-50%);
	width: 94%;
}

:where(#cash) .box>.row {
	--bs-gutter-x: 4%;
}

:where(#cash) .card {
	border-radius: 0.5em;
	border: none;
}

:where(#cash) .card-body {
	padding: 5%;
}

:where(#cash) .pic-cash {
	width: auto;
	/* height: 100%; */
	margin: auto;
}

:where(#cash) .txt-note {
	position: absolute;
	top: 73%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#cash) .btn-prev {
	position: absolute;
	bottom: 2%;
	left: 2%;
	width: 39.81%;
}

:where(#cash) .btn-next {
	position: absolute;
	bottom: 1%;
	right: 1%;
	width: 56.48%;
}

/*********************************
	Ticket
*********************************/
:where(#ticket) .txt-title {
	position: absolute;
	top: 7%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#ticket) .txt-title strong {
	font-size: 120%;
}

:where(#ticket) .txt-lead {
	position: absolute;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.1em 1em;
	white-space: nowrap;
}

:where(#ticket) .box {
	position: absolute;
	top: 29%;
	left: 50%;
	transform: translateX(-50%);
	width: 94%;
}

:where(#ticket) .box>.row {
	--bs-gutter-x: 5%;
}

:where(#ticket) .card {
	border-radius: 0.5em;
	border: none;
}

:where(#ticket) .card-body {
	padding: 5%;
}

:where(#ticket) .pic-ticket {
	width: 21%;
	position: absolute;
	top: -32%;
	right: 10%;
}

:where(#ticket) .txt-note {
	position: absolute;
	top: 73%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#ticket) .btn-prev {
	position: absolute;
	bottom: 2%;
	left: 2%;
	width: 39.81%;
}

:where(#ticket) .btn-next {
	position: absolute;
	bottom: 1%;
	right: 1%;
	width: 56.48%;
}

:where(#ticket) .txt-detail {
	height: 100%;
	padding-right: 1em;
	text-align: right;
	line-height: 1.4;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: auto;
}

:where(#ticket) .txt-detail i {
	font-size: 80%;
}

/*********************************
	Complete
*********************************/
:where(#complete) .pic-thanks {
	width: 27.77%;
	position: absolute;
	top: 5%;
	left: 50%;
	transform: translateX(-50%);
}

:where(#complete) .txt-thanks {
	position: absolute;
	top: 41%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	line-height: 1.2;
}

:where(#complete) .txt-note {
	position: absolute;
	top: 88%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

:where(#complete) .btn-next {
	position: absolute;
	top: 69%;
	left: 50%;
	transform: translateX(-50%);
	width: 49.07%;
}