*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #eeeeee;
    color: #111;
    line-height: 1.7;
}

/* Sticky footer layout */
.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* text-section gets flex:1 in its own block below */

/* ===== NAV ===== */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 52px;
    border-bottom: 1px solid #222;
    background: #000;
}
.site-nav__logo {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #ccc;
    letter-spacing: .03em;
}
.site-nav__links {
    display: flex;
    gap: 20px;
    list-style: none;
}
.site-nav__links a {
    text-decoration: none;
    color: #999;
    font-size: 14px;
}
.site-nav__links a:hover { color: #eee; }

/* ===== PHOTO SECTION ===== */
.photo-section {
    background: #000;
    width: 100%;
}
.photo-section__inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    cursor: grab;
}
.carousel__track {
    display: flex;
    transition: transform .4s ease;
}
.carousel__slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 500px;
    padding: 48px 0;
}
.carousel__slide img {
    display: block;
    max-width: 100%;
    height: auto;
}
.carousel__caption {
    background: rgba(0,0,0,.6);
    color: #bbb;
    font-size: 12px;
    padding: 6px 12px;
    text-align: center;
    width: 100%;
    margin-top: 8px;
}

/* Dots */
.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    background: #000;
}
.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.carousel__dot.is-active { background: #fff; }

/* Arrows */
.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .2s;
    line-height: 1;
}
.carousel__arrow:hover { background: rgba(0,0,0,.75); }
.carousel__arrow--prev { left: 8px; }
.carousel__arrow--next { right: 8px; }

/* ===== TEXT SECTION ===== */
.text-section {
    background: #eeeeee;
    padding: 32px 16px 40px;
    flex: 1;
}
.text-section__inner {
    max-width: 900px;
    margin: 0 auto;
}
.post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #444;
}
.post-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}
.post-body {
    font-size: 15px;
    color: #111;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.8;
}

/* ===== LIKE BUTTON ===== */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    background: none;
    border: 1.5px solid #bbb;
    border-radius: 20px;
    padding: 6px 18px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: border-color .2s, color .2s;
}
.like-btn:hover { border-color: #e44; color: #e44; }
.like-btn.is-liked { border-color: #e44; color: #e44; }
.like-btn__icon { font-size: 16px; }

/* ===== POST NAV ===== */
.post-nav-wrap {
    background: #eeeeee;
}
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 16px;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #d8d8d8;
}
.post-nav__item {
    max-width: 48%;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.post-nav__item:hover { color: #111; }
.post-nav__item--next { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.post-nav__label { font-size: 11px; color: #999; display: block; }
.post-nav__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-nav__arrow { flex-shrink: 0; font-size: 18px; line-height: 1.6; }

/* ===== ARCHIVE ===== */
.archive {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}
.archive__title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.archive__list { list-style: none; }
.archive__item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #111;
}
.archive__item:hover .archive__post-title { text-decoration: underline; }
.archive__date { font-size: 13px; color: #888; flex-shrink: 0; }
.archive__post-title { font-size: 16px; }

/* ===== ARCHIVE PAGINATION ===== */
.arc-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
}
.arc-pager__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    transition: border-color .2s, color .2s, background .2s;
}
.arc-pager__btn:hover {
    border-color: #777;
    color: #111;
    background: #e4e4e4;
}
.arc-pager__btn--disabled {
    border-color: #e0e0e0;
    color: #ccc;
    cursor: default;
    pointer-events: none;
}
.arc-pager__arrow { font-size: 15px; line-height: 1; }
.arc-pager__page { font-size: 13px; color: #aaa; letter-spacing: .03em; }

/* ===== PROFILE ===== */
.profile-page {
    max-width: 900px;
    margin: 48px auto;
    padding: 0 16px;
}
.profile-page h1 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.profile-page p { font-size: 15px; color: #333; line-height: 1.8; }

/* ===== CONTACT ===== */
.contact-page {
    max-width: 600px;
    margin: 48px auto;
    padding: 0 16px;
}
.contact-page h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.contact-page p { font-size: 14px; color: #666; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #333; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #777;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.error-msg { color: #c00; font-size: 12px; margin-top: 4px; }
.btn-submit {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.btn-submit:hover { background: #333; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 16px;
    color: #888;
    font-size: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #888;
    background: #000;
    border-top: 1px solid #222;
    margin-top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .carousel__slide img { width: 100%; }
}
@media (max-width: 480px) {
    .site-nav { padding: 0 12px; }
    .post-title { font-size: 18px; }
    .post-nav__item { max-width: 46%; }
}
