/* ==========================================================================
   v3-brand Editorial Design System (Cocoon Child Theme Ready)
   Font: Exact PetFoodPro stack ("Hiragino Sans", "Hiragino Kaku Gothic ProN",
         "Yu Gothic", "Noto Sans JP", sans-serif)
   Aesthetic: Refined Japanese magazine & independent editorial brands.
   Zero gloomy dark-banner LP feel. Zero AI box spam. Zero clunky chrome.
   ========================================================================== */

:root {
  --font-base: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --bg-page: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-card: #ffffff;
  --border-hairline: #eaecef;
  --border-medium: #d6dae0;
  --ink-strong: #15191e;
  --ink-body: #2d333b;
  --ink-muted: #6e7781;
  --accent: #1d5c42;
  --accent-sub: #d98a36;
  --logo-h: 46px;
  --logo-footer-h: 36px;
  --container-w: 1140px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink-body);
  font-family: var(--font-base);
  font-size: 15.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, transform 0.2s ease;
}

.wrap {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   Minimal Utility Top Strip (TABIPPO-style quiet context)
   -------------------------------------------------------------------------- */
.top-strip {
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-page);
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.top-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 16px;
}

.top-strip__links {
  display: flex;
  gap: 18px;
}

.top-strip__links a:hover {
  color: var(--ink-strong);
}

/* --------------------------------------------------------------------------
   Refined Brand Header (Single-Row Left Logo OR Centered Essay Header)
   -------------------------------------------------------------------------- */
.brand-header {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-hairline);
}

.brand-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: var(--logo-h);
  width: auto;
}

.brand-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.brand-nav li {
  flex: 0 0 auto;
}

.brand-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-body);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.brand-nav a:hover,
.brand-nav a.is-current {
  color: var(--accent);
}

.brand-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--ink-strong);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Centered Essay Header Variant (for shiori) */
.brand-header--centered .brand-header__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 0;
}

.brand-header--centered .brand-logo img {
  height: var(--logo-h);
}

.brand-header--centered .brand-caption {
  margin: 8px 0 22px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.brand-header--centered .brand-nav-bar {
  width: 100%;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: center;
  padding: 13px 0;
}

/* --------------------------------------------------------------------------
   FV Variant 1: Airy Bright Split Editorial (hiyori — LITALICO/Kinfolk vibe)
   -------------------------------------------------------------------------- */
.fv-split {
  padding: 52px 0 64px;
}

.fv-split__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.fv-eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.fv-split__heading {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
}

.fv-split__lead {
  margin: 0 0 30px;
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--ink-muted);
}

.fv-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fv-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.fv-link-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fv-link-pill--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.fv-link-pill--primary:hover {
  opacity: 0.9;
  color: #ffffff;
}

.fv-split__media {
  position: relative;
}

.fv-split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

/* --------------------------------------------------------------------------
   FV Variant 2: Modern Magazine Lead + Overlap Pickup Strip (SOLA — TABIPPO vibe)
   -------------------------------------------------------------------------- */
.fv-magazine {
  padding: 0 0 56px;
}

.fv-magazine__stage {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: stretch;
  background: var(--bg-page);
}

.fv-magazine__photo {
  display: block;
  overflow: hidden;
}

.fv-magazine__photo img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  max-height: 520px;
  object-fit: cover;
}

.fv-magazine__story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px 72px;
  background: var(--bg-page);
}

.fv-magazine__title {
  margin: 10px 0 18px;
  font-size: clamp(1.38rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.52;
  color: var(--ink-strong);
}

.fv-magazine__story:hover .fv-magazine__title {
  color: var(--accent);
}

.fv-magazine__excerpt {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--ink-muted);
}

.fv-magazine__pickup {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}

.pickup-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}

.pickup-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
}

.pickup-card img {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}

.pickup-card__cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.pickup-card__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-strong);
}

.pickup-card:hover .pickup-card__title {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   FV Variant 3: Architectural Framed Editorial (TOMOS — Casa/Living Journal vibe)
   -------------------------------------------------------------------------- */
.fv-gallery {
  padding: 36px 0 60px;
}

.fv-gallery__frame {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 28px;
}

.fv-gallery__frame img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.fv-gallery__caption {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-hairline);
}

.fv-gallery__heading {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.48;
  color: var(--ink-strong);
}

.fv-gallery__right p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-muted);
}

.text-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.text-arrow-link:hover {
  opacity: 0.72;
}

/* --------------------------------------------------------------------------
   FV Variant 4: Calm Japanese-Modern Essay Mat (shiori)
   -------------------------------------------------------------------------- */
.fv-essay {
  padding: 44px 0 64px;
}

.fv-essay__mat {
  background: #ffffff;
  padding: 28px;
  border: 1px solid var(--border-hairline);
}

.fv-essay__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 44px;
  align-items: center;
}

.fv-essay__grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.fv-essay__body {
  padding: 8px 12px 8px 0;
}

.fv-essay__heading {
  margin: 10px 0 18px;
  font-size: clamp(1.45rem, 2.3vw, 1.88rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
}

.fv-essay__lead {
  margin: 0 0 26px;
  font-size: 0.92rem;
  line-height: 2;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Shared Editorial Sections (Clean, Spacious, Photo-Led, Zero Box Clutter)
   -------------------------------------------------------------------------- */
.ed-section {
  padding: 64px 0;
}

.ed-section--tinted {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.ed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.ed-head__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-strong);
}

.ed-head__sub {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.ed-head__more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

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

.ed-card {
  display: flex;
  flex-direction: column;
}

.ed-card__media {
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 14px;
}

.ed-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ed-card:hover .ed-card__media img {
  transform: scale(1.025);
}

.ed-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ed-card__title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.58;
  color: var(--ink-strong);
}

.ed-card:hover .ed-card__title {
  color: var(--accent);
}

.ed-card__excerpt {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.ed-date {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* 2-Column Editorial Feature Row */
.ed-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.ed-row-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-hairline);
}

.ed-row-card img {
  width: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
}

/* Clean Minimalist Table */
.ed-table-wrap {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ed-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  min-width: 600px;
  background: var(--bg-card);
}

.ed-table-wrap th,
.ed-table-wrap td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-hairline);
  text-align: left;
  vertical-align: top;
}

.ed-table-wrap thead th {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  border-top: 1px solid var(--ink-strong);
  border-bottom: 1px solid var(--border-medium);
}

.ed-table-wrap td a {
  color: var(--accent);
  font-weight: 600;
}

.ed-table-note {
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Clean 3-Column Index Directory */
.ed-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.ed-index__head {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-strong);
  border-bottom: 1.5px solid var(--accent);
}

.ed-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-index li {
  border-bottom: 1px solid var(--border-hairline);
}

.ed-index a {
  display: block;
  padding: 11px 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-body);
}

.ed-index a:hover {
  color: var(--accent);
}

/* Quiet Editorial Footer */
.ed-footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-page);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.ed-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.ed-footer__logo img {
  height: var(--logo-footer-h);
  width: auto;
  margin-bottom: 14px;
}

.ed-footer__about {
  margin: 0;
  line-height: 1.85;
  max-width: 380px;
}

.ed-footer__title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.ed-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-footer__links li {
  margin-bottom: 8px;
}

.ed-footer__links a:hover {
  color: var(--accent);
}

.ed-footer__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   Responsive (Mobile 390px clean, zero horizontal overflow)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .fv-split__grid,
  .fv-magazine__stage,
  .fv-gallery__caption,
  .fv-essay__grid,
  .pickup-strip,
  .ed-grid-3,
  .ed-grid-2,
  .ed-index,
  .ed-footer__grid {
    grid-template-columns: 1fr;
  }

  .fv-magazine__photo img {
    min-height: 260px;
    max-height: 320px;
  }

  .fv-magazine__story {
    padding: 28px 24px 36px;
  }

  .fv-magazine__pickup {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .top-strip__links {
    display: none;
  }

  .brand-header__row {
    flex-wrap: wrap;
    padding: 14px 18px 10px;
    min-height: auto;
    gap: 12px;
  }

  .brand-nav {
    order: 3;
    width: 100%;
    gap: 18px;
    padding-top: 8px;
    border-top: 1px solid var(--border-hairline);
  }

  .brand-header--centered .brand-nav-bar {
    justify-content: flex-start;
    padding: 10px 18px;
  }

  .brand-header--centered .brand-nav {
    order: 0;
    padding-top: 0;
    border-top: none;
  }

  .fv-split {
    padding: 28px 0 40px;
  }

  .fv-split__grid {
    gap: 28px;
  }

  .fv-gallery__frame img {
    aspect-ratio: 16 / 10;
  }

  .fv-essay__mat {
    padding: 16px;
  }

  .ed-section {
    padding: 44px 0;
  }

  .ed-head {
    flex-direction: column;
    gap: 8px;
  }

  .ed-row-card {
    grid-template-columns: 112px 1fr;
    gap: 14px;
  }

  .ed-row-card img {
    width: 112px;
  }
}
