
:root {
    --green: #245b3b;
    --green-light: #edf5ed;
    --text: #26332b;
    --muted: #6b776e;
    --line: #e2e9e2;
    --paper: #ffffff;
}

.category-section {
    padding: 42px 0 64px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading > span {
    color: var(--green);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.12em;
}

.section-heading h2 {
    margin-top: 4px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    overflow: hidden;
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px #193b2014;
}

.category-card:focus-visible,
.back-link:focus-visible {
    outline: 3px solid #70a97d;
    outline-offset: 4px;
}

.category-visual {
    min-height: 170px;
    display: grid;
    place-items: center;
    background: var(--green-light);
}

.category-visual span {
    font-size: 68px;
    filter: drop-shadow(0 4px 3px #00000012);
}

.visual-entrance { background: linear-gradient(135deg, #e2eee4, #c3d8c6); }
.visual-planting { background: linear-gradient(135deg, #e5f0d8, #b5d0a6); }
.visual-pruning { background: linear-gradient(135deg, #e2efe7, #a9cbb5); }
.visual-removal { background: linear-gradient(135deg, #f1eddd, #d9d2a9); }
.visual-lawn { background: linear-gradient(135deg, #e2f1d9, #afd39b); }
.visual-pests { background: linear-gradient(135deg, #e9eee0, #cbd6b8); }

.category-info {
    padding: 18px;
}

.category-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.category-info p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.card-link {
    color: var(--green);
    font-size: 13px;
    font-weight: bold;
}

.video-section {
    padding: 28px 0;
}

.empty-state {
    padding: 36px 20px;
    text-align: center;
    background: white;
    border: 1px dashed #bdcdbf;
    border-radius: 14px;
}

.empty-icon {
    font-size: 40px;
}

.empty-state h3 {
    margin-bottom: 4px;
}

.empty-state p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    color: var(--green);
    background: var(--green-light);
    border-radius: 8px;
}

@media (max-width: 760px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-visual {
        min-height: 130px;
    }

    .category-visual span {
        font-size: 54px;
    }

    .category-info {
        padding: 13px;
    }

    .category-info h3 {
        font-size: 15px;
    }

    .category-info p {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-visual {
        min-height: 150px;
    }
}


/* ==========================================================
   インタラクティブマップ（家・お庭の写真＋クリックできるピン）
   ========================================================== */

.map-section {
    padding: 42px 0 0;
}

.guide-map {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #dfe8e0;
    box-shadow: 0 14px 34px #193b2016;
}

.guide-map-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
}

/* 案内ボックス（左上） */
.map-intro {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    max-width: 300px;
    padding: 14px 20px;
    background: rgba(16, 38, 24, 0.85);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* 案内ボックス（左下・ワンポイント） */
.map-callout {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    padding: 12px 18px;
    background: rgba(16, 54, 32, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.map-callout-icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* クリックできるピン（アイコンの丸＋常時表示のラベル） */
.map-pin {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    transform: translate(-50%, -50%);
    text-decoration: none;
}

.map-pin-dot {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.6), 0 8px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-pin-label {
    margin-left: -12px;
    padding: 7px 14px 7px 24px;
    background: rgba(16, 38, 24, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    border-radius: 20px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.map-pin:hover .map-pin-dot,
.map-pin:focus-visible .map-pin-dot {
    transform: scale(1.12);
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85), 0 10px 22px rgba(0, 0, 0, 0.35);
}

.map-pin:hover .map-pin-label,
.map-pin:focus-visible .map-pin-label {
    background: rgba(16, 58, 34, 0.96);
}

.map-empty {
    margin-bottom: 6px;
}

@media (max-width: 760px) {
    .guide-map-img {
        max-height: 420px;
    }

    .map-intro,
    .map-callout {
        max-width: 72%;
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    .map-callout-icon {
        font-size: 18px;
    }

    .map-pin-dot {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .map-pin-label {
        font-size: 11px;
        padding: 5px 11px 5px 18px;
    }
}

@media (max-width: 420px) {
    .guide-map-img {
        max-height: 320px;
    }

    .map-intro,
    .map-callout {
        max-width: 64%;
        padding: 8px 12px;
        font-size: 11px;
    }

    .map-pin-dot {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .map-pin-label {
        max-width: 108px;
        white-space: normal;
        line-height: 1.3;
        font-size: 10px;
        padding: 4px 9px 4px 15px;
    }
}


/* ==========================================================
   カテゴリー別ページ：動画一覧
   ========================================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.video-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-thumb {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-card-body {
    padding: 16px 18px;
}

.video-card-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.video-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
