@charset "utf-8";
@import url("reset.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* 仮のスタイル。本デザインは別途デザイナーが作る */
body {
    font-family: sans-serif;
    line-height: 1.6;
    /*color: #222;*/
    /*height: 100vh;*/
    color: #fff;
    background: #1A1A1A;
}

body::before {
    width: 100%;
    height: 50vh;
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 0;
    background: #55BFBF;
    background: linear-gradient(0deg, rgba(85, 191, 191, 1) 0%, rgba(85, 191, 191, 0) 100%);
}

main {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 6rem auto 3rem auto;
    padding: 1.5rem 4rem 2.5rem 4rem;
    background: #1A1A1A;
    border-radius: 1rem;
    min-height: calc(100vh - 12rem);
    position: relative;
    z-index: 1;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
}

.site-header_inner {
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    background: #1A1A1A;
}

.site_title {
    width: 13.5rem;
}

.site_title img {
    max-width: 100%;
    height: auto;
}

.site-footer {
    display: flex;
    justify-content: center;
    border-bottom: 0;
    background: none;
    height: 3rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.site-name {
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.logout-form {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.logout-form .h_user_action{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logout-action,
.password-change-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    font: inherit;
    line-height: 1;
    background: none;
    cursor: pointer;
}

.password-change-action {
    text-decoration: none;
}

.logout-action:hover,
.password-change-action:hover {
    opacity: 0.65;
}

.logout-action:focus-visible,
.password-change-action:focus-visible {
    border-radius: 3px;
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.logout-icon,
.password-change-icon {
    width: 1.8rem;
    height: 1.8rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

h1 {
    font-size: 1.4em;
    margin: 16px 0;
    display: none;
}

h2 {
    font-size: 1.2em;
    margin: 0 0 1rem 0;
}

p {
    margin: 0.5em 0;
}

label {
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    max-width: 360px;
    padding: 6px;
    border: 1px solid #999;
}

button {
    padding: 6px 16px;
}

a {
    color: #06c;
}

.error {
    color: #b00;
}

body > main .error,
body > main .notice {
    padding: 0.7rem 0.8rem;
    border-radius: 5px;
}

body > main .error {
    color: #ffffff;
    background: rgba(170, 20, 20, 0.3);
}

body > main .notice {
    color: #ffffff;
    background: rgba(20, 130, 100, 0.3);
}

.book-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.book-item {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.6rem;
    padding: 0.8rem;
    /* margin: 8px 0; */
    width: calc((100% - 1rem) / 2);
    color: #fff;
    background:
        radial-gradient(circle at 12% 8%, rgba(68, 164, 255, 0.24), transparent 38%),
        linear-gradient(145deg, #304454 0%, #1b2b38 58%, #101820 100%);
    box-shadow:
        0 14px 30px rgba(10, 20, 28, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.book-item::before {
    position: absolute;
    z-index: -1;
    top: -50%;
    right: -18%;
    width: 58%;
    height: 180%;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: rotate(18deg);
}

/*
.book-item::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #38a7ff, #8b5cf6 55%, #ef5da8);
    opacity: 0.82;
}*/
/*
.book-item:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 190, 255, 0.38);
    box-shadow:
        0 20px 38px rgba(10, 20, 28, 0.32),
        0 0 24px rgba(56, 167, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}*/

.book-cover {
    position: relative;
    display: block;
    flex: 0 0 8rem;
    width: 8rem;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    contain: paint;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.42),
        -3px 0 0 rgba(255, 255, 255, 0.08);
}

.book-cover_link {
    color: inherit;
    text-decoration: none;
}

.book-cover_link:focus-visible {
    outline: 3px solid #6dbfff;
    outline-offset: 4px;
}

.book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 180px;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
    background: repeating-linear-gradient(
        135deg,
        #555b61 0,
        #555b61 12px,
        #676e75 12px,
        #676e75 24px
    );
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.book-cover_overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.75rem;
    color: #fff;
    text-align: center;
    background: rgba(5, 12, 18, 0.62);
}

.book-cover_overlay-open {
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity;
    transition: opacity 0.18s ease;
}

.book-cover_link:hover .book-cover_overlay-open,
.book-cover_link:focus-visible .book-cover_overlay-open {
    opacity: 1;
}

.book-open_icon {
    width: 2.5rem;
    height: 2.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.book-cover_overlay-status {
    flex-direction: column;
    gap: 0.45rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.book-unavailable_icon {
    width: 3rem;
    height: 3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/*
.book-preparing .book-cover img,
.book-expired .book-cover img {
    filter: brightness(0.58) saturate(0.7);
}
*/
.book-info{
    flex:1;
}

.book-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.3rem;
}

.book-author,
.book-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9em;
}

.book-expires{
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9em;
}

.book-expiry-ended {
    position: relative;
    z-index: 1;
    display: inline-block;
    color: #ee1616;
    margin-left: 0.5em;
    backface-visibility: hidden;
    font-weight: 500;
}

.book-state {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9em;
}
/*
.book-expired {
    color: rgba(255, 255, 255, 0.55);
    filter: saturate(0.45);
}
*/
.viewer-main {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    border-radius: 0;
}

.viewer-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 8px;
}

.viewer-title {
    font-weight: bold;
}

.viewer-frame {
    width: 100%;
    height: 100vh;
}

.viewer-note {
    color: #777;
    font-size: 0.85em;
}

.btn_goto_shop{
    position: fixed;
    top: 7rem;
    right: 1rem;
    z-index: 10;
}

.view_login .btn_goto_shop{
    top: 2rem;
}

    .btn_goto_shop a{
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(26,26,26,0.9);
        color: rgba(255, 255, 255, 1);
        border: 1px solid rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-family: "Noto Sans JP", sans-serif;
        line-height: 1;
        gap: 0.375rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.25rem;
        transition: .3s all ease;
    }

    .btn_goto_shop a:hover{
        border-color: #4ff0eb;
        background-color: rgba(26,26,26,1);
    }

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

        .btn_goto_shop_logo{
            width: 5rem;
            margin-bottom: 0.1rem;
        }

        .btn_goto_shop_lbl{
            text-align: center;
            font-size: 0.65rem;
            font-weight: 500;
        }


/*ipad*/
@media screen and (min-width:1px) and (max-width:1024px){
    html {
        font-size: 1.8vw;
    }

    main{
        max-width: 96vw;
        padding: 1.5rem;
        margin: 5rem auto 3rem;
    }

    .site-header_inner {
        height: 5rem;
        padding: 0 1.25rem;
    }

    .site_title {
        width: 10rem;
    }


    .site-header_inner{
        padding: 0 4vw 0 4vw;
    }
}

/* ##########SP########## */
@media screen and (min-width:1px) and (max-width:479px) {

    html{
        font-size: 3.6vw;
        min-width: auto;
    }

    body {
        min-width:initial;
        min-width:auto;
        overflow-y: scroll;
    }

    .logout-form{
        gap: 0.5rem;
        align-items: flex-end;
        flex-direction: column;
    }

    .book-item{
        width: 100%;
    }

    .logout-form .h_user_action{
        gap: 0.5rem;
        justify-content: flex-end;
        font-size: 0.85rem;
    }

    .logout-icon, .password-change-icon{
        width: 1.5rem;
        height: 1.5rem;
    }

    .btn_goto_shop{
        top: 5.5rem;
        right: 0.5rem;
    }

    .view_login .btn_goto_shop{
        top: 1.25rem;
    }

    .btn_goto_shop a{
        padding: 0.5rem;
    }


}
