/* 地域協働センターのスタイル */

/* イベントセクションのスタイル */
.event {
  margin-bottom: 60px;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* イベントタイトルのスタイル */
.event h2 {
  font-size: 24px;
  font-weight: bold;
  color: #004098; /* 大阪国際大学のブルー */
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #004098;
  position: relative;
}

.event h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30%;
  height: 2px;
  background-color: #e60012; /* アクセントカラー */
}

/* イベント見出し画像のスタイル */
.event .midashi {
  margin-bottom: 20px;
  text-align: center;
}

.event .midashi img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* イベントコンテンツのスタイル */
.kvEventCon {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .event {
    padding: 20px;
    margin-bottom: 40px;
  }

  .event h2 {
    font-size: 20px;
  }

  .kvEventTxt p {
    font-size: 14px;
  }
}

/* regional-boxの2列表示スタイル */
.regional-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.regional-box {
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.regional-box h4 {
  font-size: 20px;
  font-weight: bold;
  color: #004098;
  padding: 15px 20px;
  margin: 0;
  background-color: #f5f5f5;
  border-bottom: 2px solid #004098;
  position: relative;
}

.regional-box h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30%;
  height: 2px;
  background-color: #e60012;
}

.regional-content {
  padding: 20px;
}

.regional-image {
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 5px;
}

.regional-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
}

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

.regional-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #004098;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.regional-button:hover {
  background-color: #002d6b;
  color: #fff !important;
}

/* 主な活動分野見出しのスタイル */
.regional-catch {
  font-size: 28px;
  font-weight: bold;
  color: #004098;
  text-align: center;
  margin: 50px 0 20px;
  position: relative;
  padding-bottom: 15px;
}

.regional-catch::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e60012;
}

/* 活動記録バナーのスタイル */
.banner {
  margin: 60px auto 30px;
  text-align: center;
}

/* リンクボタンのコンテナ */
.regional-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  flex-wrap: wrap;
}
.regional-links p {
  text-align: center;
  width: calc(100% / 3 - 20px * 2 / 3);
}

/* 共通のリンクボタンスタイル */
.regional-link-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  min-width: 180px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid;
  background-color: transparent;
}

.regional-link-button i {
  margin-right: 8px;
  font-size: 18px;
}

/* YouTubeボタン */
.regional-link-button.youtube {
  color: #ff0000 !important;
  border-color: #ff0000;
}

.regional-link-button.youtube:hover {
  background-color: rgba(255, 0, 0, 0.1);
}

/* Instagramボタン */
.regional-link-button.instagram {
  color: #e1306c !important;
  border-color: #e1306c;
}

.regional-link-button.instagram:hover {
  background-color: rgba(225, 48, 108, 0.1);
}

/* ボランティア依頼ボタン */
.regional-link-button.volunteer {
  color: #004098 !important;
  border-color: #004098;
}

.regional-link-button.volunteer:hover {
  background-color: rgba(0, 64, 152, 0.1);
}

.banner a {
  display: inline-block;
  padding: 25px 50px;
  background: linear-gradient(135deg, #004098, #0056b3);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}

.banner a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.banner a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.banner a:hover::before {
  left: 100%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .regional-catch {
    font-size: 22px;
    margin: 30px 0 15px;
    padding-bottom: 12px;
  }

  .regional-catch::after {
    width: 60px;
    height: 2px;
  }

  .regional-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .regional-box h4 {
    font-size: 18px;
    padding: 12px 15px;
  }

  .regional-content {
    padding: 15px;
  }

  .regional-button {
    padding: 8px 20px;
    font-size: 14px;
  }

  .banner a {
    padding: 20px 30px;
    font-size: 16px;
    width: 80%;
  }

  .regional-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px auto;
  }

  .regional-link-button {
    width: 80%;
    padding: 10px 15px;
    font-size: 14px;
  }

  .regional-link-button i {
    font-size: 16px;
  }
}

/* 74行目からのrow要素用flexboxスタイル - 12カラムグリッドシステム（モバイルファースト） */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
}

/* デフォルト（スマホ）: 全て100%幅 */
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* 768px以上（タブレット・PC）: col-md-*の指定幅を適用 */
@media screen and (min-width: 769px) {
  .row {
    gap: 20px;
  }

  .col-md-1 {
    flex: 0 0 calc(8.333333% - 20px * 11 / 12);
    max-width: calc(8.333333% - 20px * 11 / 12);
  }

  .col-md-2 {
    flex: 0 0 calc(16.666667% - 20px * 10 / 12);
    max-width: calc(16.666667% - 20px * 10 / 12);
  }

  .col-md-3 {
    flex: 0 0 calc(25% - 20px * 9 / 12);
    max-width: calc(25% - 20px * 9 / 12);
  }

  .col-md-4 {
    flex: 0 0 calc(33.333333% - 20px * 8 / 12);
    max-width: calc(33.333333% - 20px * 8 / 12);
  }

  .col-md-5 {
    flex: 0 0 calc(41.666667% - 20px * 7 / 12);
    max-width: calc(41.666667% - 20px * 7 / 12);
  }

  .col-md-6 {
    flex: 0 0 calc(50% - 20px * 6 / 12);
    max-width: calc(50% - 20px * 6 / 12);
  }

  .col-md-7 {
    flex: 0 0 calc(58.333333% - 20px * 5 / 12);
    max-width: calc(58.333333% - 20px * 5 / 12);
  }

  .col-md-8 {
    flex: 0 0 calc(66.666667% - 20px * 4 / 12);
    max-width: calc(66.666667% - 20px * 4 / 12);
  }

  .col-md-9 {
    flex: 0 0 calc(75% - 20px * 3 / 12);
    max-width: calc(75% - 20px * 3 / 12);
  }

  .col-md-10 {
    flex: 0 0 calc(83.333333% - 20px * 2 / 12);
    max-width: calc(83.333333% - 20px * 2 / 12);
  }

  .col-md-11 {
    flex: 0 0 calc(91.666667% - 20px * 1 / 12);
    max-width: calc(91.666667% - 20px * 1 / 12);
  }

  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.event h2.nostyle {
  color: #000;
  border: none;
}

.event h2.nostyle::after {
  content: none;
}
