@charset "UTF-8";

/* =====================
   2. ブロック1・３ 写真フェードショー
   ===================== */
.history-block-1 , .history-block-3 {
  background: var(--color-bg-light-green);
}

.section-fadeshow {
  padding: 0 0 20px 0;
  overflow: hidden;
}
 
/* 写真グリッド：2行×複数列 */
.fadeshow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* PC：3列 */
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
 
/* 2行目は少し右にずらす（添付画像のような段差） */
.fadeshow-item:nth-child(n+4) {
  grid-column: span 1;
  transform: translateX(12%);
}
 
/* 各写真 */
.fadeshow-item {
  opacity: 0;                 /* 初期は非表示 */
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: opacity 1.2s ease;
}
 
.fadeshow-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
 
/* スマホ：2列 */
@media (max-width: 600px) {
  .fadeshow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
 
  .fadeshow-item:nth-child(n+4) {
    transform: none;
  }
}



/* =====================
   2. ブロック2 沿革
   ===================== */

.history-block-2 {
  background: #fff;
}

/* 全体リスト */
.history-list {
  max-width: 800px;
  margin: 0 auto;
}

/* 1年分のブロック */
.history-year {
  display: flex;
  gap: 0;
  border-top: 1px solid #ddd;
  padding: 24px 0;
}

.history-year:last-child {
  border-bottom: 1px solid #ddd;
}

/* 年号 */
.history-year-label {
  flex: 0 0 80px;
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-iitan-green);
  padding-top: 2px;
}

/* 右側のコンテンツエリア */
.history-year-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 月ごとのブロック */
.history-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* 月 */
.history-month {
  flex: 0 0 36px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-iitan-green) !important;
  padding-top: 2px;
}

/* テキストリスト */
.history-item ul {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-item ul li {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
  padding-left: 1em;
  text-indent: -1em;
  margin-bottom: 6px;
}

.history-item ul li::before {
  content: '・';
  color: var(--color-iitan-green);
}

/* スマホ：年号を上に */
@media (max-width: 600px) {
  .history-year {
    flex-direction: column;
    gap: 12px;
  }

  .history-year-label {
    flex: none;
  }

  .history-item {
    gap: 12px;
  }
}