/*
Theme Name: Anne Story
Theme URI:
Author: casio
Description: 赤毛のアン 絵本風テーマ
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Yomogi&family=Kaisei+Opti&display=swap');

:root {
    --red:    #c0392b;
    --green:  #4a7c59;
    --light-green: #e8f5e9;
    --cream:  #fdf6e3;
    --brown:  #8d6748;
    --text:   #3a2a1a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--cream);
    color: var(--text);
    font-family: 'Yomogi', 'Hiragino Maru Gothic Pro', sans-serif;
    font-size: 17px;
    line-height: 1.9;
}

/* ヘッダー */
#site-header {
    background: linear-gradient(180deg, #0d1b3e 0%, #1a2d52 60%, #1e3e60 100%);
    text-align: center;
    overflow: hidden;
    position: relative;
    border-bottom: 5px solid var(--red);
}

.header-illustration {
    width: 100%;
    display: block;
    line-height: 0;
}

.header-illustration svg {
    width: 100%;
    height: 160px;
    display: block;
}

.header-title-area {
    padding: 20px 20px 28px;
    background: linear-gradient(180deg, #4a7c59 0%, #3a6644 100%);
}

.flower-deco {
    display: flex;
    justify-content: center;
    margin: 6px 0;
}

#site-header h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 2.2rem;
    font-family: 'Kaisei Opti', serif;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 0 var(--brown);
    display: block;
    margin: 8px 0;
}

#site-header .tagline {
    color: var(--light-green);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* 草花ボーダー */
.leaf-border {
    background-color: var(--cream);
    line-height: 0;
}

.leaf-border svg {
    width: 100%;
    height: 28px;
    display: block;
}

/* フッター飾り */
.footer-deco {
    line-height: 0;
    margin-bottom: 10px;
}

.footer-deco svg {
    width: 100%;
    height: 20px;
}

/* 続きを読むボタン */
.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--green);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px dashed var(--green);
    padding-bottom: 2px;
}

.read-more:hover {
    color: var(--red);
    border-color: var(--red);
}

/* ナビ */
nav {
    background-color: var(--red);
    text-align: center;
    padding: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
}

nav a:hover {
    text-decoration: underline;
}

/* メインレイアウト */
#wrapper {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

/* 記事 */
article {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid var(--light-green);
    box-shadow: 3px 3px 0 var(--light-green);
    margin-bottom: 30px;
}

article h2 a {
    color: var(--green);
    text-decoration: none;
    font-family: 'Kaisei Opti', serif;
    font-size: 1.4rem;
}

article h2 a:hover {
    color: var(--red);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--brown);
    margin: 8px 0 16px;
}

/* サイドバー */
aside {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid var(--light-green);
    box-shadow: 3px 3px 0 var(--light-green);
    height: fit-content;
}

aside h3 {
    color: var(--red);
    font-family: 'Kaisei Opti', serif;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px dashed var(--light-green);
}

aside ul {
    list-style: none;
    padding: 0;
}

aside ul li {
    padding: 5px 0;
    border-bottom: 1px solid var(--light-green);
}

aside ul li a {
    color: var(--green);
    text-decoration: none;
}

aside ul li a:hover {
    color: var(--red);
}

/* フッター */
#site-footer {
    background-color: var(--green);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    border-top: 5px solid var(--red);
    margin-top: 60px;
}

/* レスポンシブ */
@media (max-width: 680px) {
    #wrapper {
        grid-template-columns: 1fr;
    }
}
