html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #444;
}

* {
    box-sizing: border-box;
}

.visible {
    display: block !important;
}

.hidden {
    display: none !important;
}

#og rect {
    transform-origin: bottom center;
    pointer-events: none;
}
#op {
    transform-origin: center;
    pointer-events: none;
}
#cp {
    transform-origin: 50% 41%;
    pointer-events: none;
}

@keyframes op {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

@keyframes scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes tada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* シュッと消える(一旦少し大きくなって、0まで縮小する) */
@keyframes fadeOut-shu {
    0% { transform: scale(1); }
    20% { transform: scale(1.2);}
    100% { transform: scale(0);}
}

@keyframes fadeOut-og {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(50%) scale(0);
        opacity: 0;
    }
}

/* 透明になってフェードイン/アウト */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


@keyframes appear {
    0% {
        transform: translateY(-30%) scaleY(0);
        opacity: 0;
    }
    70% {
        transform: translateY(5%) scaleY(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

@keyframes disappear {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
    30% {
        transform: translateY(5%) scaleY(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(-30%) scaleY(0);
        opacity: 0;
    }
}

.flex {
    display: flex;
}

.button {
    display: block;
    margin: 10px 0;
    min-width: 200px;
    width: fit-content;
    text-align: center;
    padding: 5px 10px;
    background-color: #74ae29;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    corner-shape: superellipse(1.7);
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
}

@media screen and (max-width: 767px) {
    .button {
        margin: 10px auto;
    }
}

.button:hover {
    background-color: #8cc63f;
}

a {
    color: #74ae29;
    transition: .2s;
}

a:hover {
    color: #8cc63f;
}

nav.breadcrumb {
    margin: 10px 0;
    font-size: 14px;
}

nav.breadcrumb ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav.breadcrumb li {
    position: relative;
    display: flex;
    margin-right: 30px;
}

nav.breadcrumb li:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0.5em;
    left: -20px;
    width: 6px;
    height: 6px;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    display: inline-block;
    transform: rotate(-45deg);
}

h1 {
    font-size: 30px;
    margin: 10px 0;
    position: relative;
    padding-left: 25px;
    border-bottom: 3px solid #8cc63f;
}

h1::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    background-image: url('../images/logo.webp');
    background-size: cover;
    filter: opacity(0.3);
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    z-index: -1;
}

main h2, main h3, main h4 {
    margin: 30px 0 20px;
    padding: 5px 10px;
    border-left: 7px solid #8cc63f;
    background-color: #f4f4f4;
    border-radius: 0 99px 99px 0;
}

.content-date {
    text-align: right;
    font-size: 14px;
    color: #888;
    margin-right: 10px;
}

.card {
    border: 2px solid #8cc63f;
    border-radius: 10px;
    padding: 10px 15px;
    padding-left: 60px;
    margin: 10px 0;
    background-color: #e5f5d0;
    position: relative;
}

.card::before {
    content: '';
    display: block;
    background-color: #8cc63f;
    background-image: url('../images/clover.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    width: 50px;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    border-radius: 5px 0 0 5px;
}

.card.error {
    border-color: #ff4b00;
    background-color: #ffe5d0;
}

.card.error::before {
    background-color: #ff4b00;
    background-image: url('../images/x.png');
}

.card.warning {
    border-color: #f6aa00;
    background-color: #fff5d0;
}

.card.warning::before {
    background-color: #f6aa00;
    background-image: url('../images/warning2.png');
}

.card.info {
    border-color: #005aff;
    background-color: #e5f5ff;
}

.card.info::before {
    background-color: #005aff;
    background-image: url('../images/i.png');
}

.spacer {
    height: 10px;
}

.highlight {
    position: relative;
}

.highlight::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 0.5em;
    background-color: #b9e184;
    opacity: 0.7;
    z-index: -1;
}

.highlight.red::before {
    background-color: #ffb3b3;
}
.highlight.yellow::before {
    background-color: #fff5b3;
}
.highlight.blue::before {
    background-color: #b3d9ff;
}

.table-container {
    width: 100%;
    overflow: auto;
    margin: 10px 0;
}

.table-container.limited {
    max-height: 80vh;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    position: relative;
}

thead {
    position: sticky;
    top: 0;
    background-color: #f4f4f4;
    font-weight: bold;
    border-bottom: 2px solid #8cc63f;
}

table th, table td {
    padding: 8px;
    text-align: left;
    min-width: 30px;
    white-space: nowrap;
    border-bottom: 1px solid #ccc;
}

.table-caption {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    width: fit-content;
    padding-right: 20px;
    animation: table-caption 3s infinite;
    position: relative;
}

.table-caption::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    border-bottom: 1px solid #aaa;
    display: inline-block;
}
.table-caption::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    display: inline-block;
    transform: translateY(-50%) rotate(-45deg);
}

@keyframes table-caption {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.caption {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.sticky {
    position: sticky;
    top: 100px;
}

#gototop {
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    border: 1px solid #8cc63f;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 0.3s forwards;
    z-index: 1;
}

#gototop span {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 12px;
    color: #666;
    opacity: 0;
}
#gototop:hover span {
    animation: top-text 2s infinite;
}

.top-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 30px;
    border-right: 2px solid #8cc63f;
}
.top-arrow::before {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    left: calc(50% + 1px);
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 20px;
    height: 20px;
    border-right: 2px solid #8cc63f;
    border-top: 2px solid #8cc63f;
}
#gototop:hover .top-arrow {
    animation: top-arrow 1s infinite;
    animation-delay: -.3s;
}

@keyframes top-text {
    0% { transform: translate(-50%, 150%) scale(1); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    60%, 90% { transform: translate(-50%, -250%) scale(1); opacity: 0; }
    100% { transform: translate(-50%, 150%) scale(1); opacity: 0; }
}

@keyframes top-arrow {
    0% { transform: translate(-50%, -50%) translateY(150%); }
    100% { transform: translate(-50%, -50%) translateY(-150%); }
}

.image {
    display: block;
    margin: 10px auto;
    max-width: 60%;
    height: auto;
}

.image-large {
    display: block;
    margin: 10px auto;
    max-width: 100%;
    height: auto;
}

.image-medium {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    height: auto;
}

.image-small {
    display: block;
    margin: 10px auto;
    max-width: 40%;
    height: auto;
}