body {
    padding-top: 60px;
    font-family: sans-serif;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    padding: 20px;
    line-height: 2;
}

img {
	max-width: 100%;
}

/* ヘッダー */
.header_container {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    height: 60px; 
    width: 100%;
    background: white;
    color: black;
    border-bottom: 1px solid #d1dce5;
    z-index: 500;
}

.header_img {
    margin-left: 10px;
    margin-top: 10px;
    width: 80px;
}

.header_nav li a {
    color: black;
    text-decoration: none;
}

@media screen and (min-width: 722px) { /* PCサイズ（ヘッダーリンクが潰れない横幅） */
    .menubtn { /*スマホサイズのときは非表示 */
        display: none;
    }
    
    .header_nav {
        display: inline-block;
        margin-left: auto;
    }

        .header_nav ul {
            display: flex;
            list-style: none;
            vertical-align: middle;
        }
    
    .header_nav ul li {
        margin-left: 20px;
        margin-right: 20px;
    }
	
	.soflan_gimmick_explain {
		display: flex;
		justify-content: center;
	}

	.soflan_gimmick_explain img {
		width: 700px;
		max-width: 50%;
	}

	.soflan_gimmick_explain ul {
		width: 50%;
	}
}

@media screen and (max-width: 721px) { /* スマホサイズ（ヘッダーリンクが潰れる横幅） */
    .menubtn {
        position: fixed;
        z-index: 9999;
        top: 10px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
    }
    
    .header_nav {
        position: fixed;
        z-index: 999;
        top: -120%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #999;
        transition: all 0.6s;
    }

    .header_nav.panelactive {
        top: 0;
    }

    .header_nav ul {
        padding-left: 0;
        position: absolute;
        z-index: 999;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .header_nav li {
        list-style: none;
        text-align: center;
        line-height: 3;
        font-weight: bold;
    }

	.soflan_gimmick_explain {
		flex-direction: column;
	}

	.soflan_gimmick_explain img {
		width: 100%;
	}
}

    /* ヘッダー中のメニューボタン */
    .menubtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #666;
        width: 25px;
    }

    .menubtn span:nth-of-type(1) {
        top:15px; 
    }

    .menubtn span:nth-of-type(2) {
        top:23px;
    }

    .menubtn span:nth-of-type(3) {
        top:31px;
    }

    .menubtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }

    .menubtn.active span:nth-of-type(2) {
        opacity: 0;
    }

    .menubtn.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }


/* フッター */
.footer_container {
    display: flex;
    width: 100%;
    margin-top: auto;
    background: #404040;
}

.footer_container nav {
    display: flex;
    margin: auto;
}

.footer_sns {
    height: 60px;
    text-align: center;
    margin: auto;
}

.footer_img {
    height: 40px;
}

.footer_content ul {
    list-style: none;
    justify-content: center;
    text-align: center;
    padding-left: 0;
}

.footer_content ul li {
    font-size: small;
    margin-left: 20px;
    margin-right: 20px;
}

.footer_container li a {
    color: white;
    text-decoration: none;
}

@media screen and (min-width: 640px) { /* PCサイズ（横並びで無理なく表示できる横幅） */
    .footer_container {
        height: 100px;
    }

    .footer_container nav {
        width: 640px;
    }

    .footer_sns {
        width: 25%;
        border-right: 2px solid white;
    }

    .footer_img {
        padding: 10px;
    }

    .footer_content {
        width: 74%;
    }

    .footer_content ul {
        display: flex;
    }
}

@media screen and (max-width: 639px) { /* スマホサイズ（横並びで無理なく表示できない横幅） */
    .footer_container {
        height: 200px;
    }

    .footer_container nav {
        flex-direction: column;
        width: 100%;
    }

    .footer_sns {
        width: 100%;
    }

    .footer_img {
        padding: 10px 20px;
    }

    .footer_content {
        margin: auto;
        width: 90%;
        height: 140px;
    }
    
    .footer_content ul {
        width: 49%
    }
    
    .footer_content ul:nth-of-type(2n+1){
        float: left;
    }
    
    .footer_content ul:nth-of-type(2n){
        float: right;
    }
    
    .footer_content li {
        line-height: 3;
    }
}


/* ページタイトル*/
.page_title {
    font-size: xx-large;
    background-color: #dcdcdc;
}

/* 段落タイトル */
.paragraph_title {
    font-size: x-large;
    border-left: thick solid #dcdcdc;
    border-bottom: thick solid #dcdcdc;
    margin: 10px;
}

/* ミニタイトル */
.mini_title {
    font-size: x-large;
    border-bottom: medium solid #c0c0c0;
    display: inline-block;
    margin: 10px;
}

/* 計算ボタン */
.execButton {
    font-size: x-large;
    line-height: 30px;
    background-color: #87cefa;
}

/* 結果表示ボックス */
.response_box {
    width: 100%;
    height: 16em;
    background-color: white;
}

/* 加減速ソフラン生成機 */
.soflan_gimmick_input ul {
	padding-left: 40px;
}

.soflan_gimmick_input li {
	margin-bottom: 12px;
	line-height: 1.5;
}

.soflan_gimmick_explain img {
	width: 700px;
	border-radius: 8px;
}