:root {
  --bg: #fffaf0;
  --paper: #ffffff;
  --ink: #3f2d1f;
  --muted: #7e6a58;
  --line: #f0d9b5;
  --primary: #ffb703;
  --primary-dark: #f18f01;
  --accent: #ffd166;
  --shadow: 0 12px 28px rgba(241, 143, 1, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background:
    radial-gradient(circle at 8% 0%, #ffe6a7 0, transparent 36%),
    radial-gradient(circle at 88% 20%, #ffd7a3 0, transparent 30%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.site-brand {
  display: grid;
  gap: 2px;
}

.site-brand img{
  width: 230px;
}

.site-brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-title {
  font-size: 1.35rem;
  line-height: 1.2;
}

.menu-toggle {
  border: 0;
  background: var(--primary);
  color: #3a2500;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  display: none;
}

.menu-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 6px;
}

.menu-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
}

.menu-list a:hover,
.menu-list .current-menu-item a {
  background: var(--accent);
}

.hero {
  padding: 54px 0 24px;
}

.hero-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.hero-lead {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-text {
  margin: 0 0 24px;
  color: var(--muted);
}

.button-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #2a1900;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.button-primary:hover {
  transform: translateY(-1px);
}

.hero-badge {
  background: var(--paper);
  border-radius: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  transform: rotate(-2deg);
}

.hero-badge span {
  background: #fff6dc;
  border: 1px dashed #efbc5b;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  text-align: center;
}

.list-section {
  padding: 24px 0 60px;
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.card-link {
  display: block;
  height: 100%;
}

.card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 14px 14px 18px;
}

.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.card-title {
  margin: 8px 0;
  line-height: 1.4;
  font-size: 1.1rem;
}

.card-excerpt {
  margin: 0;
  color: #5d4b3c;
  font-size: 0.95rem;
}

.article-wrap {
  padding: 36px 0 64px;
}

.single-article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 34px);
}

.article-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.article-title {
  margin: 10px 0 18px;
  line-height: 1.35;
}

.article-thumb img {
  width: 100%;
  border-radius: 14px;
  height: auto;
}


.article-content p {
  margin: 0 0 1.1em;
}

.post-nav {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.post-nav a {
  background: #fff2d3;
  border-radius: 10px;
  padding: 8px 12px;
}

.pagination-wrap {
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: #fff3dd;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-note {
  margin: 0;
  color: #7a5f3a;
  font-size: 0.9rem;
}

.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;
}

/* Easy Table of Contents */
#ez-toc-container {
  margin: 1.8rem 0;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #fff9eb 0%, #fff4dc 100%);
  border: 1px solid #f3d19b;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(241, 143, 1, 0.1);
}

#ez-toc-container.ez-toc-container-direction {
  direction: ltr;
  width: 100%;
}

#ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

#ez-toc-container .ez-toc-title {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 800;
  color: #5b3d18;
  letter-spacing: 0.02em;
}

#ez-toc-container .ez-toc-btn {
  border: 1px solid #efc270;
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  line-height: 1;
}

#ez-toc-container .ez-toc-btn:hover {
  background: #fff4cf;
}

#ez-toc-container .ez-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#ez-toc-container .ez-toc-list li {
  margin: 0;
}

#ez-toc-container .ez-toc-list-level-1 > li + li {
  margin-top: 6px;
}

#ez-toc-container .ez-toc-list .ez-toc-list-level-3 {
  margin-top: 5px;
  padding-left: 18px;
}

#ez-toc-container .ez-toc-link {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: #4f3a24 !important;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#ez-toc-container .ez-toc-link:hover,
#ez-toc-container .ez-toc-link:focus-visible {
  background: #ffe8bb;
  transform: translateX(2px);
  outline: none;
}

#ez-toc-container .ez-toc-heading-level-3 .ez-toc-link {
  font-size: 0.95rem;
  color: #6a5136;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 4%;
    background: #fff9eb;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: block;
  }

  .menu-list {
    flex-direction: column;
    min-width: 180px;
  }

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

  #ez-toc-container {
    padding: 14px 12px 10px;
  }
  .site-brand img{
    width: 180px;
  }
  .article-title{
    font-size: 16px;
  }

  body{
      font-size: 0.8rem;
  }
}
