/*
Theme Name: Horse Central
Theme URI: https://horse-central.jp
Description: Official WordPress theme for Horse Central Breeding — a thoroughbred breeding company based in Tomakomai, Hokkaido.
Author: Horse Central
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: horse-central
*/

/* ─────────────────────────────────────────────
   CSS Variables
───────────────────────────────────────────── */
:root {
  --bg: #F8F5EF;
  --bg-white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #5C5750;
  --ink-3: #8A857C;
  --green: #3D5240;
  --green-deep: #2A3A2C;
  --green-soft: #E8F0E5;
  --gold: #A07845;
  --gold-soft: #C9A878;
  --rule: #E8E2D6;
  --rule-soft: #EFEAE0;
  --pink: #F8DDDF;
  --pink-deep: #C24E5A;
  --serif-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --display: "Cormorant Garamond", "Cinzel", serif;
  --container: 1280px;
  --reading: 720px;
}

/* Home page uses brighter green accent */
body.home {
  --bg: #FFFFFF;
  --bg-soft: #F7F5EE;
  --green: #2F6B3D;
  --green-deep: #1F4A2A;
  --rule: #E5E2D8;
}

/* ─────────────────────────────────────────────
   Reset & Base
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-jp);
  font-weight: 400;
  line-height: 1.8;
  font-size: 14px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  position: relative;
  max-width: none; margin: 0;
  padding: 0 32px; height: 84px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
.nav-burger {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: none; border: none; padding: 0; cursor: pointer;
}
.nav-burger svg { display: block; }
.nav-links {
  display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav-links a {
  font-family: var(--serif-jp); font-size: 13px; letter-spacing: .18em;
  color: var(--ink); font-weight: 500; padding: 6px 0;
  position: relative; transition: color .2s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}

.nav-logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  cursor: pointer; text-decoration: none;
}
.nav-logo img.real-logo {
  height: 56px; width: auto; display: block;
  clip-path: inset(0 0 23% 0);
}
.nav-logo .fallback-shield { width: 50px; height: 56px; display: block; }
.nav-logo-textwrap {
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1; padding-top: 1px;
}
.nav-logo-text {
  font-family: var(--display); font-size: 20px; letter-spacing: .28em;
  font-weight: 700; color: var(--ink); line-height: 1; margin: 0;
}
.nav-logo-sub {
  font-family: var(--display); font-size: 10px; letter-spacing: .5em;
  color: var(--gold); margin-top: 6px; font-weight: 700; text-transform: uppercase; line-height: 1;
}

.nav-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.nav-right a.tel {
  font-family: var(--display); font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px; font-weight: 600;
}
.nav-cta {
  background: var(--green); color: #fff; padding: 11px 18px;
  font-family: var(--display); font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; font-weight: 700;
  transition: background .2s ease;
  display: inline-block;
}
.nav-cta:hover { background: var(--green-deep); }

/* ─────────────────────────────────────────────
   DRAWER (mobile side panel)
───────────────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(26,26,26,.42);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 998;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; height: 100vh;
  width: min(420px, 38vw);
  background: #F8F5EF;
  transform: translateX(-100%);
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
  z-index: 999; display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(26,26,26,.08);
}
.drawer.is-open { transform: translateX(0); }
@media (max-width: 768px) { .drawer { width: 100vw; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px 24px; border-bottom: 1px solid var(--rule);
}
.drawer-brand {
  font-family: var(--display); font-size: 11px; letter-spacing: .42em;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
}
.drawer-close {
  width: 34px; height: 34px; border: none; background: none; cursor: pointer;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s ease;
}
.drawer-close:hover { color: var(--gold); }
.drawer-nav {
  list-style: none; margin: 0; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 0;
  flex: 1 1 auto; overflow-y: auto;
}
.drawer-nav > li { border-bottom: 1px solid var(--rule); }
.drawer-nav > li:first-child { border-top: 1px solid var(--rule); }
.drawer-nav a {
  display: block;
  font-family: var(--serif-jp); font-size: 16px; letter-spacing: .18em;
  color: var(--ink); font-weight: 500;
  padding: 22px 4px; line-height: 1.6;
  transition: color .25s ease, padding .25s ease;
  position: relative;
}
.drawer-nav a:hover { color: var(--gold); padding-left: 14px; }
.drawer-nav a::after {
  content: ""; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 1px; background: var(--gold);
  opacity: 0; transition: opacity .25s ease, width .25s ease;
}
.drawer-nav a:hover::after { opacity: 1; width: 18px; }
.drawer-nav .drawer-sub {
  list-style: none; margin: 0 0 12px; padding: 0 0 8px 14px; display: none;
}
.drawer-nav .drawer-sub a {
  font-size: 13px; letter-spacing: .14em; color: var(--ink-2);
  padding: 12px 4px; font-weight: 400;
}
.drawer-nav .drawer-sub a:hover { color: var(--gold); }
.drawer-foot {
  padding: 22px 32px 28px; border-top: 1px solid var(--rule);
  font-family: var(--display); font-size: 10px; letter-spacing: .4em;
  color: var(--gold); font-weight: 600; text-transform: uppercase;
}
body.drawer-open { overflow: hidden; }

/* ─────────────────────────────────────────────
   SUB-HERO (inner pages)
───────────────────────────────────────────── */
.subhero {
  position: relative; width: 100%; height: 520px;
  overflow: hidden; background: #222;
}
.subhero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 50%;
  filter: brightness(.92) saturate(.95);
}
.subhero-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(20,30,18,.45) 0%, rgba(20,30,18,.30) 35%, rgba(20,30,18,.20) 60%, rgba(20,30,18,.34) 100%);
}
.subhero-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.subhero-title { text-align: center; }
.subhero-title .jp {
  font-family: var(--serif-jp); font-weight: 600;
  font-size: 62px; letter-spacing: .32em; line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,.55); padding-left: .32em;
}
.subhero-title .en {
  font-family: var(--display); font-weight: 600;
  font-size: 14px; letter-spacing: .5em; text-transform: uppercase;
  color: #E6CD8E; margin-top: 24px; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* ─────────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────────── */
.crumb { background: var(--bg); border-bottom: 1px solid var(--rule); }
.crumb-inner {
  max-width: var(--container); margin: 0 auto; padding: 18px 32px;
  font-family: var(--sans-jp); font-size: 12px; color: var(--ink-2); letter-spacing: .12em;
}
.crumb-inner a { color: var(--ink-2); transition: color .2s ease; }
.crumb-inner a:hover { color: var(--green); }
.crumb-inner .sep { margin: 0 12px; color: var(--gold); }
.crumb-inner .here { color: var(--ink); font-weight: 500; }

/* ─────────────────────────────────────────────
   PAGE TITLE (inner pages)
───────────────────────────────────────────── */
.pagetitle {
  padding: 110px 32px 90px; text-align: center; background: var(--bg);
}
.pagetitle .eyebrow {
  font-family: var(--display); font-size: 12px; letter-spacing: .42em;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
}
.pagetitle h1 {
  font-family: var(--serif-jp); font-weight: 700;
  font-size: 46px; letter-spacing: .24em; color: var(--ink);
  margin: 18px 0 24px; line-height: 1.2; padding-left: .24em;
}
.pagetitle .rule {
  width: 60px; height: 1px; background: var(--gold);
  margin: 0 auto 28px;
}
.pagetitle .lede {
  font-family: var(--serif-jp); font-size: 15px; color: var(--ink-2);
  line-height: 2; letter-spacing: .08em; max-width: 680px; margin: 0 auto;
}

/* ─────────────────────────────────────────────
   SECTION HEADER (shared)
───────────────────────────────────────────── */
.secthead {
  text-align: center; padding: 90px 32px 50px; background: var(--bg);
}
.secthead .eyebrow {
  font-family: var(--display); font-size: 12px; letter-spacing: .42em;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
}
.secthead h2 {
  font-family: var(--serif-jp); font-weight: 700;
  font-size: 32px; letter-spacing: .22em; color: var(--ink);
  margin: 14px 0 20px; line-height: 1.3; padding-left: .22em;
}
.secthead .rule { width: 48px; height: 1px; background: var(--gold); margin: 0 auto 22px; }
.secthead .desc {
  font-family: var(--serif-jp); font-size: 14px; color: var(--ink-2);
  letter-spacing: .08em; max-width: 600px; margin: 0 auto; line-height: 1.9;
}

/* ─────────────────────────────────────────────
   END CTA (bottom of inner pages)
───────────────────────────────────────────── */
.endcta {
  padding: 90px 32px 120px; text-align: center;
  background: var(--bg-white); border-top: 1px solid var(--rule);
}
.endcta .eyebrow {
  font-family: var(--display); font-size: 11px; letter-spacing: .42em;
  color: var(--gold); font-weight: 700; text-transform: uppercase; margin-bottom: 14px;
}
.endcta h2 {
  font-family: var(--serif-jp); font-size: 24px; font-weight: 600;
  letter-spacing: .16em; color: var(--ink); margin: 0 0 12px; line-height: 1.6;
}
.endcta p {
  font-family: var(--serif-jp); font-size: 14px; color: var(--ink-2);
  margin: 0 0 32px; letter-spacing: .08em;
}
.endcta .btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: 18px 52px;
  font-family: var(--display); font-size: 13px; letter-spacing: .42em;
  text-transform: uppercase; font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.endcta .btn:hover { background: var(--green-deep); transform: translateY(-1px); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: #fff; border-top: 1px solid var(--rule); padding: 80px 0 0;
}
.foot-grid {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 64px; align-items: start;
  padding-bottom: 60px;
  max-width: var(--container); margin: 0 auto;
  padding-left: 32px; padding-right: 32px;
}
.foot-col {}
.foot-eyebrow {
  font-family: var(--display); font-size: 11px; letter-spacing: .36em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px;
}
.foot-col h4 {
  font-family: var(--serif-jp); font-size: 18px; letter-spacing: .18em;
  font-weight: 700; color: var(--ink); margin: 0 0 22px;
}
.foot-rule { width: 36px; height: 1px; background: var(--gold); margin: 0 0 22px; }
.foot-contact-line {
  font-family: var(--serif-jp); font-size: 13px; color: var(--ink-2);
  line-height: 1.95; margin: 0 0 4px; letter-spacing: .04em;
}
.foot-contact-mail { margin-top: 14px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.foot-contact-label {
  font-family: var(--display); font-size: 11px; letter-spacing: .24em;
  color: var(--gold); font-weight: 600; text-transform: uppercase;
}
.foot-contact-mail a {
  font-family: var(--display); font-size: 14px; color: var(--ink);
  text-decoration: none; letter-spacing: .04em; font-weight: 500;
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.foot-contact-mail a:hover { color: var(--green); border-color: var(--green); }

.foot-sitemap { list-style: none; margin: 0; padding: 0; }
.foot-sitemap li { margin-bottom: 14px; }
.foot-sitemap a {
  font-family: var(--serif-jp); font-size: 14px; color: var(--ink);
  text-decoration: none; letter-spacing: .06em; font-weight: 500;
  transition: color .2s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.foot-sitemap a::before {
  content: ""; width: 14px; height: 1px; background: var(--gold);
  display: inline-block;
  transition: width .2s ease, background .2s ease;
}
.foot-sitemap a:hover { color: var(--green); }
.foot-sitemap a:hover::before { width: 22px; background: var(--green); }

.foot-center { text-align: center; padding-top: 6px; }
.foot-center img.foot-logo-img {
  height: 90px; width: auto; margin: 0 auto 14px; display: block;
  clip-path: inset(0 0 23% 0);
}
.foot-center .foot-shield-fb { width: 80px; height: auto; margin: 0 auto 14px; display: block; }
.foot-wordmark { margin-bottom: 6px; }
.foot-wordmark .wm-main {
  font-family: var(--display); font-size: 18px; letter-spacing: .34em;
  font-weight: 700; color: var(--ink); line-height: 1;
}
.foot-wordmark .wm-rule { width: 46px; height: 1px; background: var(--gold); margin: 10px auto 9px; }
.foot-wordmark .wm-sub {
  font-family: var(--display); font-size: 10px; letter-spacing: .5em;
  font-weight: 700; color: var(--gold); line-height: 1; padding-left: .5em;
}
.socials { margin-top: 26px; display: flex; gap: 24px; justify-content: center; align-items: center; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold); transition: color .2s ease;
}
.socials a:hover { color: var(--green); }
.socials svg { width: 24px; height: 24px; display: block; }

.foot-copy {
  border-top: 1px solid var(--rule); text-align: center;
  padding: 22px 32px;
  font-family: var(--display); font-size: 12px; color: var(--ink-2); letter-spacing: .12em;
}

/* ─────────────────────────────────────────────
   REVEAL ANIMATION
───────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────
   HOME: HERO
───────────────────────────────────────────── */
.hero { position: relative; padding: 0; background: #fff; }
.hero-img {
  position: relative; height: 560px;
  background-color: #1a2418;
  background-size: cover; background-position: center; overflow: hidden;
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(20,30,18,.55) 0%, rgba(20,30,18,.18) 28%, rgba(20,30,18,0) 50%),
    linear-gradient(180deg, rgba(255,253,245,.06) 0%, rgba(20,30,18,.05) 35%, rgba(20,30,18,.32) 100%);
}
.hero-img { filter: brightness(1.12) saturate(.95); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 32px 60px; color: #fff;
}
.hero-shield-wrap {
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.hero-shield {
  width: 200px; height: auto; margin-bottom: 0;
  clip-path: inset(0 0 23% 0); margin-top: -2px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55)) drop-shadow(0 0 28px rgba(255,240,200,.35));
}
.hero-shield-fallback {
  width: 180px; height: auto; margin-bottom: 30px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55)) drop-shadow(0 0 28px rgba(255,240,200,.35));
}
.hero-wordmark { text-align: center; margin-bottom: 34px; }
.hero-wordmark .wm-main {
  font-family: var(--display); font-size: 26px; letter-spacing: .34em; font-weight: 700;
  color: #FFFDF7; text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 0 24px rgba(0,0,0,.35); line-height: 1;
}
.hero-wordmark .wm-rule {
  width: 60px; height: 1px; background: var(--gold);
  margin: 14px auto 12px; box-shadow: 0 0 8px rgba(0,0,0,.5);
}
.hero-wordmark .wm-sub {
  font-family: var(--display); font-size: 13px; letter-spacing: .5em; font-weight: 700;
  color: var(--gold); text-shadow: 0 2px 10px rgba(0,0,0,.65); line-height: 1; padding-left: .5em;
}
.hero-roster {
  display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 18px 60px; justify-content: center; text-align: center;
  max-width: 780px; width: 100%;
}
.hero-roster .name {
  font-family: var(--serif-jp); font-size: 18px; font-weight: 500; letter-spacing: .08em;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.55);
  cursor: pointer; transition: color .25s ease;
  text-decoration: none;
}
.hero-roster .name:hover { color: #F0E2BB; }
.hero-roster .name.en {
  font-family: var(--display); font-size: 15px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 500;
}

/* ─────────────────────────────────────────────
   HOME: ABOUT / FARM
───────────────────────────────────────────── */
.about { padding: 90px 0 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.about-text { padding: 60px 60px 90px 32px; max-width: 560px; margin-left: auto; }
.about-img { height: 520px; background-size: cover; background-position: center; }
.section-eyebrow {
  font-family: var(--display); font-size: 11px; letter-spacing: .36em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.about h2, .farm h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 38px; line-height: 1.1; letter-spacing: .06em;
  color: var(--green); margin: 0 0 30px; text-transform: uppercase;
}
.about p, .farm p {
  color: var(--ink); font-size: 14px; line-height: 1.95; margin: 0 0 14px; max-width: 480px;
}
.about-cta, .farm-cta {
  display: inline-block; margin-top: 26px;
  background: var(--green); color: #fff;
  font-family: var(--display); font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; padding: 13px 22px; font-weight: 700;
}
.about-cta:hover, .farm-cta:hover { background: var(--green-deep); }

.farm { padding: 0; background: #fff; }
.farm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.farm-img { height: 520px; background-size: cover; background-position: center; }
.farm-text { padding: 60px 32px 90px 60px; max-width: 560px; }

/* ─────────────────────────────────────────────
   HOME: NEWS SECTION
───────────────────────────────────────────── */
.news { padding: 90px 0 80px; background: #fff; }
.news-head { text-align: center; margin-bottom: 40px; }
.news-head .label-jp {
  display: block;
  font-family: var(--serif-jp); font-size: 12px; letter-spacing: .32em;
  color: var(--ink-2); font-weight: 500; margin-bottom: 8px;
}
.news-head .label-en {
  display: block;
  font-family: var(--display); font-size: 30px; letter-spacing: .18em;
  color: var(--green); font-weight: 700; text-transform: uppercase;
}
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ncard { display: block; cursor: pointer; }
.ncard-img {
  aspect-ratio: 16/10; background-size: cover; background-position: center;
  margin-bottom: 14px; transition: opacity .3s ease;
}
.ncard:hover .ncard-img { opacity: .92; }
.ncard-title {
  font-family: var(--serif-jp); font-size: 15px; font-weight: 600; letter-spacing: .04em;
  line-height: 1.55; color: var(--ink); margin: 0 0 8px;
}
.ncard-excerpt { font-size: 12px; color: var(--ink-2); line-height: 1.85; margin: 0; }
.ncard-excerpt .more { color: var(--green); font-weight: 600; display: block; margin-top: 6px; }

/* ─────────────────────────────────────────────
   HOME: PHOTO GALLERY
───────────────────────────────────────────── */
.photo { padding: 60px 0 100px; background: #fff; }
.photo-head { text-align: center; margin-bottom: 30px; }
.photo-head .label-jp {
  display: block;
  font-family: var(--serif-jp); font-size: 12px; letter-spacing: .32em;
  color: var(--ink-2); font-weight: 500; margin-bottom: 8px;
}
.photo-head .label-en {
  display: block;
  font-family: var(--display); font-size: 30px; letter-spacing: .18em;
  color: var(--green); font-weight: 700; text-transform: uppercase;
}
.photo-strip {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 32px 14px;
  max-width: 100%; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.photo-strip::-webkit-scrollbar { height: 6px; }
.photo-strip::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.photo-tile {
  flex: 0 0 360px; height: 260px; background-size: cover; background-position: center;
  scroll-snap-align: start; cursor: pointer; transition: transform .35s ease;
}
.photo-tile:hover { transform: scale(1.02); }
.photo-tile.has-caption { position: relative; overflow: hidden; }
.photo-tile.has-caption::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,26,43,.78) 0%, rgba(14,26,43,.25) 38%, transparent 60%);
  pointer-events: none;
}
.photo-tile-cap {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.photo-tile-cap .cap-name {
  font-family: var(--serif-jp); font-size: 15px; font-weight: 600; letter-spacing: .04em; line-height: 1.3;
}
.photo-tile-cap .cap-meta {
  font-family: var(--display); font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(255,255,255,.78); margin-top: 4px;
}
.photo-tile-cap .cap-tag {
  flex: 0 0 auto;
  font-family: var(--display); font-size: 10px; letter-spacing: .24em; font-weight: 700;
  color: #fff; background: var(--pink-deep);
  padding: 5px 9px; border-radius: 2px; text-transform: uppercase; align-self: flex-end;
}

/* ─────────────────────────────────────────────
   HOME: HORSES PREVIEW (on front page)
───────────────────────────────────────────── */
.horses-home { padding: 80px 0 100px; background: var(--bg-soft, #F7F5EE); }
.horses-home-head { text-align: center; margin-bottom: 50px; }
.horses-home-head h2 {
  font-family: var(--serif-jp); font-size: 30px; font-weight: 600; letter-spacing: .18em;
  color: var(--ink); margin: 0 0 8px;
}
.horses-home-head .en {
  font-family: var(--display); font-size: 11px; letter-spacing: .36em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 600;
}

/* ─────────────────────────────────────────────
   HORSE CARDS (broodmares / sales / home preview)
───────────────────────────────────────────── */
.horses { padding: 0 0 120px; background: var(--bg); }
.horses-inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.horses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 36px; align-items: stretch; }

.hcard {
  display: flex; flex-direction: column;
  transition: transform .35s ease; height: 100%; position: relative;
}
.hcard:hover { transform: translateY(-4px); }
.hcard-body {
  background: var(--bg-white); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20,30,18,.04), 0 8px 24px rgba(20,30,18,.05);
  overflow: hidden; transition: box-shadow .35s ease;
  display: flex; flex-direction: column; height: 100%;
}
.hcard:hover .hcard-body { box-shadow: 0 2px 4px rgba(20,30,18,.06), 0 16px 36px rgba(20,30,18,.10); }

.hcard-catch {
  position: relative; background: #FFFFFF; color: var(--gold);
  font-family: var(--serif-jp); font-size: 13px; font-weight: 600; letter-spacing: .16em;
  padding: 0 18px; border-bottom: 1px solid var(--gold); line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  height: 34px; display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto;
}

.hcard-photo {
  position: relative; aspect-ratio: 4/3; width: 100%; overflow: hidden;
  background: #ccc; flex: 0 0 auto;
}
.hcard-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transition: transform .6s ease;
}
.hcard:hover .hcard-photo img { transform: scale(1.05); }

.hcard-coming {
  position: absolute; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  overflow: hidden;
}
.hcard-coming::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(135deg, rgba(160,120,69,.04) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.hcard-coming-en {
  font-family: var(--display); font-size: 26px; letter-spacing: .18em;
  color: var(--gold); font-weight: 500; font-style: italic; line-height: 1; z-index: 1;
}
.hcard-coming-rule { width: 36px; height: 1px; background: var(--gold); opacity: .6; z-index: 1; }
.hcard-coming-jp {
  font-family: var(--serif-jp); font-size: 11px; letter-spacing: .36em;
  color: var(--ink-2); font-weight: 500; line-height: 1; padding-left: .36em; z-index: 1;
}

.hcard-sold {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: var(--gold); color: #fff;
  font-family: var(--display); font-size: 11px; letter-spacing: .32em; font-weight: 700;
  text-transform: uppercase; padding: 7px 14px 7px 16px;
  border-radius: 2px; box-shadow: 0 2px 6px rgba(20,30,18,.25); line-height: 1;
}
.hcard.sold .hcard-photo img { filter: saturate(.85) brightness(.95); }

.hcard-entry {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: var(--green); color: #fff;
  font-family: var(--serif-jp); font-size: 11px; letter-spacing: .13em; font-weight: 600;
  padding: 7px 12px 7px 14px; border-radius: 2px;
  box-shadow: 0 2px 6px rgba(20,30,18,.28); line-height: 1; white-space: nowrap;
}
.hcard-entry.tbd {
  background: rgba(253,250,243,.95); color: #A07845;
  border: 1px solid #A07845; font-weight: 700;
  box-shadow: 0 2px 6px rgba(20,30,18,.16);
}

.hcard-name {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--rule-soft);
  flex: 0 0 auto; gap: 10px; min-height: 60px;
  background: #3D5240; margin-bottom: 14px;
}
.hcard-name-text { display: flex; flex-direction: column; gap: 3px; }
.hcard-name .en {
  font-family: var(--display); font-size: 15px; letter-spacing: .18em;
  font-weight: 600; color: #fff; line-height: 1; text-transform: uppercase;
}
.hcard-name .kana {
  font-family: var(--serif-jp); font-size: 11px; letter-spacing: .16em;
  color: #E6CD8E; font-weight: 500; line-height: 1;
}
.hcard-name .flag { font-size: 20px; flex: 0 0 auto; line-height: 1; }

.hcard-data {
  margin: 0; padding: 14px 18px 4px;
  display: flex; flex-direction: column; gap: 0; flex: 0 0 auto;
  background: #F8F5EF;
}
.hcard-row {
  display: grid; grid-template-columns: 5.5em 1fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline;
}
.hcard-row:last-child { border-bottom: none; }
.hcard-row dt {
  font-family: var(--serif-jp); font-size: 12px; letter-spacing: .16em;
  color: var(--ink-2); font-weight: 600; line-height: 1.5;
}
.hcard-row dd {
  margin: 0;
  font-family: var(--serif-jp); font-size: 14px; color: var(--ink);
  font-weight: 500; line-height: 1.4;
}
.hcard-row dd .sub {
  font-size: 12px; color: var(--ink-2); font-weight: 400;
}

.hcard-comment {
  padding: 14px 18px 18px; margin-top: 0;
  font-family: var(--sans-jp); font-size: 12px; color: var(--ink-2);
  line-height: 1.85; letter-spacing: .04em; flex: 1 1 auto;
  border-top: 1px solid var(--rule-soft);
}

/* Sales-specific hcard variant (simpler data layout) */
.hcard-data-simple {
  margin: 0; padding: 14px 18px;
  display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px 12px;
  font-size: 12px;
}
.hcard-data-simple dt {
  background: var(--pink); color: var(--ink);
  font-family: var(--serif-jp); font-weight: 600; letter-spacing: .12em;
  padding: 5px 10px; text-align: center; min-width: 54px; align-self: center;
}
.hcard-data-simple dd {
  margin: 0; padding: 5px 0;
  font-family: var(--serif-jp); color: var(--ink); font-weight: 500;
  align-self: center; line-height: 1.4;
}

/* ─────────────────────────────────────────────
   NEWS ARCHIVE
───────────────────────────────────────────── */
.news-archive { padding: 0 0 80px; background: var(--bg); }
.news-archive-inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.news-archive-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 36px; align-items: stretch;
}

.ncard-full {
  display: flex; flex-direction: column;
  background: var(--bg-white); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20,30,18,.04), 0 8px 24px rgba(20,30,18,.05);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; height: 100%;
}
.ncard-full:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(20,30,18,.06), 0 16px 36px rgba(20,30,18,.10);
}
.ncard-photo {
  aspect-ratio: 4/3; width: 100%; overflow: hidden; background: #ccc; flex: 0 0 auto;
}
.ncard-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transition: transform .6s ease;
}
.ncard-full:hover .ncard-photo img { transform: scale(1.04); }
.ncard-body {
  padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1 1 auto;
}
.ncard-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ncard-date {
  font-family: var(--display); font-size: 12px; letter-spacing: .18em;
  color: var(--gold); font-weight: 600; line-height: 1;
}
.ncard-cat {
  font-family: var(--serif-jp); font-size: 11px; letter-spacing: .22em;
  color: var(--ink-2); font-weight: 500; line-height: 1;
  padding-left: 14px; border-left: 1px solid var(--rule);
}
.ncard-title-link {
  font-family: var(--serif-jp); font-size: 16px; font-weight: 600;
  letter-spacing: .06em; line-height: 1.65; color: var(--ink);
  margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ncard-excerpt-text {
  font-family: var(--sans-jp); font-size: 13px; color: var(--ink-2);
  line-height: 1.85; letter-spacing: .04em; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; flex: 1 1 auto;
}
.ncard-more {
  font-family: var(--display); font-size: 12px; letter-spacing: .32em;
  color: var(--gold); font-weight: 600; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start; transition: color .2s ease, gap .2s ease;
}
.ncard-more::after {
  content: ""; width: 18px; height: 1px; background: var(--gold);
  transition: width .2s ease, background .2s ease;
}
.ncard-full:hover .ncard-more { color: var(--green-deep); gap: 14px; }
.ncard-full:hover .ncard-more::after { width: 26px; background: var(--green); }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pager {
  padding: 30px 32px 110px; background: var(--bg);
  display: flex; justify-content: center;
}
.pager-list {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.pager-list a, .pager-list span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  font-family: var(--display); font-size: 13px; letter-spacing: .12em;
  color: var(--ink-2); font-weight: 500;
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.pager-list a:hover { color: var(--green); border-color: var(--rule); }
.pager-list a.is-current {
  color: var(--gold); border-color: var(--gold); font-weight: 600; pointer-events: none;
}
.pager-list .pager-arrow { letter-spacing: .18em; text-transform: uppercase; font-size: 11px; padding: 0 16px; }
.pager-list .pager-ellipsis { color: var(--ink-2); opacity: .6; }

/* ─────────────────────────────────────────────
   SINGLE ARTICLE
───────────────────────────────────────────── */
.ahead { background: var(--bg); padding: 80px 32px 56px; }
.ahead-inner { max-width: var(--reading); margin: 0 auto; text-align: center; }
.ahead-meta { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.ahead-cat {
  font-family: var(--serif-jp); font-size: 11px; letter-spacing: .32em;
  color: #fff; background: var(--green); padding: 7px 16px; font-weight: 500; line-height: 1;
}
.ahead-date {
  font-family: var(--display); font-size: 13px; letter-spacing: .26em;
  color: var(--gold); font-weight: 600; line-height: 1;
}
.ahead h1 {
  font-family: var(--serif-jp); font-weight: 700;
  font-size: 34px; line-height: 1.55; letter-spacing: .08em;
  color: var(--ink); margin: 0 0 28px;
}
.ahead-rule { width: 48px; height: 1px; background: var(--gold); margin: 0 auto 24px; }
.ahead-lede {
  font-family: var(--serif-jp); font-size: 15px; color: var(--ink-2);
  line-height: 2; letter-spacing: .06em; max-width: 620px; margin: 0 auto;
}

.akv { background: var(--bg); padding: 0 32px 72px; }
.akv-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.akv-photo { width: 100%; aspect-ratio: 16/9; background: #ddd; overflow: hidden; }
.akv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.akv-cap {
  margin-top: 14px; font-family: var(--serif-jp); font-size: 12px;
  color: var(--ink-3); letter-spacing: .06em; line-height: 1.7;
  padding-left: 14px; border-left: 2px solid var(--rule);
}

.abody { background: var(--bg); padding: 0 32px 100px; }
.abody-inner { max-width: var(--reading); margin: 0 auto; }
.abody p {
  font-family: var(--serif-jp); font-size: 16px; line-height: 2.05;
  letter-spacing: .06em; color: var(--ink); margin: 0 0 1.7em;
}
.abody p.lead { font-size: 17px; line-height: 2; color: var(--ink); font-weight: 500; }
.abody h2 {
  font-family: var(--serif-jp); font-size: 24px; font-weight: 700;
  letter-spacing: .14em; line-height: 1.55; color: var(--ink);
  margin: 72px 0 28px; padding-left: 18px; border-left: 3px solid var(--green);
}
.abody h3 {
  font-family: var(--serif-jp); font-size: 18px; font-weight: 600;
  letter-spacing: .1em; line-height: 1.65; color: var(--ink);
  margin: 48px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.abody ul { margin: 0 0 1.7em; padding: 0; list-style: none; }
.abody ul li {
  font-family: var(--serif-jp); font-size: 15px; line-height: 1.95;
  letter-spacing: .06em; color: var(--ink);
  padding-left: 22px; position: relative; margin-bottom: .5em;
}
.abody ul li::before {
  content: ""; position: absolute; left: 0; top: .85em;
  width: 10px; height: 1px; background: var(--gold);
}
.abody strong { font-weight: 600; color: var(--ink); }
.abody blockquote {
  margin: 48px 0 56px; padding: 0;
  font-family: var(--serif-jp); font-style: italic; font-weight: 500;
  font-size: 20px; line-height: 1.9; letter-spacing: .06em;
  color: var(--green-deep); text-align: center; position: relative;
}
.abody blockquote::before, .abody blockquote::after {
  content: ""; display: block; width: 36px; height: 1px;
  background: var(--gold); margin: 0 auto 22px;
}
.abody blockquote::after { margin: 22px auto 0; }
.abody blockquote .cite {
  display: block; margin-top: 14px;
  font-family: var(--display); font-style: normal; font-size: 11px;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}

.aback {
  background: var(--bg); padding: 0 32px 70px; text-align: center;
}
.aback a {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 12px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  transition: color .2s ease, gap .2s ease;
}
.aback a::before {
  content: ""; width: 18px; height: 1px; background: var(--gold);
  transition: width .2s ease, background .2s ease;
}
.aback a:hover { color: var(--green); gap: 16px; }
.aback a:hover::before { width: 26px; background: var(--green); }

/* ─────────────────────────────────────────────
   ABOUT: COMPANY INFO TABLE
───────────────────────────────────────────── */
.info { padding: 0 32px 110px; background: var(--bg); }
.info-inner {
  max-width: 880px; margin: 0 auto;
  background: var(--bg-white); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20,30,18,.04), 0 8px 24px rgba(20,30,18,.05);
  padding: 14px 48px;
}
.info-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  padding: 16px 8px; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.info-row:last-child { border-bottom: none; }
.info-row dt {
  font-family: var(--serif-jp); font-size: 13px; letter-spacing: .18em;
  color: var(--ink-2); font-weight: 600; margin: 0; line-height: 1.5;
}
.info-row dt .en {
  display: block; font-family: var(--display); font-size: 11px;
  letter-spacing: .32em; color: var(--gold); font-weight: 600;
  text-transform: uppercase; margin-top: 3px; line-height: 1;
}
.info-row dd {
  font-family: var(--serif-jp); font-size: 15px; color: var(--ink);
  margin: 0; letter-spacing: .06em; line-height: 1.7; font-weight: 500;
}
.info-row dd .zip {
  display: inline-block; color: var(--ink-2); font-size: 13px;
  letter-spacing: .08em; margin-right: 10px; font-weight: 400;
}
.biz-inline {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px; counter-reset: biz;
}
.biz-inline li {
  counter-increment: biz;
  position: relative; padding-left: 36px;
  font-family: var(--serif-jp); font-size: 15px;
  color: var(--ink); font-weight: 500; letter-spacing: .06em; line-height: 1.85;
}
.biz-inline li::before {
  content: counter(biz, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--display); font-size: 13px;
  color: var(--gold); font-weight: 700; letter-spacing: .18em; line-height: 2;
}

/* ─────────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────────── */
.formsection { padding: 0 32px 110px; background: var(--bg); }
.formcard {
  max-width: 680px; margin: 0 auto;
  background: var(--bg-white); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20,30,18,.04), 0 8px 24px rgba(20,30,18,.05);
  padding: 56px 60px 60px;
}
.formcard-head {
  text-align: center; padding-bottom: 30px;
  border-bottom: 1px solid var(--rule); margin-bottom: 36px;
}
.formcard-head .eyebrow {
  font-family: var(--display); font-size: 11px; letter-spacing: .42em;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
}
.formcard-head h2 {
  font-family: var(--serif-jp); font-weight: 600;
  font-size: 22px; letter-spacing: .18em; color: var(--ink);
  margin: 10px 0 0; line-height: 1.4; padding-left: .18em;
}
.form { display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-label {
  font-family: var(--serif-jp); font-size: 14px; font-weight: 600;
  color: var(--ink); letter-spacing: .1em;
  display: flex; align-items: baseline; gap: 8px;
}
.field-label .req { color: var(--gold); font-size: 13px; line-height: 1; font-weight: 700; }
.field-label .opt {
  font-family: var(--sans-jp); font-size: 11px; font-weight: 400;
  color: var(--ink-2); letter-spacing: .16em;
  border: 1px solid var(--rule); padding: 1px 8px; border-radius: 2px; margin-left: 2px;
}
.input, .textarea {
  font-family: var(--sans-jp); font-size: 14px; color: var(--ink);
  background: #FBFAF6; border: 1px solid var(--rule); border-radius: 2px;
  padding: 14px 16px; width: 100%; letter-spacing: .04em;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: #B5AE9F; font-weight: 400; }
.input:hover, .textarea:hover { border-color: #D4CCBC; }
.input:focus, .textarea:focus {
  border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(61,82,64,.08);
}
.textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
.phone-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center; gap: 10px;
}
.phone-row .dash { color: var(--ink-2); font-family: var(--display); font-size: 14px; }
.form-submit-wrap { margin-top: 18px; text-align: center; }
.submit-btn {
  display: inline-block;
  background: var(--green); color: #fff; padding: 18px 64px;
  font-family: var(--display); font-size: 13px; letter-spacing: .42em;
  text-transform: uppercase; font-weight: 700;
  transition: background .2s ease, transform .2s ease; border: 0; cursor: pointer;
}
.submit-btn .jp {
  font-family: var(--serif-jp); font-size: 14px; letter-spacing: .32em;
  font-weight: 600; padding-left: .32em;
}
.submit-btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.submit-note {
  margin-top: 18px; font-family: var(--serif-jp); font-size: 12px;
  color: var(--ink-2); letter-spacing: .08em;
}

/* CF7 overrides */
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  font-family: var(--sans-jp); font-size: 14px; color: var(--ink);
  background: #FBFAF6; border: 1px solid var(--rule); border-radius: 2px;
  padding: 14px 16px; width: 100%; letter-spacing: .04em;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  outline: none;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(61,82,64,.08);
}
.wpcf7 input[type="submit"] {
  display: inline-block; background: var(--green); color: #fff;
  padding: 18px 64px; font-family: var(--display); font-size: 13px;
  letter-spacing: .42em; text-transform: uppercase; font-weight: 700;
  border: none; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--green-deep); transform: translateY(-1px); }

/* ─────────────────────────────────────────────
   Accent overrides
───────────────────────────────────────────── */
body[data-accent="navy"] { --green: #1A2A4A; --green-deep: #0E1A2B; --green-soft: #E8ECF3; }
body[data-accent="burgundy"] { --green: #7A2A38; --green-deep: #4A1822; --green-soft: #F5E5E8; }

/* ─────────────────────────────────────────────
   Number font utility
───────────────────────────────────────────── */
.hc-num {
  font-family: var(--sans-jp) !important;
  font-feature-settings: normal; font-variant-numeric: normal;
}
