/* Scoped corporate shell. Article typography, colours and blocks are untouched. */
#header.aly-header,
#aly-footer.aly-footer {
    font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: .1em;
    color: #183f1c;
    box-sizing: border-box;
}
.aly-header *, .aly-footer * { box-sizing: border-box; }
#header.aly-header {
    position: sticky !important;
    top: var(--aly-admin-offset, 0px) !important;
    inset-inline: 0;
    z-index: 1000;
    width: 100%;
    height: auto !important;
    margin: 0;
    padding: 0;
    transform: none !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 0;
    box-shadow: 0 5px 20px rgb(0 0 0 / 5%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
body.admin-bar { --aly-admin-offset: 32px; }
.aly-header__inner { display: flex; align-items: center; gap: 22px; min-height: 100px; width: 100%; padding: 12px 16px; }
.aly-header a, .aly-footer a { color: inherit; text-decoration: none; }
.aly-header a:hover, .aly-footer a:hover { color: #648536; }
.aly-header :focus-visible, .aly-footer :focus-visible { outline: 2px solid #52782b; outline-offset: 4px; }
.aly-brand { flex: 0 1 285px; min-width: 170px; margin: 0; }
.aly-brand__link { display: block; font-size: clamp(18px, 1.5vw, 24px); font-weight: 600; letter-spacing: .08em; line-height: 1.65; overflow-wrap: anywhere; }
.aly-nav--desktop { flex: 1; min-width: 0; }
.aly-header ul, .aly-footer ul { list-style: none; padding: 0; margin: 0; }
.aly-nav__list { display: flex; justify-content: center; align-items: stretch; }
.aly-nav__item { position: relative; flex: 0 1 auto; }
.aly-nav__link { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 64px; padding: 12px 10px; white-space: nowrap; }
.aly-nav__en { font-size: 12px; line-height: 1; letter-spacing: .2em; }
.aly-nav__ja { margin-top: 7px; font-size: 10px; line-height: 1.2; letter-spacing: .16em; }
.aly-submenu > summary { display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; position: absolute; bottom: 0; left: 0; width: 100%; height: 17px; }
.aly-header summary::-webkit-details-marker { display: none; }
.aly-chevron { display: inline-block; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.aly-submenu[open] > summary .aly-chevron { transform: rotate(225deg); }
.aly-header .aly-submenu__list { position: absolute; top: 100%; left: 0; width: 310px; max-width: calc(100vw - 32px); padding: 10px 0; background: rgba(255,255,255,.96); color: #333; border: 1px solid rgb(255 255 255 / 40%); border-radius: 3px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 5px 20px rgb(0 0 0 / 8%); }
.aly-submenu__list a { display: block; padding: 12px 18px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.aly-submenu__list a:hover { background: rgb(0 0 0 / 5%); }
.aly-header__extras, .aly-mobile__extras { display: flex; align-items: center; gap: 14px; }
.aly-tokken { display: flex; align-items: center; width: 108px; flex: 0 0 108px; }
.aly-tokken img { display: block; width: 108px; height: 32px; object-fit: contain; }
.aly-social { display: flex; align-items: center; gap: 7px; }
.aly-social a { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid currentColor; border-radius: 50%; }
.aly-social svg { display: block; width: 19px; height: 19px; fill: currentColor; }
.aly-mobile, .aly-search { display: none; }
/* Disable SWELL's duplicate fixed/mobile menus only on pages with this header. */
#body_wrap:has(#header.aly-header) #fix_header,
#body_wrap:has(#header.aly-header) #sp_menu { display: none !important; }
#body_wrap:has(#header.aly-header) { padding-top: 0 !important; }
#aly-footer.aly-footer { position: relative; background: #fff; color: #0a0303; padding: 0; margin: 0; text-align: center; }
.aly-footer__inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; }
.aly-contact { padding: 110px 24px 140px; background-color: #568f9f; background-image: linear-gradient(rgb(21 75 94 / 12%), rgb(21 75 94 / 12%)), url("contact-landscape.png"); background-size: cover; background-position: center 65%; color: #fff; }
.aly-contact__inner { max-width: 1100px; margin: auto; }
#aly-footer .aly-contact__title { padding: 0; margin: 0 0 28px; color: #fff; font: 600 24px/1.7 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: .4em; background: none; border: 0; }
#aly-footer .aly-contact__title::before, #aly-footer .aly-contact__title::after { display: none; }
.aly-contact__title span { display: block; color: #e2fab6; font-size: 16px; letter-spacing: .4em; }
.aly-contact__text { margin: 0 0 30px; font-size: clamp(14px, 1.5vw, 20px); line-height: 2; word-break: keep-all; overflow-wrap: anywhere; }
#aly-footer .aly-contact__button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; max-width: 100%; min-height: 46px; width: 350px; padding: 12px 20px; background: #c1db81; border-radius: 80px; color: #183f1c; font-size: 14px; line-height: 1.6; box-shadow: 0 3px 8px rgb(0 0 0 / 12%); }
#aly-footer .aly-contact__button:hover { background: #d5e9a4; }
.aly-contact__button svg { width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; }
.aly-footer .aly-footer__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 0; margin: 0 0 16px; }
.aly-footer__links li + li { border-left: 1px solid currentColor; }
.aly-footer__links a { display: block; padding: 0 10px; font-size: 13px; line-height: 1.6; }
.aly-footer__copyright { margin: 0; font-size: 12px; line-height: 1.77; }
@media (min-width: 1200px) and (max-width: 1399px) {
    .aly-header__inner { gap: 12px; }
    .aly-brand { flex-basis: 240px; }
    .aly-nav__link { padding-inline: 8px; }
    .aly-header__extras { gap: 8px; }
    .aly-header__extras .aly-tokken, .aly-header__extras .aly-tokken img { width: 96px; flex-basis: 96px; }
    .aly-social { gap: 5px; }
}
@media (max-width: 1199px) {
    .aly-header__inner { min-height: 80px; gap: 16px; padding: 12px 22px; }
    .aly-brand { flex: 1; }
    .aly-brand__link { max-width: 560px; font-size: 22px; }
    .aly-nav--desktop, .aly-header__extras { display: none; }
    .aly-mobile { display: block; flex: 0 0 48px; }
    .aly-search { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 48px; padding: 8px; color: inherit; background: none; border: 0; cursor: pointer; }
    .aly-search svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
    .aly-mobile__toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; list-style: none; cursor: pointer; }
    .aly-hamburger { display: block; position: relative; width: 24px; height: 1px; background: currentColor; }
    .aly-hamburger::before, .aly-hamburger::after { content: ""; position: absolute; left: 0; width: 24px; height: 1px; background: currentColor; }
    .aly-hamburger::before { top: -7px; }
    .aly-hamburger::after { top: 7px; }
    .aly-mobile__label { margin-top: 5px; font-size: 9px; line-height: 1; letter-spacing: .12em; }
    .aly-mobile[open] .aly-hamburger { background: transparent; }
    .aly-mobile[open] .aly-hamburger::before { top: 0; transform: rotate(45deg); }
    .aly-mobile[open] .aly-hamburger::after { top: 0; transform: rotate(-45deg); }
    .aly-mobile__panel { position: absolute; top: 100%; left: 0; width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 30px; background: rgba(255,255,255,.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 18px rgb(0 0 0 / 8%); }
    .aly-nav--mobile .aly-nav__list { display: block; max-width: 640px; margin: 0 auto; }
    .aly-nav--mobile .aly-nav__item { border-bottom: 1px solid #e3e9df; }
    .aly-nav--mobile .aly-nav__link { min-height: 64px; align-items: flex-start; padding: 14px 52px 14px 4px; }
    .aly-nav--mobile .aly-nav__en { font-size: 14px; }
    .aly-nav--mobile .aly-submenu > summary { left: auto; right: 0; top: 0; bottom: auto; width: 48px; height: 64px; }
    .aly-nav--mobile .aly-submenu__list { position: static; width: 100%; max-width: none; border: 0; box-shadow: none; background: #f5f8f2; }
    .aly-submenu__list a { padding-block: 13px; }
    .aly-mobile__home { display: block; max-width: 640px; margin: 22px auto; padding: 12px 0; font-size: 13px; overflow-wrap: anywhere; }
    .aly-mobile__extras { justify-content: center; gap: 24px; }
    .aly-mobile__extras .aly-social a { width: 40px; height: 40px; }
}
@media (max-width: 782px) { body.admin-bar { --aly-admin-offset: 46px; } }
@media (max-width: 600px) {
    body.admin-bar { --aly-admin-offset: 0px; }
    .aly-header__inner { padding: 10px 16px; min-height: 76px; gap: 12px; }
    .aly-brand { min-width: 0; }
    .aly-brand__link { font-size: 18px; letter-spacing: .05em; }
    .aly-footer__inner { padding: 24px 16px; }
    .aly-contact { padding: 60px 20px; }
    #aly-footer .aly-contact__title { font-size: 21px; letter-spacing: .25em; }
    .aly-contact__text { font-size: 14px; }
    .aly-footer .aly-footer__links { flex-direction: column; gap: 10px; }
    .aly-footer__links li + li { border: 0; }
    .aly-footer__links a { padding: 4px 0; }
}
@media print {
    #header.aly-header { position: static !important; box-shadow: none; }
    .aly-nav--desktop, .aly-header__extras, .aly-mobile, .aly-search { display: none; }
}
