/*
Theme Name: Hina Matcha
Theme URI: https://hinamatcha.in
Author: Hina Matcha
Description: Custom theme for Hina Matcha — Crafted in Japan. Shared with India.
Version: 1.0
Text Domain: hina-matcha
*/


  :root {
    --emerald: #046307;
    --olive: #6B8E23;
    --sage: #c1dfc4;
    --black: #28282B;
    --cream: #F5F0E8;
    --parchment: #EDE8DC;
    --gold: #C9A84C;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--cream);
    color: var(--black);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
  }

  /* NOISE TEXTURE OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.5;
  }

  /* ─── NAVIGATION ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245,240,232,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(4,99,7,0.12);
  }

  nav img.nav-logo {
	height: 48px;
	width: auto;
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
  }

  nav ul li a {
    text-decoration: none;
    color: var(--emerald);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: opacity 0.3s;
  }

  nav ul li a:hover, nav ul li a.active,
  nav ul li.current-menu-item a, nav ul li.current_page_item a { opacity: 0.6; }

  .nav-cta {
    background: var(--emerald);
    color: var(--cream) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 1px;
    letter-spacing: 0.14em !important;
    transition: background 0.3s !important;
  }
  .nav-cta:hover { background: #034f05 !important; opacity: 1 !important; }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5rem 4rem 6rem;
    position: relative;
    overflow: hidden;
  }

  .hero-left::before {
    content: '抹茶';
    position: absolute;
    bottom: -2rem;
    left: -1rem;
    font-family: 'Noto Serif JP', serif;
    font-size: 22rem;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
  }

  .hero-eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease 0.2s both;
  }

  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--cream);
    margin-bottom: 0.5rem;
    animation: fadeUp 1s ease 0.4s both;
  }

  .hero-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 200;
    color: var(--sage);
    letter-spacing: 0.4em;
    margin-bottom: 2.5rem;
    animation: fadeUp 1s ease 0.6s both;
  }

  .hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(245,240,232,0.7);
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 3rem;
    animation: fadeUp 1s ease 0.8s both;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeUp 1s ease 1s both;
  }

  .btn-primary {
    display: inline-block;
    text-decoration: none;
    background: var(--emerald);
    color: var(--cream);
    padding: 0.9rem 2.2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.3s;
  }

  .btn-primary:hover { background: #034f05; transform: translateY(-2px); }

  .btn-outline {
    display: inline-block;
    text-decoration: none;
    border: 1px solid rgba(245,240,232,0.4);
    color: var(--cream);
    padding: 0.9rem 2.2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: border-color 0.3s, transform 0.3s;
  }

  .btn-outline:hover { border-color: var(--cream); transform: translateY(-2px); }

  .hero-right {
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.5s ease 0.3s both;
  }

  .hero-right::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(4,99,7,0.08) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
  }

  .hero-logo-wrap {
    position: relative;
    z-index: 2;
    animation: floatLogo 6s ease-in-out infinite;
  }

  .hero-logo-wrap img {
    width: 420px;
    max-width: 90%;
    filter: drop-shadow(0 20px 60px rgba(4,99,7,0.2));
  }

  .hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    animation: fadeIn 2s ease 1.5s both;
  }

  .hero-scroll span {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
  }

  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cream), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }

  /* ─── INTRO BAND ─── */
  .intro-band {
    background: var(--emerald);
    padding: 2rem 6rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
  }

  .intro-band-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(245,240,232,0.9);
    white-space: nowrap;
    animation: marquee 20s linear infinite;
  }

  .intro-divider {
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  /* ─── BRAND STORY ─── */
  .brand-story {
    padding: 9rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
  }

  .story-left {
    position: relative;
  }

  .story-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    font-weight: 300;
    color: rgba(4,99,7,0.06);
    position: absolute;
    top: -3rem;
    left: -2rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
  }

  .story-kanji-stack {
    font-family: 'Noto Serif JP', serif;
    font-size: 5rem;
    font-weight: 200;
    color: var(--emerald);
    line-height: 1.2;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
    opacity: 0.8;
  }

  .story-line {
    width: 60px;
    height: 2px;
    background: var(--emerald);
    margin: 2rem 0;
  }

  .story-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--olive);
    font-weight: 400;
  }

  .story-right h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 2rem;
  }

  .story-right h2 em {
    color: var(--emerald);
    font-style: italic;
  }

  .story-right p {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(40,40,43,0.75);
    margin-bottom: 1.5rem;
    font-weight: 300;
  }

  .story-right p strong {
    color: var(--emerald);
    font-weight: 400;
  }

  .stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(4,99,7,0.15);
  }

  .stat {
    text-align: center;
  }

  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--emerald);
    line-height: 1;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(40,40,43,0.6);
    margin-top: 0.4rem;
  }

  /* ─── PHILOSOPHY STRIP ─── */
  .philosophy {
    background: var(--black);
    padding: 5rem 6rem;
    position: relative;
    overflow: hidden;
  }

  .philosophy::before {
    content: '陽菜';
    position: absolute;
    right: -2rem;
    top: -3rem;
    font-family: 'Noto Serif JP', serif;
    font-size: 18rem;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
  }

  .philosophy-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }

  .philosophy-item {
    border-left: 2px solid var(--emerald);
    padding-left: 2rem;
  }

  .phil-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--sage);
    margin-bottom: 1rem;
    opacity: 0.7;
  }

  .phil-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.8rem;
  }

  .phil-text {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(245,240,232,0.6);
    font-weight: 300;
  }

  /* ─── COLLECTIONS ─── */
  .collections {
    padding: 9rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    margin-bottom: 5rem;
  }

  .section-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--olive);
    font-weight: 400;
    margin-bottom: 1rem;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1.5rem;
  }

  .section-sub {
    font-size: 1rem;
    color: rgba(40,40,43,0.6);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
  }

  /* CARD GRID — alternating layout */
  .product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 4px;
    min-height: 500px;
    overflow: hidden;
    transition: transform 0.4s ease;
  }

  .product-card:hover { transform: translateY(-4px); }

  .product-card.reverse { direction: rtl; }
  .product-card.reverse > * { direction: ltr; }

  .card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    transition: background 0.5s;
  }

  .card-visual.shimada { background: #1a1a1d; }
  .card-visual.midori { background: #eaf5ec; }
  .card-visual.kokusan { background: #3d4a1e; }
  .card-visual.gogumi { background: #012b02; }

  .card-visual img {
    width: 260px;
    max-width: 80%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: transform 0.6s ease;
  }

  .product-card:hover .card-visual img {
    transform: scale(1.06) rotate(2deg);
  }

  .card-visual-bg {
    position: absolute;
    font-family: 'Noto Serif JP', serif;
    font-size: 14rem;
    font-weight: 200;
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
    color: white;
  }

  .card-info {
    padding: 4rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--parchment);
  }

  .card-series {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--olive);
    font-weight: 400;
    margin-bottom: 0.8rem;
  }

  .card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--black);
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .card-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 200;
    color: var(--olive);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    opacity: 0.8;
  }

  .card-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--emerald);
    margin-bottom: 1.5rem;
  }

  .card-divider {
    width: 40px;
    height: 1px;
    background: var(--emerald);
    margin-bottom: 1.5rem;
  }

  .card-description {
    font-size: 0.9rem;
    line-height: 1.85;
    color: rgba(40,40,43,0.72);
    margin-bottom: 2rem;
    font-weight: 300;
  }

  .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .tag {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(4,99,7,0.3);
    color: var(--emerald);
    padding: 0.3rem 0.7rem;
    font-weight: 400;
  }

  .card-origin {
    font-size: 0.75rem;
    color: rgba(40,40,43,0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .card-origin::before {
    content: '⌘';
    color: var(--emerald);
  }

  /* ─── PROVENANCE ─── */
  .provenance {
    background: var(--emerald);
    padding: 7rem 6rem;
    position: relative;
    overflow: hidden;
  }

  .provenance::after {
    content: '本物';
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    font-family: 'Noto Serif JP', serif;
    font-size: 22rem;
    color: rgba(255,255,255,0.04);
    pointer-events: none;
    line-height: 1;
  }

  .provenance-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }

  .provenance-left h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  .provenance-left h2 em {
    font-style: italic;
    color: var(--sage);
  }

  .provenance-left p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: rgba(245,240,232,0.7);
    margin-bottom: 1.2rem;
  }

  .provenance-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .prov-item {
    padding: 2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
  }

  .prov-item:hover { background: rgba(255,255,255,0.1); }

  .prov-icon {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    font-weight: 200;
    color: var(--sage);
    margin-bottom: 1rem;
    display: block;
  }

  .prov-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
  }

  .prov-text {
    font-size: 0.8rem;
    color: rgba(245,240,232,0.6);
    line-height: 1.7;
  }

  /* ─── RITUAL / HOW TO USE ─── */
  .ritual {
    padding: 9rem 6rem;
    background: var(--parchment);
    position: relative;
  }

  .ritual-inner {
    max-width: 1400px;
    margin: 0 auto;
  }

  .ritual-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 4rem;
  }

  .ritual-step {
    padding: 3rem 2.5rem;
    position: relative;
    border-right: 1px solid rgba(4,99,7,0.1);
    transition: background 0.3s;
  }

  .ritual-step:last-child { border-right: none; }
  .ritual-step:hover { background: rgba(4,99,7,0.03); }

  .ritual-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    color: rgba(4,99,7,0.08);
    line-height: 1;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .ritual-icon {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: var(--emerald);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.7;
  }

  .ritual-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 0.8rem;
  }

  .ritual-text {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(40,40,43,0.65);
    font-weight: 300;
  }

  /* ─── ENQUIRY CTA ─── */
  .cta {
    background: var(--black);
    padding: 8rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta::before {
    content: '茶';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Noto Serif JP', serif;
    font-size: 40rem;
    color: rgba(255,255,255,0.02);
    pointer-events: none;
    line-height: 1;
  }

  .cta-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
  }

  .cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .cta h2 em { color: var(--sage); font-style: italic; }

  .cta p {
    font-size: 1rem;
    color: rgba(245,240,232,0.6);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
  }

  .enquiry-form {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    text-align: left;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .form-field { display: flex; flex-direction: column; gap: 0.45rem; }
  .form-field-full { margin-bottom: 1.2rem; }

  .form-field label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage);
  }

  .form-field label .optional {
    color: rgba(245,240,232,0.35);
    text-transform: none;
    letter-spacing: 0;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cream);
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 1px;
    color-scheme: dark;
  }

  .form-field textarea { resize: vertical; min-height: 90px; }
  .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(245,240,232,0.3); }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--sage); }

  .form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--emerald);
    color: var(--cream);
    border: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
  }

  .form-submit:hover { background: #034f05; }
  .form-submit:disabled { opacity: 0.55; cursor: not-allowed; }

  .form-status {
    margin-top: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--sage);
    min-height: 1.4rem;
  }
  .form-status.error { color: #e2a3a3; }

  @media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 1.2rem; }
  }

  .cta-note {
    font-size: 0.72rem;
    color: rgba(245,240,232,0.3);
    letter-spacing: 0.1em;
  }

  /* ─── FOOTER ─── */
  footer {
    background: #0f0f10;
    padding: 4rem 6rem 2rem;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .footer-brand img {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
  }

  .footer-brand p {
    font-size: 0.8rem;
    line-height: 1.8;
    color: rgba(245,240,232,0.4);
    max-width: 300px;
  }

  .footer-col h4 {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1.2rem;
    font-weight: 400;
  }

  .footer-col ul {
    list-style: none;
  }

  .footer-col ul li {
    margin-bottom: 0.7rem;
  }

  .footer-col ul li a {
    font-size: 0.8rem;
    color: rgba(245,240,232,0.4);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-col ul li a:hover { color: var(--sage); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom p {
    font-size: 0.72rem;
    color: rgba(245,240,232,0.25);
    letter-spacing: 0.05em;
  }

  .footer-bottom .kanji-footer {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    color: rgba(245,240,232,0.15);
    letter-spacing: 0.5em;
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  @keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }

  @keyframes scrollPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }

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

  /* Intersection Observer fade-in */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    nav { padding: 1rem 2rem; }
    nav ul { display: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 8rem 2.5rem 4rem; }
    .hero-right { padding: 4rem 2.5rem; min-height: 50vh; }
    .hero-logo-wrap img { width: 280px; }
    .brand-story { grid-template-columns: 1fr; padding: 5rem 2.5rem; gap: 3rem; }
    .philosophy-inner { grid-template-columns: 1fr; gap: 2rem; padding: 5rem 2.5rem; }
    .philosophy { padding: 0; }
    .collections { padding: 5rem 2rem; }
    .product-card { grid-template-columns: 1fr; min-height: auto; }
    .product-card.reverse { direction: ltr; }
    .card-visual { min-height: 320px; }
    .ritual-grid { grid-template-columns: 1fr 1fr; }
    .ritual { padding: 5rem 2rem; }
    .cta { padding: 5rem 2rem; }
    footer { padding: 4rem 2rem 2rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .provenance { padding: 5rem 2rem; }
    .provenance-inner { grid-template-columns: 1fr; gap: 3rem; }
    .intro-band { padding: 1.5rem 2rem; }
    .stats-row { flex-wrap: wrap; gap: 2rem; }
  }

  /* ============================================= */
  /* DISCOVER PAGE — unique components */
  /* ============================================= */

  /* PAGE HERO */
  .page-hero {
    padding: 11rem 6rem 6rem;
    max-width: 1400px; margin: 0 auto;
    text-align: center;
    position: relative;
  }
  .page-hero::before {
    content: '学'; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    font-family: 'Noto Serif JP', serif; font-size: 16rem; color: rgba(4,99,7,0.04);
    pointer-events: none; line-height: 1; z-index: -1;
  }
  .page-hero .section-eyebrow { justify-content: center; display: flex; }
  .page-hero h1 {
    font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
    font-size: clamp(2.6rem, 5vw, 4.4rem); color: var(--black); line-height: 1.15; margin: 0.6rem 0 1.4rem;
  }
  .page-hero h1 em { color: var(--emerald); font-style: italic; }
  .page-hero p { font-size: 1.05rem; color: rgba(40,40,43,0.65); max-width: 560px; margin: 0 auto; line-height: 1.8; }


  /* SHOP CTA BAND */
  .shop-band {
    background: var(--emerald); border-radius: 2px; padding: 3.5rem 4rem; margin: 0 6rem 0;
    max-width: 1400px; margin-left: auto; margin-right: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  }
  .shop-band h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.9rem; color: var(--cream); }
  .shop-band h3 em { font-style: italic; color: var(--sage); }
  .shop-band p { color: rgba(245,240,232,0.7); font-size: 0.9rem; max-width: 420px; margin-top: 0.4rem; }
  .shop-band .btn-outline { border-color: rgba(245,240,232,0.5); color: var(--cream); }
  .shop-band .btn-outline:hover { border-color: var(--cream); }

  /* JOURNEY TIMELINE */
  .journey { background: var(--black); padding: 7rem 6rem; position: relative; overflow: hidden; }
  .journey::before {
    content: '陽菜'; position: absolute; right: -2rem; bottom: -3rem; font-family: 'Noto Serif JP', serif;
    font-size: 16rem; color: rgba(255,255,255,0.03); pointer-events: none; line-height: 1;
  }
  .journey .section-eyebrow { color: var(--sage); }
  .journey .section-title { color: var(--cream); }
  .journey .section-sub { color: rgba(245,240,232,0.55); }
  .journey-inner { max-width: 1400px; margin: 0 auto; position: relative; }
  .journey-line { position: relative; padding-top: 1rem; max-width: 720px; margin: 0 auto; }
  .journey-line::before { content:''; position:absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: rgba(245,240,232,0.15); }
  .jstep { position: relative; padding-left: 4.2rem; margin-bottom: 2.6rem; }
  .jstep:last-child { margin-bottom: 0; }
  .jstep .dot {
    position: absolute; left: 8px; top: 2px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--black); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: var(--gold); font-family: 'Raleway', sans-serif;
  }
  .jstep h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.3rem; color: var(--cream); margin-bottom: 0.3rem; }
  .jstep p { color: rgba(245,240,232,0.6); font-size: 0.88rem; line-height: 1.75; max-width: 480px; }
  .journey-close {
    margin-top: 3.5rem; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 1.4rem; color: var(--sage);
  }

  /* WHY MATCHA */
  .whygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; margin-top: 1rem; }
  .whyitem i { font-size: 1.5rem; color: var(--emerald); margin-bottom: 1rem; display: block; }
  .whyitem h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; margin-bottom: 0.5rem; }
  .whyitem p { font-size: 0.88rem; color: rgba(40,40,43,0.6); line-height: 1.7; }

  /* RECIPES */
  .recipes { background: var(--parchment); }
  .recipegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(4,99,7,0.12); }
  .recipe-tile {
    background: var(--cream); padding: 2.6rem 1.4rem; text-align: center; font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; transition: background 0.3s;
  }
  .recipe-tile .n {
    display: block; font-family: 'Raleway', sans-serif; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--olive);
    margin-bottom: 0.6rem; text-transform: uppercase;
  }
  .recipe-tile:hover { background: var(--sage); }

  /* BREWING GUIDE */
  .brew-tabs { display: flex; gap: 0.6rem; margin-bottom: 3rem; flex-wrap: wrap; justify-content: center; }
  .brew-tab {
    font-family: 'Raleway', sans-serif; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 0.7rem 1.5rem; border: 1px solid rgba(4,99,7,0.3); background: transparent;
    border-radius: 30px; cursor: pointer; color: var(--emerald); transition: all 0.3s;
  }
  .brew-tab.active { background: var(--emerald); border-color: var(--emerald); color: var(--cream); }
  .brew-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3.5rem; align-items: flex-start; }
  .brew-steps { counter-reset: step; }
  .brew-step { display: flex; gap: 1.4rem; padding: 1.4rem 0; border-top: 1px solid rgba(4,99,7,0.12); }
  .brew-step:last-child { border-bottom: 1px solid rgba(4,99,7,0.12); }
  .brew-step .num {
    counter-increment: step; font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--gold);
    width: 2.2rem; flex-shrink: 0;
  }
  .brew-step .num::before { content: counter(step, decimal-leading-zero); }
  .brew-step h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.15rem; margin-bottom: 0.3rem; }
  .brew-step p { font-size: 0.85rem; color: rgba(40,40,43,0.65); line-height: 1.7; }
  .brew-panel { background: var(--cream); border: 1px solid rgba(4,99,7,0.15); padding: 2rem; }
  .brew-panel h4 {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem;
    font-family: 'Raleway', sans-serif; font-weight: 600; color: var(--olive);
  }
  .serving-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
  .serving-row .count { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--emerald); }
  input[type=range] { width: 100%; margin: 0.9rem 0 1.6rem; accent-color: var(--emerald); }
  .ratio-list { list-style: none; margin: 0 0 1.6rem; font-size: 0.85rem; }
  .ratio-list li { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px dashed rgba(4,99,7,0.15); }
  .ratio-list li span:last-child { font-weight: 600; color: var(--emerald); }
  .tools-list { list-style: none; font-size: 0.82rem; color: rgba(40,40,43,0.65); }
  .tools-list li { padding: 0.45rem 0; display: flex; gap: 0.7rem; align-items: center; }
  .tools-list li i { color: var(--gold); width: 16px; text-align: center; }
  .mistakes { margin-top: 4rem; }
  .mistakes h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.5rem; margin-bottom: 1rem; }
  .acc-item { border-top: 1px solid rgba(4,99,7,0.12); }
  .acc-item:last-child { border-bottom: 1px solid rgba(4,99,7,0.12); }
  .acc-head {
    width: 100%; text-align: left; background: none; border: none; padding: 1.2rem 0.2rem; cursor: pointer;
    font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; display: flex; justify-content: space-between;
    align-items: center; color: var(--black);
  }
  .acc-head .plus { font-family: 'Raleway', sans-serif; font-size: 1.2rem; color: var(--gold); transition: transform 0.3s; }
  .acc-item.open .acc-head .plus { transform: rotate(45deg); }
  .acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
  .acc-body p { padding: 0 0.2rem 1.2rem; font-size: 0.85rem; color: rgba(40,40,43,0.6); max-width: 620px; line-height: 1.7; }
  .qr-cta {
    margin-top: 3.5rem; display: flex; align-items: center; gap: 1.6rem; border: 1px solid rgba(4,99,7,0.15);
    padding: 1.6rem 1.8rem; background: var(--cream);
  }
  .qr-box {
    width: 56px; height: 56px; border: 1px solid var(--black); display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; font-size: 1.3rem; color: var(--black);
  }
  .qr-cta p { margin: 0; font-size: 0.85rem; color: rgba(40,40,43,0.65); }
  .qr-cta strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin-bottom: 0.2rem; color: var(--black); }

  /* JAPAN */
  .japan { background: var(--parchment); }
  .japan-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(4,99,7,0.12); }
  .japan-card { background: var(--cream); padding: 2.2rem 1.2rem; text-align: center; }
  .japan-card i { font-size: 1.3rem; color: var(--emerald); display: block; margin-bottom: 0.8rem; }
  .japan-card .jp { font-family: 'Noto Serif JP', serif; font-size: 1.15rem; color: var(--gold); display: block; margin-bottom: 0.5rem; }
  .japan-card h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.05rem; margin-bottom: 0.4rem; }
  .japan-card p { font-size: 0.76rem; color: rgba(40,40,43,0.6); }

  /* INSTAGRAM */
  .instagram { text-align: center; }
  .ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 2.6rem 0 1.6rem; max-width: 900px; margin-left: auto; margin-right: auto; }
  .ig-tile { aspect-ratio: 1; background: var(--sage); display: flex; align-items: center; justify-content: center; }
  .ig-tile:nth-child(odd) { background: var(--emerald); color: var(--cream); }
  .ig-tile:nth-child(3n) { background: var(--parchment); border: 1px solid rgba(4,99,7,0.15); color: var(--emerald); }
  .ig-tile i { font-size: 1.2rem; opacity: 0.7; }
  .ig-qr { width: 130px; margin: 1.6rem auto 0; }

  /* NEWSLETTER */
  .newsletter { background: #0f0f10; text-align: center; }
  .newsletter .section-eyebrow { color: var(--sage); }
  .newsletter .section-title { color: var(--cream); }
  .newsletter form { display: flex; max-width: 420px; margin: 2rem auto 1.2rem; border-bottom: 1px solid rgba(245,240,232,0.3); }
  .newsletter input[type=email] {
    flex: 1; background: transparent; border: none; color: var(--cream); font-family: 'Raleway', sans-serif;
    font-size: 0.9rem; padding: 0.9rem 0.6rem; outline: none;
  }
  .newsletter input[type=email]::placeholder { color: rgba(245,240,232,0.4); }
  .newsletter button {
    background: none; border: none; color: var(--gold); font-family: 'Raleway', sans-serif; font-weight: 600;
    font-size: 0.72rem; letter-spacing: 0.1em; cursor: pointer; padding: 0.9rem 0.4rem; text-transform: uppercase;
  }
  .nl-perks {
    display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; font-size: 0.68rem;
    color: rgba(245,240,232,0.4); text-transform: uppercase; letter-spacing: 0.08em;
  }



  /* ============================================= */
  /* SHOP PAGE — unique components */
  /* ============================================= */

  /* Shop page page-hero variant */
  .page-shop .page-hero { padding-bottom: 5rem; }
  .page-shop .page-hero::before { content: '購'; }
  .page-shop .page-hero p { margin-bottom: 2rem; }

  .btn-buy {
    display: inline-flex; align-items:center; justify-content:center; width:100%;
    text-decoration: none; background: var(--emerald); color: var(--cream);
    padding: 0.85rem 1.6rem; font-family: 'Raleway', sans-serif; font-size: 0.68rem; font-weight: 400;
    letter-spacing: 0.16em; text-transform: uppercase; transition: background 0.3s, transform 0.3s; border: none; cursor: pointer;
  }
  .btn-buy:hover { background: #034f05; transform: translateY(-2px); }

  .trust-row {
    display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap; margin-top: 1.6rem;
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); font-weight: 400;
  }
  .trust-row span { display: flex; align-items: center; gap: 0.5rem; }
  .trust-row i { color: var(--gold); }

  /* FILTER */
  .filter-row { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 4rem; }
  .filter-pill {
    font-family: 'Raleway', sans-serif; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.06em;
    padding: 0.6rem 1.3rem; border: 1px solid rgba(4,99,7,0.3); background: transparent;
    border-radius: 30px; cursor: pointer; color: var(--emerald); transition: all 0.3s;
  }
  .filter-pill.active { background: var(--emerald); border-color: var(--emerald); color: var(--cream); }

  /* PRODUCT GRID */
  .shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(4,99,7,0.12); }
  .product-card { background: var(--cream); padding: 2rem 1.6rem 1.8rem; display: flex; flex-direction: column; }
  .product-media {
    aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem;
    background: var(--parchment); overflow: hidden;
  }
  .product-media img { width: 100%; height: 100%; object-fit: cover; }
  .product-tagline { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--olive); font-weight: 400; margin-bottom: 0.4rem; }
  .product-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 0.1rem; }
  .product-card .jp-sub { font-family: 'Noto Serif JP', serif; font-size: 0.85rem; color: var(--gold); margin-bottom: 0.7rem; display: block; }
  .product-card p.desc { font-size: 0.82rem; color: rgba(40,40,43,0.65); flex-grow: 1; margin-bottom: 1.1rem; line-height: 1.7; }
  .size-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
  .size-pill {
    font-size: 0.72rem; border: 1px solid rgba(4,99,7,0.2); padding: 0.4rem 0.8rem; border-radius: 20px;
    color: rgba(40,40,43,0.6); background: none; cursor: pointer; font-family: 'Raleway', sans-serif; transition: all 0.25s;
  }
  .size-pill.active { border-color: var(--emerald); color: var(--emerald); font-weight: 600; background: rgba(4,99,7,0.06); }

  /* BUNDLE STRIP */
  .bundle-strip {
    background: var(--emerald); border-radius: 2px; padding: 3.2rem 3rem; display: grid;
    grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; align-items: center; margin-top: 4rem;
  }
  .bundle-strip h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--cream); margin-bottom: 0.8rem; }
  .bundle-strip h3 em { font-style: italic; color: var(--sage); }
  .bundle-strip p { color: rgba(245,240,232,0.75); font-size: 0.88rem; max-width: 400px; }
  .bundle-media { display: flex; justify-content: center; }
  .bundle-media img {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,0.25); border: 3px solid var(--emerald);
  }
  .bundle-media img:not(:first-child) { margin-left: -22px; }
  .bundle-strip .btn-outline { border-color: rgba(245,240,232,0.5); color: var(--cream); margin-top: 1.2rem; display: inline-block; }
  .bundle-strip .btn-outline:hover { border-color: var(--cream); }

  /* CHECKOUT STEPS */
  .checkout { background: var(--parchment); }
  .checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(4,99,7,0.12); margin-top: 1rem; }
  .checkout-step { background: var(--cream); padding: 2.2rem 1.8rem; }
  .checkout-step .stepnum { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--gold); margin-bottom: 0.6rem; display: block; }
  .checkout-step h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.15rem; margin-bottom: 0.5rem; }
  .checkout-step p { font-size: 0.82rem; color: rgba(40,40,43,0.6); line-height: 1.7; }



  /* ============================================= */
  /* RESPONSIVE — page-specific additions */
  /* ============================================= */

@media (max-width: 900px) {
    nav { padding: 1rem 2rem; }
    nav ul { display: none; }
    .page-hero { padding: 8rem 2rem 3rem; }
    section { padding: 4rem 2rem; }
    .shop-band { margin: 0 2rem; padding: 2.4rem 2rem; }
    .journey { padding: 4rem 2rem; }
    .whygrid { grid-template-columns: 1fr 1fr; }
    .recipegrid { grid-template-columns: 1fr 1fr; }
    .brew-layout { grid-template-columns: 1fr; }
    .japan-grid { grid-template-columns: repeat(2, 1fr); }
    .ig-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
  }

@media (max-width: 900px) {
    nav { padding: 1rem 2rem; }
    nav ul { display: none; }
    .page-hero { padding: 8rem 2rem 3rem; }
    section { padding: 2rem 2rem 4rem; }
    .shop-grid { grid-template-columns: 1fr 1fr; }
    .bundle-strip { grid-template-columns: 1fr; text-align: center; padding: 2.4rem 2rem; }
    .bundle-media { margin-top: 1rem; }
    .checkout-steps { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
  }

@media (max-width: 560px) {
    .shop-grid { grid-template-columns: 1fr; }
  }



  /* ============================================= */
  /* GENERIC PAGE FALLBACK (page.php / index.php / 404.php) */
  /* ============================================= */
  .generic-page {
    max-width: 760px; margin: 0 auto; padding: 11rem 2rem 8rem; min-height: 50vh;
  }
  .generic-page h1 {
    font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
    font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; color: var(--black);
  }
  .generic-page .entry-content { font-size: 0.95rem; line-height: 1.9; color: rgba(40,40,43,0.75); }
  .generic-page .entry-content p { margin-bottom: 1.2rem; }
  .generic-page .entry-content a { color: var(--emerald); }
