@charset "UTF-8";
/* ========================================
   history.css / nyatten 2027（整理版）
   ======================================== */

/* ---------- セクション ---------- */
.history {
  padding: 56px 20px;
  background: #f8f8f8;
}

.history__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
}

/* ---------- ヘッダー ---------- */
.history__head {
  margin-bottom: 40px;
}

.history__heading {
  display: block;
}

.history__sub {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1e73be;
  text-align: center;
}

.history__title {
  margin-bottom: 24px;
  font-size: 3.2rem;
  text-align: center;
  line-height: 1.2;
}

/* ---------- 合計 ---------- */
.history__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  border: 2px solid #111;
  border-radius: 20px;
  background: #fff;
}

.history__total-label {
  font-size: 1.4rem;
  font-weight: 700;
}

.history__total-amount {
  font-size: 3.6rem;
  line-height: 1.1;
  font-weight: 800;
}

.history__total-note {
  font-size: 1.2rem;
  color: #666;
}

/* ---------- タイムライン ---------- */
.history__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.history__item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
}

.history__item::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 40px;
  bottom: -24px;
  width: 2px;
  background: #222;
}

.history__item:last-child::before {
  bottom: 40px;
}

/* ---------- 年丸 ---------- */
.history__year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ⭐ ここが今回の整理ポイント（1つに統一） */
.history__card {
  position: relative;
  padding: 18px 18px 20px;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  min-height: 140px;
}

/* ---------- 中身 ---------- */
.history__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.history__item-title {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.4;
  text-align: left; 
}

.history__text {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #444;
}

.history__amount {
  margin-top: 12px;
  font-size: 1.6rem;
  font-weight: 800;
}

.history__date {
  margin-top: 12px;
  font-size: 2.4rem;
  font-weight: 800;
  color: #1e73be;
}

/* ---------- バリエーション ---------- */
.history__item--highlight .history__year {
  background: #1e73be;
  color: #fff;
  border-color: #1e73be;
}

.history__item--highlight .history__card {
  border-color: #cfe1f5;
  background: #f4f9ff;
}

.history__item--start .history__year {
  background: #111;
  color: #fff;
}

.history__item--future .history__year {
  background: #ffe100;
  color: #111;
}

.history__item--future .history__card {
  border: 2px solid #111;
  background: #fffef2;
}


.history__origin {
  text-align: center;
  margin: 80px 0 100px; /* ←ここ重要 */
  font-size: 1.8rem;
  color: #555;
  line-height: 2;
  letter-spacing: 0.08em;
}



/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .history {
    padding: 72px 32px;
  }

  .history__title {
    font-size: 4.2rem;
  }

  .history__total {
    padding: 28px 24px;
  }

  .history__total-amount {
    font-size: 5.2rem;
  }

  .history__item {
    grid-template-columns: 96px 1fr;
    gap: 24px;
  }

  .history__item::before {
    left: 47px;
  }

  .history__year {
    width: 96px;
    height: 96px;
    font-size: 2.2rem;
  }

  .history__card {
    padding: 24px;
  }
}

/* ---------- PC ---------- */
@media (min-width: 1024px) {
  .history {
    padding: 96px 40px;
  }

  .history__head {
    margin-bottom: 56px;
  }

  .history__heading {
    margin-bottom: 28px;
  }

  .history__sub,
  .history__title {
    text-align: center;
  }

  .history__total {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 28px 24px;
  }

  .history__timeline {
    gap: 32px;
  }

  .history__item {
    grid-template-columns: 120px 1fr;
    gap: 32px;
  }

  .history__item::before {
    left: 59px;
  }

  .history__year {
    width: 120px;
    height: 120px;
    font-size: 2.8rem;
  }

  .history__card {
    padding: 28px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .history__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }

  .history__item-title {
    font-size: 2.4rem;
  }

  .history__text {
    max-width: 62ch;
  }
}

/*ーーーーブログ追加ーーーーーー*/
.history-origin {
  max-width: 72rem;
  margin: 3.2rem auto 5.6rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e5ded5;
  border-radius: 2.4rem;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.05);
  text-align: center;
}

.history-origin__image {
  width: 100%;
  max-width: 34rem;
  border-radius: 1.6rem;
  display: block;
  margin: 0 auto;
}

.history-origin__text {
  margin: 1.6rem 0 2rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: #3f3a36;
}

.history-origin__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: #164b8f;
  border-radius: 999px;
  text-decoration: none;
}

@media (min-width: 768px) {
  .history-origin {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    text-align: left;
  }

  .history-origin__image {
    width: 26rem;
  }

  .history-origin__body {
    flex: 1;
  }
}


