html {
  font-size: 62.5%;
}
body {
  background-color: #FFF;
  color: #454545;
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', 'MS PGothic', sans-serif;
  margin: 0;
}
a:link,
a:visited {
  color: #1570A6;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
#masa_menu {
  height:33px;
  font-weight:bold;
  font-size: 20px;
  font-size: 2.0rem;
}
.masa_menu_item, .masa_menu_item_active {
  float:left;
  display:inline;
  list-style-type:none;
  background-repeat: no-repeat;
}
.masa_menu_item a {
  display: block;
  border: 0;
  border-right: solid 1px #FFF;
  text-decoration: none;
  color: #FFF;
  margin: 0;
  padding: 4px 12px;
  text-align: center;
}
.masa_menu_item a:hover {
  display: block; 
  text-decoration: underline;
}
.masa_menu_item.active a {
  color: #000;
  background-color: #FFF;
}
.masa_menu_item.last a {
  border-right: 0;
}
#spv_menu {
  display: none;
}

#container {
  margin: 0 auto 30px;
  padding-top: 0;
}
#container #content {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -ms-box-sizing: border-box;
  display: block;
  margin: 20px auto;
  padding: 20px;
  width: 980px;
  background-color: #FFF;
  *zoom: 1;
}
#container #content:after {
  display: block;
  clear: both;
  content: "";
}
#main {
  float: left;
  width: 600px;
}
#side {
  float: right;
  width: 300px;
  line-height: 1.5;
}

#header {
  background-color: #000;
  color: #FFF;
}
#header-logo {
  width: 100% !important;
  padding: 20px 0;
  background-size: cover;
}
#header h1 a:link,
#header h1 a:visited{
  color: #FFF;
  font-weight: 400;
  background: url(http://re.masahiko.info/icon.gif) no-repeat top left;
  background-position-y: 50%;
  padding-left: 42px;
}
#header h1,
#header h2,
#masa_menu {
  width: 940px;
  margin: 0 auto;
  padding: 0;
}
#header h1 {
  font-size: 38px;
  font-size: 3.8rem;
}
#header-title {
  margin: 0;
}
#header-title a {
  color: #454545;
}
#header-desc {
  margin: 0;
  font-weight: normal;
  font-size: 14px;
  font-size: 1.4rem;
}

.entry-header {
  position: relative;
  margin-bottom: 20px;
  padding: 0 0 2px 0;
}
.entry-date {
  margin: 10px 0 2px 2px;
  color: #9EA3AF;
  font-size: 16px;
  font-size: 1.6rem;
}
.entry-date a {
  color: #9EA3AF;
  text-decoration: none;
}
.entry-title {
  margin: 0;
  border-bottom: 1px solid #C1C6D6;
  color: #7C828C;
  font-weight: 400;
  font-size: 30px;
  font-size: 3rem;
  line-height: 1.35em;
}
.entry-title a:link,
.entry-title a:visited {
  color: #7C828C;
  text-decoration: none;
}
.entry-title a:hover {
  text-decoration: underline;
}
.entry-categories {
  margin-top: 8px;
  font-size: 10px;
  font-size: 1rem;
}
.entry-categories:after {
  display: block;
  clear: both;
  content: "";
}
.entry-categories a {
  display: block;
  float: left;
  height: 14px;
  line-height: 15px;
  margin-right: 6px;
  padding: 8px;
  background: #E8EAED;
  color: #666;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
  transition: all 0.1s linear;
  *display: inline;
  *zoom: 1;
}
.entry-categories a:hover {
  background-color: #D1D3D6;
}
.entry-categories.no-categories {
  margin: 0;
}
.entry-content {
  padding-bottom: 10px;
  border-bottom: 1px solid #CCD1E2;
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 1.7;
}
.entry-content p {
  margin: 0 0 1em 0;
}
.entry-content img {
  max-width: 100%;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1.3em 0 0.2em 0;
  color: #7C828C;
  font-weight: 400;
  line-height: 1.5;
}
.entry-content h1 {
  font-size: 26px;
  font-size: 2.6rem;
}
.entry-content h2 {
  font-size: 24px;
  font-size: 2.4rem;
}
.entry-content h3 {
  font-size: 22px;
  font-size: 2.2rem;
}
.entry-content h4 {
  font-size: 20px;
  font-size: 2rem;
}
.entry-content h5 {
  font-size: 18px;
  font-size: 1.8rem;
}
.entry-content h6 {
  font-size: 16px;
  font-size: 1.6rem;
}
.entry-content table {
  margin-bottom: 1em;
  border-spacing: 0;
  border-collapse: collapse;
}
.entry-content table th,
.entry-content table td {
  padding: 5px 10px;
  border: 1px solid #CCD1E2;
}
.entry-content table th {
  background: #F0F0F0;
  color: #7C828C;
}
.entry-content blockquote {
  margin: 0 0 10px;
  padding: 20px;
  background-color: #F0F0F0;
}
.entry-content blockquote p {
  margin-top: 0;
  margin-bottom: 0;
}
.entry-content pre {
  margin: 0 0 10px;
  padding: 20px;
  background-color: #3D3F44;
  color: #FFF;
  white-space: pre;
}
.entry-content pre > code {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre;
  font-family: 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
}
.entry-content pre .synIdentifier {
  color: #66D9EF;
}
.entry-content pre .synType {
  color: #A6E22E;
}
.entry-content pre .synConstant {
  color: #F2777A;
}
.entry-content pre .synComment {
  color: #777;
}
.entry-content pre .synSpecial {
  color: #F92649;
}
.entry-content code {
  margin: 0 2px;
  padding: 0 5px;
  border: 1px solid #EAEAEA;
  border-radius: 3px;
  background-color: #F8F8F8;
  font-size: 12px;
  font-size: 1.2rem;
  font-family: 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
}
.entry-content .hatena-asin-detail {
  padding: 15px;
  border: none;
  background-color: #F0F0F0;
}
.entry-content .hatena-asin-detail li {
  line-height: 1.5;
}

.side-module {
  margin-bottom: 60px;
}
.side-module-title {
  padding-bottom: 3px;
  border-bottom: 1px solid #C1C6D6;
  color: #7C828C;
  font-weight: 700;
  font-size: 12px;
  font-size: 1.2rem;
  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
  transition: all 0.1s linear;
}
.side-module-title a {
  color: #7C828C;
  text-decoration: none;
}
.side-module-title a:hover {
  text-decoration: underline;
}
/* Profile module */
.side-module-profile .side-module-title {
  border-bottom: none;
}
.side-module-profile-body {
  padding: 15px;
  background-color: #000;
}
.side-module-profile-body .profile-icon {
  float: left;
  margin: 0 10px 10px 0;
  background-clip: padding-box;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
}
.side-module-profile-body .hatena_id {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
  font-size: 1.4rem;
}
.side-module-profile-body .profile-desc {
  font-size: 12px;
  font-size: 1.2rem;
  color: #FFF;
}
.side-module-profile-body .profile-desc p {
  margin-top: 0;
}
.side-module-profile-body a:link,
.side-module-profile-body a:visited {
  color: #FFF;
}
.btn-facebook-subsc {
	height: 30px;
}
.side-urllist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-urllist li {
  line-height: 1.5;
}
.side-urllist li a {
  display: block;
  padding: 8px 10px;
  border-bottom: 1px solid #D8DDE5;
  color: #7C828C;
  text-decoration: none;
  font-size: 12px;
  font-size: 1.2rem;
  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
  transition: all 0.1s linear;
}
.side-urllist li a:hover {
  background-color: #000;
  color: #FFF;
}
.side-urllist li a:hover + span time.recent-comment-time {
  color: #FFF !important;
}
.main-urllist {
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #CCC;
}
.main-urllist li {
  line-height: 1.5;
}
.main-urllist li a {
  display: block;
  padding: 8px 10px;
  border-bottom: 1px solid #D8DDE5;
  color: #7C828C;
  text-decoration: none;
  font-size: 12px;
  font-size: 1.2rem;
  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
  transition: all 0.1s linear;
}
.main-urllist li a:hover {
  background-color: #000;
  color: #FFF;
}
.main-urllist li a:hover + span time.recent-comment-time {
  color: #FFF !important;
}

@media (min-width: 1200px) {
  #container #content {
    width: 1200px;
  }
  #header h1,
  #header h2,
  #masa_menu {
    width: 1160px;
  }
  #main {
    width: 820px;
  }
}

@media (max-width: 1024px) {
  #wrapper:after {
    display: block;
    clear: both;
    content: "";
  }
  #container {
    overflow: hidden;
    margin: 0;
    word-wrap: break-word;
  }
  #container #content {
    margin: 0;
    padding: 0;
    width: 100%;
    background: none;
  }
  #header h1,
  #header h2,
  #masa_menu {
    width: 94%;
    margin: 0 auto;
  }
  #wrapper {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 2% auto;
    padding: 2%;
    width: 98%;
    background-color: #FFF;
  }
  #main {
    float: none;
    width: 100%;
  }
  .entry-title {
    font-size: 34px;
    font-size: 3.4rem;
  }
  .entry-categories {
    font-size: 12px;
    font-size: 1.2rem;
  }
  .entry-content {
    font-size: 16px;
    font-size: 1.6rem;
  }
  .entry-content h1 {
    font-size: 30px;
    font-size: 3rem;
  }
  .entry-content h2 {
    font-size: 28px;
    font-size: 2.8rem;
  }
  .entry-content h3 {
    font-size: 26px;
    font-size: 2.6rem;
  }
  .entry-content h4 {
    font-size: 24px;
    font-size: 2.4rem;
  }
  .entry-content h5,
  .page-archive #main ul li a.entry-title {
    font-size: 22px;
    font-size: 2.2rem;
  }
  .entry-content h6 {
    font-size: 20px;
    font-size: 2rem;
  }
  #header h1 {
    font-size: 42px;
    font-size: 4.2rem;
  }
  #header-desc {
    font-size: 16px;
    font-size: 1.6rem;
  }
  #side {
    float: none;
    clear: both;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -ms-box-sizing: border-box;
    padding: 20px 3%;
    width: 100%;
    color: #FFF;
    background-color: #000;
  }
  #side:after {
    display: block;
    clear: both;
    content: "";
  }
  #side-inner {
    width: 100%;
  }
  .side-module {
    float: left;
    margin: 0 8% 50px 0;
    width: 46%;
  }
  .side-module:nth-child(even) {
    margin-right: 0;
  }
  .side-module:nth-child(odd) {
    clear: right;
  }
  .side-module-title {
    border-bottom: 1px solid rgba(255,255,255,.5);
    color: #FFF;
    font-size: 16px;
    font-size: 1.6rem;
  }
  .side-module-title a,
  .recent-comments li .user-id,
  .recent-comments .recent-comment-time {
    color: #FFF;
  }
  .side-urllist li a {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,.5);
    color: #FFF;
  }
  .side-urllist li a:hover {
    background-color: rgba(0,0,0,.2) !important;
  }
  .side-module-profile .side-module-body {
    padding: 0;
  }
  .side-urllist li a {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,.5);
    color: #FFF;
  }
  .side-urllist li a:hover {
    background-color: rgba(0,0,0,.2) !important;
  }
  .side-urllist li a, {
    font-size: 16px;
    font-size: 1.6rem;
  }
}

#footer {
  background-color: #000;
  color: #FFF;
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, 'Hiragino Kaku Gothic Pro', Meiryo, 'MS PGothic', sans-serif;
  font-size: 12px;
  height: 42px;
  line-height: 18px;
  padding-bottom: 5px;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 8px;
  text-align: center;
}
