/* ===========================
   リセット・ベース
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #8fad7a;
  font-family: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: #3d2c1e;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* ===========================
   サイドボタン（固定）
=========================== */
.side-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: block;
  width: 80px;
}

.side-btn img {
  width: 100%;
}

/* ===========================
   メインビジュアル
=========================== */
.mainvisual {
  background-color: #a4c0aa;
  padding: 20px 0 0;
}

.mainvisual__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mainvisual__img {
  width: 100%;
  margin: 0 auto;
}

/* ===========================
   ウェーブ
=========================== */
.wave {
  display: block;
  line-height: 0;
  overflow: hidden;
}

/* メインビジュアル後（緑→緑なので非表示） */
.wave--to-white {
  display: none;
}

/* 緑(#a4c0aa)→白：TOPICS前 */
.wave--to-green {
  background-color: #a4c0aa;
  margin-bottom: -2px;
}

.wave--to-green img {
  width: 100%;
  display: block;
}

/* 白(TOPICSの白)→薄緑(#a4c0aa)：TOPICSの後 */
.wave--to-green-bottom {
  background-color: #fff;
  margin-bottom: -2px;
}

.wave--to-green-bottom img {
  width: 100%;
  display: block;
}

/* フッター上ウェーブ：薄緑地に白い波装飾 */
.wave--footer-top {
  background-color: #a4c0aa;
  line-height: 0;
  overflow: hidden;
  margin-bottom: -2px;
}

.wave--footer-top img {
  width: 100%;
  display: block;
  transform: rotate(180deg) scaleX(-1);
}

/* ===========================
   イントロテキスト
=========================== */
.intro {
  background-color: #a4c0aa;
  padding: 10px 20px 20px;
}

.intro__inner {
  max-width: 920px;
  margin: 0 auto;
}

.intro__text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* 20pt相当 */
  line-height: 2;
  color: #65472d;
  text-align: center;
  margin-bottom: 40px;
}

.intro__date {
  text-align: center;
  margin-bottom: 10px;
}

.intro__date-img {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* ===========================
   地図
=========================== */
.map-section {
  background-color: #a4c0aa;
  padding: 10px 20px 20px;
}

.map-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.map-section__embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.map-section__embed iframe {
  display: block;
  height: 420px;
}

/* ===========================
   参加申し込みボタン
=========================== */
.apply-btn-section {
  background-color: #a4c0aa;
  padding: 20px 20px 100px;
  text-align: center;
}

.apply-btn {
  display: inline-block;
  max-width: 400px;
  width: 80%;
}

.apply-btn img {
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.apply-btn:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ===========================
   TOPICS
=========================== */
.topics {
  background-color: #fff;
  padding: 60px 20px 60px;
}

.topics__inner {
  max-width: 900px;
  margin: 0 auto;
}

.topics__ttl {
  text-align: center;
  margin-bottom: 48px;
}

.topics__ttl img {
  max-width: 280px;
  width: 60%;
  margin: 0 auto;
}

/* TOPICSアイテム共通 */
.topics__item {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 48px;
}

.topics__item-img {
  flex: 0 0 50%;
  min-width: 0;
}

.topics__item-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.topics__item-txt {
  flex: 0 0 50%;
  min-width: 0;
  padding: 0;
}

.topics__item-txt img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: fill;
  display: block;
}

/* TOPICS 02：テキスト左・画像右 */
.topics__item--02 {
  flex-direction: row;
}

/* TOPICS 01・03：画像左・テキスト右 */
.topics__item--01,
.topics__item--03 {
  flex-direction: row;
}

/* TOPICS内申し込みボタン */
.topics__apply {
  text-align: center;
  padding: 0px 0 20px;
}

/* ===========================
   フッター
=========================== */
.footer {
  background-color: #a4c0aa;
  padding: 10px 20px 40px;
}

.footer__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__logo img {
  max-width: 400px;
  width: 80%;
  margin: 0 auto;
}

.footer__info {
  text-align: center;
  color: #65472d;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  line-height: 1.6;
  font-size: 1rem; /* 16px */
}

.footer__organizer {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.footer__contact {
 font-size: 1.3rem;
}

.break-sp {
  display: inline;
}

.footer__iehime {
  margin-top: 8px;
}

.footer__iehime-link {
  display: block;
}

.footer__iehime-link img {
  max-width: 160px;
  width: 100%;
  margin: 0 auto;
}

/* ===========================
   レスポンシブ（タブレット以下）
=========================== */
@media (max-width: 767px) {

  .side-btn {
    width: 60px;
  }

  .mainvisual {
    padding: 12px 0 0;
  }

  .intro__text {
    font-size: 1rem;
    text-align: left;
  }

  .map-section__embed iframe {
    height: 260px;
  }

  /* TOPICS01・03：画像上・テキスト下 */
  .topics__item--01,
  .topics__item--03 {
    flex-direction: column;
    margin-bottom: 10px;
  }

  /* TOPICS02：画像が上になるようcolumn-reverse */
  .topics__item--02 {
    flex-direction: column-reverse;
    margin-bottom: 36px;
  }

  /* 画像はトリミングなし */
  .topics__item-img {
    flex: 0 0 auto;
  }

  .topics__item-img img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  /* SVGテキストは画像と同幅 */
  .topics__item-txt {
    flex: 0 0 auto;
    padding: 12px 0;
  }

  .topics__item-txt img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .apply-btn {
    width: 90%;
    max-width: 320px;
  }

  .footer__logo img {
    width: 90%;
  }

  .footer__organizer {
    font-size: 1rem;
  }

  .footer__contact {
    font-size: 1rem;
  }

  .footer__info {
    font-size: 0.875rem; /* 14px */
  }

  .break-sp {
    display: block;
  }
}

@media (max-width: 480px) {
  .intro__text {
    font-size: 0.9rem;
  }

  .topics__ttl img {
    width: 70%;
  }
}
