/* =========================
   section 共通レイアウト
========================= */
.section {
  padding: 0 2rem;
}

.section-white {
  background-color: #fff;
}

.section-gray {
  background-color: #f5f5f5;
}

.section-news {
  padding: 1rem 3rem 3rem;
}

/* =========================
   section 見出しエリア
========================= */
.section-head {
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-head p,
.section-head h1 {
  text-align: center;
}

.section-head .mission,
.section-head .action {
  margin-bottom: 0.5rem;
}

.section-head .program,
.section-head .news {
  margin-bottom: 2rem;
}

/* =========================
   section 本文エリア
========================= */
.section-body-lg {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-body-md {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* =========================
   News 装飾
========================= */
.news-deco {
  color: #a9a9a9;
}

.news-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

/* =========================
   header
========================= */
.header-logo {
  text-decoration: none;
  color: inherit;
}

h1 {
    text-align: center;
}

.activity-top {
    margin: 20px auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.activity {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.activity-text {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    line-height: 2rem;
    font-size: 1.0em;
}

.activity-right {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    line-height: 2rem;
    font-size: 1.0em;
}

.activity-bottom {
    text-align: center;
}

.activity img {
    width: 300px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    align-self: center;
}

.activity-item img {
    width: 300px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    align-self: center;
}

.activity-top .activity-body {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.activity-top .activity-body img {
    flex: 1;
    max-width: 300px;
}

.activity-top .activity-body p {
    flex: 2;
    text-align: left;
}

.attend_button {
  display: inline-block;
  background-color: #001F5B;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.attend_button:hover {
  background-color: rgba(0, 31, 91, 0.8);
}

.mission, .action, .program, .news {
    font-size: 3.5em;
    font-weight: bold;
}

.mission-title {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
}

.mission-text, .action-text {
    font-size: 1em;
    text-align: left;
}

.action-plan {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    /* border-bottom: solid #f5f5f5; */
}

.news-date {
    margin: 0; 
    font-weight: bold;
    font-size: 1.2em;
}

.news-text {
    margin: 0; 
    font-size: 1.2em;
}

@media (max-width: 1200px) {

    .activity {
        display: block;
    }

    .activity-item {
        flex-direction: column-reverse;
    }

    .activity img {
        width: 100%;
    }

    .activity-item img {
        width: 100%;
    }

    .right_justified {
        text-align: center;
    }

    .mission, .action, .program, .news {
        font-size: 2.5em;
    }

    .mission-title {
        font-size: 1.5em;
    }

    .mission-text, .action-text {
        font-size: 1.0em;
    }
}

@media (max-width: 768px) {
    .hero-svg image {
        clip-path: none;
        height: 75px;
    }

    .activity {
        display: block;
    }

    .activity-item {
        flex-direction: column-reverse;
    }

    .activity img {
        width: 100%;
    }

    .activity-item img {
        width: 100%;
    }

    .right_justified {
        text-align: center;
    }

    .activity-top .activity-body {
        flex-direction: column;
        align-items: center;
    }

    .activity-top .activity-body p {
        order: 1;
        text-align: center;
    }

    .activity-top .activity-body img {
        order: 2;
        margin-top: 1rem;
    }

    .activity-text {
        order: 1;
    }

    .activity-img {
        order: 2;
    }


    .activity-bottom {
        order: 3;  
        text-align: center;
    }
}
