/* =========================================================
   Souganji Renewal - base / WordPress foundation

   This file contains the small set of global rules that the
   current theme still needs independently of legacy.css.
========================================================= */

:root {
  --color-base: #fffaf1;
  --color-paper: #ffffff;
  --color-ink: #2f261f;
  --color-sub: #6b5a48;
  --color-muted: #8c7a66;
  --color-main: #7b241c;
  --color-main-dark: #521711;
  --color-accent: #b98a3b;
  --color-accent-light: #e7d2a7;
  --color-border: #e8dcc8;
  --color-nav: #3b2b22;
  --color-footer: #2a211c;
  --shadow-soft: 0 14px 34px rgba(54, 35, 20, 0.12);
  --shadow-card: 0 8px 24px rgba(54, 35, 20, 0.10);
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --font-gothic: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --container: 1120px;

  --sg-bg: #fbfaf6;
  --sg-paper: #ffffff;
  --sg-ink: #34302a;
  --sg-text: #5f5a50;
  --sg-muted: #8f8677;
  --sg-line: #ded6c8;
  --sg-gold: #b99b62;
  --sg-gold-soft: #e8ddc6;
  --sg-green: #536a3a;
  --sg-brown: #6b5b45;
  --sg-black: #2a2926;
  --sg-shadow: 0 12px 32px rgba(80, 67, 42, 0.08);
  --sg-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sg-sans: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --sg-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sg-bg);
  color: var(--sg-ink);
  font-family: var(--sg-serif);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

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

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

a:hover {
  color: var(--color-accent);
}

p {
  margin: 0 0 1.4em;
}

ul,
ol {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  vertical-align: top;
}

th {
  background: #fbf3e7;
  font-weight: 700;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.sg-site {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--sg-bg);
}

.sg-container {
  width: min(calc(100% - 48px), var(--sg-container));
  margin: 0 auto;
}

.sg-main {
  background: var(--sg-bg);
}

.content-area {
  padding: 40px 0 90px;
}

.main-column {
  max-width: 1200px;
  margin: 0 auto;
}

.article-box {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.entry-meta {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.entry-content {
  line-height: 2;
}

.entry-content h2 {
  margin: 1.1em 0 0.85em;
  padding: 0 0 0.45em;
  border-bottom: 2px solid var(--color-border);
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.entry-content h3 {
  margin: 1.8em 0 0.7em;
  padding-left: 14px;
  border-left: 4px solid var(--color-main);
  font-size: 22px;
  line-height: 1.5;
}

.entry-content h4 {
  margin: 1.6em 0 0.6em;
  color: var(--color-main);
  font-size: 19px;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content img {
  border-radius: 16px;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 5px solid var(--color-accent);
  background: #fbf3e7;
  color: var(--color-sub);
}

.post-list {
  display: grid;
  gap: 22px;
}

.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.post-card__thumb {
  min-height: 160px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(185, 138, 59, 0.25), rgba(123, 36, 28, 0.22)),
    #eee3d3;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__date {
  color: var(--color-muted);
  font-size: 14px;
}

.post-card__title {
  margin: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.45;
}

.post-card__title a {
  color: var(--color-ink);
}

.post-card__title a:hover {
  color: var(--color-main);
}

.post-card__excerpt {
  margin: 0;
  color: var(--color-sub);
}

.post-card__more {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 700;
}

.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin: 3px;
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  font-weight: 700;
}

.pagination .current {
  border-color: var(--color-main);
  background: var(--color-main);
  color: #fff;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

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

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

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

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

@media screen and (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card__thumb {
    min-height: 190px;
  }

  .article-box {
    border-radius: 18px;
  }

  .entry-content h2 {
    font-size: 24px;
  }

  .entry-content h3 {
    font-size: 20px;
  }
}
