@charset "UTF-8";

/* --- 基本的なカレンダーのスタイル --- calendar-month-view.php */
#activities-calendar-wrapper {
  font-family: sans-serif;
  max-width: 100%; /* カレンダーの最大幅 */
  margin: 20px auto; /* 中央寄せ */
/*  border: 1px solid #ddd;
  border-radius: 5px; */
  overflow: hidden; /* 角丸のため */
}

.calendar-header {
/*   display: flex;
  justify-content: space-between;
  align-items: center; */
	padding: 15px;
	display: block;
	position: relative;
/*  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd; */
}

.calendar-icon {
	position: absolute;
	right: 120px;
	top: 15px;
	font-size: 10px;
}

.calendar-icon li {
	margin: 0;
	padding: 0;
	display: inline-block;
}

.calendar-icon li:nth-child(1),.calendar-icon li:nth-child(2),.calendar-icon li:nth-child(3) {
	position:relative;
	padding-left: 20px;
	padding-right: 10px;
}

.calendar-icon li:nth-child(1):before{
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/seminar-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 5px;
}

.calendar-icon li:nth-child(2):before{
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/consultation-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 5px;
}

.calendar-icon li:nth-child(3):before{
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/news-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 5px;
}

.calendar-bt {
	position: absolute;
	right: 10px;
	top: 10px;
}

.calendar-bt div {
	border: 1px solid #e9e9f8;
	border-radius: 3px;
}

.calendar-header button {
	background-color: #fff;
	border: none;
	padding: 7px 10px;
	font-size: 0.8em;
	cursor: pointer;
	border-radius: 3px;
	transition: background-color 0.2s;
	color: #0b1f93;
	font-weight: bold;
}


.calendar-bt div button:nth-child(1),.calendar-bt div button:nth-child(2) {
	border-right: 1px solid #e9e9f8;
	border-radius: 3px 0 0 3px;
}

.calendar-header button:hover {
    background-color: #ddd;
}

.calendar-header .current-month-year {
	font-size: 1.1em;
	font-weight: bold;
	margin: 0;
	text-align: center;
}

.calendar-grid {
	border-top: 1px solid #e9e9f7;
	border-left: 1px solid #e9e9f7;
	border-right: 1px solid #e9e9f7;
	display: grid;
	grid-template-columns: repeat(7, 1fr); /* 7列のグリッド */
	border-collapse: collapse; /* 線の重なりをなくす */
}

/* カレンダーの「今日」のスタイル */
.calendar-grid .day.today {
/*	background-color: #fcf8e3; */ /* 例: 薄い黄色 */
	border: 1px solid #f0ad4e; /* 必要なら枠線も */
}

.day-header {
  text-align: center;
  padding: 5px 5px;
  background-color: #f4f4fb;
  font-weight: bold;
  font-size: 0.8em;
  border-bottom: 1px solid #e9e9f7;
  border-left: 1px solid #e9e9f7;
}
.day-header:first-child {
    border-left: none; /* 左端の線は不要 */
}
/* 日曜日は赤、土曜日は青 */
.day-header { color: #0b1f93; }
.day-header:nth-child(1) { color: red; }
.day-header:nth-child(7) { color: blue; }


.day {
  border-bottom: 1px solid #e9e9f7;
  border-left: 1px solid #e9e9f7;
  padding: 1px 5px;
  min-height: 110px; /* セルの最小高さ */
  position: relative; /* 日付番号の位置調整のため */
  box-sizing: border-box;
  font-size: 0.9em;
}
.day:nth-child(7n+1) { /* 各行の最初のセル (日曜) */
    border-left: none;
}
/* 6行目のセルの下線を消す（見た目調整、月の最終行によっては不要） */
/* .day:nth-last-child(-n+7) {
    border-bottom: none;
} */

.day.empty {
/*  background-color: #f5f5f5; */
  /* 空のセルはイベントがないので高さを抑える場合は以下を有効化 */
  /* min-height: auto; */
  /* padding: 0; */
}

.date-number {
  display: block; /* 日付番号を左上に固定しやすくする */
  text-align: right; /* 数字を右寄せ */
  font-size: 0.85em;
  color: #1a2d9a;
  font-weight:bold;
}
/* 日曜日の日付番号 */
.day:nth-child(7n+1) .date-number {
    color: red;
    font-weight: bold;
}
.day:nth-child(7n+1) {
	background: #f5f5f5;
}

/* 土曜日の日付番号 */
.day:nth-child(7n) .date-number {
    color: blue;
    font-weight: bold;
}

.day:nth-child(7n) {
	background: #f5f5f5;
}



.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.events-list li {
  margin-bottom: 5px;
  font-size: 1.0em; /* イベント名のフォントサイズ */
  line-height: 1.3;
  position:relative;
	padding-left: 3px;
	padding-right: 3px;
  text-indent: 19px;
}

.events-list .activity-type-ac_event {
	background-color: #fffbe6;
	border-radius: 3px;
}

.events-list .activity-type-ac_seminar {
	background-color: #e6f1ea;
	border-radius: 3px;
}

.events-list .activity-type-ac_consultation {
	background-color: #fff2f2;
	border-radius: 3px;
}


.events-list .activity-type-ac_event a {
  color: #0b1f93; /* リンクの色 */
  display: block; /* クリック範囲を広げる */
  padding: 3px;
}

.events-list .activity-type-ac_seminar a {
	color: #0b1f93; /* リンクの色 */
	display: block; /* クリック範囲を広げる */
	padding: 3px;
}

.events-list .activity-type-ac_consultation a {
	color: #0b1f93; /* リンクの色 */
	display: block; /* クリック範囲を広げる */
	padding: 3px;
}

.events-list .activity-type-ac_event:before {
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/news-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 1px;
	margin-left: 5px;
}


.events-list .activity-type-ac_seminar:before {
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/seminar-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 2px;
	margin-left: 5px;
}

.events-list .activity-type-ac_consultation:before {
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/consultation-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 2px;
	margin-left: 5px;
}

.events-list li a:hover {
  text-decoration: underline;
  background-color: #d0e7ff;
}

.holiday-name {
	background: #b2b2b2;
	color: #fff;
	padding:2px 5px;
	border-radius:5px;
	font-size: 0.8em;
}


/* 提供されたCSSからイベント種別ごとのスタイルを適用 */
.activity-type-ac_seminar a { background-color: #e6f1ea; color: #0c5460;}
.activity-type-ac_consultation a { background-color: #fff2f2; color: #856404;}
.activity-type-ac_event a { background-color: #fffbe6; color: #155724;} /* 例 */

/* --- レスポンシブ対応 --- */

/* タブレットサイズ程度 (768px以下) */
@media (max-width: 768px) {
  #activities-calendar-wrapper {
    margin: 15px 0; /* 左右の余白を少し減らす */
    font-size: 0.95em; /* 全体の基準フォントサイズを少し小さく */
  }

  .main h3.caltitle {
	text-align: center;
	font-size: 1.2em;
	margin: 15px 0 0px 0;
}
  .calendar-header {
    padding: 10px;
  }

.calendarsp-bt {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

.calendar-icon,.calendar-bt {
	position: initial;
}


  .calendar-header .current-month-year {
    font-size: 1.2em; /* 年月表示を少し小さく */
  }

  .calendar-header button {
    padding: 5px 7px; /* ボタンのパディングを少し小さく */
    font-size: 0.7em;
  }

  .day-header {
    padding: 8px 3px; /* 曜日のパディングを調整 */
    font-size: 0.8em;
  }

  .day {
    min-height: 80px; /* セルの最小高さを少し低く */
    padding: 6px; /* セルのパディングを少し小さく */
    font-size: 0.85em; /* セル内全体のフォントを少し小さく */
  }

  .date-number {
    font-size: 0.8em; /* 日付番号を少し小さく */
  }

  .events-list .activity-type-ac_event:before,.events-list .activity-type-ac_seminar:before, .events-list .activity-type-ac_consultation:before {
	width: 10px; 
	height: 10px;
	margin-left: 2px;
}

  .events-list li {
    font-size: 1.0em; /* イベント名を少し小さく */
    margin-bottom: 3px;
  }

  .events-list li a {
      padding: 2px; /* イベントリンクのパディングを小さく */
  }
}

/* スマートフォンサイズ程度 (480px以下) */
@media (max-width: 480px) {
  #activities-calendar-wrapper {
    margin: 10px 0; /* さらに左右の余白を減らす */
    font-size: 0.9em; /* 全体の基準フォントサイズをさらに小さく */
    border: none; /* 小画面では枠線を消しても良いかも */
  }

  .calendar-header {
    padding: 8px 5px;
    flex-wrap: wrap; /* ヘッダーが収まらない場合に折り返す */
    justify-content: center; /* 折り返した場合に中央寄せ */
  }

  .calendar-header .current-month-year {
    font-size: 1.1em;
    width: 100%; /* 折り返し時に年月表示を幅いっぱいに */
    text-align: center; /* 中央寄せ */
    margin-bottom: 5px; /* ボタンとの間に少し余白 */
    order: -1; /* 年月表示をボタンより上に（並び順変更） */
  }

  .calendar-header button {
    padding: 5px 8px;
    font-size: 0.8em;
  }

  .day-header {
    padding: 5px 2px;
    font-size: 0.7em; /* 曜日表示をさらに小さく */
     /* 漢字一文字にする場合 */
     /* 例えば、「日」など */
     /* writing-mode: vertical-rl; */ /* 縦書きにする場合（デザインによる） */
  }

  .day {
    min-height: 60px; /* セルの最小高さをさらに低く */
    padding: 4px; /* セルのパディングをさらに小さく */
    font-size: 0.8em; /* セル内全体のフォントをさらに小さく */
	line-height: 110%;
  }

.holiday-name {
	font-size: 0.6em;
	font-weight: bold;
	padding: 2px 2px;
}

.events-list li {
	text-indent: 10px;
	padding: 1px ;
}

.events-list .activity-type-ac_event a,.events-list .activity-type-ac_seminar a,.events-list .activity-type-ac_consultation a {
	padding: 1px;
}



  .date-number {
    font-size: 0.75em; /* 日付番号をさらに小さく */
    margin-bottom: 2px;
  }

  .events-list li {
    font-size: 1.0em; /* イベント名をさらに小さく */
    /* 長いイベント名が見切れる場合、以下を検討 */
    /* white-space: nowrap; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
  }
   .events-list li a {
      padding: 1px 2px;
  }
}


/* 催し詳細 single-activity.php */
.activity-date {
/*    font-weight: bold; */
    margin-right: 10px;
    display: inline-block;
    min-width: 100px; /* 日付表示幅を揃える場合 */
}
.activity-type {
    display: inline-block;
    background-color: #eee;
    padding: 2px 5px;
    font-size: 0.9em;
    margin-right: 10px;
    border-radius: 3px;
}
/* 種別ごとのスタイル例 */
.activity-type-ac_seminar .activity-type { background-color: #d1ecf1; }
.activity-type-ac_consultation .activity-type { background-color: #fff3cd; }
.activity-type-ac_event .activity-type { background-color: #d4edda; }

.activity-type-ac_seminar,.activity-type-ac_consultation,.activity-type-ac_event {
	position:relative;
	padding-left: 20px;
	padding-right: 10px;
}
	
.activity-type-ac_seminar:before{
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/seminar-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 1px;
}

.activity-type-ac_consultation:before{
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/consultation-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 1px;
}

.activity-type-ac_event:before{
	content: '';
	display: block;
	width: 17px; 
	height: 17px;
	background-image: url(../../../../themes/urayasu-cci/images/news-icon.svg);
	background-size: contain;
	background-repeat:no-repeat;
	position:absolute;
	top:0;
	left:0;
	margin-top: 1px;
}



/* 申し込みフォーム booking-form.php */
/* Add styles for form-row-name and form-col if needed */
.form-row-name { display: flex; gap: 15px; }
.form-row-name .form-col { flex: 1; }
/* Styles from previous response ... */
.activity-booking-form .form-row { margin-bottom: 15px; }
.activity-booking-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.activity-booking-form input[type="text"],
.activity-booking-form input[type="email"],
.activity-booking-form input[type="tel"],
.activity_booking_form input[type="number"],
.activity-booking-form textarea,
.activity-booking-form select { width: 100%; padding: 8px; border: 1px solid #ccc; box-sizing: border-box; }
.activity-booking-form .required { color: red; margin-left: 5px; }
.activity-booking-form .explanation { margin-left: 10px; font-size: 13px;font-weight: 380;}
.activities-notice { padding: 10px 15px; margin-bottom: 20px; border: 1px solid; border-radius: 4px; }
.activities-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; }
.activities-error { background-color: #f2dede; border-color: #ebccd1; color: #a94442; }
.activities-error ul { margin-top: 10px; padding-left: 20px; }

/* 申し込みフォーム 確認画面 booking-confirm.php */
.confirmation-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}
.confirmation-table th,
.confirmation-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.confirmation-table th {
    background-color: #f9f9f9;
    width: 30%;
}
.activity-booking-confirm-form .form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}


.entry-meta{
    padding:20px 0; 
}


.tag.accepting-blank {
  border-color: #fff;
  background-color: #fff;
  color:#fff;
}

button:disabled {
  background-color: #ccc;   /* 背景色 */
  color: #666;              /* 文字色 */
  cursor: not-allowed;      /* カーソル表示 */
  opacity: 1;               /* 透明度（必要に応じて） */
}

/* booking-form.php 会員ステータス ラジオボタン横並び */
.activity-booking-form .form-row .radio-options-horizontal {
    display: flex; /* Flexbox を使用して要素を横に並べる */
    align-items: center; /* 要素を垂直方向の中央に配置 */
    gap: 20px; /* 各選択肢（ラベル）の間のスペース */
    margin-top: 5px; /* 上のラベルとのスペース調整 */
    margin-bottom: 5px; /* 下のエラーメッセージとのスペース調整 */
}

.activity-booking-form .form-row .radio-options-horizontal label {
    margin-right: 15px; /* display:flex と gap を使うので個別のマージンは不要 */
    display: inline-flex; /* ラジオボタンとテキストを揃えるため */
    align-items: center;
    cursor: pointer;
}

.activity-booking-form .form-row .radio-options-horizontal input[type="radio"] {
    margin-right: 5px; /* ラジオボタンとその隣のテキストの間のスペース */
}




a.btn-oldlink{
    padding: 8px 24px 8px 24px;
    display: block;
    color: #fff !important;
    background: #CCA020;
    text-decoration: none;
    font-weight: bold;
    border-radius: 40px;
    text-align: center;
    text-decoration: none !important;
    width: 120px;
}

a.btn-oldlink:hover {
  background: #B28A15;
}
