@charset "UTF-8";
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border-left: 0;
  border-right: 0;
  font-style: normal;
  font-weight: normal;
  font-size: 100%;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

html {
  overflow-y: scroll;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

input, textarea {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style-image: none;
  list-style-type: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th {
  text-align: left;
}

a:focus {
  outline: none;
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

.clearfix {
  min-height: 1px;
}

* html .clearfix {
  height: 1px;
  /*¥*/
  /*/
  height: auto;
  overflow: hidden;
  /**/
}

.both {
  clear: both;
}

.inline_block {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

/* よく使うCSS start

img {
	max-width:100%;
}

table {
	width:100%;
}

a,a:hover {
	-webkit-transition: 0.7s;
	-moz-transition: 0.7s;
	-o-transition: 0.7s;
	transition: 0.7s;
}

a img:hover {
	filter: alpha(opacity=75);
	-moz-opacity:0.75;
	opacity:0.75;
}

よく使うCSS end -----
時々使うCSS3 start ---

テキストシャドウ {
	text-shadow: 1px 1px 3px #000;
}

テキストシャドウ {
	text-shadow: 1px 1px 3px #000;
}

ボックスシャドウ {
	-moz-box-shadow: 1px 1px 3px #000;
	-webkit-box-shadow: 1px 1px 3px #000;
	box-shadow: 1px 1px 3px #000;
}

ボックスシャドウ内側 {
	-moz-box-shadow: inset 1px 1px 3px #000;
	-webkit-box-shadow: inset 1px 1px 3px #000;
	box-shadow: inset 1px 1px 3px #000;
}

角丸 {
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
}

トランジション {
	-webkit-transition: 1.5s;
	-moz-transition: 1.5s;
	-o-transition: 1.5s;
	transition: 1.5s;
}

透明 {
	filter: alpha(opacity=25);
	-moz-opacity:0.25;
	opacity:0.25;
}

背景のみ透明 {
	background-color:rgba(255,255,255,0.2);
}

グラデーション {
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#000000');
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#000000')";
	background-image: -moz-linear-gradient(top, #ffffff, #000000);
	background-image: -ms-linear-gradient(top, #ffffff, #000000);
	background-image: -o-linear-gradient(top, #ffffff, #000000);
	background-image: -webkit-gradient(linear, center top, center bottom, from(#ffffff), to(#000000));
	background-image: -webkit-linear-gradient(top, #ffffff, #000000);
	background-image: linear-gradient(top, #ffffff, #000000);
}

スマホ対応
@media screen and (max-width: 480px){

}
@media screen and (max-width: 320px){

}

時々使うCSS3 end */
/*
floatをリセットするために用いる.clearfix については、過去記事をご覧ください。
知らない人は是非お使いください。かなり便利だと思います。
>>2013年のリセットcss

シンプルなCSSを目指して

様々なデバイス対応が必要な現在、CSSをシンプル・効率的に利用する必要があります。

自分が作るサイトでは、IDへのスタイルシートを原則禁止、importantもなるべく使わないようにしています。
CSSには、クラスしかない。それはとてもスマートです。

そして何より、ID・importantは、公開前の最終調整・公開後の追加等の作業時に使う奥の手として取っておくことができますので、優先順位問題に苦労することも無くなります。

スマートなCSSにするためのHTMLサンプル


<div id="special_content" class="special_content content">

content


</div>

---CSS---
*/
.special_content {
  width: 100%;
}

.content p {
  color: #333;
}

body {
  background-color: #ffffff;
  font-size: 16px;
  line-height: 160%;
  color: #333333;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  margin: 0;
  padding: 0;
}

img {
  vertical-align: bottom;
  margin-top: 0;
  border-style: none;
}

.center {
  text-align: center;
}

/*
a {
	color: #B30000;
	text-decoration: underline;
}
a:link {
	color: #B30000;
	text-decoration: underline;
}
a:active {
	color: #B30000;
	text-decoration: underline;
}
a:hover {
	color: #FF2626;
	text-decoration: underline;
}
*/
.alpha a:hover img {
  opacity: 0.7;
  filter: alpha(opacity=70);
  -ms-filter: "alpha(opacity=70)";
}

.mgb10 {
  margin-bottom: 10px;
}

.mgb20 {
  margin-bottom: 20px;
}

.mgb30 {
  margin-bottom: 30px;
}

.mgb40 {
  margin-bottom: 40px;
}

.mgr10 {
  margin-right: 10px;
}

.mgr20 {
  margin-right: 20px;
}

.mgr30 {
  margin-right: 30px;
}

.mgr40 {
  margin-right: 40px;
}

.mgl10 {
  margin-left: 10px;
}

.mgl20 {
  margin-left: 20px;
}

.mgl30 {
  margin-left: 30px;
}

.mgl40 {
  margin-left: 40px;
}

.mgt10 {
  margin-top: 10px;
}

.mgt20 {
  margin-top: 20px;
}

.mgt30 {
  margin-top: 30px;
}

.mgt40 {
  margin-top: 40px;
}

.row-fluid [class*="span"] {
  float: none;
}

.header-container-wrapper, .body-container-wrapper, .footer-container-wrapper {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 1000px;
}

#page-top {
  width: 54px;
  height: 69px;
  display: none;
  position: fixed;
  bottom: 0;
  right: 20px;
}

#page-top p {
  margin: 0;
  padding: 0;
  text-align: center;
  background: #3b3b3b;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

#page-top p:hover {
  background: #8b8b8b;
}

#move-page-top {
  color: #fff;
  line-height: 50px;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

h1 {
  margin-bottom: 10px;
}

h2 {
  background-color: #DB0442;
  color: #ffffff;
  display: block;
  font-size: 26px;
  -webkit-border-radius: 30px;
          border-radius: 30px;
  margin-bottom: 10px;
  padding-top: 10px;
  padding-left: 20px;
  padding-bottom: 10px;
  text-align: left;
}

header {
  text-align: left;
}

.header {
  padding: 20px;
}

.header img {
  max-width: 100%;
}

.header .logo {
  float: left;
}

.header .ii-tokyu-logo {
  float: right;
  width: 130px;
  max-width: 32%;
  margin-top: -20px;
}

.main {
  margin-bottom: 40px;
}

.cont {
  margin-bottom: 60px;
}

.main .m_left {
  width: 467px;
  float: left;
}

.main .m_right {
  width: 470px;
  float: right;
  text-align: left;
}

.caution {
  font-size: 12px;
}

.part {
  margin-bottom: 40px;
}

.cont .part p {
  width: 910px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.cont .part .time {
  font-size: 140%;
  font-weight: bold;
  line-height: 160%;
}

.cont .btn {
  background-color: #EEEEEE;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

.tpcard {
  background-image: url(https://cdn2.hubspot.net/hubfs/6202132/IIT_2019_Theme/Teiki/images/tp06.png);
  background-repeat: repeat-y;
  padding-left: 70px;
  padding-right: 70px;
}

.tpbtn {
  margin-top: 40px;
}

.f_left {
  float: left;
}

.f_right {
  float: right;
  width: 405px;
  text-align: left;
}

.c_both {
  clear: both;
}

.forsp {
  display: none;
}

.sp_title {
  display: none;
}

.footer {
  padding-top: 30px;
  padding-bottom: 30px;
  clear: both;
  font-size: 80%;
  width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  text-align: center;
}

.footer .footer_com {
  display: block;
  position: absolute;
}

@media screen and (max-width: 768px) {
  body {
    background-color: #ffffff;
  }
  img {
    vertical-align: bottom;
    margin-top: 0px;
    border-style: none;
  }
  .center {
    text-align: center;
  }
  /*
  a {
    color: #B30000;
    text-decoration: underline;
  }
  a:link {
    color: #B30000;
    text-decoration: underline;
  }
  a:active {
    color: #B30000;
    text-decoration: underline;
  }
  a:hover {
    color: #FF2626;
    text-decoration: underline;
  }
  */
  .alpha a:hover img {
    opacity: 0.7;
    filter: alpha(opacity=70);
    -ms-filter: "alpha(opacity=70)";
  }
  .mgb10 {
    margin-bottom: 10px;
  }
  .mgb20 {
    margin-bottom: 20px;
  }
  .mgb30 {
    margin-bottom: 30px;
  }
  .mgb40 {
    margin-bottom: 40px;
  }
  .mgr10 {
    margin-right: 10px;
  }
  .mgr20 {
    margin-right: 20px;
  }
  .mgr30 {
    margin-right: 30px;
  }
  .mgr40 {
    margin-right: 40px;
  }
  .mgl10 {
    margin-left: 10px;
  }
  .mgl20 {
    margin-left: 20px;
  }
  .mgl30 {
    margin-left: 30px;
  }
  .mgl40 {
    margin-left: 40px;
  }
  .mgt10 {
    margin-top: 10px;
  }
  .mgt20 {
    margin-top: 20px;
  }
  .mgt30 {
    margin-top: 30px;
  }
  .mgt40 {
    margin-top: 40px;
  }
  .forpc {
    display: none;
  }
  .forsp {
    display: block;
  }
  .header-container-wrapper, .body-container-wrapper, .footer-container-wrapper {
    width: 100%;
  }
  #page-top {
    width: 54px;
    height: 69px;
    display: none;
    position: fixed;
    bottom: 0;
    right: 20px;
  }
  #page-top p {
    margin: 0;
    padding: 0;
    text-align: center;
    background: #3b3b3b;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  #page-top p:hover {
    background: #8b8b8b;
  }
  #move-page-top {
    color: #fff;
    line-height: 50px;
    text-decoration: none;
    display: block;
    cursor: pointer;
  }
  h1 {
    margin-bottom: 10px;
  }
  h2 {
    background-color: #DB0442;
    color: #ffffff;
    display: block;
    -webkit-border-radius: 30px;
            border-radius: 30px;
    margin-bottom: 10px;
    padding-top: 10px;
    padding-left: 20px;
    padding-bottom: 10px;
    text-align: left;
  }
  #header {
    text-align: left;
  }
  #header .logo {
    width: 40%;
  }
  .main {
    margin-bottom: 40px;
    width: 100%;
  }
  .cont {
    margin-bottom: 60px;
  }
  .sp_title {
    width: 100%;
  }
  .main img {
    width: 100%;
  }
  .part p img {
    width: 100%;
  }
  .main .m_left {
    width: auto;
    float: none;
  }
  .main .m_right {
    width: auto;
    float: none;
    text-align: left;
  }
  .caution {
    font-size: 12px;
  }
  .part {
    margin-bottom: 40px;
  }
  .cont .part p, .main p {
    width: auto;
    margin-left: 5%;
    margin-right: 5%;
    text-align: left;
  }
  .cont .part .time {
    font-size: 140%;
    font-weight: bold;
    line-height: 160%;
  }
  .cont .btn {
    background-color: #EEEEEE;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
  }
  .btn img {
    width: 90%;
    height: auto;
  }
  .card img {
    width: 100%;
    height: auto;
  }
  .tpcard {
    padding-left: 5%;
    padding-right: 5%;
    background-color: #F1E9DA;
    padding-top: 20px;
    padding-bottom: 10px;
  }
  .tpbtn {
    margin-top: 40px;
  }
  .f_left {
    float: none;
  }
  .f_right {
    float: none;
    width: 100%;
    text-align: left;
  }
  .c_both {
    clear: both;
  }
  .footer {
    padding-top: 30px;
    padding-bottom: 30px;
    clear: both;
    font-size: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    text-align: center;
    width: 100%;
  }
  .footer .footer_com {
    position: relative;
  }
}
