/* ============================================================
   The HONGO residence - 住戸一覧・詳細ページ用CSS
   ファイル配置: SWELL CHILD テーマ内 /css/rooms.css
   ============================================================ */

:root {
    --hongo-navy:   #1a2744;
    --hongo-navy-l: #2c3e5a;
    --hongo-bg:     #fafaf8;
    --hongo-white:  #ffffff;
    --hongo-text:   #333333;
    --hongo-sub:    #777777;
    --hongo-border: #e0ddd8;
    --hongo-accent: #b08d57;
    --hongo-green:  #2d7a4f;
    --hongo-orange: #c67a3c;
}


/* ------------------------------------------------------------
   ページヘッダー
   ------------------------------------------------------------ */

.hongo-rooms-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.hongo-rooms-title {
    font-family: "游明朝", "Yu Mincho", "Hiragino Mincho Pro", serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--hongo-navy);
    margin: 0 0 1rem;
    letter-spacing: 0.1em;
}

.hongo-rooms-lead {
    font-size: 0.9rem;
    color: var(--hongo-sub);
    line-height: 1.8;
}


/* ------------------------------------------------------------
   フィルター
   ------------------------------------------------------------ */

.hongo-filter {
    background: var(--hongo-bg);
    border: 1px solid var(--hongo-border);
    padding: 1.2rem 1.5rem;
    margin: 0 0 2rem;
}

.hongo-filter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.hongo-filter__group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 140px;
}

.hongo-filter__label {
    font-size: 0.75rem;
    color: var(--hongo-sub);
    letter-spacing: 0.05em;
}

.hongo-filter__select {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--hongo-border);
    background: var(--hongo-white);
    font-size: 0.9rem;
    color: var(--hongo-text);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2rem;
}

.hongo-filter__reset {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--hongo-border);
    color: var(--hongo-sub);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.hongo-filter__reset:hover {
    color: var(--hongo-text);
    border-color: var(--hongo-text);
}

.hongo-filter__count {
    margin: 0.8rem 0 0;
    font-size: 0.8rem;
    color: var(--hongo-sub);
}


/* ------------------------------------------------------------
   住戸カード（一覧）
   ------------------------------------------------------------ */

.hongo-rooms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 0 0 3rem;
}

.hongo-room-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hongo-border);
    background: var(--hongo-white);
    text-decoration: none;
    color: var(--hongo-text);
    transition: box-shadow 0.2s;
}

.hongo-room-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hongo-room-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hongo-bg);
}

.hongo-room-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.hongo-room-card__noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--hongo-sub);
    text-align: center;
    line-height: 1.6;
    background: var(--hongo-bg);
}

.hongo-room-card__noimage--large {
    aspect-ratio: 4 / 3;
    font-size: 1rem;
}

.hongo-room-card__body {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hongo-room-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hongo-room-card__number {
    font-family: "游明朝", "Yu Mincho", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hongo-navy);
}

.hongo-room-card__status {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.05em;
}

.hongo-status--available {
    background: var(--hongo-navy);
    color: var(--hongo-white);
}

.hongo-status--applied {
    background: var(--hongo-orange);
    color: var(--hongo-white);
}

.hongo-room-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--hongo-sub);
}

.hongo-room-card__specs span::after {
    content: "｜";
    margin-left: 0.5rem;
    color: var(--hongo-border);
}

.hongo-room-card__specs span:last-child::after {
    content: "";
}

.hongo-room-card__price {
    padding-top: 0.3rem;
    border-top: 1px solid var(--hongo-border);
}

.hongo-room-card__rent {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hongo-navy);
}

.hongo-room-card__rent small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--hongo-sub);
}

.hongo-room-card__mgmt {
    font-size: 0.8rem;
    color: var(--hongo-sub);
    margin-left: 0.3rem;
}

.hongo-room-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.hongo-room-card__tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: var(--hongo-bg);
    border: 1px solid var(--hongo-border);
    color: var(--hongo-sub);
}


/* ------------------------------------------------------------
   住戸がない場合
   ------------------------------------------------------------ */

.hongo-rooms-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hongo-sub);
    line-height: 2;
}


/* ------------------------------------------------------------
   CTA（一覧ページ末尾）
   ------------------------------------------------------------ */

.hongo-rooms-cta {
    text-align: center;
    padding: 2rem 1rem 3rem;
    border-top: 1px solid var(--hongo-border);
    margin-top: 2rem;
}

.hongo-rooms-cta p {
    font-size: 0.9rem;
    color: var(--hongo-sub);
    line-height: 1.8;
    margin: 0 0 1.5rem;
}

.hongo-rooms-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ------------------------------------------------------------
   ボタン共通
   ------------------------------------------------------------ */

.hongo-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: all 0.2s;
    text-align: center;
}

.hongo-btn--primary {
    background: var(--hongo-navy);
    color: var(--hongo-white);
    border: 1px solid var(--hongo-navy);
}

.hongo-btn--primary:hover {
    background: var(--hongo-navy-l);
}

.hongo-btn--secondary {
    background: var(--hongo-white);
    color: var(--hongo-navy);
    border: 1px solid var(--hongo-navy);
}

.hongo-btn--secondary:hover {
    background: var(--hongo-bg);
}

.hongo-btn--full {
    display: block;
    width: 100%;
}


/* ------------------------------------------------------------
   住戸詳細ページ
   ------------------------------------------------------------ */

.hongo-breadcrumb {
    font-size: 0.8rem;
    color: var(--hongo-sub);
    padding: 1rem 0;
}

.hongo-breadcrumb a {
    color: var(--hongo-sub);
    text-decoration: none;
}

.hongo-breadcrumb a:hover {
    color: var(--hongo-navy);
}

.hongo-room-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0 2rem;
    border-bottom: 2px solid var(--hongo-navy);
    margin-bottom: 2rem;
}

.hongo-room-header__number {
    font-family: "游明朝", "Yu Mincho", serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--hongo-navy);
    margin: 0;
    letter-spacing: 0.05em;
}

.hongo-room-header__number small {
    font-size: 1rem;
    margin-left: 0.2rem;
}

.hongo-room-header__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hongo-room-header__rent {
    font-family: "游明朝", "Yu Mincho", serif;
    font-size: 1.3rem;
    color: var(--hongo-navy);
}

.hongo-room-header__mgmt {
    font-size: 0.85rem;
    color: var(--hongo-sub);
}

.hongo-room-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.hongo-room-detail__floorplan img {
    width: 100%;
    height: auto;
}

.hongo-room-detail__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hongo-room-detail__gallery-item img {
    width: 100%;
    height: auto;
}

.hongo-room-table {
    width: 100%;
    border-collapse: collapse;
}

.hongo-room-table th,
.hongo-room-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--hongo-border);
    font-size: 0.9rem;
    vertical-align: top;
}

.hongo-room-table th {
    width: 35%;
    font-weight: 400;
    color: var(--hongo-sub);
    background: var(--hongo-bg);
}

.hongo-room-table td {
    color: var(--hongo-text);
}

.hongo-room-detail__cta {
    margin-top: 2rem;
}

.hongo-room-back {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--hongo-border);
}

.hongo-room-back a {
    font-size: 0.9rem;
    color: var(--hongo-sub);
    text-decoration: none;
}

.hongo-room-back a:hover {
    color: var(--hongo-navy);
}


/* ------------------------------------------------------------
   モバイル対応
   ------------------------------------------------------------ */

@media (max-width: 768px) {
    .hongo-rooms-list {
        grid-template-columns: 1fr;
    }

    .hongo-filter__row {
        flex-direction: column;
    }

    .hongo-filter__group {
        min-width: 100%;
    }

    .hongo-room-detail {
        grid-template-columns: 1fr;
    }

    .hongo-room-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hongo-room-header__number {
        font-size: 1.6rem;
    }
}
