@charset "UTF-8";
/* ===================================================
   助成金募集 (Grant) ページ専用スタイル
=================================================== */
/* --- ページ全体 --- */
.grant-page {
  background-color: #fdfcf9;
}

/* --- ページヘッダー --- */
.page-hero {
  padding: 160px 0 60px;
  text-align: center;
}

.page-hero .sub-title {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-spark);
  margin-bottom: 15px;
}

.page-hero .main-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 30px;
}

.page-hero .lead-text {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-light);
}

/* --- セクションタイトル --- */
.content-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
  color: var(--text-main);
}

.content-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 2px;
  background: var(--text-main);
  transform: translateX(-50%);
}

.content-title.spark-color {
  color: var(--color-spark);
}
.content-title.spark-color::after {
  background: var(--color-spark);
}
.content-title.shine-color {
  color: var(--color-shine);
}
.content-title.shine-color::after {
  background: var(--color-shine);
}
.content-title.smile-color {
  color: var(--color-smile);
}
.content-title.smile-color::after {
  background: var(--color-smile);
}

/* --- 助成の趣旨 --- */
.grant-about {
  padding: 40px 0 80px;
}

.message-box {
  background: #fff;
  padding: 60px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(74, 64, 54, 0.05);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.message-box p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-main);
  font-weight: 500;
}

/* --- 募集概要テーブル --- */
.grant-outline {
  padding: 60px 0;
}

.outline-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* 比較テーブル（A区分/B区分）用：横スクロール対応 */
.outline-table-wrapper--compare {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.outline-table-wrapper--compare .outline-table {
  min-width: 480px;
}
@media screen and (max-width: 768px) {
  .outline-table-wrapper--compare .outline-table th,
  .outline-table-wrapper--compare .outline-table td {
    display: table-cell;
    width: auto;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .outline-table-wrapper--compare .outline-table th:first-child {
    width: 20%;
    min-width: 60px;
  }
  .outline-table-wrapper--compare .outline-table th {
    background: #f4f3ef;
    color: var(--text-main);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(74, 64, 54, 0.05);
  }
  .outline-table-wrapper--compare .outline-table td {
    padding-top: 12px;
    border-bottom: 1px solid rgba(74, 64, 54, 0.05);
  }
  .outline-table-wrapper--compare .outline-table tr:first-child th,
  .outline-table-wrapper--compare .outline-table tr:first-child td {
    font-size: 0.8rem;
    font-weight: 700;
  }
}

.outline-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 64, 54, 0.04);
}

.outline-table th, .outline-table td {
  padding: 30px;
  border-bottom: 1px solid rgba(74, 64, 54, 0.05);
  line-height: 1.8;
}

.outline-table tr:last-child th,
.outline-table tr:last-child td {
  border-bottom: none;
}

.outline-table th {
  width: 25%;
  text-align: left;
  font-weight: 700;
  background: #f4f3ef;
  color: var(--text-main);
  vertical-align: top;
}

.outline-table td {
  color: var(--text-main);
  font-weight: 500;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
}

.feature-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--color-spark);
  font-size: 0.8em;
}

.note {
  font-size: 0.85rem;
  color: var(--text-light);
  display: inline-block;
  margin-top: 10px;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(74, 64, 54, 0.1);
  padding-bottom: 10px;
}

.schedule-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.s-label {
  display: inline-block;
  width: 120px;
  font-weight: 700;
  color: var(--color-spark);
  font-size: 0.9rem;
}

/* --- 応募方法・エントリー導線 --- */
.grant-entry {
  padding: 80px 0 120px;
}

.entry-box {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(74, 64, 54, 0.06);
  border: 1px solid rgba(74, 64, 54, 0.1);
}

.entry-step {
  position: relative;
}

.mt-50 {
  margin-top: 50px;
}

.entry-step h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.entry-step h3 span {
  background: var(--color-spark);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.1em;
}

.entry-step p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-main);
  font-weight: 500;
}

.btn-area {
  margin-top: 30px;
  text-align: center;
}

.text-center {
  text-align: center;
}

.btn-download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  border-radius: 50px;
  background: #f4f3ef;
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #ebe9e1;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: #fff;
  border-color: var(--color-spark);
  color: var(--color-spark);
  transform: translateY(-2px);
}

.btn-apply {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 20px 60px;
  border-radius: 50px;
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(138, 182, 214, 0.3);
}

.btn-spark-gradient {
  background: linear-gradient(135deg, var(--color-spark) 0%, #a8cde9 100%);
}

.btn-apply:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(138, 182, 214, 0.4);
}

.privacy-note {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 20px;
  background: transparent;
  border: 1px solid rgba(74, 64, 54, 0.1);
  border-radius: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===================================================
   レスポンシブ対応
=================================================== */
@media screen and (max-width: 768px) {
  .inner {
    padding-left: 5%;
    padding-right: 5%;
  }
  .page-hero {
    padding: 120px 0 40px;
  }
  .page-hero .main-title {
    font-size: 2rem;
  }
  .message-box {
    padding: 40px 20px;
  }
  .message-box p {
    font-size: 0.95rem;
    text-align: left;
  }
  .outline-table th, .outline-table td {
    display: block;
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
  }
  .outline-table th {
    padding-bottom: 5px;
    border-bottom: none;
    background: transparent;
    color: var(--color-spark);
  }
  .outline-table td {
    padding-top: 0;
    border-bottom: 1px solid rgba(74, 64, 54, 0.1);
  }
  .schedule-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .entry-box {
    padding: 40px 20px;
  }
  .entry-step h3 {
    font-size: 1.1rem;
    flex-wrap: wrap;
  }
  .btn-download {
    width: 100%;
    padding: 15px 10px;
    box-sizing: border-box;
    font-size: 0.85rem;
    text-align: center;
  }
  .btn-apply {
    width: 100%;
    padding: 15px 10px;
    box-sizing: border-box;
    font-size: 1rem;
    text-align: center;
  }
}

/* ===================================================
   Grant - ヒーロー画像
=================================================== */
.grant-hero-img {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    margin-bottom: 60px;
}
.grant-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.5);
}
.grant-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(45,38,32,0.3), rgba(45,38,32,0.6));
}
.grant-hero-text {
    text-align: center;
    color: #fff;
}
.grant-hero-en {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    opacity: 0.7;
    margin-bottom: 15px;
}
.grant-hero-ja {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.5;
}

/* Grant バッジ・ポイント */
.grant-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}
.badge-spark {
    background: var(--color-spark);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    letter-spacing: 0.1em;
}
.badge-shine {
    background: var(--color-shine);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    letter-spacing: 0.1em;
}
.badge-smile {
    background: var(--color-smile);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    letter-spacing: 0.1em;
}
.badge-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}
.grant-point-row {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid rgba(74,64,54,0.08);
    padding-top: 35px;
}
.grant-point {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(74,64,54,0.08);
}
.grant-point:last-child { border-right: none; }
.grant-point-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-spark);
    line-height: 1.2;
    margin-bottom: 8px;
}
.grant-point-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* スケジュール - より視覚的に */
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.schedule-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(74,64,54,0.06);
    gap: 20px;
}
.schedule-list li:last-child { border-bottom: none; }
.s-label {
    display: inline-block;
    min-width: 130px;
    font-weight: 700;
    color: #fff;
    font-size: 0.82rem;
    background: var(--color-spark);
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

/* レスポンシブ追加 */
@media screen and (max-width: 768px) {
    .grant-hero-img { height: 220px; }
    .grant-hero-ja { font-size: 1.2rem; }
    .grant-point-row { flex-direction: column; gap: 20px; }
    .grant-point { border-right: none; border-bottom: 1px solid rgba(74,64,54,0.08); padding-bottom: 20px; }
    .grant-point:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ===== 情報公開ページ ===== */
.disclosure-content-section {
    padding: 60px 0 120px;
}
.disclosure-block {
    max-width: 800px;
    margin: 0 auto;
}
.disclosure-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 30px;
    padding-left: 16px;
    border-left: 4px solid var(--color-spark);
}
.doc-icon-wrap {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.doc-text .doc-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 4px;
    color: var(--text-main);
}
.doc-text .doc-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}
.disclosure-doc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.disclosure-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(74,64,54,0.1);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(74,64,54,0.04);
}
.doc-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.doc-icon { font-size: 1.8rem; }
.doc-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 4px;
    color: var(--text-dark);
}
.doc-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}
.btn-doc-download {
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-spark);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.btn-doc-download:hover { opacity: 0.8; }

/* SMILE応募ボタン */
.btn-smile-gradient {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--color-smile) 0%, #6aaf7d 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 20px rgba(142,188,155,0.4);
    transition: all 0.3s ease;
}
.btn-smile-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(142,188,155,0.5);
}

/* SHINE応募ボタン */
.btn-shine-gradient {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--color-shine) 0%, #f0d070 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 20px rgba(230,197,101,0.4);
    transition: all 0.3s ease;
}
.btn-shine-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(230,197,101,0.5);
}

/* ===================================================
   SHINE / SMILE カラーテーマ上書き
=================================================== */

/* --- SHINE（黄色）--- */
.grant-page--shine .grant-point-num { color: var(--color-shine); }
.grant-page--shine .content-title::after { background: var(--color-shine); }
.grant-page--shine .feature-list li::before { color: var(--color-shine); }
.grant-page--shine .s-label {
    background: var(--color-shine);
    color: #5a4a00;
}
.grant-page--shine .entry-step h3 span {
    background: var(--color-shine);
    color: #5a4a00;
}
.grant-page--shine .btn-download:hover {
    border-color: var(--color-shine);
    color: #5a4a00;
}
.grant-page--shine .outline-table th {
    color: #5a4a00;
}

/* --- SMILE（緑）--- */
.grant-page--smile .grant-point-num { color: var(--color-smile); }
.grant-page--smile .content-title::after { background: var(--color-smile); }
.grant-page--smile .feature-list li::before { color: var(--color-smile); }
.grant-page--smile .s-label {
    background: var(--color-smile);
    color: #fff;
}
.grant-page--smile .entry-step h3 span {
    background: var(--color-smile);
    color: #fff;
}
.grant-page--smile .btn-download:hover {
    border-color: var(--color-smile);
    color: var(--color-smile);
}

/* ===================================================
   情報公開ページ - 完全デザイン
=================================================== */

/* 共通見出し */
.disclosure-heading-wrap {
    text-align: center;
    margin-bottom: 48px;
}
.disclosure-en-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--color-spark);
    margin-bottom: 10px;
}
.disclosure-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 0.04em;
}

/* 法人基本情報セクション */
.disclosure-overview-section {
    padding: 80px 0 60px;
    background: #fdfcf9;
}
.disclosure-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.disclosure-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(74,64,54,0.06);
    border: 1px solid rgba(74,64,54,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.disclosure-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74,64,54,0.10);
}
.info-card-icon { font-size: 2rem; line-height: 1; }
.info-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-spark);
}
.info-card-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
}

/* 書類ダウンロードセクション */
.disclosure-content-section {
    padding: 60px 0 80px;
    background: #f7f5f0;
}
.disclosure-section-lead {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 48px;
    font-weight: 500;
}
.disclosure-doc-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}
.disclosure-doc-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74,64,54,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.disclosure-doc-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74,64,54,0.11);
}
.doc-color-stripe {
    width: 6px;
    align-self: stretch;
    flex-shrink: 0;
}
.stripe-spark { background: var(--color-spark); }
.stripe-shine { background: var(--color-shine); }
.stripe-smile { background: var(--color-smile); }
.doc-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    padding: 24px 28px;
}
.doc-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-spark { background: rgba(138,182,214,0.15); color: var(--color-spark); }
.icon-shine { background: rgba(230,197,101,0.15); color: #c9a830; }
.icon-smile { background: rgba(142,188,155,0.15); color: var(--color-smile); }
.doc-text .doc-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 5px;
    color: var(--text-main);
}
.doc-text .doc-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}
.btn-doc-download {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    margin-right: 24px;
    background: var(--color-spark);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.btn-doc-download:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-doc-shine { background: var(--color-shine); color: #5a4a00; }
.btn-doc-smile { background: var(--color-smile); }

/* CTAセクション */
.disclosure-cta-section {
    padding: 80px 0 120px;
    background: #fdfcf9;
}
.disclosure-cta-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(74,64,54,0.07);
    border: 1px solid rgba(74,64,54,0.08);
}
.disclosure-cta-bars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
}
.dc-bar { display: block; height: 4px; width: 40px; border-radius: 4px; }
.dc-bar-spark { background: var(--color-spark); }
.dc-bar-shine { background: var(--color-shine); }
.dc-bar-smile { background: var(--color-smile); }
.disclosure-cta-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 36px;
}

/* レスポンシブ */
@media screen and (max-width: 900px) {
    .disclosure-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 600px) {
    .disclosure-info-grid { grid-template-columns: 1fr; }
    .disclosure-main-title { font-size: 1.4rem; }
    .doc-info { padding: 18px 16px; gap: 14px; }
    .btn-doc-download { margin-right: 16px; padding: 10px 18px; font-size: 0.8rem; }
    .disclosure-cta-box { padding: 40px 20px; }
}


/* ===== SPARK 3枚フォトグリッド ===== */
.grant-hero-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
}
.grant-photo-item {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.grant-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.grant-photo-item:hover img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .grant-hero-photos {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ===================================================
   助成金ページ：イベント・募集情報セクション
=================================================== */
.grant-events-section {
    padding: 80px 0 100px;
    background: linear-gradient(to bottom, #fdfcf9, #f7f5f0);
}

.grant-events-section .content-title {
    text-align: center;
    margin-bottom: 40px;
}

/* タブUI */
.events-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.events-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 50px;
    border: 2px solid rgba(74, 64, 54, 0.15);
    background: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light, #888);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.events-tab-btn:hover {
    border-color: var(--color-spark, #8ab6d6);
    color: var(--color-spark, #8ab6d6);
    transform: translateY(-2px);
}

.events-tab-btn.active {
    background: var(--color-spark, #8ab6d6);
    border-color: var(--color-spark, #8ab6d6);
    color: #fff;
    box-shadow: 0 6px 20px rgba(138, 182, 214, 0.35);
}

.grant-page--shine .events-tab-btn.active {
    background: var(--color-shine, #e6c565);
    border-color: var(--color-shine, #e6c565);
    box-shadow: 0 6px 20px rgba(230, 197, 101, 0.35);
}

.grant-page--smile .events-tab-btn.active {
    background: var(--color-smile, #8ebc9b);
    border-color: var(--color-smile, #8ebc9b);
    box-shadow: 0 6px 20px rgba(142, 188, 155, 0.35);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    font-weight: 700;
}

.events-tab-btn:not(.active) .tab-count {
    background: rgba(74, 64, 54, 0.1);
    color: var(--text-light, #888);
}

/* タブコンテンツ */
.events-tab-pane {
    display: none;
}

.events-tab-pane.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* イベントグリッド */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* イベントカード */
.event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(74, 64, 54, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(74, 64, 54, 0.12);
}

.event-card--ended {
    opacity: 0.7;
}

.event-card--ended:hover {
    opacity: 0.9;
}

/* カードサムネイル */
.event-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0ede8;
}

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

.event-card:hover .event-card-thumb img {
    transform: scale(1.05);
}

.event-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e4df, #d4cfc8);
}

/* ステータスバッジ */
.event-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.event-badge--active {
    background: var(--color-spark, #8ab6d6);
}

.grant-page--shine .event-badge--active {
    background: var(--color-shine, #e6c565);
}

.grant-page--smile .event-badge--active {
    background: var(--color-smile, #8ebc9b);
}

.event-badge--ended {
    background: rgba(74, 64, 54, 0.4);
}

/* カードボディ */
.event-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    font-size: 0.82rem;
    color: #aaa;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main, #4a4036);
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-excerpt {
    font-size: 0.875rem;
    color: var(--text-light, #888);
    line-height: 1.7;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.event-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-spark, #8ab6d6);
    margin-top: auto;
}

.grant-page--shine .event-more {
    color: var(--color-shine, #c9a830);
}

.grant-page--smile .event-more {
    color: var(--color-smile, #5a9e6e);
}

/* 投稿なし */
.events-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--text-light, #aaa);
    font-size: 1rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .grant-events-section {
        padding: 60px 0 80px;
    }
    .events-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .events-tab-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
