@charset "UTF-8";

/*
 * ヒストリー
 */

.page-bg {
  background-repeat: no-repeat;
  background-position: top center;
}

.history-years__number {
  display: block;
}

.history-years-text {
  display: block;
  font-weight: 900;
}

.history-item {
  position: relative;
  background-color: rgba(255, 0, 0, .8);
}

.history-item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 1px;
  margin: auto;
  background: #f00;
  content: "";
}

.history-item--ye {
  background-color: #ff0;
}

.history-item--border {
  display: block;
}

.history-item--border::before {
  content: none;
}

.history-item--border::after {
  position: absolute;
  top: 0;
  height: 1px;
  background: #fff;
  content: '';
}

.history-item-first {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  background-color: rgba(255, 0, 0, .8);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.history-item-first dd {
  color: #fff;
  font-weight: 700;
  line-height: 1.65;
}

.history-item-first::before {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 1px;
  margin: auto;
  background: #f00;
  content: "";
}

.history-item--gr {
  background-color: rgba(0, 151, 76, .8);
}

.history-item--gr::before {
  background: rgba(0, 151, 76, .8);
}

.history-item__ye {
  color: #ff0;
  font-weight: 900;
}

.history-item__rd {
  color: #f00;
  font-weight: 900;
}

.history-item__wh {
  color: #fff;
  font-weight: 700;
  line-height: 1.65;
}

.history-item__bk {
  color: #000;
  font-weight: 700;
  line-height: 1.65;
}

.history-message {
  margin-right: auto;
  margin-left: auto;
}

@media screen and (min-width: 600px) {
  .page-bg {
    background-image: url("../img/history/bg_package.png");
    background-size: 100% auto;
  }

  .history {
    margin-top: 60px;
    padding-bottom: 165px;
    background-image: url("../img/history/bg_star_left.png"), url("../img/history/bg_star_right.png"), url("../img/history/bg_package_bottom.png");
    background-repeat: repeat-y, repeat-y, no-repeat;
    background-position: left top 12%, right top 12%, left bottom;
    background-size: 100% auto;
  }

  .history__content {
    max-width: 904px;
    margin-right: auto;
    margin-left: auto;
    border-left: 10px solid #f00;
  }

  .history-years {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 83.333%;
    margin-left: 16.666%;
    padding-top: 70px;
    padding-bottom: 40px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .history-years-first {
    max-width: 610px;
    width: 83.333%;
    margin-left: 16.666%;
    padding-top: 60px;
    padding-bottom: 30px;
  }

  .history-years__number {
    width: 305px;
  }

  .history-years-text {
    width: calc(100% - 305px);
    margin-right: -1.1em;
    padding-left: 6%;
    font-size: 36px;
    line-height: 1.38;
    -webkit-font-feature-settings: "palt";
    font-feature-settings: "palt";
  }

  .history-years-text--ml {
    margin-left: -5%;
  }

  .history-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 745px;
    width: 84%;
    height: 230px;
    margin-top: 10px;
    margin-left: 16.666%;
    padding-right: 31%;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }

  .history-item::before {
    left: -20%;
    width: 20%;
  }

  .history-item--h300 {
    height: 300px;
  }

  .history-item--border {
    margin-top: 0;
    padding-left: calc(98px + 10%);
  }

  .history-item--border::after {
    right: 4.563%;
    width: 70.698%;
  }

  .history-item--koize {
    height: 280px;
  }

  .history-item--koize .history-item__package {
    top: 17%;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item dt {
    width: 98px;
    margin-left: 9%;
  }

  .history-item dd {
    width: calc(91% - 98px);
    padding-left: 10%;
  }

  .history-item-first {
    max-width: 744px;
    width: 84%;
    height: 130px;
    margin-left: 16.666%;
    padding-right: 31%;
  }

  .history-item-first dt {
    width: 98px;
    margin-left: 9%;
  }

  .history-item-first dd {
    width: calc(91% - 98px);
    padding-left: 10%;
    font-size: 14px;
  }

  .history-item-first::before {
    left: -21%;
    width: 21%;
  }

  .history-item__package {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    top: 0;
    right: 5%;
    bottom: 0;
    width: 28.2%;
    margin: auto;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .history-item--modan {
    height: 367px;
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--modan .history-item__package {
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--saltmentai {
    height: 280px;
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--saltmentai dt {
    margin-top: 15%;
  }

  .history-item--bigdaze {
    height: 346px;
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--bigdaze .history-item__package {
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--ippei2024 {
    height: 327px;
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--ippei2024 .history-item__package {
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--fukkoku2025 {
    height: 250px;
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--fukkoku2025 .history-item__package {
    padding-top: 68px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--ippei2025 {
    height: 250px;
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .history-item--ippei2025 .history-item__package {
    padding-top: 45px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  /* 2026 袋めん登場 */
  /* align-items は base の center を維持（padding-top 指定なし） */
  /* TODO: 実画像確認後に height を微調整 */
  .history-item--fukuromen2026 {
    min-height: 270px;
  }

  .history-item--fukuromen2026 .history-item__package {
    max-width: 210px;
  }

  .history-item--gr .history-item__package {
    width: 29.395%;
  }

  .history-item__ye {
    font-size: 23px;
    letter-spacing: .02em;
  }

  .history-item__rd {
    font-size: 23px;
    letter-spacing: .02em;
  }

  .history-item__wh {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: .12em;
    -webkit-font-feature-settings: "palt";
    font-feature-settings: "palt";
  }

  .history-item__bk {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: .12em;
    -webkit-font-feature-settings: "palt";
    font-feature-settings: "palt";
  }

  .history-message {
    max-width: 592px;
    margin-top: 90px;
  }
}

@media screen and (max-width: 599px) {
  .page-bg {
    background-image: url("../img/history/bg_package_smp.png");
    background-size: contain;
  }

  .history {
    padding-top: 70px;
    padding-bottom: 80px;
    background-image: url("../img/history/bg_star_smp.png"), url("../img/history/bg_package_smp.png");
    background-repeat: repeat-y, no-repeat;
    background-position: center top -.2%, left bottom -.6%;
    background-size: contain;
  }

  .history__content {
    border-left: 5px solid #f00;
  }

  .history-years {
    margin-left: 24px;
    padding-top: 55px;
    padding-bottom: 20px;
  }

  .history-years-first {
    width: 260px;
    margin-left: 24px;
    padding-top: 50px;
    padding-bottom: 20px;
  }

  .history-years__number {
    width: 114px;
    background-color: rgba(0, 0, 0, .2);
  }

  .history-years-text {
    margin-top: 10px;
    text-shadow: 0px 0px 18px rgba(0, 0, 0, .95), 0px 0px 18px rgba(0, 0, 0, .95), 0px 0px 18px rgba(0, 0, 0, .95), 0px 0px 18px rgba(0, 0, 0, .95);
    font-size: 18.8px;
    letter-spacing: .09em;
  }

  .history-years--md {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .history-years--md .history-years-text {
    margin-top: 0;
    padding-left: 10px;
    font-size: 23.29px;
  }

  .history-item {
    margin-top: 20px;
    margin-left: 24px;
    padding: 20px 20px 30px;
  }

  .history-item::before {
    left: -25px;
    width: 25px;
  }

  .history-item--border {
    margin-top: 0;
  }

  .history-item--border::after {
    right: 0;
    left: 0;
    width: calc(100% - 40px);
    margin: auto;
  }

  .history-item dt {
    width: 56px;
  }

  .history-item dd {
    margin-top: 15px;
  }

  .history-item-first {
    margin-left: 24px;
    padding: 20px;
  }

  .history-item-first dt {
    width: 56px;
  }

  .history-item-first dd {
    width: calc(100% - 76px);
    padding-left: 20px;
    font-size: 12px;
  }

  .history-item-first::before {
    left: -25px;
    width: 25px;
  }

  .history-item__package {
    width: 74.38%;
    margin-top: 16px;
    margin-right: auto;
    margin-left: auto;
  }

  .history-item--gr .history-item__package {
    width: 75.697%;
  }

  .history-item__ye {
    font-size: 14px;
  }

  .history-item__rd {
    font-size: 14px;
  }

  .history-item__wh {
    margin-top: 5px;
    font-size: 12px;
  }

  .history-item__bk {
    margin-top: 5px;
    font-size: 12px;
  }

  .history-message {
    max-width: 298px;
    margin-top: 80px;
  }
}

@media screen and (min-width: 600px) and (max-width: 1025px) {
  .history-item {
    min-height: 230px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .history-item__package {
    right: 5%;
    width: 25%;
  }

  .history-item--modan {
    min-height: 280px;
    height: auto;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .history-item--modan .history-item__package {
    padding-top: 25px;
  }

  .history-item--saltmentai dt {
    margin-top: 20%;
  }

  .history-item--saltmentai dd {
    margin-top: 6%;
  }

  .history-item--bigdaze {
    min-height: 280px;
    height: auto;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .history-item--bigdaze .history-item__package {
    padding-top: 25px;
  }

  .history-item--ippei2024 {
    min-height: 280px;
    height: auto;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .history-item--ippei2024 .history-item__package {
    padding-top: 25px;
  }

  .history-item--fukkoku2025 {
    min-height: 230px;
    height: auto;
    padding-top: 25px;
    padding-bottom: 25px;
    align-items: center;
  }

  .history-item--ippei2025 {
    height: auto;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .history-item--ippei2025 .history-item__package {
    padding-top: 25px;
  }

  .history-item__ye {
    font-size: 18px;
  }

  .history-item__rd {
    font-size: 18px;
  }

  .history-item__wh {
    font-size: 13px;
  }

  .history-item__bk {
    font-size: 13px;
  }
}