/*
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: 16px 40px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

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

.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: 600px;
    /* 高さはここで指定 */
    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;
    /* 画像を少し暗くするフィルター（文字を見やすくするため） */
    filter: brightness(0.7);
}

/* 文字コンテンツを乗せるレイヤー */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* スライドより手前 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* PCは中央寄せ */
    color: white;
    text-align: center;
}

/* コンテンツの中身 */
.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-content-overlay {
        align-items: flex-end;
        /* 下寄せ */
        padding-bottom: 20px;
    }

    .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: 73px;
    background: white;
    z-index: 99;
}

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

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #f7f7f7;
    min-width: 120px;
    color: #222;
    opacity: 0.7;
}

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

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

.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;
}

.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%;
    height: 150px;
    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;
}

.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;
}

/* 新しいショップカード */
.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: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 16px;
        overflow-x: visible;
    }

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

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

    .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;
    }

    .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: 12px 20px;
    }

    .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;
}