/*
Theme Name: Ozman Plants
Author: ozman
Author URI: https://ozman.jp/book/
Description: 植物図鑑のオウンドメディア用WordPressテーマ。
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.nu/licenses/gpl-2.0.html
Text Domain: ozman-plants
Tags: custom-background, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, accessibility-ready, block-patterns, block-styles, editor-style
*/

/* --- Basic Reset & Typography --- */
html {
    box-sizing: border-box;
    font-size: 100%; /* Base font size for rem units */
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem; /* 16px */
    line-height: 1.7;
    color: #333;
    background-color: #f8f8f8; /* Light background for magazine feel */
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", serif; /* Serif font for headings for a classic feel */
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #222;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1em; }

a {
    color: #54917f;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- Layout --- */
.site {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.site-content {
    padding: 2rem;
}

/* トップページでヘッダーとヒーローを密着させる */
.home .site-content,
.front-page .site-content {
    padding-top: 0;
}

/* トップページのみ背景を白くし、影をなくす */
.home,
.front-page {
    background-color: #fff;
}
.home .site,
.front-page .site {
    box-shadow: none;
}

.home .site-header,
.front-page .site-header {
    border-bottom: none;
}

main {
    display: block; /* HTML5 display-role reset for older browsers */
}

/* --- Header & Navigation --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
}

.site-branding {
    margin: 0;
    flex-shrink: 0; /* ロゴが縮まないように */
}

.site-branding-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
}

.site-branding-link:hover {
    text-decoration: none;
}

.site-branding-link .custom-logo {
    max-height: 44px;
    width: auto;
    margin-right: 12px;
}

.site-title-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-title-main {
    font-family: "Georgia", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.site-title-sub {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* PC用ナビゲーション */
.main-navigation {
    display: none; /* すべての画面サイズで非表示 */
}

/* --- Hamburger Menu Toggle --- */
.menu-toggle {
    display: block; /* すべての画面サイズで表示 */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001; /* メニューオーバーレイより手前に */
    position: relative; /* for icon positioning */
}

.menu-toggle-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 16px;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.menu-toggle-icon::before {
    top: 3px; /* 2本線のうちの上 */
}

.menu-toggle-icon::after {
    top: 11px; /* 2本線のうちの下 */
}

.menu-open .menu-toggle-icon::before {
    top: 7px;
    transform: rotate(45deg);
}

.menu-open .menu-toggle-icon::after {
    top: 7px;
    transform: rotate(-45deg);
}


/* --- Mobile Menu Container --- */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    padding: 6rem 2rem 2rem 2rem;
}

/* メニュー内基本ナビ (HOME/ABOUT/CONTACT) */
.primary-site-nav {
    margin-bottom: 3rem !important;
}
.primary-site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}
.primary-site-nav a {
    font-size: 0.9rem;
    font-weight: 700;
    color: #999;
    text-decoration: none;
    letter-spacing: 0.1em;
}
.primary-site-nav a:hover {
    color: #222;
}

.menu-open .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-inner .mobile-menu-section {
    margin-bottom: 4rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* トグルセクションの設定 */
.category-toggle {
    cursor: pointer;
    position: relative;
    width: 100%;
}

.toggle-icon {
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background-color: #ccc;
    transition: transform 0.3s;
}
.toggle-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.category-toggle.is-active .toggle-icon::before {
    transform: rotate(0deg); /* マイナス記号にする */
}

.toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.toggle-content.is-open {
    max-height: 1000px; /* 十分な高さを設定 */
}

.mobile-menu-inner .mobile-menu-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    margin-top: 0;
    font-family: "Georgia", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 1.8rem;
    color: #222;
    text-transform: none;
    letter-spacing: 0;
}

.mobile-menu-heading-link {
    text-decoration: none;
    display: block;
}
.mobile-menu-heading-link:hover .mobile-menu-heading {
    color: #54917f;
}

.mobile-menu-inner .section-label {
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    color: #999;
}

.mobile-menu-inner .mobile-menu-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-inner .mobile-menu-list li a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu-inner .mobile-menu-list li a:hover {
    color: #54917f;
}

/* メニュー内検索窓 (Google Style - Unified with Hero) */
.mobile-search .search-form {
    display: flex;
    max-width: 400px;
    margin-bottom: 2rem;
}
.mobile-search label {
    width: 100%;
}
.mobile-search .search-field {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #eee;
    border-radius: 40px;
    font-size: 0.95rem;
    color: #333;
    background-color: #f8f8f8;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 18px;
    outline: none;
    box-shadow: none;
    transition: all 0.3s ease;
}
.mobile-search .search-field:focus {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #ddd;
}
.mobile-search .search-submit {
    display: none;
}

.mobile-menu-inner .tag-cloud a {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.5em 1em;
    margin: 5px;
    border-radius: 0;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-menu-inner .tag-cloud a:hover {
    background-color: #222;
    color: #fff;
    border-color: #222;
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100vw; /* ビューポートの全幅 */
    margin-left: calc(50% - 50vw); /* 要素を中央に配置し、左右にはみ出すように調整 */
    height: 600px; /* Large photo focus */
    background-image: url('images/ozmanbook_mv_pc.jpg');
    background-size: cover;
    background-position: center 50%; /* 中央から開始 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 0;
    overflow: hidden; /* 画像のはみ出し防止 */
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-content {
    text-align: center;
    padding: 2.5rem;
    background-color: rgba(0,0,0,0.4);
    border-radius: 0;
}

/* アニメーションの定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .site-description {
    font-family: "Georgia", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    margin-top: 0;
    color: #fff;
    letter-spacing: 0.1em;
    /* アニメーション適用：よりゆったり */
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards 0.5s;
}

.hero-content .site-title {
    font-size: 4rem;
    margin: 0;
    color: #fff;
    line-height: 1.1;
    /* アニメーション適用：よりゆったり */
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards 1.0s;
}

.hero-search-bar {
    margin-top: 3rem;
    width: 100%;
    /* アニメーション適用：よりゆったり */
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards 1.5s;
}

.site-produced {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-top: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hero-search-bar .search-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.hero-search-bar label {
    width: 100%;
}

.hero-search-bar .search-field {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    color: #333;
    background-color: rgba(255, 255, 255, 0.95);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    outline: none;
    transition: all 0.3s ease;
}

.hero-search-bar .search-field:focus {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero-search-bar .search-submit {
    display: none;
}

/* --- Sections General --- */
section {
    padding: 6rem 0;
    margin-bottom: 0;
    border-bottom: none;
}
section:last-of-type {
    border-bottom: none;
}
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

/* --- Section Titles --- */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem !important; /* セクション間の余白を広めに */
    font-family: "Georgia", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 2.2rem !important;
    font-weight: 700;
}

.section-label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.2em;
    font-weight: 400;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* --- Plant Categories Section --- */
.plant-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 2rem;
}

.plant-category-item {
    display: block;
    text-align: center;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    padding-bottom: 1.5rem;
}
.plant-category-item:hover {
    transform: translateY(-3px);
    border-color: #ccc;
}
.plant-category-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 1.5rem;
}
.plant-category-item h3 {
    margin: 0 1rem 0.5rem 1rem;
    font-size: 1.3rem;
    color: #222;
}
.plant-category-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 1rem;
}

/* --- Plant Features Section --- */
.plant-features-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #f9f9f9;
    padding: 8rem 2rem;
}

.plant-features-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-group-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.plant-feature-item {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 0.5em 1.25em;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.plant-feature-item:hover {
    background-color: #222;
    color: #fff;
    border-color: #222;
    text-decoration: none !important;
}

.plant-features-more {
    text-align: center;
    margin-top: 1.5rem;
}

.feature-and-more {
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
    font-style: italic;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2px;
    transition: all 0.3s;
}
.feature-and-more:hover {
    color: #222;
    border-color: #222;
    text-decoration: none;
}

/* --- Features Index Page --- */
.features-group-section {
    margin-bottom: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.features-group-title {
    font-size: 1.8rem;
    border-bottom: 2px solid #222;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.features-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Latest Articles Section --- */
.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 2rem;
}

.latest-plant-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.latest-plant-item:hover {
    transform: translateY(-3px);
    border-color: #ccc;
}

.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
}

.new-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #54917f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 4px 10px;
    z-index: 10;
    letter-spacing: 0.1em;
}

.latest-plant-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.latest-plant-item .post-thumbnail,
.latest-plant-item .post-thumbnail-placeholder {
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.latest-plant-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.latest-plant-item .entry-header {
    padding: 1.5rem;
}
.latest-plant-item .entry-title {
    margin-top: 0;
    font-size: 1.4rem;
    color: #222;
}

.articles-more {
    text-align: center;
    margin-top: 4rem;
}

.view-all-link {
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
    font-style: italic;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2px;
    transition: all 0.3s;
}
.view-all-link:hover {
    color: #222;
    border-color: #222;
    text-decoration: none;
}

/* --- Glossary Banner Section --- */
.glossary-banner-section {
    padding: 0;
    margin-bottom: 4rem;
    background-image: url('images/glossary-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.glossary-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 4rem 2rem;
    text-decoration: none;
    color: #fff;
    background-color: rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

.glossary-banner-link:hover {
    background-color: rgba(0,0,0,0.4);
    text-decoration: none;
}

.glossary-banner-content .section-title {
    margin: 0 !important;
    color: #fff;
}

.glossary-banner-content .section-label {
    color: rgba(255,255,255,0.8);
}


/* --- Footer (Main Site Style - Monochromatic) --- */
.site-footer {
    background-color: #fff;
    color: #333;
    padding: 5rem 0 0 0;
    font-size: 0.9rem;
    text-align: left;
    border-top: 1px solid #eee;
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", "Osaka", "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;
}

.site-footer a {
    color: #333;
    text-decoration: none;
}

.site-footer .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer_logo_box {
    flex: 0 0 200px;
}
.footer_logo_box img {
    max-width: 100%;
    height: auto;
}

.footer_content_box {
    flex: 1;
}

.site-footer dl {
    display: flex;
    gap: 40px;
    margin: 0 0 3rem 0;
}

.site-footer dt {
    flex: 1;
}

.footer_heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
    color: #222;
}
.footer_heading span {
    font-size: 0.75rem;
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
    color: #888;
}

.site-footer dt p {
    line-height: 1.8;
    color: #666;
    font-size: 0.85rem;
}

.site-footer dd {
    flex: 0 0 250px;
    margin: 0;
}
.site-footer dd img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

#footermenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-bottom: 3rem;
}

#footermenu ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}
#footermenu ul.menu li a {
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

#footermenu ul.sns {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}
#footermenu ul.sns a {
    color: #333;
    transition: color 0.2s;
}
#footermenu ul.sns a:hover {
    color: #54917f;
}
#footermenu ul.sns i {
    font-size: 1.5rem;
}

#copyright {
    background-color: #f9f9f9;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.75rem;
    color: #999;
}

.ai-disclaimer {
    font-size: 0.65rem;
    margin: 0 0 1rem 0;
    color: #bbb;
}

@media (max-width: 900px) {
    .site-footer .inner {
        flex-direction: column;
    }
    .site-footer dl {
        flex-direction: column;
    }
    .site-footer dd {
        flex: none;
        width: 100%;
    }
    #footermenu {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    .site-content {
        padding: 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }

    /* 記事詳細ページの個別調整 */
    .single-plant__title {
        font-size: 2.2rem;
    }
    .single-plant__content h2 {
        font-size: 1.8rem;
        margin-top: 4rem;
    }
    .single-plant__content h3 {
        font-size: 1.4rem;
        margin-top: 3rem;
    }

    .single-plant__basic-info,
    .single-plant__toc {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .single-plant__header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .hero-section {
        height: 500px;
        background-image: url('images/ozmanbook_mv_sp.jpg');
    }
    .hero-content .site-title {
        font-size: 2.5rem;
    }
    .hero-content .site-description {
        font-size: 1.2rem;
    }
    .hero-search-bar .search-field {
        width: 80%;
    }

    .plant-categories-grid,
    .latest-articles-grid,
    .glossary-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 1rem;
    }

    .plant-category-item img {
        height: 120px;
        margin-bottom: 1rem;
    }
    .plant-category-item h3 {
        font-size: 1rem;
    }
    .plant-category-item p {
        display: none; /* スマホでは説明文を隠してスッキリさせる */
    }

    .latest-plant-item .post-thumbnail,
    .latest-plant-item .post-thumbnail-placeholder {
        height: 150px;
    }
    .latest-plant-item .entry-header {
        padding: 1rem;
    }
    .latest-plant-item .entry-title {
        font-size: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .glossary-banner-section {
        padding: 2rem 1rem;
    }
    .glossary-banner-section h2 {
        font-size: 2rem;
    }
    .glossary-banner-section p {
        font-size: 1rem;
    }
}

/* --- Single Plant Page --- */

.single-plant__main {
    padding: 2rem;
}

.single-plant__article {
    max-width: 800px;
    margin: 0 auto;
}

.single-plant__header {
    margin-bottom: 3.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2.5rem;
    text-align: center;
}

.single-plant__meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.single-plant__breadcrumbs {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.single-plant__dates {
    font-size: 0.7rem;
    color: #bbb;
    display: flex;
    gap: 15px;
}

.single-plant__dates span::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    vertical-align: -1px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.published-date::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23bbb"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
}

.modified-date::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23bbb"><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"/></svg>');
}

.single-plant__title {
    margin: 1rem 0;
    font-size: 3.2rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.single-plant__article-no-in-title {
    font-size: 0.35em;
    display: block;
    font-weight: 400;
    color: #555;
    margin-bottom: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-family: "Georgia", serif;
}

.single-plant__tags {
    margin: 2.5rem 0;
}
.single-plant__tags a {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.5em 1.2em;
    margin: 0 5px 10px 5px;
    border-radius: 0;
    font-size: 0.85rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}
.single-plant__tags a:hover {
    background-color: #222;
    color: #fff;
    border-color: #222;
    text-decoration: none;
}

.single-plant__featured-image {
    margin: 3.5rem 0 0 0;
}
.single-plant__featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.single-plant__content-wrapper {
    margin-top: 5rem;
}

/* --- Basic Info & TOC --- */

.single-plant__basic-info,
.single-plant__toc {
    background-color: #fcfcfc;
    padding: 2.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 3rem;
}

.single-plant__basic-info-title, 
.single-plant__toc-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.single-plant__basic-info-name {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.single-plant__info-content {
    font-size: 0.95rem;
}

/* 基本情報内のテーブルやリストのスタイル (強制リセット) */
.single-plant__info-content table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}

.single-plant__info-content .wp-block-table {
    margin: 0 !important;
    background: none!important;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){
    background:none;
}
.wp-block-table td, .wp-block-table th{
    border:none;
}
.single-plant__info-content th,
.single-plant__info-content td {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee !important;
    text-align: left;
    background:none;
}
.single-plant__info-content th {
    width: 30%;
    color: #888;
    font-weight: normal;
}

.single-plant__toc-nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.single-plant__toc-nav ul ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}
.single-plant__toc-nav li {
    margin-bottom: 0.5rem;
}
.single-plant__toc-nav a {
    text-decoration: none;
    color: #555;
    display: block;
    transition: color 0.2s;
}
.single-plant__toc-nav a:hover {
    color: #000;
    text-decoration: underline;
}

.single-plant__content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #333;
}

.single-plant__content p {
    margin-bottom: 2.5rem;
}

.single-plant__content h2 {
    font-size: 2.2rem;
    margin-top: 6rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
    position: relative;
    clear: both;
}

.single-plant__content h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 1px;
    background-color: #000;
}

.single-plant__content h3 {
    font-size: 1.6rem;
    margin-top: 4rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
}

.single-plant__related-articles {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.single-plant__related-articles-title {
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

.single-plant__related-articles-grid.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0;
    text-align: left;
}

.single-plant__related-articles-grid.latest-articles-grid .latest-plant-item .post-thumbnail {
    height: 140px;
}

.single-plant__related-articles-grid.latest-articles-grid .latest-plant-item .entry-header {
    padding: 1rem;
}

.single-plant__related-articles-grid.latest-articles-grid .latest-plant-item .entry-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.single-plant__related-articles-grid.latest-articles-grid .latest-plant-item .plant-card-no {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.single-plant__related-articles-grid.latest-articles-grid .latest-plant-item .plant-card-categories {
    font-size: 0.7rem;
}

.single-plant__cta {
    margin-top: 6rem;
    padding: 5rem 2rem;
    background-color: #f9f9f9;
    border-radius: 0;
    text-align: center;
    border: 1px solid #eee;
}

.single-plant__cta-title {
    font-size: 1.8rem;
    color: #222;
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 0;
}

.single-plant__cta-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 3rem;
}

.single-plant__cta-button-wrapper {
    display: flex;
    justify-content: center;
}

.single-plant__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
    color: #fff !important;
    padding: 18px 60px;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.single-plant__cta-button:hover {
    background-color: #444;
    text-decoration: none !important;
}

@media (max-width: 960px) {
    .single-plant__related-articles-grid.latest-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .single-plant__main {
        padding: 1rem;
    }
    .single-plant__related-articles-grid.latest-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Archive Pages --- */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.breadcrumb a {
    color: #999;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #333;
}

/* --- Pagination --- */
.pagination {
    margin: 5rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

.pagination .page-numbers:not(.current):hover {
    border-color: #222;
    color: #222;
}

.pagination .prev,
.pagination .next {
    border: none;
}

.archive-grid-container {
    margin-bottom: 4rem;
}

/* Plant Card Extensions */
.plant-card-no {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.3rem;
    font-family: "Georgia", serif;
}

.plant-card-categories {
    font-size: 0.8rem;
    color: #54917f;
    margin-top: 0.5rem;
}

.plant-card-categories a {
    margin-right: 5px;
}

/* --- Glossary Archive --- */

.glossary-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.glossary-item-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.glossary-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.glossary-item-reading {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.2rem;
}

.glossary-item-title {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: #222;
}

.glossary-item-content {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.glossary-item-footer {
    border-top: 1px solid #f5f5f5;
    padding-top: 1rem;
    text-align: right;
}

.glossary-read-more {
    font-size: 0.9rem;
    font-weight: bold;
    color: #54917f;
}

/* --- Glossary Archive (Alphabetical List) --- */

.glossary-archive .page-header {
    border-bottom: none;
    margin-bottom: 2rem;
}

.glossary-index-nav {
    background-color: #f9f9f9;
    padding: 1.2rem;
    margin-bottom: 4rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.glossary-index-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.glossary-index-nav a {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.glossary-index-nav a:hover {
    color: #54917f;
}

.glossary-row-section {
    margin-bottom: 5rem;
    scroll-margin-top: 100px;
}

.glossary-row-title {
    font-size: 2.2rem;
    border-bottom: 3px solid #222;
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.glossary-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.glossary-item:last-child {
    border-bottom: none;
}

.glossary-item dt {
    margin-bottom: 0.75rem;
}

.glossary-item-reading {
    display: block;
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.15em;
    margin-bottom: 0.2rem;
}

.glossary-item-term {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
}

.glossary-item dd {
    margin-left: 0;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
}

.back-to-top {
    text-align: right;
    margin-top: 1.5rem;
}
.back-to-top a {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
}
.back-to-top a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .glossary-row-title {
        font-size: 1.8rem;
    }
    .glossary-item-term {
        font-size: 1.5rem;
    }
}

/* --- Not Found (no-results) --- */
.no-results {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.no-results .page-title {
    font-size: 4rem; /* 404の時は大きく */
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: #eee; /* 少し控えめなグレーに */
}

.no-results .section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-family: "Georgia", "YuMincho", "Hiragino Mincho ProN", serif;
}

.no-results .page-content p {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.not-found-search-form {
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
}

.not-found-search-form .search-form {
    max-width: 500px;
    width: 100%;
}

.not-found-search-form .search-field {
    width: 100%;
    padding: 15px 25px 15px 50px;
    border: 1px solid #eee;
    border-radius: 40px;
    background-color: #f9f9f9;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 20px;
    outline: none;
    transition: all 0.3s;
}

.not-found-search-form .search-field:focus {
    background-color: #fff;
    border-color: #222;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.not-found-search-form .search-submit {
    display: none;
}

.return-top {
    margin-top: 3rem;
}

.return-top .btn {
    display: inline-block;
    background-color: #222;
    color: #fff;
    padding: 15px 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.return-top .btn:hover {
    background-color: #444;
}

@media (max-width: 600px) {
    .not-found-search-form .search-field {
        font-size: 1rem;
    }
}


