:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    overflow-x: auto;
    color: #494a41;
    background: #eee;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: #494a41;
}

a:visited,
a:hover,
a:active {
    color: #708090;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.after-shell {
    width: 1000px;
    margin: 0 auto;
    background: #fff;
}

.after-header {
    position: relative;
    width: 1000px;
    height: 214px;
    z-index: 1;
}

.after-header-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 1000px;
    height: 214px;
}

.after-logo,
.after-connect,
.after-social {
    position: absolute;
    z-index: 1;
}

.after-logo {
    top: 81px;
    left: 12px;
    width: 579px;
}

.after-connect {
    top: 180px;
    left: 770px;
    width: 213px;
}

.after-social {
    top: 135px;
    left: 900px;
    display: flex;
    gap: 12px;
}

.after-social a,
.after-social img {
    display: block;
    width: 36px;
    height: 36px;
}

.after-content {
    display: grid;
    grid-template-columns: 530px 400px;
    gap: 30px;
    align-items: start;
    padding: 15px 20px;
}

.after-story-panel,
.after-about-panel,
.after-map-panel,
.after-archive-panel {
    position: relative;
    background-repeat: no-repeat;
}

.after-story-panel {
    width: 530px;
    height: 747px;
    background-image: url('/assets/after/story_news.gif');
}

.after-posts {
    position: absolute;
    top: 33px;
    left: 10px;
    width: 500px;
    height: 700px;
    padding-right: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.after-story {
    min-height: 40px;
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px dotted #aaa;
}

.after-story::after {
    display: block;
    clear: both;
    content: "";
}

.after-story-thumbnail {
    float: left;
    margin: 5px 12px 4px 0;
}

.after-story-thumbnail img {
    display: block;
    width: 210px;
    max-height: 160px;
    padding: 4px;
    border: 1px solid #aaa;
    object-fit: cover;
}

.after-story h2,
.after-story-detail > h1 {
    margin: 3px 0;
    padding-left: 8px;
    border-left: 3px solid #089414;
    color: #171155;
    font-size: 14px;
    line-height: 1.35;
}

.after-story-thumbnail + h2,
.after-story-thumbnail ~ p {
    margin-left: 222px;
}

.after-story h2 a {
    color: #171155;
    text-decoration: none;
}

.after-story h2 a:hover,
.after-story h2 a:focus-visible {
    text-decoration: underline;
}

.after-story p {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.7;
}

.after-story-detail {
    padding: 5px 0;
}

.after-story-detail > h1 {
    margin: 13px 0;
    padding-left: 10px;
    font-size: 18px;
}

.after-article-body {
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.7;
}

.after-article-body p {
    margin: 0 0 .65em;
}

.after-article-body img {
    max-width: 100%;
    padding: 4px;
    border: 1px solid #aaa;
}

.after-article-body table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.after-article-body th,
.after-article-body td {
    padding: 8px;
    border: 1px solid #777;
}

.after-empty {
    margin: 10px 0;
    font-size: 12px;
}

.after-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
    clear: both;
    margin-top: 14px;
    padding: 12px 4px 4px;
    border-top: 1px dotted #aaa;
    font-size: 12px;
}

.after-pagination a,
.after-pagination [aria-current] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    color: #171155;
    text-decoration: none;
}

.after-pagination a:hover,
.after-pagination a:focus-visible {
    border-color: #089414;
    background: #edf7ee;
}

.after-pagination a:focus-visible {
    outline: 2px solid #365d9a;
    outline-offset: 2px;
}

.after-pagination [aria-current] {
    border-color: #089414;
    background: #089414;
    color: #fff;
    font-weight: bold;
}

.after-pagination-ellipsis {
    min-width: 18px;
    color: #777;
    text-align: center;
}

.after-sidebar {
    width: 400px;
}

.after-about-panel {
    width: 400px;
    height: 151px;
    background-image: url('/assets/after/aboutUs.gif');
}

.after-panel-body {
    position: absolute;
    top: 35px;
    left: 10px;
    display: block;
    width: 360px;
    overflow: auto;
    font-size: 13px;
}

.after-about-body {
    height: 100px;
    color: #494a41;
    text-decoration: none;
}

.after-about-body p {
    margin: 0 0 .6em;
}

.after-map-panel {
    width: 400px;
    height: 324px;
    margin-top: 15px;
    background-image: url('/assets/after/where_they_are.gif');
}

.after-map-body {
    position: absolute;
    top: 33px;
    left: 10px;
    width: 370px;
    height: 282px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.after-map-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.after-map-body p {
    margin: 20px;
    font-size: 13px;
}

.after-archive-panel {
    width: 400px;
    height: 243px;
    margin-top: 15px;
    background-image: url('/assets/after/archive.gif');
}

.after-archive-body {
    top: 33px;
    width: 370px;
    height: 200px;
}

.after-archive-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.after-archive-years {
    padding: 4px 4px 0 2px !important;
    font-size: 13px;
    line-height: 1.45;
}

.after-archive-year {
    margin-bottom: 8px;
}

.after-archive-year-label {
    position: relative;
    display: block;
    padding: 3px 4px 3px 18px;
    border-radius: 3px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    list-style: none;
}

.after-archive-year-label::-webkit-details-marker {
    display: none;
}

.after-archive-year-label::before {
    position: absolute;
    top: 4px;
    left: 3px;
    content: "\25b6";
    transition: transform .15s ease;
}

.after-archive-year details[open] > .after-archive-year-label::before {
    transform: rotate(90deg);
}

.after-archive-year-label:hover,
.after-archive-year-label:focus-visible {
    background: #eee;
}

.after-archive-year-label:focus-visible {
    outline: 2px solid #365d9a;
    outline-offset: 1px;
}

.after-archive-month {
    margin-top: 4px;
}

.after-archive-month-label {
    position: relative;
    display: block;
    padding-left: 13px;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.after-archive-month-label::before {
    position: absolute;
    left: 0;
    content: "-";
}

.after-archive-posts li {
    position: relative;
    padding: 3px 0 3px 26px;
    border-bottom: 1px dotted #ccc;
}

.after-archive-posts li::before {
    position: absolute;
    left: 8px;
    color: #888;
    content: "--";
}

.after-archive-empty {
    padding: 4px 2px;
}

.after-archive-body a {
    color: #171155;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.after-archive-body a:hover,
.after-archive-body a:focus-visible {
    text-decoration: underline;
}

.after-footer {
    width: 1000px;
    padding: 15px 0;
    border-top: 1px solid #ccc;
    background: #f1f2f2;
}

.after-footer nav {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 15px;
}

.after-footer nav a,
.after-footer nav img {
    display: block;
}

.after-footer nav img {
    width: 230px;
    height: auto;
    border: 1px solid #ccc;
}

.after-footer nav .after-company-banner {
    width: 230px;
    height: 55px;
    padding: 3px 5px;
    background: #fff;
    object-fit: contain;
}

.after-footer small {
    display: block;
    margin-right: 60px;
    font-size: 10px;
    text-align: right;
}

@media (max-width: 1000px) {
    .after-shell {
        width: 100%;
        min-width: 320px;
    }

    .after-header {
        width: 100%;
        height: auto;
        aspect-ratio: 1000 / 214;
    }

    .after-header-image {
        width: 100%;
        height: 100%;
    }

    .after-logo {
        top: 37.85%;
        left: 1.2%;
        width: 57.9%;
    }

    .after-connect {
        top: 84.1%;
        left: 77%;
        width: 21.3%;
    }

    .after-social {
        top: 63.1%;
        left: 90%;
        width: 8.4%;
        gap: 14.28%;
    }

    .after-social a {
        width: 42.86%;
        height: auto;
    }

    .after-social img {
        width: 100%;
        height: auto;
    }

    .after-content {
        grid-template-columns: minmax(0, 530px) minmax(0, 400px);
        gap: 3%;
        padding-right: 2%;
        padding-left: 2%;
    }

    .after-story-panel,
    .after-sidebar,
    .after-about-panel,
    .after-map-panel,
    .after-archive-panel {
        max-width: 100%;
    }

    .after-footer {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .after-content {
        display: block;
    }

    .after-story-panel,
    .after-sidebar {
        width: min(100%, 530px);
        margin: 0 auto;
    }

    .after-sidebar {
        margin-top: 15px;
    }

    .after-about-panel,
    .after-map-panel,
    .after-archive-panel {
        width: 400px;
        margin-right: auto;
        margin-left: auto;
    }

    .after-footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .after-footer small {
        margin: 0;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .after-content {
        padding: 10px 0;
    }

    .after-story-panel {
        width: 100%;
        background-size: 100% 747px;
    }

    .after-posts {
        left: 2%;
        width: 96%;
    }

    .after-story-thumbnail img {
        width: 42vw;
    }

    .after-story-thumbnail + h2,
    .after-story-thumbnail ~ p {
        margin-left: calc(42vw + 12px);
    }

    .after-sidebar,
    .after-about-panel,
    .after-map-panel,
    .after-archive-panel {
        width: 100%;
        background-size: 100% 100%;
    }

    .after-panel-body,
    .after-map-body {
        left: 2.5%;
        width: 92.5%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .after-archive-year-label::before {
        transition: none;
    }
}
