/*
Theme Name: Ariel Theme
Description: Arielメディア用のSWELL子テーマ。
Version: 0.2.1
Template: swell
Requires at least: 6.8
Requires PHP: 8.3
Text Domain: ariel-theme
*/

/* Shell overrides stay outside SWELL's article and Dynamic CTA Block styles. */
.ariel-root-shell [hidden] { display: none !important; }
.ariel-root-shell button { cursor: pointer; }
.ariel-root-shell :focus-visible { outline: 2px solid #00877f; outline-offset: 4px; }
.ariel-root-shell .c-gnav__item:focus-within .c-gnav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ariel-root-shell .js-accordionToggle:not([hidden]) { display: block; }
.ariel-root-shell button.js-accordionBtn { width: 100%; text-align: left; }
.ariel-root-shell .ariel-site-header { z-index: 100; }
.ariel-root-shell .c-menu, .ariel-root-shell .c-modal-line { z-index: 100001; }
.ariel-root-shell .c-menu:not([hidden]), .ariel-root-shell .c-modal-line:not([hidden]) { display: block; }
.ariel-skip-link { position: fixed; left: 12px; top: -100px; z-index: 100002; padding: 12px; background: #fff; color: #00877f; }
.ariel-skip-link:focus { top: 12px; }
#content { scroll-margin-top: 130px; }
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--ariel-header-height, 120px) + 8px); }
#body_wrap { padding-top: var(--ariel-header-height, 120px); }
.w-fixSide { top: calc(var(--ariel-header-bottom, 120px) + 8px); max-height: calc(100vh - var(--ariel-header-bottom, 120px) - 16px); }
@media (min-width: 783px) { .admin-bar .ariel-root-shell .ariel-site-header { top: 32px; } }
@media (max-width: 782px) { .admin-bar .ariel-root-shell .ariel-site-header { top: 46px; } }
@media (max-width: 1023px) {
    #content { scroll-margin-top: 70px; }
    #body_wrap { padding-top: var(--ariel-header-height, 59px); padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
    .ariel-root-shell .c-button-cta__fixed { padding-bottom: env(safe-area-inset-bottom); }
    .p-fixBtnWrap { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
