@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fdfdfa; /* 暖かみのある白 */
    color: #333333; /* 基本の文字色 */
    line-height: 1.8;
    margin: 0;
}

a {
    color: #0d5c63; /* 落ち着いた緑がかった青 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #278c8f; /* ホバー時の色 */
}

h1, h2, h3, h4 {
    font-weight: 700;
}

/* グリッドレイアウト */
div.grid {
    display: grid;
    grid-template-areas:
        "head head"
        "main main"
        "topics aside"
        "foot foot"
        "copyright copyright";
    grid-template-columns: 1fr 200px; /* asideの幅を少し広げる */
    gap: 30px; /* 要素間の余白 */
/*    max-width: 1200px;  */
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
.site {
    grid-area: head;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50; /* 濃いスレートグレイ */
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 20px;
}
.site a {
    line-height: 0; /* 画像周りの余分なスペースを削除 */
}
.site small {
    font-size: 16px;
    color: #7f8c8d; /* グレー */
}

/* メインビジュアル */
.main {
    grid-area: main;
}

.top {
    grid-area: main;
    grid-template-columns: 1fr;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.top img {
    width: 100%;
    display: block;
}
.top .explanation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 40px 30px 20px;
    font-size: 18px;
    box-sizing: border-box; /* paddingを幅に含める */
}

/* Topics (カードデザイン) */
.topics {
    grid-area: topics;
}
.topics ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.topics li {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.topics li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.topics li a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.topics li img {
    width: 100%;
    height: auto;
    display: block;
}
.topics li h4 {
    font-size: 18px;
    color: #0d5c63;
    margin: 0;
}
.topics li p {
    font-size: 14px;
    color: #555555;
    line-height: 1.7;
}
.topics li > a > div { /* テキストコンテンツのラッパーを追加するとより良い */
    padding: 20px;
}
/* HTMLの変更が難しい場合、以下で調整 */
.topics li h4, .topics li p {
    padding: 0 20px;
}
.topics li h4 {
    margin-top: 20px;
}
.topics li p {
    padding-bottom: 20px;
}


/* 万葉集とは？セクション */
article.information {
    margin-top: 40px;
}
article.information h3 {
    font-size: 22px;
    color: #2c3e50;
    border-left: 5px solid #0d5c63;
    padding-left: 15px;
    margin-bottom: 20px;
}
article.information img.photo_left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
}
.clear {
    clear: both;
}

/* News (更新情報) */
.news {
    grid-area: aside;
    background-color: #f5f8f8;
    padding: 20px;
    border-radius: 10px;
}
.news h1 {
    font-size: 20px;
    text-align: center;
    color: #0d5c63;
    margin-top: 0;
    margin-bottom: 20px;
}
.news article {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}
.news article:last-child {
    border-bottom: none;
}
.news p {
    margin: 5px 0;
    font-size: 14px;
}
#underNavi {
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

/* mail address */
    article img.mailaddress {
        width: 300px;
    }

/* フッター */
.footer {
    grid-area: foot;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px;
    border-radius: 10px;
}
.footer a {
    color: #ecf0f1;
    text-decoration: underline;
}
.footer a:hover {
    color: #ffffff;
}

/* コピーライト */
.copyright {
    grid-area: copyright;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

/*
 * レスポンシブ対応 (900px以下)
 */
@media (max-width: 900px) {
    div.grid {
        grid-template-areas:
            "head head"
            "main main"
            "topics topics"
            "aside aside"
            "foot foot"
            "copyright copyright";
        grid-template-columns: 1fr 1fr;
        padding: 15px;
        gap: 20px;
    }
    .topics ul {
        grid-template-columns: 1fr 1fr;
    }
}


/*
 * レスポンシブ対応 (600px以下)
 */
@media (max-width: 600px) {
    body {
        font-size: 95%; /* 小さすぎるフォントサイズをリセット */
    }
    .site {
        flex-direction: column; /* ロゴとテキストを縦に並べる */
        align-items: flex-start;
        font-size: 24px;
    }
    .top .explanation {
        font-size: 16px;
        padding: 30px 20px 15px;
    }
    .topics ul {
      /* 1列表示に変更 */
      grid-template-columns: 1fr;
      gap: 10px;
    }
    article.information h3 {
        font-size: 20px;
    }
}