/*
Theme Name: JWU Media Coverage
Theme URI: https://www.jwu.ac.jp/
Description: 学校法人日本女子大学 メディア掲載紹介サイト用テーマ
Version: 2.0
Author: Japan Women's University
Author URI: https://www.jwu.ac.jp/
Text Domain: jwu-media
*/

/* ===== Reset & Base ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

a {
    color: #84001e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Container ===== */
#container {
    max-width: 100%;
    margin: 0 auto;
}

#container-inner {
    background: #fff;
}

/* ===== Header ===== */
#header {
    background-color: #84001e;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0;
    min-height: 180px;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* グラデーションで下部を暗くし、テキストを読みやすく */
    background: linear-gradient(
        to bottom,
        rgba(132, 0, 30, 0.5) 0%,
        rgba(132, 0, 30, 0.7) 100%
    );
}

#header-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 180px;
}

#header-content {
    flex: 1;
}

#header-name {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#header-name a {
    color: #fff;
    text-decoration: none;
}

#header-name a:hover {
    text-decoration: none;
    opacity: 0.9;
}

#header-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    margin-top: 10px;
    font-weight: normal;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===== Header Search ===== */
#header-search {
    flex-shrink: 0;
}

#searchform {
    display: flex;
    gap: 8px;
}

#searchform #s {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
}

#searchform #s:focus {
    outline: none;
    border-color: #fff;
    background: #fff;
}

#searchform #searchsubmit {
    padding: 12px 24px;
    background: #fff;
    color: #84001e;
    border: 2px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

#searchform #searchsubmit:hover {
    background: transparent;
    color: #fff;
}

/* ===== Filter Section ===== */
#filter-section {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

#filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#archive-filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

#archive-filter-form select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    min-width: 180px;
    cursor: pointer;
}

#archive-filter-form select:focus {
    outline: none;
    border-color: #84001e;
}

.filter-reset {
    padding: 10px 20px;
    background: #6c757d;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
}

.filter-reset:hover {
    background: #5a6268;
}

.filter-status {
    background: #e8f4fd;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid #84001e;
}

.filter-status .result-count {
    color: #666;
    margin-left: 10px;
}

/* ===== Content Area ===== */
#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

#alpha {
    width: 100%;
}

/* ===== Articles List (Text Only - Simple Design) ===== */
.articles-list {
    background: #fff;
}

.list-item {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.list-item:first-child {
    padding-top: 0;
}

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

.list-item .asset-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.list-item .asset-date {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.list-item .asset-date time {
    color: #666;
    font-size: 14px;
}

.media-type-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #84001e;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
    white-space: nowrap;
}

.list-item .asset-main {
    flex: 1;
}

.list-item .asset-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
}

.list-item .asset-name a {
    color: #333;
}

.list-item .asset-name a:hover {
    color: #84001e;
}

/* External Link Icon */
.external-icon {
    display: inline-block;
    font-size: 12px;
    margin-left: 6px;
    opacity: 0.4;
    vertical-align: middle;
}

.list-item .asset-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    display: none; /* Hide excerpt for cleaner design like Senshu */
}

.external-link {
    font-size: 13px;
    color: #0066cc !important;
}

/* ===== Search Results ===== */
.search-results-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #84001e;
}

.search-results-header h1 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #333;
}

.search-results-count {
    color: #666;
    font-size: 14px;
}

/* ===== No Posts ===== */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.no-posts h2 {
    color: #333;
    margin-bottom: 10px;
}

.no-posts p {
    color: #666;
}

/* ===== Pagination ===== */
.content-nav {
    margin-top: 40px;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.nav-links .page-numbers:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.nav-links .page-numbers.current {
    background: #84001e;
    color: #fff;
    border-color: #84001e;
}

/* ===== Footer ===== */
#footer {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 0;
}

#footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #84001e;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #fff;
}

.contact-info {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.8;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: #3498db;
}

.contact-info a:hover {
    color: #5dade2;
}

.footer-logo {
    margin-top: 20px;
}

.footer-logo img {
    height: 114px;
    width: auto;
}

.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    color: #7f8c8d;
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    #header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    #header-name {
        font-size: 20px;
    }
    
    #searchform #s {
        width: 150px;
    }
    
    #archive-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    #archive-filter-form select {
        min-width: 100%;
    }
    
    .list-item .asset-content-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .list-item .asset-date {
        min-width: auto;
    }
    
    #footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== Sidebar (if used) ===== */
#beta {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.widget {
    margin-bottom: 30px;
}

.widget-header {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #84001e;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #333;
    font-size: 14px;
}

.widget ul li a:hover {
    color: #84001e;
}

/* ===== Single Article Page ===== */
.back-to-list {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.back-to-list:hover {
    color: #84001e;
}

.single-article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

.single-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.single-meta time {
    color: #666;
    font-size: 14px;
}

.single-title {
    font-size: 24px;
    line-height: 1.5;
    margin: 0;
    color: #333;
}

.single-content {
    line-height: 1.9;
    font-size: 16px;
}

.single-content p {
    margin-bottom: 1.5em;
}

.single-content a {
    color: #0066cc;
    text-decoration: underline;
}

.external-link-box {
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.external-link-button {
    display: inline-block;
    padding: 15px 30px;
    background: #84001e;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
}

.external-link-button:hover {
    background: #6a0018;
}

.single-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.single-footer .label {
    font-weight: bold;
}

.single-categories,
.single-tags {
    margin-bottom: 10px;
}

.single-categories a,
.single-tags a {
    color: #84001e;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.post-navigation a {
    color: #666;
}

.post-navigation a:hover {
    color: #84001e;
}

/* ===== Archive Page ===== */
.archive-title-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #84001e;
}

.archive-title-header h1 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #333;
}

.archive-description {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.archive-count {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* ===== 404 Error Page ===== */
.error-page {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
}

.error-page h1 {
    font-size: 120px;
    color: #84001e;
    margin: 0;
    line-height: 1;
}

.error-page h2 {
    font-size: 24px;
    color: #333;
    margin: 20px 0;
}

.error-page p {
    color: #666;
    margin-bottom: 30px;
}

.back-home-button {
    display: inline-block;
    padding: 15px 30px;
    background: #84001e;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
}

.back-home-button:hover {
    background: #6a0018;
}

.error-search {
    margin-top: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-search p {
    margin-bottom: 15px;
}

.error-search #searchform {
    display: flex;
    gap: 8px;
}

.error-search #s {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error-search #searchsubmit {
    padding: 10px 20px;
    background: #84001e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ===== Page Template ===== */
.page-asset {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

.page-asset .asset-name {
    font-size: 24px;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #84001e;
}

.page-asset .asset-body {
    line-height: 1.9;
}

.page-asset .asset-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
