
/* ==============================
   Reset & Base
   ============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==============================
   Header
   ============================== */
.page-header {
  background: #f4f2f9;
  padding: 56px 24px 44px;
  text-align: center;
  border-bottom: 4px solid #5B2D8E;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.header-flag {
  display: inline-block;
  background: #5B2D8E;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.2em;
  padding: 5px 16px;
  margin-bottom: 18px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-right: 28px;
}

.header-subtitle {
  margin-top: 14px;
  font-size: 15px;
  color: #666;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ==============================
   Main content
   ============================== */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* ==============================
   Year sections
   ============================== */
.year-section {
  background: #fff;
  border: 2px solid #5B2D8E;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto 48px;
  margin-bottom: 48px;
  box-shadow: 0 4px 16px rgba(91, 45, 142, 0.10);
  max-width: 880px;
}

.year-section:last-child {
  margin-bottom: 0;
}

/* ==============================
   Year badge header
   ============================== */
.year-badge-wrap {
  background: #5B2D8E;
  padding: 14px 28px;
}

.year-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.year-num-block {
  display: flex;
  align-items: baseline;
  color: #fff;
  line-height: 1;
}

.year-num {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.year-suffix {
  font-size: 22px;
  font-weight: 700;
  margin-left: 2px;
}

.year-label-block {
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.9);
  gap: 2px;
  margin-left: 8px;
}

.year-kanji {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.15em;
}

.year-grade {
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.75;
}

/* ==============================
   Section body
   ============================== */
.section-body {
  padding: 32px 32px 32px;
}

.term-block {
  padding: 0;
}

.term-label {
  display: inline-block;
  background: #5B2D8E;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  padding: 3px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.term-divider {
  border: none;
  border-top: 1px dashed #c8b0e8;
  margin: 32px 0;
}

/* ==============================
   Content row
   ============================== */
.content-row {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

/* ==============================
   Text column
   ============================== */
.text-col {
  flex: 1 1 0;
  min-width: 0;
}

/* ==============================
   Image column
   ============================== */
.img-col {
  flex: 0 0 40%;
  max-width: 380px;
}

.section-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.section-img.is-long {
  width: 65%;
  margin: auto;
}

/* ==============================
   Text elements
   ============================== */
.tag-label {
  display: block;
  border-left: 4px solid #5B2D8E;
  padding-left: 9px;
  font-size: 12px;
  font-weight: bold;
  color: #5B2D8E;
  letter-spacing: 0.08em;
  margin-top: 18px;
  margin-bottom: 6px;
}

.text-col .tag-label:first-child,
.text-col .speech-bubble:first-child + .tag-label {
  margin-top: 0;
}

.content-heading {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.text-col p {
  font-size: 14px;
  color: #444;
  line-height: 1.85;
}

/* ==============================
   text
   ============================== */

tmp_section_txt .clr-schedule {
  color: #5b2d8e;
}

/* ==============================
   Speech bubble
   ============================== */
.speech-bubble {
  display: inline-block;
  background: #F5E642;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.55;
  padding: 9px 16px;
  border-radius: 24px;
  position: absolute;
  margin-bottom: 16px;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 22px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #F5E642;
}

.bubble-wrap {
  position: relative;
}
]
.bubble-wrap .bubble-wrap {
  z-index: 10;
}

.bubble-wrap01 .speech-bubble {
  top: -22px;
  left: 10px;
}

.bubble-wrap02 .speech-bubble {
  top: -37px;
  left: 157px;
}

.bubble-wrap03 .speech-bubble {
  top: -10px;
  left: 130px;
}



/* ==============================
   Responsive ¡ª 640px breakpoint
   ============================== */
@media (max-width: 640px) {

  .page-header {
    padding: 36px 16px 28px;
    margin-bottom: 24px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .header-subtitle {
    font-size: 13px;
  }

  .main-content {
    padding: 28px 12px 48px;
  }

  .year-section {
    margin-bottom: 32px;
  }

  .year-badge-wrap {
    padding: 12px 20px;
  }

  .year-num {
    font-size: 38px;
  }

  .year-suffix {
    font-size: 17px;
  }

  .section-body {
    padding: 22px 16px;
  }

  .content-row {
    flex-direction: column;
    gap: 20px;
  }

  .content-row.reverse {
    flex-direction: column-reverse;
  }

  .img-col {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
  }

  .content-row.reverse .img-col {
    margin-top: 0;
    margin-bottom: 16px;
  }

  .content-heading {
    font-size: 18px;
  }

  .speech-bubble {
    font-size: 12px;
  }

  .bubble-wrap01 .speech-bubble {
    top: -30px;
    left: 0px;
  }

  .bubble-wrap02 .speech-bubble {
    top: -31px;
    left: 92px;
  }

  .bubble-wrap03 .speech-bubble {
    top: -6px;
    left: 98px;
  }

  .speech-bubble::after {
    display: none;
  }

}
