@charset "UTF-8";
html {
    height: -webkit-fill-available;
}

body {
	font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 500;
    font-style: normal;
}

::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar-track {
    display: none;
}

.scrollbar::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-thumb {
    display: none;
}
::selection {
	background-color: transparent;
}
ruby {
    ruby-position: over;
}
ruby > rt {
    text-indent: 0;
    text-emphasis: none;
    display: ruby-text;
    font-size: 50%;
    text-align: start;
    margin: 0;
    padding: 0;
    translate: 0 0.5em;
}
@supports (-webkit-touch-callout: none) {
  ruby {
	  line-height: 1;
  }
  ruby > rt {
    transform: translateY(0em);
  }
}
.hidden {
    display: none !important;
}
.appear {
    display: block !important;
}
.inactive {
    display: none !important;
}
#header-menu ,
#gnav {
    position: fixed;
    margin:0 auto;
    padding:0;
    max-width:767px;
    min-width:360px;
    left:0;
    right:0;
}
/** ヘッダー **/
#header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px;
    padding: 0 12px;
    background-color: #57accb;
    height:60px;
    z-index:11;
    top:0;
}
#header-menu .logo {
    margin:0;
    padding:0;
    width:40%;
    max-width:168px;
    /* min-width:100px; */
}
/** ヘッダーボタン **/
#header-menu .menu {
    margin-left: auto;
    height: 100%;
    display: flex;
    align-items: center;
}
#header-menu .menu > a {
    display: flex;
    gap: 0.8em;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #57accb;
    font-size: min(4.5dvw,20px);
    height: 35px;
    padding: 0 1em;
    border-radius: 3em;
    font-weight: bold;
    line-height: 1;
}

#header-menu .menu .save {
    background: #ff91a4;
    color: #fff;
    border: 2px solid;
}

/** ヘッダーヘルプ **/
#header-menu .help {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header-menu #header-menu-help {
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#help-menu .dialog-inner {
    background: transparent;
}

.qa-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.qa-list li {
    background: #fff;
    border-radius: 12px;
}
.qa-list h3 {
    margin: 0;
}

.qa-summary {
    margin: 0;
}

.qa-trigger {
    all: unset;
    width: 100%;
    display: flex;
    align-items: center;
    gap: .6em;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
}

.qa-trigger .fa-chevron-circle-down {
    margin-left: auto;
    transition: .3s .2s;
    transform: rotate(0);
	opacity: .2;
}

.qa-trigger.open .fa-chevron-circle-down {
    transform: rotate(180deg);
}

.qa-icon {
    inline-size: 1.6em;
    block-size: 1.6em;
    background: #57accb;
    border-radius: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-q {
    font-size: 18px;
    font-weight: bold;
    color: #0086d1;
}

.qa-qmark, .qa-amark {
    margin-right: .4em;
    font-size: 18px;
    font-weight: bold;
    color: #0086d1;
}

.qa-panel {
    padding: 10px 18px;
    display: flex;
}

main {
    position: relative;
    margin:0;
    padding:0 0 60px;
    width:100%;
    height:100dvh;
    z-index:0;
    overflow-y:scroll;
}
main.header-active {
    padding-top:60px !important;
}
main > .inner {
    position: relative;
    width: 100%;
    height:100%;
    max-width:767px;
    min-width: 320px;
    min-height:100%;
    margin:auto;
    padding:0;
    overflow: hidden;
}
/* フッター */
#gnav {
    bottom:0;
    background-color: #fff;
    inset-block-end: 0;
    inset-inline: 0;
    font-size: 60px;
    padding-bottom: calc(0.1em + env(safe-area-inset-bottom));
    z-index:10;
    height:60px;
}
/** 使用するときに display:block **/
#gnav .balloon {
    display: none;
    position: absolute;
    margin:0 auto;
    width: 300px;
    height: 100%;
    top: -80px;
    left: 0;
    right: 0;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    z-index:10;
}
#gnav ul {
    width: 100%;
    margin: 0;
    padding: 0 12px;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
#gnav .gnav-item {
    position: relative;
}
#gnav .gnav-item a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.07em;
    width: 1em;
    height: 1em;
    --gnav-color: #57accb;
    background: #fff;
    transition: background .3s;
}
#gnav .gnav-item a:before {
    content:"";
    background: var(--gnav-color, #57ACCB);
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.1em;
    -webkit-mask-image: var(--gnav-icon);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--gnav-icon);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}
#gnav .gnav-item.gnav-item-primary a {
    width: 1.3em;
    height: 1.3em;
    margin-top: -0.3em;
    margin-bottom: -0.07em;
    border-radius: 50%;
    border: 0.1em solid #fff;
    overflow: hidden;
    background: #fff;
    background: var(--gnav-color, #57ACCB);
    padding: 0.1em;
}
#gnav .gnav-item.gnav-item-primary a:before {
    background: #fff !important;
}

#gnav .gnav-item:not(.gnav-item-primary):not(.gray):hover a {
    background: #f6f6f6;
}
#gnav .gnav-item.gnav-item-primary:hover a {
    background: color-mix(in srgb, var(--gnav-color, #57ACCB), white 10%);
}
#gnav .gnav-item.gray a {
    pointer-events: none;
}
#gnav .gnav-item.gray a:before {
    background: #c5c5c5;
}
#gnav .gnav-item.gnav-item-primary.gnav-item.gray a{
    background:#c5c5c5;
}
#gnav .gnav-item.gnav-item-primary .cursor {
    font-size: 10px;
    left: 4em;
    top: -3em;
    rotate: 135deg;
}
.cursor {
    position: absolute;
    width: 5em;
    height: 5em;
    pointer-events: none;
    font-size: 2.08vw;
    z-index: 999;
}
@media (min-width: 767px) {
	.cursor {
	    font-size:16px;
	}
}
.cursor.totop {
	rotate: -130deg;
	right: 0;
	bottom: -2em;
}
.cursor.tobottom {
	rotate: 45deg;
	left: 0;
	top: -2em;
}
.cursor:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/hand_cursor.svg") no-repeat top center;
    animation: 4s 0.5s both cursor;
}
@keyframes cursor {
    0% {
        opacity: 0;
    	transform: translateX(-0.8em);
    }

    10% {
        opacity: 1;
    }

    20% {
    	transform: translateX(-0.8em);
    }

    30% {
    	transform: translateX(0);
    }

    40% {
    	transform: translateX(-0.8em);
    }
	
	50% {
    	transform: translateX(0);
    }

    60% {
    	transform: translateX(-0.8em);
    }
	
	70% {
    	transform: translateX(0);
    }
	
	80% {
        opacity: 1;
    }
	
	100% {
        opacity: 0;
    }
}





dialog {
    border: none;
    padding: 0;
    border-radius: 16px;
    width: 85dvw;
    max-width: 500px;
    max-height: 85dvh;
    background: transparent;
    outline: none;
}

dialog::backdrop {
    background: rgba(0,0,0,.35);
}

/* ダイアログのアニメーション */
dialog {
	opacity: 0;
	translate: 0 10px;
	transition: opacity .2s,translate .3s,overlay .2s allow-discrete,display .2s allow-discrete;
	&[open] {
		opacity: 1;
		translate: 0 0;
		@starting-style {
			opacity: 0;
			translate: 0 10px;
		}
	}
	&::backdrop {
		opacity: 0;
		transition: opacity 1s;
	}
	&[open]::backdrop {
		opacity: 1;
		@starting-style {
			opacity: 0;
		}
	}
}

.dialog-content {
    margin: 0;
    padding: 6px;
    background: rgb(87 172 203 / 80%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 85dvh;
    box-sizing: border-box;
}

.dialog-inner {
    background: rgb(255 255 255 / 80%);
    border-radius: 12px;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    position: relative;
    overscroll-behavior: contain;
}

/* 疑似要素でフェードを用意（非表示がデフォルト） */
.dialog-inner::before,
.dialog-inner::after {
    content: "";
    display: block;
    position: sticky;
    left: 0;
    right: 0;
    height: 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0s;
    z-index: 1;
    margin-top: -15px;
}
.dialog-inner::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
}
.dialog-inner::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

/* JSで状態クラスをトグル */
.dialog-inner.has-scroll-top::before { opacity: 1; }
.dialog-inner.has-scroll-bottom::after { opacity: 1; }

.dialog-title {
    margin: 0;
    font-size: 20px;
    padding: 0.5em 0.4em 0.2em;
    color: #fff;
}

.dialog-close {
    all: unset;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: #0086d1;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.4em 0.3em;
    width: 100%;
    max-width: 300px;
    height: 44px;
    margin: 0 auto;
    border-radius: 36px;
    box-sizing: border-box;
    outline: none;
}
html:has(dialog[open]) {
    overflow: hidden;
}

/* 操作ヒント　表示させっぱなしのパターン */
.hint {
    text-align: center;
    position: fixed;
    top: calc(100dvh - 140px);
    left: 0;
    right: 0;
    background: rgb(255 255 255 / 90%);
    color: #57accb;
    border: 2px solid;
    margin: auto;
    padding: 0.5em;
    max-width: 360px;
    border-radius: 5em;
    font-weight: bold;
    font-size: min(4.8vw,18px);
    pointer-events: none;
    transform: translateY(-15px);
    opacity: 0;
    animation-name: hint-in;
    animation-duration: 300ms;
    animation-timing-function: ease-out;
    animation-delay: 500ms;
    animation-fill-mode: forwards;
}
/* .fade-outがついていたら6秒表示して消える */
.hint.fade-out {
    animation-name: hint-in, hint-out;
    animation-duration: 300ms, 300ms;
    animation-timing-function: ease-out, ease-in;
    animation-delay: 500ms, 6800ms;
    animation-fill-mode: forwards, forwards;
}
/* なにか操作があった時はすぐ消す */
.hint.dismiss {
  animation: hint-out 800ms ease-in both !important;
}
@keyframes hint-in {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hint-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(15px); }
}
