/*
Theme Name: Bento Takeout Theme
Theme URI: https://example.com/bento-takeout-theme
Author: ChatGPT
Author URI: https://example.com/
Description: テイクアウト専門の弁当店向けに作成した、暖色系でシンプルなWordPressオリジナルテーマです。
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
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: bento-takeout-theme
Tags: blog, food-and-drink, custom-header, custom-menu, responsive-layout
*/

:root {
  --color-bg: #fffaf3;
  --color-surface: #ffffff;
  --color-primary: #d9572b;
  --color-primary-dark: #a83d1d;
  --color-accent: #f6b95f;
  --color-text: #2f251f;
  --color-muted: #78695f;
  --color-border: #f0ded0;
  --shadow-soft: 0 10px 28px rgba(114, 64, 32, 0.10);
  --radius: 18px;
  --content-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

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

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.site-header {
  position: static;
  background: #fff7ec;
  border-bottom: 1px solid var(--color-border);
  z-index: auto;
}

.site-header__inner {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 18px 0 14px;
}

.site-branding { margin-bottom: 12px; }
.site-title { margin: 0; font-size: clamp(1.45rem, 5vw, 2rem); line-height: 1.25; }
.site-title a { color: var(--color-primary-dark); text-decoration: none; }
.site-description { margin: 4px 0 0; color: var(--color-muted); font-size: 0.95rem; }

.primary-menu { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.primary-menu li { margin: 0; }
.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  font-weight: 700;
  text-decoration: none;
}
.primary-menu a:hover, .primary-menu a:focus { background: #fff0dc; color: var(--color-primary-dark); }

.hero-image {
  width: 100%;
  height: clamp(120px, 20vh, 180px);
  background: #ffe9cf;
  overflow: hidden;
}
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-text {
  width: min(100% - 32px, var(--content-width));
  margin: 24px auto 0;
  padding: 22px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.home-hero-text__eyebrow { color: var(--color-primary); font-weight: 800; margin: 0 0 4px; }
.home-hero-text h1 { margin: 0; font-size: clamp(1.7rem, 7vw, 3rem); line-height: 1.25; }
.home-hero-text p { margin: 10px 0 0; color: var(--color-muted); }

.site-main, .content-area {
  width: min(100% - 32px, var(--content-width));
  margin: 28px auto 48px;
}

.page-content, .post-card, .single-post, .archive-header, .not-found {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 5vw, 36px);
}

.page-title, .entry-title, .archive-title { margin-top: 0; line-height: 1.35; }
.entry-meta { color: var(--color-muted); font-size: 0.92rem; margin: -6px 0 18px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { line-height: 1.45; margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; overflow-x: auto; display: block; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: 10px; }
.entry-content .wp-block-button__link { background: var(--color-primary); border-radius: 999px; }

.posts-list { display: grid; gap: 18px; }
.post-card .entry-title { margin-bottom: 8px; }
.post-card .read-more {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.pagination, .post-navigation { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.nav-links a, .page-numbers {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
}
.page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.site-footer {
  background: #3b2418;
  color: #fff6e9;
  margin-top: 48px;
}
.site-footer__inner {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 28px 0;
}
.footer-message { margin: 0 0 8px; font-weight: 700; }
.footer-copy { margin: 0; color: #f7d4b6; font-size: 0.92rem; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (min-width: 700px) {
  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
  }
  .site-branding { margin-bottom: 0; }
  .primary-menu { justify-content: flex-end; }
  .hero-image { height: clamp(150px, 24vh, 240px); }
  .home-hero-text { padding: 30px 34px; }
  .posts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-height: 700px) {
  .hero-image { height: clamp(110px, 18vh, 180px); }
}

@media (min-width: 1024px) {
  .posts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
