/*-----------fullcalendar--------------*/
/* FullCalendarのイベントスタイル */
/* カレンダー全体 */
.fc {
    background-color: #f9f9f9; /* 背景色 */
    border-radius: 10px; /* 角を丸く */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* カードの影 */
    padding: 20px; /* 内側の余白 */
}

/* ヘッダー */
.fc-toolbar {
    background: #032558;
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
}
.fc-button {
    background: #032558 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-size: 18px !important;
}
.fc-button:hover {
    background: #005f87 !important;
}

/* 月名のスタイル */
.fc-toolbar h2 {
    font-size: 24px; /* フォントサイズ */
    font-weight: bold;
    text-transform: uppercase;
}

/* 日付セルのデザイン */
.fc-day {
    background-color: #fff; /* 日付セルの背景 */
    border: 1px solid #e0e0e0; /* 枠線 */
    border-radius: 8px; /* 角を丸く */
    margin: 5px; /* セル間の余白 */
    padding: 10px; /* セル内の余白 */
}

/* 今日は選択されている日付のスタイル */
.fc-day-today {
    background-color: #ff4b5c; /* 今日の背景色 */
    color: white; /* 今日の文字色 */
    font-weight: bold; /* 今日の日付を強調 */
}

/* イベントのスタイル */
.fc-event {
    background-color: #ff7f7f; /* イベント背景色 */
    color: white; /* イベント文字色 */
    border-radius: 5px; /* イベント角を丸く */
    padding: 5px; /* イベント内の余白 */
    font-size: 14px; /* イベントフォントサイズ */
}

/* イベントのホバー時のスタイル */
.fc-event:hover {
    background-color: #e3003d; /* ホバー時の色 */
}

/* イベントタイトルが長くなる場合の折り返し */
.fc-event .fc-title {
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-event {
    position: relative;
    border: none;
    background: none !important;
    padding: 5px;
    transition: transform 0.2s ease-in-out;
}

/* イベント画像のスタイル */
.fc-event img {
    display: block;
    width: 100%;
    height: 80px !important;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* イベントタイトル */
.fc-event .fc-title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word; /* 長い単語も折り返す */
    white-space: normal; /* 折り返しを有効にする */
    overflow: hidden; /* 内容がはみ出すのを防ぐ */
    color: #333;
    display: block;
    margin-top: 5px;
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

/* イベントホバー時のアニメーション */
.fc-event:hover {
    transform: scale(1.05);
}

.fc-event:hover img {
    opacity: 0.85;
    transform: scale(1.02);
}
/* リスト表示の不要要素 */
.fc-list-event-dot,
.fc-list-event-time {
    display: none !important;
}
.fc-day-grid-event .fc-time {
    display: none!important;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .fc-event .fc-title {
        font-size: 12px;
    }

    .fc-event img {
        border-radius: 5px;
    }
}
/* モバイル対応 */
@media (max-width: 640px) {
    /* ヘッダー */
    .fc-toolbar {
        flex-direction: column;
    }
    .fc-toolbar-title {
        margin: 5px 0;
        text-align: center;
    }
    .fc-button-group {
        margin-top: 5px;
    }

    /* イベントタイトルとメモの幅・フォント調整 */
    .event-title {
        font-size: 16px !important;
        width: 60% !important;
        margin: 0 auto;
    }
/* アイキャッチ画像調整 */
.fc-list-event img.event-thumbnail {
    height: 100px !important;
    width: 80% !important;
	padding: 0 0 0 20%;
    object-fit: cover;
}

}


/*------------today----------*/
/* イベントの全体的なデザイン */
.event {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 100%;
    max-width: 350px; /* 1つのカードの最大幅 */
    margin-left: auto;
    margin-right: auto;
    display: flex; /* フレックスボックスを利用 */
    flex-direction: column; /* 子要素を縦に並べる */
    height: 100%; /* カードの高さを100%に設定 */
}

.event:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* サムネイル画像 */
.event-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #eee;
    transition: transform 0.3s ease-in-out;
}

/* タイトル */
.event h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin: 10px;
    font-weight: 600;
    line-height: 1.3;
}

/* 日付 */
.event-date {
    text-align: center;
    font-size: 1.1rem;
    color: #000;
    padding: 5px;
    margin: 5px 0;
    display: inline-block;
}

/* 抜粋部分 */
.event-excerpt {
    font-size: 1rem;
    color: #666;
    margin: 5px 10px;
    line-height: 1.6;
    text-align: center;
}

/* 詳細リンク */
.event-link {
    display: inline-block;
    font-size: 1.1rem;
    color: #fff;
    background-color: #007bff;
    text-align: center;
    padding: 10px;
    margin: auto auto 10px; /* 上下の余白を確保 */
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
    width: 80%; /* ボタンが横幅いっぱいに広がる */
    margin-top: auto; /* ボタンを下部に配置 */
}

.event-link:hover {
    background-color: #0056b3;
}

/* 2列表示 */
.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* カード間の余白 */
}

/* PCでは2列表示 */
.event {
    flex: 1 1 calc(50% - 10px); /* 均等な2列レイアウト */
    max-width: 350px;
}

/* スマホでは1列表示 */
@media screen and (max-width: 768px) {
    .events-container {
        display: block;
    }

    .event {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .event h3 {
        font-size: 1.25rem;
    }

    .event-excerpt {
        font-size: 0.9rem;
    }

    .event-thumbnail {
        height: 150px;
    }

    .event-link {
        font-size: 1rem;
    }
}

/* 親要素を横並びに配置 */
.parent-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* 見出しと日付のスタイル */
.centered-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 1px 2rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    display: inline-block;
    color: #333;
}

/* 本日のイベントがない場合のメッセージを中央に配置 */
.no-events-message {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    padding: 20px;
    max-width: 80%;
    margin: 20px auto;
    font-weight: bold;
}
/*----------event-page-------------*/
#event-contents {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 28px;
    font-weight: bold;
    color: #6699cc; /* 深めの赤 */
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #6699cc;
    padding-bottom: 10px;
}
#event-info {
    display: flex;
    justify-content: space-between;
	margin: 0;
	padding: 0;
}
.event-info-left {
    width: 60%;
	height: auto；
	margin: 0;
	padding: 0;
}
.event-info-right {
    width: 40%;
	height: 250px;
	margin: 0;
	padding: 0;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

p strong {
    color: #6699cc;
    font-weight: bold;
}

#event-contents .event-content {
    font-size: 16px;
    color: #444;
    padding: 15px;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    .event-content {
        padding: 15px;
    }
    
    h1 {
        font-size: 24px;
    }

    p {
        font-size: 14px;

    }
#event-info {
    flex-direction:column;
}
.event-info-left {
    width: 100%;
}
.event-info-right {
    width: 100%;
}
}
/*---------map---------*/
.event-map {
    width: 100%;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event-map iframe {
    width: 100%;
    height: 150px;
    border: none;
    border-radius: 8px;
}
/*----------category&title----------*/
#calendar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
}

#calendar-categories a {
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

#calendar-categories a:hover,
#calendar-categories a.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

#calendar-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 1rem auto 2rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    display: block;
    color: #333;
}

/*----------楽天アフィリ----------*/
  .furusato-section {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
  }

  .furusato-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .furusato-card {
    width: 180px;
    text-align: center;
    text-decoration: none;
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s;
  }

  .furusato-card:hover {
    transform: scale(1.05);
  }

  .furusato-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
  }

  .furusato-card p {
    font-size: 14px;
    color: #333;
  }
