@charset "utf-8";

.title {
    height: 310px;
    background-image: url(../images/access/bg-main.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* 背景画像サイズは親要素を覆うサイズに */

    /* タイトル文字を上下左右に位置させるコード */
    display: flex;
    flex-direction: column;
    /* flexの並ぶ方向を決める column＝縦方向 */
    justify-content: center;
    /* 水平方向 */
    align-items: center;
    /* 垂直方向 */
    color: #fff;
    text-shadow: 1px 1px 10px #4b2c14;
    /* 横ずれ 縦ずれ ぼかし 影色 */
}

.title h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: bold;
}

.title p {
    font-size: 14px;
    margin-top: 15px;
}

.main h2 {
    font-size: 22px;
    font-weight: bold;
    line-height: 30px;
}

.main h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background-color: #000;
    margin-top: 20px;
}

/* google map */
.map {
    width: 930px;
    max-width: 90%;
    /* 最大が90％＝どの画面サイズになっても左右に5％余白が残る */
    margin: 75px auto 0;
    /* 左右にautoが入るとブラウザーの中央に配置される */
}

.map iframe {
    display: block;
    width: 100%;
    height: 320px;
    margin-top: 25px;
}

.contact {
    width: 930px;
    max-width: 90%;
    margin: 75px auto 0;
}

.form-area {
    background-color: #f8f8f8;
    border: 1px solid #aaa;
    /* borderの種類 soild実線 dotted点線 dashed破線 double二重線 */
    margin-top: 25px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    /* 子要素を複数行に折り返して並べる */
}

.form-area dt {
    width: 200px;
    padding: 15px 0;
    /* 上下の余白を調整 */
    font-size: 15px;
    font-weight: bold;
    line-height: 24px;
}

.form-area dd {
    width: calc(100% - 200px);
    /* 半角スペース忘れずに! */
    padding: 15px 0;
}

.form-area dt .required::after {
    content: '必須';
    font-size: 11px;
    color: #eb4f32;
    margin-left: 10px;
}

.input-text {
    width: 100%;
    max-width: 280px;
    /* width100%だが、maxwidthで最大幅を指定しているため要素いっぱいに大きくならない */
    height: 40px;
    /* 入力欄の高さ */
    padding: 0 10px;
}

/* セレクトボックスのスタイル */
.select-box {
    width: 200px;
    height: 40px;
}


.radio-button {
    display: block;
    /* インライン要素からブロック要素に */
    margin-top: 20px;
}

.radio-button:first-child {
    margin-top: 0;
}

.radio-button input {
    margin-right: 8px;
    /* 選択ボタン◎と文字の間の余白 */
}

/* 入力欄(textarea)のスタイル */
.message {
    width: 100%;
    height: 260px;
    padding: 10px;
    line-height: 1.5;
    /* 行高(文字サイズの倍数) */
}

.confirm-text {
    font-size: 14px;
    line-height: 22px;
    margin-top: 30px;
}

.submit-button {
    background-color: #f4dd64;
    display: inline-block;
    /* 要素は横並び、幅と高さを指定できる 
    今回はスタイルを付けれるようにinline-blockに設定*/
    min-width: 180px;
    /* 最小幅の設定  ↑は180pxより小さくならない
    画面サイズが可変したときに影響する */
    line-height: 48px;
    /* 文字の位置を変えずにクリックできる領域を大きくした */
    border-radius: 24px;
    /* 角丸の半径 ↑両端に半径24pxの円がある状態 */
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    /* ホバーしたときのカーソルの種類を変更 */
    border: none;
    /* ボタンタグの枠線を消す */
}

.submit-button:hover {
    background-color: #d8b500;
}

.footer {
    margin-top: 100px;
}


/* ここからモバイル用cssの設定 */
@media(max-width: 800px) {

    .map,
    .contact {
        width: 500px;
        margin-top: 45px;
    }

    /* dt=項目の名前、dd=項目欄 */
    .form-area dt,
    .form-area dd {
        width: 100%;
        /* dtの要素が100％になると、次のddは下に並ぶ */
    }

    .form-area dt {
        padding-bottom: 0;
        /* どっちの項目欄がどっちかわからないから寄せる */
    }

    .submit-button {
        width: 100%;
    }
}