html { font-size: 16px; -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { font-family: Inter, system-ui, -apple-system, 'Helvetica Neue', Arial, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', sans-serif; line-height: 1.6; color: #1f2937; background-color: #f8fafc; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
button { font-family: inherit; }
:focus { outline: none; }
:focus-visible { outline: none; }
[role="dialog"] { outline: none; }
.focus-ring { box-shadow: 0 0 0 4px rgba(11,124,255,0.12); border-radius: 0.5rem; }
/* Body scroll lock class used when mobile menu is open */
.no-scroll { overflow: hidden; height: 100vh; }
/* Mobile menu overlay and panel transitions */
#mobileMenu { display: none; }
#mobileMenu.show { display: block; }
#mobileBackdrop { opacity: 0; transition: opacity 260ms cubic-bezier(.2,.9,.2,1); }
#mobileMenu.show #mobileBackdrop { opacity: 1; }
#mobileMenu > .relative > .flex > .bg-white { transform: translateY(12px); opacity: 0; transition: transform 300ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease; }
#mobileMenu.show > .relative > .flex > .bg-white { transform: translateY(0); opacity: 1; }
/* Cookie consent minor adjustments */
#cookieConsent { max-width: 24rem; min-width: 18rem; box-shadow: 0 8px 24px rgba(15,23,42,0.12); }
#cookieConsent.hidden { display: none !important; }
/* Ensure footer links and small text meet contrast; use darker gray for small text */
footer { color: #374151; }
footer a { color: #0b7cff; }
/* Ensure headings are readable against darker backgrounds if used */
h1, h2, h3, h4, h5, h6 { color: #0f172a; }
/* Accessible table defaults */
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e6e9ef; }
/* Tiny utilities not provided by Tailwind classes where necessary */
.center-abs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.card-media { max-height: 280px; overflow: hidden; }
/* Focus styles for Iconify inline icons */
.iconify:focus-visible { box-shadow: 0 0 0 4px rgba(11,124,255,0.12); border-radius: 0.375rem; }
/* Smooth image loading placeholder transition */
img[loading="lazy"] { transition: opacity 320ms ease; }
img[data-loaded="true"] { opacity: 1; }
img:not([data-loaded="true"]) { opacity: 0.6; }
/* Ensure modals trap focus visually by visible ring */
:where(.modal) :focus-visible { box-shadow: 0 0 0 4px rgba(11,124,255,0.12); border-radius: 0.5rem; }
/* Responsive adjustments */
@media (min-width: 640px) {
  #cookieConsent { right: 1.5rem; bottom: 1.5rem; }
}
@media (min-width: 1024px) {
  #cookieConsent { right: 2.5rem; bottom: 2.5rem; }
}
/* Minor accessibility helper to visually hide elements but keep them available to screen readers */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
