/*
Theme Name: Kamiya Higuma Structure Theme
Theme URI: https://example.com/kamiya-higuma-structure-theme
Author: OpenAI Codex
Author URI: https://openai.com
Description: A one-page WordPress cafe theme with a structure inspired by Higuma-style brand storytelling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: kamiya-higuma-structure-theme
*/

:root {
  --bg: #f6f0e6;
  --paper: #fffaf2;
  --ink: #171411;
  --muted: #665d53;
  --line: rgba(23, 20, 17, 0.12);
  --accent: #c87028;
  --accent-dark: #6d3b17;
  --max: 1220px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Aptos", "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  background: var(--bg);
}

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

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

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(23, 20, 17, 0.08);
  background: rgba(246, 240, 230, 0.92);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff7ee;
  font-family: var(--serif);
  font-size: 1rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy small,
.section-title,
.news-date {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(13, 10, 8, 0.3), rgba(13, 10, 8, 0.55)),
    url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff7ef;
}

.hero-inner {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 0 42px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.hero-links a {
  opacity: 0.94;
}

.hero-logo-wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 36px 0;
}

.hero-mark {
  width: min(24vw, 160px);
  height: min(24vw, 160px);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 247, 239, 0.7);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
}

.hero-logo-wrap h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  font-size: 1rem;
}

.hero-side-note {
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 247, 239, 0.2);
}

.section-block {
  padding: 68px 0;
}

.section-title {
  margin-bottom: 18px;
}

.section-lead {
  max-width: 44rem;
  margin: 0 0 26px;
  color: #433b34;
}

.concept-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 26px;
  align-items: end;
  margin-bottom: 28px;
}

.concept-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.concept-lead {
  margin: 0;
  font-size: 1.02rem;
}

.concept-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.concept-image {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.24)),
    url("https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.concept-body p {
  margin: 0;
  color: #433b34;
}

.concept-features {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feature-card,
.news-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.82);
}

.feature-card h3,
.news-card h3,
.menu-card h3,
.goods-card h3,
.access-card h2 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.3;
}

.feature-card p,
.news-card p {
  margin: 8px 0 0;
  color: #4a4139;
}

.menu-group + .menu-group {
  margin-top: 36px;
}

.menu-group h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.1;
}

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

.menu-card,
.goods-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.menu-card-image {
  aspect-ratio: 1 / 1;
}

.menu-card-image img,
.goods-card img,
.access-image img,
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card-body,
.goods-card-body {
  padding: 18px;
}

.menu-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-card h4 {
  margin: 8px 0 0;
  font-size: 1.12rem;
}

.menu-card p,
.goods-card p,
.access-copy p {
  margin: 10px 0 0;
  color: #463d35;
}

.goods-price {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.22rem;
}

.goods-card a,
.access-copy a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-dark);
}

.access-list {
  display: grid;
  gap: 26px;
}

.access-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

.access-copy {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.access-image {
  min-height: 360px;
}

.photos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.photos-header a {
  color: var(--accent-dark);
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.photo-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d9cdbf;
}

.site-footer {
  padding: 24px 0 38px;
  border-top: 1px solid rgba(23, 20, 17, 0.08);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.entry-page,
.entry-single,
.archive-list {
  padding: 60px 0 80px;
}

.entry-wrap {
  width: min(calc(100% - 40px), 860px);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.entry-wrap h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.post-thumbnail,
.wp-block-image {
  margin: 0 0 26px;
}

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

@media (max-width: 1100px) {
  .menu-grid,
  .goods-grid,
  .news-grid,
  .photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concept-main,
  .access-card,
  .concept-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-row,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul,
  .menu-grid,
  .goods-grid,
  .news-grid,
  .photos-grid,
  .hero-links {
    grid-template-columns: 1fr;
  }

  .main-nav ul {
    display: grid;
    gap: 10px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-side-note {
    writing-mode: initial;
    min-height: 72px;
    border-left: 0;
    border-top: 1px solid rgba(255, 247, 239, 0.2);
  }

  .hero-copy {
    padding: 22px 0 28px;
  }

  .hero-logo-wrap {
    padding: 24px 0;
  }

  .entry-wrap,
  .access-copy,
  .feature-card,
  .news-card,
  .menu-card-body,
  .goods-card-body {
    padding: 20px;
  }

  .section-block {
    padding: 52px 0;
  }
}
