/**
 * ADC2026 共通スタイル
 * Movable Type 用に外部ファイル化
 */

/* ===== アニメーション用クラス（トップページなど） ===== */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

.animate-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* パララックス効果 */
.parallax {
    transition: transform 0.3s ease-out;
}

/* ===== Archive ページ用スタイル ===== */
html {
    scroll-behavior: smooth;
}

.archive-section {
    scroll-margin-top: 6rem;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem 1.25rem 1.5rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .archive-section {
        scroll-margin-top: 7rem;
        padding: 2rem 2rem 2rem 1.75rem;
    }
}

.archive-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #d1d5db;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    background: #e5e7eb;
    color: #2d2d2d;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.archive-tab:hover {
    background: #d1d5db;
    border-color: #9ca3af;
}

.archive-tab--active {
    background: #fff;
    border-color: #9ca3af;
    border-bottom: 2px solid #f5f5f5;
    margin-bottom: -2px;
    font-weight: 600;
}

.archive-nav-bar {
    background: rgba(45, 45, 45, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 1.25rem;
}

/* アーカイブ各セクションの見出し（項目の区切りを明確に） */
.archive-section h2 {
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    font-size: 1.875rem; /* text-3xl */
}

@media (min-width: 768px) {
    .archive-section h2 {
        font-size: 2.25rem; /* text-4xl */
    }
}

.archive-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
}

.archive-nav-bar a.is-active {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* Other Entries タイル（4列・正方形画像・タイトルのみ） */
.other-entry-tile { text-align: center; }
.other-entry-tile > a.glightbox { text-decoration: none; color: inherit; }
.other-entry-tile__frame {
    aspect-ratio: 1;
    border: 1px solid #e8e8e8;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.other-entry-tile__frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.other-entry-tile__title {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #2d2d2d;
    text-align: center;
    line-height: 1.3;
}

.other-entry-tile__pdf {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    color: #2563eb;
    text-align: center;
    text-decoration: none;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 0.25rem;
}

.other-entry-tile__pdf:hover {
    background-color: rgba(37, 99, 235, 0.18);
    text-decoration: none;
}

/* ===== News 個別ページ：リッチテキスト本文用スタイル ===== */
/* MT のリッチテキストエディタで入力された本文に適用。class は付与されないためここで要素をスタイル */
.news-article-body {
    color: #2d2d2d;
    font-size: 1.125rem;
    line-height: 1.75;
}

.news-article-body p {
    margin-bottom: 1rem;
}

.news-article-body p:last-child {
    margin-bottom: 0;
}

.news-article-body a {
    color: #2563eb;
    text-decoration: underline;
}

.news-article-body a:hover {
    color: #1d4ed8;
}

.news-article-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.news-article-body ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.news-article-body li {
    margin-bottom: 0.25rem;
}

.news-article-body h1 {
    font-size: 1.875rem;
    font-weight: bold;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
}

.news-article-body h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1.25rem 0 0.5rem;
    line-height: 1.3;
}

.news-article-body h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem;
    line-height: 1.3;
}

.news-article-body hr {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 1.5rem 0;
}

.news-article-body strong {
    font-weight: bold;
}

.news-article-body em {
    font-style: italic;
}
