/* jikka.css */
:root {
    --key-color: #A8060C;
    --sub-color-dark: #56423e;
    --sub-color-light: #bea6a0;
    --base-text: #241008;
    --base-bg: #ffffff;
}

body {
    color: var(--base-text);
    background-color: var(--base-bg);
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px;
}

/* Article title styling */
@keyframes titleReveal {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(5%);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes borderFlash {
    0% {
        box-shadow: 0 0 0 rgba(168, 6, 12, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(168, 6, 12, 0.5);
    }
    100% {
        box-shadow: 0 0 0 rgba(168, 6, 12, 0);
    }
}

.article-title {
    font-size: 2.5rem;
    color: var(--base-bg);
    background: linear-gradient(135deg, var(--key-color), var(--sub-color-dark));
    padding: 1.5rem 2rem;
    margin: 2rem -2rem;
    position: relative;
    overflow: hidden;
    animation: titleReveal 1.2s ease-out forwards;
    border-radius: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--base-bg);
    animation: borderFlash 3s infinite;
}

/* Meta information section */
.container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    margin: -1rem 0 2rem;
    background: linear-gradient(to right, rgba(86, 66, 62, 0.1), transparent);
    border-radius: 0 0 5px 5px;
    position: relative;
}

.time {
    margin: 0;
    font-size: 0.9rem;
    color: var(--sub-color-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.time time {
    color: var(--key-color);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
    height: 28px;
}

/* SNSボタンのコンテナ */
.twitter-share-button, .fb-share-button {
    min-width: 80px;
    display: inline-block !important;
    vertical-align: middle !important;
}

.fb-share-button {
    margin-top: -2px;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--key-color), transparent);
}

/* Section headers */
h2 {
    position: relative;
    font-size: 1.5rem;
    color: var(--base-bg);
    background: var(--key-color);
    padding: 1rem 2rem;
    margin: 3rem 0 1.5rem;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(168, 6, 12, 0.2);
}

h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--sub-color-dark);
}

/* Character introduction */
h3 {
    font-size: 1.3rem;
    color: var(--key-color);
    margin: 2rem 0 1.5rem;
    padding: 1rem 1.5rem;
    position: relative;
    background: linear-gradient(to right, rgba(168, 6, 12, 0.1), transparent);
    border-left: 5px solid var(--key-color);
    transform: skew(-5deg);
    transition: transform 0.3s ease;
}

h3:hover {
    transform: skew(-3deg) scale(1.02);
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--key-color), transparent);
}

/* Profile section */
.profile-section {
    background: linear-gradient(145deg, rgba(86, 66, 62, 0.1), transparent);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--key-color), var(--sub-color-dark));
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;
    margin-top: 0.5rem;
}

.profile-item {
    display: flex;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--sub-color-light);
}

.profile-label {
    font-weight: bold;
    color: var(--key-color);
    min-width: 85px;
    position: relative;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.profile-label::after {
    content: ':';
    position: absolute;
    right: 0;
    color: var(--sub-color-dark);
}

.profile-value {
    color: var(--base-text);
    flex: 1;
    font-size: 0.95rem;
}

.profile-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.profile-description p {
    margin: 1rem 0;
}

.note-mark {
    color: var(--key-color);
    font-weight: bold;
}

.push0 {
    font-weight: 500;
    padding: 0 2px;
}

/* Note section */
.note {
    background-color: rgba(168, 6, 12, 0.05);
    border-left: 4px solid var(--key-color);
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--sub-color-dark);
    border-radius: 0 4px 4px 0;
}

/* Images */
.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(86, 66, 62, 0.2);
}

figcaption {
    color: var(--sub-color-dark);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Ability section */
.ability-section {
    background: linear-gradient(165deg, rgba(168, 6, 12, 0.05), rgba(86, 66, 62, 0.05));
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ability-headline {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--key-color);
    padding: 0.5rem 1rem;
    margin: -0.5rem -1rem 1.5rem;
    border-bottom: 2px solid var(--key-color);
    position: relative;
}

.ability-headline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--key-color), transparent);
}

.ability-content {
    line-height: 1.8;
}

.ability-content p {
    margin: 1rem 0;
    text-align: justify;
}

@media (max-width: 600px) {
    .ability-section {
        padding: 1rem;
    }

    .ability-headline {
        font-size: 1.1rem;
        margin: -0.5rem -1rem 1rem;
    }
}
a {
    color: var(--key-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

a:hover {
    border-bottom-color: var(--key-color);
}

/* スマートフォン向けレイアウト */
@media (max-width: 600px) {
    .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 1rem;
        padding: 0.5rem 1rem;
    }

    .time {
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.2rem;
    }

    .share-buttons {
        margin-left: 0;
        height: 20px;
        gap: 2rem;
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }

    .twitter-share-button {
        width: 80px !important;
        margin-right: 1rem !important;
    }

    .fb-share-button {
        width: 80px !important;
        margin-left: 1rem !important;
    }

    .twitter-share-button iframe,
    .fb-share-button iframe {
        margin: 0 !important;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-section {
        padding: 1.5rem 1rem;
    }

    .profile-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-label {
        min-width: auto;
    }

    .profile-label::after {
        content: none;
    }
    /* Footer styles */
    .site-footer {
        margin-top: 5rem;
        padding: 2rem 1rem;
        border-top: 1px solid rgba(86, 66, 62, 0.2);
        color: var(--sub-color-dark);
        font-size: 0.9rem;
    }

    .footer-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .contact-section {
        margin-bottom: 1.5rem;
    }

    .mail-link {
        display: inline-flex;
        align-items: center;
        color: var(--key-color);
        text-decoration: none;
        margin-bottom: 0.5rem;
    }

    .mail-link:hover {
        opacity: 0.8;
    }

    .mail-icon {
        margin-right: 0.5rem;
        display: flex;
        align-items: center;
    }

    .contact-text {
        color: var(--sub-color-dark);
        margin: 0.5rem 0;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .usage-terms {
        margin-bottom: 1.5rem;
    }

    .terms-content p {
        margin: 0.5rem 0;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .terms-list {
        list-style: none;
        padding-left: 0.5rem;
        margin: 0.5rem 0;
    }

    .terms-list li {
        margin: 0.3rem 0;
        font-size: 0.85rem;
        line-height: 1.6;
        padding-left: 1rem;
        position: relative;
    }

    .terms-list li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--key-color);
    }

    .footer-brand {
        text-align: center;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(86, 66, 62, 0.1);
    }

    .brand-link {
        display: inline-flex;
        align-items: center;
        color: var(--sub-color-dark);
        text-decoration: none;
        font-size: 0.85rem;
    }

    .brand-link:hover {
        color: var(--key-color);
    }

    .brand-link img {
        margin-right: 0.4rem;
        opacity: 0.8;
    }

    .copyright {
        margin-top: 0.5rem;
        font-size: 0.8rem;
        color: var(--sub-color-dark);
        opacity: 0.8;
    }

    @media (max-width: 600px) {
        .site-footer {
            margin-top: 3rem;
            padding: 1.5rem 1rem;
        }

        .terms-list {
            padding-left: 0.3rem;
        }
        /* Footer styles */
        .site-footer {
            margin-top: 5rem;
            padding: 2rem 1rem;
            border-top: 1px solid rgba(86, 66, 62, 0.2);
            color: var(--sub-color-dark);
            font-size: 0.9rem;
        }

        .footer-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .contact-section {
            margin-bottom: 1.5rem;
        }

        .mail-link {
            display: inline-flex;
            align-items: center;
            color: var(--key-color);
            text-decoration: none;
            margin-bottom: 0.5rem;
        }

        .mail-link:hover {
            opacity: 0.8;
        }

        .mail-icon {
            margin-right: 0.5rem;
            display: flex;
            align-items: center;
        }

        .contact-text {
            color: var(--sub-color-dark);
            margin: 0.5rem 0;
            font-size: 0.85rem;
            line-height: 1.6;
        }

        .usage-terms {
            margin-bottom: 1.5rem;
        }

        .terms-content p {
            margin: 0.5rem 0;
            font-size: 0.85rem;
            line-height: 1.6;
        }

        .terms-list {
            list-style: none;
            padding-left: 0.5rem;
            margin: 0.5rem 0;
        }

        .terms-list li {
            margin: 0.3rem 0;
            font-size: 0.85rem;
            line-height: 1.6;
            padding-left: 1rem;
            position: relative;
        }

        .terms-list li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--key-color);
        }

        .footer-brand {
            text-align: center;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(86, 66, 62, 0.1);
        }

        .brand-link {
            display: inline-flex;
            align-items: center;
            color: var(--sub-color-dark);
            text-decoration: none;
            font-size: 0.85rem;
        }

        .brand-link:hover {
            color: var(--key-color);
        }

        .brand-link img {
            margin-right: 0.4rem;
            opacity: 0.8;
        }

        .copyright {
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: var(--sub-color-dark);
            opacity: 0.8;
        }

        @media (max-width: 600px) {
            .site-footer {
                margin-top: 3rem;
                padding: 1.5rem 1rem;
            }

            .terms-list {
                padding-left: 0.3rem;
            }
            .char-name {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, var(--key-color), rgba(168, 6, 12, 0.7));
    margin: -1rem -1rem 0.8rem -1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px 8px 0 0;
    color: white;
}

.char-name h4 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.char-jpn {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.2rem;
}
/* Recommendations section */
.recommendations-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(168, 6, 12, 0.05), rgba(86, 66, 62, 0.05));
    border-radius: 8px;
    position: relative;
}

.recommendations-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--key-color), transparent);
    border-radius: 8px 8px 0 0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.recommendations-grid a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--base-text);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(168, 6, 12, 0.1);
}

.recommendations-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(168, 6, 12, 0.15);
    border-color: rgba(168, 6, 12, 0.3);
}

.recommendations-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.recommendations-grid a:hover img {
    transform: scale(1.05);
}

.recommendations-grid a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--key-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendations-grid a:hover::after {
    opacity: 1;
}

.recommendations-grid br {
    display: none;
}

.recommendations-grid a {
    padding-bottom: 1rem;
}

.recommendations-grid img + text {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-container {
        padding: 1rem;
    }
}
.char-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    margin-top: 0.8rem;
    background: linear-gradient(to right, var(--key-color), var(--sub-color-dark));
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(168, 6, 12, 0.2);
}

.char-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.char-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(168, 6, 12, 0.3);
}

.char-link:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .char-link {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}
/* 既存のCSSに以下を追加・更新 */
.character-row {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(168, 6, 12, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem; /* 下部に余白を追加 */
}

.char-relation {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* 説明文とボタンの間隔を確保 */
}

.char-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(to right, var(--key-color), var(--sub-color-dark));
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(168, 6, 12, 0.2);
    align-self: flex-start; /* ボタンを左寄せに */
    margin-top: 0.2rem; /* 上部の余白を微調整 */
}

/* スマートフォン向けの調整 */
@media (max-width: 768px) {
    .character-row {
        padding: 1rem;
        margin-bottom: 1.2rem; /* モバイル時の余白をさらに増加 */
    }

    .char-relation {
        gap: 1rem; /* モバイル時の間隔をさらに広げる */
    }

    .char-link {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        margin-top: 0.4rem; /* モバイル時の上部余白を増加 */
    }
}
/* パンくずリスト */
.breadcrumb-nav {
    margin: 1rem 0 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.85rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--sub-color-dark);
    border-top: 1.5px solid var(--sub-color-dark);
    transform: rotate(45deg);
    margin: 0 0.5rem;
    opacity: 0.7;
}

.breadcrumb-link {
    color: var(--sub-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--key-color);
    text-decoration: underline;
}

.current-page {
    color: var(--key-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        margin: 0.8rem 0 1.5rem;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }
}
/* セクションナビゲーション */
.section-navigation {
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0;
  max-width: 1200px;
  width: 100%;
}

.nav-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.toc-button {
  background: linear-gradient(to right, var(--sub-color-dark), var(--sub-color-light));
  color: white;
}

.recommend-button {
  background: linear-gradient(to right, var(--key-color), #d62b2b);
  color: white;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.6s;
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-button:hover::before {
  left: 100%;
}

.button-icon {
  font-size: 1.2rem;
}

.button-text {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .section-navigation {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-button {
    padding: 0.8rem;
  }

  .button-text {
    font-size: 0.9rem;
  }
}
