/* 日本語テキスト用のフォント */ .ja-text { font-family: 'Noto Sans JP', sans-serif; } /* 英語テキスト用のフォント */ .en-text { font-family: 'Barlow', sans-serif; } body { font-family: 'Noto Sans JP', sans-serif; } /*******************************************************/ /* 1.フォーム */ /*******************************************************/ #form { background-color: #D8D8D8; padding: 30px; .contact_form { width: 900px; margin: 0 auto; background-color: #ffffff; .sp { display: none; } .form_title { padding: 20px; font-size: large; } .form_subtitle { text-align: center; margin: 20px; } .form_items { padding: 10px; width: 70%; margin: 0 auto; .required { color: #ffffff; background-color: #D92525; font-size: small; border: 1px solid #D92525; border-radius: 3px; padding: 1px 3px; } .any { color: #ffffff; background-color: #595959; font-size: small; border: 1px solid #595959; border-radius: 3px; padding: 1px 3px; } .form_text { padding: 10px; display: flex; flex-direction: column; input { border: 1px solid #D8D8D8; border-radius: 3px; margin-top: 5px; padding: 8px; } } .form_select { padding: 10px; .date_select { display: flex; justify-content: space-between; width: 100%; align-items: center; select { cursor: pointer; border: 1px solid #D8D8D8; border-radius: 3px; width: 30%; padding: 8px; box-sizing: border-box; margin-top: 5px; } } .date_select_days { display: flex; justify-content: start; width: 100%; align-items: center; select { cursor: pointer; border: 1px solid #D8D8D8; border-radius: 3px; width: 30%; padding: 8px; box-sizing: border-box; margin: 5px 2px 0 2px; } } } .form_radio { padding: 10px; .radio_input { display: flex; flex-wrap: wrap; justify-content: space-between; border: none; label { cursor: pointer; flex-basis: 46%; border: 1px solid #D8D8D8; border-radius: 3px; margin-top: 5px; padding: 8px; } } } .form_address { padding: 10px; .address_detail { display: flex; flex-direction: column; margin-top: 5px; .detail_top { display: flex; justify-content: space-between; align-items: center; .detail_top_text { display: flex; flex-direction: row; align-items: center; width: 49%; justify-content: space-between; label { white-space: nowrap; margin-right: 3px; } input { border: 1px solid #D8D8D8; border-radius: 3px; margin-top: 5px; padding: 8px; width: 100%; } select { cursor: pointer; border: 1px solid #D8D8D8; border-radius: 3px; width: 30%; padding: 8px; box-sizing: border-box; width: 100%; } } } label { margin-top: 5px; } input { border: 1px solid #D8D8D8; border-radius: 3px; margin-top: 5px; padding: 8px; } } } .form_message { padding: 10px; display: flex; flex-direction: column; textarea { border: 1px solid #D8D8D8; border-radius: 3px; margin-top: 5px; padding: 8px; } } .form_submit { margin: 50px 0 50px 0; padding: 10px; .agree { text-align: center; .agree_text { line-height: 2rem; span { color: #D92525; font-size: large; cursor: pointer; } } .agree_input { display: flex; justify-content: center; margin-top: 20px; input { margin-right: 2px; cursor: pointer; } } } .submit_button { display: flex; margin: 0 auto; margin-top: 40px; padding: 15px 100px; border-radius: 5px; background-color: #0C6CB1; color: #ffffff; font-size: large; } } .split_input { display: flex; justify-content: space-between; input { width: 45%; box-sizing: border-box; } .err_last_name { width: 45%; } .err_first_name { width: 45%; } } .result { font-size: 25px; margin-top: 7px; text-align: center; } [class^="err_"], .result { color: red; font-weight: bold; } .err_agree_text { margin-top: 5px; } } } } @media (max-width: 768px) { #form { padding: 10px 0; .contact_form { width: 90%; margin: 0 auto; background-color: #ffffff; .sp { display: block; } .form_items { width: 100%; padding: 0; font-size: 14px; .form_radio { padding: 10px; .radio_input { label { flex-basis: 42%; } } } .form_select { .date_select_days { select { cursor: pointer; border: 1px solid #D8D8D8; border-radius: 3px; width: 100%; padding: 8px; box-sizing: border-box; margin: 5px 5px 0 5px; } } } .form_address { .address_detail { .detail_top { display: block; .detail_top_text { width: 100%; select { margin-top: 5px; } } } } } .split_input { flex-direction: column; input { width: 100%; } .err_last_name { width: 100%; } .err_first_name { width: 100%; } } } } } } @media (max-width: 430px) { .form_items { font-size: 12px !important; .required, .any { font-size: 12px !important; } [class^="err_"], .result { font-size: 14px !important; } } } /*******************************************************/ /* 2.サンクス */ /*******************************************************/ #thanks { background-color: #D8D8D8; padding: 30px; .thanks_form { width: 900px; margin: 0 auto; background-color: #ffffff; padding: 20px; .title { text-align: center; padding: 20px; font-size: large; } .subtitle { text-align: center; margin: 20px; } } }