@charset "utf-8";

/** ***************************************************************************
 * 共用
 * ************************************************************************* */

body {
  min-width: unset;
  overflow-x: hidden;
}

div.body {
  width: 100%;
}

/** ***************************************************************************
 * ビジュアル
 * ************************************************************************* */

#visual-history {
  min-height: calc(100dvh - 60px);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media screen and (min-width:737px) {

  #visual-history {
    min-height: 100dvh;
  }

}

/**
 * 内容
 */

#visual-history div.content {
  padding: max(5.43vw, 40px) max(2.71vw, 20px);
}

@media screen and (min-width:737px) {

  #visual-history div.content {
    padding: max(3.75vw, 60px);
  }

}

/* タイトル */

#visual-history div.content .title {
  margin-bottom: 0.625em;
  line-height: 1.2;
  font-size: 2em;
  font-weight: 300;
  text-align: center;
}

@media screen and (min-width:737px) {

  #visual-history div.content .title {
    font-size: 3.571em;
  }

}

/* テキスト */

#visual-history div.content div.text {
  line-height: 1.4;
  font-weight: 400;
  text-align: center;
}

@media screen and (min-width:737px) {

  #visual-history div.content div.text {
    font-size: 1.429em;
  }

}

/** ***************************************************************************
 * ページナビ
 * ************************************************************************* */

#pagenav {
  padding: 5px 0;
  color: #412c17;
  font-size: 0.875em;
  border-bottom: 1px solid #d1c6b8;
  background-color: #fff;
  position: sticky;
  z-index: 2;
  top: 0;
}

#pagenav div.body {
  padding-left: 10px;
  padding-right: 10px;
}

#pagenav ul.list {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pagenav ul.list li {
  margin: 0 0.75em;
  text-align: center;
}

#pagenav ul.list a {
  padding: 0.5em;
  color: #b0aba7;
  text-decoration: none;
  display: block;
}

#pagenav ul.list li.current a {
  padding-left: 1.375em;
  color: #412c17;
  background: url("../../_images/_common/icon-listmark-1.png") left center / 1.125em 1em no-repeat;
}

@media screen and (min-width:737px) {

  #pagenav {
    padding: 30px 0;
    font-size: unset;
  }

  #pagenav div.body {
    padding-left: 20px;
    padding-right: 20px;
  }

  #pagenav ul.list li {
    margin: 0 2em;
  }

  #pagenav ul.list a {
    padding: 0.5em 1em;
  }

}

/** ***************************************************************************
 * メイン
 * ************************************************************************* */

#main {
  padding-top: 30px;
  padding-bottom: 60px;
  color: #412c17;
}

#main div.body {
  width: auto;
  max-width: 1480px;
}

@media screen and (min-width:737px) {

  #main {
    padding-top: 70px;
    padding-bottom: 120px;
  }

}

/** ***************************************************************************
 * 紹介文
 * ************************************************************************* */

#lead {
  margin-bottom: 40px;
  line-height: 2;
}

@media screen and (min-width:737px) {

  #lead {
    margin-bottom: 80px;
    text-align: center;
  }

}

/**
 * キャッチコピー
 */

#lead .catchcopy {
  margin-bottom: 1em;
  line-height: 1.5;
  font-size: 1.5em;
}

@media screen and (min-width:737px) {

  #lead .catchcopy {
    font-size: 2em;
  }

}

/** ***************************************************************************
 * ヒストリー共用
 * ************************************************************************* */

#history .history-contents {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  z-index: 0;
}

#history .history-contents {
  margin-top: 60px !important;
}

@media screen and (min-width:737px) {
  
  #history .history-contents {
    max-width: 1440px;
    margin-top: unset !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  #history div.frame {
    height: calc(100vh - 96px);
    padding: clamp(30px, 5vh, 50px) 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: sticky;
    top: 96px;
  }

}

/** ---------------------------------------------------------------------------
 * 内容
 */

#history .history-contents div.history {
  display: contents;
}

@media screen and (min-width:737px) {

  #history .history-contents div.history {
    width: 46%;
    display: block;
  }

  #history .history-contents:nth-of-type(even) div.history {
    margin-left: auto;
  }

}

/**
 * タイトル
 */

#history .history-contents .history-title {
  margin-bottom: 1.5em;
  line-height: 1.5;
  font-size: 1.286em;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  order: 1;
}

#history .history-contents .history-title::before {
  content: '';
  width: 0.875em;
  height: 0.75em;
  margin-top: 0.5em;
  margin-right: 0.5em;
  background: url("../../_images/_common/icon-listmark-1.png") 0 0 / 100% 100% no-repeat;
}

@media screen and (min-width:737px) {

  #history .history-contents .history-title {
    margin-bottom: 2em;
    font-size: 1.57em;
    order: unset;
  }

}

/**
 * コンテンツ
 */

#history .history-contents div.contents {
  order: 3;
}

#history .history-contents div.article {
  overflow: hidden;
}

#history .history-contents div.article ~ div.article {
  margin-top: -1px;
}

@media screen and (min-width:737px) {

  #history .history-contents div.contents {
    padding-right: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    order: unset;
  }

}

/**
 * 内容
 */

#history .history-contents div.article div.content {
  transition:
    max-height 1.0s ease 0.0s,
    padding 1.0s ease 0.0s,
    visibility 1.0s ease 0.0s,
    opacity 1.0s ease 0.0s;
  max-height: 0;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}

#history .history-contents div.article.active div.content {
  transition:
    max-height 1.4s ease-in-out 0.0s,
    padding 1.0s ease-in-out 0.0s,
    visibility 1.0s ease-in-out 0.0s,
    opacity 1.0s ease-in-out 0.0s;
  max-height: 300vh;
  padding: 2em 0;
  visibility: visible;
  opacity: 1;
}

/* タイトル */

#history .history-contents div.article .title {
  padding-top: 1.25em;
  padding-bottom: 1.25em;
  cursor: pointer;
  font-weight: 700;
  border-top: 1px solid #d1c6b8;
  border-bottom: 1px solid #d1c6b8;
}

/* 画像 */

#history .history-contents div.article div.image {
  margin-bottom: 0.6em;
  padding-bottom: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#history .history-contents div.article div.image + * {
  margin-top: 0;
}

@media screen and (min-width:737px) {

  #history .history-contents div.article div.image {
    display: none;
  }

}

/** ---------------------------------------------------------------------------
 * 画像
 */

#history .history-contents div.visual {
  display: none;
}

@media screen and (min-width:737px) {

  #history .history-contents div.visual {
    width: 46%;
    height: 100%;
    overflow: hidden;
    display: block;
    position: relative;
  }

  #history .history-contents:nth-of-type(even) div.visual {
    order: -1;
  }

  #history .history-contents div.visual div.item {
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    transition:
      transform 0.8s ease-in-out 0.0s,
      visibility 0.8s ease-in-out 0.0s,
      opacity 0.8s ease-in-out 0.0s;
    transform: scale(1.2);
    visibility: hidden;
    opacity: 0;
  }

  #history .history-contents div.visual div.item.active {
    position: static;
    transform: scale(1);
    visibility: visible;
    opacity: 1;
  }

}

/** ---------------------------------------------------------------------------
 * 進捗アイコン
 */

#history .history-contents div.progress {
  display: none;
}

@media screen and (min-width:737px) {

  #history .history-contents div.progress {
    width: 5%;
    display: block;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
  }

  #history .history-contents div.progress clipPath {
    transform-origin: center center;
    transform: translate(0%, -18%);
  }

  #history .history-contents div.progress circle {
    transform-origin: center center;
    transform: translateY(18%) rotate(-120deg);
  }

}

/** ---------------------------------------------------------------------------
 * Continued
 */

#continued {
  font-size: 1.25em;
  text-align: center;
}

@media screen and (min-width:737px) {

  #continued {
    font-size: 1.375em;
  }

}
