/* WordPress article layouts; the original site styles remain intact. */
.yj-main{padding:52px 0 100px;min-height:60vh}.yj-reading{max-width:880px}.yj-article-header{margin:34px 0}.yj-article-header h1{font-size:clamp(26px,3vw,42px);line-height:1.6;letter-spacing:.025em}.yj-article-date{color:var(--muted);font-size:16px;margin-top:18px}.yj-featured{margin:30px 0;max-width:100%;text-align:center}.yj-featured img{margin:auto;width:auto;max-height:640px;object-fit:contain}.yj-report-image img{max-height:800px}.entry-content{font-size:19px;line-height:2}.entry-content>*+*{margin-top:1.3em}.entry-content a,.yj-source a{text-decoration:underline;text-underline-offset:4px;color:var(--accent)}.entry-content h2{font-size:28px;margin-top:2em}.entry-content h3{font-size:23px}.entry-content img{height:auto}.entry-content figure{max-width:100%;margin-inline:0}.entry-content .alignwide{max-width:100%}.entry-content table{border-collapse:collapse;width:100%}.entry-content td,.entry-content th{padding:12px;border:1px solid #eadfe3}.entry-content blockquote{border-left:3px solid var(--accent);padding-left:20px;margin-inline:0}.yj-source{background:#faf5f7;padding:22px;margin:30px 0;font-size:16px}.yj-download{margin:32px 0}.yj-taxonomy{color:var(--muted);font-size:15px}.yj-reports-archive{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}.yj-empty{padding:30px 0;color:var(--muted)}.yj-image-placeholder{display:flex;align-items:center;justify-content:center;background:#f4e7ec;color:#a55b74;min-height:220px;font-weight:600}.achievement-photo .yj-image-placeholder,.local-preview-card>.yj-image-placeholder{aspect-ratio:1;min-height:0}.news-row time{overflow-wrap:anywhere}.pagination{margin-top:42px}.pagination .nav-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.page-numbers{padding:9px 17px;border:1px solid #ecdee4;border-radius:4px}.page-numbers.current{background:var(--accent);color:white}.admin-bar .site-header{top:32px}.post-password-form input{max-width:100%;padding:10px}.yj-article .wp-block-button__link{color:#fff}.map-popup-record a{font-weight:600;color:var(--accent)}.map-popup-record img{max-width:80px}
@media(max-width:960px){.yj-reports-archive{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:680px){.yj-main{padding:30px 0 60px}.yj-article-header h1{font-size:25px}.entry-content{font-size:17px}.yj-reports-archive{gap:28px 18px}.yj-source{padding:18px;font-size:14px}.yj-article-header{margin:25px 0}.yj-featured img{max-height:520px}}
@media(max-width:600px){.admin-bar .site-header{top:0}}

/* Dedicated initiatives page and the home-page links to it. */
.yj-breadcrumb{font-size:15px;color:var(--muted);margin-bottom:24px;display:flex;flex-wrap:wrap;gap:9px;}
.yj-breadcrumb a:hover{text-decoration:underline;text-underline-offset:4px;}
.yj-work-page .section-heading h1{font-size:clamp(27px,3vw,36px);font-weight:650;line-height:1.6;letter-spacing:.04em;}
.yj-work-page .work-card{scroll-margin-top:160px;}
.yj-work-page .work-card h2{font-size:22px;font-weight:550;line-height:1.6;letter-spacing:.015em;}
.yj-work-page .work-detail{border-top:1px solid var(--line);margin-top:0;padding:20px 0 24px;}
.yj-work-page .work-detail-title{font-size:17px;font-weight:600;margin-bottom:12px;}
.yj-work-page .detail-body{font-size:17px;line-height:1.95;padding-bottom:0;}
.yj-work-page .detail-body a{display:inline-block;min-height:44px;padding-block:10px;text-decoration:underline;text-underline-offset:4px;}
.yj-work-back{margin-top:36px;}
.work-card .work-more{margin-top:auto;border-top:1px solid var(--line);padding-block:16px;}
@media(max-width:680px){.yj-work-page .section-heading h1{font-size:27px;}.yj-work-page .work-card{scroll-margin-top:110px;}.yj-work-page .work-card h2{font-size:23px;}.yj-work-page .detail-body{font-size:17px;}}

/* Social identity colors; darker text variants remain readable on white. */
#social .social-platform[href^="https://x.com/"]{--sns-text:#000000;--sns-logo:#000000;--sns-tint:#f1f1f1;}
#social .social-platform[href^="https://www.instagram.com/"]{--sns-text:#b32973;--sns-logo:#c13584;--sns-tint:#fff0f7;}
#social .social-platform[href^="https://www.facebook.com/"]{--sns-text:#0866ff;--sns-logo:#0866ff;--sns-tint:#edf4ff;}
#social .social-platform[href^="https://line.me/"]{--sns-text:#008536;--sns-logo:#06c755;--sns-tint:#eafbf0;}
#social .social-platform h3,#social .social-platform h3>span,#social .social-platform .account-handle,#social .social-platform .social-out{color:var(--sns-text);}
#social .social-platform-icon{color:var(--sns-logo);background:var(--sns-tint);}
#social .social-platform[href^="https://www.instagram.com/"] .social-platform-icon{color:#fff;background:linear-gradient(135deg,#833ab4 0%,#e1306c 55%,#f77737 100%);}
#social .social-platform:hover{border-color:var(--sns-text);}
#social .social-platform:focus-visible{outline-color:var(--sns-text);}
#social .channel-heading>.icon,#social .youtube-card .youtube-card-top>.icon{color:#ff0033;}
#social .channel-heading h3,#social .youtube-card .channel-type,#social .youtube-card h4,#social .youtube-card h5 a,#social .youtube-card .video-links a{color:#c40027;}
#social .youtube-card .video-play-icon{background:#ff0033;color:#fff;}
#social .youtube-card:hover{border-color:#ff0033;}
#social .youtube-card a:focus-visible,#social .youtube-card button:focus-visible{outline-color:#c40027;}
#social .related-social-heading h3,#social .related-social-links a,#social .related-social-links a>.icon,#social .related-social-links .account-handle{color:#b32973;}
#social .related-social-links a:hover{border-color:#b32973;}
#social .related-social-links a:focus-visible{outline-color:#b32973;}

/* Mobile review: keep navigation, dates and map controls within reach. */
@media(max-width:960px){
  .site-header .mobile-menu{max-height:calc(100dvh - 160px);overflow-y:auto;overscroll-behavior:contain;}
}
@media(max-width:680px){
  .site-header .mobile-menu{max-height:calc(100dvh - 210px - env(safe-area-inset-bottom));}
  .site-header .brand{min-width:0;flex-shrink:1;}
  .site-header .menu-text{font-size:13px;}
  .news-row{grid-template-columns:minmax(0,1fr) auto 28px;gap:12px;}
  .news-row time{grid-column:1;grid-row:1;white-space:nowrap;overflow-wrap:normal;}
  .news-row .news-label{grid-column:2;grid-row:1;white-space:nowrap;}
  .news-row>div{grid-column:1/3;grid-row:2;}
  .news-row .row-arrow{grid-column:3;grid-row:1/3;}
  .results-bar{flex-wrap:wrap;align-items:flex-start;}
  .results-bar .reset-button{white-space:nowrap;flex-shrink:0;padding-left:0;}
  .leaflet-container .achievement-popup .leaflet-popup-content{
    max-width:calc(100vw - 135px);
    max-height:clamp(160px,calc(58svh - 130px),300px);
    margin-top:44px;overflow-y:auto;overscroll-behavior:contain;
  }
  .leaflet-container .achievement-popup .map-popup-records{
    max-height:none;overflow:visible;padding-right:0;
  }
  .leaflet-container .achievement-popup a.leaflet-popup-close-button{
    left:4px;right:auto;top:0;width:44px;height:44px;line-height:44px;
    font-size:26px;color:var(--ink);
  }
}
@media(max-width:360px){
  .site-header .brand-caption{font-size:12px;}
  .site-header .brand-name{font-size:30px;}
}

/* Balance the larger hero portrait with a clearer desktop name. */
@media(min-width:961px){
  .hero-inner{max-width:1040px;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;min-height:660px;padding-block:32px 16px;}
  .hero-visual{width:calc(100% + 24px);max-width:460px;justify-self:start;}
  .hero-name strong{font-size:77.76px;}
}
@media(min-width:961px) and (max-width:1150px){
  .hero-name strong{font-size:69.12px;}
}
@media(min-width:681px) and (max-width:960px){
  .hero-visual{width:calc(100% + 24px);max-width:374px;}
  .hero-name strong{font-size:42px;}
}
@media(min-width:681px){
  .hero-name .family-name,.hero-name ruby{-webkit-text-stroke:.3px currentColor;}
  .hero-name rt{-webkit-text-stroke:0;}
}
@media(max-width:680px){
  .hero-visual{width:calc(100% + 36px);max-width:266px;margin-right:-14px;}
  .hero-name strong{gap:6px;line-height:1.15;}
  .hero-name .family-name,.hero-name ruby{line-height:1.15;}
}
@media(max-width:680px) and (max-height:500px){
  .hero-visual{max-width:172px;}
}


/* Home achievement layout and result navigation — 2026-11-17. */
/* Prevent WordPress auto-size placeholders and percentage heights from
   determining the height of a home-page achievement card. */
#local-achievements .local-preview-card {
  min-width: 0;
  align-content: start;
}
#local-achievements .local-preview-card > img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  contain-intrinsic-size: none;
}
#local-achievements .local-preview-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
#profile .profile-biography dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
#achievement-results {
  scroll-margin-top: var(--yj-results-offset, 180px);
}
#achievement-results:focus {
  outline: none;
}
@media (max-width: 680px) {
  #local-achievements .local-preview-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
  }
  #local-achievements .local-preview-card > img,
  #local-achievements .local-preview-card > .yj-image-placeholder {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    align-self: start;
  }
}
@media (max-width: 380px) {
  #local-achievements .local-preview-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  #local-achievements .local-preview-copy {
    padding: 12px;
  }
}

/* Initiatives page: report and newspaper summaries, 2026-11-19. */
.yj-work-page .section-heading{margin-bottom:30px;}
.yj-initiatives{font-size:17px;line-height:1.9;}
.yj-work-intro{display:grid;grid-template-columns:1fr 190px;align-items:center;gap:42px;margin:0 0 30px;padding:28px 34px;background:#fff;border:1px solid var(--line);border-radius:16px;}
.yj-work-intro h2{font-size:clamp(22px,2.4vw,29px);line-height:1.65;letter-spacing:.03em;margin-bottom:12px;font-weight:700;}
.yj-work-intro p{max-width:42em;color:var(--muted);}
.yj-work-intro img{width:190px;height:190px;object-fit:cover;object-position:50% 18%;border-radius:50%;}
.yj-work-toc{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 52px;padding:0;}
.yj-work-toc a{display:inline-flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 18px;background:#fff;border:1px solid #dfc8d0;border-radius:6px;font-size:16px;font-weight:600;min-height:48px;}
.yj-work-toc a::after{content:'↓';color:var(--accent);}
.yj-work-toc a:hover{background:#fae9ef;border-color:var(--accent);}
.yj-work-area{margin:0 0 64px;scroll-margin-top:40px;}
.yj-work-area-heading{display:flex;align-items:center;gap:18px;margin-bottom:25px;padding-bottom:18px;border-bottom:2px solid #e8cbd6;}
.yj-work-area-number{font-family:Georgia,serif;font-size:38px;line-height:1;color:var(--accent);}
.yj-work-area-heading h2{font-size:clamp(24px,2.4vw,30px);line-height:1.5;font-weight:700;}
.yj-work-area-heading p{margin-top:5px;color:var(--muted);font-size:16px;}
.yj-work-area-heading .yj-work-place{width:92px;height:68px;object-fit:cover;border-radius:8px;margin-left:auto;}
.yj-work-stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.yj-work-story{min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;}
.yj-work-story figure{margin:0;background:#faf7f8;}
.yj-work-story figure img{width:100%;height:250px;object-fit:contain;background:#f6f2f3;}
.yj-work-story figcaption{padding:9px 20px 11px;color:#6d6268;font-size:13px;line-height:1.6;}
.yj-work-story-copy{padding:24px 26px 28px;}
.yj-work-story-tag{display:block;font-size:13px;font-weight:600;line-height:1.6;color:#a04468;margin-bottom:9px;letter-spacing:.03em;}
.yj-work-story h3{font-size:22px;line-height:1.6;margin:0 0 12px;font-weight:650;letter-spacing:.01em;}
.yj-work-story p{margin:0;font-size:17px;line-height:1.95;}
.yj-work-story-wide{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center;}
.yj-work-story-wide figure img{height:275px;}
.yj-work-closing{border-top:1px solid var(--line);padding-top:25px;font-size:14px;color:var(--muted);}
@media(max-width:960px){.yj-work-intro{grid-template-columns:1fr 150px;gap:25px;padding:25px;}.yj-work-intro img{width:150px;height:150px;}.yj-work-story figure img{height:210px;}.yj-work-story-copy{padding:22px;}.yj-work-story h3{font-size:21px;}}
@media(max-width:680px){.yj-work-page .section-heading{margin-bottom:22px;}.yj-work-intro{grid-template-columns:1fr;gap:20px;padding:24px;}.yj-work-intro img{width:150px;height:150px;justify-self:center;grid-row:1;}.yj-work-intro h2{font-size:23px;}.yj-work-intro p{font-size:16px;}.yj-work-toc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:38px;}.yj-work-toc a{padding:10px 12px;font-size:14px;gap:5px;}.yj-work-toc a:last-child{grid-column:1/-1;}.yj-work-area{margin-bottom:44px;scroll-margin-top:15px;}.yj-work-area-heading{gap:13px;margin-bottom:20px;}.yj-work-area-number{font-size:31px;}.yj-work-area-heading h2{font-size:24px;}.yj-work-area-heading p{font-size:14px;}.yj-work-area-heading .yj-work-place{display:none;}.yj-work-stories{grid-template-columns:1fr;gap:20px;}.yj-work-story figure img{height:auto;max-height:285px;min-height:0;object-fit:contain;}.yj-work-story figcaption{padding-inline:20px;font-size:12px;}.yj-work-story-copy{padding:21px 22px 25px;}.yj-work-story h3{font-size:21px;}.yj-work-story p{font-size:16px;line-height:1.95;}.yj-work-story-wide{display:block;grid-column:auto;}.yj-work-closing{font-size:13px;}}
@media(prefers-reduced-motion:reduce){.yj-work-page{scroll-behavior:auto;}}

@media(max-width:360px){.yj-work-page .section-heading h1{font-size:23px;}.yj-work-intro h2{font-size:21px;}}

/* Transparent portrait; desktop alignment preserves mobile size and order. */
#profile .profile-closeup { background: transparent; }
@media (min-width: 961px) {
  #profile .profile-grid { align-items: start; }
  #profile .profile-biography { grid-column: 1; grid-row: 1; }
  #profile .profile-story { grid-column: 2; grid-row: 1; }
  #profile .profile-closeup { width: min(100%, 360px); }
}

/* Five initiatives and the latest report, scoped to the home page. */
.home #work .photo-category img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home #reports .reports-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); max-width: 980px; gap: 64px; }
.home #reports .reports-intro { display: block; grid-column: auto; }
.home #reports .report-cover { height: auto; aspect-ratio: 3 / 4; padding: 24px 24px 0; }
@media (min-width: 961px) {
  .home #work .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home #work .work-card { grid-column: span 2; }
  .home #work .work-card:nth-child(4) { grid-column: 2 / span 2; }
  .home #work .work-card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 680px) {
  .home #reports .reports-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home #reports .report-card { width: min(100%, 360px); justify-self: center; }
}

/* Motion only activates after successful JavaScript initialization. */
.yj-home-motion .hero-copy h1,
.yj-home-motion .hero-description,
.yj-home-motion .hero-name,
.yj-home-motion .hero-visual { animation: yj-home-arrive 850ms cubic-bezier(.2,.65,.3,1) both; }
.yj-home-motion .hero-description { animation-delay: 70ms; }
.yj-home-motion .hero-name { animation-delay: 120ms; }
.yj-home-motion .hero-visual { animation-delay: 140ms; animation-duration: 1000ms; }
@keyframes yj-home-arrive {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
.yj-reveal-pending {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 700ms cubic-bezier(.2,.65,.3,1), translate 700ms cubic-bezier(.2,.65,.3,1);
  transition-delay: var(--yj-reveal-delay, 0ms);
}
.yj-reveal-visible,
.yj-reveal-pending:focus-within { opacity: 1; translate: 0 0; }
.yj-reveal-pending:focus-within { transition-delay: 0ms; }
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .yj-home-motion .hero .portrait-current { translate: 0 var(--yj-portrait-shift, 0px); }
  .yj-home-motion .hero::before { transform: translate3d(0, var(--yj-breeze-shift, 0px), 0) scale(1.1); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home #work .work-photo img,
  .home #local-achievements .achievement-photo img { transition: scale 600ms cubic-bezier(.2,.65,.3,1); }
  .home #work .work-card:is(:hover, :focus-within) .work-photo img,
  .home #local-achievements .achievement-card:is(:hover, :focus-within) .achievement-photo img { scale: 1.035; }
}
@media (max-width: 680px) {
  .yj-reveal-pending { translate: 0 10px; transition-duration: 500ms; }
  .yj-reveal-visible, .yj-reveal-pending:focus-within { translate: 0 0; }
}
@media (prefers-reduced-motion: reduce), print {
  .yj-reveal-pending, .yj-reveal-visible { opacity: 1 !important; translate: none !important; transition: none !important; }
  .yj-home-motion .hero-copy h1, .yj-home-motion .hero-description,
  .yj-home-motion .hero-name, .yj-home-motion .hero-visual { animation: none !important; }
  .yj-home-motion .hero .portrait-current { translate: none !important; }
  .yj-home-motion .hero::before { transform: none !important; }
  .home #work .work-photo img, .home #local-achievements .achievement-photo img { scale: 1 !important; transition: none !important; }
}

/* Home section headings and matching footer brand — 2026-11-19 */
.home .section-heading h2,
.home #reports .reports-intro h2,
.home #contact .contact-banner h2 {
  position: relative;
  margin-top: 0;
  padding-bottom: 22px;
  color: #4c3039;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .035em;
  text-wrap: pretty;
}
.home .section-heading h2::after,
.home #reports .reports-intro h2::after,
.home #contact .contact-banner h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(to right, #d32f35 0 56%, #edc6ce 56% 100%);
}
.home .section-heading .heading-dot,
.home #reports .reports-intro .heading-dot { display: none; }
.home .section-heading { margin-bottom: 44px; }
.home #reports .reports-intro h2 { margin-bottom: 24px; }
.home #contact .contact-banner h2 { margin-bottom: 22px; }
.footer .brand-name,
.footer .brand-name > span { color: #d32f35; }
@media (max-width: 680px) {
  .home .section-heading h2,
  .home #reports .reports-intro h2,
  .home #contact .contact-banner h2 {
    font-size: clamp(23px, 6vw, 28px);
    line-height: 1.55;
    letter-spacing: .015em;
    padding-bottom: 17px;
  }
  .home .section-heading h2::after,
  .home #reports .reports-intro h2::after,
  .home #contact .contact-banner h2::after { width: 60px; height: 4px; }
  .home .section-heading { margin-bottom: 30px; }
}

/* Contact information beside the section introduction — 2026-11-19 */
.home #contact .contact-banner {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  border-bottom: 0;
  padding-bottom: 0;
}
.home #contact .contact-grid.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 30px 34px;
  border: 1px solid #ead8df;
  border-radius: 18px;
  background: #fffafc;
}
.home #contact .contact-panel .office-details h3 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
}
.home #contact .contact-panel .office-details p {
  font-size: 19px;
  line-height: 1.9;
}
.home #contact .contact-panel .contact-links {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 24px 0 0;
}
.home #contact .contact-panel .consult-link { min-height: 44px; }
@media (max-width: 900px) {
  .home #contact .contact-banner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 680px) {
  .home #contact .contact-banner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .home #contact .contact-grid.contact-panel { padding: 24px 22px; gap: 22px; border-radius: 14px; }
  .home #contact .contact-panel .office-details h3 { font-size: 20px; }
  .home #contact .contact-panel .office-details p { font-size: 18px; }
  .home #contact .contact-panel .contact-links { padding-top: 22px; }
}

/* Let the latest report link share its section background. */
.home #reports .report-card { background: transparent; }

/* Keep desktop biography entries on one line between explicit line breaks. */
@media (min-width: 961px) {
  #profile .profile-grid {
    grid-template-columns: minmax(580px, 1.2fr) minmax(0, .8fr);
    column-gap: 48px;
  }
  #profile .profile-biography dl > div {
    grid-template-columns: minmax(6.5em, .34fr) minmax(0, 1fr);
  }
  #profile .profile-biography dt,
  #profile .profile-biography dd { white-space: nowrap; }
}
