/*
Theme Name: Japan Day to Day
Description: Multilingual travel and everyday-life guides.
Version: 0.6.27
Text Domain: japan-day-to-day
*/
:root{--navy:#203b47;--red:#bb533d;--paper:#fcfcfa;--line:#d8dee2;--muted:#526171}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--navy);font:16px/1.7 system-ui,-apple-system,"Noto Sans",sans-serif}a{color:inherit}button,input,select,textarea{font:inherit}img{max-width:100%;height:auto}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:4px}
.skip-link{position:absolute;left:-10000px;top:0;z-index:100000;background:#fff;color:var(--navy);padding:.75rem 1rem}.skip-link:focus{left:1rem;top:1rem}
.wrap{width:min(1160px,calc(100% - 2.5rem));margin-inline:auto}
.site-header{background:var(--navy);color:#fff}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;min-height:88px;padding-block:1rem}.site-name{display:flex;align-items:center;flex-shrink:0;text-decoration:none;font-weight:700}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:1.5rem}.primary-nav ul,.language-nav ul,.footer-nav ul{display:flex;align-items:center;flex-wrap:wrap;list-style:none;margin:0;padding:0;gap:1.3rem}.primary-nav a,.language-nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:.9rem}.language-nav{border-left:1px solid #8a9da2;padding-left:1.25rem}.language-nav ul{gap:.9rem}.language-nav a{font-size:.8rem;white-space:nowrap}.language-nav a[aria-current="page"]{font-weight:700;text-decoration:underline;text-underline-offset:6px;text-decoration-color:var(--red);text-decoration-thickness:2px}
.section{padding:3.5rem 0}.section h2{font:700 clamp(1.8rem,3.3vw,3rem)/1.3 Georgia,"Noto Serif",serif;margin:0 0 1.5rem}.section .lead{max-width:720px;color:var(--muted)}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.card{min-width:0;background:#fff;border:1px solid var(--line);overflow:hidden}.card-image{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}.card-body{min-width:0;padding:1.5rem}.card-meta{font-size:.8rem;color:var(--muted)}.card h3{font:700 1.45rem/1.4 Georgia,"Noto Serif",serif;margin:.7rem 0;overflow-wrap:anywhere}.card h3 a{text-decoration:none}.card p{color:var(--muted);font-size:.95rem;line-height:1.65}.card-link{color:var(--red);font-weight:700;font-size:.9rem}.pagination{margin-top:2rem;display:flex;gap:1rem;flex-wrap:wrap}
.article-shell{width:100%;max-width:840px;margin-inline:auto;padding:3.5rem 20px 5rem}.article-shell h1{font:700 clamp(2rem,4.5vw,3.4rem)/1.3 Georgia,"Noto Serif",serif;margin:.75rem 0 1rem;overflow-wrap:anywhere}.article-meta{font-size:.85rem;color:var(--muted);margin-bottom:2rem}.article-body{font-size:1.05rem;line-height:1.85;overflow-wrap:anywhere}.article-body h2{font-size:1.65rem;line-height:1.45;margin:2.5rem 0 1rem}.article-body h3{font-size:1.25rem;line-height:1.5}.article-body p{margin:0 0 1.3rem}.article-body a{text-decoration:underline;text-underline-offset:3px}.article-body figure{margin:1.5rem 0}.article-body img{max-width:100%;height:auto;display:block}.article-body figcaption{font-size:.85rem;color:var(--muted);margin-top:.65rem}.article-body table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1.5rem 0}.article-body th,.article-body td{border:1px solid var(--line);padding:.8rem;text-align:left;vertical-align:top;min-width:100px}.article-body blockquote{border-left:4px solid var(--red);margin:1.5rem 0;padding:.5rem 1.2rem}.article-body iframe,.article-body video{max-width:100%}.quick-answer{background:#eef2f3;border-left:4px solid var(--red);padding:1.25rem;margin:1.5rem 0 2rem}
.site-footer{background:var(--navy);color:#dce6e8;padding:2.5rem 0}.site-footer p{font-size:.9rem}.footer-nav ul{gap:.5rem 1.5rem}.footer-nav a{display:inline-block;padding:.4rem 0;font-size:.85rem;text-decoration:none}.footer-nav a:hover{text-decoration:underline}.site-footer-logo{display:block;max-width:220px;height:auto;margin-bottom:.8rem}
@media(max-width:900px){.header-inner{gap:1rem;flex-wrap:wrap}.header-actions{gap:1rem}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.header-inner{min-height:0;padding-block:.75rem;flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between;flex-wrap:wrap;gap:.35rem 1rem}.primary-nav ul{gap:1rem}.language-nav{border:0;padding:0}.language-nav ul{gap:.9rem}.primary-nav a,.language-nav a{font-size:.8rem;min-height:40px}.card-grid{grid-template-columns:1fr}.section{padding:2.5rem 0}.article-shell{padding:2rem 20px 3rem}.site-footer{padding:2rem 0}.footer-nav ul{gap:.35rem 1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Match story typography to the homepage editorial typography. */
body:not(.home){font-family:Arial,'Helvetica Neue',sans-serif}
body:not(.home) .article-shell{font-family:'Noto Serif JP',serif}
body:not(.home) .article-shell h1{font-weight:400}
body:not(.home) .article-shell h2,body:not(.home) .article-shell h3{font-family:'Noto Serif JP',serif;font-weight:500}
body:not(.home) .article-meta,body:not(.home) .card-meta,body:not(.home) .jdt-photo-credit{font-family:Arial,'Helvetica Neue',sans-serif}
body:not(.home) .archive-title,body:not(.home) .card h3,body:not(.home) .section h2{font-family:'Noto Serif JP',serif;font-weight:400}
body:not(.home) .site-footer p{font-family:'Noto Serif JP',serif}

/* Shared typography for navigation, footer and editorial copy. */
:root{--jdt-ui-font:Arial,"Helvetica Neue","Noto Sans JP","Noto Sans KR","Noto Sans TC",sans-serif;--jdt-copy-font:"Noto Serif JP",serif}
html body,html body.home,html body:not(.home){font-family:var(--jdt-ui-font)}
.header,.site-header,.photo-footer,.site-footer,.footer-nav,.language-nav,.primary-nav,.mobile-menu,.jdt-photo-credit{font-family:var(--jdt-ui-font)}
body.home .photo-footer p,body:not(.home) .site-footer p{font-family:var(--jdt-copy-font)}
body.home .hero-copy h1{word-spacing:.12em}

/* Center mobile article photos beside the complete text block. */
@media(max-width:700px){body.home .article{align-items:center}body.home .article>img{display:block;align-self:center}}

/* Direct guide entrances and concise article previews. */
body.home .photo-hero .hero-guides{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:24px auto 0;max-width:720px}
body.home .photo-hero .hero-guides a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid rgba(255,255,255,.65);border-radius:3px;background:rgba(12,32,45,.5);color:#fff;text-decoration:none;font:14px/1.4 Arial,sans-serif;letter-spacing:.02em}
body.home .photo-hero .hero-guides a:hover,body.home .photo-hero .hero-guides a:focus-visible{background:rgba(12,32,45,.9);outline:2px solid #fff;outline-offset:3px}
body.home .article>div>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
@media(max-width:700px){body.home .article{align-items:center}body.home .article>img{display:block;align-self:center}body.home .article>div>p{-webkit-line-clamp:2}body.home .photo-hero .hero-guides{gap:7px;margin-top:18px}body.home .photo-hero .hero-guides a{font-size:12px;padding:8px 10px;min-height:44px}}

@media(max-width:700px){body.home .photo-hero{min-height:640px}body.home .photo-hero .hero-copy{top:44%}body.home .photo-hero h1{font-size:clamp(34px,11.6vw,64px);line-height:.98}}

@media(max-width:700px){body.home #content .photo-hero{min-height:640px}body.home #content .photo-hero .hero-copy{top:44%;transform:translateY(-50%)}body.home #content .photo-hero .hero-copy h1{font-size:clamp(34px,11.6vw,64px);line-height:.98}body.home #content .photo-hero .slideshow{bottom:24px}}

/* Mobile homepage story cards: keep image and copy in a single column. */
@media(max-width:700px){
  body.home #latest a.article{display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-width:0;max-width:100%;height:auto;align-items:stretch}
  body.home #latest a.article>.jdt-card-placeholder{display:none!important}
  body.home #latest a.article>img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;align-self:auto}
  body.home #latest a.article>div{min-width:0;width:100%;overflow-wrap:anywhere}
  body.home #latest a.article h3,body.home #latest a.article p{overflow-wrap:anywhere}
  #cmplz-manage-consent .cmplz-manage-consent{right:12px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;left:auto!important;min-width:0!important;height:auto!important;min-height:44px!important;padding:8px 10px!important;font-size:12px!important;border-radius:6px!important}
}

/* Keep homepage stories readable between phone and desktop widths. */
@media (min-width:701px) and (max-width:900px){
  body.home #latest .articles{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.home #latest a.article>.jdt-card-placeholder{display:none!important}
  body.home #latest a.article h3{overflow-wrap:anywhere}
}
