/* ========================================
   全体設定
   利用箇所: テーマ全体
======================================== */

:root {
  --site-bg: #f6f2ea;
  --surface: #ffffff;
  --surface-soft: #f8f5ef;
  --text: #3f372e;
  --text-soft: #6b6258;
  --line: #e4ddd2;
  --accent: #a98a5f;
  --accent-deep: #7d6140;
  --shadow: 0 18px 40px rgba(63, 55, 46, 0.08);
  --content-width: 1200px;
  --narrow-width: 860px;
}

body {
  background: var(--site-bg);
  color: var(--text);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  line-height: 1.8;
}

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

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

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

.site-main {
  display: block;
}

.wrapper {
  overflow: clip;
}

body.nav-open {
  overflow: hidden;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* ========================================
   共通見出し
   利用箇所: トップ / 一覧 / 下層ページ
======================================== */

.section-heading {
  display: grid;
  gap: 12px;
}

.sec-head {
  margin-bottom: 32px;
}

.section-heading--center {
  justify-items: center;
  text-align: center;
}

.section-heading__eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-heading__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.section-link {
  display: flex;
  justify-content: flex-start;
  margin-top: 32px;
}

.section-link--center {
  justify-content: center;
}

.section-link a,
.index_more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.section-link a span,
.index_more a span {
  color: var(--accent);
}

.section-link a:hover,
.index_more a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

/* ========================================
   ヘッダー
   利用箇所: header.php
======================================== */

.header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 221, 210, 0.8);
}

.admin-bar .header-bar {
  /* 管理バー表示時のヘッダー重なり防止: PC */
  top: 32px;
}

.header-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}

.header-bar__brand {
  flex: 0 0 auto;
}

.header-brand {
  display: inline-flex;
  align-items: center;
}

.header-brand img {
  width: 170px;
  height: auto;
}

.header-brand__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header-bar__tools {
  display: none;
}

.header-nav {
  flex: 1 1 auto;
}

.hd-btn,
.mbtn {
  display: none;
}

.header-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav__item {
  float: none;
}

.header-nav__link {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.header-nav__link:hover {
  color: var(--accent-deep);
}

.nav-cover {
  display: none;
}

/* ========================================
   フッター
   利用箇所: footer.php
======================================== */

.footer-panel {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: #fbf8f3;
}

.footer-panel__top {
  padding: 56px 0 40px;
}

.footer-panel__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(220px, 1fr);
  gap: 48px;
}

.footer-panel__heading {
  margin-bottom: 20px;
  color: var(--accent-deep);
  font-size: 14px;
  letter-spacing: 0.14em;
}

.footer-panel__list,
.footer-panel__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
}

.footer-panel__links li {
  list-style: none;
}

.footer-panel__links a {
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.footer-panel__links a:hover {
  color: var(--accent-deep);
}

.footer-panel__bottom {
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-panel__copy {
  color: #9a9288;
  font-size: 11px;
  text-align: center;
}

/* ========================================
   スマホ固定バー
   利用箇所: footer.php
======================================== */

.m-dock {
  display: none;
}

/* ========================================
   トップ: メインビジュアル
   利用箇所: front-page.php
   備考: JS が .banner .slider .item を参照
======================================== */

.banner {
  overflow: hidden;
  background: #ddd;
}

.home-hero__slide {
  position: relative;
}

.home-hero__image {
  width: 100%;
  height: min(66vw, 720px);
  object-fit: cover;
}

.banner .slider.has-slideshow .item img,
.banner .slider .item.is-active img {
  animation: siteHeroZoom 5s ease forwards;
}

@keyframes siteHeroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* ========================================
   トップ: 私たちについて
   利用箇所: front-page.php
======================================== */

.home-about {
  padding: 88px 0 64px;
}

.home-about__container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.home-about__media {
  margin: 0;
  overflow: hidden;
  background: #ddd;
}

.home-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-about__row {
  display: block;
}

.home-about__content {
  float: none;
  width: 100%;
}

.home-about__box {
  max-width: 480px;
  margin: 0 auto;
}

.home-about__editor {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 14px;
}

.home-about__editor .editor,
.page-about-layout__editor,
.page-guide-intro__editor,
.generic-page__content,
.article-detail__content,
.contact-page__content {
  color: var(--text-soft);
}

/* ========================================
   トップ / 一覧: お知らせカード
   利用箇所: front-page.php / archive-news.php
======================================== */

.home-news,
.archive-page--news {
  padding: 64px 0;
}

.news-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.news-grid__item {
  width: auto;
  float: none;
}

.news-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 138, 95, 0.5);
}

.news-card__body {
  display: grid;
  gap: 10px;
}

.news-card__date {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.news-card__title {
  font-size: 20px;
  line-height: 1.5;
}

.news-card__text {
  color: var(--text-soft);
  font-size: 14px;
}

/* ========================================
   トップ / 一覧: 商品カード
   利用箇所: front-page.php / archive-products.php
======================================== */

.home-products,
.archive-page--products {
  padding: 64px 0;
}

.home-products__box {
  margin-top: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 0;
  padding: 0;
}

.product-grid__item {
  width: auto;
  float: none;
  margin: 0;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px 16px 0;
  background: transparent;
}

.product-card .more {
  color: var(--accent-deep);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card.new::before {
  content: "new";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card__figure {
  margin: 0;
}

.product-card__figure img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__figure img {
  transform: scale(1.06);
}

.product-card__body {
  display: grid;
  gap: 8px;
  padding: 8px 16px 20px;
}

.product-card__title {
  font-size: 16px;
  line-height: 1.5;
}

.product-card__text {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

.product-card__more {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  position: relative;
  z-index: 4;
}

.product-card__title a,
.guide-card__body a {
  transition: color 0.3s ease;
}

.product-card:hover .product-card__title a,
.guide-card__body a:hover {
  color: var(--accent-deep);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(63, 55, 46, 0.12);
}

.js-card-link {
  cursor: pointer;
}

.products-empty-message {
  width: 100%;
  margin: 24px 0 0;
  color: var(--text-soft);
  text-align: center;
}

/* ========================================
   トップ / 下層: Tea guide カード
   利用箇所: front-page.php / page-tea-guide.php
======================================== */

.home-guide,
.page-guide-grid {
  padding: 64px 0;
}

.home-guide__inner {
  display: grid;
  gap: 40px;
}

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

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

.guide-card {
  display: grid;
  background: var(--surface);
  box-shadow: var(--shadow);
  align-content: start;
}

.guide-card__image {
  margin: 0;
  overflow: hidden;
}

.guide-card__image img {
  width: 100%;
  aspect-ratio: 1.24 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.guide-card:hover .guide-card__image img {
  transform: scale(1.05);
}

.guide-card__body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.guide-card__body h2,
.guide-card__body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.guide-card__body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}

.guide-card .s_row {
  display: grid;
  gap: 10px;
}

.guide-card .s_more {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-card .s_more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   下層共通: ヒーロー
   利用箇所: page-about.php / page-tea-guide.php / page-contact.php / page.php
======================================== */

.subpage-hero {
  padding: 88px 0 48px;
  background: linear-gradient(180deg, #f8f5ef 0%, #f3ede3 100%);
}

.subpage-hero__inner {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.subpage-hero__eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.subpage-hero__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.3;
  letter-spacing: 0.08em;
}

/* ========================================
   下層: 私たちについて
   利用箇所: page-about.php
======================================== */

.page-about-layout {
  padding: 72px 0;
}

.page-about-layout__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 56px;
  align-items: center;
}

.page-about-layout__media {
  margin: 0;
}

.page-about-layout__editor {
  margin-top: 24px;
  color: var(--text-soft);
}

/* ========================================
   下層: Tea guide 導入
   利用箇所: page-tea-guide.php
======================================== */

.page-guide-intro {
  padding: 64px 0 28px;
}

.page-guide-intro__container {
  width: min(calc(100% - 48px), var(--narrow-width));
}

.page-guide-intro__editor {
  color: var(--text-soft);
  text-align: center;
}

.page-guide-intro__editor p {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
}

.page-guide-grid {
  padding-top: 8px;
}

.page-guide-grid__container {
  width: min(calc(100% - 48px), 1120px);
}

.page-guide-grid__items {
  grid-template-columns: repeat(3, minmax(220px, 320px));
  justify-content: center;
  gap: 32px 28px;
}

/* ========================================
   下層: Tea guide 詳細
   利用箇所: page-our-teas.php / page-sustainability.php / page-media-collaborations.php
======================================== */

.guide-detail {
  padding: 72px 0;
}

.guide-detail__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 56px;
  align-items: center;
}

.guide-detail__media {
  margin: 0;
  overflow: hidden;
  background: #ddd;
}

.guide-detail__media img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.guide-detail__content {
  display: grid;
  gap: 24px;
}

.guide-detail__editor {
  color: var(--text-soft);
}

.guide-backlink {
  margin: 0;
}

.guide-backlink a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-deep);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.guide-backlink a::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ========================================
   下層: お問い合わせ
   利用箇所: page-contact.php
======================================== */

.page-contact-layout {
  padding: 80px 0;
}

.page-contact-layout__container {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 48px;
}

.contact-page__info {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-page__block {
  display: grid;
  gap: 6px;
}

.contact-page__block h2 {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 15px;
}

.contact-page__block p {
  margin: 0;
  color: var(--text-soft);
}

.contact-page__content {
  display: grid;
  gap: 32px;
  padding: 36px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-page__intro {
  color: var(--text-soft);
}

.contact-form-panel {
  display: grid;
  gap: 24px;
  padding-top: 8px;
}

.contact-form-panel__body {
  display: grid;
}

.contact-form-panel__empty {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
}

.contact-form-panel .wpcf7 {
  width: 100%;
}

.contact-form-panel .wpcf7 form {
  display: grid;
  gap: 18px;
}

.contact-form-panel .wpcf7 p {
  margin: 0;
  color: var(--text-soft);
}

.contact-form-panel label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.contact-form-panel .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.contact-form-panel label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.contact-form-panel input[type="text"],
.contact-form-panel input[type="email"],
.contact-form-panel input[type="tel"],
.contact-form-panel textarea,
.contact-form-panel select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-panel textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-panel input[type="text"]:focus,
.contact-form-panel input[type="email"]:focus,
.contact-form-panel input[type="tel"]:focus,
.contact-form-panel textarea:focus,
.contact-form-panel select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(169, 138, 95, 0.12);
}

.contact-form-panel input[type="submit"],
.contact-form-panel button,
.contact-form-panel .wpcf7-submit {
  justify-self: start;
  min-width: 180px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.contact-form-panel input[type="submit"]:hover,
.contact-form-panel button:hover,
.contact-form-panel .wpcf7-submit:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
}

.contact-form-panel .wpcf7-spinner {
  margin: 12px 0 0 12px;
}

.contact-form-panel .wpcf7-not-valid-tip,
.contact-form-panel .wpcf7-response-output {
  font-size: 13px;
}

.contact-form-panel .wpcf7-response-output {
  margin: 8px 0 0;
  padding: 12px 14px;
}

.contact-form-panel .wpcf7-response-output {
  margin: 8px 0 0;
  padding: 12px 14px;
}

/* ========================================
   下層: 汎用ページ
   利用箇所: page.php
======================================== */

.generic-page {
  padding: 72px 0;
}

.generic-page__container {
  width: min(calc(100% - 48px), var(--narrow-width));
}

.generic-page__image {
  margin: 0 0 28px;
}

.generic-page__content {
  color: var(--text-soft);
}

/* ========================================
   下層: 記事詳細 / 商品詳細
   利用箇所: single-news.php / single-products.php
======================================== */

.article-detail,
.product-detail {
  padding: 72px 0;
}

.article-detail .container,
.product-detail .container {
  width: min(calc(100% - 48px), var(--narrow-width));
}

.article-detail__meta {
  margin: 18px 0 24px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.article-detail__image {
  margin: 0 0 28px;
}

.article-detail__content {
  color: var(--text-soft);
}

.product-detail__layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.product-detail__media,
.product-detail__content {
  float: none;
}

.product-detail__lead {
  margin-bottom: 20px;
  color: var(--accent-deep);
}

/* ========================================
   一覧ページ共通
   利用箇所: archive-news.php / archive-products.php
======================================== */

.archive-page {
  padding: 72px 0;
}

.archive-page__empty {
  margin-top: 32px;
  color: var(--text-soft);
  text-align: center;
}

.archive-page__pagination {
  margin-top: 36px;
}

.archive-page__pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.archive-page__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ========================================
   表示アニメーション
   利用箇所: footer.php 内の JS
======================================== */

.reveal-up,
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
  transform: translateY(26px);
}

.reveal-fade {
  transform: none;
}

.reveal-up.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0ms);
}

/* ========================================
   基本パーツ上書き
   利用箇所: 旧クラスを残している共通部品
======================================== */

.title {
  margin: 0;
}

.index_more {
  display: flex;
  justify-content: center;
}

.news-list,
.products-list,
.s_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row,
.col {
  float: none;
  width: auto;
}

.editor p:first-child {
  margin-top: 0;
}

.editor p:last-child {
  margin-bottom: 0;
}

/* ========================================
   レスポンシブ
   利用箇所: テーマ全体
======================================== */

@media (max-width: 1100px) {
  .header-bar__inner {
    min-height: 76px;
  }

  .header-nav__list {
    gap: 16px;
  }

  .home-about__container,
  .page-about-layout__container,
  .guide-detail__container,
  .page-contact-layout__container,
  .product-detail__layout,
  .footer-panel__grid {
    grid-template-columns: 1fr;
  }

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

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

  .home-about__box {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 820px) {
  .admin-bar .header-bar {
    /* 管理バー表示時のヘッダー重なり防止: タブレット/スマホ */
    top: 46px;
  }

  .header-bar__inner {
    min-height: 72px;
    gap: 16px;
    padding: 12px 0;
  }

  .hd-btn,
  .mbtn {
    display: inline-flex;
  }

  .mbtn {
    position: relative;
    z-index: 120;
    margin-left: auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .mbtn__bar {
    width: 18px;
    height: 1px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  body.nav-open .mbtn__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .mbtn__bar:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .mbtn__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header-nav {
    flex: 0 0 auto;
    width: auto;
  }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 110;
    width: min(82vw, 320px);
    height: 100dvh;
    padding: 96px 24px 40px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -16px 0 32px rgba(63, 55, 46, 0.12);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.32s ease;
  }

  .admin-bar .nav-panel {
    padding-top: 142px;
  }

  body.nav-open .nav-panel {
    transform: translateX(0);
  }

  .header-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .header-nav__item {
    width: 100%;
  }

  .header-nav__link {
    width: 100%;
    min-height: 42px;
    padding: 8px 0;
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .nav-cover {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(22, 18, 14, 0.42);
  }

  body.nav-open .nav-cover {
    display: block;
  }

  .home-hero__image {
    height: 60vw;
  }

  .section-heading__title,
  .subpage-hero__title {
    font-size: clamp(26px, 5vw, 34px);
  }

  .home-about,
  .home-news,
  .home-products,
  .home-guide,
  .archive-page,
  .page-about-layout,
  .page-guide-intro,
  .guide-detail,
  .page-guide-grid,
  .page-contact-layout,
  .generic-page,
  .article-detail,
  .product-detail {
    padding: 56px 0;
  }

  .home-about__container {
    gap: 28px;
  }

  .news-grid {
    gap: 18px;
  }

  .product-grid {
    gap: 20px 16px;
  }

  .guide-grid,
  .guide-grid__items {
    gap: 20px;
  }

  .page-guide-intro {
    padding-bottom: 28px;
  }

  .footer-panel {
    margin-top: 56px;
    padding-bottom: 78px;
  }

  .page-contact-layout__container {
    gap: 24px;
  }

  .m-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(228, 221, 210, 0.9);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }

  .m-dock__item {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 8px 12px;
    color: var(--accent-deep);
  }

  .m-dock__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
  }

  .m-dock__icon svg {
    width: 20px;
    height: 20px;
  }

  .m-dock__label {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .header-bar {
    position: sticky;
    top: 0;
  }

  .header-brand img {
    width: 150px;
  }

  .home-hero__image {
    height: 72vw;
  }

  .section-heading {
    gap: 8px;
  }

  .section-heading__eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .section-heading__title {
    font-size: 24px;
    line-height: 1.45;
  }

  .subpage-hero {
    padding: 56px 0 32px;
  }

  .home-about__container,
  .page-about-layout__container,
  .guide-detail__container,
  .page-contact-layout__container,
  .product-detail__layout {
    gap: 24px;
  }

  .home-about__box,
  .page-about-layout__content,
  .page-guide-intro__container,
  .page-guide-grid__container,
  .generic-page__container,
  .article-detail .container,
  .product-detail .container {
    width: 100%;
  }

  .home-about__editor,
  .page-about-layout__editor,
  .page-guide-intro__editor,
  .guide-detail__editor,
  .generic-page__content,
  .article-detail__content,
  .contact-page__content {
    font-size: 14px;
    line-height: 1.9;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    overflow: hidden;
  }

  .product-card__figure img {
    max-height: 240px;
  }

  .product-card__media {
    padding: 14px 14px 0;
  }

  .product-card__body {
    padding: 8px 14px 18px;
  }

  .product-card__body {
    padding-top: 14px;
  }

  .product-card__title {
    font-size: 15px;
  }

  .product-card__text {
    font-size: 12px;
  }

  .guide-grid,
  .guide-grid__items {
    grid-template-columns: 1fr;
  }

  .guide-card__body {
    padding: 16px;
  }

  .page-guide-intro {
    padding-bottom: 24px;
  }

  .news-card {
    padding: 20px;
  }

  .news-card__title {
    font-size: 17px;
  }

  .contact-page__content,
  .contact-page__info {
    padding: 22px;
  }

  .contact-page__content {
    gap: 24px;
  }

  .contact-form-panel {
    gap: 20px;
  }

  .contact-form-panel input[type="submit"],
  .contact-form-panel button,
  .contact-form-panel .wpcf7-submit {
    width: 100%;
    justify-self: stretch;
  }

  .footer-panel__top {
    padding: 40px 0 28px;
  }

  .footer-panel__bottom {
    padding: 14px 0 22px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .header-bar__inner {
    gap: 10px;
    padding: 12px 0 14px;
  }

  .header-brand img {
    width: 138px;
  }

  .nav-panel {
    width: 100%;
    padding: 92px 20px 28px;
  }

  .admin-bar .nav-panel {
    padding-top: 138px;
  }

  .home-hero__image {
    height: 78vw;
  }

  .home-about,
  .home-news,
  .home-products,
  .home-guide,
  .archive-page,
  .page-about-layout,
  .page-guide-intro,
  .guide-detail,
  .page-guide-grid,
  .page-contact-layout,
  .generic-page,
  .article-detail,
  .product-detail {
    padding: 44px 0;
  }

  .section-link a,
  .index_more a {
    padding: 10px 18px;
    font-size: 11px;
  }

  .contact-page__content,
  .contact-page__info,
  .news-card {
    padding: 18px;
  }

  .contact-form-panel__empty {
    padding: 18px;
  }
}
