@charset "UTF-8";

/*!
Theme Name: ミレッタ専用テーマ
Description: ミレッタ専用テーマ
Author: DANRO
Author URI: https://danroinc.com/
Template:   cocoon-master
Version:    1.1.3
*/

/* ==========================================
   Events Manager スライドショー
   ========================================== */
.events-slider-container {
    position: relative;
    width: 100%;
    margin: 2em 0;
}

.events-slider {
    display: flex;
    flex-direction: column; /* SP表示: 縦並び */
    gap: 20px;
    /* --- スライドショー（横スクロール）に戻す場合は以下のコメントアウトを解除 --- */
    /*
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex-direction: row;
    */
    padding-bottom: 10px;
    /* スクロールバー非表示（Chrome/Safari/Firefox） */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.events-slider::-webkit-scrollbar {
    display: none;
}

/* スマホ表示 (縦並び時) */
.event-card {
    flex: 0 0 auto;
    width: 100%;
    /* スライドショーに戻す場合: flex: 0 0 100%; */
    scroll-snap-align: start;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    /*transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);*/
	opacity: .7;
	transition: .3s;
}

/* PC表示 (3列横並び) */
@media screen and (min-width: 768px) {
    .events-slider {
        flex-direction: row; /* PC表示: 横並び */
    }
    .event-card {
        flex: 0 0 calc((100% - 40px) / 3);
        width: auto;
    }
}


/* 4:3 比率サムネイル */
.event-card__thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f0f0f0;
}

.event-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* コンテンツ */
.event-card__content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card__title {
    font-size: 1em;
    font-weight: bold;
    line-height: 1.4;
    color: #51473f;
}

.event-card__date {
	font-family: "Noto Sans JP", Sans-serif;
    font-size: 0.75em;
    color: #666;
    margin: auto 0 0 0;
	letter-spacing: 0.1em;
}

/* 前へ / 次へ ボタン */
.events-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
}

.events-slider__nav:hover {
    background: #fff;
}

.events-slider__nav--prev {
    left: -15px;
}

.events-slider__nav--next {
    right: -15px;
}

/* スマホ向け */
@media screen and (max-width: 480px) {
	.event-card__date {
	    font-size: 0.9em;
	}
}

/* ==========================================
   トップページ用 簡易最新投稿リスト [latest_posts]
   ========================================== */
.simple-news-list {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
    box-sizing: border-box;
}

/* カスタムスクロールバー（画像の右側スクロールバー再現） */
.simple-news-list::-webkit-scrollbar {
    width: 3px;
}

.simple-news-list::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.simple-news-list::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 2px;
}

.simple-news-list {
    scrollbar-width: thin;
    scrollbar-color: #444444 #f0f0f0;
}

.simple-news-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 4px;
}

.simple-news-item:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.simple-news-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.simple-news-link:hover {
    opacity: 0.75;
}

.simple-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 6px;
}

.simple-news-date {
    font-size: 13px;
    color: #51473f;
    font-family: "Noto Sans JP", Sans-serif;
    letter-spacing: 0.1em;
}

.simple-news-cat {
    display: inline-block;
    font-size: 11px;
    color: #666666;
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    padding: 1px 7px;
    line-height: 1.4;
    border-radius: 1px;
}

.simple-news-title {
	font-family: "Noto Sans JP", Sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #51473f;
    margin: 0;
    line-height: 1.5;
	letter-spacing: 0.1em;
}

.simple-news-empty {
    color: #888;
    font-size: 14px;
    padding: 10px 0;
}

/* スマホ表示向け（480px以下）の最適化 */
@media screen and (max-width: 480px) {
    .simple-news-list {
        max-height: 230px;
        padding-right: 6px;
    }

    .simple-news-item {
        padding: 12px 2px;
    }

    .simple-news-date {
        font-size: 12px;
    }

    .simple-news-cat {
        font-size: 10px;
        padding: 0 6px;
    }

    .simple-news-title {
        font-size: 14px;
        line-height: 1.45;
    }
}

/* ==========================================
   ページヒーローエリア (.page-hero-banner)
   ========================================== */
.page-hero-banner {
    width: 100%;
    margin-top: 50px; /* SP時: 固定ヘッダー分の余白 */
    height: 180px;
    position: relative;
    background-color: #e6ded5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


@media screen and (min-width: 768px) {
    .page-hero-banner {
        margin-top: 100px; /* PC時: 固定ヘッダー分の余白 */
        height: 240px;
    }
}

/* 半透明の黒オーバーレイ */
.page-hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
}

.page-hero-title {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    margin: 0;
    padding: 0 20px;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .page-hero-title {
        font-size: 1.85rem;
        letter-spacing: 0.12em;
    }
}

/* ==========================================
   パンくずリスト (.breadcrumb-container)
   ========================================== */
.breadcrumb-container {
    width: 100%;
    background: transparent;
    padding: 12px 0;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: #777777;
}

.breadcrumb-item a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s;
	font-family: "Noto Sans JP", Sans-serif;
}

.breadcrumb-item a:hover {
    opacity: .7;
    text-decoration: underline;
}

.breadcrumb-item span {
    color: #51473f;
	font-family: "Noto Sans JP", Sans-serif;
}

.breadcrumb-separator {
    color: #999999;
    font-size: 0.8rem;
    user-select: none;
}


/* ==========================================
   2カラムレイアウト & 記事・イベント一覧/詳細
   ========================================== */
.page-layout-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

@media screen and (min-width: 768px) {
    .page-layout-wrap {
        padding: 40px 20px;
    }
}



.two-column-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media screen and (min-width: 992px) {
    .two-column-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .main-content {
        flex: 1;
        min-width: 0; /* flex溢れ防止 */
    }

    .sidebar-content {
        width: 320px;
        flex-shrink: 0;
    }
}

/* --- アーカイブヘッダー --- */
.archive-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
}

.archive-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    margin: 0;
}

.archive-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

/* --- 記事・イベントグリッド --- */
.blog-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* PC表示: 2列並び */
@media screen and (min-width: 768px) {
    .blog-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* カード共通 */
.blog-card-item {
    background: #fff;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card-item:hover {
/*    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);*/
	opacity: .7;
	transition: .3s;
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f0f0f0;
}

.blog-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card-item:hover .blog-card-thumb {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #666;
	font-family: "Noto Sans JP", Sans-serif;
	letter-spacing: .1rem;
}

.blog-card-cat {
    font-size: 0.75rem;
    color: #555;
    border: 1px solid #ccc;
    background-color: #fcfcfc;
    padding: 2px 8px;
    border-radius: 2px;
    line-height: 1.3;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* SP表示時: 左にアイキャッチ、右にメタ＆タイトル */
@media screen and (max-width: 767px) {
    .blog-card-inner {
        flex-direction: row;
        align-items: stretch;
    }

    .blog-card-thumb-wrap {
        width: 120px;
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
    }

    .blog-card-body {
        padding: 10px 12px;
    }

    .blog-card-title {
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .blog-card-meta {
        margin-bottom: 4px;
        gap: 6px;
    }

    .blog-card-date {
        font-size: 0.78rem;
    }

    .blog-card-cat {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

/* --- イベントメタ情報（一覧用） --- */
.event-meta-info {
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-meta-label {
    font-weight: bold;
    color: #444;
    font-size: 0.78rem;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-meta-val {
    color: #666;
	font-family: "Noto Sans JP", Sans-serif;
	letter-spacing: .1rem;
}

@media screen and (max-width: 767px) {
    .event-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .event-meta-val {
        font-size: 0.7rem;
        line-height: 1.35;
		letter-spacing: .05rem;
    }
}


/* --- 詳細ページ --- */
.single-post-entry {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.single-post-header {
    margin-bottom: 20px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.single-post-date {
    font-size: 0.9rem;
    color: #51473f;
	font-family: "Noto Sans JP", Sans-serif;
	letter-spacing: .1rem;
}

.single-post-cat {
    font-size: 0.8rem;
    color: #444;
    border: 1px solid #ccc;
    padding: 2px 10px;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.single-post-cat:hover {
    background-color: #eee;
}

.single-post-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #222;
    margin: 0;
    line-height: 1.4;
}

.single-post-thumb-wrap {
    margin-bottom: 24px;
    border-radius: 6px;
    overflow: hidden;
}

.single-post-thumb {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
	font-family: "Noto Sans JP", Sans-serif;
	letter-spacing: .1rem;
}

/* イベント詳細ボックス */
.event-details-box {
    background: #f8f9fa;
    border-left: 4px solid #333;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 0 6px 6px 0;
}

.event-details-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-details-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.event-details-dt {
    font-weight: bold;
    color: #555;
    min-width: 80px;
    font-size: 0.9rem;
}

.event-details-dd {
    margin: 0;
    color: #222;
    font-size: 0.95rem;
}

/* 前後ナビゲーション */
.post-navigation-single {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-navigation-single a {
    color: #51473f;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
	font-family: "Noto Sans JP", Sans-serif;
	letter-spacing: .1rem;
}

.post-navigation-single a:hover {
    color: #000;
    text-decoration: underline;
}

/* ページネーション */
.pagination-wrap {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-wrap .nav-links {
    display: flex;
    gap: 8px;
}

.pagination-wrap .page-numbers {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
}

.pagination-wrap .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* --- サイドバーパーツ --- */
.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
}

/* 検索フォーム */
.search-form {
    display: flex;
    gap: 6px;
}

.search-form__label {
    flex: 1;
    margin: 0;
}

.search-form__input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.search-form__submit {
    background: #51473f;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-form__submit:hover {
    opacity: .7;
	transition: .3s;
}

/* 年月アーカイブセレクト */
.archive-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

/* カテゴリー（タグクラウド風バッジ） */
.category-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #555;
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-tag-item:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.cat-tag-count {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* ==========================================
   Events Manager プラグイン詳細出力デザイン (.em-view-container)
   ========================================== */
.em-view-container {
    margin: 10px 0 30px;
}

.em-item-header {
    background: #f9f9f9 !important;
    padding: 24px !important;
    margin-bottom: 30px !important;
}

.em-item-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px 40px !important;
}

.em-item-meta-column {
    flex: 1 1 240px !important;
    min-width: 0 !important;
}

.em-item-meta h3 {
    font-size: 1rem !important;
    font-weight: bold !important;
    color: #51473f !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 6px !important;
    border-bottom: 2px solid #dddddd !important;
    line-height: 1.4 !important;
	letter-spacing: 0.1rem;
}

.em-item-meta-line {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.92rem !important;
    color: #51473f !important;
    margin-bottom: 10px !important;
    flex-wrap: nowrap !important;
	font-family: "Noto Sans JP", Sans-serif;
	letter-spacing: 0.1rem;
}

.em-item-meta-line .em-icon {
    font-size: 1rem !important;
    color: #666666 !important;
    flex-shrink: 0 !important;
}

/* 開催期間日付の途中折り返し防止 */
.em-event-date {
    white-space: nowrap !important;
    word-break: keep-all !important;
	font-family: "Noto Sans JP", Sans-serif;
}

/* カテゴリーのリセット＆バッジ化 */
.em-event-categories ul,
.em-event-categories ul.event-categories {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.em-event-categories ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.em-event-categories a,
.em-event-tags a {
    display: inline-block !important;
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #51473f !important;
    font-size: 0.85rem !important;
    padding: 3px 12px !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
	font-family: "Noto Sans JP", Sans-serif !important;
}

.em-event-categories a:hover,
.em-event-tags a:hover {
    background: #51473f !important;
    color: #ffffff !important;
    border-color: #51473f !important;
}

.em.em-item .em-item-meta .em-event-categories a,
.em.em-item .em-item-meta .em-event-tags a {
	font-style: normal !important;
	text-decoration: none !important;
	}

.em.em-item .em-item-meta .em-event-categories a:hover,
.em.em-item .em-item-meta .em-event-tags a:hover {
	color: #ffffff !important;
}

.em-event-content {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: #51473f !important;
    margin-top: 24px !important;
	font-family: "Noto Sans JP", Sans-serif;
	letter-spacing: 0.1rem;
}

/* カレンダー追加ボタンとタグを非表示 */
.em-event-add-to-calendar,
.em-event-tags {
    display: none !important;
}

/* スマホ表示（480px以下）の最適化 */
@media screen and (max-width: 480px) {
    .em-item-header {
        padding: 16px 14px !important;
    }
    
    .em-item-meta-line {
        font-size: 0.82rem !important;
        gap: 4px !important;
    }

    .em-event-date {
        font-size: 0.82rem !important;
    }
}


