/*
 * ナチュラル・クラフト テーマ
 * 温かみのある地域密着デザイン
 * 既存style.cssの上から適用
 */

/* ======== カラーパレット上書き ======== */
:root {
    --primary: #3D7FAD;
    --primary-dark: #2E6690;
    --primary-pale: rgba(61, 127, 173, 0.07);
    --primary-mist: rgba(61, 127, 173, 0.13);
    --accent: #6A8E5B;
    --accent-pale: rgba(106, 142, 91, 0.10);
    --dark: #1E2A33;
    --text: #2B3640;
    --text-secondary: #5F7080;
    --border: #D8E1E8;
    --border-light: #E8EEF3;
    --bg-warm: #F6F9FB;
    --bg-cool: #EDF2F6;
    --white: #FCFDFE;
    --shadow-sm: 0 2px 8px rgba(30, 42, 51, 0.06);
    --shadow-md: 0 6px 20px rgba(30, 42, 51, 0.08);
    --shadow-lg: 0 12px 36px rgba(30, 42, 51, 0.10);
    --shadow-xl: 0 20px 50px rgba(30, 42, 51, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --primary-color: var(--primary);
    --primary-light: var(--primary-pale);
    --secondary-color: var(--primary-dark);
}


/* ======== ベース ======== */
body {
    background-color: var(--bg-warm);
}


/* ======== ヘッダー ======== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(30, 42, 51, 0.06);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

nav ul li a::after {
    background-color: var(--primary);
}


/* ======== ボタン ======== */
.btn {
    background-color: transparent;
    border: 1.5px solid var(--dark);
    border-radius: var(--radius-md);
    padding: 13px 32px;
    font-size: 12px;
    transition: all 0.3s var(--ease);
}

.btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 127, 173, 0.25);
}

.btn-outline-white {
    border-color: rgba(255,255,255,0.5);
    border-radius: var(--radius-md);
}

.btn-outline-white:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary);
}


/* ======== ヒーロー（共通上書きなし：サブページは元のインラインCSSに任せる） ======== */


/* ======== セクション共通 ======== */
section {
    padding: 80px 0;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 5px;
    opacity: 1;
}

.section-title {
    font-weight: 500;
    font-size: 28px;
    color: var(--dark);
}


/* ======== ミッション ======== */
.mission-section {
    background-color: var(--white);
    padding: 72px 0 64px;
}

.mission-values {
    border: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    background: transparent;
    overflow: visible;
}

.mission-value {
    background-color: var(--bg-warm);
    border: none;
    border-right: none;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--border);
    padding: 32px 28px;
    box-shadow: none;
    text-align: left;
    transition: all 0.3s var(--ease);
}

.mission-value:last-child {
    border-right: none;
}

.mission-value:hover {
    background-color: var(--bg-cool);
    border-left-color: var(--primary);
    transform: none;
    box-shadow: none;
}

.mission-value--large {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 36px;
    background-color: #1E3448;
    border-left: none;
    border-radius: var(--radius-lg);
}

.mission-value--large h3 {
    color: var(--white) !important;
    font-size: 22px !important;
}

.mission-value--large p {
    color: rgba(255,255,255,0.7) !important;
}

.mission-value--large:hover {
    background-color: #243d54;
    border-left-color: transparent;
}

.value-icon {
    display: none;
}

.mission-value h3 {
    font-size: 16px;
    letter-spacing: 0.12em;
}


/* ======== 理事長メッセージ ======== */
.chairman-teaser-section {
    background-color: var(--bg-warm);
    padding: 64px 0 72px;
}

.chairman-teaser-photo img {
    border-radius: var(--radius-lg);
    box-shadow: 8px 8px 0 var(--border);
}

.chairman-teaser-quote {
    border-left-color: var(--primary) !important;
}

.chairman-teaser-position {
    color: var(--primary) !important;
}


/* ======== ニュース ======== */
.news-section {
    background-color: var(--bg-cool) !important;
    padding: 72px 0 64px !important;
}

.news-items {
    gap: 20px !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.news-item {
    background-color: var(--white) !important;
    border: none !important;
    border-right: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: all 0.35s var(--ease) !important;
}

.news-item:last-child {
    border-right: none !important;
}

.news-item:hover {
    background-color: var(--white) !important;
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-5px);
}

.news-item img,
.news-item-image {
    border-radius: 0 !important;
    filter: saturate(1.05) !important;
}

.news-content,
.news-item-content {
    border-top: none !important;
    padding: 24px 28px !important;
}

.news-content .btn-link,
.news-item-content .read-more {
    color: var(--primary) !important;
}


/* ======== 活動内容 ======== */
.activities-section {
    background-color: var(--white);
    padding: 72px 0 80px;
}

.activities-items {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.activity-item {
    border-right-color: rgba(255,255,255,0.15);
}

.activity-overlay h3 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


/* ======== 70周年セクション（index.htmlインライン用） ======== */
/* index.htmlのstyleタグにインラインで書かれているため
   ここで !important で上書き */


/* ======== 問い合わせCTA ======== */
.contact-cta-section {
    border-radius: 0;
}

.contact-cta-section .contact-info-card {
    border-radius: var(--radius-lg);
}


/* ======== アニメーション ======== */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-active {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.12s; }
.animate-delay-2 { transition-delay: 0.24s; }
.animate-delay-3 { transition-delay: 0.36s; }


/* ======== サブページ共通ヒーロー ======== */
/* 各サブページのヒーローは元のインラインスタイルに任せる */


/* ======== スクロールトップ ======== */
.scroll-top {
    background-color: var(--primary) !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-md) !important;
}

.scroll-top:hover {
    background-color: var(--primary-dark) !important;
}


/* ======== フッター ======== */
footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border);
}

.footer-stat-number {
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
}

.social-links a {
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    transition: all 0.25s var(--ease);
}

.social-links a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 127, 173, 0.3);
}

.footer-bottom {
    border-top-color: var(--border);
}


/* ======== イベントページ ======== */
.event-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.event-item:hover {
    box-shadow: var(--shadow-md);
}


/* ======== コンタクトページ ======== */
.contact-method-card {
    border-radius: var(--radius-lg);
}

.social-card {
    border-radius: var(--radius-lg);
}


/* ======== メンバーページ ======== */
.member-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.member-card img {
    transition: transform 0.5s var(--ease);
}

.member-card:hover img {
    transform: scale(1.03);
}


/* ======== 全体的な微調整 ======== */
::selection {
    background-color: rgba(61, 127, 173, 0.2);
    color: var(--dark);
}

/* リンクホバー色 */
a:hover {
    color: var(--primary-dark);
}

/* 画像の角丸 */
.chairman-photo img,
.activity-photo img {
    border-radius: var(--radius-lg);
}

/* テーブルやリスト */
.footer-links-section a:hover {
    color: var(--primary);
}

/* ======== 関連団体セクション（フッター内） ======== */
.footer-related-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.footer-related-toggle button {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    letter-spacing: 0.04em;
}

.footer-related-toggle button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-related-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 24px;
}

.footer-related-card {
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    border: 1px solid transparent;
    transition: all 0.2s var(--ease);
}

.footer-related-card:hover {
    background: var(--white);
    border-color: var(--border);
}

.footer-related-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.footer-related-card a {
    font-size: 13px;
    padding: 6px 0;
    display: block;
    transition: color 0.15s var(--ease);
}

.footer-related-card li {
    border-bottom: none;
}

.footer-related-card .card-note {
    font-size: 11px;
    color: var(--primary);
    margin-top: 8px;
}

.footer-related-card--wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .footer-related-card--wide {
        grid-column: span 1;
    }
}


/* ============================================================
   トップページ専用スタイル — 脱AI構造
   ============================================================ */

/* ---- ヒーロー（トップページ専用） ---- */
.page-home .hero {
    background-image:
        linear-gradient(
            160deg,
            rgba(30, 42, 51, 0.55) 0%,
            rgba(30, 42, 51, 0.25) 50%,
            rgba(30, 42, 51, 0.10) 100%
        ),
        url('../images/hero/hero-index.jpg');
    justify-content: flex-start;
    align-items: flex-end;
    padding-bottom: 80px;
}

.page-home .hero-content {
    padding: 0 48px;
}

.page-home .hero-content h1 {
    color: var(--white);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.20em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-home .hero-content h1 span {
    color: rgba(255,255,255,0.75);
    font-size: 44px;
}

.page-home .hero::after {
    display: none;
}


/* ---- 理事長所信セクション ---- */
.chairman-message-section {
    padding: 72px 0 64px;
    background-color: var(--white);
}

.chairman-message-header {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.chairman-photo img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    object-position: center 15%;
    border-radius: var(--radius-md);
}

.chairman-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.chairman-position {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.08em;
}

.chairman-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 0.06em;
}

.chairman-slogan {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    letter-spacing: 0.06em;
}

.chairman-quote {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 2;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding-left: 24px;
    margin: 0;
    max-width: 640px;
}

.chairman-read-more {
    margin-top: 24px;
}

.chairman-read-more a {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.chairman-read-more a:hover {
    color: var(--primary-dark);
}

.message-content {
    max-width: 720px;
}

.message-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
    letter-spacing: 0.06em;
}

.message-content p {
    font-size: 15px;
    line-height: 2.1;
    color: var(--text);
    margin-bottom: 16px;
    text-align: justify;
}

.basic-policies {
    margin-top: 48px;
    padding: 28px 32px;
    background-color: var(--bg-warm);
    border-radius: var(--radius-md);
}

.basic-policies h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
    border: none;
    padding-left: 0;
}

.basic-policies ol {
    list-style: decimal;
    padding-left: 24px;
}

.basic-policies li {
    font-size: 14px;
    line-height: 2;
    color: var(--text);
    padding-left: 4px;
}

.chairman-keywords {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
}

.keyword-divider {
    color: var(--border);
}


/* ---- お知らせセクション ---- */
.news-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.news-heading-row h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 0.06em;
}

.news-all-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.news-all-link:hover {
    color: var(--primary-dark);
}


/* ---- 活動紹介セクション ---- */
.activities-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}

.activities-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.activity-entry {
    display: block;
}

.activity-image-link {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.activity-image-link img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
    filter: brightness(0.95);
}

.activity-image-link:hover img {
    transform: scale(1.02);
}

.activity-entry h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    margin-top: 16px;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.activity-entry p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* ---- 70周年ブロック ---- */
.anniversary-block {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.anniversary-year {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--primary);
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 12px;
}

.anniversary-block h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.anniversary-block p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 20px;
    max-width: 640px;
}

.anniversary-block a {
    font-size: 13px;
    color: var(--primary);
}


/* ---- 下部セクション（問い合わせ＋アーカイブ） ---- */
.bottom-section {
    padding: 56px 0;
    background-color: var(--bg-cool);
}

.bottom-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.bottom-contact h2,
.bottom-archive h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

.bottom-contact p {
    font-size: 14px;
    color: var(--text);
    line-height: 2.2;
}

.bottom-contact i {
    color: var(--text-secondary);
    width: 18px;
    margin-right: 8px;
}

.bottom-contact a {
    color: var(--primary);
}

.archive-link-item {
    padding: 24px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.archive-year {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.archive-slogan {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
}

.archive-chairman {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
}

.archive-btn {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.archive-btn:hover {
    color: var(--primary-dark);
}


/* ---- モバイル対応（トップページ） ---- */
@media (max-width: 768px) {
    .page-home .hero {
        padding-bottom: 48px;
        align-items: flex-end;
    }

    .page-home .hero-content {
        padding: 0 24px;
    }

    .page-home .hero-content h1 {
        font-size: 32px;
    }

    .page-home .hero-content h1 span {
        font-size: 28px;
    }

    .chairman-message-header {
        flex-direction: column;
        gap: 20px;
    }

    .chairman-photo img {
        width: 120px;
        height: 150px;
    }

    .chairman-name {
        font-size: 22px;
    }

    .message-content {
        max-width: 100%;
    }

    .bottom-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .activity-image-link img {
        height: 200px;
    }

    .anniversary-year {
        font-size: 36px;
    }
}


/* ============================================================
   アクセシビリティ改善 — 視認性・可読性の底上げ
   デザインの品位を保ちつつ、最低12pxを保証する
   ============================================================ */

/* ---- ロゴ副題「一般社団法人」---- */
/* 11px→12px。ウェイトを少し上げて小さくても読めるように */
.logo-text .logo-full,
.logo-full {
    font-size: 12px;
    font-weight: 450;
}

.footer-logo-text .logo-full {
    font-size: 12px;
}

/* ---- セクションサブタイトル ---- */
/* 11px→12px。letter-spacingを4→3pxに詰めて圧迫感を減らす */
.section-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
}

/* ---- ニュース日付・リンク ---- */
.news-content .news-date,
.news-item-content .date {
    font-size: 12px !important;
}

.news-content .btn-link,
.news-item-content .read-more {
    font-size: 12px;
}

/* ---- メンバー役職ラベル ---- */
.member-position {
    font-size: 12px;
}

.member-position-label {
    font-size: 12px;
    letter-spacing: 2px;
}

/* ---- カスタムタグ ---- */
.custom-tag {
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* ---- フッター ---- */
/* ラベル群: 11px→12px、letter-spacingを控えめに */
.footer-stat-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    opacity: 1;
    color: var(--text-secondary);
}

.footer-links-section h3 {
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-contact-section h3 {
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-contact .contact-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    opacity: 1;
    color: var(--text-secondary);
}

/* コピーライト: opacityではなく直接色で制御 */
.copyright {
    font-size: 12px;
    opacity: 1;
    color: #9CA3AF;
}

.copyright-full {
    font-size: 12px;
}

/* ---- 組織図の小さい文字 ---- */
.org-badge,
.org-legend-item,
.org-role-label,
.org-vice-sub-role,
.org-member-role,
.org-note,
.role-note {
    font-size: 12px !important;
}

/* 委員会方針の見出し */
.org-section h4,
.committee-detail h4 {
    font-size: 13px !important;
}

/* 管理リンク: opacity 0.5は暗すぎる→色で制御 */
.footer-admin-link {
    font-size: 12px;
    opacity: 1;
    color: #9CA3AF;
}

.footer-admin-link:hover {
    color: var(--primary);
}

.footer-admin-link i {
    font-size: 11px;
}

/* 関連カードの注釈 */
.footer-related-card .card-note {
    font-size: 12px;
    opacity: 1;
}

/* トグルボタンのアイコン */
.toggle-btn .icon {
    font-size: 12px;
}

/* ---- イベントページ ---- */
.event-date .month {
    font-size: 12px !important;
    opacity: 0.85 !important;
    letter-spacing: 1px !important;
}

.event-category {
    font-size: 12px !important;
    letter-spacing: 1px !important;
}

.recent-date {
    font-size: 12px !important;
}

/* ---- ニュースバッジ ---- */
.news-item-badge {
    font-size: 12px;
}

/* ---- お問い合わせページ（モバイルSNSカード） ---- */
@media (max-width: 768px) {
    .social-card span {
        font-size: 12px;
    }
}

/* ---- モバイルのロゴ副題 ---- */
/* 極小画面でも最低11pxを保証（8px→11px） */
@media (max-width: 576px) {
    .logo-text .logo-full,
    .logo-full {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .logo-text .logo-full,
    .logo-full {
        font-size: 11px !important;
    }
}

@media (max-width: 320px) {
    .logo-text .logo-full,
    .logo-full {
        font-size: 10px !important;
    }
}
