/* ==============================
   ホーム画面
============================== */

.home-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ホーム内の大きな区画 */
.home-section {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.home-section__title {
    margin: 0;
    font-size: 18px;
}


/* ==============================
   ホーム上部：プロフィールカード
============================== */

.home-profile-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border: 2px solid #222;
    border-radius: 6px;
    background: #fff;
}

.home-profile-card__icon-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-profile-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    background: #f0f0f0;
}

.home-profile-card__body {
    min-width: 0;
}

.home-profile-card__name {
    margin: 0;
    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Times New Roman",
        serif;
    font-size: 26px;
    line-height: 1.15;
}

.home-profile-card__name a {
    color: #000;
    text-decoration: none;
}

.home-profile-card__name a:hover {
    text-decoration: underline;
}

.home-profile-card__divider {
    margin: 8px 0 10px;
    border-top: 2px solid #333;
}


.home-profile-card__resource-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.home-profile-card__resource-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid #999;
    border-radius: 999px;
    background: #f7f7f7;
    font-weight: bold;
}

.home-profile-card__resource-label {
    color: #555;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.home-profile-card__resource-value {
    color: #111;
    font-size: 16px;
}

.home-profile-card__short-profile {
    margin: 0;
    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Times New Roman",
        serif;
    font-size: 17px;
    font-weight: bold;
}

/* スマホ暫定 */
@media (max-width: 700px) {
    .home-profile-card {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .home-profile-card__icon {
        width: 60px;
        height: 60px;
    }

    .home-profile-card__name {
        font-size: 20px;
    }

    .home-profile-card__divider {
        margin: 6px 0 8px;
    }


    .home-profile-card__short-profile {
        font-size: 14px;
    }
}


/* ==============================
   ホーム中部：現在地
============================== */

.home-location {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
}

.home-location__name {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: bold;
}

.home-location__description {
    margin: 0;
    color: #444;
}

.home-location__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* ==============================
   ホーム下部：チャット
============================== */

.home-chat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.chat-tabs a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fafafa;
    color: #222;
}

.chat-tabs a:hover {
    background: #eee;
    text-decoration: none;
}

.chat-tabs .is-active {
    border-color: #333;
    background: #333;
    color: #fff;
}

.chat-form-box {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.chat-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 既存の公開発言カードを少し整える */
.public-post {
    position: relative;
}

.public-post img {
    display: block;
    margin: 8px 0;
    border-radius: 6px;
    object-fit: cover;
}


/* ==============================
   ホーム画面スマホ暫定
============================== */

@media (max-width: 700px) {
    .home-character {
        grid-template-columns: 1fr;
    }

    .home-location {
        grid-template-columns: 1fr;
    }

    .home-location__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}


/* ==============================
   ホーム中部：現在地カード
============================== */

.home-location-card {
    position: relative;
    min-height: 200px;
    border: 2px solid #111;
    border-radius: 6px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 背景画像の上に文字を置くための層 */
.home-location-card__overlay {
    position: relative;
    min-height: 200px;
    padding: 12px;
}

/* 現在地名 */
.home-location-card__title {
    color: #fff;
    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Times New Roman",
        serif;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow:
        2px 2px 0 #000,
        -2px 2px 0 #000,
        2px -2px 0 #000,
        -2px -2px 0 #000,
        0 2px 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        -2px 0 0 #000;
}

/* エリア説明 */
.home-location-card__description {
    position: absolute;
    left: 12px;
    bottom: 14px;
    color: #fff;
    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Times New Roman",
        serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    text-shadow:
        2px 2px 0 #000,
        -2px 2px 0 #000,
        2px -2px 0 #000,
        -2px -2px 0 #000,
        0 2px 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        -2px 0 0 #000;
}

/* 管理ページへのリンク */
.home-location-card__actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

.home-location-card__link {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.home-location-card__link:hover {
    background: rgba(0, 0, 0, 0.65);
    text-decoration: none;
}

/* スマホ暫定 */
@media (max-width: 700px) {
    .home-location-card {
        min-height: 160px;
    }

    .home-location-card__overlay {
        min-height: 160px;
    }

    .home-location-card__title {
        font-size: 22px;
    }

    .home-location-card__description {
        right: 12px;
        bottom: 44px;
        font-size: 15px;
    }

    .home-location-card__actions {
        left: 12px;
        right: auto;
    }
}


/* ==============================
   ホーム中部：探索結果
============================== */

.home-explore-result-card {
    padding: 14px 16px;
    border: 2px solid #222;
    border-radius: 6px;
    background: #fff;
}

.home-explore-result-card__body {
    line-height: 1.7;
    white-space: normal;
}

.home-explore-result-card--once {
    border-color: #d8a94b;
    background: #fff7d6;
}

.home-location-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.home-location-card__explore-form {
    margin: 0;
}

.home-location-card__explore-button {
    cursor: pointer;
    font-family: inherit;
}

.home-location-card__explore-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* ==============================
   探索結果一覧ページ
============================== */

.exploration-log-page {
    max-width: 860px;
    margin: 0 auto;
}

.exploration-log-page__header {
    margin-bottom: 18px;
}

.exploration-log-page__title {
    margin: 0 0 8px;
}

.exploration-log-page__lead {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.exploration-log-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.exploration-log-card {
    padding: 14px 16px;
    border: 2px solid #222;
    border-radius: 6px;
    background: #fff;
}

.exploration-log-card--once {
    border-color: #d8a94b;
    background: #fff7d6;
}

.exploration-log-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    font-size: 14px;
}

.exploration-log-card__place {
    font-weight: 700;
}

.exploration-log-card__date {
    color: #666;
}

.exploration-log-card__body {
    line-height: 1.7;
}

.exploration-log-empty {
    padding: 18px 20px;
    border: 2px solid #222;
    border-radius: 6px;
    background: #fff;
    color: #555;
}

.exploration-log-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.exploration-log-pagination a {
    padding: 6px 12px;
    border: 1px solid #222;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
}


.exploration-log-card__type,
.exploration-log-card__chat-output {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(92, 78, 65, 0.11);
    color: #5b4d42;
    font-size: 0.82rem;
    font-weight: 700;
}

.exploration-log-card__chat-output {
    background: rgba(92, 78, 65, 0.07);
    color: #756a60;
    font-weight: 600;
}
