/* Reset CSS */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

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

nav ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote::before, blockquote::after,
q::before, q::after { content: ''; content: none; }
a { margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
ins { background-color: #ff9; color: #000; text-decoration: none; }
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
input, select { vertical-align: middle; }

/* General Styles */
body {
  font: 13px/1.6 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: #666666;
  background: #ffffff;
  text-align: left;
  line-height: 1.8em;
}

select, input, textarea, button { font: 99% sans-serif; }
pre, code, kbd, samp { font-family: monospace, sans-serif; }
a { color: #607890; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #036; }
ul, ol { margin-left: 1.8em; }
ol { list-style-type: decimal; }
small { font-size: 85%; }
strong, th { font-weight: bold; }
td, td img { vertical-align: top; }
sub { vertical-align: sub; font-size: smaller; }
sup { vertical-align: super; font-size: smaller; }
pre {
  padding: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
textarea { overflow: auto; }
input[type="radio"], input[type="checkbox"] { vertical-align: baseline; }
label, input[type=button], input[type=submit], button { cursor: pointer; }
input:invalid, textarea:invalid {
  border-radius: 1px;
  box-shadow: 0px 0px 5px red;
}

/* Helper Classes */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.hidden { display: none; visibility: hidden; }
.visuallyhidden { position: absolute !important; clip: rect(1px 1px 1px 1px); }
.clearfix::before, .clearfix::after {
  content: " "; display: block; height: 0; visibility: hidden;
}
.clearfix::after { clear: both; }
.clearfix { zoom: 1; }

/* Media Queries */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  #container {
    width: 100%;
    padding: 0 20px;
  }
  aside.sidebar-container {
    width: 100%;
    padding: 20px 0;
  }
}

/* Links */
a { color: #875862; text-decoration: none; transition: color 0.3s ease; }
a:visited { color: #6e3f49; }
a:active, a:hover { color: #666666; text-decoration: underline; }

/* Body and Container Styles */
#container {
  width: 980px;
  margin: 40px auto;
  padding: 0;
}

#header-container {
  width: 100%;
  height: 300px;
  background-image: url(../img/rye.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  text-align: right;
}

#header-container header {
  width: 100%;
  height: 300px;
  position: relative;
}

#main-container {
  width: 100%;
  margin: 30px auto 0;
  padding: 0;
}

#main-container::after {
  content: "";
  display: block;
  clear: both;
}

/* Headers */
h1, h2, h3, h4 {
  font-weight: normal;
  margin: 0;
}

h1 {
  padding: 210px 3% 0 0;
  font-size: 20px;
  font-family: "ヒラギノ明朝 Pro W6", "Hiragino Mincho Pro", "HGS明朝E", "ＭＳ Ｐ明朝", serif;
}

.intro {
  margin: 10px 3% 0 0;
  font-size: 12px;
  color: #666666;
}

h1 a:link, h1 a:visited {
  color: #666666;
}

h1 a:hover {
  color: #cccccc;
  text-decoration: none;
}

h2 {
  font-size: 20px;
  padding: 0 0 20px 0;
  line-height: 1.5em;
  font-family: Georgia, "Times New Roman", Times, serif;
}

h3 {
  font-size: 15px;
  padding: 5px 0 5px 10px;
  margin-bottom: 20px;
  background-color: #948d83;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", Times, serif;
}

h4 {
  font-size: 20px;
  padding: 0 0 20px 0;
  color: #666666;
  font-family: Georgia, "Times New Roman", Times, serif;
}

h4 a {
  color: #666666;
  text-decoration: none;
}

h4 a:hover {
  color: #666666;
}

/* Content Styles */
div.entry {
  padding: 0;
}

p {
  margin: 0;
  padding: 0 0 18px 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.8em;
}

p.footer {
  margin: 0;
  padding: 0 0 18px 0;
  font-size: 13px;
  text-align: right;
}

dt {
  font-weight: bold;
  margin: 0;
  padding: 0 0 10px 0;
}

dd {
  margin: 0;
  padding: 0 0 10px 0;
}

blockquote {
  color: #666666;
  font-size: 15px;
  padding: 0 0 20px 20px;
  border-left: 5px solid #948d83;
}

pre {
  padding: 0 0 0 20px;
  margin: 0 0 20px 0;
}

a:link img, a:hover img {
  border: 0;
}

div.box {
  margin: 0;
  padding: 0;
  border: 0;
}

ul {
  margin: 0;
}

/* Side Styles */
aside.sidebar-container {
  width: 270px;
  padding: 0 20px 0 0;
  float: left;
}

aside#sidemenu {
  padding: 0 0 10px 0;
}

div.profile {
  margin: 0;
  padding: 0;
  background-color: #666666;
}

aside div.sns a {
  margin: 0;
  padding: 0;
  border: none;
  text-indent: -9999em;
  overflow: hidden;
  display: block;
}

aside div.sns a:hover {
  opacity: 0.7;
}

/* Footer Styles */
footer {
  width: 100%;
  padding: 0;
  margin: 30px auto 0;
  font-size: 12px;
  color: #999999;
  text-align: center;
}

footer p {
  margin: 0;
  padding: 0;
}
