/*
Theme Name: Arigatou Ichiba
Theme URI: https://arigatouichiba.jp/
Author: 株式会社おおきに
Description: ありがとう市場（大阪・うめきた）のオリジナルテーマ。オーガニックショップらしい、やわらかく温かみのあるデザイン。
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: arigatou
*/

/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --c-bg: #faf6ef;
  --c-paper: #f3ebdd;
  --c-paper-deep: #eadfcb;
  --c-white: #fffdf9;
  --c-text: #4a3c32;
  --c-muted: #8a7a6c;
  --c-line: #e3d7c4;
  --c-sage: #7d8f69;
  --c-sage-deep: #55664a;
  --c-sage-pale: #e6eadb;
  --c-terra: #c47a5a;
  --c-terra-pale: #f5e2d6;
  --c-honey: #d9a54a;

  --f-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;

  --radius: 18px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px -12px rgba(92, 70, 48, .25);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-base);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-sage-deep); text-decoration: none; transition: color .2s, opacity .2s, background-color .2s, transform .2s; }
a:hover { color: var(--c-terra); }
h1, h2, h3, h4 { line-height: 1.5; font-weight: 700; letter-spacing: .06em; }
p { margin: 0 0 1.4em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-terra); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 1000;
  top: 8px; left: 8px; padding: 8px 16px; background: var(--c-white);
}

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 800px); margin-inline: auto; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(8px);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 4px 20px -14px rgba(92, 70, 48, .35); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto;
}
.site-logo { display: flex; align-items: center; gap: 12px; color: var(--c-text); flex-shrink: 0; }
.site-logo:hover { color: var(--c-text); }
.site-logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.site-logo__name { font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; }
.site-logo__sub { font-family: var(--f-en); font-style: italic; font-size: .85rem; color: var(--c-muted); letter-spacing: .08em; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--f-en); font-size: 1.05rem; font-weight: 600; letter-spacing: .08em;
  color: var(--c-text);
}
.global-nav a:hover, .global-nav .current-menu-item > a, .global-nav .current_page_item > a { background: var(--c-paper); color: var(--c-sage-deep); }
.global-nav .menu-item--shop a, .global-nav .menu-shop > a {
  background: var(--c-sage); color: #fff; padding-inline: 18px;
}
.global-nav .menu-item--shop a:hover, .global-nav .menu-shop > a:hover { background: var(--c-sage-deep); color: #fff; }

.nav-toggle {
  display: none; position: relative; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--c-paper); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; border-radius: 2px;
  background: var(--c-text); transition: transform .3s, background-color .3s; content: "";
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; left: 0; margin: 0; }
.nav-toggle span::after { top: 6px; left: 0; margin: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .site-logo img { width: 44px; height: 44px; }
  .nav-toggle { display: block; z-index: 60; }
  .global-nav {
    position: fixed; inset: 0; z-index: 55;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-open .global-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .global-nav ul { flex-direction: column; gap: 10px; }
  .global-nav a { font-size: 1.5rem; padding: 8px 28px; }
}

/* ==========================================================
   Common parts
   ========================================================== */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--paper { background: var(--c-paper); }
.section--sage { background: var(--c-sage-pale); }

.section-title { text-align: center; margin: 0 0 clamp(36px, 5vw, 56px); }
.section-title__en {
  display: block; font-family: var(--f-en); font-style: italic; font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: .04em; color: var(--c-sage-deep);
}
.section-title__ja { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .95rem; color: var(--c-muted); letter-spacing: .2em; }
.section-title__ja::before, .section-title__ja::after { content: ""; width: 22px; height: 1px; background: currentColor; }

.leaf { display: inline-block; width: 1em; height: 1em; color: var(--c-sage); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px; padding: 15px 32px; border-radius: 999px;
  background: var(--c-sage); color: #fff; font-weight: 700; letter-spacing: .12em;
  box-shadow: 0 8px 18px -10px rgba(85, 102, 74, .8);
}
.btn::after { content: "→"; font-family: var(--f-en); transition: transform .2s; }
.btn:hover { background: var(--c-sage-deep); color: #fff; transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn--terra { background: var(--c-terra); box-shadow: 0 8px 18px -10px rgba(196, 122, 90, .9); }
.btn--terra:hover { background: #ad6447; }
.btn--ghost { background: transparent; color: var(--c-sage-deep); border: 1.5px solid var(--c-sage); box-shadow: none; }
.btn--ghost:hover { background: var(--c-sage); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: clamp(36px, 5vw, 56px); }

.wave { display: block; width: 100%; height: clamp(28px, 4vw, 56px); color: var(--c-paper); }
.wave--sage { color: var(--c-sage-pale); }
.wave--bg { color: var(--c-bg); }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Front page
   ========================================================== */
.hero { position: relative; padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto;
}
.hero__copy { position: relative; z-index: 2; }
.hero__en { font-family: var(--f-en); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--c-terra); letter-spacing: .1em; margin: 0 0 12px; }
.hero__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.6; letter-spacing: .12em; margin: 0 0 24px; }
.hero__lead { color: var(--c-muted); margin: 0 0 32px; }
.hero__visual { position: relative; }
.hero__img {
  position: relative; z-index: 1; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
  box-shadow: var(--shadow);
  background: var(--c-paper-deep);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__blob { position: absolute; z-index: 0; border-radius: 50%; }
.hero__blob--1 { width: 46%; aspect-ratio: 1; background: var(--c-sage-pale); right: -8%; top: -10%; }
.hero__blob--2 { width: 28%; aspect-ratio: 1; background: var(--c-terra-pale); left: -6%; bottom: -8%; }
.hero__badge {
  position: absolute; z-index: 2; left: -4%; top: 6%;
  width: clamp(96px, 12vw, 132px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--c-white); box-shadow: var(--shadow);
  font-family: var(--f-en); font-style: italic; color: var(--c-sage-deep); line-height: 1.3; font-size: clamp(.85rem, 1.3vw, 1rem);
  animation: float 6s ease-in-out infinite;
}
.hero__badge strong { display: block; font-size: 1.6em; color: var(--c-terra); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__copy { text-align: center; }
  .hero__lead br { display: none; }
  .hero__lead { font-size: .95rem; text-align: left; }
}

.concept { text-align: center; }
.concept__text { font-size: clamp(1rem, 1.6vw, 1.1rem); line-height: 2.3; }
.concept__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.concept__tags li { padding: 6px 18px; border-radius: 999px; background: var(--c-white); border: 1px solid var(--c-line); font-size: .9rem; }

.pickup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.pickup-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--c-white); color: var(--c-text); box-shadow: var(--shadow);
}
.pickup-card:hover { color: var(--c-text); transform: translateY(-6px); }
.pickup-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-paper-deep); }
.pickup-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pickup-card:hover .pickup-card__img img { transform: scale(1.05); }
.pickup-card__body { padding: 22px 24px 26px; }
.pickup-card__en { font-family: var(--f-en); font-style: italic; color: var(--c-terra); font-size: 1.05rem; }
.pickup-card__title { margin: 2px 0 8px; font-size: 1.15rem; }
.pickup-card__text { margin: 0; font-size: .9rem; color: var(--c-muted); line-height: 1.8; }

/* News list */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--c-line); }
.news-list li { border-bottom: 1px dashed var(--c-line); }
.news-list a, .news-list .news-list__item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: baseline;
  padding: 18px 8px; color: var(--c-text);
}
.news-list a:hover { background: var(--c-white); color: var(--c-sage-deep); }
.news-list time { font-family: var(--f-en); font-size: 1.05rem; color: var(--c-terra); letter-spacing: .06em; }
.news-list__arrow { color: var(--c-sage); font-family: var(--f-en); }
.news-list__ext { font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: var(--c-sage-pale); color: var(--c-sage-deep); margin-left: 6px; white-space: nowrap; }
@media (max-width: 640px) {
  .news-list a, .news-list .news-list__item { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .news-list time { grid-column: 1 / -1; }
}

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 3vw, 36px); }
.post-card { display: flex; flex-direction: column; color: var(--c-text); }
.post-card:hover { color: var(--c-text); }
.post-card__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--c-paper-deep); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__noimg { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--f-en); font-style: italic; font-size: 1.6rem; color: var(--c-sage); }
.post-card__cat {
  position: absolute; left: 12px; top: 12px; padding: 2px 12px; border-radius: 999px;
  background: rgba(255, 253, 249, .92); font-size: .75rem; font-weight: 700; color: var(--c-sage-deep);
}
.post-card__meta { margin-top: 14px; font-family: var(--f-en); color: var(--c-muted); font-size: .95rem; }
.post-card__title { margin: 2px 0 0; font-size: 1.02rem; line-height: 1.7; font-weight: 500; }
.post-card:hover .post-card__title { color: var(--c-sage-deep); }

/* Ranking */
.ranking { counter-reset: rank; display: grid; gap: clamp(28px, 4vw, 40px); }
.ranking-item {
  display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: clamp(20px, 4vw, 44px); align-items: center;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--c-white); box-shadow: var(--shadow);
}
.ranking-item__img { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--c-paper); }
.ranking-item__img img { width: 100%; height: 100%; object-fit: cover; }
.ranking-item__rank {
  position: absolute; left: 10px; top: 10px; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--c-sage); color: #fff;
  font-family: var(--f-en); font-style: italic; font-size: 1.6rem; line-height: 1;
}
.ranking-item__rank small { font-size: .55em; margin-left: 1px; }
.ranking-item:nth-child(1) .ranking-item__rank { background: var(--c-honey); }
.ranking-item:nth-child(2) .ranking-item__rank { background: #a9a49b; }
.ranking-item:nth-child(3) .ranking-item__rank { background: var(--c-terra); }
.ranking-item__title { margin: 0 0 8px; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.ranking-item__text { font-size: .95rem; color: var(--c-muted); line-height: 1.9; }
.ranking-item__text p:last-child { margin-bottom: 0; }
.ranking-item__price { margin: 16px 0 20px; font-size: 1.3rem; font-weight: 700; color: var(--c-terra); }
.ranking-item__price small { font-size: .7em; color: var(--c-muted); font-weight: 500; }
.ranking-item .btn { min-width: 0; padding: 11px 26px; font-size: .9rem; }
@media (max-width: 720px) { .ranking-item { grid-template-columns: 1fr; } }

.ranking-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); }
.ranking-mini .ranking-item { grid-template-columns: 1fr; align-items: start; text-align: center; }
.ranking-mini .ranking-item__price { margin: 8px 0 0; font-size: 1.1rem; }
.ranking-mini .ranking-item__title { font-size: 1.05rem; }
@media (max-width: 760px) { .ranking-mini { grid-template-columns: 1fr; } }

/* Shop info */
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.shop__map { min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--c-paper-deep); }
.shop__map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: sepia(.15) saturate(.9); }
.info-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.info-table th, .info-table td { padding: 14px 4px; border-bottom: 1px dashed var(--c-line); text-align: left; vertical-align: top; }
.info-table th { width: 7.5em; color: var(--c-sage-deep); font-weight: 700; white-space: nowrap; }
.info-table td { white-space: pre-line; }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }

/* Business-day calendar (Google Calendar embed) */
.biz-calendar { max-width: 880px; margin-inline: auto; }
.biz-calendar__note { margin: 0 0 18px; text-align: center; font-size: .9rem; color: var(--c-muted); }
.biz-calendar__frame {
  overflow: hidden; border-radius: var(--radius-lg); background: var(--c-white);
  box-shadow: var(--shadow); padding: clamp(8px, 2vw, 16px);
}
.biz-calendar__frame iframe { display: block; width: 100%; border: 0; }
.biz-calendar__frame--month iframe { height: 600px; }
.biz-calendar__frame--agenda { display: none; }
.biz-calendar__frame--agenda iframe { height: 460px; }
@media (max-width: 640px) {
  .biz-calendar__frame--month { display: none; }
  .biz-calendar__frame--agenda { display: block; }
}
.entry-content .biz-calendar { margin-block: 2em; }

.cta-band {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(32px, 5vw, 52px) clamp(24px, 5vw, 64px); border-radius: var(--radius-lg);
  background: var(--c-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 20c18 10 24 32 0 60-24-28-18-50 0-60z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E");
  color: #fff;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--c-sage-deep); }
.cta-band .btn:hover { background: var(--c-terra); color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: center; } }

/* ==========================================================
   Page header / breadcrumbs
   ========================================================== */
.page-hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; background: var(--c-paper); overflow: hidden; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; }
.page-hero::before { width: 280px; height: 280px; background: var(--c-sage-pale); left: -90px; top: -120px; }
.page-hero::after { width: 180px; height: 180px; background: var(--c-terra-pale); right: -50px; bottom: -90px; }
.page-hero .section-title { position: relative; z-index: 1; margin: 0; }
.page-hero__img { position: absolute; inset: 0; z-index: 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.breadcrumb { font-size: .8rem; color: var(--c-muted); padding: 14px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-line); }
.breadcrumb a { color: var(--c-muted); }

/* ==========================================================
   Entry content (editor output)
   ========================================================== */
.content-area { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 120px); }
.entry-content { font-size: 1rem; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content p { margin: 0; }
.entry-content p + p { margin-top: 1.1em; }
.entry-content h2 {
  position: relative; margin: 2.6em 0 1.1em; padding: 14px 20px 14px 52px;
  border-radius: var(--radius); background: var(--c-paper); font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}
.entry-content h2::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c5 3 8 9 0 20C4 11 7 5 12 2z' fill='%237d8f69'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-20deg);
}
.entry-content h3 { margin: 2.2em 0 .9em; padding-bottom: 8px; border-bottom: 2px dotted var(--c-sage); font-size: clamp(1.1rem, 2vw, 1.25rem); }
.entry-content h4 { margin: 1.8em 0 .6em; color: var(--c-sage-deep); }
.entry-content a { text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.entry-content a:hover { text-decoration-color: var(--c-terra); }
.entry-content a.btn, .entry-content .wp-block-button__link { text-decoration: none; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul li::marker { color: var(--c-sage); }
.entry-content blockquote, .entry-content .wp-block-quote {
  margin-inline: 0; padding: 20px 26px; border-left: 0; border-radius: var(--radius);
  background: var(--c-white); border: 1px solid var(--c-line); color: var(--c-muted); font-size: .95rem;
}
.entry-content hr, .entry-content .wp-block-separator {
  border: 0; height: 12px; margin: 3em auto; max-width: 160px;
  background: radial-gradient(circle, var(--c-sage) 2px, transparent 3px) center / 24px 12px repeat-x;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 14px 16px; border-bottom: 1px dashed var(--c-line); text-align: left; vertical-align: top; }
.entry-content th { width: 28%; background: var(--c-paper); color: var(--c-sage-deep); }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 0; border-bottom: 1px dashed var(--c-line); }
.entry-content .wp-block-table table { border-top: 1px dashed var(--c-line); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table figure, .entry-content figure.wp-block-table { margin: 0; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed iframe, .entry-content .wp-block-embed-youtube iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }
.entry-content .wp-block-columns { gap: clamp(20px, 4vw, 40px); }
.entry-content .wp-block-gallery img { border-radius: 12px; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--c-sage); padding: 13px 30px; font-weight: 700; letter-spacing: .1em; }
.entry-content .wp-block-button__link:hover { background: var(--c-sage-deep); color: #fff; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--c-sage-deep); border: 1.5px solid var(--c-sage); }
.entry-content .has-text-align-center { text-align: center; }
.entry-content .wp-block-group.is-style-card, .entry-content .card {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--c-white); box-shadow: var(--shadow);
}
.entry-content .wp-block-group.has-background { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); }
.entry-content .alignwide { width: min(100vw - var(--gutter) * 2, 1120px); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content .instagram-media { margin-inline: auto !important; }

/* Contact Form 7 */
.wpcf7 form p { margin: 0 0 1.4em; }
.wpcf7 label { display: block; font-weight: 700; font-size: .95rem; }
.wpcf7 .required { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; background: var(--c-terra); color: #fff; font-size: .7rem; vertical-align: 2px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-white); font-weight: 400;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--c-sage); outline: none; box-shadow: 0 0 0 3px var(--c-sage-pale); }
.wpcf7 input[type="submit"] {
  display: block; margin: 8px auto 0; min-width: 240px; padding: 15px 40px; border: 0; border-radius: 999px;
  background: var(--c-sage); color: #fff; font-weight: 700; letter-spacing: .2em; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--c-sage-deep); }

/* ==========================================================
   Single post
   ========================================================== */
.entry-header { margin-bottom: clamp(28px, 4vw, 40px); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: .9rem; color: var(--c-muted); }
.entry-meta time { font-family: var(--f-en); font-size: 1.05rem; }
.cat-badge { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--c-sage-pale); color: var(--c-sage-deep); font-size: .8rem; font-weight: 700; }
.cat-badge:hover { background: var(--c-sage); color: #fff; }
.entry-title { margin: 12px 0 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.6; }
.entry-thumb { margin: 0 0 clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); overflow: hidden; }
.entry-thumb img { width: 100%; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.post-nav a { display: block; height: 100%; padding: 18px 22px; border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-line); color: var(--c-text); font-size: .9rem; line-height: 1.7; }
.post-nav a:hover { border-color: var(--c-sage); }
.post-nav span { display: block; font-family: var(--f-en); font-style: italic; color: var(--c-terra); }
.post-nav__next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }

.share { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 48px; font-family: var(--f-en); font-style: italic; color: var(--c-muted); }
.share a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-paper); color: var(--c-text); }
.share a:hover { background: var(--c-sage); color: #fff; }
.share svg { width: 18px; height: 18px; fill: currentColor; }

/* Blog layout with sidebar */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 960px) { .blog-layout { grid-template-columns: 1fr; } }
.sidebar .widget { margin-bottom: 40px; }
.widget-title { margin: 0 0 14px; font-family: var(--f-en); font-style: italic; font-size: 1.5rem; font-weight: 500; color: var(--c-sage-deep); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 1px dashed var(--c-line); color: var(--c-text); }
.cat-list a:hover { color: var(--c-sage-deep); padding-left: 10px; }
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(32px, 5vw, 48px); padding: 0; list-style: none; }
.cat-tabs a { display: block; padding: 8px 22px; border-radius: 999px; background: var(--c-white); border: 1px solid var(--c-line); color: var(--c-text); font-size: .9rem; }
.cat-tabs a:hover, .cat-tabs .is-current a { background: var(--c-sage); border-color: var(--c-sage); color: #fff; }
.search-form { display: flex; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; background: var(--c-white); }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 10px 18px; border: 0; background: transparent; }
.search-form button { padding: 0 18px; border: 0; background: var(--c-sage); color: #fff; cursor: pointer; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  background: var(--c-white); border: 1px solid var(--c-line); color: var(--c-text); font-family: var(--f-en); font-size: 1.05rem;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--c-sage); border-color: var(--c-sage); color: #fff; }
.pagination .dots { background: transparent; border: 0; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { position: relative; background: var(--c-sage-deep); color: #f4efe6; font-size: .9rem; }
.site-footer a { color: #f4efe6; }
.site-footer a:hover { color: #fff; opacity: .75; }
.site-footer__wave { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-99%); color: var(--c-sage-deep); }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: clamp(56px, 8vw, 88px) 0 40px; }
.site-footer h2 { margin: 0 0 14px; font-family: var(--f-en); font-style: italic; font-weight: 500; font-size: 1.5rem; letter-spacing: .06em; }
.site-footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; }
.site-footer__logo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { font-family: var(--f-en); font-size: 1.05rem; letter-spacing: .06em; }
.sns { display: flex; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.sns a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.sns a:hover { background: rgba(255, 255, 255, .3); opacity: 1; }
.sns svg { width: 18px; height: 18px; fill: currentColor; }
.copyright { margin: 0; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; font-family: var(--f-en); letter-spacing: .08em; font-size: .85rem; opacity: .8; }
.copyright a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; } }

.pagetop {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--c-terra); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { color: #fff; background: #ad6447; }

/* 404 */
.not-found { text-align: center; }
.not-found__num { font-family: var(--f-en); font-style: italic; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--c-sage); margin: 0; }
