/* ===================================================
   monthly_competition.css
   晴れ倶楽部 月例ラウンドページ専用スタイル
=================================================== */

/* --- ヒーローセクション --- */
.template_title h1.template_text {
  font-weight: 400;
}
.mc-hero-content {
  padding: 50px 0 40px;
  text-align: center;
}

.mc-hero-content h1 {
  color: #ffffff;
  font-size: 2.2em;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}

.mc-hero-sub {
  color: #a8d890;
  font-size: 0.85em;
  letter-spacing: 0.25em;
  font-family: 'Roboto Condensed', serif;
  font-style: italic;
  margin: 0;
}

/* --- パンくずリスト --- */
.mc-breadcrumb {
  font-size: 0.85em;
  color: #888;
  margin: 10px 10vw 0;
}

.mc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  gap: 0;
}

.mc-breadcrumb ol li {
  display: flex;
  align-items: center;
}

.mc-breadcrumb ol li::after {
  content: '›';
  margin: 0 6px;
  color: #bbb;
}

.mc-breadcrumb ol li:last-child::after {
  content: '';
}

.mc-breadcrumb a {
  color: #48922b;
  text-decoration: none;
}

.mc-breadcrumb a:hover {
  text-decoration: underline;
}

/* --- イントロテキスト --- */
.mc-intro {
  background: linear-gradient(135deg, #f5faf4 0%, #eaf4e6 100%);
  border-left: 4px solid #48922b;
  border-radius: 0 8px 8px 0;
  padding: 1.5em 2em;
  line-height: 2;
  font-size: 1em;
  color: #333;
}

/* --- セクションタイトル h2 --- */
.mc-section-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #0d3e30;
  text-align: center;
  margin: 0 auto 1.2em;
  padding-bottom: 0.5em;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, rgba(255,255,255,0), #48922b, rgba(255,255,255,0)) 1;
  min-width: 40%;
  width: fit-content;
}

/* --- 情報カード --- */
.mc-card {
  background: #ffffff;
  border: 1px solid #ddeedd;
  border-radius: 8px;
  padding: 0.5em 2em;
  box-shadow: 0 2px 8px rgba(13, 62, 48, 0.06);
}

.mc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mc-card ul li {
  padding: 0.85em 0 0.85em 1.8em;
  position: relative;
  border-bottom: 1px solid #f0f5ee;
  line-height: 1.8;
  font-size: 1em;
  color: #444;
}

.mc-card ul li:last-child {
  border-bottom: none;
}

.mc-card ul li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 1.3em;
  width: 8px;
  height: 8px;
  background-color: #48922b;
  border-radius: 50%;
  flex-shrink: 0;
}

.mc-card ul li small {
  display: block;
  color: #888;
  font-size: 0.88em;
  margin-top: 0.3em;
}

/* --- キャンセル規定：イントロ --- */
.mc-cancel-intro {
  border-left: 3px solid #48922b;
  background: #f5faf4;
  padding: 1em 1.4em;
  margin-bottom: 1.5em;
}

.mc-cancel-intro p {
  margin: 0.4em 0;
  line-height: 1.9;
  color: #444;
  font-size: 0.97em;
}

/* --- キャンセル規定：サブセクションカード --- */
.mc-cancel-section {
  margin-bottom: 0;
  padding: 1.5em 0;
  border-top: 1px solid #e4e8e4;
}

.mc-cancel-section:first-of-type {
  border-top: none;
  padding-top: 0.5em;
}

/* --- キャンセル規定：小見出し --- */
.mc-cancel-subtitle {
  font-size: 0.97em;
  font-weight: 700;
  color: #0d3e30;
  margin: 0 0 1em;
  padding-left: 0.7em;
  border-left: 3px solid #0d3e30;
  border-bottom: none;
}

/* --- キャンセル規定：テーブル下注釈 --- */
.mc-cancel-footnote {
  font-size: 0.86em;
  color: #666;
  margin-top: 0.9em;
  line-height: 1.7;
}

/* --- キャンセル規定：本文ブロック --- */
.mc-cancel-block {
  font-size: 0.95em;
  color: #444;
  line-height: 1.9;
}

.mc-cancel-block p {
  margin: 0.3em 0;
}

.mc-cancel-block small {
  color: #888;
  font-size: 0.88em;
}

/* --- キャンセル規定：ご注意リスト --- */
.mc-cancel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8em;
}

.mc-cancel-list li {
  padding: 0.5em 0 0.5em 1.2em;
  position: relative;
  border-bottom: 1px solid #f0f0ee;
  line-height: 1.8;
}

.mc-cancel-list li:last-child {
  border-bottom: none;
}

.mc-cancel-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #0d3e30;
}

/* --- キャンセル規定：事務局署名 --- */
.mc-cancel-office {
  text-align: right;
  font-size: 0.92em;
  color: #0d3e30;
  font-weight: 700;
  margin-top: 0.8em;
}

/* --- キャンセルポリシーテーブル --- */
.mc-cancel-table-wrapper {
  overflow-x: auto;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(13, 62, 48, 0.1);
}

.mc-cancel-table {
  width: 100%;
  border-collapse: collapse;
}

.mc-cancel-table thead tr {
  background: linear-gradient(0deg, #0d3e30, #1d6347);
  color: #ffffff;
}

.mc-cancel-table thead th {
  padding: 14px 20px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  border: none;
  width: auto;
}

.mc-cancel-table thead th:first-child {
  width: 60%;
  text-align: left;
}

.mc-cancel-table tbody tr {
  transition: background 0.15s;
}

.mc-cancel-table tbody tr:nth-child(odd) {
  background-color: #f9fbf9;
}

.mc-cancel-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}


.mc-cancel-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid #e8eee8;
  font-size: 1em;
  background: transparent;
  text-align: center;
}

.mc-cancel-table tbody td:first-child {
  text-align: left;
  color: #333;
}

.mc-cancel-table .cancel-free {
  color: #2d8020;
  font-weight: 700;
}

.mc-cancel-table .cancel-30 {
  color: #c07000;
  font-weight: 700;
}

.mc-cancel-table .cancel-50 {
  color: #c04020;
  font-weight: 700;
}

.mc-cancel-table .cancel-100 {
  color: #900000;
  font-weight: 700;
}

/* --- キャンセル注記 --- */
.mc-cancel-note {
  background: #fffdf0;
  border-left: 3px solid #c09000;
  padding: 1em 1.5em;
  margin-top: 1.2em;
  font-size: 0.9em;
  color: #555;
  line-height: 1.8;
  border-radius: 0 6px 6px 0;
}

/* --- CTAボタン（申し込みボタン） --- */
.mc-cta-wrap {
  text-align: center;
}

.mc-cta-wrap .button_common {
  margin-bottom: 0;
}

.mc-cta-wrap .button_common a {
  display: inline-block;
  background: linear-gradient(to right, #c9a84c 50%, #0d3e30 50%);
  background-size: 200% 100%;
  background-position: right center;
  color: #c9a84c;
  border: 1px solid #c9a84c;
  border-radius: 0;
  width: auto;
  min-width: 400px;
  padding: 22px 60px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1em;
  letter-spacing: 0.15em;
  text-align: center;
  text-decoration: none;
  transition: background-position 0.4s ease, color 0.4s ease;
}

.mc-cta-wrap .button_common a:hover {
  background-position: left center;
  color: #0d3e30;
}

/* --- セクション区切り線 --- */
.mc-divider {
  border: none;
  border-top: 1px solid #e0ede0;
  margin: 0 10vw 0;
}

/* --- 年度見出し --- */
.mc-year-header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 0 auto 1em;
}

.mc-year-header::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #48922b);
}

.mc-year-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #48922b, transparent);
}

.mc-year-header h2 {
  white-space: nowrap;
  font-size: 1.1em;
  font-weight: 700;
  color: #0d3e30;
  margin: 0;
  padding: 0;
}

/* --- 開催実績テーブル --- */
.mc-past-table-wrapper {
  overflow-x: auto;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(13, 62, 48, 0.08);
}

.mc-past-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.mc-past-table thead th {
  background: #f5f5f3;
  color: #333;
  padding: 5px 8px;
  font-size: 0.82em;
  font-weight: 600;
  text-align: center;
  border: none;
  border-bottom: 1.5px solid #c8c8c4;
  white-space: nowrap;
  width: auto;
}

.mc-past-table thead th.course-col {
  text-align: left;
}

.mc-past-table tbody td {
  padding: 5px 8px;
  text-align: center;
  border: none;
  border-bottom: 1px solid #e8ede8;
  font-size: 0.88em;
  background: transparent;
}

.mc-past-table tbody tr:nth-child(odd) td {
  background-color: #f9fbf9;
}

.mc-past-table tbody tr:nth-child(even) td {
  background-color: #ffffff;
}


.mc-past-table .round-cell {
  background: #edeeec !important;
  color: #0d3e30;
  font-weight: 600;
  font-size: 0.88em;
  vertical-align: middle;
  border-right: 1px solid #c8c8c4;
  width: 60px;
}

.mc-past-table .date-cell {
  white-space: nowrap;
  color: #555;
  font-size: 0.88em;
}

.mc-past-table .day-cell {
  color: #999;
  font-size: 0.85em;
  width: 36px;
}

.mc-past-table .course-cell {
  text-align: left;
  font-weight: 500;
  color: #0d3e30;
}

.mc-past-table .pref-cell {
  color: #777;
  font-size: 0.85em;
  font-weight: 400;
  white-space: nowrap;
  background: transparent !important;
}

/* --- 過去コース一覧 --- */
.mc-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5em;
}

.mc-course-tag {
  display: inline-block;
  background: #f0f7ee;
  border: 1px solid #b0d4a8;
  color: #0d3e30;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  transition: all 0.2s ease;
  cursor: default;
}


/* ===================================================
   レスポンシブ
=================================================== */
@media screen and (max-width: 700px) {
  .mc-hero-content {
    padding: 30px 0 25px;
  }

  .mc-hero-content h1 {
    font-size: 1.5em;
    padding: 0 15px;
  }

  .mc-hero-sub {
    font-size: 0.78em;
  }

  .mc-breadcrumb {
    margin: 5px 4vw 0;
    font-size: 0.8em;
  }

  .mc-intro {
    padding: 1em 1.2em;
    font-size: 0.95em;
  }

  .mc-section-title {
    font-size: 1.15em;
    min-width: 70%;
  }

  .mc-card {
    padding: 0.5em 1em;
  }

  .mc-card ul li {
    font-size: 0.95em;
  }

  .mc-cancel-table thead th,
  .mc-cancel-table tbody td {
    padding: 10px 12px;
    font-size: 0.88em;
  }

  .mc-cancel-note {
    font-size: 0.85em;
    padding: 0.8em 1em;
  }

  .mc-year-header h2 {
    font-size: 0.9em;
    white-space: normal;
    text-align: center;
  }

  .mc-past-table thead th,
  .mc-past-table tbody td {
    padding: 8px 10px;
    font-size: 0.82em;
  }

  .mc-course-tag {
    font-size: 0.78em;
    padding: 4px 10px;
  }

  .mc-divider {
    margin: 0 4vw;
  }

  .mc-cta-wrap .button_common a {
    min-width: 0;
    width: 80vw;
    padding: 18px 20px;
    letter-spacing: 0.06em;
  }
}
