Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

header.css 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. @charset "utf-8";
  2. /* **********************************************
  3. * header定義 css
  4. *
  5. * headerの大きさ・位置定義
  6. *
  7. ********************************************** */
  8. /*
  9. * 2014/02/26
  10. * header 大きさ定義
  11. *
  12. */
  13. header.pc__header {
  14. position: relative;
  15. display: block;
  16. width: 200px;
  17. height: 600px;
  18. margin: 10px 10px 10px 0px;
  19. background-image: url(img/header_background.png);
  20. }
  21. div#header {
  22. position: absolute;
  23. display: block;
  24. top: 0px;
  25. }
  26. div#h_block_1 {
  27. position: relative;
  28. display: block;
  29. width: 200px;
  30. height: 250px;
  31. }
  32. div#h_block_search {
  33. position: relative;
  34. display: block;
  35. width: 200px;
  36. height: 50px;
  37. }
  38. div.h_line {
  39. position: relative;
  40. display: block;
  41. width: 180px;
  42. height: 0px;
  43. margin: 0px 10px 0px 10px;
  44. border-top: solid 2px #FFFFFF;
  45. }
  46. article.h_text_l {
  47. position: relative;
  48. display: block;
  49. width: 150px;
  50. height: 50px;
  51. margin: 10px 10px 10px 30px;
  52. }
  53. span.h_text {
  54. display: table-cell;
  55. width: 180px;
  56. height: 50px;
  57. vertical-align: middle;
  58. color: #ffffff;
  59. font-size: 20px;
  60. }
  61. article.h_search {
  62. position: relative;
  63. display: block;
  64. margin: 10px 0px 0px 10px;
  65. }
  66. a.h_link {
  67. text-decoration: none;
  68. }
  69. .sp__header {
  70. display: none;
  71. }
  72. /* ヘッダー レスポンシブ対応 */
  73. @media screen and (max-width: 768px) {
  74. header.pc__header {
  75. display: none;
  76. }
  77. .sp__header {
  78. position: relative;
  79. display: block;
  80. width: 375px;
  81. height: 56px;
  82. background-color: #FFFFFF;
  83. }
  84. .sp__headerLogo {
  85. padding: 10px 8px 8px 8px;
  86. width: 80%;
  87. }
  88. .sp__headerLogoImg {
  89. width: 100%;
  90. }
  91. /*ハンバーガーアイコンの作成 */
  92. #h-menu {
  93. position: absolute;
  94. display: block;
  95. width: 55px;
  96. height: 56px;
  97. top: 0px;
  98. right: 0px;
  99. background-color: #109033; /* アイコンの線の色 */
  100. }
  101. #h-menu span {
  102. display: block;
  103. position: absolute;
  104. width: 23px;
  105. height: 2px;
  106. top: 36px;
  107. left: 17px;
  108. background: #ffffff;
  109. -webkit-transition: 0.3s ease-in-out;
  110. -moz-transition: 0.3s ease-in-out;
  111. transition: 0.3s ease-in-out;
  112. }
  113. #h-menu span:nth-child(1) {
  114. top: 14px;
  115. }
  116. #h-menu span:nth-child(2) {
  117. top: 22px;
  118. }
  119. #h-menu span:nth-child(3) {
  120. top: 30px;
  121. }
  122. /* ハンバーガーアイコン下のテキスト */
  123. #h-text {
  124. position: absolute;
  125. width: 32px;
  126. font-size: 6px;
  127. color: #ffffff;
  128. text-align: center;
  129. top: 34px;
  130. left: 12px;
  131. }
  132. /* メニュー */
  133. nav {
  134. background: #fff;
  135. position: absolute;
  136. z-index: 9;
  137. top: 3.125rem;
  138. right: 0;
  139. overflow-x: hidden;
  140. width: 0;
  141. -webkit-transition: 0.5s;
  142. -moz-transition: 0.5s;
  143. transition: 0.5s;
  144. }
  145. /* メニューを開いた時 */
  146. nav.open-menu {
  147. width: 100%;
  148. }
  149. div.h-menu span:nth-child(1) {
  150. transform: rotate(45deg);
  151. top: 20px !important;
  152. }
  153. div.h-menu span:nth-child(2) {
  154. width: 0;
  155. opacity: 0;
  156. }
  157. div.h-menu span:nth-child(3) {
  158. transform: rotate(-45deg);
  159. top: 20px !important;
  160. }
  161. /* ハンバーガーアイコン下のテキスト */
  162. div.h-menu :nth-child(4) {
  163. display: none;
  164. }
  165. div.h-menu_block {
  166. position: relative;
  167. display: block;
  168. width: 90%;
  169. height: 50px;
  170. margin: 20px auto;
  171. font-size: larger;
  172. }
  173. div.h-menu_block_text ::before{
  174. content: '';
  175. position: absolute;
  176. right: 28px;
  177. top: 50%;
  178. margin-top: -8px;
  179. width: 20px;
  180. height: 20px;
  181. border-top: 1px solid #888;
  182. border-right: 1px solid #888;
  183. transform: rotate(45deg);
  184. }
  185. /* div.h-menu_block a {
  186. position: absolute;
  187. display: block;
  188. top: 0;
  189. left: 0;
  190. width: 100%;
  191. height: 100%;
  192. } */
  193. div.h-menu_block_text {
  194. position: relative;
  195. display: inline-block;
  196. width: 100%;
  197. height: 50px;
  198. background: #ccc;
  199. vertical-align: middle;
  200. }
  201. div.h-menu_block_text_center {
  202. margin-top: 5%;
  203. margin-left: 20px;
  204. }
  205. div.h-menu_block_left {
  206. position: relative;
  207. display: block;
  208. width: 42%;
  209. height: 50px;
  210. margin-left: 20px;
  211. float: left;
  212. /* font-size: large; */
  213. }
  214. /* div.h-menu_block_left ::before {
  215. content: '';
  216. position: absolute;
  217. right: 28px;
  218. top: 50%;
  219. margin-top: -8px;
  220. width: 20px;
  221. height: 20px;
  222. border-top: 1px solid #AAA;
  223. border-right: 1px solid #AAA;
  224. transform: rotate(45deg);
  225. } */
  226. div.h-menu_block_text_left_center {
  227. margin-top: 10%;
  228. margin-left: 15px;
  229. }
  230. div.h-menu_block_clear {
  231. display: block;
  232. clear: both;
  233. }
  234. div.h-menu_lang {
  235. position: relative;
  236. display: block;
  237. width: 90%;
  238. height: 80px;
  239. margin: 20px auto;
  240. }
  241. div.h-menu_block_lang {
  242. position: relative;
  243. display: inline-block;
  244. width: 100%;
  245. height: 80px;
  246. background: #ccc;
  247. vertical-align: middle;
  248. }
  249. .h-menu_block_text_line {
  250. height: 30px;
  251. }
  252. .h-menu_block_text_color_1{
  253. position: relative;
  254. display: inline-block;
  255. width: 40px;
  256. /* height: 25px; */
  257. text-align: center;
  258. background: #D6D6D6;
  259. }
  260. .h-menu_block_text_color_2{
  261. position: relative;
  262. display: inline-block;
  263. width: 40px;
  264. /* height: 25px; */
  265. text-align: center;
  266. background: #F7F3BC;
  267. }
  268. .h-menu_block_text_color_3{
  269. position: relative;
  270. display: inline-block;
  271. width: 40px;
  272. /* height: 25px; */
  273. text-align: center;
  274. background: #DAEDD0;
  275. }
  276. .mobile_translation{
  277. position: relative;
  278. display: block;
  279. top: -20px;
  280. left: 78px;
  281. height: 25px;
  282. }
  283. div.h-menu_search {
  284. position: relative;
  285. display: block;
  286. width: 90%;
  287. height: 50px;
  288. margin-left: 20px;
  289. margin-bottom: 20px;
  290. }
  291. div.h-menu_block_search {
  292. position: relative;
  293. display: inline-block;
  294. width: 100%;
  295. height: 45px;
  296. vertical-align: middle;
  297. }
  298. .mobile_form_input{
  299. width: 60%;
  300. height: 40px;
  301. margin: 0px;
  302. }
  303. .mobile_form_button{
  304. display : inline-block;
  305. width: 36%;
  306. height: 45px;
  307. font-size : large; /* 文字サイズ */
  308. text-align : center; /* 文字位置 */
  309. cursor : pointer; /* カーソル */
  310. background : #109033; /* 背景色 */
  311. color : #ffffff; /* 文字色 */
  312. line-height : 1em; /* 1行の高さ */
  313. margin: 0px;
  314. margin-left: -6px;
  315. border: none;
  316. }
  317. }