/* Custom Styles for 長野県柔道連盟 - 伝統的で洗練されたデザイン */

/* ===== カラーパレット ===== */
:root {
    --color-primary: #c41e3a; /* 柔道の赤帯をイメージした深い赤 */
    --color-primary-light: #e63946;
    --color-primary-dark: #a01d2e;
    --color-accent: #d4af37; /* 金（伝統的なアクセント） */
    --color-bg: #ffffff;
    --color-bg-light: #fafafa;
    --color-bg-section: #f8f8f8;
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(196, 30, 58, 0.15);
}

/* ===== ベーススタイル ===== */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 139, 122, 0.02) 2px,
            rgba(139, 139, 122, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 180px,
            rgba(139, 139, 122, 0.015) 180px,
            rgba(139, 139, 122, 0.015) 181px
        );
    background-size: 100% 4px, 181px 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 畳のテクスチャを控えめに追加 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 89px,
            rgba(139, 139, 122, 0.01) 89px,
            rgba(139, 139, 122, 0.01) 90px
        );
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* ===== ヘッダー ===== */
header {
    background-color: var(--color-bg) !important;
    background-image: url('../images/base_back.gif');
    background-repeat: repeat-x;
    background-position: top;
    box-shadow: 0 2px 12px var(--color-shadow);
    border-bottom: 2px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding:20px 0 15px 0;
}
.navbar-nav .dropdown-toggle::after {
    margin-left: .05em !important; 
}
.navbar-nav .nav-item {
    margin-left: 6px;
}

header.scrolled {
    box-shadow: 0 4px 20px var(--color-shadow);
}

/* ナビゲーション */
.navbar {
    background-color: transparent;
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
    margin-right: 0;
}

.navbar-brand .logo-img {
    transition: opacity 0.3s ease;
    width: 240px;
    display: block;
}

.navbar-brand .logo-img:hover {
    opacity: 0.8;
}

/* Bootstrapのデフォルトスタイルを上書き */
.navbar-nav .nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-nav .nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}


.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    color: var(--color-text) !important;
    font-weight: 500;
    letter-spacing: 0.03em;
    font-size: .9rem !important;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-nav .nav-link:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
    background-color: transparent;
    transform: none;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 一時対応: お問い合わせリンクの active 表示を無効化 */
.navbar-nav .nav-link[href*="/contact/"].active {
    color: var(--color-text) !important;
}

.navbar-nav .nav-link[href*="/contact/"].active::before {
    width: 0 !important;
}

/* ドロップダウントグル */
.navbar-nav .dropdown-toggle::after {
    border-top-color: var(--color-text);
    margin-left: 0.3em !important;
    vertical-align: 0.2em;
}

.navbar-nav .dropdown-toggle:hover::after,
.navbar-nav .dropdown-toggle.active::after,
.navbar-nav .nav-link.active.dropdown-toggle::after {
    border-top-color: var(--color-primary);
}

/* ドロップダウンメニュー */
.dropdown-menu {
    margin-top: 0.5rem;
}

/* ハンバーガーメニュー */
.navbar-toggler {
    border: none;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.navbar-toggler:hover::before {
    left: 100%;
}

.navbar-toggler:hover {
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:active {
    transform: none;
    box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] {
    background-color: transparent;
}

.navbar-toggler-icon-menu,
.navbar-toggler-icon-close {
    font-size: 2rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.navbar-toggler-icon-close {
    display: none;
}

.navbar-toggler:hover .navbar-toggler-icon-menu,
.navbar-toggler:hover .navbar-toggler-icon-close {
    color: var(--color-primary-dark);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-menu {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-close {
    display: inline-block;
}


/* ナビゲーションの最大幅制限 */
@media (min-width: 992px) {
    .navbar-nav {
        max-width: 100%;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ドロップダウンメニュー */
.dropdown-menu {
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px var(--color-shadow);
    border-radius: 0;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: var(--color-text);
}

.dropdown-item:hover {
    background-color: var(--color-primary);
    color: white;
    padding-left: 2rem;
}

.dropdown-item.active {
    background-color: var(--color-primary);
    color: white;
}

/* ===== ヒーローセクション ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    margin-top: 0;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    animation: zoomIn 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.4) 0%, rgba(44, 44, 44, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    padding: 2rem 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    color: white;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255,1);
    font-weight:bold;
    line-height: 1.8;
    margin-bottom: 1rem;
    letter-spacing: .05em;
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    animation: fadeIn 1.2s ease;
}

.hero-buttons {
    animation: fadeIn 1.6s ease;
}

.btn-hero-primary {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.btn-hero-primary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-hero-outline {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.btn-hero-outline:hover {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

@keyframes zoomIn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== ショートカットカード ===== */
.shortcut-section {
    padding: 1rem 0;
    margin-bottom: 2rem !important;
    position: relative;
}

/* ショートカットセクションに畳のイメージ */
.shortcut-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 89px,
        rgba(139, 139, 122, 0.1) 89px,
        rgba(139, 139, 122, 0.1) 90px
    );
    opacity: 0.3;
}

.shortcut-card {
    display: block;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 139, 122, 0.02) 2px,
            rgba(139, 139, 122, 0.02) 3px
        );
    background-size: 100% 3px;
}

.shortcut-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.shortcut-card:hover::before {
    transform: scaleX(1);
}

.shortcut-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.02) 0%, rgba(196, 30, 58, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shortcut-card:hover::after {
    opacity: 1;
}

.shortcut-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--color-shadow-hover);
    border-color: var(--color-primary);
}

.shortcut-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.shortcut-icon i {
    font-size: 3rem;
    line-height: 1;
}

.shortcut-card:hover .shortcut-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

.shortcut-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    color: var(--color-text);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.shortcut-card:hover .shortcut-title {
    color: var(--color-primary);
}

.shortcut-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.shortcut-link {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.shortcut-link i {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    vertical-align: middle;
}

.shortcut-card:hover .shortcut-link {
    transform: translateX(5px);
    color: var(--color-primary-dark);
}

.shortcut-card:hover .shortcut-link i {
    transform: translateX(3px);
}

/* カード（既存のスタイル） */
.card {
    border: 1px solid var(--color-border);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--color-bg);
    overflow: hidden;
    position: relative;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 139, 122, 0.015) 2px,
            rgba(139, 139, 122, 0.015) 3px
        );
    background-size: 100% 3px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.05), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--color-shadow-hover);
    border-color: var(--color-primary);
}

.card-header {
    background-color: var(--color-primary) !important;
    color: white !important;
    border: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* ===== ニュースセクション ===== */
.news-list {
    max-width: 100%;
}

.news-item {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
    position: relative;
    animation: fadeIn 0.6s ease;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: rgba(196, 30, 58, 0.05);
    transition: width 0.3s ease;
}

.news-item:hover::before {
    width: 4px;
}

.news-item:hover {
    padding-left: 1.5rem;
    background-color: var(--color-bg-light);
}

.news-item h4 {
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.news-item:hover h4 {
    color: var(--color-primary);
}

.news-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.news-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

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

.news-item .text-muted {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

/* ===== アーカイブセクション ===== */
.archive-list {
    padding: 1rem 0;
}

.archive-list .btn {
    min-width: 70px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.archive-list .btn > * {
    position: relative;
    z-index: 1;
}

.archive-list .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--color-primary);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

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

.archive-list .btn span {
    position: relative;
    z-index: 1;
}

/* ===== ボタン ===== */
.btn {
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow-hover);
}

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

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow-hover);
}

/* ===== 記事前後ナビゲーション ===== */
.post-navigation {
    margin-bottom: 1rem;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    background-color: #fff;
}

.post-nav-link:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.1);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.post-nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.post-nav-title {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-link:hover .post-nav-title {
    color: var(--color-primary);
}

.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

@media (max-width: 767.98px) {
    .post-nav-next {
        text-align: left;
        align-items: flex-start;
    }
}

/* ===== スライドテキストセクション ===== */
.sliding-text-section {
    width: 100%;
    overflow: hidden;
    background-color: var(--color-bg);
    padding: 1.5rem 0;
    padding-bottom:5px;
    margin-bottom: 0;
    position: relative;
}

.sliding-text-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.sliding-text {
    display: flex;
    white-space: nowrap;
    animation: slideLeft 100s linear infinite;
    will-change: transform;
    width: fit-content;
}

.sliding-text span {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    padding: 0 3rem;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .sliding-text span {
        font-size: 2.5rem;
        padding: 0 2rem;
    }
    
    .sliding-text-section {
        padding: 1rem 0;
    }
}

/* ===== フッター ===== */
footer.footer-custom {
    background-color: #5a6b4f !important; /* 畳を連想する落ち着いた緑色 */
    background-image: url('../images/base_back.gif');
    background-repeat: repeat-x;
    background-position: top;
    margin-top: 0;
    border-top: 3px solid var(--color-primary);
    padding: 2.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-heading {
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
    padding-left: 0.5rem;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 1);
    padding-left: 1rem;
}

.footer-links a:hover::before {
    color: var(--color-primary-light);
    transform: translateX(3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* フッターのレスポンシブ対応 */
@media (max-width: 768px) {
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
}

/* ===== パンくずリスト ===== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-item.active {
    color: var(--color-text);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--color-text-light);
    padding: 0 0.5rem;
}

/* ===== テーブル ===== */
.table {
    border-color: var(--color-border);
}

.table-dark {
    background-color: var(--color-primary) !important;
    color: white;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: var(--color-bg-light);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(196, 30, 58, 0.05);
}

/* ===== フォーム ===== */
.form-control,
.form-select {
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

/* ===== リストグループ ===== */
.list-group-item {
    border: 1px solid var(--color-border);
    border-radius: 0;
    transition: all 0.3s ease;
}

.list-group-item-action:hover {
    background-color: rgba(196, 30, 58, 0.05);
    border-left: 3px solid var(--color-primary);
    padding-left: calc(1rem - 3px);
}

/* ===== アラート ===== */

.alert-info {
    border: 4px solid var(--color-primary);
    border-radius: 0;
    color: var(--color-text);
    padding:1rem;
    background-color: transparent;
}

/* ===== アニメーション ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* フェードインアニメーション */
.fade-in {
    animation: fadeIn 0.6s ease;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* ===== スクロールバー ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ===== リンク ===== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* ===== セクション ===== */
section {
    margin-bottom: 4rem;
    position: relative;
}

/* カードタイトルにも明朝体を適用 */
.card-title {
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

/* セクションに畳のイメージを控えめに追加 */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2rem;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(139, 139, 122, 0.05) 10%,
        rgba(139, 139, 122, 0.05) 90%,
        transparent 100%
    );
    opacity: 0.5;
}

@media (max-width: 768px) {
    section::before {
        display: none;
    }
}

main.container {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

/* 大きいサイズの見出しにはより太いフォントウェイトを適用 */
h1, h2, h3 {
    font-weight: 800;
}

h1 {
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-weight: 800;
}

h1.mb-4 {
    margin-bottom: 3rem !important;
}

h2 {
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-weight: 700;
}

h3 {
    font-family: 'Shippori Mincho', 'Noto Serif JP', "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-weight: 700;
}

/* h3要素と.h3クラスの背景装飾を削除 */
h3,
h2.h3,
.h3 {
    background: none !important;
    background-image: none !important;
    position: static !important;
    padding-left: 0 !important;
    padding-bottom: 8px !important;
}

h3::before,
h3::after,
h2.h3::before,
h2.h3::after,
.h3::before,
.h3::after {
    display: none !important;
    content: none !important;
}


.border-bottom {
    border-color: var(--color-border) !important;
    position: relative;
}

.border-bottom::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--color-primary);
}

/* ===== レスポンシブ ===== */
@media (max-width: 991px) {
}

@media (max-width: 768px) {
    .logo-img {
        width: auto;
    }
    
    .hero-section {
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .shortcut-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .shortcut-icon {
        width: 75px;
        height: 75px;
    }
    
    .shortcut-icon i {
        font-size: 2.5rem;
    }
    
    .shortcut-title {
        font-size: 1.25rem;
    }
    
    /* h2の筆の墨の線をモバイルでも適切に表示 */
    h2:not(.accent-line) {
        padding-left: 1rem;
    }
    
    h2:not(.accent-line)::before {
        width: 4px;
        left: -2px;
    }
    
    h2:not(.accent-line)::after {
        width: 8px;
        left: -3px;
    }
    
    /* モバイルでは畳のテクスチャを軽減 */
    body::before {
        opacity: 0.15;
    }
}
    
    .news-item {
        padding: 1rem 0;
    }
    
    .news-item:hover {
        padding-left: 1rem;
    }
    
    .archive-list .btn {
        margin: 0.25rem !important;
        font-size: 0.85rem;
        min-width: 60px;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
}

/* ===== 日本の伝統的な装飾要素 ===== */
/* 柔道の帯をイメージしたアクセントライン */
.accent-line {
    position: relative;
    padding-left: 1.5rem;
}

.accent-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px;
}

/* 柔道のシンボル文字 */
.judo-symbol {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-weight: 700;
    user-select: none;
    animation: float 4s ease-in-out infinite;
}

/* 伝統的な装飾線 */
.traditional-line {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.traditional-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), transparent);
}

/* カードの伝統的なアクセント */
.card-traditional {
    position: relative;
    overflow: hidden;
}

.card-traditional::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

/* ページロード時のアニメーション */
.page-load {
    animation: fadeIn 0.8s ease;
}

/* 柔道の精神を表現する装飾 */
.judo-spirit {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.02) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-left: 4px solid var(--color-primary);
}

.judo-spirit::before {
    content: '「精力善用」「自他共栄」';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    opacity: 0.6;
}

/* ホバー時の伝統的な効果 */
.traditional-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.traditional-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.12);
}

/* 帯の色をイメージしたグラデーション */
.belt-gradient {
    background: linear-gradient(90deg, 
        var(--color-primary-dark) 0%, 
        var(--color-primary) 50%, 
        var(--color-primary-dark) 100%);
}

/* 伝統的なボーダー */
.traditional-border {
    border: 2px solid var(--color-primary);
    position: relative;
}

.traditional-border::before,
.traditional-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
}

.traditional-border::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.traditional-border::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* article内のリンクとリストアイテムのスタイル */
article a {
    text-decoration: none;
}

article ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* 記事一覧のスタイル */
.event-item {
}

.event-date {
    font-weight: 600;
    color: var(--color-primary);
    min-width: 100px;
    flex-shrink: 0;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
}

.event-content h3 a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.event-content h3 a:hover {
    color: var(--color-primary);
}

/* ページネーションのスタイル */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.pagination .page-item.active .page-link {
    color: white;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 700;
    pointer-events: none;
}

.pagination .page-item.active .page-link:hover {
    color: white;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: none;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link {
    color: var(--color-text-light);
    background-color: var(--color-bg-light);
    border-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--color-bg-light);
    border-color: var(--color-border);
    color: var(--color-text-light);
}

/* ===== JS有効時の初期非表示状態（点滅防止） ===== */
/* <html> に .js クラスが付与されている場合のみ適用 */
/* JS が無効な環境ではすべて通常表示される */
.js body {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.js body.loaded {
    opacity: 1;
}

.js section:not(.hero-section) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js section:not(.hero-section).visible {
    opacity: 1;
    transform: translateY(0);
}

.js .news-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .news-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.js tbody tr {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.js tbody tr.visible {
    opacity: 1;
    transform: translateX(0);
}

.js .breadcrumb-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.js .breadcrumb-item.visible {
    opacity: 1;
    transform: translateX(0);
}
