← Back
Editing: styletop.css
@charset "utf-8"; /*PC・タブレット・スマホ共通設定 ---------------------------------------------------------------------------*/ /*全体の設定 ---------------------------------------------------------------------------*/ body { margin: 0px; padding: 0px; color: #fff; /*全体の文字色*/ font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "MS Pゴシック", "MS PGothic", sans-serif; /*フォント種類*/ font-size: 14px; /*文字サイズ*/ line-height: 2; /*行間*/ background: #000; /*背景色*/ -webkit-text-size-adjust: none; } h1,h2,h3,h4,h5,p,ul,ol,li,dl,dt,dd,form,figure,form {margin: 0px;padding: 0px;} ul {list-style-type: none;} img {border: none;max-width: 100%;height: auto;} table {border-collapse:collapse;font-size: 100%;border-spacing: 0;} iframe {width: 100%;} /*リンク(全般)設定 ---------------------------------------------------------------------------*/ a { color: #fff; /*リンクテキストの色*/ -webkit-transition: 0.5s; /*マウスオン時の移り変わるまでの時間設定。0.5秒。*/ transition: 0.5s; /*同上*/ } a:hover { color: #fffe43; /*マウスオン時の文字色*/ text-decoration: none; /*マウスオン時に下線を消す設定。残したいならこの1行削除。*/ } /*コンテナー ---------------------------------------------------------------------------*/ #container { margin: 0px auto; width: 700px; /*ブロック幅*/ text-align: center; } /*ロゴ ---------------------------------------------------------------------------*/ h1 img { padding: 20px 0px 10px; } /*h2タグとpタグ ---------------------------------------------------------------------------*/ h2 { background: #ff0000; /*背景色*/ letter-spacing: 0.2em; /*文字間隔を少し広げる設定*/ font-size: 100%; color: #fff; /*文字色*/ } p { padding: 20px 0; } /*ENTERとLEAVEのボタン ---------------------------------------------------------------------------*/ ul#menu { width: 420px; margin: 0px auto; } ul#menu li a { color: #fff; /*文字色*/ background: #000; /*背景色(古いブラウザだとここの色のみが出ます)*/ background: -webkit-gradient(linear, left top, left bottom, from(#5d5d5d), to(#000)); /*グラデーション*/ background: -webkit-linear-gradient(#e7e7e7, #5d5d5d 49%, #000 50%); /*同上*/ background: linear-gradient(#e7e7e7, #5d5d5d 49%, #000 50%); /*同上*/ border: solid 1px #5d5d5d; /*枠線の線種、幅、色*/ text-shadow: 2px 2px 5px rgba(0,0,0,0.5); border-radius: 10px; /*角丸のサイズ*/ display: block; float: left; width: 198px; /*ボタン幅*/ text-decoration: none; font-size: 20px; /*文字サイズ*/ font-weight: bold; padding: 10px 0px; margin: 0px 5px; letter-spacing: 0.2em; } /*「OVER 18 YEARS」などの小さい文字装飾*/ ul#menu li a span { display: block; font-size: 11px; /*文字サイズ*/ font-weight: normal; letter-spacing: normal; } /*マウスオン時*/ ul#menu li a:hover { background: #fff; /*背景色*/ color: #000; /*文字色*/ -webkit-box-shadow: none; box-shadow: none; text-shadow: none; } /*footer ---------------------------------------------------------------------------*/ footer { clear: both; padding-top: 15px; padding-bottom: 15px; } footer .pr { display: block; font-size: 80%; } footer a { text-decoration: none; } /*画面幅800px以下の設定 ---------------------------------------------------------------------------*/ @media screen and (max-width:800px){ /*コンテナー ---------------------------------------------------------------------------*/ #container { width: auto; margin: 10px; } } /*画面幅480px以下の設定 ---------------------------------------------------------------------------*/ @media screen and (max-width:480px){ /*ENTERとLEAVEのボタン ---------------------------------------------------------------------------*/ ul#menu { width: 100%; } ul#menu li a { margin: 0px 1%; width: 47%; } }
Save File
Cancel