:root {
  --ink: #1a1d22;
  --ink-2: #22262c;
  --ink-3: #2d3138;
  --paper: #f4efe6; /* warm cream */
  --paper-2: #ece5d8;
  --paper-3: #e3dcce;
  --line: #cfc6b4;
  --muted: #7a7268;
  --muted-2: #9b9387;
  --accent: #1a1d22;
  --serif-en: "Cormorant Garamond", "Noto Serif JP", serif;
  --serif-jp: "Noto Serif JP", serif;
  --sans-jp: "Noto Sans JP", "Inter", sans-serif;
  --sans-en: "Inter", "Noto Sans JP", sans-serif;
  --container: 1200px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-jp);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 0 var(--gutter);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 18px 0;
  transition:
    padding 0.3s,
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.nav.scrolled .nav-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-mark {
  width: 80px;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 2px;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand-text {
  line-height: 1.05;
}
.brand-text .brand-title {
  font-family: var(--serif-en);
  letter-spacing: 0.16em;
  font-size: 20px;
  font-weight: 500;
}
.brand-text .brand-tagline {
  font-family: var(--sans-en);
  letter-spacing: 0.32em;
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 2px;
}

.menu {
  display: flex;
  gap: 38px;
  margin-right: 24px;
}
.menu a {
  font-family: var(--sans-en);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition:
    left 0.35s ease,
    right 0.35s ease;
}
.menu a:hover::after {
  left: 0;
  right: 0;
}

.burger {
  width: 74px;
  height: 74px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s;
}
.burger:hover {
  background: #000;
}
.burger .lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.burger .lines i {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
}
.burger .lines i:nth-child(2) {
  width: 16px;
  margin-left: auto;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 118px 0 70px 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.35) contrast(1.02);
}

.hero-bg.hero-bg--empty {
  background: linear-gradient(140deg, #cfc6b4 0%, #a8a294 55%, #7a7268 100%);
}
.hero-left {
  padding: 120px 40px 0 0;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-bottom: 42px;
}
.hero h1 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 34px;
}
.hero h1 .small {
  font-size: 0.74em;
}
.hero p.lead {
  font-family: var(--sans-jp);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 2.2;
  color: #3a3d43;
  max-width: 440px;
  letter-spacing: 0.06em;
}
.hero-right {
  position: relative;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.05);
}
.hero-img-wrap .img-ph {
  background: linear-gradient(140deg, #cfc6b4 0%, #a8a294 55%, #7a7268 100%);
  color: #3a3d43;
}
.hero-img-wrap .img-ph svg {
  width: 140px;
  height: 140px;
  color: #3a3d43;
  opacity: 0.55;
}
.hero-img-wrap .img-ph .lbl {
  color: #3a3d43;
  font-size: 12px;
}
.about-img .img-ph,
.cb-card .ph .img-ph {
  background: linear-gradient(140deg, #d8d0bf 0%, #b6ae9d 100%);
  color: #3a3d43;
}
.about-img .img-ph svg,
.cb-card .ph .img-ph svg {
  color: #3a3d43;
  opacity: 0.55;
  width: 90px;
  height: 90px;
}
.about-img .img-ph .lbl,
.cb-card .ph .img-ph .lbl {
  color: #3a3d43;
}
/* puzzle mask overlay using grid of pieces (decorative) */
.puzzle-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 20% 30%,
      transparent 60px,
      rgba(244, 239, 230, 0.6) 61px,
      transparent 75px
    ),
    radial-gradient(
      circle at 70% 80%,
      transparent 90px,
      rgba(244, 239, 230, 0.4) 91px,
      transparent 110px
    );
  mix-blend-mode: screen;
  opacity: 0; /* keep subtle */
}

.scroll-ind {
  position: absolute;
  left: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
  font-family: var(--sans-en);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--muted);
}
.scroll-ind span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.2em;
}
.scroll-ind .bar {
  width: 1px;
  height: 80px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.scroll-ind .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(-100%);
  animation: scrollbar 2.4s ease-in-out infinite;
}
@keyframes scrollbar {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

/* ---------- ABOUT ---------- */
.section {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 120px 0;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: center;
  padding-top: 90px;
}
.section-eyebrow {
  font-family: var(--serif-en);
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
}
.section-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ink);
}
.about h2,
.service h2,
.works h2,
.cb h2,
.concept h2,
.contact h2 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin-bottom: 34px;
}
.about p {
  font-size: 13.5px;
  line-height: 2.2;
  color: #3a3d43;
  max-width: 520px;
  letter-spacing: 0.06em;
}
.about p + p {
  margin-top: 22px;
}
.about-img {
  position: relative;
  aspect-ratio: 4/3;
}
.about-img img,
.about-img > * {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.about-img .img-ph {
  filter: none;
}

/* ---------- SERVICE (dark) ---------- */
.service {
  background: var(--ink);
  color: #e6e2da;
  padding: 120px var(--gutter);
}
.service-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}
.service-head,
.pillars {
  max-width: var(--container);
  margin: 0 auto 50px;
}
.service .section-eyebrow {
  color: #e6e2da;
}
.service .section-eyebrow::before {
  background: #e6e2da;
}
.service h2 {
  color: #fff;
  margin: 0;
}
.service-head p {
  font-size: 13px;
  line-height: 2.1;
  color: #aaa495;
  max-width: 520px;
  letter-spacing: 0.06em;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #3a3e44;
}
.pillar {
  padding: 48px 28px 8px;
  border-right: 1px solid #3a3e44;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.3s;
}
.pillar:last-child {
  border-right: 0;
}
.pillar:hover {
  background: #1f2329;
}
.pillar .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #e6e2da;
}
.pillar h3 {
  font-family: var(--serif-en);
  letter-spacing: 0.32em;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #fff;
}
.pillar h4 {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #aaa495;
  margin-bottom: 18px;
}
.pillar p {
  font-size: 11.5px;
  line-height: 2;
  color: #a8a294;
  letter-spacing: 0.04em;
}

/* ---------- WORKS ---------- */
.works {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 110px 0;
  position: relative;
}
.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}
.works-head .left {
  max-width: 600px;
}
.works-head h2 {
  margin-bottom: 18px;
}
.works-head p {
  font-size: 13px;
  line-height: 2.1;
  color: #3a3d43;
  letter-spacing: 0.06em;
}
.works-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.works-rail::-webkit-scrollbar {
  display: none;
}
.work {
  cursor: pointer;
}
.work .ph {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd;
}
.work .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.04);
  transition:
    transform 0.9s ease,
    filter 0.6s;
}
.work:hover .ph img {
  transform: scale(1.05);
  filter: grayscale(0.2) contrast(1.05);
}
.work h3 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 15px;
  margin: 18px 0 6px;
  letter-spacing: 0.06em;
}
.work .tag {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 28px;
  transition:
    background 0.25s,
    color 0.25s;
}
.view-all:hover {
  background: var(--ink);
  color: #fff;
}
.works-arrows {
  position: absolute;
  right: 0;
  top: 90px;
  display: flex;
  gap: 10px;
}
.arrow-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.arrow-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- COMPANY + BLOG ---------- */
.cb {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 0 0 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}
.cb-card {
  background: #fff;
  padding: 42px 42px 44px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.cb-card h3 {
  font-family: var(--serif-en);
  letter-spacing: 0.32em;
  font-size: 16px;
  margin-bottom: 8px;
}
.cb-card .jp {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 22px;
}
.cb-card p {
  font-size: 12.5px;
  line-height: 2;
  color: #3a3d43;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.cb-card .ph {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.cb-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.05);
}

.cb-card .ph .img-ph img.cb-company-img {
  width: auto;
  max-width: 86%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  margin-inline: auto;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-en);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 11px 22px;
  transition:
    background 0.25s,
    color 0.25s;
}
.btn-line:hover {
  background: var(--ink);
  color: #fff;
}
.btn-line .arr {
  display: inline-block;
  transition: transform 0.25s;
}
.btn-line:hover .arr {
  transform: translateX(4px);
}

/* ---------- CONCEPT (dark) ---------- */
.concept {
  background: var(--ink-2);
  color: #e6e2da;
  padding: 110px var(--gutter);
  width: 100%;
  max-width: none;
  margin: 0;
}
.concept-inner {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 80px;
  align-items: center;
  max-width: 100%;
}
.concept .section-eyebrow {
  color: #e6e2da;
}
.concept .section-eyebrow::before {
  background: #e6e2da;
}
.concept h2 {
  color: #fff;
  font-size: 26px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.concept p {
  font-size: 13px;
  line-height: 2.1;
  color: #aaa495;
  letter-spacing: 0.06em;
}
.concept-right {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: center;
}
.concept-img {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.concept-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.concept-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.concept-list .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid #3a3e44;
}
.concept-list .en {
  font-family: var(--serif-en);
  letter-spacing: 0.32em;
  font-size: 14px;
  color: #fff;
}
.concept-list .jp {
  font-family: var(--serif-jp);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #aaa495;
}

/* ---------- CONTACT ---------- */
.contact {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 110px 0 90px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
}
.contact-left h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
}
.contact-left .en {
  font-family: var(--serif-en);
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.contact-left .en::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ink);
}
.contact-left p {
  margin-top: 24px;
  font-size: 12.5px;
  line-height: 2;
  color: #3a3d43;
  letter-spacing: 0.06em;
}
.contact-right {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 32px;
  background: #fff;
  padding: 34px 38px;
  align-items: center;
}
.ct-block .lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif-en);
  letter-spacing: 0.3em;
  font-size: 13px;
  margin-bottom: 10px;
}
.ct-block .val {
  font-family: var(--serif-jp);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.ct-block .sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.08em;
}
.ct-cta {
  background: var(--ink);
  color: #fff;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif-jp);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.25s;
}
.ct-cta:hover {
  background: #000;
}
.ct-cta .arr {
  font-family: var(--serif-en);
  letter-spacing: 0;
  font-size: 18px;
  font-weight: 300;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: #aaa495;
  width: 100%;
  margin: 0;
  padding: 34px var(--gutter);
}
.footer-inner {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: center;
}
footer .brand-text .brand-title {
  color: #fff;
}
footer .brand-text .brand-tagline {
  color: #aaa495;
}
footer nav {
  display: flex;
  gap: 34px;
  justify-content: center;
}
footer nav a {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #cdc6b6;
}
footer nav a:hover {
  color: #fff;
}
footer .copy {
  font-family: var(--serif-en);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: #777062;
  text-align: right;
}

/* ---------- MOBILE ---------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(26, 29, 34, 0.97);
  color: #fff;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.mobile-overlay.open {
  display: flex;
}
.mobile-overlay a {
  font-family: var(--serif-en);
  font-size: 22px;
  letter-spacing: 0.3em;
}
.mobile-overlay .close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 24px;
}

/* tablet — tighten nav before mobile breakpoint to prevent overflow */
@media (max-width: 1100px) {
  .menu {
    gap: 24px;
    margin-right: 14px;
  }
  .menu a {
    font-size: 11.5px;
    letter-spacing: 0.18em;
  }
  .hero-left {
    padding-right: 28px;
  }
}

@media (max-width: 1024px) {
  .menu {
    display: none;
  }
  .nav {
    padding: 0;
  }
  .nav-inner {
    width: 100%;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }
  .hero-inner {
    width: 100%;
  }
  .hero-left {
    padding: 40px 0 30px;
  }
  .hero-right {
    height: 60vh;
    position: relative;
  }
  .scroll-ind {
    display: none;
  }
  .about,
  .service-head,
  .cb,
  .concept-inner,
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
  .pillar {
    border-right: 1px solid #3a3e44;
  }
  .pillar:nth-child(2) {
    border-right: 0;
  }
  .pillar:nth-child(-n + 2) {
    border-bottom: 1px solid #3a3e44;
  }
  .cb-card {
    grid-template-columns: 1fr;
  }
  .contact-right {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  footer nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  footer .copy {
    text-align: center;
  }
  .works-arrows {
    display: none;
  }
}

/* SP: コンテナ幅の min(...) をやめて width はすべて auto（親の padding / フローに任せる） */
@media (max-width: 768px) {
  .hero-inner,
  .section,
  .works,
  .cb,
  .contact,
  .footer-inner {
    width: 90%;
  }
  .concept-inner {
    width: auto;
  }
  /* CONTACT: 見出しとリード文のみ中央（front-page お問い合わせブロック） */
  .contact-left h2,
  .contact-left > p {
    text-align: center;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
    flex-direction: column;
  }
  .hero p.lead {
    width: 55%;
  }
}

/* image placeholder */
.img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3a3d43 0%, #1f2329 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #aaa495;
  position: relative;
  overflow: hidden;
}

.img-ph svg {
  width: 80px;
  height: 80px;
  color: #7a7268;
  position: relative;
  z-index: 1;
}
.img-ph .lbl {
  font-family: var(--serif-en);
  letter-spacing: 0.4em;
  font-size: 11px;
  color: #8a8276;
  position: relative;
  z-index: 1;
}
.about-img .img-ph svg,
.concept-img .img-ph svg {
  width: 64px;
  height: 64px;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}
.pillar {
  padding: 48px 0px 8px;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- WordPress: Primary menu (Appearance → Menus) ---------- */
.menu > ul.cp-menu-root {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 38px;
  margin-right: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.menu > ul.cp-menu-root > li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu > ul.cp-menu-root a {
  font-family: var(--sans-en);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.menu > ul.cp-menu-root a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition:
    left 0.35s ease,
    right 0.35s ease;
}
.menu > ul.cp-menu-root a:hover::after {
  left: 0;
  right: 0;
}

/* ---------- WordPress: Footer menu ---------- */
.cp-footer-nav {
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cp-footer-nav > li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cp-footer-nav a {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #cdc6b6;
}
.cp-footer-nav a:hover {
  color: #fff;
}

body.is-menu-open {
  overflow: hidden;
}

/* Primary menu duplicated in overlay: vertical list when WP assigns a menu */
.mobile-overlay ul.cp-overlay-menu-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.mobile-overlay ul.cp-overlay-menu-ul a {
  font-family: var(--serif-en);
  font-size: 22px;
  letter-spacing: 0.3em;
  color: #fff;
}

/* Fallback post list styling (index.php / archive fallback) */
.cp-archive-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 8vw 80px;
}
.cp-archive-main .page-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}
.cp-archive-main article + article {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.cp-archive-main h2 {
  font-size: 17px;
  font-weight: 500;
}
.cp-archive-main h2 a:hover {
  text-decoration: underline;
}
.cp-archive-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.cp-archive-pagination {
  margin-top: 48px;
}
.cp-archive-pagination .nav-links a {
  text-decoration: underline;
}
