/**
 * Karuta Style
 * カルタ専用スタイルシート
 */

/* ============================================
   トップページ カルタセクション
============================================ */
.karuta-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    padding: 80px 0;
}

.karuta-section .section-title {
    color: #d32f2f;
    margin-bottom: 15px;
}

.karuta-section .section-subtitle {
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* カルタグリッド */
.karuta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.karuta-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid #d32f2f;
}

.karuta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.2);
}

.karuta-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.karuta-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.karuta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.karuta-card:hover .karuta-image img {
    transform: scale(1.1);
}

.karuta-content {
    padding: 25px;
    background: white;
}

.karuta-letter {
    display: inline-block;
    font-size: 48px;
    font-weight: bold;
    color: #d32f2f;
    background: #fff5f5;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #d32f2f;
}

.karuta-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    min-height: 80px;
}

.no-karuta {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

/* ============================================
   アーカイブページ
============================================ */
.archive-karuta {
    background: #fafafa;
}

.archive-karuta .archive-hero {
background: #fc8276;
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.archive-karuta .archive-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
}

.archive-karuta .archive-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.archive-karuta .archive-description {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* アーカイブグリッド */
.karuta-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    padding: 60px 0;
}

.karuta-archive-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
     border: 3px solid #ff5a4a;
}

.karuta-archive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2);
}

.karuta-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.karuta-archive-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.karuta-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    object-position: left top;
}

.karuta-archive-card:hover .karuta-archive-image img {
    transform: scale(1.1);
}

.karuta-archive-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #ff5a4a;
}

.karuta-archive-content {
    padding: 30px;
    flex: 1;
}

.karuta-archive-letter {
    display: inline-block;
    font-size: 56px;
    font-weight: bold;
color: #ff5a4a;
  background: #fff;
  width: 85px;
  height: 85px;
  line-height: 85px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid #ff5a4a;
}

.karuta-archive-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    min-height: 90px;
}

.karuta-archive-footer {
    padding: 20px 30px;
    border-top: 2px solid #f5f5f5;
    text-align: right;
}

.karuta-archive-footer .read-more {
    color: #ff5a4a;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
}

.karuta-archive-card:hover .read-more {
    color: #ff5a4a;
}

/* ============================================
   シングルページ
============================================ */
.karuta-single {
    background: #fafafa;
}

.karuta-single-hero {
    background:#ff5a4a;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.karuta-hero-letter {
    font-size: 120px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    width: 160px;
    height: 160px;
    line-height: 160px;
    border-radius: 50%;
    border: 5px solid white;
}

.karuta-hero-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* コンテンツラッパー */
.karuta-container {
    max-width: 1200px;
    padding: 60px 20px;
}

.karuta-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    margin-bottom: 60px;
}

.karuta-main-content {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.karuta-single-image {
margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 380px;
}

.karuta-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.karuta-section {
    margin-bottom: 40px;
}

.karuta-section .section-title {
    font-size: 24px;
    color: #ff5a4a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff5a4a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.karuta-section .section-title::after {
    display:none;
}

.karuta-single-text {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    text-align: center;
}

.karuta-related-link {
    margin-top: 20px;
}

.related-link-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #ff5a4a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.related-link-btn:hover {
    background:#ff5a4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* サイドバー */
.karuta-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.related-karuta {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.related-karuta h3 {
    font-size: 20px;
    color: #ff5a4a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5a4a;
}

.related-karuta-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-karuta-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-karuta-item:hover {
    background: #fff5f5;
    border-color: #ff5a4a;
    transform: translateX(5px);
}

.related-karuta-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.related-karuta-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-karuta-info {
    flex: 1;
}

.related-karuta-letter {
    font-size: 20px;
    font-weight: bold;
    color: #ff5a4a;
    margin-bottom: 5px;
}

.related-karuta-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.karuta-single-text img{
    width:100%;
    max-width: 380px;
}
.sidebar-view-all {
    margin-top: 20px;
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 24px;
    background: white;
color: #ff5a4a;
  border: 2px solid #ff5a4a;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #ff5a4a;
    color: white;
    transform: translateY(-2px);
}

/* CTAボックス */
.karuta-cta-box {
      background: #ff5a4a;
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.3);
}

.karuta-cta-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.karuta-cta-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.sidebar-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-cta-btn {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sidebar-cta-btn.primary {
    background: white;
    color: #ff5a4a;
}

.sidebar-cta-btn.primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.sidebar-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.sidebar-cta-btn.secondary:hover {
    background: white;
    color: #ff5a4a;
}

/* ナビゲーション */
.karuta-navigation {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-link:hover {
    background: #fff5f5;
    border-color: #ff5a4a;
    color: #ff5a4a;
}

.nav-link span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 12px;
    color: #999;
}

.nav-title {
    font-size: 14px;
    font-weight: bold;
}

.nav-index {
    justify-content: center;
    max-width: 150px;
}

/* 共通CTAセクション */
.archive-cta {
    background: #fc8276;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.archive-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.archive-cta p {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.archive-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.archive-cta .cta-button {
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.archive-cta .cta-button.cta-primary {
    background: white;
    color: #ff5a4a;
}

.archive-cta .cta-button.cta-primary:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.archive-cta .cta-button.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.archive-cta .cta-button.cta-secondary:hover {
    background: white;
    color: #ff5a4a;
}

/* ============================================
   レスポンシブ対応
============================================ */
@media (max-width: 992px) {
    .karuta-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .karuta-sidebar {
        order: 2;
    }
    
    .karuta-main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .karuta-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .karuta-archive-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .karuta-section {
        padding: 60px 0;
    }
    
    .archive-karuta .archive-hero {
        padding: 60px 0;
    }
    
    .archive-karuta .archive-title {
        font-size: 32px;
    }
    
    .karuta-hero-letter {
        font-size: 80px;
        width: 120px;
        height: 120px;
        line-height: 120px;
    }
    
    .karuta-hero-title {
        font-size: 24px;
    }
    
    .karuta-main-content {
        padding: 30px 20px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-index {
        max-width: 100%;
    }
    
    .archive-cta h2 {
        font-size: 28px;
    }
    
    .archive-cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .karuta-grid {
        grid-template-columns: 1fr;
    }
    
    .karuta-letter {
        font-size: 36px;
        width: 55px;
        height: 55px;
        line-height: 55px;
    }
    
    .karuta-archive-letter {
        font-size: 42px;
        width: 65px;
        height: 65px;
        line-height: 65px;
    }
    
    .karuta-hero-letter {
        font-size: 60px;
        width: 100px;
        height: 100px;
        line-height: 100px;
    }
    
    .karuta-hero-title {
        font-size: 20px;
    }
}

/* ページネーション */
.pagination-wrapper {
display: flex;
  justify-content: center;
  margin: 40px auto;
    }

.page-numbers{
    display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: white;
  color: #d37695;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
    }

.pagination-wrapper  .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    color: #d37695;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination-wrapper  .page-numbers:hover,
.pagination-wrapper  .page-numbers.current {
    background: #d37695;
    color: white;
}
