/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kosugi', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 共通コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1B365D;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
}

/* 共通ボタンスタイル */
.btn-primary {
    background: #FF6B35;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    color: #1B365D;
}

.btn-hero {
    background: #FF6B35;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ヘッダー */
.header {
    background: rgba(27, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    padding: 0 20px;
    height: 70px;
    min-width: 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-mark {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.88;
    display: block;
}

.logo-text {
    line-height: 1;
}

.logo:hover .logo-mark {
    opacity: 0.98;
}

.nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.8vw, 28px);
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8rem, 1.05vw, 0.95rem);
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #FF6B35;
}

.header-cta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 12px;
    flex-shrink: 0;
}

.header-cta .btn-secondary,
.header-cta .btn-primary {
    white-space: nowrap;
    flex-shrink: 0;
    padding-left: 14px;
    padding-right: 14px;
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
}

.mobile-icons {
    display: none;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #FF6B35;
    background: rgba(255, 255, 255, 0.1);
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    /* overflow:hidden だと子の backdrop-filter が背景を拾えず不透明に見えることがある */
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-bg-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hero-bg-image:not([src]),
.hero-bg-image[src=""],
.hero-bg-image[src*="error"] {
    opacity: 0;
}

.hero-bg-picture::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #654321 0%, #8B4513 50%, #D2691E 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3)),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.3)),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 1040px;
    padding: 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* 検索ウィジェット（ヒーロー写真＋オーバーレイが透けて見える） */
.search-widget {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 22px 24px;
    margin: 20px auto 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    max-width: 600px;
    width: min(100%, 600px);
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

/* 透過背景の上でも入力欄は読みやすく */
.hero .search-widget .form-group label {
    color: #1a1a1a;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero .search-widget .form-group input,
.hero .search-widget .form-group select {
    background: rgba(255, 255, 255, 0.95);
}

.hero .search-widget .search-tab {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

.hero .search-widget .search-tab.active {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.search-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    justify-content: center;
}

.search-tab {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.search-tab.active {
    color: #1B365D;
    border-bottom-color: #FF6B35;
}

/* トップヒーロー内検索のみ：幅600px以内・エリアは狭め・2列で収める */
.hero .search-widget .search-form {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 12px 14px;
    align-items: end;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
}

.hero .search-widget .search-form > .form-group:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: min(100%, 15rem);
    width: 100%;
    justify-self: center;
}

.hero .search-widget .search-form > .form-group:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.hero .search-widget .search-form > .form-group:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.hero .search-widget .search-form > .form-group:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
}

.hero .search-widget .search-form > .search-btn {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: stretch;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B35;
}

.search-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.35;
}

.search-btn:hover {
    background: #45a049;
}

/* 共通カードスタイル */
.card-base {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* 物件関連 */
.property-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* トップ掲載：画像リンクとボタン群を分離（a の入れ子を避ける） */
.property-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.featured-properties .property-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-slider .property-card-content {
    padding: 0 20px 22px;
    box-sizing: border-box;
}

.property-grid .property-card-content {
    padding: 0 14px 16px;
    box-sizing: border-box;
}

.featured-properties .property-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    margin-top: auto;
}

.featured-properties .property-actions .btn-action,
.featured-properties .property-actions a.btn-action {
    flex: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.featured-properties .property-actions .fb-contact-poster-btn,
.featured-properties .property-actions .fb-contact-poster-btn--disabled {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

.featured-properties .property-actions .btn-action.primary,
.featured-properties .property-actions button.btn-action.primary {
    grid-column: 1 / -1;
}

.property-card {
    @extend .card-base;
}

.property-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #654321, #8B4513);
}

.property-grid .property-image {
    height: 200px;
}

.property-image > a.property-image-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.property-card:hover .property-img {
    transform: scale(1.05);
}

a.property-image-link:focus-visible {
    box-shadow: inset 0 0 0 3px #FF6B35;
}

.fb-fav-heart {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    line-height: 1;
    transition: transform 0.12s ease, background 0.12s ease;
}

.fb-fav-heart:hover {
    transform: scale(1.06);
    background: #fff;
}

.fb-fav-heart:focus-visible {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

.fb-fav-heart-ico {
    font-size: 1.35rem;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.fb-fav-heart.is-favorited .fb-fav-heart-ico {
    color: #e11d48;
}

.fb-fav-heart--property-detail {
    right: 14px;
    bottom: 14px;
}

.property-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.property-grid .property-card-tags {
    margin-bottom: 10px;
}

.property-card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(27, 54, 93, 0.08);
    color: #1B365D;
    border: 1px solid rgba(27, 54, 93, 0.18);
    line-height: 1.3;
}

.property-grid .property-card-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.property-badge.sell {
    background: #FF6B35;
}

.property-badge.rent {
    background: #4CAF50;
}

/* トップ掲載カード：メイン以外の登録画像枚数 */
.property-extra-image-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(27, 54, 93, 0.82);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* 掲載の商談受付（募集中 / 商談中）— 売買・賃貸バッジと重ならないよう右上 */
.fb-neg-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.fb-neg-badge--open {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.fb-neg-badge--busy {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

/* カード画像外（テキスト横）では絶対配置を使わない */
.fb-neg-badge.fb-neg-badge--inline {
    position: static;
    display: inline-block;
    vertical-align: middle;
    box-shadow: none;
}

.property-detail-image-wrap .fb-neg-badge {
    top: 12px;
    right: 12px;
}

.mypage-ai-card-visual .fb-neg-badge {
    top: 10px;
    right: 10px;
    left: auto;
}

.property-info {
    padding: 25px;
}

.property-grid .property-info {
    padding: 20px;
}

.property-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1B365D;
    margin-bottom: 10px;
}

.property-grid .property-price {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.property-grid .property-title {
    font-size: 1rem;
    margin-bottom: 12px;
}

.property-location {
    font-size: 0.9rem;
    color: #1B365D;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 107, 53, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    border: 2px solid #FF6B35;
}

.property-description {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-details {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.property-grid .property-details {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.property-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-action {
    flex: 1;
    min-width: 5.5rem;
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

a.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    text-align: center;
}

a.btn-action.primary {
    color: #fff;
}

.property-grid .btn-action {
    padding: 8px;
    font-size: 0.8rem;
}

.btn-action:hover {
    background: #f0f0f0;
}

.btn-action.primary {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.btn-action.primary:hover {
    background: #45a049;
}

/* ランキングセクション */
.ranking-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.ranking-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.ranking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.ranking-card.first {
    grid-row: span 2;
}

.ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 1;
}

.ranking-card.first::before { background: linear-gradient(90deg, #FFD700, #FFA500); }
.ranking-card.second::before { background: linear-gradient(90deg, #C0C0C0, #A8A8A8); }
.ranking-card.third::before { background: linear-gradient(90deg, #CD7F32, #B8860B); }
.ranking-card.fourth::before { background: linear-gradient(90deg, #87CEEB, #4682B4); }
.ranking-card.fifth::before { background: linear-gradient(90deg, #98FB98, #32CD32); }

.ranking-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border: 4px solid rgba(255,255,255,0.8);
}

.ranking-number.first { background: radial-gradient(circle, #FFD700 0%, #FFA500 70%, #FF8C00 100%); }
.ranking-number.second { background: radial-gradient(circle, #E5E5E5 0%, #C0C0C0 70%, #A8A8A8 100%); }
.ranking-number.third { background: radial-gradient(circle, #D2691E 0%, #CD7F32 70%, #B8860B 100%); }
.ranking-number.fourth { background: radial-gradient(circle, #87CEEB 0%, #4682B4 70%, #4169E1 100%); }
.ranking-number.fifth { background: radial-gradient(circle, #98FB98 0%, #32CD32 70%, #228B22 100%); }

.ranking-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #654321, #8B4513);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.ranking-card:not(.first) .ranking-image {
    height: 140px;
}

.ranking-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.ranking-card:hover .ranking-img {
    transform: scale(1.05);
}

.ranking-info {
    padding: 25px;
}

.ranking-card:not(.first) .ranking-info {
    padding: 20px;
}

.ranking-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.ranking-badge.sell { background: #FF6B35; }
.ranking-badge.rent { background: #4CAF50; }

.ranking-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1B365D;
    margin-bottom: 10px;
}

.ranking-card:not(.first) .ranking-price {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.ranking-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.ranking-card:not(.first) .ranking-title {
    font-size: 1rem;
    margin-bottom: 12px;
}

.ranking-location {
    font-size: 1rem;
    color: #1B365D;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid #FF6B35;
}

.ranking-card:not(.first) .ranking-location {
    font-size: 0.9rem;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.ranking-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.ranking-card:not(.first) .ranking-stats {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.ranking-highlight {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.ranking-card:not(.first) .ranking-highlight {
    padding: 6px 12px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

/* チャートセクション */
.chart-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chart-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 25px;
    border-radius: 45px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-tab.active {
    background: #FF6B35;
    color: white;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.chart-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.chart-content {
    display: none;
}

.chart-content.active {
    display: block;
}

.chart-wrapper {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
}

.chart-notes {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.chart-notes .note-item {
    display: inline-block;
    margin: 0 15px;
    padding: 0 10px;
}

.chart-notes .note-item::after {
    content: "•";
    margin-left: 15px;
    color: #ccc;
}

.chart-notes .note-item:last-child::after {
    display: none;
}

.area-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.area-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #FFD700);
}

.area-card .area-rank {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF6B35;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.area-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1B365D;
    margin-bottom: 10px;
}

.area-trend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.trend-chart {
    width: 60px;
    height: 30px;
}

.trend-value {
    font-weight: 600;
    color: #4CAF50;
}

.trend-value.negative {
    color: #F44336;
}

.area-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 不動産まめ知識セクション */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.knowledge-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    display: flex;
    min-height: 140px;
}

.knowledge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #FF6B35;
}

.knowledge-image {
    width: 120px;
    height: 140px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #654321, #8B4513);
    flex-shrink: 0;
}

.knowledge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.knowledge-card:hover .knowledge-img {
    transform: scale(1.08);
}

.knowledge-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.knowledge-category {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.knowledge-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    margin-bottom: 8px;
}

.knowledge-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: auto;
}

.knowledge-date {
    color: #999;
}

.knowledge-readmore {
    color: #FF6B35;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.knowledge-readmore:hover {
    color: #e55a2b;
}

/* 統計セクション */
.stats-section {
    background: #1B365D !important;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #FF6B35;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Load More */
.load-more-section {
    text-align: center;
    padding: 50px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover::before {
    left: 100%;
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.loading.active {
    display: flex;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF6B35;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* フッター */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #FF6B35;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 3px 0;
}

.footer-section ul li a:hover {
    color: #FF6B35;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

.footer-partner-note {
    margin: 14px auto 0;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.55;
    max-width: 36rem;
    padding: 0 12px;
}

.footer-partner-note a {
    color: #9a9a9a;
    text-decoration: none;
    border-bottom: 1px solid #666;
}

.footer-partner-note a:hover {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
}

.footer-area .region-list {
    margin-top: 15px;
    padding-right: 8px;
    line-height: 1.2;
}

.region-group {
    margin-bottom: 8px;
}

.region-header {
    font-weight: bold;
    color: #4CAF50;
    font-size: 0.9rem;
    margin-bottom: 3px;
    border-bottom: 1px solid #4CAF50;
    padding-bottom: 2px;
    line-height: 1.1;
}

.prefecture-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prefecture-row a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.prefecture-row a:hover {
    color: #FF6B35;
}

.prefecture-row a:after {
    content: "｜";
    margin-left: 8px;
    color: #666;
}

.prefecture-row a:last-child:after {
    display: none;
}

/* セクション背景の交互パターン */
.section:nth-child(odd) {
    background: #ffffff;
}

.section:nth-child(even) {
    background: #f1f3f5;
}

/* 特定のセクションで個別背景を上書き */
.stats-section {
    background: #1B365D !important;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero .search-widget .search-form {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .hero .search-widget .search-form > .form-group:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .hero .search-widget .search-form > .form-group:nth-child(2),
    .hero .search-widget .search-form > .form-group:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }
    .hero .search-widget .search-form > .form-group:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }
    .hero .search-widget .search-form > .search-btn {
        grid-column: 2;
        grid-row: auto;
        align-self: end;
        width: 100%;
    }
    .property-slider { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .property-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .search-widget { width: min(100% - 40px, 600px); max-width: 600px; }
    .ranking-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 20px; }
    .ranking-card.first { grid-column: span 2; grid-row: span 1; }
    .ranking-card.first .ranking-image { height: 200px; }
    .knowledge-grid { grid-template-columns: 1fr; gap: 20px; }
    .knowledge-card { min-height: 120px; }
    .knowledge-image { width: 100px; height: 120px; }
    .knowledge-info { padding: 15px; }
    .knowledge-title { font-size: 0.95rem; }
    .knowledge-excerpt { font-size: 0.8rem; -webkit-line-clamp: 2; }
}

@media (max-width: 768px) {
    .nav, .header-cta { display: none; }
    .mobile-icons { display: flex; }
    .logo { font-size: 18px; }
    .logo-mark {
        width: 22px;
        height: 22px;
    }
    .hero { min-height: calc(100vh - 70px); padding-top: 90px; padding-bottom: 20px; }
    .hero-content { padding: 20px; }
    .hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
    .hero p { font-size: 1.1rem; margin-bottom: 30px; }
    .hero-cta { flex-direction: column; align-items: center; margin-bottom: 30px; gap: 15px; }
    .search-widget { margin: 20px auto 0 auto; padding: 20px; width: min(100% - 40px, 600px); max-width: 600px; }
    .hero .search-widget .search-form {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .hero .search-widget .search-form > .form-group:nth-child(1),
    .hero .search-widget .search-form > .form-group:nth-child(2),
    .hero .search-widget .search-form > .form-group:nth-child(3),
    .hero .search-widget .search-form > .form-group:nth-child(4),
    .hero .search-widget .search-form > .search-btn {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
    }
    .hero .search-widget .search-form > .form-group:nth-child(1) {
        max-width: none;
    }
    .search-tabs { justify-content: center; flex-wrap: wrap; }
    .search-tab { padding: 12px 20px; font-size: 0.9rem; }
    .property-slider { grid-template-columns: 1fr; gap: 20px; }
    .property-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .property-grid .property-image { height: 120px; }
    .property-grid .property-info { padding: 15px; }
    .property-grid .property-price { font-size: 1.3rem; }
    .property-grid .property-title { font-size: 0.9rem; }
    .property-grid .property-location { font-size: 0.8rem; }
    .property-grid .property-description { font-size: 0.7rem; -webkit-line-clamp: 3; margin-bottom: 12px; }
    .property-grid .property-details { font-size: 0.8rem; margin-bottom: 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .ranking-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 20px; }
    .ranking-card.first { grid-column: span 1; grid-row: span 1; }
    .ranking-grid-others { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
    .ranking-card .ranking-image { height: 150px !important; }
    .ranking-card .ranking-info { padding: 15px !important; }
    .ranking-card .ranking-price { font-size: 1.3rem !important; }
    .ranking-card .ranking-title { font-size: 1rem !important; }
    .load-more-btn { padding: 14px 36px; font-size: 1rem; width: 100%; max-width: 320px; }
    .ranking-number { width: 50px; height: 50px; font-size: 1.1rem; top: 10px; left: 10px; border: 3px solid rgba(255,255,255,0.8); }
    .chart-tabs { flex-direction: column; border-radius: 15px; max-width: 100%; }
    .chart-tab { border-radius: 10px; margin: 2px; }
    .chart-container { padding: 20px; }
    .chart-wrapper { height: 300px; }
    .area-details { grid-template-columns: 1fr; gap: 15px; }
    .chart-notes { font-size: 0.8rem; }
    .chart-notes .note-item { margin: 0 8px; padding: 0 5px; }
    .chart-notes .note-item::after { margin-left: 8px; }
    .knowledge-grid { grid-template-columns: 1fr; gap: 20px; }
    .knowledge-card { min-height: 120px; }
    .knowledge-image { width: 100px; height: 120px; }
    .knowledge-info { padding: 15px; }
    .knowledge-title { font-size: 0.95rem; }
    .knowledge-excerpt { font-size: 0.8rem; -webkit-line-clamp: 2; }
}

@media (max-width: 480px) {
    .header-container { padding: 0 15px; height: 60px; }
    .logo { font-size: 14px; }
    .logo-mark {
        width: 20px;
        height: 20px;
    }
    .icon-btn { font-size: 16px; width: 36px; height: 36px; }
    .hero { min-height: calc(100vh - 60px); padding-top: 80px; padding-bottom: 20px; }
    .hero-content { padding: 15px; }
    .hero h1 { font-size: 1.8rem; margin-bottom: 12px; line-height: 1.3; }
    .hero p { font-size: 1rem; margin-bottom: 25px; }
    .btn-hero { padding: 12px 30px; font-size: 1rem; width: 100%; max-width: 280px; }
    .search-widget { margin: 15px auto 0 auto; padding: 15px; width: min(100% - 30px, 600px); max-width: 600px; }
    .search-tab { padding: 10px 15px; font-size: 0.85rem; }
    .form-group label { font-size: 0.9rem; margin-bottom: 6px; }
    .form-group input, .form-group select { padding: 10px 12px; font-size: 0.9rem; }
    .search-btn { padding: 10px 20px; font-size: 0.9rem; }
    .section-title { font-size: 1.8rem; }
    .property-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .stat-number { font-size: 2.2rem; }
    .ranking-grid-others { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ranking-number { width: 45px; height: 45px; font-size: 1rem; border: 2px solid rgba(255,255,255,0.8); }
    .chart-notes { font-size: 0.75rem; line-height: 1.6; }
    .chart-notes .note-item { display: block; margin: 5px 0; padding: 0; }
    .chart-notes .note-item::after { display: none; }
    .knowledge-card { min-height: 100px; }
    .knowledge-image { width: 80px; height: 100px; }
    .knowledge-info { padding: 12px; }
    .knowledge-title { font-size: 0.9rem; }
    .knowledge-excerpt { font-size: 0.75rem; -webkit-line-clamp: 2; }
    .knowledge-category { font-size: 0.7rem; padding: 2px 8px; }
    .knowledge-meta { font-size: 0.7rem; }
}

/* --- 要件定義ベースのトップ・サブページ（v1.3） --- */
.nav a.nav-active {
    color: #FF6B35 !important;
    font-weight: 600;
}

.subpage {
    padding-top: 90px;
    min-height: 55vh;
    background: #f5f7fa;
}

.subpage-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 20px 4rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.page-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.subpage-inner > h1 {
    font-size: 1.65rem;
    color: #1B365D;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.subpage-lead {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.subpage-inner h2 {
    font-size: 1.2rem;
    color: #1B365D;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #FF6B35;
}

.subpage-inner h3 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
    color: #333;
}

.subpage-inner p,
.subpage-inner li {
    line-height: 1.85;
    color: #333;
}

.subpage-inner ul,
.subpage-inner ol {
    margin: 0.5rem 0 0.5rem 1.25rem;
}

.subpage-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
}

.subpage-inner th,
.subpage-inner td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.subpage-inner th {
    background: #1B365D;
    color: #fff;
}

.note-box {
    background: #fff8e6;
    border-left: 4px solid #e6a800;
    padding: 14px 18px;
    margin: 1.25rem 0;
    line-height: 1.75;
    color: #333;
}

.flow-pre {
    background: #1c2b1e;
    color: #e8dfd0;
    padding: 18px;
    border-radius: 10px;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 0.75rem 0 1.25rem;
}

a.inline-link {
    color: #c2410c;
    font-weight: 600;
}

.value-props {
    background: #fff;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.value-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.value-card h3 {
    font-size: 1.1rem;
    color: #1B365D;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 16px;
}

a.value-link {
    color: #c2410c;
    font-weight: 600;
    text-decoration: none;
}

a.value-link:hover {
    text-decoration: underline;
}

.flow-section {
    background: #eef2f7;
}

.flow-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.flow-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.flow-box h3 {
    color: #1B365D;
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.flow-box--roadmap {
    padding: 18px 16px 22px;
}

.flow-box--roadmap .flow-roadmap {
    margin-top: 0;
    margin-bottom: 0;
}

ol.flow-list {
    margin: 0 0 0 1.1rem;
    padding: 0;
}

ol.flow-list li {
    margin-bottom: 8px;
    color: #444;
}

/* 買主ページ：詳細フロー（会員→LINE連携任意） */
.buyer-detail-flow {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px 18px;
    margin: 0.75rem 0 1.35rem;
}

.buyer-detail-flow-list {
    margin: 0;
    padding-left: 1.35rem;
    line-height: 1.85;
    color: #334155;
    font-size: 0.95rem;
}

.buyer-detail-flow-list li {
    margin-bottom: 1.15rem;
}

.buyer-detail-flow-list li:last-child {
    margin-bottom: 0;
}

.buyer-detail-flow-list strong {
    color: #1B365D;
}

.buyer-detail-flow-note {
    display: block;
    margin-top: 6px;
    font-size: 0.86rem;
    color: #64748b;
    font-weight: 400;
}

/* 買う・借りる / 売る・貸す インフォグラフィック風フロー */
.flow-roadmap {
    background: linear-gradient(165deg, #f8fafc 0%, #eef4f0 100%);
    border: 1px solid #dce7e0;
    border-radius: 14px;
    padding: 22px 20px 20px;
    margin: 0.5rem 0 1.5rem;
}

.flow-roadmap--buyers {
    border-color: #c5d9e8;
    background: linear-gradient(165deg, #f5f9fc 0%, #eef5fa 100%);
}

.flow-roadmap--sellers {
    border-color: #d4e5d4;
}

.flow-roadmap-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 6px;
    font-weight: 700;
}

.flow-roadmap-title {
    font-size: 1.15rem;
    color: #1B365D;
    margin: 0 0 10px;
    line-height: 1.35;
}

.flow-roadmap-lead {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 18px;
}

.flow-roadmap-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-roadmap-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px 4px;
}

.flow-roadmap-bridge {
    text-align: center;
    color: #c2410c;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    padding: 6px 0 10px;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.flow-step-card {
    flex: 1 1 140px;
    max-width: 200px;
    min-height: 118px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 12px 14px;
    box-shadow: 0 1px 2px rgba(27, 54, 93, 0.06);
}

.flow-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1B365D;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.flow-roadmap--buyers .flow-step-num {
    background: #1e4976;
}

.flow-roadmap--sellers .flow-step-num {
    background: #2d5a3d;
}

.flow-step-title {
    font-size: 0.88rem;
    color: #1B365D;
    margin: 0 0 6px;
    line-height: 1.3;
}

.flow-step-desc {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.55;
    margin: 0;
}

.flow-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    color: #c2410c;
    font-weight: 900;
    font-size: 1.85rem;
    line-height: 1;
    padding: 0 4px;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    filter: drop-shadow(0 1px 1px rgba(194, 65, 12, 0.25));
}

.flow-step-desc a.inline-link {
    font-size: inherit;
    word-break: break-word;
}

.flow-roadmap-pills {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.flow-roadmap-pills li {
    background: #1B365D;
    color: #f1f5f9;
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 12px 12px;
    border-radius: 8px;
    margin: 0;
}

.flow-roadmap--buyers .flow-roadmap-pills li {
    background: #1e4976;
}

.flow-roadmap--sellers .flow-roadmap-pills li {
    background: #2d5a3d;
}

.flow-roadmap-pills li strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 4px;
    color: #fff;
}

.flow-roadmap-footnote {
    font-size: 0.78rem;
    color: #64748b;
    margin: 14px 0 0;
    line-height: 1.55;
}

/* トップ：取引の流れ（縦型タイムライン・スキャンしやすい要点のみ） */
.flow-box--index-flow {
    display: flex;
    flex-direction: column;
    padding: 20px 18px 22px;
}

.flow-box--index-flow .flow-index {
    flex: 1 1 auto;
}

.flow-index {
    border-radius: 12px;
    padding: 16px 14px 18px;
    margin: 0;
}

.flow-index--buyers {
    background: linear-gradient(180deg, #f0f7fc 0%, #e8f2f9 100%);
    border: 1px solid #c5d9e8;
}

.flow-index--sellers {
    background: linear-gradient(180deg, #f1f8f1 0%, #e8f2ea 100%);
    border: 1px solid #c5dcc5;
}

.flow-index-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 6px;
    font-weight: 700;
}

.flow-index-title {
    font-size: 1.05rem;
    color: #1B365D;
    margin: 0 0 14px;
    line-height: 1.35;
}

.flow-index-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flow-index-steps > li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
}

.flow-index-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.flow-index-marker::after {
    content: "";
    flex: 1 1 10px;
    width: 3px;
    margin-top: 6px;
    margin-bottom: 2px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(30, 73, 118, 0.45), rgba(148, 163, 184, 0.55));
    min-height: 0.85rem;
}

.flow-index--sellers .flow-index-marker::after {
    background: linear-gradient(180deg, rgba(45, 90, 61, 0.45), rgba(148, 163, 184, 0.55));
}

.flow-index-steps > li:last-child .flow-index-marker::after {
    display: none;
}

.flow-index-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    background: #1e4976;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.flow-index--sellers .flow-index-num {
    background: #2d5a3d;
}

.flow-index-body {
    padding-bottom: 14px;
}

.flow-index-steps > li:last-child .flow-index-body {
    padding-bottom: 0;
}

.flow-index-label {
    display: block;
    font-size: 0.98rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.flow-index-note {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
}

.flow-index-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    margin-top: 16px;
    padding: 11px 16px;
    font-size: 0.92rem;
}

/* マイページ：希望リスト（複数希望） */
.mypage-wish-lead {
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.75;
    font-size: 0.92rem;
}

.mypage-wish-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.mypage-wish-toolbar-title {
    margin: 0;
    font-size: 1.05rem;
    color: #1B365D;
}

.mypage-wish-add-btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 0.92rem;
    white-space: nowrap;
}

.mypage-wish-limit-msg {
    margin: 0;
    font-size: 0.88rem;
    color: #b45309;
}

.mypage-wish-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mypage-wish-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(27, 54, 93, 0.05);
}

.mypage-wish-card-main {
    flex: 1 1 200px;
    min-width: 0;
}

.mypage-wish-card-title {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.35;
}

.mypage-wish-card-meta {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

.mypage-wish-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mypage-wish-card-btn {
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.88rem;
}

.mypage-wish-del-form {
    margin: 0;
}

.mypage-wish-del-btn {
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
}

.mypage-wish-del-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.mypage-wish-cancel-link {
    display: inline-block;
    margin-left: 14px;
    font-size: 0.9rem;
    color: #475569;
}

.mypage-wish-cancel-link:hover {
    color: #1B365D;
    text-decoration: underline;
}

/* 買主希望 wish-item タブ */
.bw-wish-tabs {
    margin-top: 4px;
}
.bw-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}
.bw-tab {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1.3;
}
.bw-tab:hover {
    background: #fff;
    border-color: #94a3b8;
}
.bw-tab--active {
    background: #1B365D;
    border-color: #1B365D;
    color: #fff;
}
.bw-tab-panel {
    display: none;
    padding-top: 4px;
}
.bw-tab-panel--active {
    display: block;
}
.bw-select-multi {
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
}
.bw-pref-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.bw-pref-pick__list {
    flex: 1 1 200px;
    min-width: 0;
}
.bw-pref-pick__list .bw-select-multi {
    min-height: 240px;
}
.bw-pref-pick__selected {
    flex: 1 1 200px;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
}
.bw-pref-selected-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #0f172a;
}
.bw-pref-selected-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bw-pref-selected-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.bw-pref-chip-label {
    font-weight: 500;
}
.bw-pref-chip-remove {
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #94a3b8;
    background: #fff;
    cursor: pointer;
    color: #334155;
}
.bw-pref-chip-remove:hover {
    background: #e2e8f0;
}
.bw-pref-selected-empty {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}
.bw-pref-selected-foot {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}
.bw-pref-map-field {
    margin-top: 8px;
}
.bw-pref-map-head {
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}
.bw-pref-map-host {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.bw-pref-map-host svg.geolonia-svg-map {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}
.bw-pref-map-host svg g.prefecture {
    transition: fill 0.12s ease;
}
.bw-pref-map-host svg g.prefecture:hover {
    fill: #e2e8f0 !important;
}
.bw-pref-map-host svg g.prefecture.bw-pref-map--on {
    fill: #93c5fd !important;
}
.bw-pref-map-host svg g.prefecture.bw-pref-map--on:hover {
    fill: #7dd3fc !important;
}
.bw-pref-map-credit {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #64748b;
}
.bw-pref-map-credit a {
    color: #2563eb;
}
.bw-pref-map-fail {
    margin: 0;
    padding: 12px;
    color: #b45309;
    font-size: 0.9rem;
}
.bw-building-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 12px;
}
.bw-building-type-card.lw-chk {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    margin: 0;
    padding: 10px 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.bw-building-type-card:hover {
    border-color: #94a3b8;
}
.bw-building-type-card:has(input:checked) {
    border-color: #1B365D;
    background: #eff6ff;
    color: #0f172a;
}
.bw-building-type-card input[type="checkbox"] {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.bw-building-type-ico {
    font-size: 1.75rem;
    line-height: 1;
    user-select: none;
}
.bw-chimoku-type-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bw-building-type-name {
    font-size: 0.86rem;
    line-height: 1.3;
}
.bw-seismic-field .bw-seismic-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bw-seismic-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}
.bw-seismic-top label {
    margin: 0;
    font-weight: 600;
    flex: 0 1 auto;
}
.bw-seismic-details {
    flex: 0 0 auto;
}
.bw-seismic-details[open] {
    flex: 1 0 100%;
}
.bw-seismic-summary {
    list-style: none;
    cursor: pointer;
}
.bw-seismic-summary::-webkit-details-marker {
    display: none;
}
.bw-seismic-summary::marker {
    content: none;
}
.bw-seismic-summary-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1B365D;
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1;
    user-select: none;
}
.bw-seismic-summary:hover .bw-seismic-summary-inner,
.bw-seismic-summary:focus-visible .bw-seismic-summary-inner {
    background: #2c5282;
}
.bw-seismic-summary:focus {
    outline: none;
}
.bw-seismic-summary:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 999px;
}
.bw-seismic-hint {
    margin-top: 10px;
    max-width: 100%;
}
.bw-seismic-hint-lead {
    margin: 0 0 8px;
    font-size: 0.86rem;
}
.bw-seismic-hint-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #334155;
}
.bw-seismic-hint-list li {
    margin-bottom: 6px;
}
.bw-seismic-hint-list li:last-child {
    margin-bottom: 0;
}
.bw-range-section__title {
    font-weight: 700;
    color: #1B365D;
    font-size: 0.95rem;
    margin-bottom: 0;
}
.bw-range-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 6px;
}
.bw-legend-with-read {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.bw-legend-with-read__text {
    font-weight: 700;
    color: #1B365D;
}
.bw-article-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e3a5f;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.bw-article-read:hover {
    background: #bae6fd;
    border-color: #38bdf8;
}
.articles-lib .articles-lib-filter {
    margin: 16px 0 20px;
}
.articles-lib-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}
.articles-lib-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}
.articles-lib-select,
.articles-lib-input {
    min-width: 200px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}
.articles-lib-submit {
    margin-bottom: 2px;
    border: 0;
    cursor: pointer;
    padding: 8px 18px;
    font-size: 0.9rem;
}
.articles-lib-clear {
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.articles-lib-empty {
    color: #64748b;
    margin: 12px 0;
}
.articles-lib-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.articles-lib-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    background: #f8fafc;
}
.articles-lib-card-link {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1B365D;
    text-decoration: none;
}
.articles-lib-card-link:hover {
    text-decoration: underline;
}
.articles-lib-card-meta {
    margin: 6px 0 4px;
    font-size: 0.82rem;
    color: #64748b;
}
.articles-lib-card-sum {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
}
.bw-range-hint {
    font-size: 0.88rem;
    line-height: 1.55;
}
.bw-range-track {
    position: relative;
    height: 44px;
    margin: 10px 0 6px;
    touch-action: none;
}
.bw-range-rail {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    margin-top: -3px;
    background: #e2e8f0;
    border-radius: 3px;
    pointer-events: none;
}
.bw-range-bar {
    position: absolute;
    top: 50%;
    height: 6px;
    margin-top: -3px;
    background: #60a5fa;
    border-radius: 3px;
    pointer-events: none;
    min-width: 0;
    left: 0;
    width: 0;
}
.bw-range-input {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    height: 44px;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 1;
}
.bw-range-input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1B365D;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    cursor: grab;
}
.bw-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1B365D;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    cursor: grab;
}
.bw-range-input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}
.bw-range-input::-moz-range-track {
    height: 6px;
    background: transparent;
}
.bw-range-readout {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.45;
}
.bw-range-readout--emphasis {
    margin-top: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.bw-range-text-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 12px;
}
.bw-range-text-row .bw-range-text-field {
    flex: 1 1 200px;
    min-width: 0;
    margin-bottom: 0;
}
.bw-range-inline-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.5rem;
    margin-top: 4px;
}
.bw-range-inline-wrap .bw-range-text-row {
    flex: 0 1 280px;
    min-width: 200px;
    margin-top: 0;
}
.bw-range-inline-wrap .bw-range-inline-slider {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 100%;
}
@media (max-width: 640px) {
    .bw-range-inline-wrap .bw-range-inline-slider {
        flex-basis: 100%;
    }
}
.bw-wish-actions {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

@media (max-width: 960px) {
    .flow-roadmap-row {
        flex-direction: column;
        align-items: stretch;
    }
    .flow-step-card {
        max-width: none;
        min-height: 0;
    }
    .flow-step-arrow {
        justify-content: center;
        padding: 6px 0;
        transform: rotate(90deg);
        font-size: 2rem;
        min-height: 2.5rem;
    }
    .flow-roadmap-pills {
        grid-template-columns: 1fr;
    }
}

.plan-teaser-section {
    background: #fff;
}

.plan-teaser-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

table.plan-teaser-table {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.plan-teaser-table th,
.plan-teaser-table td {
    border: 1px solid #ddd;
    padding: 12px 14px;
    text-align: left;
}

.plan-teaser-table th {
    background: #1B365D;
    color: #fff;
}

.legal-teaser {
    background: #eef7ff;
}

.legal-teaser-inner {
    max-width: 720px;
    margin: 0 auto;
}

ul.legal-bullets {
    text-align: left;
    max-width: 640px;
    margin: 16px auto 0;
    line-height: 1.85;
    color: #333;
}

.roadmap-section {
    background: #fff;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

ul.roadmap-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #444;
}

ul.roadmap-list li {
    margin-bottom: 8px;
}

.knowledge-grid--text {
    grid-template-columns: 1fr;
}

.knowledge-card--textonly {
    flex-direction: column;
    min-height: 0;
    cursor: default;
}

.knowledge-card--textonly .knowledge-info {
    width: 100%;
    padding: 18px 20px;
}

.knowledge-card--textonly:hover {
    transform: translateY(-2px);
}

/* 物件詳細（デモ） */
.property-detail-page .property-detail-inner {
    max-width: 800px;
}

.property-detail-breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
}

.property-detail-breadcrumb a {
    color: #1B365D;
    text-decoration: none;
}

.property-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.property-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 8px;
}

.property-detail-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(27, 54, 93, 0.08);
    color: #1B365D;
    border: 1px solid rgba(27, 54, 93, 0.2);
}

.property-detail-location {
    font-weight: 700;
    color: #1B365D;
    margin: 8px 0 4px;
}

.property-detail-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c2410c;
    margin: 0 0 20px;
}

.property-detail-hero {
    margin-bottom: 28px;
}

.property-detail-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(45deg, #654321, #8B4513);
}

.property-detail-hero-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.property-detail-gallery-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .property-detail-gallery-main {
        grid-template-columns: 1fr;
    }
}

.property-detail-gallery-card {
    margin: 0;
}

.property-detail-gallery-card .property-detail-image-wrap {
    border-radius: 12px;
}

.property-detail-gallery-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.property-detail-gallery-open:focus {
    outline: 2px solid #1B365D;
    outline-offset: 2px;
}

.property-detail-gallery-tag {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1B365D;
}

.property-detail-gallery-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.property-detail-gallery-thumb {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    background: #eee;
    max-width: 148px;
    flex: 0 0 auto;
    line-height: 0;
}

.property-detail-gallery-thumb img {
    display: block;
    width: 148px;
    height: auto;
    vertical-align: middle;
}

.property-detail-gallery-thumb-label {
    display: block;
    padding: 4px 6px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1B365D;
    text-align: center;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.92);
}

.property-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.property-gallery-lightbox[hidden] {
    display: none !important;
}

.property-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

.property-gallery-lightbox-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: min(1100px, 100vw - 24px);
    max-height: calc(100vh - 24px);
    pointer-events: none;
}

.property-gallery-lightbox-panel > button {
    pointer-events: auto;
}

.property-gallery-lightbox-stage {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    pointer-events: auto;
}

.property-gallery-lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.property-gallery-lightbox-caption {
    margin: 10px 0 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.property-gallery-lightbox-close,
.property-gallery-lightbox-prev,
.property-gallery-lightbox-next {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-gallery-lightbox-close {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 2;
}

.property-gallery-lightbox-prev,
.property-gallery-lightbox-next {
    font-size: 2rem;
    font-weight: 300;
}

@media (max-width: 640px) {
    .property-gallery-lightbox-prev,
    .property-gallery-lightbox-next {
        display: none;
    }
}

.property-detail-badge.property-badge {
    top: 12px;
    left: 12px;
}

.property-detail-body p {
    line-height: 1.85;
    color: #333;
    margin-bottom: 1rem;
}

table.property-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
}

table.property-spec-table th {
    width: 32%;
    text-align: left;
    vertical-align: top;
}

table.property-spec-table th,
table.property-spec-table td {
    padding: 12px 14px;
    border: 1px solid #ddd;
}

.property-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.property-detail-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.property-detail-actions .btn-action {
    flex: 0 1 auto;
    min-width: 8rem;
}

/* 専門家パートナー：ランディング・登録フォーム */
.partner-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.partner-type-card {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.5rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

.partner-type-card h3 {
    margin-top: 0;
    color: #1B365D;
    font-size: 1.1rem;
}

.partner-type-card p {
    flex: 1;
    margin-bottom: 1rem;
}

a.partner-type-cta {
    text-align: center;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 0.95rem;
}

.partner-register-form {
    max-width: 640px;
    margin-top: 1.5rem;
    position: relative;
}

.partner-form-heading {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF6B35;
}

.partner-register-form .form-group {
    margin-bottom: 1.15rem;
}

.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 2.5rem;
}

.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.partner-form-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group-checkbox {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.partner-form-actions {
    margin-top: 1.5rem;
}

.partner-form-actions .btn-primary {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

/* トップ：初回公開おすすめ記事 */
.articles-priority-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.articles-priority-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.articles-priority-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.articles-priority-card:hover {
    border-color: #FF6B35;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.12);
}

.articles-priority-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c2410c;
}

.articles-priority-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1B365D;
}

.articles-priority-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

.articles-priority-foot {
    text-align: center;
    margin-top: 22px;
}

/* トップ：地方不動産移住ガイド2026 バナー */
.home-guide-2026-banner {
    padding: 0;
    margin: 0;
    background: linear-gradient(105deg, #0f2744 0%, #1a4d3a 52%, #2e7d32 100%);
}
.home-guide-2026-banner .container {
    max-width: 1100px;
}
.home-guide-2026-banner-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s, opacity 0.15s;
}
.home-guide-2026-banner-link:hover {
    background: rgba(255, 255, 255, 0.06);
}
.home-guide-2026-badge {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.home-guide-2026-text {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.home-guide-2026-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}
.home-guide-2026-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    opacity: 0.94;
}
.home-guide-2026-cta {
    flex: 0 0 auto;
    margin-left: auto;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    color: #0f2744;
}

/* 読み物ライブラリー：連載バナー */
.reading-lib-series-promo {
    margin: 0 0 1.15rem;
}
.reading-lib-series-promo-link {
    display: block;
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    text-decoration: none;
    color: #0f2744;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 48%, #e3f2fd 100%);
    border: 1px solid rgba(46, 125, 50, 0.35);
    box-shadow: 0 2px 12px rgba(15, 39, 68, 0.07);
    transition: transform 0.12s, box-shadow 0.12s;
}
.reading-lib-series-promo-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 39, 68, 0.1);
}
.reading-lib-series-promo-kicker {
    display: block;
    font-family: "Kosugi", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2e7d32;
    margin-bottom: 0.35rem;
}
.reading-lib-series-promo-title {
    display: block;
    font-family: "Kosugi", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}
.reading-lib-series-promo-body {
    display: block;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 0.5rem;
}
.reading-lib-series-promo-go {
    display: inline-block;
    font-family: "Kosugi", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1b5e20;
}

/* 地方不動産移住ガイド2026 本文：目次 */
.guide-reloc-toc {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.guide-reloc-toc-title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: #1B365D;
    border: none;
    padding: 0;
}
.guide-reloc-toc-chapters {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.75;
}
.guide-reloc-toc-chapters a {
    color: #c2410c;
    font-weight: 600;
}

/* 地方不動産移住ガイド2026：2カラム（章メニュー + 本文） */
.guide-reloc-2026-page .guide-reloc-layout-wrap {
    max-width: 1120px;
}
.guide-reloc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    padding-bottom: 2.5rem;
}
@media (min-width: 900px) {
    .guide-reloc-layout {
        grid-template-columns: 258px minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }
}
.guide-reloc-sidebar {
    font-family: "Kosugi", sans-serif;
    padding: 1rem 1.05rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 39, 68, 0.05);
}
@media (min-width: 900px) {
    .guide-reloc-sidebar {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}
.guide-reloc-sidebar-series {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0f2744;
}
.guide-reloc-sidebar-series-link {
    color: #0f2744;
    text-decoration: none;
    border-bottom: 1px solid rgba(194, 65, 12, 0.45);
}
.guide-reloc-sidebar-series-link:hover {
    color: #c2410c;
}
.guide-reloc-sidebar-hint {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #475569;
}
.guide-reloc-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.guide-reloc-sidebar-list li {
    margin: 0 0 0.35rem;
}
.guide-reloc-sidebar-link {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid transparent;
    transition: background 0.12s, border-color 0.12s;
}
.guide-reloc-sidebar-link:hover {
    background: #fff;
    border-color: #cbd5e1;
}
.guide-reloc-sidebar-link.is-active {
    background: #fff;
    border-color: #2e7d32;
    box-shadow: 0 0 0 1px rgba(46, 125, 50, 0.25);
}
.guide-reloc-sidebar-line {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f2744;
}
.guide-reloc-sidebar-sub {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #64748b;
    font-weight: 500;
}
.guide-reloc-main {
    min-width: 0;
}
.guide-reloc-lead {
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 1.25rem;
}
.guide-reloc-overview-h2 {
    margin-top: 1.75rem;
    font-size: 1.15rem;
}
.guide-reloc-howto {
    line-height: 1.75;
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
}
.guide-reloc-chapter-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .guide-reloc-chapter-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.guide-reloc-chapter-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.05rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 6px rgba(15, 39, 68, 0.06);
    transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.guide-reloc-chapter-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 14px rgba(15, 39, 68, 0.1);
    transform: translateY(-1px);
}
.guide-reloc-chapter-no {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #2e7d32;
    margin-bottom: 0.25rem;
}
.guide-reloc-chapter-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f2744;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}
.guide-reloc-chapter-sum {
    font-size: 0.86rem;
    line-height: 1.6;
    color: #475569;
    flex: 1 1 auto;
    margin-bottom: 0.65rem;
}
.guide-reloc-chapter-go {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c2410c;
}

/* 記事本文ページ */
.article-page .article-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.article-page h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #1B365D;
    border-left: 4px solid #FF6B35;
    padding-left: 12px;
}

.article-page h2:first-of-type {
    margin-top: 0.5rem;
}

.article-steps li,
.article-checklist li {
    margin-bottom: 0.85rem;
    line-height: 1.65;
}

.article-footer-nav {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.media-priority-links {
    line-height: 1.9;
}

.media-priority-links li {
    margin-bottom: 6px;
}

/* 会員ログイン・登録 */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-form {
    max-width: 440px;
    margin: 1rem 0 1.5rem;
}

.form-row-auth {
    margin-bottom: 16px;
}

.form-row-auth label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.form-row-auth input[type="email"],
.form-row-auth input[type="password"],
.form-row-auth input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.form-row-auth--check label {
    font-weight: 400;
    font-size: 0.95rem;
}

.auth-form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.auth-form-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* マイページ（Web / LIFF 共通レイアウト） */
body.mypage-app {
    margin: 0;
    min-height: 100vh;
    background: #e2e8f0;
}

.mypage-shell {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
}

.mypage-sidebar {
    background: #1B365D;
    color: #f8fafc;
    padding: 20px 0 32px;
    display: flex;
    flex-direction: column;
}

.mypage-sidebar-brand {
    padding: 0 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mypage-sidebar-logo {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.05rem;
}

.mypage-sidebar-badge {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    background: #ea580c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.mypage-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.mypage-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
}

.mypage-nav-group:first-of-type {
    margin-top: 8px;
}

.mypage-nav-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 6px 12px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background 0.15s ease;
}

.mypage-nav-group-head:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mypage-nav-group-head:focus {
    outline: none;
}

.mypage-nav-group-head:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.mypage-nav-group-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid rgba(248, 250, 252, 0.75);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.mypage-nav-group-head[aria-expanded="true"] .mypage-nav-group-chevron {
    transform: rotate(90deg);
}

.mypage-nav-group-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mypage-nav-group.is-collapsed .mypage-nav-group-body {
    display: none;
}

.mypage-nav-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
}

.mypage-nav-group-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.mypage-nav-group-badge--buyer {
    background: rgba(56, 189, 248, 0.28);
    color: #e0f2fe;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.mypage-nav-group-badge--seller {
    background: rgba(251, 191, 36, 0.22);
    color: #fef9c3;
    border: 1px solid rgba(251, 191, 36, 0.42);
}

.mypage-nav-group-badge--general {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.mypage-nav-group-badge--memorire {
    background: rgba(26, 92, 74, 0.35);
    color: #d1fae5;
    border: 1px solid rgba(45, 138, 106, 0.5);
    margin-left: auto;
    flex-shrink: 0;
}
.mypage-nav-item .mypage-nav-group-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
}

.mypage-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.mypage-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mypage-nav-item.is-active {
    background: rgba(255, 107, 53, 0.25);
    color: #fff;
    font-weight: 600;
}

.mypage-nav-item--messages {
    background: rgba(255, 107, 53, 0.14);
    border-left: 3px solid #FF6B35;
    font-weight: 600;
    color: #fff;
}

.mypage-nav-item--messages:hover {
    background: rgba(255, 107, 53, 0.24);
    color: #fff;
}

.mypage-nav-item--messages.is-active {
    background: rgba(255, 107, 53, 0.32);
    border-left-color: #fff;
}


.mypage-nav-ico {
    width: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

.mypage-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #eef2f7;
}

.mypage-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.mypage-topbar-title {
    font-size: 1.2rem;
    color: #1B365D;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mypage-topbar-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #475569;
    position: relative;
}

.mypage-user-menu {
    position: relative;
}

.mypage-user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mypage-user-menu-trigger:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.mypage-user-menu-trigger:focus {
    outline: none;
}

.mypage-user-menu-trigger:focus-visible {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.mypage-user-menu-trigger[aria-expanded="true"] {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.mypage-user-menu-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.mypage-user-menu-name {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mypage-user-menu-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.mypage-user-menu-trigger[aria-expanded="true"] .mypage-user-menu-chevron {
    transform: rotate(180deg);
}

.mypage-user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 208px;
    max-width: min(208px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    padding: 6px;
    z-index: 400;
}

.mypage-user-menu-panel[hidden] {
    display: none !important;
}

.mypage-user-menu-item {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.mypage-user-menu-item:hover {
    background: #f1f5f9;
}

.mypage-user-menu-item:focus {
    outline: none;
}

.mypage-user-menu-item:focus-visible {
    background: #eff6ff;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.mypage-user-menu-item--danger {
    color: #b91c1c;
}

.mypage-user-menu-item--danger:hover {
    background: #fef2f2;
}

.mypage-topbar-link {
    color: #c2410c;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.mypage-topbar-link:hover {
    text-decoration: underline;
}

.mypage-content {
    padding: 22px 24px 40px;
    flex: 1;
}

.mypage-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 18px;
    max-width: 900px;
}

.mypage-panel h2 {
    font-size: 1.05rem;
    color: #1B365D;
    margin: 0 0 12px;
}

.mypage-welcome-banner {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
    max-width: 900px;
    line-height: 1.75;
    color: #475569;
}

.mypage-welcome-banner strong {
    color: #1B365D;
}

.mypage-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin: 0;
}

.mypage-quick-col--full {
    grid-column: 1 / -1;
}

.mypage-quick-col-title {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: #1B365D;
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.mypage-quick-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.mypage-quick-tag--buyer {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.mypage-quick-tag--seller {
    background: #fef3c7;
    color: #a16207;
    border: 1px solid #fcd34d;
}

.mypage-quick-tag--general {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.mypage-quick-tag--memorire {
    background: #e8f3ef;
    color: #1a5c4a;
    border: 1px solid #9dd4c0;
}

.mypage-quick-links {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #64748b;
}

.mypage-quick-foot {
    margin: 10px 0 0;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #64748b;
}

@media (max-width: 640px) {
    .mypage-quick-grid {
        grid-template-columns: 1fr;
    }
    .mypage-quick-col--full {
        grid-column: auto;
    }
}

.mypage-help-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #2E7D32;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.mypage-msg-preview {
    font-size: 0.9rem;
    color: #64748b;
}

.mypage-msg-preview--empty {
    color: #94a3b8;
}

.mypage-msg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mypage-msg-list li {
    border-bottom: 1px solid #f1f5f9;
}

.mypage-msg-list a {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    text-decoration: none;
    color: inherit;
}

.mypage-msg-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mypage-msg-list-thumb-wrap {
    flex-shrink: 0;
}

.mypage-msg-list-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: block;
    background: #f8fafc;
}

.mypage-msg-list-thumb-fallback {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    border: 1px dashed #cbd5e1;
}

.mypage-msg-list-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mypage-msg-list a:hover {
    background: #f8fafc;
}

.mypage-msg-list-title {
    font-weight: 700;
    color: #1B365D;
    margin-bottom: 4px;
}

.mypage-msg-list-meta {
    font-size: 0.82rem;
    color: #64748b;
}

.mypage-msg-list-unread {
    flex-shrink: 0;
    min-width: 1.5rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.mypage-nav-item-label {
    flex: 1;
    min-width: 0;
}

.mypage-nav-unread-badge {
    flex-shrink: 0;
    margin-left: auto;
    min-width: 1.35rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.mypage-newmsg-panel {
    border: 2px solid #fecaca;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.12);
}

.mypage-newmsg-alert {
    margin: 0;
    padding: 14px 16px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
    border: 1px solid #fda4af;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.mypage-newmsg-alert-body {
    min-width: 0;
}

.mypage-newmsg-alert-line {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #7f1d1d;
}

.mypage-newmsg-alert-body .mypage-newmsg-alert-line:last-child {
    margin-bottom: 0;
}

.mypage-newmsg-alert-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    vertical-align: middle;
    background: #ef4444;
    color: #fff;
}

.mypage-newmsg-alert-badge--reply {
    background: #ea580c;
}

.mypage-newmsg-alert-actions {
    flex-shrink: 0;
    margin: 4px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(127, 29, 29, 0.18);
    width: 100%;
    box-sizing: border-box;
}

.mypage-newmsg-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
    max-width: 100%;
    box-sizing: border-box;
    vertical-align: middle;
}

.mypage-newmsg-alert-btn:hover {
    transform: none;
}

.mypage-thread-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.mypage-thread-row--me {
    flex-direction: row-reverse;
}

.mypage-thread-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mypage-thread-wrap {
    max-width: 720px;
}

.mypage-thread-back {
    margin: 0 0 12px;
}

.mypage-thread-chat {
    display: flex;
    flex-direction: column;
    min-height: min(68vh, 600px);
    max-height: min(calc(100dvh - 200px), 720px);
    padding-bottom: 0;
}

.mypage-thread-chat-head {
    flex-shrink: 0;
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
}

.mypage-thread-chat-head h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.mypage-thread-chat-head .mypage-msg-list-meta {
    margin: 0;
}

.mypage-thread-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 4px 8px 0;
    scroll-behavior: smooth;
}

.mypage-thread-scroll .mypage-buyer-greeting {
    margin-bottom: 12px;
}

.mypage-thread-messages {
    display: flex;
    flex-direction: column;
}

.mypage-thread-form {
    flex-shrink: 0;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.mypage-thread-submit {
    width: 100%;
    max-width: 12rem;
}

@media (max-width: 720px) {
    .mypage-thread-chat {
        min-height: min(62vh, 520px);
        max-height: min(calc(100dvh - 160px), 640px);
    }
    .mypage-thread-submit {
        max-width: none;
        width: 100%;
    }
}

.mypage-buyer-greeting {
    margin: 0 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
}

.mypage-buyer-greeting-summary {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1B365D;
    list-style: none;
}

.mypage-buyer-greeting-summary::-webkit-details-marker {
    display: none;
}

.mypage-buyer-greeting-body {
    padding: 0 14px 14px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #334155;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
    padding-top: 12px;
}

.mypage-profile-avatar-block {
    margin-bottom: 8px;
}

.mypage-profile-avatar-img {
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    object-fit: cover;
    display: block;
}

.mypage-profile-avatar-note {
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.6;
}

.mypage-profile-avatar-success {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: #166534;
}

.mypage-profile-avatar-error {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: #b91c1c;
}

.mypage-profile-avatar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.mypage-profile-avatar-file span {
    display: inline-block;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.86rem;
    cursor: pointer;
}

.mypage-profile-avatar-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.mypage-profile-avatar-file {
    position: relative;
}

.mypage-profile-avatar-remove {
    margin-top: 10px;
}

.mypage-profile-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.mypage-profile-field {
    margin-bottom: 16px;
}

.mypage-profile-field label,
.mypage-profile-field-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.mypage-profile-field input[type="text"],
.mypage-profile-field input[type="password"] {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    box-sizing: border-box;
}

.mypage-profile-readonly {
    margin: 0;
    font-size: 0.92rem;
    color: #1e293b;
}

.mypage-profile-field-note {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.55;
}

.mypage-profile-actions {
    margin: 18px 0 0;
}

.mypage-profile-security {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.mypage-profile-security-title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #1B365D;
}

.mypage-profile-password-link {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    margin-top: 4px;
}

.mypage-btn.btn-primary {
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
}

.mypage-btn.btn-primary:hover {
    color: #fff;
    text-decoration: none;
}

.mypage-profile-footer-note {
    margin: 18px 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.mypage-thread-bubble {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 44px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mypage-thread-bubble--me {
    align-items: flex-end;
}

.mypage-thread-bubble-inner {
    max-width: 92%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.mypage-thread-bubble--them .mypage-thread-bubble-inner {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.mypage-thread-bubble--me .mypage-thread-bubble-inner {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.mypage-thread-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
}

.mypage-thread-read {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.3;
}

.mypage-thread-form textarea {
    width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.mypage-footer {
    padding: 16px 24px 24px;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
}

.mypage-footer a {
    color: #c2410c;
    font-weight: 600;
    text-decoration: none;
}

.mypage-footer-note {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.mypage-reading-fab {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 500;
    display: block;
    width: 80px;
    line-height: 0;
    text-decoration: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    filter: drop-shadow(0 4px 14px rgba(15, 23, 42, 0.2));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.mypage-reading-fab img {
    display: block;
    width: 80px;
    height: auto;
    animation: mypage-reading-fab-float 3.4s ease-in-out infinite;
}

.mypage-reading-fab:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.26));
}

.mypage-reading-fab:hover img {
    animation-play-state: paused;
}

.mypage-reading-fab:focus {
    outline: none;
}

.mypage-reading-fab:focus-visible {
    outline: 2px solid #c2410c;
    outline-offset: 4px;
    border-radius: 12px;
}

@keyframes mypage-reading-fab-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mypage-reading-fab img {
        animation: none;
    }
}

body.mypage-app--liff .mypage-content {
    padding: 16px 14px 28px;
}

body.mypage-app--liff .mypage-sidebar {
    padding-top: 12px;
}

/* 物件投稿ウィザード */
.lw-stepper {
    margin-bottom: 20px;
    max-width: 960px;
}

.lw-stepper-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.lw-stepper-item {
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 140px;
}

.lw-stepper-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    transition: border-color 0.15s, background 0.15s;
}

.lw-stepper-link:hover {
    border-color: #FF6B35;
    background: #fff7ed;
}

.lw-stepper-item.is-current .lw-stepper-link {
    border-color: #1B365D;
    background: #eff6ff;
    font-weight: 700;
    color: #1B365D;
}

.lw-stepper-item.is-locked .lw-stepper-link--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lw-stepper-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.lw-stepper-item.is-current .lw-stepper-num {
    background: #1B365D;
    color: #fff;
}

.lw-stepper-label {
    text-align: center;
    line-height: 1.35;
}

.lw-stepper-note {
    font-size: 0.8rem;
    color: #64748b;
    margin: 10px 0 0;
}

.lw-panel h2 {
    margin-top: 0;
}

.lw-lead {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 18px;
}

.lw-form .lw-field {
    margin-bottom: 16px;
}

.lw-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
    font-size: 0.9rem;
}

.lw-form input[type="text"],
.lw-form input[type="number"],
.lw-form select,
.lw-form textarea {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

.lw-form textarea {
    max-width: 100%;
    resize: vertical;
}

.lw-field--half {
    display: inline-block;
    width: 48%;
    vertical-align: top;
    margin-right: 3%;
}

.lw-field--half:nth-child(even) {
    margin-right: 0;
}

@media (max-width: 640px) {
    .lw-field--half {
        width: 100%;
        margin-right: 0;
    }
}

.lw-actions {
    margin-top: 20px;
}

.lw-actions--sep {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.lw-form--images {
    position: relative;
}

.lw-dropzone {
    position: relative;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    max-width: 560px;
    transition: background 0.15s, border-color 0.15s;
}

.lw-dropzone.is-drag {
    border-color: #FF6B35;
    background: #fff7ed;
}

.lw-file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.lw-dropzone-text {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    pointer-events: none;
}

.lw-dropzone-text span {
    font-size: 0.85rem;
    color: #64748b;
}

.lw-count {
    font-size: 0.85rem;
    color: #64748b;
    margin: 10px 0 0;
}

.lw-subh {
    font-size: 1rem;
    color: #1B365D;
    margin: 24px 0 12px;
}

.lw-img-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.lw-img-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.lw-img-thumb-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    margin-bottom: 10px;
}

.lw-img-thumb {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 140px;
}

.lw-img-label select {
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    font-size: 0.82rem;
}

.lw-img-name {
    font-size: 0.75rem;
    color: #64748b;
    margin: 8px 0 6px;
    word-break: break-all;
}

.lw-btn-text {
    background: none;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    font-size: 0.82rem;
    text-decoration: underline;
    padding: 0;
}

.lw-hidden-form {
    display: none !important;
}

.lw-summary {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
    font-size: 0.92rem;
    margin: 0 0 20px;
}

.lw-summary dt {
    color: #64748b;
    margin: 0;
}

.lw-summary dd {
    margin: 0;
    color: #1e293b;
}

.lw-summary-desc {
    white-space: pre-wrap;
}

.lw-confirm-thumbs {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lw-confirm-thumbs li {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.lw-confirm-tag {
    display: block;
    font-size: 0.72rem;
    padding: 4px 6px;
    background: #1B365D;
    color: #fff;
    text-align: center;
}

.lw-back {
    margin-top: 20px;
    font-size: 0.9rem;
}

.lw-errors {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

.lw-tag-form {
    margin-top: 8px;
}

.lw-info-banner {
    border-color: #86efac !important;
    background: #f0fdf4 !important;
}

.lw-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.lw-actions-multi {
    justify-content: flex-start;
}

.lw-btn-back {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid #94a3b8;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    background: #fff;
}

.lw-btn-back:hover {
    background: #f1f5f9;
    border-color: #64748b;
}

.lw-field-hint {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
    margin: 8px 0 0;
}

.lw-req {
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 700;
}

.lw-opt {
    color: #64748b;
    font-size: 0.78rem;
}

.lw-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px 8px;
    margin-bottom: 16px;
}

.lw-fieldset legend {
    padding: 0 8px;
    font-weight: 700;
    color: #1B365D;
    font-size: 0.95rem;
}

.lw-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.lw-chk {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.lw-field--withhint {
    position: relative;
}

.lw-field--withhint label {
    display: inline-block;
    margin-right: 8px;
}

.lw-hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 4px;
    border-radius: 50%;
    border: none;
    background: #1B365D;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    vertical-align: middle;
}

.lw-hint-btn:hover {
    background: #2c5282;
}

.lw-hint-pop {
    margin-top: 10px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.65;
    max-width: 520px;
}

.lw-listings-actions {
    margin-bottom: 12px;
}

.mypage-panel--listings-table {
    max-width: none;
}

.lw-listings-table-lead {
    margin: 0 0 14px;
    color: #64748b;
    line-height: 1.75;
}

.lw-listings-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px 4px;
}

.lw-listings-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: auto;
}

.lw-listings-table thead tr {
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.lw-listings-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.lw-listings-col {
    padding: 10px 12px;
    vertical-align: top;
}

.lw-listings-col--thumb {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.lw-listings-col--title {
    min-width: 160px;
    max-width: 280px;
}

.lw-listings-col--status,
.lw-listings-col--nego {
    white-space: nowrap;
}

.lw-listings-col--toggle,
.lw-listings-col--edit,
.lw-listings-col--docs {
    white-space: nowrap;
    width: 1%;
}

.lw-listings-id {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    word-break: break-all;
}

.lw-listings-muted {
    color: #94a3b8;
    font-size: 0.82rem;
    white-space: nowrap;
}

.lw-listings-toggle-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    min-width: 7.5rem;
}

.lw-listings-table .lw-listings-btn {
    flex: none;
    min-width: 0;
    width: auto;
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.lw-listings-table .lw-listings-btn--nego {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.lw-listings-table .lw-listings-btn--nego:hover {
    background: #9a3412;
}

.lw-listings-table .lw-listings-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lw-listings-docs-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 6.5rem;
}

.lw-listings-docs-cell .lpd-list-badge {
    white-space: nowrap;
}

.mypage-owner-listing-thumb {
    width: 88px;
    height: 59px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.mypage-owner-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mypage-owner-listing-thumb--empty {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

/* 物件書類（listing property documents） */
.lpd-intro-lead {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.75;
}

.lpd-intro-meta {
    margin: 0 0 14px;
    color: #1e293b;
    line-height: 1.6;
}

.lpd-intro-loc {
    color: #64748b;
    font-size: 0.92rem;
}

.lpd-intro-back {
    margin: 14px 0 0;
    font-size: 0.88rem;
}

.lpd-summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.lpd-summary-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1B365D;
}

.lpd-summary-count {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.lpd-summary-meter {
    flex: 1 1 120px;
    min-width: 100px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.lpd-summary-meter-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1B365D, #2563eb);
    border-radius: 999px;
}

.lpd-flash--ok {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.lpd-flash--err {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.lpd-field-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
}

.lpd-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
}

.lpd-item--todo {
    border-left: 4px solid #fbbf24;
}

.lpd-item--done {
    border-left: 4px solid #22c55e;
}

.lpd-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.lpd-item-title {
    margin: 0;
    font-size: 1rem;
    color: #1B365D;
    line-height: 1.4;
}

.lpd-item-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #a16207;
    border: 1px solid #fcd34d;
    flex-shrink: 0;
}

.lpd-item-badge--done {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.lpd-item-hint {
    margin: 0 0 10px;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.65;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.lpd-item-detail {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}

.lpd-file-current {
    margin: 0 0 8px;
    font-size: 0.86rem;
    color: #475569;
}

.lpd-file-link {
    color: #1B365D;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lpd-file-link:hover {
    color: #2563eb;
}

.lpd-file-link-hint {
    font-weight: 400;
    font-size: 0.78rem;
    color: #64748b;
    margin-left: 4px;
}

.lpd-preview-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.lpd-preview-lightbox[hidden] {
    display: none !important;
}

.lpd-preview-lightbox-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

.lpd-preview-lightbox-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1100px, 100vw - 32px);
    max-height: calc(100vh - 32px);
    pointer-events: none;
}

.lpd-preview-lightbox-panel > button {
    pointer-events: auto;
}

.lpd-preview-lightbox-stage {
    text-align: center;
    pointer-events: auto;
}

.lpd-preview-lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.lpd-preview-lightbox-caption {
    margin: 12px 0 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    word-break: break-all;
}

.lpd-preview-lightbox-close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpd-preview-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lpd-file-remove {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: #b91c1c;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
}

.lpd-file-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.84rem;
    color: #475569;
    max-width: 420px;
}

.lpd-file-label input[type="file"] {
    font-size: 0.82rem;
}

.lpd-radio-group {
    border: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.lpd-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
}

.lpd-setback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lpd-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lpd-field--full {
    max-width: 100%;
}

.lpd-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.lpd-field input[type="text"],
.lpd-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.lpd-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 24px 0 0;
    max-width: 900px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.lpd-form-actions .btn-primary {
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.lpd-back-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1B365D;
    background: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lpd-back-link:hover {
    background: #eff6ff;
    border-color: #1B365D;
    color: #1B365D;
    text-decoration: none;
}

.lpd-back-link:focus {
    outline: none;
}

.lpd-back-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.lpd-list-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 4px;
}

.lpd-list-badge--none {
    background: #fef3c7;
    color: #a16207;
}

.lpd-list-badge--partial {
    background: #e0f2fe;
    color: #0369a1;
}

.lpd-list-badge--full {
    background: #dcfce7;
    color: #166534;
}

.lpd-list-meter {
    width: 72px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.lpd-list-meter span {
    display: block;
    height: 100%;
    background: #1B365D;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .lpd-setback-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .value-grid {
        grid-template-columns: 1fr;
    }
    .flow-dual {
        grid-template-columns: 1fr;
    }
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    .subpage-inner {
        border-radius: 0;
        box-shadow: none;
    }
    .partner-type-grid {
        grid-template-columns: 1fr;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .mypage-shell {
        grid-template-columns: 1fr;
    }
    .mypage-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 12px 8px;
    }
    .mypage-sidebar-brand {
        width: 100%;
        border-bottom: none;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    .mypage-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
        padding: 0;
    }
    .mypage-sidebar-nav > a:nth-of-type(-n+2) {
        flex-basis: 100%;
        justify-content: center;
    }
    .mypage-nav-group {
        flex-basis: 100%;
        width: 100%;
        margin-top: 4px;
        flex-direction: column;
        gap: 6px;
    }
    .mypage-nav-group:first-of-type {
        margin-top: 4px;
    }
    .mypage-nav-group-head {
        flex-basis: 100%;
        width: 100%;
        padding: 8px 8px 4px;
    }
    .mypage-nav-group-body {
        flex-basis: 100%;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .mypage-nav-group-body > .mypage-nav-item {
        flex: 1 1 auto;
        min-width: 44%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 8px 8px;
    }
    .mypage-nav-item {
        flex: 1 1 auto;
        min-width: 44%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 8px 8px;
    }
}

/* --- マイページ：AIマッチ・通知設定 --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mypage-ai-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #475569;
}

.mypage-ai-lead-note {
    display: block;
    margin-top: 10px;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.65;
}

.mypage-ai-note {
    margin: 12px 0 16px;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.6;
}

.mypage-ai-flash {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.mypage-ai-flash--ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.mypage-ai-flash--err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.mypage-ai-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    max-width: 1100px;
}

.mypage-ai-card {
    margin: 0;
}

.mypage-ai-card-surface {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mypage-ai-card-wrap:hover .mypage-ai-card-surface {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.mypage-ai-card-visual-block {
    position: relative;
}

.mypage-ai-card-visual-hit {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fb-fav-heart--ai-card {
    left: 10px;
    bottom: 10px;
    right: auto;
}

.mypage-ai-card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background: transparent;
    border: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mypage-ai-card-link:hover {
    box-shadow: none;
}

.mypage-ai-card--own-listing .mypage-ai-card-surface {
    border-color: #7dd3fc;
    background: linear-gradient(to bottom, #f0f9ff 0%, #fff 48px);
}

.mypage-ai-card--own-listing:hover .mypage-ai-card-surface {
    border-color: #38bdf8;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
}

.mypage-ai-card-owner-label {
    margin: 0 0 8px;
}

.mypage-ai-card-owner-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 6px;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.mypage-ai-card-owner-pill--mine {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.mypage-ai-card-owner-pill--other {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.mypage-ai-card-own-msg-note {
    display: block;
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

.mypage-ai-card-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
}

.mypage-ai-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mypage-ai-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.mypage-ai-card-score {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.mypage-ai-card-score--muted {
    background: rgba(71, 85, 105, 0.75);
    font-weight: 600;
}

.mypage-ai-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mypage-ai-card-title {
    margin: 0;
    font-size: 1rem;
    color: #1B365D;
    line-height: 1.35;
}

.mypage-ai-card-meta {
    margin: 0;
    font-size: 0.86rem;
    color: #64748b;
}

.mypage-ai-card-wish {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #475569;
}

.mypage-ai-card-reasons {
    margin: 8px 0 0;
    padding-left: 1.1em;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
}

.mypage-ai-card-cta {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c2410c;
}

.mypage-notify-form {
    margin-top: 8px;
}

.mypage-notify-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mypage-notify-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #334155;
}

.mypage-notify-option input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #c2410c;
}

/* AIマッチカード：物件リンクとメッセージ導線の分割 */
.mypage-ai-card-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.mypage-ai-card-surface {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mypage-ai-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 12px 14px;
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #f8fafc;
}

.mypage-ai-card-actions .btn-action {
    font-size: 0.82rem;
}

.fb-contact-poster-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.mypage-msg-start-lead,
.mypage-msg-start-note {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0 0 12px;
}

.mypage-msg-start-note {
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #92400e;
}

.mypage-msg-start-form {
    max-width: 640px;
}

.mypage-msg-start-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px 14px;
    margin: 0 0 14px;
}

.mypage-msg-start-fieldset legend {
    font-weight: 600;
    color: #1e293b;
    padding: 0 6px;
}

.mypage-msg-start-radio {
    display: block;
    margin: 6px 0;
    font-size: 0.9rem;
    color: #334155;
}

.mypage-msg-start-block {
    display: block;
    margin: 0 0 14px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.92rem;
}

.mypage-msg-start-block textarea,
.mypage-msg-start-text input {
    display: block;
    width: 100%;
    margin-top: 6px;
    font-weight: 400;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.92rem;
    box-sizing: border-box;
}

.mypage-msg-start-text {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    font-size: 0.88rem;
    color: #475569;
}

.mypage-msg-start-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* message-start: 物件プレビュー + フォーム（広い画面は2カラム・左は sticky） */
.mypage-msg-start-layout {
    display: grid;
    grid-template-columns: minmax(0, 288px) minmax(0, 1fr);
    gap: 24px 32px;
    align-items: start;
    margin-top: 8px;
}

.mypage-msg-start-listing {
    position: sticky;
    top: 10px;
    align-self: start;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 14px 12px;
    background: #f8fafc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mypage-msg-start-listing-thumb-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    background: #e2e8f0;
}

.mypage-msg-start-listing-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

.mypage-msg-start-listing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin-top: 10px;
}

.mypage-msg-start-listing-title {
    margin: 12px 0 10px;
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 700;
    color: #0f172a;
}

.mypage-msg-start-listing-meta {
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
    color: #334155;
}

.mypage-msg-start-listing-meta > div {
    display: grid;
    grid-template-columns: 4.5em 1fr;
    gap: 4px 10px;
    margin: 0 0 6px;
    align-items: baseline;
}

.mypage-msg-start-listing-meta dt {
    margin: 0;
    font-weight: 600;
    color: #64748b;
}

.mypage-msg-start-listing-meta dd {
    margin: 0;
    word-break: break-word;
}

.mypage-msg-start-listing-excerpt-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.mypage-msg-start-listing-excerpt-label {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

.mypage-msg-start-listing-excerpt {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #475569;
    max-height: 6.5rem;
    overflow-y: auto;
    padding-right: 2px;
}

.mypage-msg-start-listing-foot {
    margin: 12px 0 0;
    font-size: 0.86rem;
}

.mypage-msg-start-main .mypage-msg-start-lead,
.mypage-msg-start-main .mypage-msg-start-note {
    max-width: 52rem;
}

.mypage-msg-start-main .mypage-msg-start-form {
    max-width: 52rem;
}

@media (max-width: 960px) {
    .mypage-msg-start-layout {
        grid-template-columns: 1fr;
    }

    .mypage-msg-start-listing {
        position: static;
    }

    .mypage-msg-start-listing-excerpt {
        max-height: 5rem;
    }
}

/* —— 読み物ライブラリー（articles/index.php） —— */
.reading-lib-body .reading-lib-page {
    background: linear-gradient(180deg, #f6f9fc 0%, #eef4f8 48%, #f0f4f8 100%);
}

body.reading-lib-embed-body .subpage,
body.reading-lib-embed-body .reading-lib-page {
    padding-top: 0;
    min-height: 100vh;
}

body.reading-lib-embed-body .subpage-inner {
    padding-top: 1.25rem;
}

body.reading-lib-embed-body .reading-lib-hero {
    padding-top: 1rem;
}

.reading-embed-bar {
    position: sticky;
    top: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
}

.reading-embed-bar-back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #c2410c;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}

.reading-embed-bar-back:hover {
    background: #ffedd5;
    color: #9a3412;
}

.reading-embed-bar-back:focus {
    outline: none;
}

.reading-embed-bar-back:focus-visible {
    outline: 2px solid #c2410c;
    outline-offset: 2px;
}

.reading-embed-bar-title {
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reading-lib {
    --reading-scale: 1;
    zoom: var(--reading-scale);
    font-family: "Kosugi", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #1a2332;
    padding-bottom: 3rem;
}
.reading-lib-inner {
    max-width: min(72rem, 100%);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.reading-lib-hero {
    padding: 1.75rem 0 1.25rem;
    border-bottom: 1px solid rgba(27, 54, 93, 0.12);
    margin-bottom: 1.25rem;
}
.reading-lib-eyebrow {
    font-family: "Kosugi", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5c6f82;
    margin: 0 0 0.35rem;
}
.reading-lib-title {
    font-family: "Kosugi", sans-serif;
    font-size: clamp(1.45rem, 4.5vw, 1.85rem);
    font-weight: 700;
    color: #0f2744;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}
.reading-lib-lead {
    font-size: 0.98rem;
    margin: 0 0 1rem;
    color: #3d4f63;
    max-width: 40rem;
}
.reading-lib-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    font-family: "Kosugi", sans-serif;
}
.reading-lib-toolbar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-right: 0.25rem;
}
.reading-lib-font-btn {
    font-family: "Kosugi", sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.reading-lib-font-btn:hover {
    background: #e2e8f0;
    border-color: #64748b;
}
.reading-lib-font-btn--reset {
    font-weight: 600;
    font-size: 0.78rem;
}
.reading-lib-callout {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    background: #fffdf7;
    border: 1px solid #f5e6c8;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}
.reading-lib-callout-mark {
    flex-shrink: 0;
    font-weight: 800;
    color: #b45309;
    font-size: 1.1rem;
    line-height: 1.4;
}
.reading-lib-callout-text {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #57534e;
    line-height: 1.7;
}
.reading-lib-stage-nav {
    margin-bottom: 1rem;
}
.reading-lib-stage-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    overflow: visible;
    padding-bottom: 0.15rem;
}
.reading-lib-stage-pill {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-family: "Kosugi", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pill-color, #1e293b);
    border: 2px solid var(--pill-color, #64748b);
    background: var(--pill-accent, #f1f5f9);
    transition: transform 0.12s, box-shadow 0.12s;
    white-space: nowrap;
}
.reading-lib-stage-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 39, 68, 0.08);
}
.reading-lib-stage-pill.is-active {
    background: var(--pill-color);
    color: #fff;
    border-color: var(--pill-color);
    box-shadow: 0 2px 10px rgba(15, 39, 68, 0.15);
}
.reading-lib-stage-pill.is-active .reading-lib-stage-count {
    opacity: 0.92;
    color: #fff;
}
.reading-lib-stage-count {
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 700;
}
.reading-lib-stage-banner {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--banner-bg);
    color: #fff;
    font-family: "Kosugi", sans-serif;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.reading-lib-stage-banner-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.95;
    margin-bottom: 0.25rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}
.reading-lib-stage-banner-text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    opacity: 0.98;
}
.reading-lib-filter {
    margin-bottom: 1.35rem;
    padding: 1rem 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 39, 68, 0.05);
}
.reading-lib-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
    gap: 0.75rem 1rem;
    align-items: end;
}
.reading-lib-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.reading-lib-field--grow {
    grid-column: span 1;
}
.reading-lib-field-label {
    font-family: "Kosugi", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}
.reading-lib-select,
.reading-lib-input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: "Kosugi", sans-serif;
    background: #fafbfc;
}
.reading-lib-filter-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 6.5rem;
}
.reading-lib-submit {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
}
.reading-lib-clear {
    font-family: "Kosugi", sans-serif;
    font-size: 0.8rem;
    text-align: center;
    color: #2563eb;
}
.reading-lib-search-mode {
    margin: 0.85rem 0 0;
    padding: 0;
    border: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.1rem;
}
.reading-lib-search-mode-legend {
    font-family: "Kosugi", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    padding: 0;
    margin: 0 0.25rem 0 0;
    float: none;
    width: auto;
}
.reading-lib-search-mode-opt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Kosugi", sans-serif;
    font-size: 0.84rem;
    color: #475569;
    cursor: pointer;
}
.reading-lib-search-mode-opt input {
    margin: 0;
    accent-color: #1d4ed8;
}
.reading-lib-search-mode-opt input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.reading-lib-search-mode-opt--radio:has(input:disabled) {
    opacity: 0.65;
    cursor: default;
}
.reading-lib-empty {
    padding: 1.5rem 0.5rem;
    color: #64748b;
    font-size: 0.95rem;
}
.reading-lib-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.reading-lib-card {
    padding: 1.05rem 1.1rem 1.15rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 39, 68, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.reading-lib-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 18px rgba(15, 39, 68, 0.07);
}
.reading-lib-card--key {
    border-color: #bf9f6a;
    background: linear-gradient(135deg, #fffefb 0%, #fff 40%);
    box-shadow: 0 2px 14px rgba(180, 83, 9, 0.08);
}
.reading-lib-card-link {
    font-family: "Kosugi", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #0f2744;
    text-decoration: none;
    display: inline-block;
}
.reading-lib-card-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.reading-lib-card-pick {
    margin: 0.4rem 0 0;
    font-family: "Kosugi", sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    color: #92400e;
}
.reading-lib-pick-icon {
    margin-right: 0.15rem;
    color: #d97706;
}
.reading-lib-card-stages {
    margin: 0.45rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.reading-lib-mini-stage {
    font-family: "Kosugi", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    color: var(--ms-color);
    background: var(--ms-bg);
    border: 1px solid rgba(30, 41, 59, 0.18);
}
.reading-lib-card-meta {
    margin: 0.45rem 0 0.25rem;
    font-family: "Kosugi", sans-serif;
    font-size: 0.78rem;
    color: #64748b;
}
.reading-lib-card-sum {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
}
.reading-lib-card-snippet {
    margin: 0.55rem 0 0;
    padding: 0.55rem 0.65rem;
    font-size: 0.84rem;
    line-height: 1.65;
    color: #64748b;
    background: #f8fafc;
    border-left: 3px solid #93c5fd;
    border-radius: 0 6px 6px 0;
}
.reading-lib-card-snippet-label {
    font-weight: 700;
    color: #475569;
    font-size: 0.76rem;
}
.reading-lib-hl {
    background: #fef08a;
    color: inherit;
    padding: 0 0.12em;
    border-radius: 2px;
    font-weight: inherit;
}
.reading-lib-card-link .reading-lib-hl {
    font-weight: 700;
}
.reading-lib-foot {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(27, 54, 93, 0.12);
    font-family: "Kosugi", sans-serif;
    font-size: 0.9rem;
}
.reading-lib-foot-sep {
    margin: 0 0.35rem;
    color: #94a3b8;
}

.reading-lib-results {
    min-height: 4rem;
    transition: opacity 0.28s ease, transform 0.28s ease;
    will-change: opacity, transform;
}
.reading-lib-results.reading-lib-results--out {
    opacity: 0;
    transform: translateY(10px);
}
.reading-lib-results.reading-lib-results--in {
    animation: readingLibResultsIn 0.42s ease forwards;
}
@keyframes readingLibResultsIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reading-lib-banner-slot:empty {
    display: none;
}

@media (max-width: 720px) {
    .reading-lib-filter-grid {
        grid-template-columns: 1fr;
    }
    .reading-lib-filter-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .reading-lib-submit {
        width: auto;
        flex: 1 1 auto;
    }
}

/* ── おうちのAI診断（メモリレ Layer 1） ── */
.memorire-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}
.memorire-service-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a5c4a;
}
.memorire-lead--phase {
    margin-top: 0.65rem;
    font-size: 0.875rem;
    color: #64748b;
}
.memorire-lead {
    margin: 0;
    color: #475569;
    line-height: 1.75;
    font-size: 0.9375rem;
}
.memorire-address-field {
    margin: 0 0 0.85rem;
    padding: 1.25rem 1.25rem 1.3rem;
    border: none;
    border-radius: 14px;
    background: #f3f8f6;
}
.memorire-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 1.0625rem;
    color: #1a5c4a;
    letter-spacing: 0.02em;
}
.memorire-address-lead {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}
.memorire-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: wrap;
}
.memorire-input {
    flex: 1 1 16rem;
    min-width: 0;
    padding: 0.9rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.memorire-input::placeholder {
    color: #94a3b8;
}
.memorire-input:hover {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 18px rgba(15, 23, 42, 0.08);
}
.memorire-input:focus {
    outline: none;
    border-color: rgba(26, 92, 74, 0.35);
    box-shadow: 0 0 0 3px rgba(26, 92, 74, 0.12), 0 4px 14px rgba(15, 23, 42, 0.06);
}
.memorire-submit {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    font-weight: 700;
}
.memorire-hint {
    margin: 0.7rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.memorire-status {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
}
.memorire-status--loading {
    background: #e8f0fb;
    color: #1a3c6a;
}
.memorire-refresh-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
}
.memorire-refresh-label input {
    margin: 0;
}
.memorire-debug-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    cursor: pointer;
}
.memorire-debug-label input {
    margin: 0.15rem 0 0;
}
.memorire-debug-panel {
    margin-top: 0.75rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}
.memorire-debug-details {
    margin: 0;
}
.memorire-debug-summary {
    cursor: pointer;
    font-weight: 600;
    color: #1e3a5f;
    padding: 0.25rem 0;
}
.memorire-debug-meta {
    margin: 0.5rem 0;
    font-size: 0.8125rem;
    color: #475569;
}
.memorire-debug-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.memorire-debug-table th,
.memorire-debug-table td {
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.5rem;
    vertical-align: top;
    text-align: left;
}
.memorire-debug-table th {
    background: #eef2f7;
    white-space: nowrap;
}
.memorire-debug-row--warn td {
    background: #fffbeb;
}
.memorire-debug-row--error td {
    background: #fef2f2;
}
.memorire-debug-context {
    margin: 0.35rem 0 0;
    padding: 0.35rem 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.6875rem;
    line-height: 1.45;
    overflow-x: auto;
    max-height: 12rem;
}
.memorire-result-actions {
    margin-top: 0.75rem;
    background: #f0f7f4;
    border-color: #b8d9cc;
}
.memorire-result-actions-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.memorire-result-actions .memorire-save-report-btn {
    flex: 0 1 auto;
    min-width: 11rem;
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    background: #1a5c4a;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(26, 92, 74, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.memorire-result-actions .memorire-save-report-btn:hover:not(:disabled) {
    background: #154a3b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 92, 74, 0.4);
}
.memorire-result-actions .memorire-save-report-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.memorire-result-actions .memorire-reports-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 2px solid #1B365D;
    border-radius: 25px;
    background: #fff;
    color: #1B365D;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.memorire-result-actions .memorire-reports-link:hover {
    background: #1B365D;
    color: #fff;
    text-decoration: none;
}
.memorire-save-status {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: #475569;
}
.memorire-save-status--ok {
    color: #166534;
}
.memorire-save-status--error {
    color: #b91c1c;
}
.memorire-save-reminder {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #92400e;
}
.memorire-summary-save {
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    background: #fffbeb;
}
.memorire-summary-save-note {
    margin: 0 0 0.55rem;
    font-size: 0.8125rem;
    color: #92400e;
    line-height: 1.5;
}
.memorire-save-report-btn--inline {
    padding: 10px 22px;
    font-size: 0.9375rem;
}
.memorire-save-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 251, 235, 0.97);
    border-top: 1px solid #fcd34d;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
}
.memorire-save-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
}
.memorire-save-bar-text {
    margin: 0;
    flex: 1 1 14rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #92400e;
}
.memorire-save-report-btn--sticky {
    flex: 0 0 auto;
    padding: 10px 22px;
    font-size: 0.9375rem;
    border: none;
    border-radius: 25px;
    background: #1a5c4a;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(26, 92, 74, 0.35);
}
.memorire-save-report-btn--sticky:hover:not(:disabled) {
    background: #154a3b;
    color: #fff;
}
.memorire-save-report-btn--sticky:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.memorire-map-flood-notice {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 3;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #93c5fd;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #1e3a5f;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}
.memorire-map-flood-notice strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    color: #1d4ed8;
}
.memorire-layer-hint--warning {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
}
.memorire-reports-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.memorire-reports-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.memorire-reports-head h2 {
    margin: 0;
}
.memorire-reports-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.memorire-reports-item {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.memorire-reports-item-main {
    width: 100%;
    min-width: 0;
}
.memorire-reports-item-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #1e3a5f;
}
.memorire-reports-item-address {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}
.memorire-reports-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}
.memorire-reports-item-meta div {
    display: flex;
    gap: 0.35rem;
}
.memorire-reports-item-meta dt {
    font-weight: 600;
}
.memorire-reports-item-meta dd {
    margin: 0;
}
.memorire-reports-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding-top: 0.15rem;
    border-top: 1px solid #f1f5f9;
}
.memorire-reports-item-actions .memorire-reports-btn {
    flex: 0 0 auto;
    min-width: 7.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.memorire-reports-item-actions .memorire-reports-btn--primary {
    background: #1e3a5f;
    color: #fff;
    border: 1px solid #1e3a5f;
}
.memorire-reports-item-actions .memorire-reports-btn--primary:hover {
    background: #152a47;
    border-color: #152a47;
    color: #fff;
}
.memorire-reports-item-actions .memorire-reports-btn--secondary {
    background: #fff;
    color: #1e3a5f;
    border: 1px solid #cbd5e1;
}
.memorire-reports-item-actions .memorire-reports-btn--secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e3a5f;
}
.memorire-report-compare-btn.is-added {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
    cursor: default;
}
.memorire-reports-item-actions .memorire-report-delete-btn {
    min-width: 2.25rem;
    width: 2.25rem;
    padding: 0;
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.memorire-reports-item-actions .memorire-report-delete-btn:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}
.memorire-reports-item-actions .memorire-report-delete-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.memorire-reports-btn-icon {
    display: block;
    flex-shrink: 0;
}
.mypage-panel .btn-secondary,
.memorire-reports-head .btn-secondary,
.memorire-reports-head-actions .btn-secondary,
.memorire-saved-report-actions .btn-secondary,
.memorire-compare-head .btn-secondary,
.memorire-compare-item-actions .btn-secondary {
    background: #fff;
    color: #1e3a5f;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.mypage-panel .btn-secondary:hover,
.memorire-reports-head .btn-secondary:hover,
.memorire-reports-head-actions .btn-secondary:hover,
.memorire-saved-report-actions .btn-secondary:hover,
.memorire-compare-head .btn-secondary:hover,
.memorire-compare-item-actions .btn-secondary:hover {
    background: #f1f5f9;
    color: #1e3a5f;
    border-color: #94a3b8;
}
.memorire-compare-item-actions button.btn-secondary {
    font-family: inherit;
}
.memorire-reports-error {
    margin: 0;
    color: #b91c1c;
}
.memorire-saved-report-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}
.memorire-saved-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.memorire-saved-report-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.04em;
}
.memorire-saved-report-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: #1e3a5f;
}
.memorire-saved-report-meta {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.memorire-compare-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.memorire-compare-head h2 {
    margin: 0;
}
.memorire-compare-section {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e2e8f0;
}
.memorire-compare-section-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #1e3a5f;
}
.memorire-compare-section-lead {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}
.memorire-compare-section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.memorire-compare-priority-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
}
.memorire-compare-priority {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 0.8125rem;
    color: #1e3a5f;
    cursor: pointer;
}
.memorire-compare-priority input {
    accent-color: #2563eb;
}
.memorire-compare-notes-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}
.memorire-compare-notes {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #1e293b;
    resize: vertical;
}
.memorire-compare-school-field {
    margin: 0 0 0.85rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}
.memorire-compare-school-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e3a5f;
}
.memorire-compare-school-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
}
.memorire-compare-school-input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.25);
    border-color: #60a5fa;
}
.memorire-compare-school-hint {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.55;
}
.memorire-compare-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}
.memorire-compare-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.memorire-compare-item {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.memorire-compare-item-title {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    color: #1e3a5f;
}
.memorire-compare-item-address,
.memorire-compare-item-meta {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.memorire-compare-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.memorire-compare-results-section {
    scroll-margin-top: 5.5rem;
}
.memorire-compare-results-section.is-revealed {
    animation: memorireCompareResultsReveal 0.55s ease;
}
.memorire-compare-results-section.is-revealed .memorire-compare-section-title {
    animation: memorireCompareTitlePulse 0.9s ease;
}
.memorire-compare-results-banner {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #fcd34d;
    background: linear-gradient(90deg, #fffbeb, #fef3c7);
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
    animation: memorireCompareBannerPulse 1.2s ease 2;
}
.memorire-compare-results-note {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
}
.memorire-compare-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.memorire-compare-result {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.memorire-compare-result.is-entering {
    opacity: 0;
    transform: translateY(10px);
    animation: memorireCompareResultEnter 0.45s ease forwards;
}
.memorire-compare-result-rank {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    min-width: 1.75rem;
}
.memorire-compare-result-main {
    flex: 1;
    min-width: 0;
}
.memorire-compare-result-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}
.memorire-compare-result-title {
    margin: 0;
    font-size: 1rem;
    color: #1e3a5f;
}
.memorire-compare-result-pct {
    font-size: 1.15rem;
    font-weight: 700;
    color: #b45309;
}
.memorire-compare-result-address {
    margin: 0 0 0.45rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.memorire-compare-result-bar {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 0.55rem;
}
.memorire-compare-result-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
.memorire-compare-criteria {
    list-style: none;
    margin: 0.55rem 0 0.65rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.memorire-compare-criteria-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    line-height: 1.4;
}
.memorire-compare-criteria-label {
    font-weight: 600;
    color: #475569;
}
.memorire-compare-criteria-meta {
    color: #64748b;
}
.memorire-compare-criteria-score {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.memorire-compare-criteria-score::after {
    content: "点";
    font-weight: 600;
    font-size: 0.68rem;
    margin-left: 0.05rem;
    color: #64748b;
}
.memorire-compare-result-comment {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
}
.memorire-compare-result-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.memorire-compare-result-link:hover {
    text-decoration: underline;
}
.memorire-compare-error {
    margin-top: 0.75rem;
}
@keyframes memorireCompareResultsReveal {
    from {
        opacity: 0.35;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes memorireCompareTitlePulse {
    0%, 100% {
        color: #1e3a5f;
    }
    40% {
        color: #b45309;
    }
}
@keyframes memorireCompareBannerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}
@keyframes memorireCompareResultEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.memorire-status-current {
    margin: 0 0 0.75rem;
    font-weight: 600;
}
.memorire-progress-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.memorire-progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.memorire-progress-step-marker {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}
.memorire-progress-step--active {
    color: #1a3c6a;
    font-weight: 600;
}
.memorire-progress-step--active .memorire-progress-step-marker {
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.memorire-progress-step--done {
    color: #334155;
}
.memorire-progress-step--done .memorire-progress-step-marker {
    background: #16a34a;
}
.memorire-status--error {
    background: #fdf0ee;
    color: #8a2a1a;
}
.memorire-dl {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
}
.memorire-dl dt {
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
}
.memorire-dl dd {
    margin: 0;
    font-size: 0.9375rem;
    word-break: break-word;
}
.memorire-map-wrap {
    margin-top: 1rem;
    position: relative;
}
.memorire-map-home-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(200, 120, 32, 0.95);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    pointer-events: none;
}
.memorire-map {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.memorire-map--report {
    height: 360px;
}
.memorire-gsi-panel {
    margin: 0.75rem 0 0;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.memorire-gsi-info {
    margin-bottom: 0.75rem;
}
.memorire-gsi-info-row {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    color: #334155;
}
.memorire-gsi-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}
.memorire-gsi-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
}
.memorire-gsi-control-label {
    font-weight: 600;
    white-space: nowrap;
}
.memorire-gsi-select {
    min-width: 11rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 0.8125rem;
}
.memorire-gsi-control--toggle input {
    margin: 0;
}
.memorire-map-attribution {
    margin: 0.5rem 0 0;
    font-size: 0.6875rem;
    color: #64748b;
}
.memorire-gsi-vector-wrap {
    margin-top: 0.75rem;
}
.memorire-gsi-vector-map {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.memorire-kpi-grid--disaster {
    margin-bottom: 1rem;
}
.memorire-result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.memorire-summary {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.memorire-summary-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.memorire-summary-text {
    flex: 1;
    min-width: 0;
}
.memorire-summary-streetview-link {
    display: block;
    flex-shrink: 0;
    width: 160px;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.memorire-summary-streetview-link:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}
.memorire-summary-streetview-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #e2e8f0;
}
.memorire-summary-streetview-caption {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
    color: #475569;
    background: #fff;
}
.memorire-summary-label {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.memorire-summary-address {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5;
    color: #0f172a;
}
.memorire-summary-coords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.memorire-summary-coords dt {
    font-weight: 600;
}
.memorire-summary-coords dd {
    margin: 0;
}
.memorire-report-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(to bottom, #f8fafc 70%, transparent);
    scrollbar-width: none;
}
.memorire-report-nav::-webkit-scrollbar {
    display: none;
}
.memorire-report-nav-link {
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.memorire-report-nav-link:hover {
    border-color: #1a5c4a;
    color: #1a5c4a;
}
.memorire-report {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.memorire-report-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.memorire-report-section-title {
    margin: 0;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.memorire-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    color: #1a5c4a;
}
.memorire-section-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.memorire-report-section--disaster .memorire-section-icon {
    color: #7f1d1d;
}
.memorire-report-section-body {
    min-height: 2rem;
}
.memorire-section-badge--ok { background: #e6f4ef; color: #1a5c4a; }
.memorire-section-badge--stub { background: #fef3e6; color: #9a5b12; }
.memorire-section-badge--pending,
.memorire-section-badge--not_configured { background: #f1f5f9; color: #475569; }
.memorire-section-badge--error { background: #fdf0ee; color: #8a2a1a; }
.memorire-trend--down { color: #b42318; }
.memorire-trend--up { color: #1a5c4a; }
.memorire-section-note--muted {
    color: #64748b;
    font-size: 0.8125rem;
}
.memorire-details--regional {
    margin-top: 0.5rem;
}
.memorire-section-note {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.6;
}
.memorire-mock-banner {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: #fef3e6;
    color: #9a5b12;
    font-size: 0.8125rem;
    line-height: 1.5;
}
.memorire-empty {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}
.memorire-skeleton {
    height: 5rem;
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: memorire-skeleton-shimmer 1.2s ease-in-out infinite;
}
.memorire-skeleton--map {
    height: 360px;
}
@keyframes memorire-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.memorire-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.memorire-kpi-grid--regional {
    margin-bottom: 1.25rem;
}
.memorire-kpi-grid--regional .memorire-kpi-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.memorire-kpi-grid--regional .memorire-kpi-label {
    min-height: 2.1em;
    line-height: 1.35;
}
.memorire-kpi-grid--area-pop {
    margin: 0.75rem 0 1rem;
}
.memorire-kpi-grid--mesh {
    margin-top: 0.25rem;
}
.memorire-subsection--area-pop {
    margin: 0 0 1.5rem;
    padding: 1rem 1.05rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.memorire-mesh-series {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.25rem 0 0.5rem;
}
.memorire-mesh-population-chart {
    margin: 0.75rem 0 0.25rem;
    padding: 0;
    border: none;
    background: transparent;
}
.memorire-mesh-pop-chart-wrap {
    margin-top: 0.35rem;
}
.memorire-population-floor-note {
    margin: 0.35rem 0 1rem;
    font-size: 0.6875rem;
    line-height: 1.45;
}
.memorire-mesh-series-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.5rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.memorire-mesh-series-year {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
}
.memorire-mesh-series-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
}
.memorire-map-info-note {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}
.memorire-kpi-grid--climate {
    margin-bottom: 1.25rem;
}
.memorire-climate-view-tabs {
    display: inline-flex;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: #f1f5f9;
}
.memorire-climate-view-tab {
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.memorire-climate-view-tab.is-active {
    background: #fff;
    color: #1a5c4a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.memorire-climate-view-panel {
    display: none;
}
.memorire-climate-view-panel.is-active {
    display: block;
}
.memorire-climate-metric-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.memorire-climate-metric-tab {
    padding: 0.35rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.memorire-climate-metric-tab.is-active {
    border-color: #1a5c4a;
    background: #e6f4ef;
    color: #1a5c4a;
}
.memorire-climate-chart-panels {
    margin-bottom: 0.5rem;
}
.memorire-climate-chart-panel {
    display: none;
}
.memorire-climate-chart-panel.is-active {
    display: block;
}
.memorire-climate-chart-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.85rem 0.65rem;
    background: #fafbfc;
}
.memorire-climate-chart {
    display: block;
    width: 100%;
    height: auto;
}
.memorire-climate-chart-grid {
    stroke: #e2e8f0;
    stroke-width: 1;
}
.memorire-climate-chart-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.memorire-climate-chart-area {
    opacity: 0.14;
}
.memorire-climate-chart-month,
.memorire-climate-chart-y {
    fill: #64748b;
    font-size: 10px;
    font-family: inherit;
}
.memorire-climate-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}
.memorire-climate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.memorire-climate-table th,
.memorire-climate-table td {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.memorire-climate-table td {
    text-align: right;
}
.memorire-climate-table th[scope="row"] {
    text-align: center;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}
.memorire-climate-table thead th {
    text-align: center;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}
.memorire-climate-typhoon-note {
    margin: 0;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}
.memorire-details--climate {
    margin-top: 0.75rem;
}
.memorire-kpi-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    background: #fafbfc;
}
.memorire-kpi-label {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.memorire-kpi-value {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.memorire-kpi-value--text {
    font-size: 0.9375rem;
    font-weight: 700;
}
.memorire-kpi-unit {
    margin-left: 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.memorire-kpi-sub {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}
.memorire-chart {
    margin-top: 0.5rem;
}
.memorire-chart-title {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
}
.memorire-chart-bar-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr 4.5rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
}
.memorire-chart-bar-label {
    color: #64748b;
    font-weight: 600;
}
.memorire-chart-bar-track {
    height: 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.memorire-chart-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1a5c4a, #2d8a6e);
}
.memorire-chart-bar-value {
    text-align: right;
    color: #334155;
    font-variant-numeric: tabular-nums;
}
.memorire-chart--vbar {
    margin-top: 1rem;
}
.memorire-vbar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    min-height: 11rem;
    padding: 0.5rem 0.25rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.memorire-vbar-item {
    flex: 1 1 0;
    min-width: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.memorire-vbar-value {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.memorire-vbar-track {
    width: 100%;
    max-width: 3rem;
    height: 8rem;
    display: flex;
    align-items: flex-end;
    background: #f1f5f9;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}
.memorire-vbar-fill {
    display: block;
    width: 100%;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #2d8a6e, #1a5c4a);
}
.memorire-vbar-year {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.memorire-chart-note {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}
.memorire-regional-layout {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}
.memorire-kpi-card--vacancy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.memorire-vacancy-pie-wrap {
    position: relative;
    width: 8.5rem;
    height: 8.5rem;
    margin: 0.25rem auto 0.75rem;
}
.memorire-vacancy-pie {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.memorire-vacancy-pie-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}
.memorire-vacancy-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: #475569;
}
.memorire-vacancy-legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}
.memorire-vacancy-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.memorire-vacancy-legend-dot--vacant { background: #b45309; }
.memorire-vacancy-legend-dot--occupied { background: #1a5c4a; }
.memorire-table--compare th,
.memorire-table--compare td {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.memorire-table--compare th[scope="row"],
.memorire-table--compare thead th:first-child {
    text-align: left;
}
.memorire-table--compare thead th {
    text-align: center;
}
.memorire-compare-note,
.memorire-hazard-scope-note {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
}
.memorire-map-wrap--life {
    margin-top: 0.5rem;
    position: relative;
}
.memorire-map--life {
    width: 100%;
    height: 360px;
    min-height: 360px;
}
.memorire-life-map-block {
    margin: 1rem 0 1.25rem;
}
.memorire-map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    font-size: 0.75rem;
    color: #64748b;
}
.memorire-map-legend--life,
.memorire-map-legend--surrounding {
    margin-top: 0.65rem;
}
.memorire-map-scope-note {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}
.memorire-map-legend-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
    flex-shrink: 0;
}
.memorire-map-legend-pin > span {
    transform: rotate(45deg);
    line-height: 1;
}
.memorire-streetview-panorama {
    width: 100%;
    height: 360px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}
@media (min-width: 768px) {
    .memorire-regional-layout {
        grid-template-columns: minmax(220px, 280px) 1fr;
        align-items: start;
    }
}
.memorire-map-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.memorire-map-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
}
.memorire-map-legend-dot--home {
    width: 0.85rem;
    height: 0.85rem;
    background: #c87820;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #c87820;
}
.memorire-life-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.memorire-life-tab {
    padding: 0.4rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.memorire-life-tab.is-active {
    border-color: #1a5c4a;
    background: #e6f4ef;
    color: #1a5c4a;
}
.memorire-life-panel {
    display: none;
}
.memorire-life-panel.is-active {
    display: block;
}
.memorire-life-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.memorire-life-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}
.memorire-life-item:hover,
.memorire-life-item.is-selected {
    border-color: #1a5c4a;
    background: #f6fbf9;
}
.memorire-life-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}
.memorire-life-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}
.memorire-life-item-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
}
.memorire-life-item-walk {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a5c4a;
}
.memorire-life-item-walk--estimated {
    color: #64748b;
}
.memorire-life-aggregate {
    margin: 0 0 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fffbeb;
}
.memorire-life-aggregate-title {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #92400e;
}
.memorire-life-aggregate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}
.memorire-life-aggregate-card {
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #fde68a;
}
.memorire-life-aggregate-label {
    margin: 0;
    font-size: 0.75rem;
    color: #78716c;
}
.memorire-life-aggregate-stars {
    margin: 0.25rem 0;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    color: #b45309;
}
.memorire-life-aggregate-meta {
    margin: 0;
    font-size: 0.6875rem;
    color: #64748b;
}
.memorire-life-hint {
    margin: 0.65rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}
.memorire-report-section--disaster .memorire-report-section-title {
    color: #7f1d1d;
}
.memorire-risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}
.memorire-risk-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff5f5;
}
.memorire-risk-card--low {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.memorire-risk-card--medium {
    border-color: #fde68a;
    background: #fffbeb;
}
.memorire-risk-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #b42318;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.25rem;
    text-align: center;
}
.memorire-risk-card--low .memorire-risk-icon {
    background: #1a5c4a;
}
.memorire-risk-card--medium .memorire-risk-icon {
    background: #c87820;
}
.memorire-risk-label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
}
.memorire-risk-level {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}
.memorire-flood-highlight {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}
.memorire-flood-highlight--safe {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
}
.memorire-flood-highlight-head {
    margin-bottom: 0.65rem;
}
.memorire-data-source-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #1e3a8a;
    background: #dbeafe;
}
.memorire-data-source-badge--tokyo {
    color: #0f513d;
    background: #d1fae5;
}
.memorire-flood-highlight-scenario {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
}
.memorire-flood-depth-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}
.memorire-flood-depth-value {
    margin: 0.15rem 0 0;
    font-size: 2rem;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.1;
}
.memorire-flood-highlight--safe .memorire-flood-depth-value {
    color: #1a5c4a;
}
.memorire-flood-depth-unit {
    margin-left: 0.15rem;
    font-size: 1rem;
    font-weight: 700;
}
.memorire-flood-meta {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.memorire-flood-note {
    margin: 0.55rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
}
.memorire-flood-note a {
    color: #1a5c4a;
    font-weight: 700;
}
.memorire-hazard-external {
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.memorire-hazard-external-title {
    margin: 0 0 0.45rem;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
}
.memorire-hazard-external-message {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
}
.memorire-hazard-external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.memorire-hazard-external-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #1a5c4a;
    background: #fff;
    color: #1a5c4a;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}
.memorire-hazard-external-link:hover {
    background: #ecfdf5;
}
.memorire-layer-toggles {
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}
.memorire-layer-toggles-title {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
}
.memorire-layer-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.memorire-score-gauge {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
}
.memorire-score-gauge-label {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
}
.memorire-score-gauge-track {
    height: 0.65rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.memorire-score-gauge-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4a2a7a, #7c3aed);
}
.memorire-score-gauge-value {
    margin: 0.45rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}
.memorire-score-gauge-value span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}
.memorire-property-summary {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: #f0f7f4;
    border: 1px solid #cce8de;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #334155;
}
.memorire-property-summary p {
    margin: 0.25rem 0;
}
.memorire-tag {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: #e6f4ef;
    color: #1a5c4a;
    font-size: 0.6875rem;
    font-weight: 700;
}
.memorire-subsection {
    margin-top: 1rem;
}
.memorire-urban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.5rem;
}
.memorire-urban-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: #fafbfc;
}
.memorire-urban-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.memorire-urban-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}
.memorire-term-hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #1a5c4a;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.memorire-term-hint-btn:hover,
.memorire-term-hint-btn:focus-visible {
    background: #147a5f;
    outline: 2px solid #99d5c2;
    outline-offset: 1px;
}
.memorire-hint-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.memorire-hint-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.memorire-hint-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.memorire-hint-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    max-height: min(86vh, 36rem);
    overflow: auto;
    padding: 1.25rem 1.35rem 1.35rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    transform: translateY(14px) scale(0.97);
    transition: transform 0.28s ease;
}
.memorire-hint-modal.is-open .memorire-hint-modal-dialog {
    transform: translateY(0) scale(1);
}
.memorire-hint-modal-close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.memorire-hint-modal-close:hover,
.memorire-hint-modal-close:focus-visible {
    background: #e2e8f0;
    outline: 2px solid #94a3b8;
    outline-offset: 1px;
}
.memorire-hint-modal-title {
    margin: 0 2rem 0.85rem 0;
    font-size: 1.0625rem;
    color: #0f172a;
    line-height: 1.4;
}
.memorire-hint-modal-body {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.7;
}
.memorire-hint-modal-body p {
    margin: 0 0 0.7rem;
}
.memorire-hint-modal-body p:last-child {
    margin-bottom: 0;
}
.memorire-hint-modal-more {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e2e8f0;
}
.memorire-hint-modal-more-label {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a5c4a;
}
.memorire-hint-modal-links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.memorire-hint-modal-links li + li {
    margin-top: 0.4rem;
}
.memorire-hint-modal-link {
    color: #1a5c4a;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.memorire-hint-modal-link:hover {
    color: #147a5f;
}
.memorire-table-wrap {
    overflow-x: auto;
    margin: 0.5rem 0;
}
.memorire-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.memorire-table th,
.memorire-table td {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}
.memorire-table th {
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
}
.memorire-tx-block {
    margin-top: 1rem;
}
.memorire-tx-note {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}
.memorire-details {
    margin-top: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    background: #fafbfc;
}
.memorire-details summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    color: #1a5c4a;
}
.memorire-detail-list {
    margin: 0.65rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.6;
}
.memorire-detail-list p {
    margin: 0.2rem 0 0.5rem;
}
.memorire-source-footer {
    margin-top: 1rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.55;
}
.memorire-source-footer a {
    color: #1a5c4a;
}
.memorire-life-group-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.memorire-life-group-tab {
    flex: 1 1 auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}
.memorire-life-group-tab.is-active {
    border-color: #1a5c4a;
    background: #e6f4ef;
    color: #1a5c4a;
}
.memorire-life-group-panel {
    display: none;
}
.memorire-life-group-panel.is-active {
    display: block;
}
.memorire-life-item-icon {
    flex-shrink: 0;
    margin-right: 0.35rem;
}
.memorire-life-item {
    display: flex;
    align-items: center;
}
.memorire-layer-hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}
.memorire-property-summary--sunlight {
    background: #f5f0fb;
    border-color: #ddd6fe;
}
.memorire-streetview-img,
.memorire-staticmap-img {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}
.memorire-map-extras {
    margin-top: 1rem;
}
.memorire-layer-toggles--map {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e2e8f0;
}
.memorire-urban-grid--sunlight {
    margin-bottom: 0.75rem;
}
.memorire-sections-note {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #64748b;
}
.memorire-section-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.75rem;
}
.memorire-section-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #fff;
    border-top: 3px solid #94a3b8;
}
.memorire-section-card--ok { border-top-color: #1a5c4a; }
.memorire-section-card--stub { border-top-color: #c87820; }
.memorire-section-card--pending,
.memorire-section-card--not_configured { border-top-color: #94a3b8; }
.memorire-section-card--phase2 { border-top-color: #4a2a7a; }
.memorire-section-card-title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
}
.memorire-section-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}
.memorire-section-card-msg {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .memorire-form-row {
        flex-direction: column;
    }
    .memorire-submit {
        width: 100%;
    }
    .memorire-dl {
        grid-template-columns: 1fr;
    }
    .memorire-map--report {
        height: 280px;
    }
    .memorire-summary-main {
        flex-direction: column;
    }
    .memorire-summary-streetview-link {
        width: 100%;
        max-width: 240px;
    }
    .memorire-result-actions-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .memorire-result-actions .memorire-save-report-btn,
    .memorire-result-actions .memorire-reports-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .memorire-save-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .memorire-save-report-btn--sticky {
        width: 100%;
    }
    .memorire-skeleton--map {
        height: 280px;
    }
    .memorire-chart-bar-row {
        grid-template-columns: 2.25rem 1fr 3.75rem;
        font-size: 0.75rem;
    }
}

/* ── 総合窓口（問い合わせフォーム） ── */
.desk-lead {
    margin: 0;
    color: #475569;
    line-height: 1.75;
    font-size: 0.9375rem;
}
.desk-flash {
    font-size: 0.9375rem;
    line-height: 1.6;
}
.desk-flash--ok {
    background: #e8f3ef;
    color: #1a5c4a;
    border-left: 3px solid #1a5c4a;
}
.desk-flash--err {
    background: #fdf0ee;
    color: #8a2a1a;
    border-left: 3px solid #c83820;
}
.desk-error-list {
    margin: 0;
    padding-left: 1.2rem;
}
.desk-form-field {
    margin-bottom: 1rem;
}
.desk-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
}
.desk-input,
.desk-select,
.desk-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}
.desk-textarea {
    min-height: 10rem;
    resize: vertical;
}
.desk-hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.6;
}
.desk-submit {
    width: 100%;
    max-width: 16rem;
}
.desk-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.desk-history-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.desk-history-item:last-child {
    border-bottom: none;
}
.desk-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.desk-history-meta {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.desk-history-link {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
}
.desk-history-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.desk-history-badge--open {
    background: #fef3c7;
    color: #a16207;
}
.desk-history-badge--replied {
    background: #e8f3ef;
    color: #1a5c4a;
}
.desk-history-badge--closed {
    background: #f1f5f9;
    color: #64748b;
}