/*要素の位置関係について指定するプロパティです。このプロパティが取れる値は次の４つです。
    static
    positionのデフォルト値でどんな方法でもこの値が指定されている要素は位置を変えることができない

    relative
    元々表示されるはずだった場所から相対的に位置指定できる

    fixed
    viewportに対する相対位置で配置。つまり特定の場所に要素が固定されるので画面をスクロールしても付いてくる要素が作れる

    absolute
    fixedと似ているが位置指定可能(positionプロパティがstatic以外)で最も近い要素に対する相対位置に配置される
*/

html{
    font-size: 62.5%;
}
body{
    font-size:1.6rem;/* 16px*/
    line-height: 2;
}
h1 {
/*    font-size: 36px;/* IE8以下とAndroid4.3以下用フォールバック */
/*    font-size: calc(2.4rem + ((1vw - 0.64rem) * 2.1429));/* 24px~36pxで可変*/
    line-height: 1.3;
}
h2 {
/*    font-size: 24px;/* IE8以下とAndroid4.3以下用フォールバック */
/*    font-size: calc(2rem + ((1vw - 0.64rem) * 0.7143));/* 20px~24pxで可変*/
    line-height: 1.3;
}
resizeimage img { width: 100%; }

.background {
    width: 100%;
    height: 0;
    padding-top: calc(300 / 1000 * 100%); /* calc(画像高さ ÷ 画像横幅 × 100%) */
    background: url(bg.jpg) center center / cover no-repeat;
}

*{
    border: 0;
    margin: 0;
    padding: 0;
}

body{
    line-height: 2;
}

h1{
    font-size: 3.6rem;/* 36px*/
}

h2 {
    font-size: 2.4rem;/* 24px*/
}

.maintext {
    padding: 1rem;
}

nav{
    background-color: white;
    height: 50px;
}

.inner{
    max-width:100%;
    margin: auto;
    width: auto;
    height: auto;
}
.flex {
    display: flex;
    justify-content: right;
}

.inner.flex {
    display: flex;
    justify-content: space-between; /* ロゴとボタンを左右に配置 */
    align-items: top;
    position: relative;
}

.flex li{
    margin-left:15px;
    margin-right:15px;
    list-style:none;
    flex-wrap: nowrap;
}
.logo {
    margin-right: auto;
    height: auto;
    width: auto;
    left: 0px;
    top: 0px;
}
.logo a{
    color:black;
    font-size:5px;
    font-weight:bold;
} 
li a{
    color:black;
    text-decoration:none;
    font-size: 1.6rem;
}

/* --- 共通：トグルボタンの基本 --- */
.nav-toggle {
    display: block;
    width: 40px;
    height: 40px;
    position: absolute; /* 閉じた時は右上に固定 */
    right: 10px;
    top: 10px;
    z-index: 100;
    text-indent: -9999px; /* テキスト「Menu」を隠す */
    background: #333;
}

/* --- closed状態：三本線アイコン (疑似要素を使用) --- */
.nav-toggle:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 14px;
    width: 20px;
    height: 2px;
    background: #fff;
    /* 三本線を作るための影の指定 */
    box-shadow: 
        0 5px 0 #fff, 
        0 10px 0 #fff;
}

/* --- 開いた状態（.active）のスタイル調整 --- */
.nav-toggle.active {
    position: relative; /* absoluteを解除してリストの横に並べる */
    /*float: right;        /* メニューの左側に回り込ませる */
    right: 0px;        /* 位置指定をリセット */
    /*top: 0;*/
    margin-right: 10px; /* メニュー項目との間の余白 */
}

/* --- active（開いた）状態：アイコンの変化 (任意) --- */
.nav-toggle.active:before {
    background: #fff; /* 開いている時は色を変えるなどの処理 */
    box-shadow: none;    /* 三本線を消す */
}

/* --- メニュー本体 --- */
.nav-collapse {
    clear: both; /* 回り込みを解除してリストを下に流す */
}

.nav-collapse ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block; /* 縦並びを保証 */
}

.nav-collapse li {
    line-height: 40px; /* アイコンの高さ（40px）と合わせると綺麗に並びます */
    text-align: left;
}

/* モバイル版（responsive-navが開いている時） */
.nav-collapse.open ul li {
    border: 1px solid #000; /* 全周囲に枠線 */
    margin-bottom: 5px;      /* 項目ごとの隙間 */
    border-radius: 4px;     /* 角を少し丸くする（任意） */
}

.nav-collapse.open ul li a {
    display: block;         /* 枠内どこを押しても反応するようにする */
    padding: 10px 15px;     /* 枠内の余白 */
    text-decoration: none;
    color: #333;
}

/*img画像の中央に文字を表示*/
.box
{
    position: relative;
}

.imagetext
{
    position: absolute;
    width: 100%;
    left: 0; 
    top: calc(50% - 25px);
    text-align: center; 
    color: White; 
    font-size: 3vw;
    font-weight: bold; 
    line-height: 50px;
    text-shadow: 2px 2px 2px #404040;
}

/*　フッターの設定　*/
.wrapper{
    height: 100%;
    min-height: 100vh;
    position: absolute; /*←相対位置*/
    padding-bottom: 5px;/*←footerの高さ*/
    box-sizing: border-box;/*←全て含めてmin-height:100vhに*/
}

footer{
    width: 100%;
    background-color: #FF0000; /*#89c7de;*/
    color: #fff;
    text-align: center;
    padding: 10px 0;

    position: relative;/*←絶対位置*/
    bottom: 0; /*下に固定*/
}

/* contacts */
#formWrap {
	width:700px;
	margin:0 auto;
	color:#555;
	line-height:120%;
	font-size:90%;
}
table.formTable{
	width:100%;
	margin:0 auto;
	border-collapse:collapse;
}
table.formTable td,table.formTable th{
	border:1px solid #ccc;
	padding:10px;
}
table.formTable th{
	width:30%;
	font-weight:normal;
	background:#efefef;
	text-align:left;
}
input {
    border:1px gray solid;
}
textarea {
    border:1px gray solid;
}

/*ヘッダー　ロゴとメニューバー（NAV)の設定 */
@media screen and (min-width: 768px) {  /* PCモード*/
    /* トグル非表示 */
    .nav-toggle {
        display: none !important;
    }

    /* メニュー項目を強制的に表示し、横並びにする */
    .nav-collapse {
        display: block !important;
        height: auto !important;
    }

    .nav-collapse ul {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        flex-shrink: 1;
        gap: 20px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
}
