@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Noto+Serif+JP:wght@400;700&display=swap');

:root {
    --main-color: #fffaf0; /* フローラルホワイト */
    --accent-color: #6A8EAE;
    --sub-color: #D4B8AF;
    --text-color: #5D4037;
    --bg-color: #FFFDF5;
    --header-footer-bg: #fffaf0;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
}


a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
    text-decoration: none;
}

header {
    background-color: var(--header-footer-bg);
    padding: 20px 40px;
    text-align: center;
    border-bottom: 2px solid var(--sub-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

header h1 a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

header p {
    margin: 0;
    font-size: 0.9em;
}

header nav a {
    margin-left: 20px;
    font-weight: bold;
    color: var(--text-color);
}


main {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background-color: var(--header-footer-bg);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 25px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-list li a {
    display: block;
    padding: 15px;
    background-color: #fcfcfc;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    font-weight: bold;
    color: var(--text-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.article-list li a:hover {
    background-color: var(--main-color);
    border-color: var(--sub-color);
}

.date-style {
    font-size: 0.85em;
    color: #888; /* A more subtle grey color */
    font-weight: normal;
    display: block; /* Ensures the date is on its own line */
    margin-bottom: 5px; /* Adds a small space below the date */
}

.article-list li a h3 {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--text-color);
}


.article-content h1, .article-content h2, .article-content h3 {
    border-bottom: 2px solid var(--sub-color);
    padding-bottom: 10px;
    margin-top: 3.0em;
    margin-bottom: 50px;
}

.article-content p{
    margin-bottom: 50px;
}

.article-content hr{
    display: none;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #8AAECB;
    opacity: 1;
}

/* プロフィールページ */
.profile-card {
    text-align: center;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--sub-color);
    margin-bottom: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    main {
        padding: 20px 15px;
    }
    header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    header nav {
        margin-top: 10px;
    }
    header nav a {
        margin: 0 10px;
    }
}

/* 検索フォーム */
.search-form {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.search-form input[type="text"] {
    flex-grow: 1;
    border: 2px solid var(--sub-color);
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 1em;
    font-family: inherit;
    color: var(--text-color);
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #8AAECB; /* Lightened accent color */
}

.article-content .character-icon{
    width: 50px;
}

/* ページネーション */
.pagination {
    margin-top: 30px;
    text-align: center;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid var(--sub-color);
    border-radius: 5px;
    color: var(--text-color);
}
.pagination a:hover {
    background-color: var(--sub-color);
    opacity: 1;
}
.pagination .current-page {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* パンくずリスト */
.breadcrumb-container {
    padding: 5px 15px;
    margin: 0 auto;
    max-width: 800px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.9em;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--accent-color);
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: ">";
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: bold;
}

.article-list .term {
    font-size: 1.2em;
    text-decoration: #a7f2ad wavy underline;
    color: #4ec367;
}
