* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
}

body {
    font-family: "LINE Seed JP";
    font-weight: 400;
    font-style: normal;
    font-display: block;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    color: #6C7B91;
    background: radial-gradient(#E6EFF6, #C9DCEA);
}

header {
    width: 100%;
    display: flex;
    text-align: left;
    background: radial-gradient(#D5E0E8, #E8F2F7);
    border: 2px solid #DEE9F3;
    box-shadow:
        -5px -5px 30px rgba(255, 255, 255, 0.8),
        5px 5px 50px rgba(0, 40, 100, 0.3);
}

header .logo {
    margin: 1%;
    width: 50%;
}

h1 {
    margin-top: 10px;
    margin-bottom: 0;
}

main {
    flex: 1;
    width: 80%;
    max-width: 650px;
}

.card {
    background: radial-gradient(#D5E0E8, #E8F2F7);
    border: 2px solid #DEE9F3;
    box-shadow:
        -5px -5px 30px rgba(255, 255, 255, 0.8),
        5px 5px 50px rgba(0, 40, 100, 0.3);
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem;
}

/* ==カレンダー共通== */

.today {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    z-index: 1;
}

.today::before {
    content: "";
    position: absolute;
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    background: radial-gradient(#ff6565, #ff7070);
    border: 1px solid #ff6565;
    z-index: -1;
}

.thisMonth {
    font-weight: bold;
    color: #ff6565 !important;
}

/* ==日表示== */
.timeTable-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
}

.timeTable-header {
    text-align: center;
    font-weight: bold;
    padding: 4px;
}

.timeTable-cell {
    aspect-ratio: 1 / 1;
    border: 2px solid #DEE9F3;
    box-shadow:
        -5px -5px 30px rgba(255, 255, 255, .8),
        5px 5px 50px rgba(0, 40, 100, .3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    transition: 0.1s 0.1s cubic-bezier(0, 0, 0, 1);
}

.timeTable-cell:hover {
    transform: scale(1.1);
}

.timeTable-className {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

.timeTable-cell,
.timeTable-className {
    margin-bottom: 8px;
}

.timeTable-cell,
.timeTable-header,
.timeTable-className {
    min-width: 0;
}

/* ==月表示== */

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.month-grid a {
    text-decoration: none;
}

.day-header {
    text-align: center;
    font-weight: bold;
    padding: 4px;
}

.cell {
    aspect-ratio: 1 / 1;
    border: 2px solid #DEE9F3;
    box-shadow:
        -5px -5px 30px rgba(255, 255, 255, .8),
        5px 5px 50px rgba(0, 40, 100, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    cursor: pointer;

    transition: 0.1s 0.1s cubic-bezier(0, 0, 0, 1);
}

.cell:hover {
    transform: scale(1.1);
}

.empty {
    visibility: hidden;
}

.events {
    font-size: 0.8rem;
    color: #6C7B91;
    margin-top: 4px;
}

/* ==年表示== */

.yearGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.yearGrid a {
    text-decoration: none;
}

.monthCard {
    padding: 4px;
    cursor: pointer;
    transition: 0.1s 0.1s cubic-bezier(0, 0, 0, 1);
}

.monthCard:hover {
    transform: scale(1.1);
}

.currentMonth {
    margin: 0px;
}

.monthGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, 1fr);
    gap: 2px;
    aspect-ratio: 1 / 1;
    border: 2px solid #DEE9F3;
    box-shadow:
        -5px -5px 30px rgba(255, 255, 255, .8),
        5px 5px 50px rgba(0, 40, 100, .3);
}

.weekHeader {
    text-align: center;
    padding: 2px;
}

.day {
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.empty {
    visibility: hidden;
}

/* ==modal== */

.modal-open-button {
    color: #6C7B91;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s, scale 0s 0.5s;
    opacity: 0;
    scale: 0;
}

.modal:target {
    transition: opacity 0.5s linear;
    opacity: 1;
    scale: 1;
}

.close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 25px;
    color: #6C7B91;
    text-decoration: none;
    cursor: pointer;
    transform: translate(50%, -50%);
}

.modal-wrapper {
    position: relative;
    max-width: 80vw;
    margin: auto;
    overflow: hidden;
    /* padding: 2vh 3vw; */
    border-radius: 15px;
    background: radial-gradient(#D5E0E8, #E8F2F7);
    border: 2px solid #DEE9F3;
    box-shadow:
        -5px -5px 30px rgba(255, 255, 255, 0.8),
        5px 5px 50px rgba(0, 40, 100, 0.3);
}

.modal-content {
    padding: 10px;
    width: 35vw;
    min-width: 600px;
}

/* ==form== */
form {
    width: 70%;
    margin: 0 auto;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 10px;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    display: flex;
    align-items: center;
    width: 500px;
}

.form-label label {
    width: 80px;
    font-weight: bold;
    margin: 5px;
}

.form-label span {
    margin: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #ff6565;
}

/* フォームパーツのデザイン */
input,
textarea {
    width: 100%;
    background-color: #f2f4f5;
    border: none;
    border-radius: 3px;
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    flex-grow: 1;
}

textarea {
    resize: none;
}

input::placeholder,
textarea::placeholder {
    color: #6C7B91;
    font-size: 14px;
}

select {
    background-color: #f2f4f5;
    border: none;
    border-radius: 3px;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
}



button {
    cursor: pointer;
    width: 10em;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-weight: bold;
    background-color: #6C7B91;
}

/* ==footer== */

a {
    color: #6C7B91;
}

footer {
    font-size: 0.9em;
    margin-bottom: 0;
    padding: 10px 0;
}

footer p {
    margin: 0;
}

footer a {
    margin: 0 2.5%;
}

.img-404 {
    margin-top: 10%;
    width: 50vw;
    max-width: 200px;
}

.img-notfound {
    margin: 2%;
    width: 80vw;
    max-width: 400px;
}


/* ©2026 tarutarusosu029 */