html, body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

html {
    font-size: 62.5%;
}

body {
    min-width: 1200px;
    font-size: 1.8rem;
    font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-feature-settings: 'palt';
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

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

img.sp {
    display: none;
}

a.banner {
    background: #ffffff;
}

a.banner:hover img {
    opacity: .5;
}

.button {
    display: flex;
    justify-content: center;
    background: #1B274E;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    line-height: 50px;
    white-space: nowrap;
}

.button::before {
    width: 0;
    height: 0;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: .3em;
    display: inline-block;
    border-top: solid .3em transparent;
    border-bottom: solid .3em transparent;
    border-left: solid .5em #ffffff;
    content: '';
}

.button:hover {
    background: #354a76;
}

.button:before {
    display: inline-block;
    content: '';
    border-top: solid 6px transparent;
    border-right: solid 9px transparent;
    border-bottom: solid 6px transparent;
    border-left: solid 9px #ffffff;
}

.content {
    width: 960px;
    margin: auto;
    box-sizing: border-box;
}

nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    z-index: 10;
    background-color: #203a63;
}

nav .content {
    height: 100%;
    display: flex;
    justify-content: space-between;
}

nav .links {
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex: 1 0 auto;
}

nav .links a {
    height: 2.2rem;
    margin: auto;
    flex: 1 0 auto;
    border-left: 1px solid #ffffff;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    line-height: 1;
}

nav .links a:first-child {
    border-left: 0;
}

nav .links a:hover {
    text-decoration: underline;
}

nav .share {
    display: flex;
    gap: 16px;
    align-items: center;
}

nav .share-button {
    width: 40px;
    height: 40px;
}

header {
    overflow: hidden;
    background-color: #bcb7a4;
    background-image: url('/img/header-bg.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

header .content {
    position: relative;
    height: 900px;
}

header h1 {
    position: absolute;
    top: 10px;
    left: -60px;
}

header .header-logo {
    max-height: 100%;
    width: 640px;
    height: auto;
}

header .author-name {
    position: absolute;
    top: 285px;
    left: 100px;
    width: 200px;
    height: auto;
}

header .message-from-author {
    position: absolute;
    top: 255px;
    left: 350px;
    width: 180px;
    height: auto;
    cursor: pointer;
    z-index: 5;
}

header .message-from-author:hover {
    -webkit-animation: message-hover .5s;
    animation: message-hover .5s;
}

@-webkit-keyframes message-hover {
    0% {
        -webkit-transform: scale(1);
    }
    5% {
        -webkit-transform: scale(.9);
    }
    50% {
        -webkit-transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
    }
}

@keyframes message-hover {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(.9);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

header .character {
    position: absolute;
    width: 900px;
    top: 20px;
    right: -200px;
}

header .character img {
    display: none;
}

header .character img.show {
    display: block;
}

header .anime-float {
    position: relative;
    top: 450px;
    left: -20px;
    display: block;
    width: 405px;
    height: 405px;
    animation: floating-y 1.5s ease-in-out infinite alternate-reverse;
}

@keyframes floating-y {
    0% {
        transform: translateY(-5%);
    }
    100% {
        transform: translateY(5%);
    }
}

header .header-banner-anime {
    width: 100%;
    height: 100%;
    transform: rotate(-10deg);
    filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.5));
}

header .copy-img {
    position: absolute;
    top: 370px;
    left: -95px;
    width: 550px;
    height: auto;
}

header .sp-share {
    display: none;
}

.container > section {
    padding: 20px 0 30px;
}

.container > section h2 {
    border-bottom: 3px solid #151f3f;
    box-shadow: 0 2px 0 rgba(240, 200, 100, 0.8);
    font-size: 3rem;
    text-align: center;
}

.container > section h2::before {
    margin-right: 5px;
    content: url('/img/icon-heading.png');
    vertical-align: middle;
}

section.story {
    background: #cdf7fc;
}

section.story p {
    padding: 30px 100px 0;
}

section.characters {
    position: relative;
    background: #fefdd3;
}

section.characters .list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

section.characters .list .character {
    width: 180px;
    height: 270px;
    margin: 20px 5px 0 5px;
    background: #ffffff;
    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

section.characters .list .character:hover img {
    opacity: .8;
}

section.characters .characters-data {
    display: none;
}

section.characters .lightbox .character-detail {
    position: relative;
    display: flex;
    overflow: hidden;
    margin: auto;
}

section.characters .lightbox .current {
    position: relative;
    display: inline-block;
    left: 0;
    transition: left 0.4s;
}

section.characters .lightbox .prev {
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    transition: left 0.4s;
}

section.characters .lightbox .next {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 100%;
    transition: left 0.4s;
}

@media screen and (orientation: landscape) {
    section.characters .lightbox img {
        height: 90vh;
        max-height: 860px;
        width: auto;
    }
}

@media screen and (orientation: portrait) {
    section.characters .lightbox img {
        height: auto;
        width: 90vw;
        max-width: 654px;
    }
}

section.characters .lightbox .prev-button {
    width: 5%;
    height: 20%;
    margin: auto 10px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #131f3e;
    cursor: pointer;
}

section.characters .lightbox .prev-button::before {
    width: 10px;
    height: 10px;
    margin: auto;
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 35%;
    border-top: solid 2px #ffffff;
    border-left: solid 2px #ffffff;
    transform: rotate(-45deg);
}

section.characters .lightbox .next-button {
    width: 5%;
    height: 20%;
    margin: auto 10px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: #131f3e;
    cursor: pointer;
}

section.characters .lightbox .next-button:before {
    width: 10px;
    height: 10px;
    margin: auto;
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    right: 35%;
    border-top: solid 2px #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
}

section.characters .lightbox .prev-button:hover,
section.characters .lightbox .next-button:hover {
    background: #354a76;
}

section.characters .lightbox .close {
    position: absolute;
    top: 0;
    right: 0;
}

section.characters .lightbox .close:before {
    position: absolute;
    content: '×';
    right: 0;
    top: 0;
    margin: 10px;
    font-size: 5vh;
    line-height: 100%;
    cursor: pointer;
}

section.world {
    background: #bafced;
}

section.world section::after {
    display: block;
    clear: both;
    content: "";
}

section.world h3 {
    margin: 25px 0 15px;
    padding: 5px 30px;
    background: linear-gradient(to right, rgba(237, 205, 79, 0), rgba(237, 205, 79, 1) 30%, rgba(237, 205, 79, 1) 70%, rgba(237, 205, 79, 0) 100%);
    text-align: center;
}

section.world .map {
    margin: 0 20px 20px 0;
    float: left;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, .3);
}

section.world .map img.large {
    display: none;
}

section.world .text {
}

section.world .text p {
    padding-bottom: 20px;
}

section.books {
    background: #ffe7ca;
}

section.books input {
    display: none;
}

section.books .tab-item {
    width: 415px;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    background-color: #7a7a7a;
    padding: 15px 0;
    margin-top: 30px;
    display: block;
}

section.books .tab-item.tankou-label {
    margin-left: 52px;
    float: left;
}

section.books .tab-item.bunko-label {
    margin-right: 52px;
    float: right;
}

section.books .tab-item:hover {
    opacity: .8;
}

section.books input:checked + .tab-item {
    background-color: #1b274f;
}

section.books .tab-border {
    border-bottom: solid 4px #1b274f;
    margin: 80px 15px 10px;
}

section.books .tab-contents {
    display: none;
}

#tankou:checked ~ #tankou-contents,
#bunko:checked ~ #bunko-contents {
    display: block;
}

section.books .detail {
    margin: 20px 15px 30px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: #FFF8EF;
}

section.books .detail .new {
    padding: 5px 10px;
    position: absolute;
    top: 15px;
    right: 20px;
    background: #EC0000;
    color: #ffffff;
    font-family: Times, serif;
    line-height: 1;
}

section.books .detail .cover {
    margin-bottom: 5px;
    float: left;
}

section.books .detail .cover img {
    max-width: 180px;
    border: 1px solid #999999;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, .3);
}

section.books .detail .info {
    overflow: hidden;
    padding: 0 0 0 20px;
}

section.books .detail .info .title {
    font-size: 2rem;
    font-weight: bold;
    border-bottom: solid 1px #CCCCCC;
    padding-bottom: 10px;
}

section.books .detail .info .sub-info {
    padding: 5px 0;
}

section.books .detail .info .sub-info > * {
    margin-right: 20px;
}

section.books .detail .info .sub-info > *::before {
    width: .6em;
    height: .6em;
    margin-right: 3px;
    display: inline-block;
    background: #000000;
    content: "";
}

section.books .detail .info .abstract {
    padding-bottom: 20px;
}

section.books .detail .links {
    display: flex;
}

section.books .detail .links .button {
    flex: 1 0 auto;
    margin: 0 20px 0 0;
}

section.books .simple {
    display: flex;
    flex-wrap: wrap;
    padding: 0 25px;
}

section.books .simple .book {
    width: 20%;
    padding: 0 10px 20px;
    box-sizing: border-box;
}

section.books .simple .book .cover {
    margin-bottom: 5px;
}

section.books .simple .book .cover img {
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

section.books .simple .book .title {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 3px;
}

section.books .simple .book .title .subtitle {
    display: block;
    font-size: 1.6rem;
}

section.books .simple .book .sub-info {
    margin-bottom: 10px;
    line-height: 1.2;
}

section.books .simple .book .sub-info > div {
    margin-bottom: 3px;
    margin-left: .8em;
    text-indent: -.8em;
}

section.books .simple .book .sub-info > div::before {
    width: .6em;
    height: .6em;
    display: inline-block;
    background: #000000;
    content: "";
}

section.books .simple .book .button {
    width: 100%;
    font-size: 1.4rem;
}

.banners {
    padding: 50px 0;
    background: #70d9f3;
    text-align: center;
}

.banners a {
    margin-bottom: 30px;
    display: inline-block;
}

.banners a:last-child {
    margin-bottom: 0;
}

footer {
    text-align: center;
    padding: 30px 20px 20px 20px;
    background: #000000;
    color: #ffffff;
}

footer .copyright {
    margin: 15px 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.lightbox {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    background: rgba(0, 0, 0, 0.5);
}

.lightbox .frame {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: relative;
}

.lightbox .close-button {
    width: 31px;
    height: 31px;
    box-sizing: border-box;
    position: absolute;
    z-index: 2;
    color: rgba(0, 0, 0, .4);
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    line-height: 2.5rem;
    cursor: pointer;
}

.lightbox .message-from-author {
    width: 500px;
    height: auto;
    padding: 20px 40px;
    box-sizing: border-box;
    position: relative;
    background: rgba(255, 255, 200, .9);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
}

.lightbox .message-from-author h2 {
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 1px 0 #ffffff;
}

.lightbox .message-from-author .close-button {
    top: 10px;
    right: 10px;
}

.lightbox.map .left,
.lightbox.map .right,
.lightbox.map .top,
.lightbox.map .bottom {
    position: relative;
    flex: 1 0 auto;
}

.lightbox.map .frame {
    height: 90%;
    display: flex;
    flex-direction: column;
}

.lightbox.map img {
    margin: auto;
    max-height: 100%;
}

.lightbox.map .close-button {
    bottom: -15px;
    right: -15px;
    background: rgba(0, 0, 0, .5);
    border: 3px solid #ffffff;
    border-radius: 100%;
    color: #ffffff;
}


/* タブレット */
@media screen and (max-width: 959px) {
    a.banner:hover img {
        opacity: 1;
    }

    .button:hover {
        background: #131f3e;
    }

    .button:active {
        background: #354a76;
    }

    nav .links a:hover {
        text-decoration: none;
    }

    section.characters .list .character:hover img {
        opacity: 1;
    }

    section.characters .lightbox .prev-button:hover,
    section.characters .lightbox .next-button:hover {
        background: #131f3e;
    }

    section.characters .lightbox .prev-button:active,
    section.characters .lightbox .next-button:active {
        background: #354a76;
    }
}

/* スマホ */
@media screen and (max-width: 599px) {
    body {
        min-width: 0;
    }

    img.sp {
        display: inline;
    }

    a.banner:hover img {
        opacity: 1;
    }

    .button {
        width: 100%;
    }

    .button:hover {
        background: #131f3e;
    }

    .button:active {
        background: #354a76;
    }

    .content {
        width: 100%;
    }

    nav {
        height: 55px;
    }

    nav .links {
        padding: 10px;
    }

    nav .links a {
        font-size: 1.4rem;
    }

    nav .links a:hover {
        text-decoration: none;
    }

    nav .share {
        display: none;
    }

    header {
        background-size: auto 530px;
        background-position: -180px 0;
    }

    header .content {
        position: relative;
        overflow: hidden;
        height: 530px;
        padding: 0 10px;
    }

    header h1 {
        position: relative;
        top: 0;
        left: 0;
    }

    header .header-logo {
        width: 260px;
    }

    header .message-from-author {
        width: 110px;
        margin: auto;
        top: 45px;
        left: 255px;
    }

    header .author-name {
        position: absolute;
        top: 10px;
        left: 265px;
        width: 100px;
        height: auto;
    }

    header .copy-img {
        top: 490px;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 1;
    }

    header .character {
        width: 390px;
        top: 100px;
        right: -50px;
    }

    header .anime-float {
        top: 160px;
        left: 0;
        width: 150px;
        height: 150px;
    }

    header .sp-share {
        display: flex;
        gap: 16px;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 70px;
        background-color: #bcb7a4;
    }

    header .sp-share .share-button {
        width: 40px;
        height: 40px;
    }

    .container > section {
        padding: 20px 10px 30px;
    }

    section.story p {
        padding: 30px 0 0;
    }

    section.characters .list .character {
        width: 144px;
        height: 216px;
    }

    section.characters .list .character:hover img {
        opacity: 1;
    }

    section.characters .lightbox .prev-button:hover,
    section.characters .lightbox .next-button:hover {
        background: #131f3e;
    }

    section.characters .lightbox .prev-button:active,
    section.characters .lightbox .next-button:active {
        background: #354a76;
    }

    section.world .map {
        width: 50%;
    }

    section.books .tab-item {
        width: 40%;
        margin-top: 20px;
    }

    section.books .tab-item:hover {
        opacity: 1;
    }

    section.books .tab-item.tankou-label {
        margin-left: calc(20px + 2.5%);
    }

    section.books .tab-item.bunko-label {
        margin-right: calc(20px + 2.5%);
    }

    section.books .tab-border {
        margin: 70px 10px 10px;
    }

    section.books .detail {
        margin: 20px 10px 30px;
    }

    section.books .detail .new {
        box-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
    }

    section.books .detail .cover {
        float: none;
        text-align: center;
    }

    section.books .detail .info {
        padding-left: 0;
    }

    section.books .detail .links {
        display: block;
    }

    section.books .detail .links .button {
        margin-bottom: 10px;
    }

    section.books .simple {
        padding: 0;
    }

    section.books .simple .book {
        width: 50%;
    }

    .banners {
        padding: 50px 10px;
    }

    footer .copyright {
        font-size: 1rem;
    }
}

/* スマホGalaxyFold */
@media screen and (max-width: 299px) {

    header h1 {
        left: -30px;
    }

    header .message-from-author {
        top: 120px;
        left: 180px;
    }

    section.books .tab-item {
        width: 37%;
        margin-top: 20px;
    }
}
