/*********************************************************
*  Variables & Reset
*********************************************************/
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-link: #2b6cc2;
  --color-link-hover: #2660ad;
  --color-meta: #999999;
  --color-border: #eeeeee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*********************************************************
*  General
*********************************************************/
body {
  line-height: 1.6;
  color: #555;
  margin: 0 0;
  font-family: "Oxygen", sans-serif;
  font-weight: 400;
  background: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}

/* ページタイトルのh1, h2はOxygen
#header h1,
.post-title h2 {
  font-family: 'Oxygen', sans-serif;
} */

/*********************************************************
*  Container
*********************************************************/
#container {
  /* containerは幅制限なし、ページ全体を占める */
}

/*********************************************************
*  Header
*********************************************************/
#header {
  margin: 50px 40px 50px 310px;
  max-width: 500px;
}

#header h1 {
  font-weight: 300;
  font-size: 50px;
  margin: 0;
  line-height: 1;
}

#header h1 a {
  color: #222;
  text-decoration: none;
}

#header h1 a:hover {
  color: #222;
  text-decoration: underline;
}

/*********************************************************
*  Main Container
*********************************************************/
#main_container {
  position: relative;
}

#main {
  margin-left: 310px;
  margin-right: 70px;
  max-width: 500px;
}

/*********************************************************
*  Sidebar
*********************************************************/
#sidebar {
  clear: both;
  position: absolute;
  top: 0;
  width: 215px;
  font-weight: 300;
  margin-left: 40px;
}

#sidebar section {
  font-size: 14px;
  margin-top: 30px;
  margin-bottom: 50px;
}

#sidebar section:first-child {
  margin-top: 0 !important;
}

#sidebar section h3 {
  margin: 5px 0 0;
  font-size: 22px;
  color: #222;
  margin-bottom: 10px;
}

#sidebar section p, 
#sidebar section ul li {
  font-size: 14px;
}

#sidebar section ul {
  padding-left: 0;
  margin: 10px 0;
}

#sidebar section ul li {
  list-style: none;
}

#sidebar .search-archive input[type="text"] {
  width: 100%;
  max-width: 180px;
  padding: 5px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: 'Oxygen', sans-serif;
}

#sidebar .archive-link {
  margin-top: 5px;
  font-size: 13px;
}

/*********************************************************
*  Posts
*********************************************************/
.post {
  font-size: 16px;
  color: #555;
  margin-top: 40px;
  margin-bottom: 80px;
}

.post:first-child {
  margin-top: 0;
}

/* Back to blog link (single post only) */
.back-to-blog {
  margin: 40px 0px;
  font-size: 14px;
}

.back-to-blog a {
  color: var(--color-link);
  text-decoration: none;
}

.back-to-blog a:hover {
  text-decoration: underline;
}

.post-title {
  margin-bottom: 20px;
}

.post-title h2 {
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 5px 0;
}

.post-title h2 a {
  color: var(--color-link);
  text-decoration: none;
}

.post-title h2 a:hover {
  text-decoration: underline;
}

.post-body {
  font-family: 'Oxygen', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.post-body p {
  margin: 24px 0;
}

.post-body h1, 
.post-body h2, 
.post-body h3 {
  font-family: 'Crimson Text', serif;
  color: #333;
  margin-top: 30px;
}

.post-body h1 {
  font-size: 22px;
}

.post-body h2 {
  font-size: 20px;
}

/* 詳細ページの本文内の h2 を青色にする */
.single-post .post-body h2 {
  color: var(--color-link);
}

.post-body h3 {
  font-size: 22px;
  font-style: italic;
}

.post-body a {
  color: var(--color-link);
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}

.post-body blockquote {
  margin-left: 0;
  padding-left: 10px;
  border-left: 4px solid #eee;
  font-size: 16px;
  color: #666;
}

.post-body blockquote p {
  font-size: 16px;
}

.post-body pre {
  font-size: 13px;
  background: #f5f5f5;
  padding: 10px;
  overflow-x: auto;
}

.post-body code {
  font-family: monospace;
  background: #f5f5f5;
  padding: 2px 4px;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body img,
.post-body object,
.post-body embed,
.post-body iframe {
  max-width: 100%;
}

.post-body img {
  height: auto;
}

.homepage-post-footer {
  margin: 30px 0;
  font-size: 14px;
}

.display-date {
  font-family: 'Oxygen', sans-serif;
  font-size: 14px;
  color: var(--color-meta);
}

.display-date a {
  color: var(--color-meta);
  text-decoration: none;
}

.display-date a:hover {
  text-decoration: underline;
}

/*********************************************************
*  Pagination
*********************************************************/
.pagination {
  margin: 100px 0;
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

.pagination ul {
  margin: 0 0 40px 0;
  padding: 0;
  list-style: none;
}

.pagination ul li {
  list-style: none;
  margin-left: 0;
  float: left;
  display: block;
  font-size: 12px;
  height: 40px;
}

.pagination ul li a {
  padding: 10px 15px;
  border: 1px solid #ddd;
  margin-right: 5px;
  text-decoration: none;
  color: var(--color-link);
}

.pagination ul li.gap a {
  padding: 10px 5px;
  border: none;
  margin-right: 5px;
}

.pagination ul li.active a {
  color: #222;
  font-weight: bold;
  background-color: #f5f5f5;
}

.pagination ul li a:hover {
  background-color: #eee;
  text-decoration: none;
}

.pagination::after {
  content: "";
  display: table;
  clear: both;
}

/*********************************************************
*  Responsive Design
*********************************************************/
@media handheld, only screen and (max-width: 960px) {
  #sidebar {
    width: 140px;
  }

  #sidebar section {
    font-size: 12px;
  }

  #sidebar section p,
  #sidebar section ul li {
    font-size: 12px;
  }

  #main, #header {
    margin-left: 230px;
  }

  .pagination ul li a {
    padding: 5px 6px;
  }
}

@media handheld, only screen and (max-width: 767px) {
  #sidebar {
    position: inherit;
    width: auto;
  }

  #header, #sidebar, #main {
    margin: 0 20px 20px;
    float: none;
  }

  #main_container {
    margin-top: 30px;
  }

  #header h1 {
    font-size: 30px;
  }

  #header h2 {
    font-size: 20px;
  }
}
