@charset "utf-8";
:root {
	--body-width: 480px;
	--header-height: 60px;
	--book-height: calc(100dvh - 140px);
	--color-black: #1A1A1A;
	--color-brand: #44B371;
	--color-orange: #E95D2A;
	--color-book: #FFA54B;
	--color-brown: #7D3D24;
	--color-page-change: #FFA400;
	--color-page-business: #F8D84D;
	--color-page-finance: #FFB4DA;
	--color-page-last: #99D4FF;
}

/* layout */
.hide-scrollbar::-webkit-scrollbar{
    display: none;
}
.hide-scrollbar{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.hidden {
	overflow: hidden;
	height: 100%;
}
body {
	max-width: var(--body-width);
	width: 100%;
	color: var(--color-black);
	margin: 0 auto;
	background: #FFF3E1;
}

.container {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 0 32px;
	margin: 0;
	overflow: hidden;
}

/* common */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.flex {
	display: flex;
}
.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}
.pb-120{padding-bottom: 120px;}
.mb-80{margin-bottom: 80px;}
.mb-60{margin-bottom: 60px;}
.mb-40{margin-bottom: 40px;}
.mb-36{margin-bottom: 36px;}
.mb-32{margin-bottom: 32px;}
.mb-30{margin-bottom: 30px;}
.mb-28{margin-bottom: 28px;}
.mb-20{margin-bottom: 20px;}
.mb-16{margin-bottom: 16px;}
.mb-14{margin-bottom: 14px;}
.mb-10{margin-bottom: 10px;}
.mb-8{margin-bottom: 8px;}
.mb-4{margin-bottom: 4px;}
.btn{
	display: block;
	width: 100%;
	max-width: 100%;
	height: 50px;
	font-size: 14px;
	font-weight: 600;
    line-height: 48px;
	color: #000;
	background: var(--color-book);
	border: 1px solid #000;
	border-radius: 60px;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25);
	text-align: center;
}
.btn.btn-brand{
	background: var(--color-brand);
}
.back-orange{
	background: var(--color-orange) !important;
}
.back-brand{
	background: var(--color-brand) !important;
}
.color-orange{
	color: var(--color-orange) !important;
}
.color-brand{
	color: var(--color-brand) !important;
}
.font-20{
	font-size: 20px;
}
.font-18{
	font-size: 18px;
}
.font-16{
	font-size: 16px;
}

/* header */
.site-header {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	max-width: var(--body-width);
	width: 100%;
	height: var(--header-height);
	padding: 12px 25px;
	background: var(--color-brand);
	z-index: 100;
}
body.isMainPage .site-header{
	background: transparent;
}
.site-header .logo-wrap{
	display: flex;
	align-items: center;
}
body.isMainPage .site-header .logo-wrap{
	display: none;
}
.site-header .site-title img{
	width: 30px;
    filter: brightness(0) saturate(100%) invert(100%);
}
.site-navigation button{
    display: flex;
    align-items: center;
    column-gap: 10px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
    margin-left: 40px;
}
.site-navigation.open button img{    
    transition: transform 0.3s;
}
.site-navigation.open button img{    
	transform: rotate(180deg);
}
.site-navigation .nav{
	display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--color-brand);
	border-top: 1px solid #fff;
	box-shadow: 0px 10px 10px 2px #20202033;
}
.site-navigation .nav li{
    font-size: 16px;
    color: #fff;
    padding: 6px 95px;
	border-bottom: 1px solid #fff;
}
.site-navigation .nav li.active{
	font-weight: 700;
}
.site-navigation .nav li a{
	display: block;
	padding: 5px 0;
}
.site-header .btn-audio-wrap{
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}
.site-header .btn-audio-text{
    width: 120px;
    height: 30px;
	font-size: 12px;
	font-weight: 400;
	color: #000;
	background: #fff;
	border-radius: 40px;
	border: 1px solid #000;
}
body:not(.isMainPage) .site-header .btn-audio-text{
	display: none;
}
.site-header .btn-audio-img{
	width: 36px;
	height: 36px;
	background: var(--color-orange);
	border-radius: 50%;
	border: 1px solid #000;
}
.site-header #btnBack img{
	width: 12px;
	margin: 0 5px;
}
body:not(.talk-entered) .site-header #btnBack{
	display: none;
}

/* main */
body.isMainPage{
	height: 400vh;
}
.section-main{    
    position: fixed;
    top: 0;
	left: 50%;
	transform: translateX(-50%);
    width: 100%;
	max-width: var(--body-width);
	height: 100%;
	background: var(--color-brand);
	z-index: 80;
    overflow: hidden;
	visibility: hidden;
	opacity: 0;
}
body.isMainPage .section-main{
	visibility: visible;
	opacity: 1;
}
.main-container{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-brand);
    overflow: hidden;	
}
#coverNote{
	position: absolute;
	top: 0;
	left: 0;
	width: 130px;
}
#coverCoffee{
	position: absolute;
	bottom: 12px;
	left: 0;
	width: 105px;
}
#coverPencil{
	position: absolute;
	bottom: 10px;
	right: 0;
	width: 135px;
}
#scrollDown, #scrollDownPc{
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 74px;
	height: auto;
}
#scrollDownPc{
	bottom: 44px;
	width: 110px;
}
.cover-container{
	position: absolute;
	top: calc(50% + 15px);
	left: 50%;
    transform: translate(-50%, -50%) scale(0.87);
	width: calc(var(--book-height) * 0.6017);
    max-width: calc(100% - 40px);
	height: var(--book-height);
	max-height: var(--book-height);
}
.cover-inner{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%) rotate(-9.6deg);
    transform-origin: top center;
    perspective: 1200px;
}
.cover-inner-back{
	display: none;
	position: absolute;
	top: 0;
    left: calc(-1 * calc(calc(100vw - 100%) / 2));
    width: 60px;
    height: 100%;
	background: rgb(217,217,217);
	background: linear-gradient(270deg, rgba(217,217,217,0) 0%, rgba(42,33,33,1) 100%);
	opacity: 0.7;
}
.cover-inner.opened .cover-inner-back{
	display: block;
}
.cover-image-wrap{
	position: relative;
    transform-origin: 1px center;
    transition: transform 0.5s ease-out;
    transform-style: preserve-3d;
}
.cover-image-wrap:before{
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background: var(--color-book);
	border: 1px solid #000;
}
.cover-image-wrap:after{
	content: '';
    position: absolute;
	top: 8px;
	left: 8px;
	width: calc(100% - 16px);
	height: calc(100% - 16px);
	background: #fff;
	border: 1px solid #000;
}
#coverImage{
    position: relative;
    z-index: 1;
	object-fit: contain;
	backface-visibility: hidden
}
#coverPage{
	position: absolute;
	top: 0;
	left: 1px;
	width: calc(100% - 2px);
	height: 100%;
	background: var(--color-book);
	border: 1px solid #000;
	transition: width 0.5s;
	z-index: -1;
}
#coverPage .page-inner{
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: calc(100% - 16px);
	height: calc(100% - 16px);
	padding: 27px 32px;
	background: #fff;
	border: 1px solid #000;
    text-align: center;
	overflow: hidden;
}
#coverPage .page-inner > div,
#coverPage .page-inner > button{
	transform: translateY(50px);
	opacity: 0;
}
#pageText1, #pageText2{
	margin-bottom: 30px;
}
#coverPage .page-inner .page-text-img{   
    /* max-height: calc(36.3636% - 35px); */
	margin-left: auto;
	margin-right: auto;
}
#coverPage .page-inner > div:nth-of-type(2) .page-text-img{
    /* max-height: calc(27.2727% - 24px); */
	margin-bottom: 0;
}   
#coverPage .page-inner > button{
    position: absolute;
    bottom: 17px;
    left: calc(50% - 66px);
}

/* talk */
.talk-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-height));
	margin-top: var(--header-height);
    background: #fff;
    overflow: hidden;
	opacity: 0;
	transition: all 0.5s;
}
.talk-container.entered{
	opacity: 1;
	z-index: 1;
}
.talk-inner{
    position: absolute;
    bottom: 0;
	left: 0;
    width: 100%;
    height: 100%;
}
.talk-container.show-btn .talk-inner{
	bottom: 120px;
}
.talk-container + .btn-wrap{
    position: fixed;
	bottom: -90px;
    left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 90px;
	max-width: var(--body-width);
	transition: bottom 0.5s;
	z-index: 1;
}
.talk-container:not(.entered) + .btn-wrap{
	display: none;
}
.talk-container.show-btn + .btn-wrap{
	bottom: 0;
}
.talk-container + .btn-wrap .btn{
    position: absolute;
    bottom: 40px;
    left: 16px;
    width: calc(100% - 32px);
}
.talk-info{
    width: 100%;
	margin-top: 24px;
	margin-bottom: 15px;
    text-align: center;
	opacity: 0;
}
.talk-info p{    
	display: inline-block;
	font-size: 12px;
	line-height: 1.6;
	font-weight: 500;
	color: #999999;
	padding: 4px 16px 3px 16px;
	background: #EDEDED;
	border-radius: 20px;
}
.bubble-wrap{
	/* display: none; */
    width: calc(100% - 115px);
    margin-left: 26px;
    margin-right: auto;
	margin-bottom: 20px;
	transform: translateY(50px);
	opacity: 0;
	transition: opacity 0.5s;
}
.bubble-wrap.me{
    margin-left: auto;
    margin-right: 26px;
}
.bubble-wrap.has-heart{
	margin-bottom: 46px;
}
.bubble-wrap.entered{
	/* display: block; */
	opacity: 1;
}
.bubble-wrap:after{
	content: '';
	position: absolute;
	bottom: 0;
    left: -10px;
    display: block;
    width: 23px;
    height: 9px;
	background: url(../images/cover/arrow-1.png) no-repeat center / cover;
}
.bubble-wrap.me:after{
	left: auto;
    right: -7px;
    display: block;
    width: 25px;
    height: 14px;
	background-image: url(../images/cover/arrow-2.png);
}
.bubble-wrap .bubble-title{
    display: flex;
	align-items: center;
    gap: 7px;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 500;
	color: #000;
	margin-bottom: 8px;
}
.bubble-title img{
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
.bubble-wrap .bubble{
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: #fff;
	background: #4E2C1F;
	border-radius: 14px;
    overflow: hidden;
}
.bubble-wrap.me .bubble{
	color: var(--color-black);
	background: #FFA54B;
}
.bubble-wrap .bubble p{
	position: relative;
	padding: 17px 22px;
}
.heart-wrap{
    position: absolute;
    bottom: -26px;
    left: 13px;
    display: flex;
	align-items: flex-end;
    font-size: 12px;
    font-weight: 500;
	line-height: 1.6;
    color: #999;
	opacity: 0;
	transition: opacity 0.5s;
}
.heart-wrap .heart-img-wrap{
	width: 40px;
    height: 40px;
}
.heart-wrap.clicked{
	opacity: 1;
}
.heart-wrap.clicked .heart-img-wrap{
	animation: heart-beat .5s alternate forwards;
	animation-delay: 0.5s;
}
@keyframes heart-beat {
	0% {
		transform: scale(1, 1);
	}
	50% {
	  	transform: scale(1.3, 1.3);
		filter: none;
	}
	100% {
		transform: scale(1, 1);
		filter: none;
	}
  }

/* page */
.section-page-wrap{
	background: #fff;
}
body.isMainPage .section-page-wrap{
    height: 0;
    overflow: hidden;
	visibility: hidden;
	opacity: 0;
}

/* media */
@media screen and (max-width: 1300px) {
	.hide-on-mo{
		display: none;
	}
	.main-pc{
		display: none;
	}
}
@media screen and (min-width: 1301px) {
	.hide-on-pc{
		display: none;
	}
	body:not(.beforeStart) .hide-on-mo{
		display: none;
	}
	.main-pc{
        width: 100vw;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        background: var(--color-brand);
        transition: opacity 2s;
        opacity: 1;
        z-index: 99;
	}
	body:not(.beforeStart) .main-pc{
		opacity: 0;
	}
	body:not(.beforeStart) .main-pc.hide{
		z-index: -1;
	}
	body.beforeStart, body.beforeStart .section-main{
		max-width: 100%;
	}
	body.beforeStart .site-header{
		max-width: 1032px;
	}
	body.beforeStart .site-header .btn-audio-wrap{
		margin-left: 0;
	}
	body.beforeStart .site-header .btn-audio-text{
		width: 160px;
		height: 40px;
		font-size: 16px;
		border: 1px solid #000;
		box-shadow: none;
	}
	body.beforeStart .site-header .btn-audio-img{
		width: 40px;
		height: 40px;
		border: 1px solid #000;
	}
	body.beforeStart .site-header .btn-audio-img img{
		width: 22px;
	}
	.main-container{
		transition: opacity 2s;
	}
	body.beforeStart .main-container{
		opacity: 0;
	}
	body:not(.beforeStart) .main-container{
		opacity: 1;
	}
	body.beforeStart .cover-container{
		left: calc(50% + 250px);
		width: calc(107vh* 0.6017);
		height: 107vh;
		max-height: 107vh;
		transform: translate(-50%, -50%) scale(1);
	}
	body:not(.beforeStart) .main-pc .cover-container{
		display: none;
	}
	body.beforeStart #coverNotePc{
		position: absolute;
		top: 52px;
		left: 0;
        width: 10.8%;
	}
	body.beforeStart #coverCoffeePc{
		position: absolute;
		bottom: 0;
		left: 0;
        width: 15%;
	}
	body.beforeStart #coverPencilPc{
		position: absolute;
		bottom: 0;
		right: 0;
        width: 15.4%;
	}
	body.beforeStart #mainTextPc{
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 1032px;
		max-width: 100%;;
		padding: 20px;
	}
	body.beforeStart #mainTextPc img{
		width: 447px;
	}
	body:not(.beforeStart) .cover-inner{
		transform: translate(-50%, -50%);
	}
	.cover-inner-back{
		left: calc(-1 * calc(calc(1300px - 100%) / 2));
	}
}