/* Shared shell only. Keep native WordPress article styles outside this scope. */
.p1-shell-header, .p1-shell-footer { --p1-ink: #161616; --p1-yellow: #e2a72e; --p1-line: #dedede; --p1-muted: #686868; color: var(--p1-ink); background: #fff; font-family: "Noto Sans JP", system-ui, sans-serif; font-weight: 400; font-size: 14px; line-height: 1.7; }
.p1-shell-header *, .p1-shell-footer * { box-sizing: border-box; }
.p1-shell-header a, .p1-shell-footer a { color: inherit; text-decoration: none; }
.p1-shell-header a:focus-visible, .p1-shell-header button:focus-visible, .p1-shell-footer a:focus-visible { outline: 3px solid var(--p1-ink); outline-offset: 4px; }
.p1-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; }
.p1-skip-link { position: fixed; top: 12px; left: 12px; z-index: 10000; padding: 10px 18px; background: #161616; color: #fff; font: 500 14px/1.7 system-ui, sans-serif; text-decoration: none; transform: translateY(-180%); }
.p1-skip-link:focus { transform: none; outline: 3px solid #e2a72e; outline-offset: 3px; }
.p1-shell-header { position: relative; z-index: 40; border-bottom: 1px solid var(--p1-line); }
.p1-header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; width: min(1160px, calc(100% - 80px)); min-height: 108px; margin: 0 auto; }
.p1-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; width: fit-content; }
.p1-brand-name { display: block; font-family: Inter, "Noto Sans JP", system-ui, sans-serif; font-size: 21px; font-weight: 700; letter-spacing: .09em; line-height: 1.2; white-space: nowrap; }
.p1-brand-name strong { font-weight: inherit; }
.p1-brand-caption { display: block; max-width: 220px; color: var(--p1-muted); font-size: 9px; line-height: 1.6; letter-spacing: .03em; }
.p1-menu-panel { justify-self: end; }
.p1-menu-list, .p1-footer-menu ul { list-style: none; padding: 0; margin: 0; }
.p1-menu-list { display: flex; align-items: center; gap: 22px; }
.p1-menu-list li, .p1-footer-menu li { list-style: none; margin: 0; padding: 0; }
.p1-menu-list a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 10px 0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.p1-menu-list a::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; content: ""; background: var(--p1-yellow); transform: scaleX(0); transition: transform .15s ease; }
.p1-menu-list a:hover::after, .p1-menu-list a[aria-current="page"]::after { transform: scaleX(1); }
.p1-line-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 46px; padding: 11px 15px; border: 1px solid var(--p1-yellow); border-radius: 4px; background: var(--p1-yellow); color: var(--p1-ink); font-size: 12px; font-weight: 700; line-height: 1.6; text-align: center; white-space: nowrap; }
.p1-line-button:hover { background: #f0bb45; border-color: #f0bb45; }
.p1-nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-width: 44px; min-height: 46px; padding: 5px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-ink); font-family: inherit; cursor: pointer; }
.p1-toggle-icon { position: relative; display: block; width: 19px; height: 15px; }
.p1-toggle-icon > span { position: absolute; left: 0; display: block; width: 19px; height: 1.5px; background: currentColor; transition: transform .15s ease, opacity .15s ease; }
.p1-toggle-icon > span:nth-child(1) { top: 0; }
.p1-toggle-icon > span:nth-child(2) { top: 6.75px; }
.p1-toggle-icon > span:nth-child(3) { top: 13.5px; }
.p1-nav-toggle[aria-expanded="true"] .p1-toggle-icon > span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.p1-nav-toggle[aria-expanded="true"] .p1-toggle-icon > span:nth-child(2) { opacity: 0; }
.p1-nav-toggle[aria-expanded="true"] .p1-toggle-icon > span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }
.p1-menu-state { font-size: 8px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.p1-shell-header [hidden] { display: none !important; }
.p1-shell-footer { padding: 48px 0 22px; border-top: 1px solid var(--p1-line); }
.p1-footer-inner, .p1-footer-bottom { width: min(1160px, calc(100% - 80px)); margin: 0 auto; }
.p1-footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; padding-bottom: 36px; }
.p1-footer-caption { margin: 12px 0 0; color: var(--p1-muted); font-size: 12px; line-height: 1.8; }
.p1-footer-company { margin: 20px 0 0; font-size: 12px; line-height: 1.9; }
.p1-company-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 5px; font-size: 12px; font-weight: 500; text-decoration: underline !important; text-underline-offset: 5px; }
.p1-footer-menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.p1-footer-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 13px; font-weight: 500; }
.p1-footer-menu a:hover, .p1-footer-utilities a:hover { text-decoration: underline; text-underline-offset: 5px; }
.p1-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding-top: 20px; border-top: 1px solid var(--p1-line); }
.p1-footer-utilities { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.p1-footer-utilities a { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 0; color: var(--p1-muted); font-size: 11px; }
.p1-copyright { margin: 0; align-self: center; color: var(--p1-muted); font-size: 10px; line-height: 1.7; }
@media (max-width: 1050px) {
  .p1-header-inner, .p1-footer-inner, .p1-footer-bottom { width: calc(100% - 56px); }
  .p1-header-inner { gap: 20px; }
  .p1-menu-list { gap: 17px; }
  .p1-brand-name { font-size: 19px; }
}
@media (max-width: 959px) {
  .p1-header-inner { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 91px; gap: 14px; }
  .p1-brand { grid-column: 1; grid-row: 1; }
  .p1-nav-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
  .p1-line-button { grid-column: 3; grid-row: 1; }
  .p1-menu-panel { grid-column: 1 / -1; justify-self: stretch; padding-bottom: 16px; }
  .p1-shell-header[data-phase1-nav-ready="true"] .p1-menu-panel { position: absolute; top: 100%; right: 0; left: 0; padding: 12px 28px 20px; border-top: 1px solid var(--p1-line); border-bottom: 1px solid var(--p1-line); background: #fff; box-shadow: 0 12px 20px #1616160c; }
  .p1-menu-list { flex-direction: column; align-items: stretch; gap: 0; max-width: 1160px; margin: 0 auto; }
  .p1-menu-list a { min-height: 48px; padding: 12px 2px; border-bottom: 1px solid #eeeeee; font-size: 14px; }
  .p1-menu-list a::after { display: none; }
  .p1-menu-list a[aria-current="page"] { font-weight: 700; }
}
@media (max-width: 540px) {
  .p1-header-inner, .p1-footer-inner, .p1-footer-bottom { width: calc(100% - 32px); }
  .p1-header-inner { min-height: 84px; gap: 8px; }
  .p1-brand-name { font-size: 17px; letter-spacing: .065em; }
  .p1-brand-caption { max-width: 140px; font-size: 8px; }
  .p1-line-button { min-height: 46px; padding: 10px 9px; gap: 4px; font-size: 10px; }
  .p1-shell-header[data-phase1-nav-ready="true"] .p1-menu-panel { padding-right: 16px; padding-left: 16px; }
  .p1-shell-footer { padding-top: 34px; }
  .p1-footer-inner { grid-template-columns: 1fr; gap: 26px; padding-bottom: 24px; }
  .p1-footer-menu ul { gap: 4px 20px; }
  .p1-footer-menu a { font-size: 12px; }
  .p1-footer-utilities { gap: 2px 18px; }
  .p1-footer-utilities a { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .p1-menu-list a::after, .p1-toggle-icon > span { transition: none; }
}

/* JS enhances the existing links; without JS the four normal links remain. */
.p1-primary-button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: var(--p1-ink); font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.7; text-align: left; white-space: nowrap; cursor: pointer; }
.p1-primary-button::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; content: ""; background: var(--p1-yellow); transform: scaleX(0); transition: transform .15s ease; }
.p1-primary-button:hover::after, .p1-primary-button[aria-current="page"]::after, .p1-primary-button[aria-expanded="true"]::after { transform: scaleX(1); }
.p1-disclosure-chevron { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.p1-primary-button[aria-expanded="true"] .p1-disclosure-chevron { margin-top: 3px; transform: rotate(225deg); }
.p1-submenu { position: absolute; top: 100%; right: 0; left: 0; z-index: 1; border-top: 1px solid var(--p1-line); border-bottom: 1px solid var(--p1-line); background: #fff; box-shadow: 0 10px 18px #1616160a; }
.p1-submenu-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: min(1160px, calc(100% - 80px)); margin: 0 auto; padding: 17px 0; }
.p1-menu-list .p1-submenu-link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; font-size: 12px; font-weight: 400; line-height: 1.6; white-space: normal; }
.p1-menu-list .p1-submenu-link::after { display: none; }
.p1-menu-list .p1-submenu-link:hover { border-color: #a5a5a5; background: #f6f6f6; }
.p1-menu-list .p1-submenu-link[aria-current="page"] { border-color: var(--p1-yellow); background: #fff9e8; font-weight: 500; }
@media (max-width: 1050px) {
  .p1-submenu-inner { width: calc(100% - 56px); }
}
@media (max-width: 959px) {
  .p1-shell-header[data-phase1-nav-ready="true"] .p1-menu-panel { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .p1-primary-button { display: flex; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px 2px; border-bottom: 1px solid #eeeeee; font-size: 14px; }
  .p1-primary-button::after { display: none; }
  .p1-primary-button[aria-current="page"] { font-weight: 700; }
  .p1-submenu { position: static; border: 0; box-shadow: none; }
  .p1-submenu-inner { justify-content: flex-start; width: 100%; gap: 8px; padding: 10px 0 17px; }
  .p1-menu-list .p1-submenu-link { padding: 9px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .p1-primary-button::after, .p1-disclosure-chevron { transition: none; }
}
