/* Static migration adjustments. Original CSS is preserved in original.css. */
html { scroll-behavior: smooth; }
body { font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; }
a:focus-visible,button:focus-visible{outline:3px solid #0099ad;outline-offset:3px}
.l-header__nav .c-gnav__list{margin:0;padding:0;list-style:none}
.l-header__nav .c-gnav__link{white-space:nowrap}
.static-menu-note{display:none}
.static-page-head {position:relative;z-index:1}
.static-page-head .c-page-header__title{position:relative;z-index:1}
.static-entry{max-width:936px;margin:0 auto;padding:44px 24px 96px;line-height:1.9;}
.static-entry h1{font-size:clamp(28px,3vw,42px);line-height:1.5;color:#1c0871;margin:1.4em 0 .65em;}
.static-entry h2{font-size:clamp(22px,2.5vw,30px);line-height:1.5;border-left:5px solid #226dfc;padding-left:16px;color:#1c0871;margin:2.0em 0 .8em;}
.static-entry h3{font-size:clamp(18px,2vw,24px);line-height:1.5;margin:1.6em 0 .65em;color:#1c0871;}
.static-entry h4{font-size:clamp(16px,1.8vw,19px);margin:1.4em 0 .5em;}
.static-entry p{margin:.85em 0;line-height:1.95;}
.static-entry ul,.static-entry ol{padding-left:1.6em;list-style:disc;margin:.9em 0 1.3em;}
.static-entry ol{list-style:decimal}
.static-entry li{margin:.35em 0;}
.static-entry a:not(.c-btn){color:#226dfc;text-decoration:underline;text-underline-offset:3px;}
.static-entry table{width:100%;border-collapse:collapse;margin:1.6em 0;}
.static-entry th,.static-entry td{padding:11px 12px;text-align:left;border:1px solid #d8dce8;vertical-align:top;}
.static-entry th{background:#eef3ff;font-weight:700;}
.static-entry figure{max-width:100%;margin:25px 0;}
.static-entry figure img{width:auto;max-width:100%;height:auto;}
.static-entry figcaption{font-size:13px;color:#666;margin-top:8px;}
.static-archive-title{font-size:clamp(22px,2.5vw,30px);color:#1c0871;margin:12px 0 30px;}
.static-category-nav{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0 32px;}
.static-category-nav a{border:1px solid #226dfc;border-radius:2px;padding:8px 18px;color:#226dfc!important;text-decoration:none!important;font-size:14px;}
.static-category-nav a[aria-current="page"]{background:#226dfc;color:#fff!important;}
.static-breadcrumb{font-size:13px;color:#555;margin-bottom:30px;display:flex;flex-wrap:wrap;gap:8px;}
.static-breadcrumb a{color:#226dfc;}
.static-meta{display:flex;gap:15px;align-items:center;margin:0 0 28px;font-size:14px;color:#444;}
.static-tag{display:inline-flex;align-items:center;border:1px solid #226dfc;color:#226dfc;padding:2px 10px;border-radius:2px;font-size:12px;}
.static-tag.notice{color:#0199ad;border-color:#0199ad;}
.static-topic-list{list-style:none!important;padding:0!important;margin:0!important;border-top:1px solid #ddd;}
.static-topic-list li{border-bottom:1px solid #ddd;margin:0;padding:0;}
.static-topic-list a{display:grid;grid-template-columns:100px 90px minmax(0,1fr);gap:18px;align-items:start;padding:18px 2px;text-decoration:none!important;color:inherit!important;}
.static-topic-list a:hover strong{color:#226dfc;}
.static-topic-list strong{line-height:1.6;font-weight:600;}
.static-pager{display:flex;gap:10px;justify-content:center;margin:35px 0;}
.static-pager a,.static-pager span{display:inline-block;padding:8px 15px;border:1px solid #dce2ea;border-radius:3px;text-decoration:none!important;}
.static-pager [aria-current]{background:#226dfc;color:#fff;}
.static-back{margin-top:48px;display:flex;gap:18px;flex-wrap:wrap;}
.static-back a{padding:12px 24px;border:1px solid #226dfc;text-decoration:none!important;color:#226dfc!important;}
.static-note{background:#f5f7fb;border-left:3px solid #9ba5b7;padding:13px 20px;margin:25px 0;font-size:14px;color:#444;}
.static-figure-pending{height:200px;background:#f3f5f9;border:1px dashed #acb8ce;color:#56627b;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;margin:20px 0;}
.static-cta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:30px 0;}
.static-cta-grid .c-btn{display:flex;justify-content:center;text-align:center;}
body.en .static-entry {letter-spacing:normal}
/* Font Awesome glyphs in the WordPress theme are replaced with plain CSS symbols. */
.c-btn::after,.c-gnav__link::after,.c-accordion__summary::after,
.c-innrlinks__link::after,.c-bottom-nav__link::before,.p-home-mv__scroll-icon::before {
  font-family:inherit!important;
}
.c-btn::after,.c-innrlinks__link::after{content:"›"!important;font-size:1.6em!important;line-height:1;}
.c-gnav .c-gnav__link::after{content:"›"!important;font-size:1.1em!important;}
.c-accordion .c-accordion__summary::after{content:"⌄"!important;font-size:1.3em!important;}
.c-accordion[open] .c-accordion__summary::after{content:"⌃"!important;}
/* Restore the original rounded downward caret without a Font Awesome dependency. */
.p-home-mv .p-home-mv__scroll-icon::before {
  content:""!important;
  display:block;
  width:1em;
  height:1em;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2012%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M2%200h16c1.8%200%202.6%202%201.3%203.3l-8%208a1.8%201.8%200%200%201-2.6%200l-8-8C-.6%202%20.2%200%202%200Z%22%2F%3E%3C%2Fsvg%3E") center / 62.5% 37.5% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2012%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M2%200h16c1.8%200%202.6%202%201.3%203.3l-8%208a1.8%201.8%200%200%201-2.6%200l-8-8C-.6%202%20.2%200%202%200Z%22%2F%3E%3C%2Fsvg%3E") center / 62.5% 37.5% no-repeat;
}
.c-bottom-nav .c-bottom-nav__link::before{content:"›"!important;}
/* Original home remains unchanged; these only guarantee standalone usability. */
.p-home-section,.p-home-mv,.p-home-hist,.c-bnrs{max-width:100%}
.p-home-mv__visual-img{max-width:100%;height:auto}
.c-gnav .c-gnav__list a{transition:color .15s ease}
.c-gnav .c-gnav__list a:hover{color:#226dfc}
@media(max-width:989px){
 .l-header__nav .c-gnav__list{flex-direction:column;padding:12px 0;}
 .l-header__nav .c-gnav__link{font-size:16px;padding:17px 10px;}
 .static-topic-list a{grid-template-columns:1fr 1fr;gap:8px 12px;}
 .static-topic-list strong{grid-column:1/-1}
 .static-entry{padding:42px 22px 72px}
 .static-cta-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}


/* v15: Font Awesome-independent button arrows and breadcrumb separators. */
/* The original theme used private-use font glyphs; replace them with stable CSS shapes. */
a.c-btn::after,
.l-entry .wp-block-button a.wp-block-button__link:not([target="_blank"])::after {
  content:""!important;
  display:block!important;
  flex:0 0 auto!important;
  width:.46em!important;
  height:.70em!important;
  margin-left:.4em!important;
  background:currentColor!important;
  -webkit-clip-path:polygon(0 0,100% 50%,0 100%)!important;
  clip-path:polygon(0 0,100% 50%,0 100%)!important;
  -webkit-mask:none!important;
  mask:none!important;
  font-family:inherit!important;
  font-size:1em!important;
  line-height:1!important;
}
/* Text and the icon must remain on one row. */
.l-entry .wp-block-button a.wp-block-button__link {
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:nowrap!important;
  gap:1.35em!important;
  white-space:nowrap;
}
/* v16: Restore the ORIGINAL theme's overlapping-squares external-site icon.
   Exact 26x26 path copied from original.css (:where(.entry) .wp-block-button
   .wp-block-button__link[target=_blank]:after). No Font Awesome required.
   External buttons only; internal buttons keep the right-pointing triangle. */
.l-entry .wp-block-button a.wp-block-button__link[target="_blank"]::after,
a.c-btn[target="_blank"]::after {
  content:""!important;
  display:block!important;
  position:static!important;
  flex:0 0 1.2em!important;
  width:1.2em!important;
  height:1.2em!important;
  aspect-ratio:1!important;
  margin-left:.15em!important;
  background-color:currentColor!important;
  -webkit-clip-path:none!important;
  clip-path:none!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M20%206H26V26H6V20H0V0H20V6ZM20%2020H9V23H23V9H20V20ZM3%203V17H17V3H3Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M20%206H26V26H6V20H0V0H20V6ZM20%2020H9V23H23V9H20V20ZM3%203V17H17V3H3Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat!important;
  font-size:1em!important;
  line-height:1!important;
}
/* The initial seven article pages use WP-style list markup. */
.c-breadcrumbs .c-breadcrumbs__list > li:not(:last-child)::after {
  content:"›"!important;
  display:block!important;
  font-family:inherit!important;
  font-weight:400!important;
  font-size:1.45em!important;
  line-height:1!important;
  color:#707070!important;
  margin-left:.2em!important;
}
/* The remaining thirty article/list pages have a literal separator in HTML. */
.static-breadcrumb {align-items:center;}
.static-breadcrumb .static-breadcrumb-separator{color:#707070;font-size:1.3em;line-height:1;}


/* v17: restore the source site button hover/pressed opacity and hide added PC-only navigation */
/* In the source WordPress theme .c-btn hover was 80% opacity, but it depended
   on a mouse-is-active class that is not set by the static site. */
a.c-btn {
  transition: opacity 80ms linear;
}
a.c-btn:hover,
a.c-btn:active,
a.c-btn:focus,
a.c-btn:focus-visible {
  opacity: 0.8;
}
/* The source HTML has an empty desktop global navigation. The added migration
   links must not appear on PC; JP | EN remains visible. Keep the existing
   functional mobile hamburger navigation for small screens. */
@media (min-width: 990px) {
  .l-header .l-header__nav {
    display: none !important;
  }
  .l-header .l-header__innr {
    grid-template: "brand lang" / 1fr auto;
  }
}


/* v23: rounded Ham Fair external CTA button */
.l-entry .wp-block-button a.wp-block-button__link.hamfair-pill-button {
  border-radius: 9999px !important;
  padding: 0.95em 1.35em 0.95em 1.85em !important;
  min-height: 4.8rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}
.l-entry .wp-block-button a.wp-block-button__link.hamfair-pill-button::after {
  margin-left: .3em !important;
}
@media (max-width: 989px) {
  .l-entry .wp-block-button a.wp-block-button__link.hamfair-pill-button {
    border-radius: 9999px !important;
  }
}
