/* Based on Minimal Theme by Artur Kim (http://arturkim.com) for Tumblr | version 1.5 */

/* RESET */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code, del, em, img, ins, kbd, q, s, samp, small, strong, sub, sup,
b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, figure,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent;
}
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
del { text-decoration: line-through; }
table { border-collapse: collapse; border-spacing: 0; }

/* GLOBAL ELEMENTS */
body { background: #fff; }
body, input, textarea {
  color: #000;
  font: 14px/20px "helvetica neue", helvetica, arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
p, ul, ol, dd, pre { margin-bottom: 20px; }
blockquote { border-left: 5px solid #ddd; color: #555; font-style: italic; margin-bottom: 20px; padding-left: 10px; }
hr { background-color: #ccc; border: 0; color: #555; height: 1px; margin-bottom: 20px; }
a:link, a:visited { color: #555; }
a:focus, a:hover, a:active { color: #dd3333; }
h1, h2, h3, h4, h5, h6 { font-weight: normal; clear: both; }
img { background: transparent; }

/* HEADER */
#header .menu {
  border-bottom: 1px solid #ccc;
  margin: 0 auto 3px;
  overflow: hidden;
  padding: 20px 0 10px;
  width: 900px;
}
#header #pages { float: left; width: 580px; }
#header #pages ul { float: left; margin-bottom: 0; }
#header #pages li { float: left; margin-right: 10px; padding: 4px 10px 3px 0; }
#header #pages a, #header #pages a:visited { color: #555; font-size: 16px; text-decoration: none; }
#header #pages a:focus, #header #pages a:hover, #header #pages a:active { color: #dd3333; }
#header #search { float: right; }
#header #search input { border: 1px solid #ccc; line-height: 20px; padding: 4px; }
#header #search input.search-button { background: #eee; color: #555; padding: 3px; width: 60px; cursor: pointer; margin-left: 4px; }
#header #branding {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin: 0 auto 3px;
  padding: 40px 0;
  width: 900px;
}
#header h1 a { color: #111; font: 80px Georgia, serif; font-weight: normal; line-height: 100px; text-decoration: none; }
#header h1 a:focus, #header h1 a:hover, #header h1 a:active { color: #dd3333; }

/* MAIN */
#main {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  clear: both;
  margin: 0 auto 3px;
  overflow: hidden;
  width: 900px;
}
#container { border-right: 1px solid #ccc; float: left; min-height: 400px; width: 580px; }

.post-meta { border-bottom: 1px solid #ccc; color: #555; overflow: hidden; padding: 9px 0; }
.post-meta .type { float: left; }
.post-meta .type a { border-bottom: 1px solid #555; color: #555; font-weight: bold; padding: 0 10px 10px; text-decoration: none; }
.post-meta .type a:focus, .post-meta .type a:hover, .post-meta .type a:active { margin-left: 5px; }
.post-meta .date { float: left; padding: 0 10px; }

.post-content { padding: 30px 30px 60px; }
.post-content h3 { font: 20px Georgia, serif; margin-bottom: 20px; }
.post-content h3 a, .post-content h3 a:visited { color: #111; text-decoration: none; }
.post-content h3 a:focus, .post-content h3 a:hover { color: #dd3333; }
.post-content img.photo {
  display: block;
  box-sizing: border-box;
  width: 520px; max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}
.post-content .caption p:last-child, .post-content .tags p { margin-bottom: 0; }
.post-content .caption { overflow-wrap: anywhere; }
.post-content .caption p:first-child { font-weight: bold; color: #111; }
.tags { font-size: 13px; margin-top: 20px; }
.tags a { text-decoration: none; }
.tags a:after { content: ","; }
.tags a:last-child:after { content: ""; }

.list-heading { border-bottom: 1px solid #ccc; color: #555; padding: 9px 20px; }
.count { color: #999; }

.pagination { border-top: 1px solid #ccc; overflow: hidden; padding: 20px 0 20px 30px; }
.pagination .previous-page { float: left; }
.pagination .next-page { float: right; margin-right: 30px; }
.pagination a { font: 20px Georgia, serif; text-decoration: none; }

/* ARCHIVE */
.archive { padding: 10px 30px 40px; }
.archive-year { font: 28px Georgia, serif; color: #111; margin: 20px 0 15px; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.archive-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; box-sizing: border-box; }

/* SEARCH */
.search-row { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 30px; }
.search-row img { flex: none; }
.search-row h3 { font-size: 16px; margin-bottom: 8px; }
.search-row p { color: #555; font-size: 13px; margin: 0; }

/* SIDEBAR */
#sidebar { float: left; padding-bottom: 30px; width: 319px; }
#sidebar h3 {
  border-bottom: 1px dotted #ccc;
  color: #999;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 20px;
  padding: 9px 20px;
  text-transform: uppercase;
}
#sidebar ul { margin-bottom: 0; }
.widget { border-bottom: 1px solid #ccc; color: #333; font-size: 13px; padding: 0 20px 20px 20px; }
.widget p:last-child { margin-bottom: 0; }
#categories li { padding: 3px 0; }
#categories a { text-decoration: none; font-size: 14px; }

/* FOOTER */
#footer { border-top: 1px solid #ccc; clear: both; margin: 0 auto; overflow: hidden; width: 900px; }
#colophon { color: #555; float: right; font-size: 12px; padding: 10px 0 20px; }
#footer a { border-bottom: 1px dotted #555; text-decoration: none; }

/* RESPONSIVE (added) */
@media (max-width: 940px) {
  #header .menu, #header #branding, #main, #footer { width: auto; margin-left: 16px; margin-right: 16px; }
  #header #pages { width: auto; }
  #container { float: none; width: auto; border-right: 0; }
  #sidebar { float: none; width: auto; border-top: 1px solid #ccc; padding-top: 3px; }
  .post-content img.photo { width: 100%; }
}
@media (max-width: 600px) {
  #header .menu { padding-top: 12px; }
  #header #pages, #header #search { float: none; }
  #header #search { margin-top: 8px; }
  #header #search form { display: flex; }
  #header #search input[type=text] { flex: 1; min-width: 0; }
  #header #branding { padding: 24px 0; }
  #header h1 a { font-size: 44px; line-height: 56px; }
  .post-content { padding: 20px 0 40px; }
  .list-heading { padding: 9px 0; }
  .pagination { padding-left: 0; }
  .pagination .next-page { margin-right: 0; }
  .archive { padding: 10px 0 30px; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .archive-grid img { padding: 0; }
  .search-row img { width: 80px; height: 80px; }
  .widget { padding: 0 0 20px; }
  #sidebar h3 { padding: 9px 0; }
  #colophon { float: none; }
}
