@charset "UTF-8";
/* =============================================
   FOUNDATION — Reset
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* =============================================
   FOUNDATION — Base
   ============================================= */
.js-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-reveal);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal[data-delay="1"] {
  transition-delay: 0.07s;
}
.js-reveal[data-delay="2"] {
  transition-delay: 0.14s;
}
.js-reveal[data-delay="3"] {
  transition-delay: 0.21s;
}
.js-reveal[data-delay="4"] {
  transition-delay: 0.28s;
}
.js-reveal[data-delay="5"] {
  transition-delay: 0.35s;
}
.js-reveal[data-delay="6"] {
  transition-delay: 0.42s;
}
.js-reveal[data-delay="7"] {
  transition-delay: 0.49s;
}
.js-reveal[data-delay="8"] {
  transition-delay: 0.56s;
}

/* =============================================
   LAYOUT (l-)
   ============================================= */
.l-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.l-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-inline-pc);
}

.l-main {
  flex: 1;
}

@media (max-width: 768px) {
  .l-container {
    padding-inline: var(--space-inline-sp);
  }
}
/* =============================================
   HEADER — ported from nishimura-v3 so the blog and the 賃貸 site share one
   header. Keep in sync with v3's layout/_header.scss.
   ============================================= */
/* The chrome keeps v3's green even though the blog body is navy. */
.l-header,
.l-drawer {
  --color-primary: var(--color-site-green);
}

.l-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.l-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.l-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 84px;
  padding-inline-start: var(--space-inline-pc);
  padding-inline-end: max(20px, (100vw - 1400px) / 2);
}

.l-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.l-header__logo img {
  height: 48px;
  width: auto;
}

/* ---- Nav ---- */
.l-header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.l-header__nav-group {
  position: relative;
}

.l-header__nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.l-header__nav-item:hover,
.l-header__nav-item.is-active {
  color: var(--color-primary);
  background: rgba(6, 51, 28, 0.06);
}

.l-header__caret {
  color: currentColor;
  transition: transform 0.2s ease;
}

.l-header__nav-group:hover .l-header__caret {
  transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.l-header__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

.l-header__nav-group:hover .l-header__dropdown,
.l-header__nav-group:focus-within .l-header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.l-header__dropdown::before {
  /* hover bridge so the menu doesn't close in the gap */
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}

.l-header__dropdown-item {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.l-header__dropdown-item:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---- Actions (phone + buttons) ---- */
.l-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.l-header__phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.l-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
}

.l-header__phone svg {
  stroke: var(--color-primary);
}

.l-header__phone-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.l-header__phone-note {
  font-size: 11.5px;
  color: var(--color-text);
  margin-top: 2px;
  font-weight: 500;
}

.l-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  color: var(--color-white);
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.l-header__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.l-header__btn--line {
  background: var(--color-white);
  border: 2px solid var(--color-line);
  color: var(--color-line); /* tints the LINE icon (currentColor) + label */
  padding: 5px 10px;
  gap: 8px;
}

/* two-line label: LINE からの / お問い合わせ — black text, icon stays green */
.l-header__btn-multiline {
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  color: var(--color-text);
}

.l-header__btn--contact {
  background: var(--color-primary);
}

/* SP contact icon buttons (mobile only) */
.l-header__sp-actions {
  display: none;
}

.l-header__sp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  /* ≥44px tap target (Apple/Google guidance) */
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--color-white);
  flex-shrink: 0;
  transition: filter 0.2s ease;
}
.l-header__sp-btn:hover {
  filter: brightness(1.1);
}

.l-header__sp-btn--phone {
  background: var(--color-primary);
}

.l-header__sp-btn--line {
  background: var(--color-primary);
}

.l-header__sp-btn--mail {
  background: var(--color-accent);
}

/* Hamburger — 34×20 bars inside a ≥44px padded tap target (content-box) */
.l-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: content-box;
  flex-shrink: 0; /* never let the hamburger be squeezed/pushed off-screen */
  width: 34px;
  height: 20px;
  padding: 12px 2px;
}

.l-header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.l-header__hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.l-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.l-header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---- Mobile Drawer ---- */
.l-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2000;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--color-white);
  transform: translateX(100%);
  /* Hidden when closed so the off-screen panel can't be scrolled to on mobile
     (a fixed element parked past the right edge isn't clipped by overflow). */
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
  overflow-y: auto;
}

.l-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.l-drawer__inner {
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.l-drawer__close {
  display: flex;
  align-self: flex-end;
  width: 36px;
  height: 36px;
  position: relative;
}

.l-drawer__close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.l-drawer__close span:nth-child(1) {
  transform: rotate(45deg);
}

.l-drawer__close span:nth-child(2) {
  transform: rotate(-45deg);
}

/* The sidebar search is hidden once the split collapses (see `_sidebar.scss`);
   this is where it lives instead, at the top of the drawer. */
.l-drawer__search {
  margin-top: 16px;
  margin-bottom: 8px;
}

.l-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.l-drawer__nav-item {
  display: block;
  padding: 16px 4px;
  font-size: var(--fs-md);
  font-weight: 500;
  border-bottom: 1px solid #eee;
  color: var(--color-text);
}

/* Overlay */
.l-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.l-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ---- Responsive ---- */
/* 1025–1260px: the full text actions don't fit, so keep the whole phone number
   (desktop style) but turn LINE + contact into compact square icon buttons —
   same look as the mobile sp-action icons (LINE = green, contact = gold). The
   nav stays visible, just slightly tightened. */
@media (min-width: 1024.02px) and (max-width: 1260px) {
  .l-header__nav-item {
    padding: 10px 10px;
    font-size: 16px;
  }
  .l-header__btn span {
    display: none;
  }
  .l-header__btn {
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 8px;
    justify-content: center;
  }
  .l-header__btn--line {
    background: var(--color-primary);
    border: none;
    color: var(--color-white); /* white LINE icon (currentColor) */
  }
  .l-header__btn--contact {
    background: var(--color-accent);
  }
  .l-header__btn--line svg,
  .l-header__btn--contact svg {
    width: 22px;
    height: 22px;
  }
}
/* ≤1024px: the dense JP nav crowds, so the hamburger drawer takes over the
   whole tablet band (it already holds the full menu). */
@media (max-width: 1024px) {
  .l-header__inner {
    min-height: 64px;
    padding-inline-start: var(--space-inline-sp);
    padding-inline-end: var(--space-inline-sp);
    justify-content: space-between;
    gap: 4px;
  }
  .l-header__nav {
    display: none;
  }
  .l-header__actions {
    display: none;
  }
  .l-header__sp-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 6px;
  }
  .l-header__hamburger {
    display: flex;
  }
  .l-header__logo img {
    height: 36px;
  }
}
/* The mobile row is a chain of fixed widths — logo 155 + 3×44px buttons + gaps +
   38px hamburger + 2×16px padding needs 383px. On a 375 or 360px phone the
   hamburger was therefore sliced off the right edge, and since the root is
   `overflow-x: clip` (_reset.scss) that overflow can't even be scrolled to: it
   sets a hard 371px floor on the document, so EVERY full-width element below the
   header renders wider than the screen with its right edge permanently cut off.
   These two tiers are what the 'xs'/'xxs' breakpoints were defined for.
   Tap targets stay ≥44px — the logo and the gaps give way instead. */
@media (max-width: 400px) {
  .l-header__logo img {
    height: 28px;
  }
  .l-header__sp-actions {
    gap: 5px;
    margin-right: 0;
  }
}
/* ≤340px even that doesn't fit, so drop the mail shortcut — お問い合わせ is in
   the drawer, whereas phone and LINE have no other entry point on this screen. */
@media (max-width: 340px) {
  .l-header__sp-btn--mail {
    display: none;
  }
}
/* =============================================
   FOOTER — ported from nishimura-v3 so the blog and the 賃貸 site share one
   footer. Keep in sync with v3's layout/_footer.scss.
   ============================================= */
.l-footer {
  /* The chrome keeps v3's green even though the blog body is navy. */
  --color-primary: var(--color-site-green);
  background: var(--color-primary);
  color: var(--color-white);
}

/* CTA row */
.l-footer__cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-inline: var(--space-inline-pc);
}

.l-footer__cta-inner {
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.l-footer__cta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 24px;
  color: var(--color-white);
  position: relative;
  transition: background 0.2s ease;
}

.l-footer__cta-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.l-footer__cta-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.l-footer__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.l-footer__cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.l-footer__cta-label {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 2px;
}

.l-footer__cta-main {
  font-size: 18px;
  font-weight: 700;
}

.l-footer__cta-sub {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 2px;
}

/* Body */
.l-footer__body {
  padding: 44px var(--space-inline-pc);
}

.l-footer__body-inner {
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.l-footer__logo img {
  width: 290px;
  height: auto;
  /* logo art is dark-on-light; lift it onto the dark footer */
  background: var(--color-white);
  border-radius: 8px;
}

.l-footer__address {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.85;
}

.l-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 40px;
}

.l-footer__nav-item {
  font-size: 14px;
  color: var(--color-white);
  opacity: 0.9;
  position: relative;
  transition: opacity 0.2s ease;
}

.l-footer__nav-item::before {
  content: "›";
  margin-right: 8px;
  color: var(--color-accent);
}

.l-footer__nav-item:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* Bottom */
.l-footer__bottom {
  background: var(--color-site-green-dark);
  padding: 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.l-footer__policy {
  font-size: 12px;
  color: var(--color-white);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.l-footer__policy:hover {
  opacity: 1;
  color: var(--color-accent);
}

.l-footer__copyright {
  font-size: 12px;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .l-footer__cta-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .l-footer__cta-item:nth-child(3)::before {
    display: none;
  }
  .l-footer__cta-item:nth-child(odd)::before {
    display: none;
  }
}
@media (max-width: 768px) {
  .l-footer__body-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  /* logo img is display:block (reset) — center it instead of leaving right-side space */
  .l-footer__logo {
    display: block;
  }
  .l-footer__logo img {
    margin-inline: auto;
  }
  .l-footer__nav {
    grid-template-columns: repeat(2, auto);
    gap: 12px 32px;
    text-align: left;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .l-footer__cta-inner {
    grid-template-columns: 1fr;
  }
  .l-footer__cta-item::before {
    display: none !important;
  }
  .l-footer__cta-item:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}
/* =============================================
   BUTTON (c-btn)
   ============================================= */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 44px;
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.2;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.c-btn--outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.c-btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.c-btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}
.c-btn--primary:hover {
  background: var(--color-primary-light);
}

@media (max-width: 768px) {
  .c-btn {
    padding: 15px 28px;
    font-size: var(--fs-sm);
  }
}
/* =============================================
   POST CARD (c-post-card)
   ============================================= */
.c-post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.c-post-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 16/10;
  background: var(--color-bg-light);
}
.c-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-post-card__media {
  /* Hover veil — white at low opacity, so the photo lifts rather than dims.
     Faded in rather than toggled so the card settles back quietly. */
}
.c-post-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.c-post-card__link:hover .c-post-card__media::after,
.c-post-card__link:focus-visible .c-post-card__media::after {
  opacity: 0.25;
}

.c-post-card__body {
  padding-top: 16px;
}

.c-post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.c-post-card__date {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.c-post-card__cat {
  padding: 3px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  white-space: nowrap;
}

.c-post-card__title {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.c-post-card__link:hover .c-post-card__title {
  color: var(--color-text-light);
}

/* =============================================
   SEARCH FORM (c-search-form)
   ============================================= */
.c-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.c-search-form__input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  background: transparent;
  font-size: var(--fs-md);
}
.c-search-form__input:focus {
  outline: none;
}
.c-search-form__input::placeholder {
  color: var(--color-text-light);
}

.c-search-form__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--color-primary);
}

/* =============================================
   PAGINATION (c-pagination) — wraps paginate_links() output
   ============================================= */
/* paginate_links( 'type' => 'list' ) owns the markup: ul.page-numbers > li >
   a|span.page-numbers. The list itself carries `page-numbers` too, so the box
   styling below is scoped to the items inside an <li>. */
.c-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-pagination li .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: var(--color-white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.c-pagination li a.page-numbers:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-primary);
}

.c-pagination li .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

.c-pagination li .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 768px) {
  .c-pagination li .page-numbers {
    min-width: 38px;
    height: 38px;
    padding-inline: 8px;
  }
}
/* =============================================
   HERO — heights inherited from nishimura-v3, raised a step
   520px desktop / 540px at ≤768px
   ============================================= */
.p-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.p-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: var(--space-inline-pc);
  /* Lifts the block off the optical centre — the mock sits it slightly high. */
  padding-bottom: 140px;
}

.p-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 13.714px + 2.381vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.p-hero__lede {
  margin-top: 18px;
  font-size: var(--fs-md);
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .p-hero {
    min-height: 540px;
    background-position: center top;
  }
  .p-hero__inner {
    padding-inline: var(--space-inline-sp);
    padding-bottom: 130px;
  }
  .p-hero__title {
    font-size: 26px;
  }
  .p-hero__lede {
    margin-top: 14px;
  }
}
/* =============================================
   HOME — split ratio inherited from /flow/
   (.p-promo__inner in nishimura-v3's _promotion.scss)
   ============================================= */
.p-home__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  align-items: start;
  margin-inline: auto;
  padding: var(--space-section) var(--space-inline-pc);
}

.p-home__main {
  min-width: 0;
}

/* Hairline down the middle of the 70px gutter, as the mock draws it. Painted
   as a pseudo-element rather than a border so the grid stays exactly
   `minmax(0, 1fr) 340px` — a border plus padding would eat into the 340px
   column. It is removed when the split collapses to one column at `tab`. */
.p-home__aside {
  position: relative;
  min-width: 0;
  /* Stretch to the full row height so the rule does not stop at whichever
     column happens to be shorter. */
  align-self: stretch;
}
.p-home__aside::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 0;
  /* Carries on into the section's bottom padding, reaching down towards the
     CTA banner without touching it. */
  bottom: calc(var(--space-section) * -0.6);
  width: 1px;
  background: var(--color-border);
}

/* The accent rule is a short stub under the text, not a full-width border —
   the mock draws it ~56px wide regardless of how long the heading is. */
.p-home__section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.p-home__section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: var(--color-accent);
}

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

.p-home__more {
  display: flex;
  justify-content: center;
  margin-top: 88px;
}

/* ---- Collapse at 1024px, matching /flow/ ---- */
@media (max-width: 1024px) {
  .p-home__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .p-home__aside::before {
    display: none;
  }
  .p-home__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .p-home__inner {
    gap: 88px;
    padding-inline: var(--space-inline-sp);
  }
  .p-home__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p-home__more {
    margin-top: 55px;
  }
}
/* =============================================
   SIDEBAR (p-sidebar) — 340px column
   ============================================= */
.p-sidebar {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Short gold stub tight under the text — no full-width hairline beneath it, so
   the list starts clean (the first category has no rule above it either). */
.p-sidebar__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.p-sidebar__heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: var(--color-accent);
}

/* ---- Categories ---- */
.p-sidebar__cat-item {
  border-bottom: 1px solid var(--color-border);
}

.p-sidebar__cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 4px;
  font-size: var(--fs-md);
  color: var(--color-primary);
  transition: color 0.2s ease;
}
.p-sidebar__cat-link:hover {
  color: var(--color-text-light);
}
.p-sidebar__cat-link svg {
  flex-shrink: 0;
  color: var(--color-text-light);
}

/* ---- Ranking ---- */
.p-sidebar__rank-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.p-sidebar__rank-link {
  display: grid;
  /* First track is wider than the 32px badge so the number sits further
     from the thumbnail than the 12px gap alone would put it. */
  grid-template-columns: 44px 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.p-sidebar__rank-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg-badge);
  border-radius: 4px;
  text-align: center;
}

.p-sidebar__rank-thumb {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1/1;
  background: var(--color-bg-light);
}
.p-sidebar__rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-sidebar__rank-title {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.p-sidebar__rank-link:hover .p-sidebar__rank-title {
  color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .p-sidebar {
    gap: 40px;
  }
  /* Search moves into the hamburger drawer — see `.l-drawer__search`. */
  .p-sidebar__block--search {
    display: none;
  }
}
/* =============================================
   CTA BANNER (p-cta)
   ============================================= */
.p-cta {
  padding-inline: var(--space-inline-pc);
  padding-bottom: var(--space-section);
}

/* Extra air above the banner on the side-by-side layout only — stacked, the
   section padding above it is already enough. */
@media (min-width: 900.02px) {
  .p-cta {
    margin-top: 48px;
  }
}
.p-cta__inner {
  display: grid;
  grid-template-columns: 44fr 56fr;
  align-items: center;
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  /* Fixed on PC — the copy sits inside it rather than setting it. The row is
     pinned to that height as well: left to `auto`, it would size itself to the
     photo's intrinsic 1920×845 ratio (~305px here) and spill past the box. */
  height: 240px;
  grid-template-rows: minmax(0, 1fr);
}

.p-cta__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Column flex would stretch the button across the panel otherwise. */
  align-items: flex-start;
  height: 100%;
  padding: 20px 48px;
}

.p-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 8.857px + 1.19vw, 26px);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

/* Its own padding, a step down from the default .c-btn, so the copy column —
   which is what actually sets the banner's height — stays short. */
.p-cta__btn {
  margin-top: 18px;
  padding: 14px 36px;
}

.p-cta__media {
  position: relative;
  height: 100%;
  /* Feathers the photo into the copy panel so the split reads as one surface.
     The stops are --color-bg-light (#f7f8f6) written out, because fading to
     `transparent` would fade through black in some engines. */
}
.p-cta__media::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 26%;
  pointer-events: none;
  background: linear-gradient(to right, rgb(247, 248, 246) 0%, rgba(247, 248, 246, 0.85) 30%, rgba(247, 248, 246, 0) 100%);
}
.p-cta__media {
  /* The photo scales with the banner rather than setting its height: `cover`
     on a shorter box shows a wider band of the same image. */
}
.p-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

@media (min-width: 900.02px) and (max-width: 1100px) {
  .p-cta__inner {
    height: auto;
    min-height: 240px;
    grid-template-rows: auto;
  }
}
@media (max-width: 900px) {
  .p-cta__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .p-cta__body {
    padding: 32px 24px;
    order: 2;
    text-align: center;
    align-items: center;
  }
  .p-cta__media {
    order: 1;
    aspect-ratio: 16/9;
  }
  .p-cta__media::after {
    display: none;
  }
}
@media (max-width: 768px) {
  .p-cta {
    padding-inline: var(--space-inline-sp);
  }
  .p-cta__btn {
    margin-top: 24px;
  }
}
/* =============================================
   SINGLE POST (p-single)
   ============================================= */
.p-single__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  align-items: start;
  padding: var(--space-section) var(--space-inline-pc);
}

.p-single__main {
  min-width: 0;
}

/* Same hairline the home split draws down the middle of its gutter — see
   `.p-home__aside`. Dropped with the split at `tab`. */
.p-single__aside {
  position: relative;
  min-width: 0;
  /* Stretch to the full row height so the rule does not stop at whichever
     column happens to be shorter. */
  align-self: stretch;
}
.p-single__aside::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 0;
  /* Carries on into the section's bottom padding, reaching down towards the
     CTA banner without touching it. */
  bottom: calc(var(--space-section) * -0.6);
  width: 1px;
  background: var(--color-border);
}

.p-single__header {
  margin-bottom: 28px;
}

.p-single__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.p-single__date {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.p-single__cat {
  padding: 4px 14px;
  font-size: 12px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.p-single__cat:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.p-single__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 10.571px + 1.488vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.p-single__thumb {
  margin-bottom: 36px;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.p-single__thumb img {
  width: 100%;
  height: auto;
}

/* =============================================
   POST BODY — defensive styling for legacy content.
   The 318 existing posts are twentyeleven-era HTML: bare <img> without
   dimensions, inline styles, old galleries and wide tables. Nothing here
   modifies content; it only keeps it inside the column.
   ============================================= */
.p-single__body {
  font-size: var(--fs-md);
  line-height: 2;
  color: var(--color-text);
}
.p-single__body img,
.p-single__body iframe,
.p-single__body video,
.p-single__body embed,
.p-single__body object {
  max-width: 100%;
  height: auto;
}
.p-single__body iframe {
  aspect-ratio: 16/9;
  width: 100%;
}
.p-single__body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.p-single__body table th, .p-single__body table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  white-space: nowrap;
}
.p-single__body p {
  margin-bottom: 1.8em;
}
.p-single__body h2, .p-single__body h3, .p-single__body h4, .p-single__body h5 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.5;
  margin: 2em 0 0.8em;
}
.p-single__body h2 {
  font-size: var(--fs-2xl);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}
.p-single__body h3 {
  font-size: var(--fs-xl);
}
.p-single__body h4 {
  font-size: var(--fs-lg);
}
.p-single__body ul, .p-single__body ol {
  margin: 0 0 1.8em 1.4em;
}
.p-single__body ul {
  list-style: disc;
}
.p-single__body ol {
  list-style: decimal;
}
.p-single__body li {
  margin-bottom: 0.5em;
}
.p-single__body a {
  color: var(--color-accent);
  text-decoration: underline;
  word-break: break-word;
}
.p-single__body blockquote {
  margin: 0 0 1.8em;
  padding: 18px 24px;
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-accent);
}
.p-single__body .wp-caption {
  max-width: 100% !important;
}
.p-single__body .wp-caption-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  text-align: center;
}
.p-single__body .gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1.8em;
}
.p-single__body .gallery-item {
  width: auto !important;
  margin: 0 !important;
}

/* ---- Prev / next ---- */
.p-single__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.p-single__nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  transition: background 0.2s ease;
}
.p-single__nav-link:hover {
  background: var(--color-bg-hover);
}

.p-single__nav-link--next {
  text-align: right;
}

.p-single__nav-label {
  font-size: 12px;
  color: var(--color-text-light);
}

.p-single__nav-title {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-primary);
}

/* ---- Related ---- */
.p-single__related {
  margin-top: 64px;
}

.p-single__related-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 28px;
  /* Short accent stub, matching .p-home__section-title. */
}
.p-single__related-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  background: var(--color-accent);
}

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

@media (max-width: 1024px) {
  .p-single__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .p-single__aside::before {
    display: none;
  }
}
@media (max-width: 768px) {
  .p-single__inner {
    padding-inline: var(--space-inline-sp);
  }
  .p-single__body .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-single__nav {
    grid-template-columns: 1fr;
  }
  .p-single__nav-link--next {
    text-align: left;
  }
  .p-single__related-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
/* =============================================
   ARCHIVE / SEARCH RESULTS (p-archive)
   Same split, gutter and hairline as the home page — see `_home.scss`.
   ============================================= */
.p-archive__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  align-items: start;
  margin-inline: auto;
  padding: var(--space-section) var(--space-inline-pc);
}

.p-archive__main {
  min-width: 0;
}

.p-archive__aside {
  position: relative;
  min-width: 0;
  align-self: stretch;
}
.p-archive__aside::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 0;
  /* Runs on past the column into the section padding so it reaches down
     towards the CTA, stopping short of it rather than touching. */
  bottom: calc(var(--space-section) * -0.6);
  width: 1px;
  background: var(--color-border);
}

.p-archive__header {
  margin-bottom: 36px;
}

.p-archive__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  word-break: break-word;
}
.p-archive__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: var(--color-accent);
}

.p-archive__count {
  margin-top: 16px;
  font-size: var(--fs-md);
  color: var(--color-text-light);
}
.p-archive__count strong {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
}

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

.p-archive__empty {
  padding: 40px 32px;
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
}

.p-archive__empty-text {
  font-size: var(--fs-md);
  line-height: 2;
  color: var(--color-text);
}

.p-archive__empty-form {
  margin-top: 24px;
  max-width: 420px;
}

.p-archive__pager {
  margin-top: 56px;
}

@media (max-width: 1024px) {
  .p-archive__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .p-archive__aside::before {
    display: none;
  }
  .p-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .p-archive__inner {
    padding-inline: var(--space-inline-sp);
  }
  .p-archive__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p-archive__pager {
    margin-top: 36px;
  }
}
/* =============================================
   UTILITY (u-)
   ============================================= */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A line break that only applies on phones — `<br class="sp">`. */
br.sp {
  display: none;
}

.u-sp-only {
  display: none;
}

.u-pc-only {
  display: block;
}

@media (max-width: 768px) {
  br.sp {
    display: inline;
  }
}
@media (max-width: 1024px) {
  .u-sp-only {
    display: flex;
  }
  .u-pc-only {
    display: none;
  }
}
