@charset "UTF-8";

html, body, p, h1, h2, h3, h4, ul, ol {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 960px;
    background: #1e4817 url("https://cdn-image.alphapolis.co.jp/static_page/toaru_ossan/body-bg.png") repeat;
    color: #454545;
    font-size: 18px;
    font-family: "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;
}

.pc {
    display: block;
}

.sp {
    display: none;
}

.icon {
}

.icon::before {
    margin-right: 3px;
    display: inline-block;
    color: #999999;
    font-family: FontAwesome, serif;
}

a.arrow::before {
    content: "\f0a9";
}

a.caret::before {
    content: "\f138";
}

div.link {
    text-align: center;
}

a.button {
    width: 276px;
    padding: 15px;
    display: inline-block;
    background: linear-gradient(to bottom, #88db69, #48a526);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

a.button:hover {
    opacity: .8;
}

.header {
    position: relative;
    width: 960px;
    height: 550px;
    margin-top: 60px;
    margin-bottom: 24px;
    background-image: url("https://cdn-image.alphapolis.co.jp/static_page/toaru_ossan/kv-bg.png");
    background-repeat: repeat-x;
    background-position: top;
    background-size: cover;
}

.header-title {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.copy {
    position: absolute;
    left: 0;
    bottom: 20px;
    z-index: 10;
    width: 639px;
}

.header-cast {
    position: absolute;
    right: 6px;
    bottom: 20px;
    z-index: 10;
    width: 307px;
}

.header-character {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    text-align: right;
}

.character-novel,
.character-comic {
    position: absolute;
    z-index: 1;
    transition: opacity 6s;
    animation-name: fade-in;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.15, 1, 0.15, 1);
}

.character-novel {
    bottom: 0;
    right: 16px;
    width: 511px;
    height: 480px;
}

.character-comic {
    bottom: 0;
    right: 28px;
    width: 422px;
    height: 473px;
}

.copy-novel,
.copy-comic {
    position: absolute;
    right: 12px;
    bottom: 8px;
    content: "";
    width: 107px;
    height: 12px;
    background-image: url("https://cdn-image.alphapolis.co.jp/static_page/toaru_ossan/copy-novel.png");
    background-size: contain;
    transition: opacity 4s;
    z-index: 10;
    animation-name: copy;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.15, 1, 0.15, 1);
}

.copy-comic {
    background-image: url("https://cdn-image.alphapolis.co.jp/static_page/toaru_ossan/copy-comic.png");
}

.character-novel.hide,
.character-comic.hide,
.copy-novel.hide,
.copy-comic.hide {
    opacity: 0;
    animation: none;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes copy {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.nav {
    width: 100%;
    min-width: 960px;
    padding: 12px 0;
    background: #eaab00;
    box-shadow: 5px 0 10px 0 #000000;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 11;
    text-align: center;
    white-space: nowrap;
}

.nav-link {
    padding: 0 20px;
    display: inline-block;
    border-right: 2px solid #5d3111;
    color: #5d3111;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    line-height: 1em;
    vertical-align: middle;
}

.nav-link:hover {
    color: #e00101;
}

.nav-link.last {
    border-right: 0;
}

.nav-sns {
    display: inline-block;
}

.nav-sns.sp {
    display: none;
}

.sns-buttons {
    display: inline-block;
    white-space: nowrap;
}

.sns-buttons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-right: 8px;
    vertical-align: middle;
}

.sns-buttons a:last-child {
    margin-right: 0;
}

.x-share,
.facebook-share,
.line-share {
    width: 100%;
    height: 100%;
}

.main {
    width: 960px;
    margin: auto;
    background: #ffffff;
    box-shadow: 0 0 99px 0 #10270f;
}

.main > .section {
    padding: 0 60px 60px;
}

.main > .section:last-child {
    padding-bottom: 100px;
}

.main h2 {
    margin-bottom: 25px;
    position: relative;
    border-bottom: 3px solid #906C47;
    color: #e60012;
    line-height: 66px;
    font-size: 24px;
    text-align: center;
}

.main h2::after {
    width: 100%;
    height: 66px;
    position: absolute;
    top: 8px;
    left: 0;
    content: "";
    background-image: url("https://cdn-image.alphapolis.co.jp/static_page/toaru_ossan/heading-left.png"),
    url("https://cdn-image.alphapolis.co.jp/static_page/toaru_ossan/heading-right.png"),
    url("https://cdn-image.alphapolis.co.jp/static_page/toaru_ossan/heading-center.png");
    background-position: left bottom, right bottom, center bottom;
    background-size: 120px 66px;
    background-repeat: no-repeat;
}

.trial.buttons {
    display: flex;
    justify-content: space-between;
    width: 600px;
    margin: 0 auto 20px;
}

.trial.buttons a {
    width: 47%;
    padding: 17px 0;
    background: linear-gradient(to bottom, #88db69, #48a526);
    border: 2px solid #ffffff;
    box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.16);
    color: #ffffff;
    font-weight: bold;
    line-height: 1em;
    text-align: center;
    text-decoration: none;
}

.news-list {
    overflow: auto;
    max-height: 120px;
    margin: 0 30px;
    padding-bottom: 16px;
    list-style: none;
    border-bottom: 1px solid #906c47;
    font-size: 16px;
    line-height: 22px;
    color: #454545;
}

.news-link {
    color: #000099;
}

.news-link:hover {
    color: #0000cc;
}

.recently .body {
    padding: 0 30px;
    overflow: hidden;
}

.recently .recently-content:first-child {
    margin-bottom: 30px;
}

.recently .recently-kind {
    margin-bottom: 24px;
    color: #906c47;
    font-size: 20px;
    text-align: center;
}

.recently .recently-kind p {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding: 0 6px;
    background-color: white;
}

.recently .recently-line {
    width: 780px;
    height: 2px;
    margin-top: -14px;
    background-color: #d9cdc0;
}

.recently .recently-detail {
    display: flex;
}

.recently .cover {
    max-width: 235px;
    margin-right: 20px;
    vertical-align: top;
}

.recently .cover img {
    width: 235px;
    height: 345px;
    max-width: unset;
}

.recently .info h3 {
    padding-bottom: 10px;
    font-size: 22px;
    line-height: 30px;
}

.recently .info p {
    font-size: 16px;
    line-height: 27px;
}

.recently .info .buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.recently .info .buttons a {
    width: 47.5%;
    padding: 17px 0;
    background: linear-gradient(to bottom, #88db69, #48a526);
    border: 2px solid #ffffff;
    box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.16);
    color: #ffffff;
    font-weight: bold;
    line-height: 1em;
    text-align: center;
    text-decoration: none;
}

.recently .recently-schedule {
    width: fit-content;
    margin: 20px 0 0 auto;
}

.recently .info p.recently-date {
    margin-bottom: 4px;
    color: #454545;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.recently .info p.recently-attention {
    font-size: 12px;
    line-height: 16px;
}

.story .body {
    padding: 0 42px;
    text-align: center;
}

.story p {
    line-height: 34px;
    font-weight: bold;
}

.hero {
    display: block;
    margin: 0 auto 20px;
}

.characters .body {
    padding: 0 64px;
    display: flex;
    flex-wrap: wrap;
}

.character {
    width: 160px;
    margin: 0 24px 24px 0;
}

.character:nth-child(4n) {
    margin-right: 0;
}

.character .face,
.lightbox-character .face {
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #707070;
}

.character.exist-ruby .face,
.lightbox-character.exit-ruby .face {
    margin-bottom: 5px;
}

.character .name,
.lightbox-character .name {
    height: 48px;
    color: #07913a;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
}

.character .text,
.lightbox-character .text {
    font-size: 14px;
    line-height: 20px;
}

.lightbox-characters {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 13;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: all .5s;
}

.lightbox-characters.visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-character {
    width: 280px;
    height: 380px;
    max-width: 80vw;
    max-height: 90vh;
    margin: auto;
    padding: 40px;
    position: relative;
    z-index: 13;
    display: none;
    background: #ffffff;
    transition: all .5s;
}

.lightbox-character.visible {
    display: block;
}

.comments {
}

.comments .body {
    padding: 0 30px;
}

.comment {
    margin-bottom: 20px;
    border: 1px solid #276c1b;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment h3 {
    padding: 8px;
    background: #276c1b;
    color: #ffffff;
    text-align: center;
}

.comment .text {
    padding: 20px;
    overflow: hidden;
    font-feature-settings: normal;
}

.comment.illustrator .text p {
    width: 563px;
    float: left;
}

.comment.illustrator .open-lightbox-illust {
    float: right;
    position: relative;
}

.comment.illustrator .open-lightbox-illust::after {
    width: 19px;
    height: 24px;
    position: absolute;
    bottom: 0;
    left: -22px;
    content: "";
    background: url("https://cdn-image.alphapolis.co.jp/static_page/toaru_ossan/zoom.png") no-repeat center/19px 24px;
}

.lightbox-illust {
    width: 100%;
    height: 100%;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 13;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: all .5s;
}

.lightbox-illust.visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-illust .detail {
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
    position: relative;
}

.lightbox-illust img {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-character .close,
.lightbox-illust .close {
    width: 50px;
    height: 50px;
    position: absolute;
    top: -10px;
    right: -50px;
    cursor: pointer;
}

.lightbox-character .close::before,
.lightbox-character .close::after,
.lightbox-illust .close::before,
.lightbox-illust .close::after {
    width: 2px;
    height: 30px;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    content: "";
    background: #ffffff;
}

.lightbox-character .close::before,
.lightbox-illust .close::before {
    transform: rotate(-45deg);
}

.lightbox-character .close::after,
.lightbox-illust .close::after {
    transform: rotate(45deg);
}

.books .body {
}

.books .catchcopy {
    margin: 0 10px;
    position: relative;
    background: linear-gradient(to bottom, #dd0101 0%, #e21100 100%);
    color: #ffffff;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    white-space: nowrap;
}

.books .catchcopy::before,
.books .catchcopy::after {
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    border: 20px solid transparent;
    content: "";
}

.books .catchcopy::before {
    left: 0;
    border-left-color: #ffffff;
}

.books .catchcopy::after {
    right: 0;
    border-right-color: #ffffff;
}

.books .meta {
    padding: 20px 30px 10px;
    font-size: 16px;
}

.books .meta span {
    margin-right: 20px;
}

.books .list {
    padding: 0 30px 30px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.books .list a {
    width: 120px;
    margin: 0 12px 10px 0;
}

.books .list a:nth-child(6n) {
    margin-right: 0;
}

.comics .catchcopy2 {
    padding-bottom: 5px;
    color: #276c1b;
    text-align: center;
}

.anime-kv {
    margin: 10px 0 32px;
}

.broadcast {
    margin-left: 1rem;
    margin-bottom: 24px;
    list-style: none;
}

.broadcast-headline {
    list-style: square;
    vertical-align: -0.1em;
    font-size: 18px;
    font-weight: bold;
    text-indent: -8px;
}

.broadcast-text {
    font-size: 16px;
    line-height: 24px;
}

.staff-cast {
    margin-left: 1rem;
    margin-bottom: 24px;
    list-style: none;
}

.staff-cast-headline {
    list-style: square;
    font-size: 18px;
    font-weight: bold;
    text-indent: -8px;
}

.staff-cast-headline span {
    vertical-align: -0.1em;
}

.staff-cast-text {
    position: relative;
    display: flex;
    font-size: 16px;
    line-height: 24px;
}

.staff-cast-text::before {
    content: "";
    background-image: linear-gradient(to right, #000, #000 3px, transparent 3px, transparent 8px);
    background-size: 8px 1px;
    background-repeat: repeat-x;
    position: absolute;
    top: 12px;
    bottom: 0;
    left: 42px;
    right: 0;
    width: 192px;
}

.staff-cast-text.illust::before,
.staff-cast-text.series::before {
    left: 98px;
    width: 136px;
}

.staff-cast-text.design::before {
    left: 210px;
    width: 22px;
}

.staff-cast-text.short::before {
    left: 146px;
    width: 88px;
}

.staff-cast-text.middle::before {
    left: 74px;
    width: 158px;
}

.staff-cast-text.long::before {
    left: 58px;
    width: 174px;
}

.staff-cast-text.pikasya::before {
    left: 90px;
    width: 144px;
}

.staff-cast-text--other {
    padding-top: 24px;
}

.staff-cast-text--other::before {
    content: none;
}

.staff-cast-title {
    width: 238px;
}

.staff-cast-notes {
    font-size: 13px;
}

.overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 8;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: all .5s;
}

.overlay.visible {
    visibility: visible;
    opacity: 1;
}

.footer {
    padding: 30px 20px 45px;
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
}

.footer img {
    max-width: 100%;
    margin-bottom: 8px;
}

.pagetop {
    width: 99px;
    height: 99px;
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    transition: all .5s;
}

.pagetop:hover {
    color: #ffffff;
    text-decoration: none;
    transform: rotate(360deg);
}

@media screen and (max-width: 640px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    body {
        min-width: 0;
    }

    .nav {
        width: 50px;
        height: 50px;
        min-width: 0;
        padding: 0;
        overflow: hidden;
        border-bottom: 2px solid #ffffff;
        border-left: 2px solid #ffffff;
        border-radius: 0 0 0 10px;
        transition: all .5s;
    }

    .nav.opened {
        width: 100%;
        height: 100%;
        overflow: scroll;
        border: 0;
        border-radius: 0 0 0 0;
    }

    .nav .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 50px;
        height: 50px;
        padding: 10px;
        overflow: hidden;
        color: #ffffff;
        font-size: 30px;
        line-height: 50px;
    }

    .nav-header {
        display: none;
    }

    .menu-button.opened {
        height: auto;
        width: 100%;

        .nav-header {
            display: block;
            width: 100%;
            height: auto;
        }

        .menu-button__icon {
            display: none;
        }
    }

    .menu-button__icon {
        width: 30px;
        height: 3px;
        background-color: #ffffff;
    }

    .nav-image {
        display: none;
    }

    .nav-image.opened {
        display: block;
        width: calc(100vw * 152 / 320);
        height: calc(100vw * 67 / 320);
        margin: 10px auto 8px;
    }

    .nav a {
        display: block;
        border-top: 1px solid #ffffff;
        border-right: 0;
        line-height: 50px;
    }

    .nav a.share-button {
        border: none;
    }

    .nav-link.last {
        margin-bottom: -8px;
        border-bottom: 1px solid #ffffff;
    }

    .nav-sns.sp {
        display: block;
        width: 128px;
        margin: 0 auto;
    }

    .sns-buttons {
        display: flex;
        justify-content: space-between;
        width: 100%;
        height: 46px;
        margin: 0 auto;
    }

    .sns-buttons a {
        display: block;
        width: 36px;
        height: 36px;
        border: none;
    }

    .sns-buttons a img {
        width: 100%;
        height: 100%;
    }

    .nav a.share-button {
        border: none;
        line-height: normal;
    }

    .main {
        width: auto;
    }

    .main > .section {
        padding: 20px;
    }

    .header {
        width: 100%;
        height: calc(100vw * 374 / 320);
        margin-top: 0;
        margin-bottom: -16px;
        background: none;
        animation: none;
    }

    .header-title {
        width: 70%;
        height: auto;
    }

    .header-character {
        position: relative;
    }

    .kv-novel,
    .kv-comic {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: auto;
        transition: opacity 3s;
    }

    .kv-novel.hide,
    .kv-comic.hide {
        opacity: 0;
    }

    .trial.buttons {
        position: absolute;
        display: block;
        width: 100%;
        margin: 0;
        padding: 0 20px 4px;
        z-index: 1;
    }

    .trial.buttons a {
        width: 100%;
        display: block;
    }

    .trial.buttons a:first-child {
        margin-bottom: 20px;
    }

    .news {
        margin-top: 130px;
    }

    .news-list {
        max-height: 214px;
    }

    .news-sp {
        display: block;
    }

    .recently .body {
        padding: 0;
        text-align: center;
    }

    .recently .recently-line {
        width: 100%;
    }

    .recently .recently-content:first-child {
        margin-bottom: 20px;
    }

    .recently .recently-detail {
        display: block;
    }

    .recently .cover {
        margin: 0 auto;
        float: none;
    }

    .recently .cover img {
        width: 100%;
        height: 100%;
    }

    .recently .info {
        padding: 20px 10px 0;
        text-align: left;
    }

    .recently .info .buttons {
        display: block;
        margin-top: 20px;
    }

    .recently .info .buttons a {
        width: 100%;
        display: block;
    }

    .recently .info .buttons a:first-child {
        margin-bottom: 20px;
    }

    .story .body {
        padding: 0 10px;
        text-align: left;
    }

    .story .body p {
        display: inline;
        font-size: 15px;
        line-height: 27px;
    }

    .hero {
        padding: 0 10px;
    }

    .characters .body {
        margin-bottom: -16px;
        padding: 0 10px;
    }

    .character {
        width: 48%;
        margin-right: 4%;
        margin-bottom: 16px;
    }

    .character:nth-child(2n) {
        margin-right: 0;
    }

    .character .name {
        height: auto;
    }

    .character .text {
        display: none;
    }

    .lightbox-characters {
        display: flex;
    }

    .comments .body {
        padding: 0;
    }

    .comment h3 {
        padding: 12px;
    }

    .comment .text {
        padding: 16px;
    }

    .illustrator.comment .text {
        text-align: center;
    }

    .comment.illustrator .open-lightbox-illust {
        margin-bottom: 10px;
        display: inline-block;
        float: none;
    }

    .comment.illustrator .text p {
        width: auto;
        text-align: left;
    }

    .lightbox-character .close,
    .lightbox-illust .close {
        top: -50px;
        right: -10px;
    }

    .books .catchcopy {
        padding: 8px 50px;
        font-size: 20px;
        line-height: 1.2;
        white-space: normal;
    }

    .books .catchcopy::before,
    .books .catchcopy::after {
        border-width: 32px;
    }

    .books .meta {
        padding: 16px 30px;
        text-align: center;
    }

    .books .meta span {
        margin-right: 0;
        display: block;
    }

    .books .list {
        padding: 0 0 24px;
    }

    .books .list a {
        width: 200px;
        margin: 0 auto;
    }

    .books .list a:nth-child(6n) {
        margin-right: auto;
    }

    .books .list a:not(:last-child) {
        display: none;
    }

    .comics .catchcopy2 {
        padding-bottom: 8px;
        font-size: 14px;
        line-height: 16px;
    }

    a.button {
        width: 100%;
        padding: 10px;
        line-height: 1;
    }

    .anime-kv {
        margin: 0 0 24px;
    }

    .broadcast {
        margin-bottom: 8px;
        list-style: none;
    }

    .broadcast-headline {
        font-size: 16px;
    }

    .broadcast-text {
        font-size: 14px;
    }

    .staff-cast {
        margin-bottom: 8px;
        list-style: none;
    }

    .staff-cast-headline {
        font-size: 16px;
    }

    .staff-cast-text {
        font-size: 14px;
    }

    .staff-cast-text::before {
        content: none;
    }
}
