/* ==========================================================================
   ワタシホーム リッチデザイン拡張CSS
   画像アイコン配置＋レイアウト刷新
   ========================================================================== */

/* ===== 全体トーン ===== */
body {
    background:
        radial-gradient(circle at 90% -10%, rgba(30,94,174,.05), transparent 50%),
        radial-gradient(circle at -10% 40%, rgba(59,165,92,.04), transparent 40%),
        #F7F9FC;
}

/* ===== ヒーロー（リッチ版） ===== */
.wh-hero--rich {
    position: relative;
    margin: 20px auto 40px;
    max-width: 1200px;
    padding: 56px 40px 96px;
    background:
        linear-gradient(135deg, #E8F0FA 0%, #F0F7FC 50%, #E9F6EE 100%),
        #EAF2FB;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(30, 94, 174, 0.08);
}
.wh-hero--rich:before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(30,94,174,.15), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.wh-hero--rich:after {
    content: "";
    position: absolute;
    bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(59,165,92,.15), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.wh-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: center;
}
.wh-hero__body { max-width: 640px; }
.wh-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.95);
    color: var(--wh-primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(30, 94, 174, 0.08);
}
.wh-hero__eyebrow-dot {
    width: 8px; height: 8px;
    background: var(--wh-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59, 165, 92, .2);
}
.wh-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--wh-primary-dark);
    line-height: 1.4;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.wh-hero__accent {
    background: linear-gradient(90deg, var(--wh-primary), var(--wh-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wh-hero__subtitle {
    font-size: 15px;
    color: var(--wh-text-sub);
    line-height: 1.8;
    margin-bottom: 24px;
}
.wh-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.wh-hero__badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(30, 94, 174, 0.06);
    border-left: 3px solid var(--wh-primary);
}
.wh-hero__badge img { width: 24px; height: 24px; object-fit: contain; }
.wh-hero__badge-label { font-size: 10px; font-weight: 700; color: var(--wh-text-sub); }
.wh-hero__badge-value { font-size: 13px; font-weight: 700; color: var(--wh-primary-dark); }

.wh-hero__visual {
    position: relative;
    width: 340px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wh-hero__visual-main {
    width: 260px;
    height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(30, 94, 174, 0.2));
    animation: wh-float 4s ease-in-out infinite;
}
.wh-hero__visual-sub {
    position: absolute;
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(30, 94, 174, 0.15);
    animation: wh-float 5s ease-in-out infinite;
}
.wh-hero__visual-sub--tl { top: 20px; left: 0; animation-delay: -1s; }
.wh-hero__visual-sub--br { bottom: 30px; right: 0; animation-delay: -2.5s; }
@keyframes wh-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wh-hero__wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: #F7F9FC;
    -webkit-mask: radial-gradient(60px 60px at 60px 0, transparent 98%, #000) 0 0/120px 100% repeat-x;
    mask: radial-gradient(60px 60px at 60px 0, transparent 98%, #000) 0 0/120px 100% repeat-x;
}

/* ===== カテゴリーショートカット（画像版） ===== */
.wh-shortcut__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}
.wh-shortcut__item {
    background: #fff;
    border: 1px solid var(--wh-border);
    border-radius: 16px;
    padding: 20px 12px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--wh-text);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 8px rgba(30, 94, 174, 0.04);
    position: relative;
    overflow: hidden;
}
.wh-shortcut__item:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,94,174,.06), rgba(59,165,92,.04));
    opacity: 0;
    transition: opacity .3s;
}
.wh-shortcut__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(30, 94, 174, 0.15);
    border-color: var(--wh-primary);
    color: var(--wh-primary-dark);
}
.wh-shortcut__item:hover:before { opacity: 1; }
.wh-shortcut__img-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #F0F7FC, #E9F6EE);
    border-radius: 50%;
    transition: transform .3s;
}
.wh-shortcut__item:hover .wh-shortcut__img-wrap {
    transform: scale(1.1) rotate(-3deg);
}
.wh-shortcut__img-wrap img {
    width: 44px; height: 44px;
    object-fit: contain;
}
.wh-shortcut__label {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    display: block;
}

/* ===== セクションヘッダー（アイコン付き） ===== */
.wh-section__header {
    background:
        linear-gradient(135deg, rgba(232,240,250,.7), rgba(233,246,238,.6)),
        #FFFFFF;
    border: 1px solid var(--wh-border);
    border-left: 5px solid var(--wh-primary);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(30, 94, 174, 0.04);
}
.wh-section__title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wh-section__icon {
    width: 40px; height: 40px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(30, 94, 174, 0.1);
}
.wh-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--wh-primary-dark);
    margin: 0;
    letter-spacing: -0.01em;
}
.wh-section__more {
    font-size: 13px;
    color: var(--wh-primary);
    text-decoration: none;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.6);
    border: 1px solid var(--wh-border);
    transition: all .2s;
}
.wh-section__more:hover {
    background: var(--wh-primary);
    color: #fff;
    border-color: var(--wh-primary);
}

/* ===== 対応エリア（家イラスト付きカード） ===== */
.wh-area-grid--rich {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.wh-area-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid var(--wh-border);
    border-radius: 14px;
    padding: 14px 8px;
    text-decoration: none;
    color: var(--wh-text);
    transition: all .3s;
    box-shadow: 0 2px 6px rgba(30, 94, 174, 0.04);
    position: relative;
    overflow: hidden;
}
.wh-area-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(30,94,174,.06));
    opacity: 0;
    transition: opacity .3s;
}
.wh-area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(30, 94, 174, 0.15);
    border-color: var(--wh-primary);
    color: var(--wh-primary-dark);
}
.wh-area-card:hover:before { opacity: 1; }
.wh-area-card__img-wrap {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F7FC, #E9F6EE);
    border-radius: 50%;
    margin-bottom: 8px;
    transition: transform .3s;
}
.wh-area-card:hover .wh-area-card__img-wrap {
    transform: rotate(-6deg) scale(1.06);
}
.wh-area-card__img-wrap img {
    width: 40px; height: 40px;
    object-fit: contain;
}
.wh-area-card__name {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    font-weight: 700;
}

/* ===== 住まい特集カード（画像＋テキスト） ===== */
.wh-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.wh-feature-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--wh-border);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: var(--wh-text);
    transition: all .3s;
    box-shadow: 0 2px 8px rgba(30, 94, 174, 0.05);
}
.wh-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(30, 94, 174, 0.13);
    border-color: var(--wh-primary);
}
.wh-feature-card__img-wrap {
    flex-shrink: 0;
    width: 80px; height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F7FC, #E9F6EE);
    border-radius: 16px;
}
.wh-feature-card__img-wrap img {
    width: 56px; height: 56px;
    object-fit: contain;
}
.wh-feature-card__body { flex: 1; min-width: 0; }
.wh-feature-card__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--wh-primary-dark);
    margin: 0 0 6px;
}
.wh-feature-card__desc {
    font-size: 13px;
    color: var(--wh-text-sub);
    line-height: 1.6;
    margin: 0 0 8px;
}
.wh-feature-card__more {
    font-size: 12px;
    font-weight: 700;
    color: var(--wh-primary);
}

/* ===== 記事カード（アイキャッチなしフォールバック） ===== */
.wh-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #F0F7FC, #E9F6EE);
}
.wh-card__thumb-placeholder img {
    width: 72px; height: 72px;
    object-fit: contain;
    opacity: .7;
}

/* ===== 求人カード ===== */
.wh-job-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wh-job-card__head img {
    width: 40px; height: 40px;
    object-fit: contain;
    background: linear-gradient(135deg, #F0F7FC, #E9F6EE);
    padding: 6px;
    border-radius: 10px;
}

/* ===== 企業カード ===== */
.wh-card--company { padding: 18px; }
.wh-card__company-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.wh-card__company-img {
    width: 60px; height: 60px;
    object-fit: contain;
    background: linear-gradient(135deg, #F0F7FC, #E9F6EE);
    padding: 6px;
    border-radius: 12px;
    flex-shrink: 0;
}
.wh-card__company-city {
    font-size: 11px;
    font-weight: 700;
    color: var(--wh-text-sub);
    display: block;
    margin-bottom: 4px;
}

/* ===== サイドボックス共通 ===== */
.wh-sidebox {
    background: #fff;
    border: 1px solid var(--wh-border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(30, 94, 174, 0.04);
    margin-bottom: 20px;
}
.wh-sidebox__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--wh-primary-light);
}
.wh-sidebox__icon {
    width: 32px; height: 32px;
    object-fit: contain;
}
.wh-sidebox__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--wh-primary-dark);
    margin: 0;
}

/* ランキングサムネイルがアイコンフォールバックの場合 */
.wh-ranking__thumb--icon {
    background: linear-gradient(135deg, #F0F7FC, #E9F6EE);
    padding: 10px;
    object-fit: contain;
}

/* ===== LINEボックス（LINEロゴ入り） ===== */
.wh-line-box {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    color: #fff;
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 185, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.wh-line-box:before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
}
.wh-line-box__logo {
    width: 56px; height: 56px;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.wh-line-box__title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.wh-line-box__lead {
    font-size: 12px;
    line-height: 1.6;
    opacity: .95;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.wh-line-box__btn {
    display: inline-block;
    background: #fff;
    color: #06C755;
    padding: 10px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    position: relative;
    z-index: 1;
    transition: transform .2s;
}
.wh-line-box__btn:hover {
    transform: scale(1.04);
    color: #06C755;
}

/* ===== メルマガボックス強化 ===== */
.wh-newsletter {
    background: #fff;
    border: 1px solid var(--wh-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(30, 94, 174, 0.04);
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
    .wh-hero--rich { padding: 40px 24px 72px; }
    .wh-hero__inner { grid-template-columns: 1fr; }
    .wh-hero__visual { margin: 0 auto; width: 240px; height: 240px; }
    .wh-hero__visual-main { width: 200px; height: 200px; }
    .wh-hero__title { font-size: 26px; }
    .wh-shortcut__grid { grid-template-columns: repeat(4, 1fr); }
    .wh-area-grid--rich { grid-template-columns: repeat(4, 1fr); }
    .wh-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .wh-hero--rich { padding: 32px 20px 60px; margin: 12px; border-radius: 20px; }
    .wh-hero__title { font-size: 22px; }
    .wh-hero__badges { flex-direction: column; }
    .wh-hero__badge { width: 100%; }
    .wh-shortcut__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .wh-shortcut__item { padding: 14px 8px 12px; }
    .wh-shortcut__img-wrap { width: 52px; height: 52px; }
    .wh-shortcut__img-wrap img { width: 34px; height: 34px; }
    .wh-shortcut__label { font-size: 11px; }
    .wh-area-grid--rich { grid-template-columns: repeat(3, 1fr); }
    .wh-area-card__img-wrap { width: 48px; height: 48px; }
    .wh-area-card__img-wrap img { width: 32px; height: 32px; }
    .wh-section__title { font-size: 16px; }
    .wh-section__icon { width: 32px; height: 32px; }
    .wh-feature-card { padding: 16px; gap: 12px; }
    .wh-feature-card__img-wrap { width: 60px; height: 60px; }
    .wh-feature-card__img-wrap img { width: 44px; height: 44px; }
}
