html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Hannotate SC', 'BIZ UDPGothic', 'Yu Gothic', 'Meiryo', sans-serif; 
    color: #4A4A4A;
    background-color: #FDF9F3;
    line-height: 1.7;
    letter-spacing: 0.03em;
}
 
#container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
 
#sidebar {
    width: 40vw;
    flex-shrink: 0;
    background-color: #EDEBE0;
    padding: 35px;
    overflow-y: auto;
    border-right: 5px solid #C2B280;
    box-shadow: 6px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}
 
#sidebar::before, #sidebar::after {
    content: '';
    position: absolute;
    background-color: #D4CDAE;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.7;
}
 
#sidebar::before {
    top: 15px;
    left: 15px;
}
 
#sidebar::after {
    bottom: 15px;
    right: 15px;
}
 
#sidebar h2 {
    margin-top: 0;
    margin-bottom: 40px;
    color: #5A6F4E;
    font-size: 2.5em;
    border-bottom: 4px dashed #8F9E7D; 
    padding-bottom: 15px;
    text-align: center;
    letter-spacing: 0.08em; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
 
#comments-list {
    flex-grow: 1;
    margin-top: 25px;
    padding-right: 10px;
}
 
#map {
    flex-grow: 1;
    height: 100vh;
    z-index: 0;
    background-color: #E0E0E0;
    border-left: 1px solid #ddd;
}
 
.history-entry {
    background-color: #FCFCF5;
    border: 3px solid #D4CDAE;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    position: relative;
    transform: rotate(calc(var(--rotation) * 1deg));
    --rotation: 0;
}
 
.history-entry:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px) scale(1.01) rotate(0deg);
}
 
.history-entry p {
    margin: 10px 0;
    font-size: 1.15em;
    color: #555555;
    line-height: 1.7;
}
 
.history-entry p strong {
    color: #6B8E23;
    font-weight: bold;
    border-bottom: 1px dotted #A0C080;
    padding-bottom: 2px;
}
 
.comment-text[contenteditable="true"] {
    border: 2px dashed #B8D8BA;
    border-radius: 8px;
    padding: 12px;
    background-color: #FDFDF8;
    display: block;
    width: calc(100% - 24px);
    box-sizing: border-box;
    font-size: 1.1em;
    line-height: 1.6;
    min-height: 100px;
    overflow: auto;
    word-wrap: break-word;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.05);
}
 
.comment-text[contenteditable="true"]:focus {
    outline: 4px solid #82B366;
    border-color: #82B366;
    box-shadow: 0 0 8px rgba(130, 179, 102, 0.5);
}
 
.history-entry button {
    background-color: #A0522D;
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    position: absolute;
    top: 18px;
    right: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    font-weight: bold;
}
 
.history-entry:hover button {
    opacity: 1;
    visibility: visible;
    transform: scale(1.05);
}
 
.history-entry button:hover {
    background-color: #8B4513;
    transform: scale(1.1) rotate(2deg);
}
 
.leaflet-popup-content-wrapper {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    padding: 0;
    border: 2px solid #D4CDAE;
}
 
.leaflet-popup-content {
    margin: 25px 30px;
    width: 400px !important;
    max-width: none !important;
    font-size: 1.15em;
    color: #444444;
    line-height: 1.6;
}
 
.leaflet-popup-content p {
    margin-top: 0;
    margin-bottom: 15px;
}
 
.leaflet-popup-content p:last-child {
    margin-bottom: 0;
}
 
.leaflet-popup-content textarea,
.comment-input {
    width: calc(100% - 20px);
    height: 140px;
    font-size: 1.1rem;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 2px solid #B0C4DE;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
 
.leaflet-popup-content textarea:focus,
.comment-input:focus {
    border-color: #7DB9E8;
    outline: none;
    box-shadow: 0 0 10px rgba(125, 185, 232, 0.6);
}
 
.leaflet-popup-content button {
    margin-top: 25px;
    width: 100%;
    padding: 18px;
    font-size: 1.25rem;
    background-color: #82B366;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: bold;
}
 
.leaflet-popup-content button:hover {
    background-color: #6A995C;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
 
.leaflet-popup-tip {
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border: 2px solid #D4CDAE;
}
