body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f7f8;
    font-size: 16px;
}

h1 {
    background-color: #2e7d32;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
    margin-bottom: 30px;
}

h1:hover {
    background-color: #388e3c;
}

h2 {
    border-left: 6px solid #007ac0;
    padding: 5px 15px;
    background: #e1f5fe;
    border-radius: 0 4px 4px 0;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    border-left: 6px solid #007ac0;
    padding: 5px 15px;
    background: #f5f7f8;
    border-radius: 0 4px 4px 0;
    border-bottom: 0.5px solid #666;
    margin-top: 30px;
    margin-bottom: 15px;
}

a {
    color: #007ac0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.im {
    padding: 2px 5px;
    color: red;
    border: 1px solid red;
    border-radius: 3px;
    background-color: #fff5f5;
}

#record, .wiki {
    border-collapse: collapse;
}

td,
th {
    border: 1px solid #000000;
    text-align: center;
}

.b{
    font-weight: bold;
}

#addRec, #filterSpace, #sortSpace {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

#addRec label, #filterSpace label, #sortSpace label {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 20px;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 400px;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 10px;
}

input:focus, select:focus {
    border-color: #007ac0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,122,192,0.2);
}

#addRec_btn {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 12px;
    background-color: #007ac0;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #005687;
    transition: all 0.2s;
}

#addRec_btn:hover {
    background-color: #008be0;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #005687;
}

#addRec_btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

#addRec_btn:disabled, #addRec_btn:hover:disabled, #addRec_btn:active:disabled {
    background-color: #888;
    box-shadow: 0 4px 0 #666;
    transform: none;
}

#error {
    margin-top: 20px;
    padding: 12px 16px;
    background-color: #fff5f5;
    border: 2px solid #ff0000;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.6;

    box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
    
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

#newsSpace .news, #recSpace {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    min-height: 50px;
    border: 1px dotted #ccc;
}

#newsStatus, #recStatus {
    font-size: 0.9em;
    color: #666;
    margin-left: 10px;
}

iframe {
    background: white;
}

.p { margin-left: 1.5em; color: #555; }
.p2 { margin-left: 2.5em; color: #555; }
