/* Preserve original theme styling; only restore interactions and preview safety. */
#gnav-ul li > .sub-menu { display: none; }
#gnav-ul li:hover > .sub-menu, #gnav-ul li:focus-within > .sub-menu { display: block; }
.preview-form-notice { padding: 12px 16px; background: #fff7db; color: #433c27; border: 1px solid #d8c78d; margin-bottom: 20px; line-height: 1.7; }
:focus-visible { outline: 2px solid #39723d; outline-offset: 3px; }
.pagetop { cursor: pointer; }
/* The original article template nests two CTA wrappers. Use one visible button. */
.detail2:has(> .detail3) {
  width: auto;
  height: auto;
  padding: 0;
  background: none;
}
.detail3,
.detail2:has(> a) {
  float: none;
  width: min(436px, 90%);
  height: auto;
  padding: 0;
  margin: 20px auto;
  box-sizing: border-box;
}
.detail3 > a,
.detail2 > a {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 70px;
  padding: 14px 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: center;
}
@media (max-width: 991px) {
  #gnav.active .sub-menu { display: block; }
  #header-menu-tog a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  #side .menu li:has(> a > img) {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 10px);
    height: auto;
    min-height: 57px;
    padding: 8px 5px 8px 10px;
    box-sizing: border-box;
  }
  #side a[id="side-a"] { flex: 1; min-width: 0; width: auto; }
  #side .menu li > a:has(> img) { flex: 0 0 45px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
