/* WordPress adapter. The established design is in site.css; additions only cover native controls and state. */
/* Missing pages share the real-estate header/footer without changing other pages. */
body.rle-site .rle-not-found { background: #fcf9f3; }
body.rle-site .rle-not-found-content { padding-block: 48px 80px; text-align: center; }
body.rle-site .rle-not-found-code { color: var(--orange); font-size: clamp(72px, 9vw, 112px); font-weight: 700; line-height: 1; letter-spacing: .02em; }
body.rle-site .rle-not-found-en { margin-top: 12px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
body.rle-site .rle-not-found h1 { margin-top: 28px; font-size: clamp(22px, 3vw, 30px); line-height: 1.6; text-wrap: wrap; word-break: normal; }
body.rle-site .rle-not-found-message { max-width: 660px; margin: 20px auto 0; font-size: 16px; line-height: 1.9; }
body.rle-site .rle-not-found-home { min-width: 270px; max-width: 100%; margin-top: 30px; text-align: left; }
body.rle-site .rle-not-found-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; }
body.rle-site .rle-not-found-links a { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #cfbdaa; }
body.rle-site .rle-not-found-links a:hover { color: var(--orange); text-decoration-color: currentColor; }
@media (max-width: 700px) {
  body.rle-site .rle-not-found-content { padding-block: 30px 50px; }
  body.rle-site .rle-not-found-message { text-align: left; font-size: 15px; }
  body.rle-site .rle-not-found-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; max-width: 340px; margin-inline: auto; }
}
body.rle-site [hidden]{display:none!important}body.rle-site .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.rle-site .rle-skip{position:fixed;left:16px;top:-100px;z-index:100000;background:white;padding:12px}body.rle-site .rle-skip:focus{top:12px}
body.rle-site .rle-preview-banner{background:#263238;color:white;padding:7px 20px;font-size:13px;text-align:center}body.rle-site .rle-preview-banner a{text-decoration:underline;color:white;margin-left:12px}
body.rle-site .mobile-sheet{position:fixed;z-index:10000;inset:0 0 0 auto;width:min(430px,100%);height:100dvh;background:white;display:flex;flex-direction:column;box-shadow:-30px 0 0 100vmax #0006}body.rle-menu-open{overflow:hidden}body.rle-site .menu-scroll{overflow:auto;flex:1;overscroll-behavior:contain}
body.rle-site .rle-faq{border-bottom:1px solid #d9d6ce}body.rle-site .rle-faq summary{display:flex;align-items:flex-start;gap:18px;padding:24px 0;cursor:pointer;list-style:none;font-weight:700;font-size:20px}body.rle-site .rle-faq summary::-webkit-details-marker{display:none}body.rle-site .rle-faq .faq-question{flex:1}body.rle-site .rle-faq-plus{font-size:22px;color:#ed651f}body.rle-site .rle-faq[open] .rle-faq-plus{transform:rotate(45deg)}body.rle-site .rle-faq .faq-answer{padding:0 0 24px;display:flex;gap:18px;color:#263238}body.rle-site .rle-faq .faq-q,body.rle-site .rle-faq .faq-answer>span{font-size:26px;font-weight:700;color:#ed651f;line-height:1.5}
body.rle-site .category-filter a{display:inline-flex;align-items:center;justify-content:center;padding:7px 17px;border:1px solid #d8d2c8;border-radius:30px;font-size:15px}body.rle-site .category-filter a.selected{background:#ed651f;color:white;border-color:#ed651f}
body.rle-site .article-image img,body.rle-site .journal-pick-image img,body.rle-site .journal-sidebar-image img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/9}body.rle-site img.article-cover{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}body.rle-site .rr-art-body img{height:auto;max-width:100%;object-fit:contain}body.rle-site .article-reading>h1{word-break:normal;overflow-wrap:break-word;text-wrap:wrap}body.rle-site .rle-draft-label{font-size:12px;color:#b45309}
body.rle-site .rle-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}body.rle-site .inquiry-options input[type=radio],body.rle-site .inquiry-consent input,body.rle-site .inquiry-same-address input{width:19px;height:19px;accent-color:#ed651f;flex-shrink:0}body.rle-site .inquiry-primary,body.rle-site .inquiry-secondary{display:inline-flex;align-items:center;justify-content:center;gap:20px;cursor:pointer}body.rle-site .inquiry-primary:disabled{opacity:.65;cursor:wait}body.rle-site .inquiry-option{display:flex;gap:12px;align-items:center}body.rle-site .inquiry-input{width:100%;background:#fff;color:#263238;border:1px solid #c7c3bd;border-radius:6px;padding:12px 14px;min-height:50px}body.rle-site select.inquiry-input{appearance:auto}body.rle-site input[readonly]{background:#f2f1ee}body.rle-site .inquiry-input[aria-invalid=true]{border:2px solid #b42318}body.rle-site .inquiry-control [data-error]{color:#b42318}body.rle-site .rle-review-fields>div{display:grid;grid-template-columns:210px 1fr;gap:20px;padding:18px 0;border-bottom:1px solid #ded9d0}body.rle-site .rle-review-fields dt{font-weight:700}body.rle-site .rle-review-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}body.rle-site .rle-turnstile{margin:26px 0}body.rle-site .inquiry-complete{padding:40px 0;text-align:center}body.rle-site .inquiry-complete h2{font-size:24px;margin-bottom:18px}body.rle-site .inquiry-complete .button{margin-top:24px}
body.rle-site .header-dropdown[hidden]{display:none!important}body.rle-site .header-nav-group[data-open=true] .header-dropdown{display:block}
@media(max-width:700px){body.rle-site .rle-faq summary{font-size:16px;gap:12px;padding:20px 0}body.rle-site .rle-faq .faq-q,body.rle-site .rle-faq .faq-answer>span{font-size:23px}body.rle-site .rle-review-fields>div{grid-template-columns:1fr;gap:6px}body.rle-site .inquiry-input{font-size:16px}body.rle-site .rle-preview-banner{font-size:11px}body.rle-site .inquiry-review-actions{display:flex;flex-direction:column;gap:15px}}

body.rle-menu-open .mobile-contact{visibility:hidden}

/* Mobile article cards share one title/meta rhythm on every page. */
body.rle-site .article-card-category { display: none; }
@media (max-width: 700px) {
  /* Fill available lines instead of balancing/prettifying Japanese titles. */
  body.rle-site main .article-grid .article-card h3,
  body.rle-site :is(.journal-page, .home-journal) .journal-pick :is(h3, h4),
  body.rle-site .journal-sidebar-card h3,
  body.rle-site .journal-detail-page .article-reading > h1,
  body.rle-site .rr-art-body :is(h2, h3, h4) {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-wrap: wrap;
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
  }
  body.rle-site .journal-detail-page .article-reading > h1 {
    width: 100%;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0;
  }
  body.rle-site :is(.journal-page, .home-journal) .journal-pick-copy > :is(h3, h4) {
    order: 0;
    width: 100%;
  }
  body.rle-site .journal-pick-meta {
    order: 1;
    margin: 9px 0 0;
    gap: 6px 12px;
  }
  body.rle-site .journal-pick-footer {
    display: none;
    order: 2;
    margin-top: 8px;
  }
  body.rle-site .journal-pick-footer:has(.rle-draft-label) { display: flex; }
  body.rle-site .journal-pick-link,
  body.rle-site main .article-grid .article-card .read-more,
  body.rle-site main .article-grid .article-card .article-image-category { display: none; }
  body.rle-site main .article-grid .article-card-footer {
    margin-top: 8px;
    padding-top: 0;
    justify-content: flex-start;
  }
  body.rle-site main .article-grid .article-meta { gap: 6px 10px; }
  body.rle-site .article-card-category {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    background: #fff0df;
    color: #a74015;
    font-size: 11px;
    line-height: 1.7;
    white-space: nowrap;
  }
  body.rle-site :is(.journal-pick-meta, .article-meta) time { white-space: nowrap; }
}

/* Full-width figures on phones; restrained portrait diagrams on desktop. */
body.rle-site .rr-art-body figure.rr-art-figure {
  display: block;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  height: auto;
  max-height: none;
  margin-inline: auto;
  aspect-ratio: auto;
  overflow: visible;
}
body.rle-site .rr-art-body figure.rr-art-figure > img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
@media (max-width: 700px) {
  body.rle-site .rr-art-body figure.rr-art-figure { max-width: none; }
}

/* Editorial typography is isolated from corporate pages and recruitment. */
body.rle-site .journal-detail-page .article-reading {
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-heading: var(--font-body);
  --relike-display: var(--font-body);
  font-family: var(--font-body);
}
body.rle-site .journal-detail-page .article-reading > h1 {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}
body.rle-site .journal-detail-page .rr-art-body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  color: #1f1f1f;
}
body.rle-site .journal-detail-page .rr-art-body :is(h2, h3, h4) {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
body.rle-site .journal-detail-page .rr-art-body h2 { font-size: 24px; }
body.rle-site .journal-detail-page .rr-art-body h3 { font-size: 20px; }
body.rle-site .journal-detail-page .rr-art-body .rr-art-toc a { font-weight: 400; }
body.rle-site main .article-grid .article-card h3,
body.rle-site :is(.journal-page, .home-journal) .journal-pick :is(h3, h4),
body.rle-site .journal-sidebar-card h3 {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
}
@media (min-width: 701px) {
  body.rle-site .journal-detail-page > .breadcrumb,
  body.rle-site .journal-detail-page .journal-detail-layout { max-width: 1132px; }
  body.rle-site .journal-detail-page .article-reading { padding-inline: 38px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  body.rle-site .journal-detail-page > .breadcrumb,
  body.rle-site .journal-detail-page .journal-detail-layout { max-width: 828px; }
}
@media (max-width: 700px) {
  body.rle-site .journal-detail-page .article-reading > h1 { font-size: 24px; }
  body.rle-site .journal-detail-page .rr-art-body { font-size: 16px; line-height: 1.8; }
  body.rle-site .journal-detail-page .rr-art-body h2 { font-size: 21px; }
  body.rle-site .journal-detail-page .rr-art-body h3 { font-size: 18px; }
}

/* Author profile: a full-height portrait on desktop, a compact stack on mobile. */
body.rle-site .rr-art-author {
  grid-template-columns: minmax(160px, 25%) minmax(0, 1fr);
  grid-template-areas: "photo heading" "photo body";
  grid-template-rows: auto 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
body.rle-site .rr-art-author .rr-art-author__heading {
  grid-area: heading;
  margin: 0;
  padding: 22px 26px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--rr-color-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}
body.rle-site .rr-art-author__photo {
  grid-area: photo;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 230px;
  margin: 0;
  border-radius: 0;
}
body.rle-site .rr-art-author__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 20%;
}
body.rle-site .rr-art-author__body {
  grid-area: body;
  padding: 12px 26px 22px;
}
body.rle-site .rr-art-author__text {
  font-weight: 700;
}
@media (max-width: 700px) {
  body.rle-site .rr-art-author {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "photo" "body";
    grid-template-rows: auto auto auto;
  }
  body.rle-site .rr-art-author .rr-art-author__heading {
    padding: 18px 20px 14px;
    font-size: 17px;
    text-align: center;
  }
  body.rle-site .rr-art-author__photo {
    width: 132px;
    height: 132px;
    min-height: 0;
    margin: 0 auto 14px;
    border-radius: 8px;
  }
  body.rle-site .rr-art-author__body {
    padding: 0 20px 20px;
  }
}

