*{
    box-sizing: border-box;/* 領域のサイズを枠線や余白を含めて求める */
}
html,body{
    margin : 0;
    padding : 0;

    /* 既定のフォントサイズは 16px とします */
    font-size : 16px;
}
body{
    margin: 0 auto;/* 幅がブラウザ幅よりも小さい場合、自身を水平中央に表示する */

    width : 100vw;/* 幅はブラウザ幅に合わせる */
    /* PCで著しくレイアウトが崩れる場合は、最大幅を決めておいても良い（もしくはメディアクエリでスタイルを分ける） */
    max-width: 1000px;

    border : 1px solid #000000;
    
    /*
    フォントはローカルフォントの「角ゴ」を前提とします。
    （サービスによってはWEBフォントを採用する事もあります）
    */
    font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;

    /*
    body内の header , main , footer は縦並びで水平中央に配置。
    これでmainのサイズがどのようになっても画面の中心に表示され、ヘッダとフッタは画面上下に吸着します。
    */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
header{
    position: relative;
    width : 100%;
    background-color : #6EA859;
    padding: 1em;
}
header > div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
main{
    height : 100%;
    /*
    background-color : #F5A782;
    */
    padding: 1em;
}
footer{
    width : 100%;
    background-color : #B3B4F5;
    display:none; /* TODO 現在は非表示 */
}
h1{
    /*
    フォントサイズの単位は rem を推奨します。
    remはhtml要素で指定された文字サイズを基準とした単位で、親要素の影響を受けません。
    html要素の文字サイズを変更すると、全ての文字サイズを変更する事ができるため、レスポンシブ対応もしやすいです。
    */
    font-size : 1.5rem;
    font-weight : normal;
}
h2{
    font-size : 1.25rem;
    font-weight : normal;
}

.warning{
    color: red;
}

/* ローディングモーダルここから */
#loading-modal{
    border: none;
    background-color: transparent;
}
#loading-modal:focus-visible{
    outline: none;
}
#loading-modal .container{
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    padding: 30px;
    width: 25%;
    height: 140px;
}
#loading-modal .circle {
    box-sizing: border-box;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    border: 10px solid rgb(255,255,255, 0.2);
    border-top-color: #FFF;
    animation: rotate-z 1s infinite linear;
}
@keyframes rotate-z {
    from { transform: rotateZ(0deg); }
    to { transform: rotateZ(360deg); }
}
/* ローディングモーダルここまで */

/* ヘッダーここから */
.app-name {
    flex-grow: 1;
}
/* ヘッダーここまで */

/* メニューここから*/
.hamburger {
    position: relative;
    margin-right: 1em;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.hamburger-line {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background-color: #333;
    transition: all .4s;
}
.hamburger-line:nth-of-type(1) {
    top: 14px;
}
.hamburger-line:nth-of-type(2) {
    top: 23px;
}
.hamburger-line:nth-of-type(3) {
    top: 32px;
}
.hamburger-close-wrapper
{
    padding: 1em;
    text-align: right;
}
.hamburger-close {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.hamburger-line-close {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background-color: #333;
    transition: all .4s;
}
.hamburger-line-close:nth-of-type(1) {
    top: 14px;
    transform: translateY(9px) rotate(-45deg);
}
.hamburger-line-close:nth-of-type(2) {
    top: 32px;
    transform: translateY(-9px) rotate(45deg);
}
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 14em;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 4px rgba(0,0,0,.1);
    transform: translateX(-100%);
    transition: transform .4s;
    z-index: 90;
}
.nav.active {
    transform: translateX(0);
}
.nav-list {
    margin: 0;
    list-style: none;
}
.nav-item {
    padding: 0 20px;
}
.nav-link {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
/* メニューここまで*/