* {
  margin: 0;
  padding: 0;
}

a img {
  border: none;
}

html {
  background: #f4f4f4;
}

body {
  box-sizing: border-box;
  width: 1024px;
  color: #000000;
  background: #ffffff;
  margin: 0 auto;
  padding: 18pt;
  font-size: 12pt;
  font-family: 'Verdana', 'メイリオ', 'Meiryo', 'ヒラギノ丸ゴ Pro W4', 'Hiragino Maru Gothic Pro', 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  line-height: 18pt;
}

body > * {
  margin: 0 0 9pt;
}

button {
  padding: 0.25em 1em;
  font-size: 12pt;
  font-family: 'Verdana', 'メイリオ', 'Meiryo', 'ヒラギノ丸ゴ Pro W4', 'Hiragino Maru Gothic Pro', 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}

/* HEADER */

header {
  display: block;
  white-space: nowrap;
  line-height: 1.0em;
}

header > #header-logo {
  display: inline-block;
  width: 67%;
  vertical-align: middle;
}

header > #google-search {
  display: inline-block;
  width: 33%;
  vertical-align: middle;
}

/* GOOGLE CUSTOM SEARCH */

div.gsc-control-cse {
  padding: 0;
  margin: 0;
}

form.gsc-search-box {
  margin-bottom: 0px !important;
}

/* TOP-NAVI */

nav#top-nav ul.top-nav {
  border-radius: 1em;
  border: 3px solid #000;
  overflow: hidden;
  white-space: nowrap;
}

nav#top-nav ul.top-nav > li {
  display: inline;
  list-style-type: none;
}

nav#top-nav ul.top-nav > li > a {
  display: inline-block;
  min-width: 4.5em;
  border-right: 3px solid #000;
  padding: 0.75em 1.5em;
  line-height: 1em;
  text-decoration: none;
  font-weight: bold;
}

.top-nav a:link, .top-nav a:visited {
  color: #888;
}
.top-nav a:hover, .top-nav a:active {
  background-color: #ffcccc;
  background: linear-gradient(#ffeeee, #ffcccc);
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffeeee), to(#ffcccc));
  background: -moz-linear-gradient(#ffeeee, #ffcccc);
  background: -o-linear-gradient(#ffeeee, #ffcccc);
  filter: progid:DxImageTransform.Microsoft.Gradient(Enabled=1,GradientType=0,StartColorStr=#ffffeeee,EndColorStr=#ffffcccc);
  color: #000;
}

.top-nav .selected a:link, .top-nav .selected a:visited {
  background-color: #cccccc;
  background: linear-gradient(#eeeeee, #cccccc);
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#eeeeee), to(#cccccc));
  background: -moz-linear-gradient(#eeeeee, #cccccc);
  background: -o-linear-gradient(#eeeeee, #cccccc);
  filter: progid:DxImageTransform.Microsoft.Gradient(Enabled=1,GradientType=0,StartColorStr=#ffeeeeee,EndColorStr=#ffcccccc);
  color: #f00;
}
.top-nav .selected a:hover, .top-nav .selected a:active {
  background-color: #ffcccc;
  background: linear-gradient(#ffeeee, #ffcccc);
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffeeee), to(#ffcccc));
  background: -moz-linear-gradient(#ffeeee, #ffcccc);
  background: -o-linear-gradient(#ffeeee, #ffcccc);
  filter: progid:DxImageTransform.Microsoft.Gradient(Enabled=1,GradientType=0,StartColorStr=#ffffeeee,EndColorStr=#ffffcccc);
  color: #f00;
}

/* TOP-NAV for Moblie */

header > .top-nav-switch,
#top-nav .top-nav-back {
  display: none;
  visibility: hidden;
}
#top-nav-opened {
  display: none;
  visibility: hidden;
}

/* FOOT-ADS */

#foot-ads {
  width: 100%;
  text-align: center;
  /*margin: 1.5em 0em;*/
}
#foot-ads .ad-cell {
  display: inline-block;
}

/* FOOTER */

#footer {
  text-align: right;
  font-size: 9pt;
  line-height: 1em;
}

#footer > *:first-child {
  margin-bottom: 4px;
  border-bottom: 3px solid #000;
  padding-bottom: 3px;
}

#footer a {
  text-decoration: none;
}
#footer a:link, #footer a:visited {
  color: #a850ff;
}
#footer a:hover, #footer a[href]:hover {
  color: #000;
  background-color: #e0c2ff;
  background: linear-gradient(#ffd2ff, #e0c2ff);
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffd2ff), to(#e0c2ff));
  background: -moz-linear-gradient(#ffd2ff, #e0c2ff);
  background: -o-linear-gradient(#ffd2ff, #e0c2ff);
  filter: progid:DxImageTransform.Microsoft.Gradient(Enabled=1,GradientType=0,StartColorStr=#ffffd2ff,EndColorStr=#ffe0c2ff);
}

/* MAIN-* */

#main > * {
  vertical-align: top;
}

#main-main {
  display: inline-block;
  width: 75%;
}

#main-sub {
  display: inline-block;
  width: 25%;
  /*max-width: 320px;*/
  overflow: hidden;
}

#main-sub > * {
  margin-left: 9pt;
}

.main a {
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}
.main a:link, .main a:visited {
  color: #a850ff;
}
.main a:hover, .main a[href]:hover, .main a:active {
  color: #000;
  background-color: #e0c2ff;
  background: linear-gradient(#ffd2ff, #e0c2ff);
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffd2ff), to(#e0c2ff));
  background: -moz-linear-gradient(#ffd2ff, #e0c2ff);
  background: -o-linear-gradient(#ffd2ff, #e0c2ff);
  filter: progid:DxImageTransform.Microsoft.Gradient(Enabled=1,GradientType=0,StartColorStr=#ffffd2ff,EndColorStr=#ffe0c2ff);
}

/* for sub-scroll */

#top-nav {
  margin-bottom: 0;
}

#main {
  margin-top: 0;
  margin-bottom: 0;
}

#main > * {
  margin-top: 9pt;
}

#main-main {
  margin-bottom: 9pt;
}
