@charset "utf-8";

/*---------------------
		基本
----------------------*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --ranungreen: #A1DB8D;
	--ranunpink: #FFB5B4;
	--ranungreen2: #426c3c;
	--ranunbrown: #72624D;
	--ranuncream: #FFF8E0;
	--ranungray: #D2D9CE;
	--ranunred: #da736f;
	--ranunbordeaux: #821f20;
	--ranunblue: #cde8ff;
	--ranungrad-gb:  linear-gradient(135deg, var(--ranungreen), var(--ranunblue));

	/* ナビゲーションの幅など、レイアウトで使う数値をまとめておく */
	--nav-width-pc: 12rem;
	--nav-height-sp: 5.5rem;
	--breakpoint-pc: 48em; /* 768px相当 */
}
a {
	text-decoration: none;
}
html,body {
	background-color:white;
	font-family: 'kiwi maru',serif;
	font-weight: normal;
	font-size: 16px;
	line-height: 1.5em;
	color: #72624D;
    display: block;
    position: relative;
}
body{
	width: 100%;
    min-height: 100vh;
}
body.active{
	width: 100%;
	height: 100%;
	overflow: hidden;
}
body img{
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}
body a img:hover{
	opacity: 0.5;
	transition: .5s;
}
::selection{
	color: white;
	background-color: var(--ranungreen);
}
.clear{
	clear:both;
}
.fade{
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1.5s, transform 1s;
}
.fade.active{
	opacity: 1;
	transform: translateY(0px);
}

/*---------------------
	app-content
	（header + main をまとめたラッパー。
	  PC時にナビ分だけ左に余白を作るために使用）
----------------------*/
.app-content{
	width: 100%;
	min-height: 100vh;
	padding-bottom: var(--nav-height-sp); /* SPは下タブぶん余白を確保 */
}

/*---------------------
		header
----------------------*/
header{
    background-color: white;
	position: sticky;
	top: 0;
	z-index: 10;
}
.header-content{
    border-bottom: solid 2px var(--ranungreen);
    padding: 1em 0.5em;
    font-size: 1.4em;
	text-align: center;
}
/* ホームページのみにつく特別な形（左右のボーダー＋下側の角丸） */
.header-top{
    display: block;
    width: 40%;
    margin: 0 auto;
    text-align: center;
    border-left: solid 2px var(--ranungreen);
    border-right: solid 2px var(--ranungreen);
    border-radius: 0 0 1em 1em;
}

/*---------------------
	main
----------------------*/
.main-content{
	padding: 1.5em 1em;
}
/* まだ中身がないページ用の案内文 */
.now-printing{
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40vh;
	color: var(--ranungray);
	font-size: 1.1em;
	text-align: center;
	gap: 0.5em;
}
.now-printing i{
	font-size: 1.4em;
}

/*---------------------
		footer / navigation
	SP：画面下に固定されたタブメニュー
	PC：画面左に固定されたサイドメニュー
----------------------*/
.global-footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
	z-index: 20;
}
.footer-navmenu{
    background-color: white;
    border-top: solid 2px var(--ranungreen);
    padding: 0.5em;
}
.footer-navmenu ol{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.5em;
    justify-content: center;
}
.fooNavMenu-item{
    display: flex;
    flex: 1 1 calc(20% - 0.5em);
    justify-content: center;
}
.fooNavMenu-link{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2em;
	width: 100%;
	padding: 0.3em 0;
	border-radius: 0.6em;
	color: var(--ranunbrown);
	transition: background-color .3s, color .3s;
}
.fooNavMenu-icon{
	font-size: 1.3em;
	line-height: 1;
}
.fooNavMenu-text{
    font-size: 0.9em;
}
/* 現在開いているページ */
.fooNavMenu-item.is-current .fooNavMenu-link{
	color: var(--ranungreen2);
	background-color: #DAEFC6;
}
/* まだ使えないメニュー（家計簿・創作など） */
.fooNavMenu-item.is-disabled .fooNavMenu-link{
	color: var(--ranungray);
	cursor: not-allowed;
	pointer-events: none;
}

/* ---- PC（--breakpoint-pc 以上）でサイドメニューに切り替え ---- */
@media screen and (min-width: 48em){
	.app-content{
		padding-bottom: 0;
		padding-left: var(--nav-width-pc);
	}
	.global-footer{
		top: 0;
		left: 0;
		bottom: auto;
		width: var(--nav-width-pc);
		height: 100vh;
	}
	.footer-navmenu{
		height: 100%;
		border-top: none;
		border-right: solid 2px var(--ranungreen);
		padding: 1.5em 0.75em;
	}
	.footer-navmenu ol{
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0.5em;
		justify-content: flex-start;
	}
	.fooNavMenu-item{
		flex: none;
		width: 100%;
	}
	.fooNavMenu-link{
		flex-direction: row;
		justify-content: flex-start;
		gap: 0.75em;
		padding: 0.6em 0.75em;
	}
	.fooNavMenu-icon{
		font-size: 1.2em;
		width: 1.4em;
		text-align: center;
	}
	.fooNavMenu-text{
		font-size: 1em;
	}
}
