
/* 日本ジェロントロジー協会 */

/* 基本設定 */
:root {
    --page: #e5e5e5;
    --text: #333;
    --accent: #6f02ce;
    --footer: #323437;
    --content: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 16px/1.7 Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ヘッダー */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px #0002;
    position: relative;
    z-index: 2;
}

.header-inner {
    max-width: var(--content);
    min-height: 88px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* ロゴ */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.brand img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.site-logo {
    display: inline-block;
}

.site-logo img {
    display: block;
    width: 80px;
    height: auto;
}

/* ナビゲーション */
.primary-nav ul,
.site-footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    display: block;
    text-decoration: none;
    padding: 12px 10px;
    font-size: 14px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.site-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: #003366;
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

/* メイン画像：写真全体を表示 */
.hero {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    background: #fff;
}

.hero-image,
.hero .hero-image {
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    opacity: 1;
    animation: none;
    transform: none;
}

/* 新着情報 */
.news {
    max-width: var(--content);
    margin: 30px auto 65px;
    padding: 24px 26px;
    background: #fff;
}

.news h1 {
    font-size: 28px;
    margin: 0 0 15px;
}

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

.news-list li {
    border-bottom: 1px solid #ddd;
}

.news-list li:first-child {
    border-top: 1px solid #ddd;
}

.news-list a {
    display: flex;
    gap: 22px;
    padding: 15px 5px;
    text-decoration: none;
}

.news-list a:hover,
.news-list a:focus-visible {
    color: var(--accent);
    background: #faf7ff;
}

.news-list time {
    flex: 0 0 125px;
    color: #666;
}

/* フッター */
.site-footer {
    background: var(--footer);
    color: white;
}

.footer-inner {
    max-width: var(--content);
    margin: auto;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.site-footer a {
    text-decoration: none;
    font-size: 14px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer small {
    color: #ddd;
}

/* スマートフォン対応 */
@media (max-width: 800px) {
    .header-inner {
        min-height: 74px;
        flex-wrap: wrap;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: 1px solid #999;
        border-radius: 4px;
        padding: 11px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 23px;
        height: 2px;
        background: #333;
    }

    .primary-nav {
        display: none;
        width: 100%;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        display: block;
    }

    .primary-nav li {
        border-top: 1px solid #eee;
    }

    .primary-nav a {
        padding: 11px;
    }

    .site-nav ul {
        flex-wrap: wrap;
        gap: 12px;
    }


    .news {
        margin: 20px 12px 35px;
        padding: 20px 16px;
    }

    .news-list a {
        display: block;
    }

    .news-list time {
        display: block;
        font-size: 13px;
    }

    .footer-inner {
        display: block;
    }

    .site-footer ul {
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* メイン画像を切り取らずに全体表示 */
.hero {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.hero img.hero-image {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    clip-path: none !important;
}
