* {
    box-sizing: border-box;
}

html,
body {
    font-family:
        "Noto Sans JP",
        /* Google Fonts font */
        -apple-system,
        /* macOS/iOS font */
        BlinkMacSystemFont,
        /* Chrome on macOS/iOS */
        "Hiragino Kaku Gothic ProN",
        /* macOS font */
        "Hiragino Sans",
        /* macOS font */
        "Meiryo",
        /* Windows font */
        "Yu Gothic",
        /* Windows 10+ font */
        "MS PGothic",
        /* Old Windows */
        "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: #222;
    line-height: 1.6;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    margin: 0;
    padding: 0;
}

header {
    width: 100%;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.05);
}

header .header-inner {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer {
    height: 40px;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05);
    color: gray;
    text-wrap: nowrap;
    font-size: small;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.main {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.title {
    box-shadow: inset 0 -1px 0 0 lightgray;
    position: sticky;
    top: 50px;
    line-height: 50px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10;
    display: flex;
    align-items: center;
}

.title>h1 {
    padding: 0;
    margin: 0;
    white-space: nowrap;
    font-size: clamp(.8em, 2vw, 1em);
    font-weight: normal;
}

.title a {
    text-decoration: none;
    color: #00598f;
}

.title a:hover {
    text-decoration: underline;
    text-shadow: 0 0 1px currentColor;
}

.logo {
    margin-inline-start: 10px;
}

.logo>img {
    display: block;
    height: 30px !important;
}

@media (max-width: 767px) {
    .logo>img {
        height: 35px;
        padding: 5px auto;
    }
}

.title>h1 {
    display: flex;
}

.home-link {
    padding-left: 30px;
    padding-right: 20px;
    position: relative;
}

.home-link::before {
    content: "";
    color: black;
    position: absolute;
    left: 0;
    top: 0;
    height: 50px;
    padding-left: 20px;
    margin-left: 10px;
    background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%221rem%22%20height%3D%221rem%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%20%20%3Cpath%20stroke%3D%22none%22%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%20/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M5%2012l-2%200l9%20-9l9%209l-2%200%22%20/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M5%2012v7a2%202%200%200%200%202%202h10a2%202%200%200%200%202%20-2v-7%22%20/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M9%2021v-6a2%202%200%200%201%202%20-2h2a2%202%200%200%201%202%202v6%22%20/%3E%0A%3C/svg%3E")no-repeat center center;
}

.home-link::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 1rem;
    height: 2rem;
    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3E%3Cpath%20d='M9%206l6%206l-6%206'/%3E%3C/svg%3E") no-repeat center left;
    background-size: contain;
    pointer-events: none;
}

.book-info {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.book-info h2 {
    text-align: center;
}

section {
    margin: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}

section[name="attachments"],
section[name="promotions"] {
    border-bottom: none;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

section[name="attachments"] {
    padding-top: .5rem;
    flex-direction: row;
    flex-wrap: wrap;
}

section[name="notice"] {
    padding-bottom: .5rem;
}

section[name="notice"] p {
    color: gray;
    padding: 0;
    margin: 0;
    font-size: small;
}

.badge {
    color: #06c;
    background: initial;
    text-shadow: none;
    padding: 0.1rem 0.5rem;
    text-align: left;
    font-size: medium;
    font-weight: normal;
    text-wrap: nowrap;
    line-height: 1rem;
    border-radius: 0;
    width: fit-content;
    min-width: 2rem;
    display: block;
    margin: 0;
    border-left: 3px solid #06c;
}

h3,
h4,
h5 {
    margin: 0.5rem 0;
}

.card {
    border-radius: 1rem;
    background-color: #fbfbfd;
    color: #5f6060;
    border: 1px solid #e2e5ea;
    user-select: none;
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
    text-wrap: wrap;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    text-decoration: none;
    position: relative;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3E%3Cpath%20d='M9%206l6%206l-6%206'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    background-size: 1rem 1rem;
}

.card:hover {
    background-color: #f4f7f9;
    border-bottom: 1px solid #c9ccd1;
}

.card:active {
    background-color: #f2f5f9;
    border-bottom: 1px solid #e2e5ea;
}

section[name="attachments"] a {
    flex: 0 1 100px;
    min-width: min-content;
    min-height: 90px;
    height: fit-content;
    text-wrap: wrap;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    border-radius: .6rem;
    background-image: repeating-linear-gradient(-45deg,
            #f5f5f5 0,
            #f5f5f5 2px,
            #F0F0F8 2px,
            #F0F0F8 4px);
    color: #5c5c5c;
    outline: 1px solid rgba(50, 100, 201, 0.5);
    -webkit-user-select: none;
    user-select: none;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    padding: .5rem;
    padding-top: 3.5rem;
    font-weight: bold;
    position: relative;
    transition: outline .1s ease;
}

section[name="attachments"] a:hover {
    background-image: none;
    background-color: #f4f7f9;
    outline: 2px solid rgba(50, 100, 201, 1);
}

section[name="attachments"] a:active {
    background-image: none;
    background-color: #f2f5f9;
    outline: 2px solid rgba(50, 100, 201, 1);
}

section[name="attachments"] a::before {
    content: "";
    position: absolute;
    top: .5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='120' viewBox='0 0 115 120'><path fill='%23fff' stroke='%23000' d='M12,9.829v99.344a2.828,2.828,0,0,0,2.821,2.834H99.18a2.821,2.821,0,0,0,2.82-2.828c0-11.518,0-56.036,0-99.356A2.827,2.827,0,0,0,99.169,7H14.827A2.832,2.832,0,0,0,12,9.829Z'/><path fill='%23a0a0a0' d='M35.632,34.865H78.368c3.089,0,3.094-4.8,0-4.8H35.632c-3.089,0-3.094,4.8,0,4.8Z'/><path fill='%23a0a0a0' d='M35.632,54.07H78.368c3.089,0,3.094-4.8,0-4.8H35.632c-3.089,0-3.094,4.8,0,4.8Z'/><path fill='%23a0a0a0' d='M35.632,73.276H78.368c3.089,0,3.094-4.8,0-4.8H35.632c-3.089,0-3.094,4.8,0,4.8Z'/></svg>") no-repeat center center;
    background-size: contain;
    pointer-events: none;
}