/* ==========================================================================
   サイドバー
   ========================================================================== */

.from70-sidebar-widget {
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-top: 4px solid #2f855a;
    border-radius: 4px;
    padding: 22px 20px;
    margin-bottom: 24px;
}

.from70-sidebar-title {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #276749;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1fae5;
}

.from70-sidebar-text {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--osumi-text);
    margin-bottom: 12px;
}

.from70-sidebar-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2f855a;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: color 0.2s;
}

.from70-sidebar-link:hover {
    color: #276749;
    opacity: 1;
}

/* 年間活動リスト */
.from70-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.from70-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f0fdf4;
    border-radius: 6px;
}

.activity-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.activity-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--osumi-navy);
    font-family: var(--font-sans);
}

.activity-freq {
    display: block;
    font-size: 0.75rem;
    color: #4a7c59;
    font-family: var(--font-sans);
    margin-top: 2px;
}

/* 最近の投稿リスト */
.from70-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.from70-recent-item {
    border-bottom: 1px solid #f0fdf4;
}

.from70-recent-item:last-child {
    border-bottom: none;
}

.from70-recent-link {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0;
    text-decoration: none;
    color: var(--osumi-text);
    transition: color 0.2s;
}

.from70-recent-link:hover {
    color: #2f855a;
    opacity: 1;
}

.from70-recent-date {
    font-size: 0.75rem;
    color: #4a7c59;
    font-family: var(--font-sans);
    white-space: nowrap;
    flex-shrink: 0;
}

.from70-recent-title {
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* サイドバー */
.post-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.widget-title {
    font-size: 1rem;
    color: var(--osumi-navy);
    border-bottom: 2px solid var(--osumi-orange);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* 広告バナー用のスタイル */
.widget img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .post-layout-wrapper {
        flex-direction: column;
        display: block;/* フレックス解除 */
    }
    .post-sidebar {
        width: 100%;
        margin-top: 40px;
    }
}

/* サイドバー内のバナー（画像ウィジェット）の調整 */
.post-sidebar .widget_media_image {
    padding: 0; /* 画像ウィジェットの場合は余白をリセット */
    border: none;
    background: none;
}

.post-sidebar .widget_media_image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.post-sidebar .widget_media_image img:hover {
    transform: scale(1.02); /* マウスを置いた時に少し大きくする */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 広告ラベルを上に表示したい場合 */
.post-sidebar .widget_media_image::before {
    content: "SPONSOR";
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

/* ========================================
 * 以下のCSSをstyle.cssに追記してください
 * ========================================*/
 
.sidebar-interview-widget {
    background: linear-gradient(135deg, var(--osumi-navy) 0%, #2a4a7f 100%);
    border-radius: 10px;
    padding: 24px 20px;
    color: #fff;
    border: none;
}
 
.sidebar-interview-header {
    margin-bottom: 14px;
}
 
.sidebar-interview-badge {
    display: inline-block;
    background: var(--osumi-orange);
    color: var(--osumi-navy);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
 
.sidebar-interview-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin: 0;
}
 
.sidebar-interview-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin-bottom: 18px;
}
 
.sidebar-interview-flow {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 16px 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
 
.sidebar-flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
 
.sidebar-flow-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}
 
.sidebar-flow-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
 
.sidebar-flow-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--osumi-orange);
    letter-spacing: 0.12em;
}
 
.sidebar-flow-text {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}
 
.sidebar-flow-arrow {
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    line-height: 1;
    padding: 0 0 0 16px;
}
 
.sidebar-interview-btn {
    display: block;
    text-align: center;
    background: var(--osumi-orange);
    color: var(--osumi-navy);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 50px;
    transition: filter 0.2s, transform 0.15s;
    margin-bottom: 12px;
    text-decoration: none;
}
 
.sidebar-interview-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    opacity: 1;
}
 
.sidebar-interview-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    text-align: center;
}
 
.sidebar-town-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--osumi-orange);
    border-radius: 4px;
    padding: 20px;
}
 
.sidebar-town-desc {
    font-size: 0.88rem;
    color: var(--osumi-text);
    line-height: 1.7;
    margin-bottom: 12px;
}
 
.sidebar-town-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--osumi-navy);
    border-bottom: 1px solid var(--osumi-navy);
    padding-bottom: 1px;
    transition: opacity 0.2s;
}
 
.sidebar-town-link:hover {
    opacity: 0.7;
}
 
.sidebar-fp-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--osumi-navy);
    border-radius: 4px;
    padding: 20px;
}
 
.sidebar-fp-thumb {
    display: block;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
}
 
.sidebar-fp-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
 
.sidebar-fp-thumb:hover img {
    transform: scale(1.03);
}
 
.sidebar-fp-vol {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--osumi-orange);
    margin-bottom: 4px;
}
 
.sidebar-fp-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 12px;
}
 
.sidebar-fp-title a {
    color: var(--osumi-navy);
}
 
.sidebar-fp-archive-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--osumi-navy);
    border-bottom: 1px solid var(--osumi-navy);
    padding-bottom: 1px;
    transition: opacity 0.2s;
}
 
.sidebar-fp-archive-link:hover {
    opacity: 0.7;
}

/* ==========================================================================
   関連コンテンツセクション（rc-related-*）
   対象: single-history_spot.php / single-tour_course.php
   ※ sidebar.css は全ページで読み込まれているため、この内容を
      sidebar.css の末尾に追記してください（新規enqueue不要）
   ========================================================================== */

.rc-related-section {
    margin: 48px 0 8px;
    padding: 28px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.rc-related-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--osumi-navy);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.rc-related-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--osumi-orange) #f0f0f0;
}

.rc-related-grid::-webkit-scrollbar {
    height: 4px;
}

.rc-related-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.rc-related-grid::-webkit-scrollbar-thumb {
    background: var(--osumi-orange);
    border-radius: 4px;
}

@media (max-width: 900px) {
    .rc-related-grid {
        gap: 16px;
    }
}

.rc-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 40px) / 3); /* PC：3列表示（gap20px×2本分を差し引く） */
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.12);
    border-color: var(--osumi-orange);
    opacity: 1;
}

.rc-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #eee;
    overflow: hidden;
}

.rc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rc-card:hover .rc-card-thumb img {
    transform: scale(1.05);
}

.rc-card-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.rc-card-badge-radio {
    background: #4b5563;
}

.rc-card-badge-from70 {
    background: #2f855a;
}

.rc-card-badge-history {
    background: #92400e;
}

.rc-card-body {
    padding: 14px 16px;
    flex-grow: 1;
}

.rc-card-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--osumi-navy);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 900px) {
    .rc-card {
        flex: 0 0 calc((100% - 16px) / 2); /* タブレット：2列表示 */
    }
}

@media (max-width: 480px) {
    .rc-related-section {
        padding: 20px 16px;
    }
    .rc-related-grid {
        gap: 14px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .rc-card {
        flex: 0 0 78%; /* スマホ：1枚を強調、次のカードが少し見える */
    }
}

/* ==========================================================================
   近くの観光情報（rc-nearby-section）
   対象: single-tour_course.php
   中身は既存の .archive-grid / .news-card をそのまま利用するため
   個別のカードスタイルは不要。セクションの余白のみ調整する。
   ========================================================================== */

.rc-nearby-section {
    margin: 48px 0 8px;
}

.rc-nearby-section .archive-grid {
    margin-top: 0;
}