/*
Theme Name: Repsuki Theme
Author: あなたの名前
Description: 爬虫類検索サイトのオリジナルテーマ
Version: 1.0
*/

/* =========================================
   1. 基本設定 (Base)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* =========================================
   2. ヘッダー (Header)
   ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #FF5A5F;
    margin-left: -10px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.nav a:hover {
    color: #FF5A5F;
}

.user-menu {
    display: flex;
    gap: 16px;
}

/* =========================================
   3. 共通パーツ (Components)
   ========================================= */
/* ボタン類 */
.btn {
    padding: 8px 16px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background: #FF5A5F;
    color: white;
}

.btn-primary:hover {
    background: #E04E53;
}

.btn-secondary {
    background: white;
    color: #222;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 8px;
}

.shop-button {
    width: 100%;
    padding: 12px;
    background: #FF5A5F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: block;
    margin-top: 16px;
}

.shop-button:hover {
    background: #E04E53;
}

/* パンくずリスト */
.breadcrumb {
    padding: 20px 80px;
    background: #fff;
}

.breadcrumb-list {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #717171;
}

.breadcrumb-separator {
    color: #ddd;
}

.breadcrumb-current {
    color: #222;
    font-weight: 600;
}

/* コンテナ・セクション共通 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 40px;
}

.section {
    margin-bottom: 64px;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: #717171;
    font-size: 16px;
}

/* =========================================
   4. TOPページ (Hero Swiper版)
   ========================================= */
/* ヒーローセクション全体の枠 */
.hero-section-wrapper {
    position: relative;
    height: 700px;
    /* 高さを広げて写真エリアを確保 */
    overflow: hidden;
}

/* Swiper本体（背景）の設定 */
.hero-swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* 一番後ろ */
}

/* 各スライドの画像設定 */
.swiper-slide {
    background-size: cover;
    background-position: center top;
    /* 写真の上部（顔など）が見えるよう上寄せ、明るさも少し上げる */
    filter: brightness(0.75);
}

/* 文字コンテンツを乗せるレイヤー */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* スライドより手前 */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* 下寄せ：上部に写真を見せ、下部にカード配置 */
    padding-bottom: 32px;
    color: white;
    text-align: center;
    /* 上部は透明→下部だけ軽くグラデで写真とカードの境目を自然に */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* コンテンツの中身 */
.hero-content-inner h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content-inner p {
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* スマホ対応の調整（以前の内容を反映） */
@media (max-width: 600px) {
    .hero-section-wrapper {
        height: 580px;
    }

    .hero-content-overlay {
        align-items: flex-end;
        /* 下寄せ */
        padding-bottom: 16px;
    }

    .hero-content-inner {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 16px;
    }

    .hero-content-inner h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero-content-inner p {
        font-size: 13px;
        margin-bottom: 16px;
        padding: 0 20px;
    }

    .hero-search-bar {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* スマホ：検索ボックスのスタイル調整 */
    .hero-search-bar .search-item label {
        text-align: center;
        pointer-events: none;
    }

    .hero-search-bar .search-item select,
    .hero-search-bar .search-item .search-select-ghost {
        width: 100%;
        text-align: center;
        text-align-last: center;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: transparent;
        border: none;
        font-size: 16px;
        color: #717171;
        padding: 8px 0;
    }
}

/* ズームアニメーションの定義（追加） */
@keyframes zoomUp {
    0% {
        transform: scale(1);
        /* 最初は等倍 */
    }

    100% {
        transform: scale(1.20);
        /* ゆっくり1.15倍まで拡大 */
    }
}

/* ▲▲▲ ここまで追加 ▲▲▲ */


.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* カテゴリ横スクロール */
.category-section {
    padding: 32px 40px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 71px;
    background: white;
    z-index: 99;
}

.category-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f7f7f7;
    min-width: 120px;
    color: #222;
    opacity: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.category-item.active {
    background: #FF5A5F;
    color: white;
}

/* 初心者向け - やさしいグリーン */
.category-beginner {
    background: #e8f5ee;
    border-color: #b8e0c8;
    color: #1a5c38;
}
.category-beginner:hover {
    background: #d4edde;
    border-color: #2d7a4f;
    color: #1a5c38;
}

/* かっこいい - アクティブなオレンジ */
.category-cool {
    background: #fff3e0;
    border-color: #ffd49a;
    color: #b45309;
}
.category-cool:hover {
    background: #ffe8c8;
    border-color: #f59e0b;
    color: #b45309;
}

/* かわいい - キュートなピンク */
.category-cute {
    background: #fce4ec;
    border-color: #f5a6b8;
    color: #c2185b;
}
.category-cute:hover {
    background: #f8d0da;
    border-color: #e91e63;
    color: #c2185b;
}

/* 省スペース - おだやかなブルー */
.category-space {
    background: #e3f2fd;
    border-color: #a0c4f0;
    color: #1565c0;
}
.category-space:hover {
    background: #d0e8fc;
    border-color: #42a5f5;
    color: #1565c0;
}
.category-kodawari {
    background: #fff8e1;
    border-color: #f0d68a;
    color: #f57f17;
}
.category-kodawari:hover {
    background: #fff0c0;
    border-color: #ffca28;
    color: #f57f17;
}

.category-icon {
    font-size: 36px;
}

.category-name {
    font-size: 14px;
    font-weight: 700;
}

/* 動物カテゴリグリッド */
.animal-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.animal-category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
}

.animal-category-card:hover {
    transform: translateY(-4px);
}

.animal-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animal-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.animal-category-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.animal-category-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.animal-category-count {
    font-size: 12px;
    opacity: 0.8;
}

/* 記事カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    display: block;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
}

.card-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 4/3;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF5A5F;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    z-index: 2;
}

.save-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-rating {
    font-size: 14px;
    margin-bottom: 6px;
}

.card-description {
    font-size: 14px;
    color: #717171;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-size: 16px;
    font-weight: 600;
}

.card-price-label {
    font-weight: 400;
    color: #717171;
}

/* ライフスタイルグリッド */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lifestyle-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 240px;
}

.lifestyle-card:hover {
    transform: translateY(-4px);
}

.lifestyle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lifestyle-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.lifestyle-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.lifestyle-description {
    font-size: 14px;
    opacity: 0.9;
}


/* =========================================
   5. 詳細ページ (single.php)
   ========================================= */
/* メインレイアウト */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px 64px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
}

.main-content {
    min-width: 0;
}

/* ギャラリー */
.gallery-container {
    padding: 0 80px 32px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:first-child {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

/* 種名ヘッダー */
.species-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 32px;
}

.species-category {
    color: #717171;
    font-size: 14px;
    margin-bottom: 8px;
}

.species-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.species-scientific {
    color: #717171;
    font-size: 16px;
    font-style: italic;
    margin-bottom: 16px;
}

.species-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.species-tag {
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    color: #555;
}

.species-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.species-rating span:last-child {
    color: #717171;
}

/* コンテンツセクション */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #222;
}

.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* 冒頭まとめセクション */
.summary-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
}

.summary-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
    text-align: center;
    border-bottom: 3px solid #FF5A5F;
    padding-bottom: 12px;
}

.summary-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: center;
    margin-bottom: 24px;
}

.summary-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.summary-point {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.summary-point-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #FF5A5F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-point-items {
    list-style: none;
    padding-left: 0;
}

.summary-point-items li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 14px;
    color: #555;
}

.summary-point-items li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FF5A5F;
    font-weight: bold;
}

.summary-conclusion {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #FF5A5F;
}

/* レイアウト */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

/* スペック表 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-item {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.info-label {
    font-size: 13px;
    color: #717171;
    margin-bottom: 8px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
}

/* 飼育ガイドリスト */
.care-list {
    list-style: none;
    padding-left: 0;
}

.care-item {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.care-label {
    width: 120px;
    font-weight: 600;
    color: #222;
    flex-shrink: 0;
}

.care-value {
    color: #444;
    flex: 1;
}

.care-item:last-child {
    border-bottom: none;
}

/* アドバイスボックス */
.advice-box {
    background: #f7f7f7;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #FF5A5F;
    margin-top: 16px;
}

.advice-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advice-box p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* モルフカード */
.morph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.morph-card {
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.morph-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.morph-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.morph-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.morph-info {
    padding: 16px;
}

.morph-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.morph-description {
    font-size: 13px;
    color: #717171;
    margin-bottom: 8px;
    line-height: 1.5;
}

.morph-price {
    font-size: 14px;
    font-weight: 600;
    color: #FF5A5F;
}

/* サイドバー */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.price-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.price-label {
    font-size: 14px;
    color: #717171;
    margin-bottom: 24px;
}

.difficulty-section {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.difficulty-label {
    font-size: 14px;
    color: #717171;
    margin-bottom: 12px;
}

.difficulty-bars {
    display: flex;
    gap: 6px;
}

.difficulty-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
}

.difficulty-bar.active {
    background: #FF5A5F;
}

.info-box {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.info-box-title {
    font-size: 14px;
    color: #717171;
    margin-bottom: 8px;
}

.info-box-value {
    font-size: 18px;
    font-weight: 600;
}

/* ショップセクション */
.shops-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #e0e0e0;
}

.shops-intro {
    font-size: 15px;
    color: #717171;
    margin-bottom: 24px;
    line-height: 1.6;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- ショップカルーセル --- */
.shops-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shops-carousel {
    overflow: hidden;
    flex: 1;
}

.shops-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: none;
}

.shops-carousel-track .shop-card-new {
    display: none;
}

.shops-carousel-track .shop-card-new.carousel-visible {
    display: flex;
}

.shops-carousel-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d4e4da;
    background: #fff;
    font-size: 20px;
    color: #2d7a4f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shops-carousel-arrow:hover {
    background: #e8f5ee;
    border-color: #2d7a4f;
}

.shops-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.shops-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.shops-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4e4da;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.shops-carousel-dot.active {
    background: #2d7a4f;
}

/* --- ショップ詳細ポップアップ --- */
.shop-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.shop-popup-overlay.active {
    display: flex;
}

.shop-popup {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    animation: shopPopupIn 0.25s ease;
}

@keyframes shopPopupIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.shop-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.shop-popup-close:hover {
    color: #333;
}

.shop-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.shop-popup-icon {
    font-size: 32px;
}

.shop-popup-header h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1a2e23;
    margin: 0;
    padding-right: 32px;
}

.shop-popup-body {
    padding: 20px 24px;
}

.shop-popup-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-popup-table tr {
    border-bottom: 1px solid #f5f5f5;
}

.shop-popup-table th {
    font-size: 13px;
    font-weight: 600;
    color: #6b7c72;
    padding: 10px 12px 10px 0;
    white-space: nowrap;
    vertical-align: top;
    width: 110px;
}

.shop-popup-table td {
    font-size: 14px;
    color: #1a2e23;
    padding: 10px 0;
    line-height: 1.6;
}

.shop-popup-url-wrap {
    margin-top: 16px;
    text-align: center;
}

.shop-popup-url-wrap a {
    display: inline-block;
    padding: 10px 24px;
    background: #e8f5ee;
    color: #2d7a4f;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.shop-popup-url-wrap a:hover {
    background: #d0ebdb;
}

/* --- ショップを探す（地域別グリッド） --- */
.shop-area-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.shop-area-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #1a2e23;
    transition: all 0.2s;
}

.shop-area-card:hover {
    border-color: #2d7a4f;
    box-shadow: 0 4px 12px rgba(45, 122, 79, 0.1);
    transform: translateY(-2px);
}

.shop-area-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.shop-area-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.shop-area-name {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a2e23;
}

.shop-area-count {
    font-size: 13px;
    color: #2d7a4f;
    font-weight: 600;
}

.shop-area-arrow {
    font-size: 20px;
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.2s;
}

.shop-area-card:hover .shop-area-arrow {
    color: #2d7a4f;
}

@media (max-width: 768px) {
    .shop-area-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .shop-area-card {
        padding: 12px 14px;
    }
    .shop-area-icon {
        font-size: 24px;
    }
    .shop-area-name {
        font-size: 14px;
    }
}

.shop-popup-note {
    padding: 12px 24px 20px;
    font-size: 12px;
    color: #999;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

/* ボタン文言変更対応 */
.shop-detail-trigger {
    background: #2d7a4f;
}

.shop-detail-trigger:hover {
    background: #1a5c38;
}

/* 新しいショップカード */
.shop-card-new {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.shop-card-new:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.shop-card-header {
    padding: 20px 20px 0;
}

.shop-logo-new {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-logo-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-logo-placeholder {
    font-size: 32px;
}

.shop-card-body {
    padding: 16px 20px;
    flex: 1;
}

.shop-name-new {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.shop-info-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.shop-info-row .shop-info-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.shop-card-footer {
    padding: 16px 20px 20px;
}

.shop-button-new {
    display: block;
    width: 100%;
    padding: 14px;
    background: #FF5A5F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.shop-button-new:hover {
    background: #E04E53;
}

/* 旧ショップカード（互換性のため残す） */
.shop-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.shop-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shop-logo {
    width: 60px;
    height: 60px;
    background: #FF5A5F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.shop-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.shop-info {
    display: flex;
    gap: 8px;
    align-items: start;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.shop-info-icon {
    flex-shrink: 0;
}

/* 健康管理・専門家・その他 */
.health-checklist {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 24px;
    margin-top: 16px;
}

.health-checklist h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
}

.health-checklist ul {
    list-style: none;
    padding-left: 0;
}

.health-checklist li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.health-checklist li:before {
    content: "□";
    position: absolute;
    left: 0;
    font-size: 18px;
    color: #FF5A5F;
}

.expert-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
}

.expert-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.expert-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.expert-credentials {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.8;
}

.expert-comment {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-style: italic;
    line-height: 1.8;
}

.disease-card,
.troubleshooting-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.troubleshooting-card {
    background: #fff9e6;
    border-left: 4px solid #FFB800;
    border: none;
}

.disease-name,
.troubleshooting-problem {
    font-size: 18px;
    font-weight: 600;
    color: #FF5A5F;
    margin-bottom: 12px;
}

.troubleshooting-problem {
    color: #222;
}

.references-list {
    list-style: none;
    padding-left: 0;
}

.references-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
}

/* おすすめ（ランダム） */
.recommendations-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #e0e0e0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.recommendation-card:hover {
    transform: translateY(-4px);
}

.recommendation-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 4/3;
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendation-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}


/* =========================================
   6. 一覧ページ (archive.php)
   ========================================= */
.page-header {
    padding: 40px 40px 32px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.page-header-content {
    max-width: 1440px;
    margin: 0 auto;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.page-description {
    font-size: 16px;
    color: #717171;
    max-width: 800px;
}

.results-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.results-count {
    font-size: 16px;
    color: #222;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.support-section {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 48px;
    margin-top: 48px;
    text-align: center;
}

.support-header {
    margin-bottom: 32px;
}

.support-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.support-description {
    color: #717171;
}

.support-categories {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.support-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #222;
    min-width: 120px;
}

.support-category-item:hover {
    background: #ffe8e9;
    transform: translateY(-2px);
}

.support-category-icon {
    font-size: 28px;
}

.support-category-name {
    font-size: 13px;
    font-weight: 600;
}

.other-animals {
    margin-top: 32px;
}

.other-animals p {
    color: #717171;
    margin-bottom: 16px;
}

.other-animals-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* =========================================
   7. フッター (Footer) - シンプル版
   ========================================= */
.footer {
    background: #f9f9f9;
    /* 少し明るめのグレーに */
    padding: 60px 20px 40px;
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 800px;
    /* 幅を狭めて中央寄せ */
    margin: 0 auto;
}

/* ショップ掲載CTAエリア */
.footer-shop-cta {
    margin-bottom: 40px;
}

.cta-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.cta-desc {
    font-size: 14px;
    color: #717171;
    margin-bottom: 24px;
    line-height: 1.6;
}

.sp-only {
    display: none;
}

/* スマホでのみ改行する用 */

/* 掲載依頼ボタン */
.btn-shop-entry {
    display: inline-block;
    background: white;
    color: #222;
    border: 1px solid #222;
    padding: 12px 32px;
    border-radius: 30px;
    /* 丸っこいボタン */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-shop-entry:hover {
    background: #222;
    color: white;
}

/* 区切り線 */
.footer-divider {
    height: 1px;
    background: #e0e0e0;
    width: 100%;
    margin: 40px 0;
}

/* リンク集 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
}

.footer-links a:hover {
    color: #222;
    text-decoration: underline;
}

/* コピーライト */
.copyright {
    font-size: 12px;
    color: #999;
}

/* スマホ対応 */
@media (max-width: 600px) {

    /* ▼▼▼ ヒーローセクションの調整（下寄せ＆コンパクト化） ▼▼▼ */

    /* 1. ヒーローコンテナ自体の配置設定 */
    .hero {
        /* 中央寄せを解除し、コンテンツを下端に寄せる */
        justify-content: flex-end;

        /* 下端からのマージンを20pxに設定 */
        padding-bottom: 20px;

        /* ※高さは600pxのままなので、コンテンツは下の方に配置されます */
    }

    /* 2. サブタイトルのフォントサイズ変更 */
    .hero p {
        font-size: 13px;
        /* 13pxに */
        margin-bottom: 16px;
        /* 下の検索バーとの隙間 */
        padding: 0 20px;
    }

    /* ヒーローのタイトルも少し小さく（任意） */
    .hero h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    /* 3. 検索フォームのコンパクト化 */
    .hero-search-bar {
        /* margin-topは不要になるので削除または0に */
        margin-top: 0;

        /* 上下を縮めてコンパクトにする */
        padding: 6px 16px;

        /* 横幅がはみ出さないように調整（念のため） */
        width: 90%;
    }

    /* 内部のアイテムを詰める */
    .search-item {
        padding: 8px;
    }

    /* 検索ボタンのマージン */
    .search-btn-round {
        margin-top: 12px;
    }

    /* ▲▲▲ ここまで ▲▲▲ */


    /* （以下、既存のコード...） */
}


/* =========================================
   8. スマホ対応 (Responsive)
   ========================================= */
@media (max-width: 1200px) {

    .card-grid,
    .archive .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-container,
    .main-container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .content-grid {
        grid-template-columns: 1fr 320px;
        gap: 32px;
    }
}

@media (max-width: 900px) {

    .card-grid,
    .archive .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .price-card {
        grid-column: 1 / 3;
    }

    .page-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {

    /* ----- パンくずリスト（スマホ用） ----- */
    .breadcrumb {
        padding: 12px 16px;
    }

    .breadcrumb-list {
        font-size: 11px;
        gap: 6px;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .breadcrumb-list::-webkit-scrollbar {
        display: none;
    }

    .breadcrumb-list a,
    .breadcrumb-current {
        flex-shrink: 0;
    }

    /* ----- カテゴリ横スクロール化（ボタン化） ----- */
    .category-scroll {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 16px;
        overflow-x: auto;
    }

    .category-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        min-width: auto;
        width: calc(25% - 6px);
        padding: 12px 4px;
        flex-shrink: 0;
        border-radius: 12px;
    }

    .category-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .category-name {
        font-size: 11px;
        line-height: 1.3;
        text-align: center;
    }

    .category-section {
        padding: 16px 0;
    }

    /* ----- 動物カテゴリセクション（カード形式に変更） ----- */
    .animal-category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .animal-category-card {
        height: auto;
        aspect-ratio: 4/3;
        border-radius: 12px;
        position: relative;
        overflow: hidden;
    }

    .animal-category-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
        filter: none;
    }

    .animal-category-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        padding: 12px;
        z-index: 2;
    }

    .animal-category-name {
        font-size: 14px;
        color: white;
        margin: 0 0 2px 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        display: block;
    }

    .animal-category-name::after {
        display: none;
    }

    .animal-category-description {
        display: block;
        font-size: 11px;
        opacity: 0.9;
        margin-bottom: 0;
    }

    .animal-category-count {
        display: none;
    }

    /* ----- 記事一覧（2列化） ----- */
    .card-grid,
    .archive .card-grid,
    .recommendations-grid,
    .lifestyle-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* ----- ショップカード（スマホ用：1列） ----- */
    .shops-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .shops-carousel-track {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shops-carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .shop-popup {
        max-width: 100%;
        border-radius: 12px;
    }

    .shop-popup-header h3 {
        font-size: 17px;
    }

    .shop-popup-table th {
        font-size: 12px;
        width: 90px;
    }

    .shop-card-new {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .shop-card-header {
        padding: 16px 16px 0;
    }

    .shop-logo-new {
        width: 56px;
        height: 56px;
    }

    .shop-card-body {
        padding: 12px 16px;
    }

    .shop-name-new {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .shop-info-row {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .shop-card-footer {
        padding: 12px 16px 16px;
        width: 100%;
    }

    .shop-button-new {
        padding: 12px;
        font-size: 14px;
    }

    /* カード内の引き算 */
    .card-title {
        font-size: 13px;
        margin-bottom: 4px;
        line-height: 1.4;
    }

    .card-description {
        display: none;
    }

    .card-price {
        font-size: 13px;
        margin-top: 4px;
    }

    .card-price-label {
        font-size: 10px;
        display: block;
    }

    .tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* ----- その他調整 ----- */
    .header {
        padding: 5px 16px;
    }

    .nav {
        display: none;
    }

    .container,
    .archive .container {
        padding: 24px 20px;
    }

    .gallery-container,
    .main-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gallery-container {
        padding-bottom: 16px;
    }

    /* スマホ用ギャラリー：アイキャッチ + 4分割サブ画像 */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 4px;
        height: auto;
    }

    /* アイキャッチ画像（1枚目）を上部に大きく表示 */
    .gallery-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        aspect-ratio: 4 / 3;
    }

    /* サブ画像（2〜5枚目）を2×2で下部に配置 */
    .gallery-item:not(:first-child) {
        aspect-ratio: 1 / 1;
    }

    /* サブ画像がない場合は非表示 */
    .gallery-item:empty {
        display: none;
    }

    /* 生体名セクション（ファーストビュー内に収める） */
    .page-title-section {
        padding-bottom: 16px !important;
        margin-bottom: 16px !important;
    }

    .page-title-section .species-title {
        font-size: 22px !important;
        margin: 4px 0 !important;
    }

    .page-title-section>span:first-child {
        font-size: 11px !important;
        display: block;
        margin-bottom: 2px;
    }

    .species-rating {
        font-size: 13px !important;
    }

    .species-subtitle {
        font-size: 12px !important;
        margin-top: 4px;
    }

    .species-tags {
        margin-top: 8px;
    }

    .species-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .sidebar {
        display: none;
    }

    .summary-points,
    .info-grid,
    .care-item,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 24px 20px;
    }

    .support-section {
        padding: 32px 20px;
    }

    .support-categories {
        gap: 12px;
    }

    .support-category-item {
        width: 48%;
        min-width: auto;
    }
}

/* =========================================
   9. 検索ポップアップ画面
   ========================================= */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

.search-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.search-modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 32px;
}

.search-group {
    margin-bottom: 24px;
}

.search-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.search-form input[type="text"],
.search-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-label {
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input {
    display: none;
}

.checkbox-label span {
    display: block;
    padding: 8px 16px;
    background: #f7f7f7;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.checkbox-label input:checked+span {
    background: #FF5A5F;
    color: white;
    border-color: #FF5A5F;
}

.search-submit-btn {
    width: 100%;
    background: #222;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
}

.search-submit-btn:hover {
    opacity: 0.8;
}

/* Airbnb風検索バー */
.hero-search-bar {
    background: white;
    border-radius: 40px;
    /* 丸っこく */
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    /* 浮き上がる影 */
    max-width: 800px;
    width: 90%;
    margin-top: 32px;
    border: 1px solid #ddd;
}

.search-item {
    flex: 1;
    padding: 10px 24px;
    border-radius: 32px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.search-item:hover {
    background: #f7f7f7;
}

.search-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #222;
}

/* セレクトボックスの見た目を消して、エリア全体をクリックできるようにする */
.search-select-ghost {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #717171;
    cursor: pointer;
    outline: none;
    appearance: none;
    /* 矢印を消す */
}

.input-item input {
    border: none;
    width: 100%;
    font-size: 14px;
    outline: none;
    background: transparent;
}

/* 仕切り線 */
.search-divider {
    width: 1px;
    height: 32px;
    background: #ddd;
}

/* 丸い検索ボタン */
.search-btn-round {
    width: 48px;
    height: 48px;
    background: #FF5A5F;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: background 0.2s;
}

.search-btn-round:hover {
    background: #E04E53;
}

/* スマホ対応（縦並びにする） */
@media (max-width: 600px) {
    .hero-search-bar {
        flex-direction: column;
        border-radius: 24px;
        padding: 16px;
    }

    .search-item {
        width: 100%;
        padding: 12px 8px;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        position: relative;
    }

    .search-item label {
        text-align: center;
    }

    .search-divider {
        display: none;
    }

    .search-btn-round {
        width: 100%;
        border-radius: 8px;
        margin-top: 16px;
        margin-left: 0;
    }
}

/* --- 全ての種類を見るボタン --- */
.btn-all-species {
    display: inline-block !important;
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    background: #FF5A5F !important;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-all-species:hover {
    background: #E04E53 !important;
    color: #fff !important;
}

/* --- LINEボタンのデザイン --- */
.btn-line {
    background: #06C755;
    /* LINE公式カラー */
    color: white !important;
    /* 文字色を白で強制 */
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-line:hover {
    background: #05b34c;
    opacity: 0.9;
    color: white !important;
}

.line-icon {
    font-size: 18px;
}


/* =========================================
   9.5 ショップ詳細ページ (Shop Detail)
   ========================================= */

/* --- ショップヘッダー --- */
.shop-detail-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.shop-detail-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7f7f7;
}

.shop-detail-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-detail-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #f7f7f7;
}

.shop-detail-title-area {
    flex: 1;
}

.shop-detail-prefecture {
    display: inline-block;
    font-size: 13px;
    color: #FF5A5F;
    font-weight: 600;
    background: #fff0f0;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.shop-detail-name {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.3;
}

.shop-detail-description {
    font-size: 15px;
    color: #717171;
    line-height: 1.6;
    margin: 0;
}

/* --- 店舗情報テーブル --- */
.shop-detail-info {
    margin-bottom: 40px;
}

.shop-detail-table {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.shop-detail-row {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    line-height: 1.6;
}

.shop-detail-row:last-child {
    border-bottom: none;
}

.shop-detail-label {
    width: 140px;
    flex-shrink: 0;
    font-weight: 600;
    color: #333;
}

.shop-detail-value {
    flex: 1;
    color: #555;
}

.shop-detail-phone-link {
    color: #FF5A5F;
    font-weight: 600;
    text-decoration: none;
}

.shop-detail-phone-link:hover {
    text-decoration: underline;
}

.shop-detail-url {
    color: #FF5A5F;
    text-decoration: none;
    word-break: break-all;
}

.shop-detail-url:hover {
    text-decoration: underline;
}

/* --- CTAボタン --- */
.shop-detail-cta {
    margin-top: 20px;
    text-align: center;
}

.shop-detail-call-btn {
    display: inline-block;
    background: #FF5A5F;
    color: white;
    padding: 16px 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.shop-detail-call-btn:hover {
    background: #E04E53;
    transform: translateY(-1px);
    color: white;
}

/* --- マップ --- */
.shop-detail-map {
    margin-bottom: 40px;
}

.shop-map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* --- 取扱い種グリッド --- */
.shop-species-section {
    margin-bottom: 40px;
}

.shop-species-intro {
    font-size: 15px;
    color: #717171;
    margin-bottom: 20px;
    line-height: 1.6;
}

.shop-species-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.shop-species-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.shop-species-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.shop-species-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f7f7;
}

.shop-species-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-species-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.shop-species-info {
    padding: 12px 14px;
}

.shop-species-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.3;
}

.shop-species-price {
    font-size: 12px;
    color: #FF5A5F;
    font-weight: 600;
}

/* --- 取扱い種：準備中 --- */
.shop-species-empty {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.shop-species-empty p {
    color: #999;
    font-size: 15px;
    margin: 0 0 8px;
    line-height: 1.6;
}

.shop-species-empty p:last-child {
    margin-bottom: 0;
}

/* --- 近くのショップ --- */
.shop-nearby-section {
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

/* --- ショップ詳細 モバイル対応 --- */
@media (max-width: 600px) {
    .shop-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .shop-detail-logo {
        width: 80px;
        height: 80px;
    }

    .shop-detail-name {
        font-size: 22px;
    }

    .shop-detail-row {
        flex-direction: column;
        gap: 4px;
        padding: 14px 16px;
    }

    .shop-detail-label {
        width: auto;
        font-size: 13px;
    }

    .shop-detail-call-btn {
        width: 100%;
        padding: 16px;
    }

    .shop-species-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shop-nearby-section .shops-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   10. 診断マッチング機能 (Diagnosis) - Glass UI
   ========================================= */

/* --- ヒーロー拡張（結果画面表示時） --- */
.hero-section-wrapper.hero-expanded {
    height: auto;
    min-height: 700px;
    overflow: visible;
}

.hero-section-wrapper.hero-expanded .hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-section-wrapper.hero-expanded .hero-content-overlay {
    position: relative;
    height: auto;
    min-height: 600px;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* --- 診断セクション カラー変数 --- */
.diagnosis-container {
    --diag-primary: #2d7a4f;
    --diag-primary-light: rgba(232, 245, 238, 0.8);
    --diag-primary-dark: #1a5c38;
    --diag-accent: #f59e0b;
    --diag-text: #1a2e23;
    --diag-text-muted: #6b7c72;
    --diag-border: rgba(255, 255, 255, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-strong: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-family: 'Noto Sans JP', sans-serif;
    width: 100%;
    max-width: 640px;
    padding: 0 16px;
}

/* --- CTA画面（グラスモーフィズムカード） --- */
.diagnosis-cta {
    text-align: center;
    animation: diagFadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 24px 28px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 浮遊パーティクル（無効化） */
.diagnosis-cta-particles {
    display: none;
}

/* 無料診断バッジ */
.diagnosis-cta-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,200,50,0.85), rgba(255,150,30,0.85));
    color: #fff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(255, 170, 40, 0.4);
    animation: diagBadgePulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes diagBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 12px rgba(255, 170, 40, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255, 170, 40, 0.6); }
}

.diagnosis-cta h1 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: white;
    margin-bottom: 6px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(45, 122, 79, 0.3);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.diagnosis-cta-highlight {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.diagnosis-cta-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    border-radius: 2px;
    opacity: 0.7;
}

.diagnosis-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}
.diagnosis-cta p strong {
    color: #fbbf24;
    font-weight: 800;
}

/* スタートボタン（グラデーション + グロー） */
.diagnosis-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    background-size: 200% 200%;
    animation: diagBtnGradient 3s ease infinite;
    color: white;
    border: none;
    padding: 14px 44px;
    border-radius: 50px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.45), 0 0 60px rgba(16, 185, 129, 0.15);
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.5px;
}
.diagnosis-start-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg);
    animation: diagBtnShine 3s ease-in-out infinite;
}
@keyframes diagBtnGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes diagBtnShine {
    0% { transform: rotate(45deg) translateX(-120%); }
    30%, 100% { transform: rotate(45deg) translateX(120%); }
}

.diagnosis-btn-text {
    position: relative;
    z-index: 1;
}
.diagnosis-btn-arrow {
    position: relative;
    z-index: 1;
    font-size: 22px;
    transition: transform 0.25s;
}

.diagnosis-start-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.55), 0 0 80px rgba(16, 185, 129, 0.2);
}
.diagnosis-start-btn:hover .diagnosis-btn-arrow {
    transform: translateX(4px);
}
.diagnosis-start-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 注釈テキスト */
.diagnosis-cta-note {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* --- 質問画面（グラスモーフィズム） --- */
.diagnosis-questions {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: var(--glass-shadow);
}

.diagnosis-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.diagnosis-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.diagnosis-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--diag-primary), #4ade80);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

.diagnosis-progress-text {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.diagnosis-question-text {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.4;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.diagnosis-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diagnosis-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 16px;
    color: white;
}

.diagnosis-option:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.diagnosis-option.selected {
    background: rgba(45, 122, 79, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(45, 122, 79, 0.3);
}

.diagnosis-option-label {
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
}

/* --- ローディング --- */
.diagnosis-loading {
    text-align: center;
    padding: 48px 24px;
}

.diagnosis-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: diagSpin 0.8s linear infinite;
}

.diagnosis-loading p {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 18px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* --- 結果画面 --- */
.diagnosis-result {
    animation: diagFadeInUp 0.5s ease;
    padding-bottom: 20px;
}

.diagnosis-result > h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* BEST MATCH カード（グラス） */
.diagnosis-best-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    margin-bottom: 16px;
}

.diagnosis-best-badge {
    background: rgba(45, 122, 79, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    text-align: center;
    padding: 10px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.diagnosis-best-body {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.diagnosis-best-image {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.diagnosis-best-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diagnosis-best-image-placeholder {
    background: linear-gradient(135deg, rgba(45, 122, 79, 0.3), rgba(74, 222, 128, 0.2));
}

.diagnosis-best-info {
    flex: 1;
    min-width: 0;
}

.diagnosis-best-name {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.diagnosis-best-name-en {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
}

.diagnosis-best-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: white;
}

.diagnosis-best-meta span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.diagnosis-best-reason {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 12px;
}

.diagnosis-detail-btn {
    display: inline-block;
    background: rgba(45, 122, 79, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.diagnosis-detail-btn:hover {
    background: rgba(45, 122, 79, 0.8);
    transform: translateY(-1px);
    color: white;
}

/* 2位・3位カード（グラス） */
.diagnosis-runners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.diagnosis-runner-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.diagnosis-runner-rank {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.diagnosis-runner-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.diagnosis-runner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diagnosis-runner-image-placeholder {
    background: linear-gradient(135deg, rgba(45, 122, 79, 0.25), rgba(74, 222, 128, 0.15));
}

.diagnosis-runner-name {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.diagnosis-runner-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.diagnosis-runner-link {
    display: inline-block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.diagnosis-runner-link:hover {
    color: white;
}

/* --- シェア＆リトライ（グラス） --- */
.diagnosis-actions {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.diagnosis-share {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.share-x {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.share-x:hover {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.share-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(6, 199, 85, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.share-line:hover {
    background: rgba(6, 199, 85, 0.8);
    color: white;
}

.diagnosis-retry-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 32px;
    border-radius: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.diagnosis-retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- フェードインアニメーション --- */
.diagnosis-fadein {
    animation: diagFadeInUp 0.4s ease;
}

@keyframes diagFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes diagSpin {
    to { transform: rotate(360deg); }
}

/* --- 診断セクション モバイル対応 --- */
@media (max-width: 600px) {
    .diagnosis-container {
        padding: 0 12px;
    }

    .diagnosis-cta {
        padding: 18px 16px 14px;
        border-radius: 16px;
    }

    .diagnosis-cta-badge {
        font-size: 10px;
        padding: 3px 12px;
        margin-bottom: 8px;
    }

    .diagnosis-cta h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .diagnosis-cta-highlight::after {
        height: 2px;
    }

    .diagnosis-cta p {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .diagnosis-start-btn {
        padding: 12px 36px;
        font-size: 15px;
        border-radius: 50px;
    }

    .diagnosis-cta-note {
        font-size: 10px;
        margin-top: 8px;
    }

    .diagnosis-questions {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .diagnosis-question-text {
        font-size: 18px;
    }

    .diagnosis-option {
        padding: 14px 16px;
        font-size: 15px;
    }

    .diagnosis-best-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .diagnosis-best-image {
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }

    .diagnosis-best-name {
        font-size: 20px;
    }

    .diagnosis-best-meta {
        justify-content: center;
    }

    .diagnosis-runners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .diagnosis-runner-card {
        padding: 12px;
    }

    .diagnosis-runner-image {
        width: 60px;
        height: 60px;
    }

    .diagnosis-runner-name {
        font-size: 13px;
    }

    .diagnosis-share {
        flex-direction: column;
        gap: 8px;
    }

    .share-x,
    .share-line {
        width: 100%;
        justify-content: center;
    }

    .diagnosis-result > h2 {
        font-size: 20px;
    }

    .hero-section-wrapper.hero-expanded .hero-content-overlay {
        padding-top: 24px;
        padding-bottom: 40px;
    }
}

/* ========================================
   お問い合わせページ（Contact Form 7）
   ======================================== */
.page-template-default .entry-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.page-template-default .entry-content h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a2e23;
    margin-bottom: 12px;
}

.page-template-default .entry-content > p {
    color: #6b7c72;
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.8;
}

/* CF7 フォームスタイル */
.wpcf7 label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a2e23;
    margin-bottom: 20px;
}

.wpcf7 label .required {
    color: #e53e3e;
    font-size: 12px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d4e4da;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    background: #f8faf9;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #2d7a4f;
    box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
    background: #fff;
}

.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7 input[type="submit"],
.wpcf7 .cf7-submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2d7a4f, #1a5c38);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 12px;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .cf7-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 122, 79, 0.3);
}

.wpcf7-response-output {
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px;
    margin-top: 16px !important;
}

.cf7-shop-form .form-note {
    color: #6b7c72;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* お問い合わせページ リスト左揃え */
.wp-block-list {
    padding-left: 1.2em;
}

/* ========================================
   種詳細ページ - 特徴リスト
   ======================================== */
.feature-list {
    padding-left: 1.5em;
}

/* ========================================
   ショップエリア一覧ページ (/shop-area/)
   ======================================== */

/* --- 地域ナビゲーション --- */
.shop-area-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ece9;
}

.shop-area-nav-item {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7c72;
    background: #f8faf9;
    border: 1px solid #d4e4da;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s;
}

.shop-area-nav-item:hover {
    background: #e8f5ee;
    color: #2d7a4f;
    border-color: #2d7a4f;
}

.shop-area-nav-item.active {
    background: #2d7a4f;
    color: #fff;
    border-color: #2d7a4f;
}

/* --- ショップリスト --- */
.shop-area-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-area-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 14px;
    transition: all 0.2s;
}

.shop-area-list-card:hover {
    border-color: #2d7a4f;
    box-shadow: 0 2px 12px rgba(45, 122, 79, 0.08);
}

.shop-area-list-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.shop-area-list-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-area-list-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-area-list-logo-placeholder {
    font-size: 28px;
}

.shop-area-list-info {
    flex: 1;
    min-width: 0;
}

.shop-area-list-name {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a2e23;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.shop-area-list-meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #6b7c72;
    line-height: 1.5;
    margin-bottom: 3px;
}

.shop-area-list-icon {
    flex-shrink: 0;
    font-size: 13px;
}

.shop-area-list-actions {
    flex-shrink: 0;
}

.shop-area-detail-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e8f5ee;
    color: #2d7a4f;
    border: 1px solid #2d7a4f;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.shop-area-detail-btn:hover {
    background: #2d7a4f;
    color: #fff;
}

/* --- 空の状態 --- */
.shop-area-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7c72;
    font-size: 15px;
}

.btn-back-home {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    background: #2d7a4f;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back-home:hover {
    background: #1a5c38;
    transform: translateY(-2px);
}

/* --- 注意書き --- */
.shop-area-disclaimer {
    margin-top: 40px;
    padding: 16px 20px;
    background: #fef9e7;
    border: 1px solid #f5e6b8;
    border-radius: 10px;
    font-size: 13px;
    color: #8a6d3b;
    line-height: 1.6;
    margin-bottom: 60px;
}

.shop-area-disclaimer p {
    margin: 0;
}

/* --- モバイル対応 --- */
@media (max-width: 768px) {
    .shop-area-nav {
        gap: 6px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .shop-area-nav-item {
        padding: 6px 14px;
        font-size: 13px;
    }

    .shop-area-list-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }

    .shop-area-list-main {
        gap: 12px;
    }

    .shop-area-list-logo {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .shop-area-list-name {
        font-size: 15px;
    }

    .shop-area-list-meta {
        font-size: 12px;
    }

    .shop-area-list-actions {
        text-align: right;
    }

    .shop-area-detail-btn {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
}