body {
    margin: 0;
    font-family: "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", sans-serif;
    color: #2d2d2d;
    background: #f1ede4;
}

body.drawer-open {
    overflow: hidden;
}

a {
    color: #6b1d14;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px;
}

.panel {
    background: #fff;
    border: 1px solid #ddd8cf;
    border-radius: 2px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: none;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.drawer-button,
.drawer-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: #1f4b5f;
}

.hamburger {
    display: inline-flex;
    width: 22px;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #1f4b5f;
    border-radius: 1px;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 40;
}

.month-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid #ddd8cf;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 50;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.month-drawer.is-open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid #ece7de;
    font-weight: 700;
}

.drawer-body {
    flex: 1;
}

.drawer-footer {
    padding: 20px 18px 24px;
    border-top: 1px solid #ece7de;
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f4b5f;
    font-weight: 700;
}

.drawer-link:hover {
    text-decoration: none;
}

.drawer-link-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: #1f4b5f;
}

.drawer-link-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.drawer-link--settings {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #ece7de;
}

.month-nav-list {
    padding: 16px 18px 24px;
}

.month-nav-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0ece5;
}

.month-year-group {
    border-bottom: 1px solid #ece7de;
}

.month-year-group summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    padding: 10px 0;
}

.month-year-group summary::-webkit-details-marker {
    display: none;
}

.month-year-items {
    padding-bottom: 8px;
}

.archive-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.month-pager {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.day-section {
    padding-top: 14px;
}

.day-header h2 {
    margin: 0 0 14px;
    font-size: 1.4rem;
}

.day-heading-link {
    color: inherit;
}

.day-heading-link:hover {
    text-decoration: underline;
}


.day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

.day-photo-card {
    text-align: center;
}

.photo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    min-height: 28px;
}

.photo-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.photo-card-meta--left {
    justify-content: flex-start;
    margin-right: auto;
}

.photo-card-meta--right {
    justify-content: flex-end;
    margin-left: auto;
}

.like-form {
    margin: 0;
}

.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a8174;
    cursor: pointer;
}

.like-button svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
}

.like-button.is-liked {
    color: #8e2b2b;
}

.like-button.is-liked svg {
    fill: currentColor;
    stroke: currentColor;
}

.like-count {
    font-size: 0.83rem;
    color: #7a5242;
    min-width: 1ch;
    text-align: left;
}

.comment-count-link {
    color: #6a6258;
    font-size: 0.83rem;
}

.comment-count-link:hover {
    text-decoration: none;
}

.comment-count-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comment-count-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.comment-count {
    min-width: 1ch;
    text-align: right;
}

.month-nav-list {
    padding: 16px 18px 24px;
}

.month-nav-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0ece5;
}

.month-year-group {
    border-bottom: 1px solid #ece7de;
}

.month-year-group summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    padding: 10px 0;
}

.month-year-group summary::-webkit-details-marker {
    display: none;
}

.month-year-items {
    padding-bottom: 8px;
}

.archive-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.month-pager {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.day-section {
    padding-top: 14px;
}

.day-header h2 {
    margin: 0 0 14px;
    font-size: 1.4rem;
}

.day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

.day-photo-card {
    text-align: center;
}

.photo-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    min-height: 28px;
}

.like-form {
    margin: 0;
}

.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a8174;
    cursor: pointer;
}

.like-button svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
}

.like-button.is-liked {
    color: #8e2b2b;
}

.like-button.is-liked svg {
    fill: currentColor;
    stroke: currentColor;
}

.like-count {
    font-size: 0.83rem;
    color: #7a5242;
    min-width: 1ch;
    text-align: left;
}

.day-photo-link img,
.photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    background: #ddd;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.meta {
    color: #666;
    font-size: 0.92rem;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.filters label,
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.filters input,
.filters select,
.comment-form input,
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cfc7bb;
    border-radius: 2px;
    background: #fcfaf4;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 2px;
    padding: 10px 16px;
    background: #2a4a55;
    color: #fff;
    cursor: pointer;
}

.btn.secondary {
    background: #785c3b;
}

.day-comments {
    margin-top: 18px;
}

.day-comments details {
    border-top: 1px solid #ece7de;
    padding-top: 12px;
}

.day-comments summary {
    cursor: pointer;
    font-size: 0.95rem;
    color: #444;
}

.day-comments-body {
    margin-top: 12px;
}

.comment-row {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-grow {
    min-width: 0;
}

.comment-list {
    margin-top: 14px;
}

.comment {
    padding: 10px 0;
    border-top: 1px solid #ece7de;
}

.comment:first-child {
    border-top: 0;
}

.comment-head {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 4px;
}

#map {
    width: 100%;
    min-height: 70vh;
    border-radius: 2px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        flex-direction: row;
    }

    .archive-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .comment-row {
        grid-template-columns: 1fr;
    }
}

.map-status {
    margin-bottom: 12px;
    color: #5a554d;
    font-size: 0.95rem;
}

.map-date-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.map-date-chip {
    border: 1px solid #c8bcaa;
    background: #fcfaf4;
    color: #4f4a42;
    padding: 8px 12px;
    border-radius: 2px;
    cursor: pointer;
}

.map-date-chip.is-active {
    background: #2a4a55;
    border-color: #2a4a55;
    color: #fff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #c8bcaa;
    background: #fcfaf4;
    color: #4f4a42;
    border-radius: 2px;
    font-size: 0.9rem;
}


.photo-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-top: 8px;
    text-align: left;
}

.photo-card-tags--archive {
    justify-content: flex-start;
}

.tag-chip--small {
    padding: 3px 8px;
    font-size: 0.74rem;
}




.photo-stage {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}

.photo-stage-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.photo-stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.48);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s ease;
}

.photo-stage-nav:hover {
    background: rgba(20, 20, 20, 0.68);
    text-decoration: none;
}

.photo-stage-nav--prev {
    left: 12px;
}

.photo-stage-nav--next {
    right: 12px;
}


.map-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.map-tag-chip,
.map-date-chip {
    border: 1px solid #cfc6b8;
    background: #fcfaf4;
    color: #4f4a42;
    padding: 6px 10px;
    border-radius: 2px;
    cursor: pointer;
    font: inherit;
}

.map-tag-chip.is-active,
.map-date-chip.is-active {
    background: #eadfce;
    border-color: #b89e7a;
    color: #3e3227;
}


.map-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.map-mode-indicator {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #c8bcaa;
    background: #fcfaf4;
    color: #4f4a42;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 2px;
}

.map-mode-indicator.is-pan {
    background: #f3efe6;
    color: #4f4a42;
}

.map-mode-indicator.is-select {
    background: #2a4a55;
    border-color: #2a4a55;
    color: #fff;
}

.gm-style button,
.gm-style .gm-control-active {
    min-height: 40px;
}

.gm-style .gmnoprint button,
.gm-style .gm-control-active,
.gm-style .gm-fullscreen-control {
    min-width: 40px;
}


.gm-style .gmnoprint button,
.gm-style .gm-control-active,
.gm-style .gm-fullscreen-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.gm-style .gmnoprint button > span,
.gm-style .gm-control-active > span,
.gm-style .gm-fullscreen-control > span,
.gm-style .gmnoprint button img,
.gm-style .gm-control-active img,
.gm-style .gm-fullscreen-control img {
    margin: 0 auto !important;
}
