/* 固定ページテンプレートで使用するcss */
.fixed-page-header {
	height: 75vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background-color: #f4f0eb;
} 
	
.fixed-page-header-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	z-index: 1;
}
	
.fixed-page-header-title {
	position: relative;
	z-index: 2;
	color: white;
	font-family: "ads-kodama";
	font-size: 8rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	margin: 0;
}

.fixed-header-wave {
	height: 24px;
	margin-top: -24px;
	position: relative;z-index: 1;
}

@media(max-width: 768px) {
	.fixed-page-header-title {
		font-size: 4rem;
	}
}

/* Single Event Page Styles */
.event-single {
    background-color: #f4f0eb;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-single__title {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.event-single__date,
.event-single__info-list .event-single__info-item:nth-child(even) {
    background-color: #fafafa;
}
.event-single__place {
  font-weight: bold;
  margin-top: 0.5rem;
}
.event-single__summary {
  margin-top: 1rem;
}

/* ---- Compact event hero layout ---- */
.event-single__flex {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.event-single__image {
    flex: 0 0 38%;
    max-width: 38%;
}
.event-single__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}
.event-single__details {
    flex: 1;
}
/* Definition list as table */
.event-single__info-list {
    margin: 0;
    padding: 0;
}
.event-single__info-list .event-single__info-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.event-single__info-list dt {
    text-align: right;
    font-weight: 600;
    color: #333;
    padding-right: 0.5rem;
}

.event-single__info-list dd {
    margin: 0;
    flex-grow: 1;
}
@media (max-width: 768px) {
    .event-single__flex {
        flex-direction: column;
    }
    .event-single__image, .event-single__image img {
        max-width: 100%;
    }
    .event-single__info-list dt {
        width: 100px;
    }
}

/* ---- Rounded UI enhancements for related posts ---- */
.related-posts {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}
.related-title {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #2f4e3d;
}
.related-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-item {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.related-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.related-name {
    display: block;
    padding: 0.5rem;
    font-weight: 600;
    color: #333;
}
@media (max-width: 768px) {
    .related-item {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}
@media (max-width: 480px) {
    .related-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/* single-event 右側のイベント情報をテントウムシ画像風にする */
.event-single__inner {
    max-width: 1160px;
    margin: 0 auto;
}

.event-single__hero {
    padding: 80px 0 60px;
}

.event-single__flex {
    display: flex;
    align-items: center;
    gap: 56px;
    flex-wrap: nowrap;
}

/* 左画像 */
.event-single__image {
    flex: 0 0 48%;
    max-width: 48%;
}

.event-single__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 36px;
    display: block;
}

/* 右側 */
.event-single__details {
    flex: 1;
    max-width: 560px;
}

/* タイトル */
.event-single__title {
    color: #2f4e3d;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin: 0 0 28px;
    font-weight: 700;
}

/* 既存の偶数背景を無効化 */
.event-single__date,
.event-single__info-list .event-single__info-item:nth-child(even) {
    background-color: transparent;
}

/* 情報リスト全体 */
.event-single__info-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
}

/* 1行ごとの形 */
.event-single__info-list .event-single__info-item {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 6px;
    padding: 0;
    border-bottom: none;
    align-items: stretch;
}

/* 左の茶色ラベル */
.event-single__info-list dt {
    background: #8b5f4a;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 12px 14px;
    border-radius: 4px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 右の白ボックス */
.event-single__info-list dd {
    background: #fff;
    color: #111;
    margin: 0;
    padding: 12px 16px;
    border-radius: 4px;
    line-height: 1.7;
    min-height: 46px;
    display: flex;
    align-items: center;
}

/* 予約リンクも右ボックス内で自然に見せる */
.event-single__reserve-button {
    color: #111;
    text-decoration: none;
}

.event-single__reserve-button:hover {
    text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 900px) {
    .event-single__hero {
        padding: 48px 0;
    }

    .event-single__flex {
        flex-direction: column;
        gap: 32px;
    }

    .event-single__image,
    .event-single__details {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .event-single__image img {
        border-radius: 24px;
    }

    .event-single__info-list .event-single__info-item {
        grid-template-columns: 110px 1fr;
    }

    .event-single__info-list dt,
    .event-single__info-list dd {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
}
/* トップページへ戻るボタン */
.fixed-return {
    text-align: center;
    padding: 64px 20px 90px;
}

.fixed-return .return {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 320px;
    height: 78px;
    padding: 0 44px;

    background-color: #244b38;
    color: #fff !important;
    text-decoration: none;

    border-radius: 18px;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1;

    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.fixed-return .return:hover {
    background-color: #1d3f2f;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .fixed-return {
        padding: 48px 20px 72px;
    }

    .fixed-return .return {
        min-width: 260px;
        height: 64px;
        padding: 0 32px;
        border-radius: 16px;
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
}
/* 開催日時：カレンダー風 */
.event-single__info-list dd.event-single__calendar-dd {
    display: block;
    padding: 12px;
}

.event-calendar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.event-calendar-card {
    width: 104px;
    background: #fff;
    border: 2px solid #2f4e3d;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.event-calendar-card__head {
    background: #2f4e3d;
    color: #fff;
    font-weight: 700;
    padding: 5px 8px;
    font-size: 0.9rem;
}

.event-calendar-card__body {
    padding: 8px;
}

.event-calendar-card__year {
    display: block;
    color: #777;
    font-size: 0.72rem;
    line-height: 1.2;
}

.event-calendar-card__day {
    display: block;
    color: #2f4e3d;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
}

.event-calendar-card__week {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-top: 4px;
    background: #f4f0eb;
    color: #2f4e3d;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.event-calendar-card__time {
    border-top: 1px dashed #d8cec6;
    padding: 6px 6px 8px;
    color: #111;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .event-calendar-card {
        width: calc(50% - 5px);
        min-width: 120px;
    }
}