@charset "utf-8"; /* ********************************************** * header定義 css * * headerの大きさ・位置定義 * ********************************************** */ /* * 2014/02/26 * header 大きさ定義 * */ header.pc__header { position: relative; display: block; width: 200px; height: 600px; margin: 10px 10px 10px 0px; background-image: url(img/header_background.png); } div#header { position: absolute; display: block; top: 0px; } div#h_block_1 { position: relative; display: block; width: 200px; height: 250px; } div#h_block_search { position: relative; display: block; width: 200px; height: 50px; } div.h_line { position: relative; display: block; width: 180px; height: 0px; margin: 0px 10px 0px 10px; border-top: solid 2px #FFFFFF; } article.h_text_l { position: relative; display: block; width: 150px; height: 50px; margin: 10px 10px 10px 30px; } span.h_text { display: table-cell; width: 180px; height: 50px; vertical-align: middle; color: #ffffff; font-size: 20px; } article.h_search { position: relative; display: block; margin: 10px 0px 0px 10px; } a.h_link { text-decoration: none; } .sp__header { display: none; } /* ヘッダー レスポンシブ対応 */ @media screen and (max-width: 768px) { header.pc__header { display: none; } .sp__header { position: relative; display: block; width: 375px; height: 56px; background-color: #FFFFFF; } .sp__headerLogo { padding: 10px 8px 8px 8px; width: 80%; } .sp__headerLogoImg { width: 100%; } /*ハンバーガーアイコンの作成 */ #h-menu { position: absolute; display: block; width: 55px; height: 56px; top: 0px; right: 0px; background-color: #109033; /* アイコンの線の色 */ } #h-menu span { display: block; position: absolute; width: 23px; height: 2px; top: 36px; left: 17px; background: #ffffff; -webkit-transition: 0.3s ease-in-out; -moz-transition: 0.3s ease-in-out; transition: 0.3s ease-in-out; } #h-menu span:nth-child(1) { top: 14px; } #h-menu span:nth-child(2) { top: 22px; } #h-menu span:nth-child(3) { top: 30px; } /* ハンバーガーアイコン下のテキスト */ #h-text { position: absolute; width: 32px; font-size: 6px; color: #ffffff; text-align: center; top: 34px; left: 12px; } /* メニュー */ nav { background: #fff; position: absolute; z-index: 9; top: 3.125rem; right: 0; overflow-x: hidden; width: 0; -webkit-transition: 0.5s; -moz-transition: 0.5s; transition: 0.5s; } /* メニューを開いた時 */ nav.open-menu { width: 100%; } div.h-menu span:nth-child(1) { transform: rotate(45deg); top: 20px !important; } div.h-menu span:nth-child(2) { width: 0; opacity: 0; } div.h-menu span:nth-child(3) { transform: rotate(-45deg); top: 20px !important; } /* ハンバーガーアイコン下のテキスト */ div.h-menu :nth-child(4) { display: none; } div.h-menu_block { position: relative; display: block; width: 90%; height: 50px; margin: 20px auto; font-size: larger; } div.h-menu_block_text ::before{ content: ''; position: absolute; right: 28px; top: 50%; margin-top: -8px; width: 20px; height: 20px; border-top: 1px solid #888; border-right: 1px solid #888; transform: rotate(45deg); } /* div.h-menu_block a { position: absolute; display: block; top: 0; left: 0; width: 100%; height: 100%; } */ div.h-menu_block_text { position: relative; display: inline-block; width: 100%; height: 50px; background: #ccc; vertical-align: middle; } div.h-menu_block_text_center { margin-top: 5%; margin-left: 20px; } div.h-menu_block_left { position: relative; display: block; width: 42%; height: 50px; margin-left: 20px; float: left; /* font-size: large; */ } /* div.h-menu_block_left ::before { content: ''; position: absolute; right: 28px; top: 50%; margin-top: -8px; width: 20px; height: 20px; border-top: 1px solid #AAA; border-right: 1px solid #AAA; transform: rotate(45deg); } */ div.h-menu_block_text_left_center { margin-top: 10%; margin-left: 15px; } div.h-menu_block_clear { display: block; clear: both; } div.h-menu_lang { position: relative; display: block; width: 90%; height: 80px; margin: 20px auto; } div.h-menu_block_lang { position: relative; display: inline-block; width: 100%; height: 80px; background: #ccc; vertical-align: middle; } .h-menu_block_text_line { height: 30px; } .h-menu_block_text_color_1{ position: relative; display: inline-block; width: 40px; /* height: 25px; */ text-align: center; background: #D6D6D6; } .h-menu_block_text_color_2{ position: relative; display: inline-block; width: 40px; /* height: 25px; */ text-align: center; background: #F7F3BC; } .h-menu_block_text_color_3{ position: relative; display: inline-block; width: 40px; /* height: 25px; */ text-align: center; background: #DAEDD0; } .mobile_translation{ position: relative; display: block; top: -20px; left: 78px; height: 25px; } div.h-menu_search { position: relative; display: block; width: 90%; height: 50px; margin-left: 20px; margin-bottom: 20px; } div.h-menu_block_search { position: relative; display: inline-block; width: 100%; height: 45px; vertical-align: middle; } .mobile_form_input{ width: 60%; height: 40px; margin: 0px; } .mobile_form_button{ display : inline-block; width: 36%; height: 45px; font-size : large; /* 文字サイズ */ text-align : center; /* 文字位置 */ cursor : pointer; /* カーソル */ background : #109033; /* 背景色 */ color : #ffffff; /* 文字色 */ line-height : 1em; /* 1行の高さ */ margin: 0px; margin-left: -6px; border: none; } }