/*
Theme Name: PatternPress
Theme URI: https://example.com/patternpress
Author: PatternPress
Description: 5種類のレイアウトパターンから選択できるWordPressオリジナルテーマ。文章を入力するだけで見栄えの良いページが完成します。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: patternpress
Tags: custom-layout, responsive, five-patterns, blog, portfolio, corporate
*/

/* ============================================================
   CSS Variables & Base Reset
   ============================================================ */
:root {
  --color-primary:   #1a1a2e;
  --color-accent:    #e94560;
  --color-light:     #f5f5f0;
  --color-white:     #ffffff;
  --color-muted:     #888888;
  --color-border:    #e0e0e0;

  --font-display:    'Playfair Display', 'Noto Serif JP', Georgia, serif;
  --font-body:       'Noto Sans JP', 'Lato', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  --max-width:       1200px;
  --sidebar-width:   300px;
  --gap:             2rem;
  --radius:          8px;
  --shadow:          0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover:    0 8px 40px rgba(0,0,0,0.14);

  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-light);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.75; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1.25rem; }

/* ============================================================
   Utility Classes
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.screen-reader-text { position: absolute; clip: rect(0,0,0,0); }
.wp-caption { max-width: 100%; }
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { text-align: center; margin: 1rem auto; }

/* ============================================================
   GLOBAL HEADER
   ============================================================ */
#site-header {
  background: var(--color-primary);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-branding .site-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}
.site-branding .site-title span { color: var(--color-accent); }
.site-branding .site-description {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.1rem;
}

/* Navigation */
#primary-navigation ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}
#primary-navigation a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
#primary-navigation a:hover,
#primary-navigation .current-menu-item > a {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  opacity: 1;
}

/* Hamburger (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  color: var(--color-white);
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  font-size: 1.2rem;
}

/* ============================================================
   GLOBAL FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-widget h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   POST / ENTRY COMMON STYLES
   ============================================================ */
.entry-header { margin-bottom: 2rem; }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}
.entry-meta span { display: flex; align-items: center; gap: 0.3rem; }
.entry-category {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.entry-content {
  font-size: 1.05rem;
  line-height: 1.9;
}
.entry-content h2,
.entry-content h3 { margin: 2.5rem 0 1rem; }
.entry-content p  { margin-bottom: 1.5rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(233,69,96,0.05);
  font-style: italic;
  color: #555;
}
.entry-content code {
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
}
.entry-content pre {
  background: var(--color-primary);
  color: #e0e0e0;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.entry-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
}
.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Pagination */
.entry-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post-navigation a {
  flex: 1;
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: var(--color-primary);
}
.post-navigation a:hover { box-shadow: var(--shadow-hover); opacity: 1; transform: translateY(-2px); }

/* Tag / Category list */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag-list a {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: var(--transition);
}
.tag-list a:hover { background: var(--color-primary); color: #fff; opacity: 1; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget-area { width: var(--sidebar-width); flex-shrink: 0; }
.widget {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}
.widget ul { list-style: none; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.widget ul li:last-child { border-bottom: none; }
.widget_search input[type="search"] {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* ============================================================
   CARD (used in archive/blog grid)
   ============================================================ */
.post-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.post-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.post-card-title a { color: var(--color-primary); }
.post-card-excerpt { font-size: 0.9rem; color: #666; flex: 1; }
.post-card-meta { font-size: 0.78rem; color: var(--color-muted); margin-top: 1rem; }
.read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  align-self: flex-start;
}
.read-more:hover { background: var(--color-accent); opacity: 1; }

/* ============================================================
   PATTERN 1: HERO SPLASH (full-width hero + centered content)
   ============================================================ */
body.pattern-1 {
  --color-accent: #ff6b35;
}
.pattern-1 .hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  text-align: center;
  padding: 4rem 1.5rem;
}
.pattern-1 .hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pattern-1 .hero-content { position: relative; z-index: 1; max-width: 800px; }
.pattern-1 .hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}
.pattern-1 .hero-title {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.pattern-1 .hero-description {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.pattern-1 .hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
}
.pattern-1 .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,107,53,0.5); opacity: 1; }
.pattern-1 .main-content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.pattern-1 .main-content article {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

/* ============================================================
   PATTERN 2: EDITORIAL (right sidebar, magazine style)
   ============================================================ */
body.pattern-2 {
  --color-accent: #2d6a4f;
  background: #fafaf8;
}
.pattern-2 .page-header {
  background: #fafaf8;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}
.pattern-2 .page-header .container { max-width: var(--max-width); margin: 0 auto; }
.pattern-2 .page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-primary);
  position: relative;
  padding-bottom: 1rem;
}
.pattern-2 .page-header h1::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 4px;
  background: var(--color-accent);
}
.pattern-2 .layout-wrapper {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 3rem;
  align-items: start;
}
.pattern-2 .main-column article {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.pattern-2 .sidebar-column .widget { position: sticky; top: 100px; }

/* ============================================================
   PATTERN 3: CORPORATE (left sidebar, clean/professional)
   ============================================================ */
body.pattern-3 {
  --color-accent: #0077b6;
  background: #f0f4f8;
}
.pattern-3 .corporate-banner {
  background: linear-gradient(90deg, #023e8a, #0077b6);
  padding: 2.5rem 1.5rem;
  color: white;
}
.pattern-3 .corporate-banner .container { max-width: var(--max-width); margin: 0 auto; }
.pattern-3 .corporate-banner h1 { color: white; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.pattern-3 .corporate-banner .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.5rem;
}
.pattern-3 .corporate-banner .breadcrumb a { color: rgba(255,255,255,0.65); }
.pattern-3 .layout-wrapper {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.pattern-3 .sidebar-column { position: sticky; top: 100px; }
.pattern-3 .sidebar-column nav {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.pattern-3 .sidebar-column nav h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.pattern-3 .sidebar-column nav ul { list-style: none; }
.pattern-3 .sidebar-column nav ul li { border-bottom: 1px solid var(--color-border); }
.pattern-3 .sidebar-column nav ul li:last-child { border-bottom: none; }
.pattern-3 .sidebar-column nav ul a {
  display: block;
  padding: 0.7rem 0.75rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  border-radius: 4px;
  transition: var(--transition);
}
.pattern-3 .sidebar-column nav ul a:hover { background: rgba(0,119,182,0.08); color: var(--color-accent); opacity: 1; }
.pattern-3 .sidebar-column nav ul .current > a { color: var(--color-accent); font-weight: 700; }
.pattern-3 .main-column article {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

/* ============================================================
   PATTERN 4: PORTFOLIO (no sidebar, card grid, visual)
   ============================================================ */
body.pattern-4 {
  --color-accent: #7b2d8b;
  background: #0d0d0d;
  color: #e8e8e8;
}
.pattern-4 #site-header { background: rgba(13,13,13,0.95); backdrop-filter: blur(10px); }
.pattern-4 .portfolio-hero {
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pattern-4 .portfolio-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(123,45,139,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.pattern-4 .portfolio-hero h1 { color: #fff; }
.pattern-4 .portfolio-hero p { color: rgba(255,255,255,0.6); max-width: 600px; margin: 1rem auto 0; }
.pattern-4 .portfolio-grid {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.pattern-4 .portfolio-grid .post-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
}
.pattern-4 .portfolio-grid .post-card-title a { color: #e8e8e8; }
.pattern-4 .portfolio-grid .post-card-excerpt { color: rgba(255,255,255,0.5); }
.pattern-4 .portfolio-grid .post-card-meta { color: rgba(255,255,255,0.35); }
.pattern-4 article.single-post {
  max-width: 860px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  background: #1a1a1a;
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.pattern-4 article .entry-content { color: rgba(255,255,255,0.82); }
.pattern-4 article .entry-title { color: #fff; }
.pattern-4 #site-footer { background: #080808; }

/* ============================================================
   PATTERN 5: STORY (narrow single column, beautiful typography)
   ============================================================ */
body.pattern-5 {
  --color-accent: #c0392b;
  background: #fffdf9;
  font-size: 1.1rem;
}
.pattern-5 .story-header {
  background: var(--color-white);
  padding: 2rem 1.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.pattern-5 .story-meta {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.pattern-5 .story-divider {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.5rem auto;
}
.pattern-5 .story-body {
  max-width: 680px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.pattern-5 .story-body .entry-content {
  font-size: 1.15rem;
  line-height: 2;
  font-family: 'Noto Serif JP', Georgia, serif;
}
.pattern-5 .story-body .entry-content p:first-of-type::first-letter {
  font-size: 4rem;
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.15em 0 0;
  color: var(--color-accent);
}
.pattern-5 .story-thumbnail {
  max-width: 860px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.pattern-5 .story-thumbnail img { border-radius: var(--radius); }
.pattern-5 .story-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================================
   BLOG / ARCHIVE PAGE
   ============================================================ */
.blog-header {
  padding: 3rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}
.blog-header h1 { color: var(--color-white); }
.blog-grid {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.archive-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}
.archive-pagination a,
.archive-pagination span {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-primary);
}
.archive-pagination .current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.comment-list { list-style: none; }
.comment { padding: 1.5rem 0; border-bottom: 1px solid var(--color-border); }
.comment-author { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.comment-author img { border-radius: 50%; }
.comment-content { font-size: 0.95rem; margin-left: 3.25rem; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.comment-form textarea { height: 150px; resize: vertical; }
.comment-form button,
.comment-form input[type="submit"] {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.comment-form button:hover { background: var(--color-accent); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 6rem 1.5rem;
}
.error-404 .error-number {
  font-size: clamp(6rem, 20vw, 12rem);
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.15;
}
.error-404 h1 { margin-top: -2rem; }
.error-404 p { max-width: 500px; margin: 1rem auto 2rem; color: var(--color-muted); }
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-primary:hover { background: var(--color-accent); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .pattern-2 .layout-wrapper,
  .pattern-3 .layout-wrapper { grid-template-columns: 1fr; }
  .pattern-3 .sidebar-column { position: static; }
  .pattern-3 .layout-wrapper { grid-template-areas: "main" "sidebar"; }
  .pattern-3 .main-column { grid-area: main; }
  .pattern-3 .sidebar-column { grid-area: sidebar; }
  .widget-area { width: 100%; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  #primary-navigation { display: none; }
  #primary-navigation.is-open { display: block; }
  #primary-navigation.is-open ul {
    flex-direction: column;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .header-inner { flex-wrap: wrap; gap: 0.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .pattern-4 .portfolio-grid { grid-template-columns: 1fr; }
  .post-navigation { flex-direction: column; }
}
