/* sfc-switch.css */
/* スーパーファミコンテーマのCSS */

/* 変数 */
:root {
    --key-color: #cc3c2a;
    --sub-color1: #dab920;
    --sub-color2: #3d9348;
    --text-color: #5f6565;
    --item-bg-color: #d2d2d2;
    --base-bg-color: #364ca2;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --sfc-font: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', sans-serif;
}

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sfc-font);
    color: var(--text-color);
    background-color: var(--light-gray);
    line-height: 1.6;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding-bottom: 30px;
}
.container {
    padding: 20px;
}

/* ヘッダー */
header {
    background-color: var(--base-bg-color);
    color: var(--white);
    padding: 20px 0;
}

h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

/* パンくずリスト */
.breadcrumb-nav {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

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

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: var(--white);
}

.breadcrumb-link {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.current-page {
    font-weight: bold;
    color: var(--sub-color1);
}

/* 記事情報 */
.article-info {
    background-color: var(--light-gray);
    border-bottom: 3px solid var(--key-color);
}

.article-info .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time {
    font-size: 0.9rem;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

/* 目次 */
.toc {
    margin: 30px 0;
}

.toc h2 {
    color: var(--key-color);
    border-bottom: 3px solid var(--key-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-size: 1.5rem;
}

.toc ul {
    list-style: none;
    padding-left: 20px;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--base-bg-color);
    text-decoration: none;
    display: inline-block;
    padding: 5px;
    border-left: 4px solid var(--key-color);
    transition: all 0.3s ease;
}

.toc a:hover {
    background-color: var(--item-bg-color);
    padding-left: 10px;
}

/* ゲームカテゴリー */
.game-category {
    margin-bottom: 40px;
}

.game-category h2 {
    color: var(--white);
    background-color: var(--key-color);
    padding: 10px 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-size: 1.5rem;
}

.game-list {
    background-color: var(--item-bg-color);
    padding: 20px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* ゲームアイテム */
.game-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.game-item:last-child {
    margin-bottom: 0;
}

.game-item h3 {
    background-color: var(--sub-color1);
    color: var(--white);
    padding: 10px 15px;
    font-size: 1.3rem;
}

.game-content {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.game-image, .sneak {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--base-bg-color);
    border-radius: 5px;
}

figure {
    margin: 0;
    max-width: 400px;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
}

.game-description {
    flex: 1;
    min-width: 300px;
}

.game-info {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
}

.game-info li {
    margin-bottom: 5px;
    border-left: 3px solid var(--sub-color2);
    padding-left: 10px;
}

/* フッター */
footer {
    background-color: var(--base-bg-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .article-info .container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .game-content {
        flex-direction: column;
    }

    figure {
        max-width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }
}
/* ゲームリストセクション */
.game-list-section {
    padding: 20px;
}

/* ヘッダー */
.sfc-header {
    background-color: var(--base-bg-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 4px solid var(--key-color);
    position: relative;
    overflow: hidden;
}

.sfc-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.05) 10px,
        rgba(0, 0, 0, 0.05) 20px
    );
    z-index: 1;
}

.sfc-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.sfc-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.sfc-subtitle h3 {
    font-size: 1.5rem;
    color: var(--sub-color1);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.sfc-icon {
    width: 30px;
    height: 30px;
}

/* かな索引 */
.kana-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background-color: var(--item-bg-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.kana-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--key-color);
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 3px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.kana-button:hover {
    transform: scale(1.1);
    background-color: var(--sub-color1);
}
/* かなセクション */
.kana-section {
    margin-bottom: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.kana-header {
    display: flex;
    align-items: center;
    background-color: var(--key-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.kana-header h4 {
    flex-grow: 1;
    text-align: center;
    font-size: 1.3rem;
    margin: 0;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    transform: scale(1.1);
    background-color: var(--sub-color1);
}

/* ゲームグリッド */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: var(--item-bg-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.game-item {
    transition: transform 0.3s ease;
}

.game-item:hover {
    transform: translateY(-5px);
}

.game-box {
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.game-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-cover {
    margin-right: 15px;
    border: 2px solid var(--base-bg-color);
    border-radius: 4px;
    background-color: var(--light-gray);
}

.game-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-bottom: 5px;
    line-height: 1.3;
}

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

/* 特殊スタイル */
.new-tag {
    color: var(--key-color);
    font-weight: bold;
    animation: blink 1.5s infinite;
}

.zelda-box {
    background-color: #f8f4e3;
    border: 2px solid #c9b458;
}

.zelda-link {
    color: #205c33;
}

.zelda-link:hover {
    color: #659e4c;
}

.super-series {
    margin-top: 15px;
}

.super-title {
    background-color: var(--sub-color2);
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 99;
}

.top-button {
    display: block;
    width: 80px;
    height: 80px;
    background-color: var(--key-color);
    color: var(--white);
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--white);
    transition: all 0.3s ease;
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.top-button:hover {
    background-color: var(--sub-color1);
    transform: scale(1.1);
}

/* アニメーション */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .sfc-header h2 {
        font-size: 1.8rem;
    }

    .kana-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .kana-index {
        padding: 10px;
    }

    .top-button {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
}

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

    .sfc-subtitle {
        flex-direction: column;
        gap: 5px;
    }

    .kana-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
/* スーパーファミコン説明セクション */
.sfc-about-section {
    margin: 40px 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sfc-about-header {
    background-color: var(--key-color);
    color: var(--white);
    padding: 15px 20px;
    border-bottom: 4px solid var(--sub-color1);
}

.sfc-about-header h2 {
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.sfc-about-content {
    padding: 20px;
    background-color: var(--item-bg-color);
}

.sfc-about-image {
    text-align: center;
    margin-bottom: 20px;
}

.sfc-about-image img {
    max-width: 100%;
    height: auto;
    border: 4px solid var(--base-bg-color);
    border-radius: var(--border-radius);
}

.sfc-about-subtitle {
    color: var(--base-bg-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--sub-color2);
    border-right: 5px solid var(--sub-color2);
}

.sfc-about-text {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    line-height: 1.8;
}

.sfc-about-text p {
    margin-bottom: 15px;
}

.sfc-about-text a {
    color: var(--base-bg-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sfc-about-text a:hover {
    color: var(--key-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sfc-about-subtitle {
        font-size: 1.2rem;
    }

    .sfc-about-text {
        padding: 15px;
    }
}
/* ゲーム詳細セクション */
.game-detail-section {
    margin: 40px 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* ゲームヘッダー */
.game-detail-header {
    background: url('image/sf-topics.webp') no-repeat;
    background-size: cover;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.game-detail-header h2 {
    color: var(--base-bg-color);
    font-size: 2rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    margin: 0;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ナビゲーションボタン */
.sfc-nav-buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 40px;
    border-radius: 20px;
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.return-button {
    background-color: var(--key-color);
}

.index-button {
    background-color: var(--sub-color1);
}

.next-button {
    background-color: var(--sub-color2);
}

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

.return-button::before,
.next-button::before,
.index-button::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
}

.return-button::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--white);
    left: 12px;
}

.next-button::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--white);
    right: 12px;
}

.index-button::before {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
    top: 10px;
}

/* 配信日 */
.game-release-date {
    position: absolute;
    left: 110px;
    top: 60%;
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* ゲーム情報テーブル */
.game-info-table {
    background-color: var(--base-bg-color);
    padding: 10px 20px;
    color: var(--white);
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-cell {
    flex: 1;
    min-width: 200px;
}

.info-cell.heading {
    font-weight: bold;
}

/* ゲーム評価 */
.game-rating {
    background-color: var(--light-gray);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    color: var(--sub-color1);
    font-size: 1.2rem;
}

/* スクリーンショット */
.game-screenshot {
    padding: 20px;
    text-align: center;
    background-color: var(--item-bg-color);
}

.game-screenshot img {
    max-width: 100%;
    height: auto;
    border: 4px solid var(--base-bg-color);
    border-radius: var(--border-radius);
}

/* ゲーム説明 */
.game-description {
    padding: 20px;
    background-color: var(--white);
}

.game-description h3 {
    color: var(--key-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px dashed var(--sub-color1);
    padding-bottom: 10px;
}

.game-text {
    line-height: 1.8;
}

.game-text p {
    margin-bottom: 15px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .game-detail-header {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .game-detail-header h2 {
        position: static;
        transform: none;
        margin-bottom: 15px;
    }

    .sfc-nav-buttons {
        position: static;
        transform: none;
        margin: 10px 0;
    }

    .game-release-date {
        position: static;
        margin-top: 10px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-cell {
        min-width: 100%;
    }
}

/* ゲーム詳細ページのスタイル */
.game-detail {
    margin: 30px 0;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ゲームヘッダー部分 */
.game-header {
    position: relative;
    background-color: var(--base-bg-color);
    color: white;
    padding: 15px 20px;
    border-bottom: 4px solid var(--key-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-header h2 {
    font-size: 1.8rem;
    margin: 0;
    padding: 5px 10px;
    background-color: var(--key-color);
    border-radius: 5px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.game-release {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 0.85rem;
    color: var(--sub-color1);
}

/* ナビゲーションコントロール */
.nav-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    display: inline-block;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.back-btn {
    background-color: var(--key-color);
}

.index-btn {
    background-color: var(--sub-color1);
}

.next-btn {
    background-color: var(--sub-color2);
}

/* ゲームメタ情報 */
.game-meta {
    background-color: var(--item-bg-color);
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ゲームスクリーンショット */
.game-screenshot {
    padding: 20px;
    background-color: var(--white);
    text-align: center;
}

.game-screenshot img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--base-bg-color);
    border-radius: 8px;
}

/* ゲーム説明文 */
.game-content {
    padding: 20px;
    background-color: var(--item-bg-color);
}

.game-content h3 {
    color: var(--base-bg-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--white);
    border-radius: 8px;
    border-left: 5px solid var(--key-color);
}

.game-content p {
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    line-height: 1.7;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 40px;
    }

    .nav-controls {
        margin-top: 15px;
    }

    .game-meta {
        flex-direction: column;
        gap: 5px;
    }
}
/* 配信終了アラート */
.service-alert {
    background-color: #ffeeee;
    border: 2px solid var(--key-color);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    margin: 10px 0;
    text-align: center;
}

.alert-text {
    color: var(--key-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-alert p {
    margin: 5px 0 0;
    font-size: 0.9rem;
}

/* ============================= */
/*  おすすめリスト（#recommendations）用スタイル  */
/* ============================= */

#recommendations {
    /* お好みで余白や背景などを調整 */
    margin: 40px 0;
    display: flex;               /* 横並びにする */
    flex-wrap: wrap;            /* 折り返しを許可 */
    gap: 20px;                  /* カード間の間隔 */
    justify-content: center;    /* 水平中央揃え */
}

/* JavaScriptで挿入される <br> はレイアウトを崩すので非表示に */
#recommendations br {
    display: none;
}

/* 推しリンク（a.push0）をカード風に */
#recommendations a.push0 {
    display: block;
    width: calc(33.333% - 20px); /* 3カラム狙い（間隔分を差し引き） */
    min-width: 220px;           /* ある程度の最小幅を確保 */
    text-align: center;         /* カード内の要素を中央揃え */
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--item-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: all 0.3s ease;
    /* テキストが画像の直後に続くため、適宜ブロックで見やすく */
    white-space: pre-wrap;
}

#recommendations a.push0:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* カードに挿入される画像（img.sneak） */
#recommendations a.push0 img.sneak {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: none;      /* 既存の枠線は不要 */
    border-radius: 0;  /* カード枠と合わせるなら0 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #recommendations a.push0 {
        width: calc(50% - 20px);  /* 2カラム */
    }
}
@media (max-width: 480px) {
    #recommendations a.push0 {
        width: calc(100% - 20px); /* 1カラム */
    }
}
/* ============================= */
/*   著作権表記部分（.copy）用スタイル  */
/* ============================= */

footer.copy {
    position: relative;
    margin-top: 40px;
    background-color: var(--base-bg-color);
    color: var(--white);
    padding: 30px 20px;
    border-top: 5px solid var(--key-color);
    border-bottom: 3px solid var(--sub-color1);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* 背景にスーパーファミコン風のストライプを追加 */
footer.copy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

footer.copy > div {
    position: relative; /* 背景レイヤーの上に表示させる */
    z-index: 2;
    margin-bottom: 20px;
}

/* メールアイコンとテキストの配置 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--sub-color1);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--key-color);
    text-decoration: underline;
}

.contact-info img {
    border: 2px solid var(--white);
    border-radius: 3px;
    margin-right: 5px;
}

/* 利用規約や素材利用の案内 */
.usage-terms {
    background-color: var(--white);
    color: var(--text-color);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--sub-color2);
    line-height: 1.7;
    font-size: 0.9rem;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
}

.usage-terms p {
    margin-bottom: 10px;
}

/* 著作権表示 */
footer.copy .copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

footer.copy .copyright img {
    border: 2px solid var(--white);
    border-radius: 2px;
}

/* 著作権リンク */
footer.copy a.push0 {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer.copy a.push0:hover {
    color: var(--sub-color1);
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    footer.copy {
        padding: 20px 10px;
    }
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .usage-terms {
        font-size: 0.85rem;
        padding: 10px;
    }
    footer.copy .copyright {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* タイトル用スタイル */
.sfc-animated-title {
  display: inline-block;
  position: relative;
  font-size: 2rem;
  color: #ffffff;
  background-color: var(--key-color); /* 既存の変数が使えない場合は #cc3c2a 等に変更 */
  padding: 10px 20px;
  margin: 20px auto;
  border-radius: 10px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  /* 挿入アニメーション */
  animation: sfc-title-in 1.5s ease-out forwards;
  /* 「SFC感」を出すための軽い背景ストライプ（お好みで） */
  overflow: hidden; /* 擬似要素をはみ出さない */
}

/* 擬似要素で繰り返しストライプを重ねる例（不要なら削除） */
.sfc-animated-title::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 10px;
}

/* タイトル出現アニメーション */
@keyframes sfc-title-in {
  0% {
    transform: translateY(-60px) scale(0.8) rotate(-5deg);
    opacity: 0;
  }
  40% {
    transform: translateY(10px) scale(1.05) rotate(2deg);
    opacity: 1;
  }
  60% {
    transform: translateY(-5px) scale(0.95) rotate(-2deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}
/* 関連リンクセクション用CSS */
.related-links-section {
    margin: 40px 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 関連リンクヘッダー */
.related-header {
    background-color: var(--base-bg-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    border-bottom: 4px solid var(--key-color);
    position: relative;
    overflow: hidden;
}

.related-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.05) 10px,
        rgba(0, 0, 0, 0.05) 20px
    );
    z-index: 1;
}

.related-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.related-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.related-subtitle h3 {
    font-size: 1.2rem;
    color: var(--sub-color1);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

/* カテゴリー */
.related-categories {
    padding: 20px;
    background-color: var(--item-bg-color);
}

.related-category {
    margin-bottom: 30px;
}

.related-category:last-child {
    margin-bottom: 0;
}

.category-title {
    background-color: var(--key-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--white);
}

.sfc-category {
    background-color: var(--sub-color2);
}

.featured-category {
    background-color: var(--sub-color1);
}

/* 関連リンクグリッド */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* 関連リンクカード */
.related-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--key-color);
}

.related-card.featured {
    border-color: var(--sub-color1);
}

.related-card.featured:hover {
    border-color: var(--key-color);
}

.related-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.related-text {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    background-color: var(--light-gray);
}

/* ホバー時のテキスト色変更 */
.related-card:hover .related-text {
    background-color: var(--key-color);
    color: var(--white);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .related-header h2 {
        font-size: 1.5rem;
    }

    .related-subtitle h3 {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .related-text {
        font-size: 0.8rem;
        padding: 8px;
    }
}

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

    .related-subtitle {
        flex-direction: column;
        gap: 5px;
    }

    .sfc-icon {
        display: none;
    }
}
