/*
Theme Name: メディアレビューポータル
Author: (あなたの名前)
Description: Lady AIで生成したHTMLを元にしたオリジナルテーマです。
Version: 1.0
*/

/* =================================================================
  Card Image Aspect Ratio Fix
================================================================= */
.card-image-container {
    position: relative !important;
    padding-bottom: 150% !important;
    height: 0 !important;
    overflow: hidden !important;
}
.card-image-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* =================================================================
  Admin Bar Fix
================================================================= */
body.admin-bar header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

/* =================================================================
  Header Navigation & Dropdown Menu
================================================================= */
.main-menu-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-menu-list > li {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: -1rem;
}
.main-menu-list a {
    text-decoration: none;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.2s;
}
.main-menu-list a:hover {
    color: #007AFF;
}
.main-menu-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 100;
    list-style: none;
}
.main-menu-list li:hover > .sub-menu {
    display: block;
}
.main-menu-list .sub-menu li {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
}
.main-menu-list .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
}
.main-menu-list .sub-menu a:hover {
    background-color: #f3f4f6;
    color: #007AFF;
}

/* =================================================================
  Mobile Navigation Menu
================================================================= */
.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu-list a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.2s;
}
.mobile-menu-list a:hover {
    color: #007AFF;
}

/* =================================================================
  Widget Styles
================================================================= */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget_search .search-form {
    position: relative;
}
.widget_search .search-field {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}
.widget_search .search-submit {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-color: transparent;
    border: none;
    font-size: 0;
    cursor: pointer;
}
.widget_search .search-submit::before {
    font-family: 'remixicon' !important;
    content: "\f124";
    font-size: 1.25rem;
    font-weight: normal;
    font-style: normal;
    color: #6b7280;
}
.widget_recent_entries ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.widget_recent_entries li {
    line-height: 1.4;
}
.widget_recent_entries a {
    text-decoration: none;
    color: #374151;
}
.widget_recent_entries a:hover {
    color: #007AFF;
}

/* =================================================================
  Tag Cloud & Tag List Styles
================================================================= */
.widget_tag_cloud .tagcloud,
.tag-cloud-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.widget_tag_cloud .tagcloud-link,
.tag-cloud-container a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
    line-height: 1.5;
}
.widget_tag_cloud .tagcloud-link:hover,
.tag-cloud-container a:hover {
    background-color: #007AFF;
    color: white;
}
.tag-list-item {
    display: inline-flex;
    align-items: baseline;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-list-item:hover {
    background-color: #007AFF;
    color: white;
}
.tag-list-item .tag-list-name {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s;
}
.tag-list-item .tag-list-count {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    color: #6b7280;
    transition: color 0.2s;
}
.tag-list-item:hover .tag-list-name,
.tag-list-item:hover .tag-list-count {
    color: white;
}