/*
Theme Name: Nostalgia Three Columns
Author: araramx
Description: 懐かしい日本の情報サイトを思わせる、両サイドバー型のシンプルな3カラム・クラシックテーマです。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nostalgia-three-columns
Tags: three-columns, left-sidebar, right-sidebar, custom-menu, featured-images, threaded-comments, blog
*/

:root {
  --page-bg: #e9e4d8;
  --paper: #fffdf8;
  --line: #b9b5aa;
  --line-soft: #d6d0c3;
  --navy-top: #315d87;
  --navy-bottom: #123a60;
  --link: #145aa3;
  --accent: #c87822;
  --text: #333333;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, "MS PGothic", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: #b04f12;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: #111;
  background: #fff;
  border: 2px solid var(--link);
}

.site-shell {
  width: calc(100% - 28px);
  max-width: 1180px;
  margin: 14px auto;
  background: var(--paper);
  border: 1px solid #8d897f;
  box-shadow: 0 0 12px rgba(69, 59, 43, 0.17);
}

.site-header {
  min-height: 120px;
  padding: 22px 26px 17px;
  border-bottom: 1px solid #938d81;
  background: linear-gradient(#fffefa, #faf7ef);
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.site-branding {
  min-width: 0;
}

.custom-logo-link {
  display: inline-block;
  margin-bottom: 8px;
}

.custom-logo {
  display: block;
  max-height: 70px;
  width: auto;
}

.site-title {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.site-title a {
  color: #292929;
  text-decoration: none;
}

.site-description {
  margin: 7px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 0;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.utility-links li + li::before {
  content: "|";
  margin: 0 13px;
  color: #aaa398;
}

.menu-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(var(--navy-top), var(--navy-bottom));
  border: 0;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.primary-navigation {
  position: relative;
  background: linear-gradient(#0b4c80, #063864);
  border-bottom: 1px solid #9c968c;
}

.primary-navigation ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation li {
  flex: 1 1 0;
  position: relative;
  margin: 0;
  border-right: 1px solid rgba(255,255,255,0.28);
}

.primary-navigation li:last-child {
  border-right: 0;
}

.primary-navigation a {
  display: block;
  padding: 15px 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: #fff;
  background: rgba(255,255,255,0.14);
}

.primary-navigation .sub-menu,
.primary-navigation .children {
  display: none;
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  width: 210px;
  background: #17466e;
  border: 1px solid #082f50;
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu,
.primary-navigation li:hover > .children,
.primary-navigation li:focus-within > .children {
  display: block;
}

.primary-navigation .sub-menu li,
.primary-navigation .children li {
  width: 100%;
  border-right: 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.primary-navigation .sub-menu a,
.primary-navigation .children a {
  padding: 10px 12px;
  text-align: left;
}

.site-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  grid-template-areas: "left main right";
  align-items: start;
}

.left-sidebar {
  grid-area: left;
  padding: 14px 10px 20px 12px;
  border-right: 1px solid var(--line-soft);
}

.content-area {
  grid-area: main;
  min-width: 0;
  padding: 14px 14px 26px;
}

.right-sidebar {
  grid-area: right;
  padding: 14px 12px 20px 10px;
  border-left: 1px solid var(--line-soft);
}

.widget,
.sidebar-box {
  margin: 0 0 14px;
  padding: 0 10px 12px;
  background: #fffefa;
  border: 1px solid #a9a397;
}

.widget-title,
.sidebar-title,
.section-title {
  margin: 0 -10px 10px;
  padding: 8px 11px;
  color: #fff;
  background: linear-gradient(var(--navy-top), var(--navy-bottom));
  border-bottom: 1px solid #082f50;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

.section-title {
  margin: 0 0 15px;
  padding: 9px 13px;
  font-size: 18px;
  border: 1px solid #0d385c;
}

.widget ul,
.sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li,
.sidebar-list li {
  padding: 6px 2px;
  border-bottom: 1px dotted #c5bcae;
}

.widget li:last-child,
.sidebar-list li:last-child {
  border-bottom: 0;
}

.search-form {
  display: flex;
  gap: 5px;
}

.search-field {
  min-width: 0;
  width: 100%;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid #9d9a93;
}

.search-submit,
.button,
button[type="submit"],
input[type="submit"] {
  padding: 7px 12px;
  color: #222;
  background: linear-gradient(#fff, #dcdcdc);
  border: 1px solid #969696;
  border-radius: 2px;
  cursor: pointer;
}

.search-submit:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: linear-gradient(#fff, #cfcfcf);
}

.breadcrumb {
  margin: 0 0 11px;
  color: #666;
  font-size: 13px;
}

.page-header {
  margin-bottom: 14px;
}

.page-title {
  margin: 0;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(var(--navy-top), var(--navy-bottom));
  border: 1px solid #0d385c;
  font-size: 19px;
  line-height: 1.4;
}

.post-card {
  display: flow-root;
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid #c8c0b2;
}

.post-card:last-of-type {
  margin-bottom: 0;
}

.post-thumbnail {
  float: left;
  width: 176px;
  margin: 2px 17px 6px 0;
  border: 1px solid #b8b0a2;
  background: #eee9df;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.entry-title {
  margin: 0 0 5px;
  color: var(--link);
  font-size: 20px;
  line-height: 1.45;
}

.entry-title a {
  color: inherit;
}

.entry-meta {
  margin-bottom: 7px;
  color: #555;
  font-size: 12px;
}

.entry-meta .meta-item + .meta-item::before {
  content: "|";
  margin: 0 9px;
  color: #bbb4a8;
}

.entry-summary p,
.entry-content p {
  margin-top: 0;
}

.entry-content {
  font-size: 15px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  clear: both;
  line-height: 1.5;
}

.entry-content h2 {
  margin: 1.8em 0 0.8em;
  padding: 8px 11px;
  color: #fff;
  background: linear-gradient(var(--navy-top), var(--navy-bottom));
  font-size: 20px;
}

.entry-content h3 {
  padding: 5px 9px;
  color: #153c61;
  border-left: 6px solid #1b507d;
  border-bottom: 1px solid #a8a196;
  font-size: 18px;
}

.entry-content blockquote {
  margin: 1.4em 0;
  padding: 12px 16px;
  background: #f3efe6;
  border-left: 5px solid #8c867b;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 8px;
  border: 1px solid #bdb6aa;
}

.entry-content th {
  background: #eee9df;
}

.alignleft {
  float: left;
  margin: 0 18px 12px 0;
}

.alignright {
  float: right;
  margin: 0 0 12px 18px;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.wp-caption {
  max-width: 100%;
  padding: 5px;
  background: #f5f1e8;
  border: 1px solid #c5beb2;
}

.wp-caption-text,
.gallery-caption {
  margin: 5px 0 0;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.sticky {
  padding: 12px;
  background: #fff8e7;
  border: 1px solid #d8c69e;
}

.bypostauthor {
  border-left: 3px solid var(--accent);
}

.post-navigation,
.posts-navigation,
.pagination {
  clear: both;
  margin: 22px 0 4px;
  padding: 12px;
  background: #f1ede4;
  border: 1px solid #bbb4a7;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.nav-next {
  margin-left: auto;
  text-align: right;
}

.comments-area {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 3px double #a8a095;
}

.comment-list {
  margin: 0;
  padding-left: 24px;
}

.comment-body {
  margin-bottom: 16px;
  padding: 12px;
  background: #faf7ef;
  border: 1px solid #c4bdb1;
}

.comment-form label {
  display: block;
  font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #aaa49a;
}

.no-results,
.error-404 {
  padding: 15px;
  background: #fffefa;
  border: 1px solid #aaa398;
}

.site-footer {
  clear: both;
  padding: 18px 22px;
  color: #e6edf3;
  background: linear-gradient(#1d4e76, #113652);
  border-top: 1px solid #082d4a;
  font-size: 12px;
  text-align: center;
}

.footer-menu {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  display: inline-block;
}

.footer-menu li + li::before {
  content: "|";
  margin: 0 10px;
  color: #91a9bb;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 1020px) {
  .site-shell {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .site-body {
    grid-template-columns: 190px minmax(0, 1fr) 225px;
  }

  .post-thumbnail {
    width: 145px;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  .site-header {
    min-height: 0;
    padding: 18px;
  }

  .header-inner {
    display: block;
  }

  .utility-links {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation ul {
    display: none;
    flex-direction: column;
  }

  .primary-navigation.toggled ul {
    display: flex;
  }

  .primary-navigation li {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .primary-navigation a {
    padding: 12px 16px;
    text-align: left;
  }

  .primary-navigation .sub-menu,
  .primary-navigation .children {
    display: block;
    position: static;
    width: auto;
    margin-left: 20px;
    border: 0;
  }

  .site-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "left"
      "right";
  }

  .content-area,
  .left-sidebar,
  .right-sidebar {
    padding: 14px;
    border: 0;
  }

  .left-sidebar,
  .right-sidebar {
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .site-title {
    font-size: 29px;
  }

  .site-description {
    font-size: 13px;
  }

  .utility-links {
    white-space: normal;
  }

  .post-thumbnail {
    float: none;
    width: 100%;
    margin: 0 0 10px;
  }

  .entry-title {
    font-size: 18px;
  }

  .nav-links {
    display: block;
  }

  .nav-next {
    margin-top: 10px;
    text-align: left;
  }
}
