/*
Theme Name: Little Monster
Theme URI: https://little-monster.jp
Author: Little Monster
Author URI: https://little-monster.jp
Description: 犬と人のペアウェアブランド little monster の公式オンラインストア
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: little-monster
WC requires at least: 7.0
WC tested up to: 9.0
Tags: woocommerce, e-commerce, responsive, custom-theme
*/

/* ============================================================
   CSS カスタムプロパティ（デザイントークン）
   ============================================================ */
:root {
  /* カラー */
  --color-bg:            #ffffff;
  --color-bg-alt:        #f7f6f4;
  --color-bg-footer:     #111111;
  --color-text:          #000000;
  --color-text-dark:     #111111;
  --color-text-mid:      #555555;
  --color-text-light:    #888888;
  --color-text-inverse:  #ffffff;
  --color-border:        #e0dedd;
  --color-border-dark:   #333333;
  --color-accent:        #000000;
  --color-accent-hover:  #333333;
  --color-sale:          #c0392b;
  --color-notice-bg:     #f0ede8;
  --color-notice-text:   #333333;

  /* タイポグラフィ */
  --font-primary:   "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en:        "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-mono:      "Courier New", Courier, monospace;

  --text-xs:    0.625rem;   /* 10px */
  --text-sm:    0.75rem;    /* 12px */
  --text-base:  0.875rem;   /* 14px */
  --text-md:    1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.375rem;   /* 22px */
  --text-2xl:   1.75rem;    /* 28px */
  --text-3xl:   2.25rem;    /* 36px */
  --text-4xl:   3rem;       /* 48px */
  --text-5xl:   4rem;       /* 64px */

  --leading-tight:  1.2;
  --leading-base:   1.6;
  --leading-loose:  1.9;

  --tracking-tight:  -0.02em;
  --tracking-wide:    0.08em;
  --tracking-wider:   0.12em;
  --tracking-widest:  0.2em;

  /* スペーシング */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;
  --space-32:   8rem;

  /* レイアウト */
  --container-sm:  640px;
  --container-md:  960px;
  --container-lg:  1200px;
  --container-xl:  1440px;
  --gutter:        clamp(1rem, 4vw, 2rem);
  --header-h:      60px;
  --notice-h:      36px;

  /* ボーダー */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;
  --radius-full: 9999px;

  /* シャドウ */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  /* トランジション */
  --ease-default:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;

  /* z-index */
  --z-below:   -1;
  --z-base:     0;
  --z-above:    10;
  --z-sticky:   100;
  --z-header:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ============================================================
   リセット & ベーススタイル
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-default);
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-xl);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.section {
  padding-block: var(--space-20);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: var(--space-32);
}

.section__label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.section__title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 0;
  transition: background-color var(--duration-base) var(--ease-default),
              color var(--duration-base) var(--ease-default),
              opacity var(--duration-fast) var(--ease-default);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  border-color: var(--color-text);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  opacity: 1;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn--outline:hover {
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  opacity: 1;
}

.btn--outline-inverse {
  background-color: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.btn--outline-inverse:hover {
  background-color: var(--color-text-inverse);
  color: var(--color-text);
  opacity: 1;
}

.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-12);
  font-size: var(--text-sm);
}

/* ============================================================
   お知らせバー（Notice Bar）
   ============================================================ */
.notice-bar {
  width: 100%;
  height: var(--notice-h);
  background-color: var(--color-notice-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: var(--z-header);
}

.notice-bar__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  gap: var(--space-16);
}

.notice-bar__track:hover {
  animation-play-state: paused;
}

.notice-bar__item {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  color: var(--color-notice-text);
  flex-shrink: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-base) var(--ease-default);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

/* ナビ左 */
.header__nav-left {
  display: none;
}

/* header__nav-left 内のliをインライン化 */
.header__nav-left li {
  display: inline-flex;
  align-items: center;
}

/* ロゴ */
.header__logo {
  justify-self: center;
}

.header__logo a {
  display: block;
  font-family: var(--font-en);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  text-transform: lowercase;
  opacity: 1;
}

.header__logo a:hover {
  opacity: 0.7;
}

/* ヘッダーアクション（右側アイコン群） */
.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.header__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text);
  transition: opacity var(--duration-fast) var(--ease-default);
}

.header__action-btn:hover {
  opacity: 0.5;
}

.header__action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* カートバッジ */
.header__cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

/* ハンバーガーメニュー（モバイル） */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--color-text);
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: currentColor;
  transition: transform var(--duration-base) var(--ease-default),
              opacity var(--duration-fast) var(--ease-default);
}

.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   グローバルナビ（デスクトップ）
   ============================================================ */
.global-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.global-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: var(--gutter);
}

/* ★ ul要素自体をflexにする（これがないとliが縦積みになる） */
.global-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 var(--space-8);
  height: 100%;
}

.global-nav__item {
  display: flex;
  align-items: center;
  height: 100%;
}

.global-nav__item a {
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text);
  height: 100%;
  position: relative;
  white-space: nowrap;
}

.global-nav__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: width var(--duration-base) var(--ease-default);
}

.global-nav__item a:hover::after,
.global-nav__item.current-menu-item a::after {
  width: 100%;
}

.global-nav__item a:hover {
  opacity: 1;
}

/* ============================================================
   モバイルドロワーメニュー
   ============================================================ */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-overlay);
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-default);
}

.drawer.is-open .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background-color: var(--color-bg);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-8);
}

.drawer__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.drawer__nav {
  flex: 1;
}

.drawer__nav ul {
  display: flex;
  flex-direction: column;
}

.drawer__nav li a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-md);
  letter-spacing: var(--tracking-wide);
  border-bottom: 1px solid var(--color-border);
}

.drawer__footer {
  margin-top: auto;
  padding-top: var(--space-8);
  display: flex;
  gap: var(--space-4);
  flex-direction: column;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background-color: var(--color-bg-footer);
  color: var(--color-text-inverse);
  padding-block: var(--space-16) var(--space-8);
}

.footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border-dark);
}

.footer__logo a {
  font-family: var(--font-en);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-inverse);
  text-transform: lowercase;
  opacity: 1;
}

.footer__logo a:hover {
  opacity: 0.7;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-loose);
  max-width: 280px;
}

.footer__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav {
  padding-block: var(--space-8);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
}

.footer__nav a {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer__nav a:hover {
  color: var(--color-text-inverse);
  opacity: 1;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-dark);
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: var(--tracking-wide);
}

/* ============================================================
   ヒーローセクション（TOPページ大バナー）
   カスタマイザーの値は CSS変数（--hero-height / --hero-overlay）で受け取る
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: var(--hero-height, 70vh);
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* テキストを下寄せ */
}

/* 背景画像 */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-sp);
  background-size: cover;
  background-position: var(--hero-position, center center);
  background-repeat: no-repeat;
  transform: scale(1.03); /* 微妙に大きめにしてアニメーション余白を確保 */
  animation: hero-zoom 8s var(--ease-out) forwards;
}

@media (min-width: 768px) {
  .hero__bg {
    background-image: var(--hero-bg-pc);
  }
}


@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

/* 画像未設定時のプレースホルダー */
.hero__bg--placeholder {
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  animation: none;
}

.hero__placeholder-text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-align: center;
  padding: var(--space-4);
  line-height: var(--leading-loose);
}

/* グラデーションオーバーレイ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, var(--hero-overlay, 0.25)) 0%,
    rgba(0, 0, 0, calc(var(--hero-overlay, 0.25) * 0.4)) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* テキストエリア */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(var(--space-10), 6vw, var(--space-20));
}

.hero__body {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  animation: fadeInUp var(--duration-slower) var(--ease-out) 300ms both;
}

/* タイトル（セリフ体・イタリック） */
.hero__title {
  font-family: var(--font-en);
  font-size: clamp(var(--text-2xl), 5.5vw, var(--text-5xl));
  font-weight: 300;
  font-style: italic;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

/* サブテキスト */
.hero__subtitle {
  font-size: clamp(var(--text-sm), 1.4vw, var(--text-base));
  line-height: var(--leading-loose);
  letter-spacing: var(--tracking-wide);
  max-width: 360px;
}

/* CTAボタン */
.hero__cta {
  margin-top: var(--space-2);
}

.hero__btn {
  padding: var(--space-3) var(--space-10);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
}

/* テキストカラー：白（デフォルト） */
.hero--light .hero__title,
.hero--light .hero__subtitle,
.hero--light .hero__btn {
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.hero--light .hero__btn:hover {
  background-color: var(--color-text-inverse);
  color: var(--color-text);
  opacity: 1;
}

/* テキストカラー：黒 */
.hero--dark .hero__title,
.hero--dark .hero__subtitle,
.hero--dark .hero__btn {
  color: var(--color-text);
  border-color: var(--color-text);
}

.hero--dark .hero__btn:hover {
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  opacity: 1;
}

/* ============================================================
   メインコンテンツ
   ============================================================ */
.site-main {
  min-height: 60vh;
}

/* ============================================================
   商品カード
   ============================================================ */
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-card__image {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  aspect-ratio: 3/4;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out);
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-text);
  color: var(--color-text-inverse);
}

.product-card__badge--sale {
  background-color: var(--color-sale);
}

.product-card__wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-default);
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
}

.product-card__wishlist svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-card__subtitle {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-light);
}

.product-card__name {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-tight);
}

.product-card__price {
  font-size: var(--text-base);
  color: var(--color-text-mid);
}

.product-card__price ins {
  text-decoration: none;
  color: var(--color-sale);
}

.product-card__price del {
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.product-card__actions {
  margin-top: var(--space-2);
}

.product-card__actions .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   商品グリッド
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
}

/* ============================================================
   ページネーション
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  transition: background-color var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}

.pagination .current,
.pagination a:hover {
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  border-color: var(--color-text);
  opacity: 1;
}

/* ============================================================
   WooCommerce 上書きベース
   ============================================================ */
.woocommerce-notices-wrapper {
  position: fixed;
  top: calc(var(--notice-h) + var(--header-h) + 16px);
  right: var(--gutter);
  z-index: var(--z-toast);
  width: min(380px, calc(100vw - 2 * var(--gutter)));
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  border-left: 3px solid transparent;
  background-color: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.woocommerce-message {
  border-color: var(--color-text);
}

.woocommerce-error {
  border-color: var(--color-sale);
}

.woocommerce-info {
  border-color: var(--color-text-mid);
}

/* ============================================================
   レスポンシブ（タブレット以上 768px〜）
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --header-h: 64px;
    --notice-h: 36px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8) var(--space-6);
  }

  .global-nav {
    display: block;
  }

  .header__hamburger {
    display: none;
  }

  .footer__main {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }

  .footer__cta {
    justify-content: flex-start;
  }

  .footer__nav ul {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   レスポンシブ（デスクトップ 1024px〜）
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --header-h: 68px;
  }

  .header__nav-left {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }

  .header__nav-left a {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-text);
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   アニメーション & マイクロインタラクション
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp var(--duration-slower) var(--ease-out) both;
}

.animate-fade-in {
  animation: fadeIn var(--duration-slow) var(--ease-out) both;
}

/* スクロールアニメーション用 */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   スクリーンリーダー / アクセシビリティ
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   下層共通・コンテンツタイポグラフィ
   ============================================================ */
.page-template,
.single-post-template,
.archive-template,
.error-404-template {
  padding-block: var(--space-12) var(--space-24);
}

.page-header,
.post-header,
.archive-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.page-title,
.archive-title {
  font-family: var(--font-en);
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.post-title {
  font-size: clamp(var(--text-lg), 3.5vw, var(--text-2xl));
  font-weight: 500;
  line-height: var(--leading-tight);
  margin-top: var(--space-2);
}

/* 記事メタ情報 */
.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
}

.post-category {
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  padding: 1px var(--space-2);
}

/* アイキャッチ画像 */
.page-thumbnail,
.post-thumbnail {
  margin-bottom: var(--space-10);
  background-color: var(--color-bg-alt);
}

.page-thumbnail img,
.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
}

/* 本文内部の装飾ルール（entry-content） */
.entry-content {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-mid);
}

.entry-content p {
  margin-bottom: var(--space-6);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--color-text);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  font-weight: 500;
  line-height: var(--leading-tight);
}

.entry-content h2 {
  font-size: var(--text-lg);
  border-left: 2px solid var(--color-text);
  padding-left: var(--space-3);
}

.entry-content h3 {
  font-size: var(--text-md);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.entry-content ul {
  list-style: square;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: var(--space-2);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
}

.entry-content th,
.entry-content td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  font-weight: 500;
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  width: 30%;
}

/* ============================================================
   アーカイブ・お知らせ一覧（リストスタイル）
   ============================================================ */
.archive-list {
  display: flex;
  flex-direction: column;
}

.archive-item {
  border-bottom: 1px solid var(--color-border);
}

.archive-item__link {
  display: flex;
  align-items: center;
  padding-block: var(--space-5);
  color: inherit;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.archive-item__link:hover {
  opacity: 0.6;
}

.archive-item__meta {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.archive-item__date {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: var(--tracking-wider);
}

.archive-item__category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--color-text-light);
}

.archive-item__title {
  font-size: var(--text-base);
  font-weight: 400;
  flex-grow: 1;
  padding-right: var(--space-4);
  line-height: var(--leading-tight);
}

.archive-item__arrow {
  color: var(--color-text-light);
  display: flex;
  align-items: center;
}

@media (max-width: 640px) {
  .archive-item__link {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .archive-item__meta {
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: var(--space-3);
  }
  .archive-item__arrow {
    display: none;
  }
}

/* ページネーション（下層共通） */
.archive-pagination {
  margin-top: var(--space-12);
}

.navigation.pagination {
  display: flex;
  justify-content: center;
}

.navigation.pagination .nav-links {
  display: flex;
  gap: var(--space-2);
}

.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  transition: all var(--duration-fast) var(--ease-default);
}

.navigation.pagination .current,
.navigation.pagination a:hover {
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  border-color: var(--color-text);
  opacity: 1;
}

/* ============================================================
   投稿詳細 ナビゲーション（PREV / BACK TO LIST / NEXT）
   ============================================================ */
.post-navigation {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
}

.post-navigation .nav-previous {
  text-align: left;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-back-to-list {
  text-align: center;
}

.post-navigation .nav-back-to-list a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 480px) {
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }
  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    text-align: center;
  }
}

/* ============================================================
   404 エラーページ
   ============================================================ */
.error-404__content {
  text-align: center;
  padding-block: var(--space-16);
}

.error-404__label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.error-404__title {
  font-family: var(--font-en);
  font-size: clamp(var(--text-3xl), 8vw, var(--text-5xl));
  font-weight: 300;
  font-style: italic;
  text-transform: lowercase;
  margin-bottom: var(--space-4);
}

.error-404__text {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--color-text-mid);
  margin-bottom: var(--space-8);
}

/* ============================================================
   お問い合わせ（Contact）ページ
   ============================================================ */
.page-subtitle-ja {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-1);
  letter-spacing: var(--tracking-widest);
}

.contact-intro {
  text-align: center;
  margin-bottom: var(--space-10);
  position: relative;
}

.contact-intro::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 10%;
  right: 10%;
  height: 1px;
  background-color: var(--color-border);
  z-index: 1;
}

.contact-intro__paw {
  display: inline-block;
  background-color: var(--color-bg);
  padding: 0 var(--space-4);
  font-size: var(--text-md);
  color: var(--color-text-light);
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-4);
}

.contact-intro__text {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--color-text);
  letter-spacing: var(--tracking-wide);
}

/* お問い合わせカード */
.contact-card {
  background-color: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: var(--space-10) var(--space-6);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card__icon {
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}

.contact-card__title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.contact-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

/* Contact Form 7 等のフォームの共通スタイリング */
.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.contact-form-wrapper p {
  margin-bottom: 0;
}

.contact-form-wrapper label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast) var(--ease-default);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.contact-form-wrapper textarea {
  min-height: 120px;
  resize: vertical;
}

/* 送信ボタンの装飾 */
.contact-form-wrapper input[type="submit"],
.contact-form-wrapper .wpcf7-submit,
.contact-fallback-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  height: 44px;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: 0;
  cursor: pointer;
  margin: var(--space-6) auto 0;
  transition: all var(--duration-base) var(--ease-default);
}

.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper .wpcf7-submit:hover,
.contact-fallback-action .btn:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

