

/* modal window */

.Mw {
	font-size: 90%;
}

@media screen and (min-width: 768px) {
	.Mw {
		font-size: inherit;
	}
}

/* elements ------------------------------------------- */

.Mw address,
.Mw caption,
.Mw cite,
.Mw dfn,
.Mw em {
	font-style: italic;
}

.Mw h3,
.Mw h4,
.Mw h5,
.Mw h6 {
	font-size: inherit;
}

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

.Mw ul,
.Mw ol {
	padding-left: 1em;
	font-size: inherit;
}

.Mw li {
	margin-left: 0.25em;
	padding-left: 0.5em;
}

.Mw ol > li {
	list-style: decimal;
	font-size: inherit;
}

.Mw ul > li {
	margin-left: 15px;
	list-style: disc;
	font-size: inherit;
}

.Mw ul > li {
	margin-left: 3px;
	color: #333;
	list-style: disc;
}

.Mw ol li + li,
.Mw ul li + li {
	margin-top: 0.3em;
}

.Mw table {
	border-top: 1px solid #dfdfdf;
}

.Mw th,
.Mw td {
	padding: 0.5em;
	border-bottom: 1px solid #dfdfdf;
}

.Mw dl {
	font-size: inherit;
}

.Mw dl > dd + dt {
	margin-top: 0.75em;
}

.Mw dt {
	margin-bottom: 0;
}

.Mw dd {
	color: #666;
	padding-left: 1em;
}



/* ------------------------------------------- */


.Mw .modal-scroll-container__inner {
	padding-top: 0;
	padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.MwHeader {
	padding: 30px 0;
	box-sizing: border-box;
	text-align: center;
}

.MwHeader > * {
	margin-top: 15px;
	margin-bottom: 0;
	opacity: 0;
	transform: translateY(30px);
	transition: 0.2s cubic-bezier(.17,.84,.44,1) 0s;
}

.MwHeader > *:first-child {
	margin-top: 0;
}

.MwHeader > *:nth-child(1) { transition-delay: 0.20s; }
.MwHeader > *:nth-child(2) { transition-delay: 0.25s; }
.MwHeader > *:nth-child(3) { transition-delay: 0.30s; }
.MwHeader > *:nth-child(4) { transition-delay: 0.35s; }
.MwHeader > *:nth-child(5) { transition-delay: 0.40s; }

.-show .MwHeader > * {
	transition-duration: 0.6s;
	transform: translateY(0);
	opacity: 1;
}

.MwHeader__count {
	display: block;
	width: fit-content;
	height: fit-content;
	padding: 6px 6px;
	margin: auto;
	line-height: 1;
	font-size: 2.4rem;
	font-family: "Open sans", sans-serif;
	font-weight: bold;
	border-radius: 15px;
	color: var(--color-link);
}

.MwHeader__ttl {
	font-size: 2rem;
	font-weight: bold;
}

.MwHeader__copy {
	font-weight: bold;
	font-style: italic;
}

@media screen and (min-width: 768px) {
	.MwHeader {
		padding: 0;
	}
	
	.MwHeader__ttl {
		font-size: 2.0rem;
	}
	
	.MwHeader__count {
		font-size: 4.0rem;
	}
}

@media screen and (min-width: 1280px) {
	.MwHeader {
		
	}
	
	.MwHeader__ttl {
		font-size: 2.4rem;
	}
}

/* -------------------------------------------------------------------- */


.Mw__img {
	width: calc(100% + 60px);
	margin: 0;
	transform: translateX(-30px);
}

.Mw__img::before {
	position: absolute;
	inset: 0;
	display: block;
	content: "";
	width: 100%;
	height: 100%;
	background-color: #E6E0D8;
	transition: 0s linear 0.5s;
	z-index: 2;
}

.Mw__img::after {
	position: absolute;
	inset: 0;
	display: block;
	content: "";
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg, #6A645B87 0%, #6A645B00 50%);
	z-index: 1;
	mix-blend-mode: multiply;
}

.Mw__img img {
	border-radius: 0;
	filter: brightness(0.5);
	transition: 1s ease 0.25s;
	transition-property: filter;
}

.-show .Mw__img::before {
	transition: 1s cubic-bezier(.65,.05,.36,1) 0.5s;
	top: 100%;
	height: 0;
}

.-show .Mw__img img {
	filter: brightness(1);
}

@media screen and (min-width: 768px) {
	.Mw__img {
		width: calc(100% + 100px);
		transform: translateX(-50px);
	}
}

@media screen and (min-width: 1280px) {
	.Mw__img {
		width: calc(100% + 160px);
		transform: translateX(-80px);
	}
}


.Mw__img + .MwHeader {
	position: relative;
	background-color: #fff;
	transform: translateY(-40px);
	border-radius: 7px 7px 0 0;
	padding-top: 30px;
	--w: 20px;
}

.Mw__img + .MwHeader::before,
.Mw__img + .MwHeader::after {
	position: absolute;
	content: "";
	display: block;
	width: var(--w);
	height: var(--w);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	top: 20px;
}

.Mw__img + .MwHeader::before {
	left: calc(var(--w) * -1);
	background-image: var(--round-out-corner-RB);
}

.Mw__img + .MwHeader::after {
	right: calc(var(--w) * -1);
	background-image: var(--round-out-corner-LB);
}


/* -------------------------------------------------------------------- */


.MwBody {
	display: flex;
	flex-direction: column;
	gap: 40px;
	opacity: 0;
	transform: translateY(15px);
	transition: 0.3s cubic-bezier(.17,.84,.44,1) 0s;
}

.-show .MwBody {
	opacity: 1;
	transition-duration: 0.6s;
	transition-delay: 0.4s;
	transform: translateY(0);
}

/* -------------------------------------------------------------------- */


.MwComment {
	position: relative;
	margin: 0 auto;
}


.MwComment__img {
	position: relative;
	margin: 0 auto;
	text-align: center;
	transform: translateY(-15px);
}

.MwComment__img img {
	display: block;
	width: 100%;
	max-width: 80px;
	margin: 0 auto 10px;
	mask-image: url(../images/mask_profileimg.svg);
}


.MwComment__title {
	font-weight: bold;
	font-size: 1.2rem;
	line-height: 1.5;
}

.MwComment__title .ib {
	white-space: nowrap;
}


.MwComment__contents {
	position: relative;
	width: fit-content;
	min-width: 200px;
	margin: auto;
	padding: 15px;
	box-sizing: border-box;
	border-radius: 10px;
	border: 2px solid var(--color-link);
	color: var(--color-link);
	font-weight: bold;
}

.MwComment__contents::before {
	position: absolute;
	inset: auto calc(50% + -120px) -3px 50%;
	display: block;
	width: 24px;
	height: 2px;
	margin: auto;
	border-radius: 3px;
	background-color: var(--color-link);
	transform: rotate(-45deg);
	content: "";
}


.MwComment__body {
	
}


@media screen and (min-width: 768px) {
	
	.MwComment__contents {
		padding: 25px;
	}
	
	.MwComment__contents::before {
		background-color: var(--color-link);
		margin: auto;
	}
}


/* -------------------------------------------------------------------- */


.MwSection {
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

.MwSection > * {
	margin: 0;
}

.MwSection__ttl {
	font-weight: bold;
	font-size: 1.6rem;
}

.Mw__close {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin: 20px auto;
	padding: 10px 25px 10px 22px;
	box-sizing: border-box;
	color: #fff;
	background-color: var(--color-link);
	
	font-size: 1.2rem;
	font-weight: bold;
	text-transform: uppercase;
	white-space: nowrap;
	
	transform: none;
	box-shadow: none;
}


.Mw__close .icon {
	margin-right: 5px;
}

.Mw__close svg {
	width: 20px;
	height: 20px;
	stroke-width: 1.5;
}

@media screen and (min-width: 768px) {
	.Mw__close {
		margin-top: 40px;
	}
}

@media screen and (min-width: 1280px) {
	.Mw__close {
		margin-top: 60px;
	}
}


/* -------------------------------------------------------------------- */


.MwSection .flow {
	padding-left: 0;
}

.MwSection .flow li {
	list-style: none;
}

.MwSection .flow .ttl {
	margin-bottom: 0.5em;
	font-weight: bold;
}

.MwSection .flow .ttl ~ * {
	padding-left: 30px;
}