/* =========================================================
   GEO REALTY NEWS
========================================================= */


/* ---------------------------------------------------------
   公開側 NEWS & TOPICS
--------------------------------------------------------- */

.geo-news-public {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.geo-news-item {
    margin-bottom: 28px;
}

.geo-news-item:last-child {
    margin-bottom: 0;
}

.geo-news-public-date {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 2px;
}

.geo-news-square {
    font-size: 10px;
    margin-right: 6px;
    vertical-align: 2px;
}

.geo-news-public-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.geo-news-public-title a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
}

.geo-news-public-title a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 767px) {

    .geo-news-public {
        font-size: 15px;
    }

    .geo-news-public-date,
    .geo-news-public-title {
        font-size: 15px;
    }

    .geo-news-item {
        margin-bottom: 24px;
    }
}

/* ---------------------------------------------------------
   管理画面
--------------------------------------------------------- */

.geo-news-admin {
    max-width: 1100px;
    margin: 40px auto;
    padding: 36px;
    background: #fff;
    color: #222;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.geo-news-admin *,
.geo-news-admin *::before,
.geo-news-admin *::after {
    box-sizing: border-box;
}

.geo-news-admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.geo-news-brand {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #1479ad;
    margin-bottom: 7px;
}

.geo-news-brand span {
    margin-left: 8px;
    font-weight: 400;
    color: #777;
}

.geo-news-admin h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   フォーム
--------------------------------------------------------- */

.geo-news-form {
    display: grid;
    gap: 25px;
}

.geo-news-field {
    display: grid;
    gap: 8px;
}

.geo-news-field label {
    font-weight: 700;
}

.geo-news-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #cdd4da;
    border-radius: 5px;
    background: #fff;
    font-size: 16px;
}

.geo-news-field input:focus {
    outline: none;
    border-color: #238ac0;
    box-shadow: 0 0 0 2px rgba(35, 138, 192, 0.15);
}

.geo-news-field .description {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.geo-news-field .required {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 6px;
    background: #d84040;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
}


/* ---------------------------------------------------------
   ボタン
--------------------------------------------------------- */

.geo-news-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
}

.geo-news-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 18px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
}

.geo-news-button-primary {
    background: #168bc1;
    color: #fff !important;
}

.geo-news-button-primary:hover {
    background: #0875a8;
}

.geo-news-button-light {
    background: #eef1f3;
    color: #333 !important;
}

.geo-news-button-light:hover {
    background: #e1e5e8;
}


/* ---------------------------------------------------------
   メッセージ
--------------------------------------------------------- */

.geo-news-message {
    padding: 14px 16px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.geo-news-message.success {
    background: #eaf7ec;
    color: #266b30;
}

.geo-news-message.error {
    background: #fff0f0;
    color: #a32b2b;
}


/* ---------------------------------------------------------
   管理一覧
--------------------------------------------------------- */

.geo-news-table-wrap {
    overflow-x: auto;
}

.geo-news-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.geo-news-table th,
.geo-news-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e4e7ea;
    text-align: left;
    vertical-align: middle;
}

.geo-news-table th {
    background: #f6f7f8;
    font-size: 13px;
    white-space: nowrap;
}

.geo-news-date-cell {
    white-space: nowrap;
}

.geo-news-row-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.geo-news-row-actions form {
    margin: 0;
}

.geo-news-edit {
    color: #1479ad;
    text-decoration: none;
    font-weight: 700;
}

.geo-news-delete {
    padding: 0;
    border: 0;
    background: transparent;
    color: #c53b3b;
    cursor: pointer;
    font-weight: 700;
}

.geo-news-muted {
    color: #999;
}

.geo-news-empty {
    padding: 30px;
    background: #f7f8f9;
    text-align: center;
    border-radius: 5px;
}


/* ---------------------------------------------------------
   ページ送り
--------------------------------------------------------- */

.geo-news-pagination {
    margin-top: 25px;
    display: flex;
    gap: 5px;
}

.geo-news-pagination .page-numbers {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.geo-news-pagination .current {
    background: #168bc1;
    border-color: #168bc1;
    color: #fff;
}


/* ---------------------------------------------------------
   ログイン
--------------------------------------------------------- */

.geo-news-login {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
}


/* ---------------------------------------------------------
   スマホ
--------------------------------------------------------- */

@media screen and (max-width: 767px) {

    .geo-news-public {
        font-size: 16px;
    }

    .geo-news-item {
        margin-bottom: 25px;
    }

    .geo-news-admin {
        margin: 20px auto;
        padding: 20px;
    }

    .geo-news-admin-header {
        display: grid;
    }

    .geo-news-admin h1 {
        font-size: 23px;
    }

    .geo-news-actions {
        display: grid;
    }

    .geo-news-button {
        width: 100%;
    }

    .geo-news-table th,
    .geo-news-table td {
        padding: 11px 9px;
        font-size: 13px;
    }
}