@charset "utf-8";

/*=====================
common
==================== */

html {
    font-size: 62.5%;
}

body {
    font-family:
    'Noto Sans JP', 
    Arial,
    sans-serif;
    font-style: normal;
    color: #434040;  
    background-color: #fff;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

.pcbr {
    display: none;
}

@media screen and (min-width:769px) {
.pcbr {
        display: block;
    }
}

/* .nav初期表示 */


  
  /* メニューが開いたとき */
  .nav.open {
    opacity: 1; /* 不透明にする */
    pointer-events: auto; /* クリック可能にする */
    display: block;
  }
  
  /* バツ印に変わるハンバーガーボタン */
  .nav_menu.active span:nth-child(2) {
    transform: rotate(45deg) translate(3px, 3px);
  }
  
  .nav_menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(1px, -1px);
  }
  
  

  .nav {
    background-color:#F5F5F0;
    background-image: url(../images/nav.png);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: 4% top;
    width: 100%;
    height: 100vh;
    position:fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 15px 70px;
    transition: 0.4s;
    opacity: 0;
    display: none;
}

.nav_menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav_menu.active .btn0{
    opacity: 0;
}
.nav_menu.active .btn3{
    opacity: 0;
}
.nav_menu span {
    width: 31px;
    height: 2px;
    display: block;
    border-radius: 100vmax;
    transition: .3s;
}

.btn0 {
    line-height: 0;
}

.btn1 {
    background-color: #B22222;
    
}

.btn2 {
    background-color: #542727;
}

.btn3 {
    background-color: #FFC582;
}



.nav_list {
    margin-top: 130px;
    display: inline-block;
}

.nav_item {
    color: #434040;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 23px;
    text-align: left;
}

.stop-scrol{
    overflow: hidden;
}


/*=====================
header
==================== */

.header {
    display: flex;
    justify-content: space-between;
    margin: 10px;
}


.header_topic {
    font-family: Futura;
    font-size: 2.4rem;
    font-weight: 500;
}


.header_wrap {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 101;
}

/*=====================
main
==================== */

.main_img img {
    width: 100%;
}

.section_topic {
    color: #542727;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1; 
    text-align: center;
    margin: 20px 0;
}

.section_subtopic {
    color: #B22222;
    font-size: 1.4rem;
    text-align: center;
}

.history_text {
    padding: 20px;
}

.history_text p {
    color: #434040;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2;
    text-align: left;
}

.history_wrap {
    margin-top: 48px;

}

.time_line {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 20px;
}

.time_line::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 2px;
    height: 0;
    background: #708A8C;
    transition: height 2s ease-out;
}

.time_line.active::before {
    height: 100%;
}

.history_item {
    position: relative;
    padding: 20px 20px 28px 54px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition-delay: calc(var(--item-index, 0) * 0.2s);
}

.history_item::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: #708A8C;
    border-radius: 50%;
    top: 30px;
    left: -14px;
}

.history_item::after {
    content: "";
    position: absolute;
    width: 27px;
    height: 4px;
    border-top: 4px dotted #708A8C;
    top: 35px;
    left: 12px;
}

.history_item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline_date {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 13px;
    color: #542727;
}

.timeline_text {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #434040;
}

.timeline_text span {
    font-weight: 700;
    position: relative;
    top: 36px;
    left: -8px;
}

.timeline_img {
    text-align: end;
}

.timeline_img img {
    width: 50%;
    max-width: 300px;
}

.footer {
    padding: 20px;
    margin-top: 100px;
}

.footer_name p {
    color: #434040;
    font-size: 1.6rem;
    text-align: center;
    border-bottom: solid 1px #4340408c;
    padding-bottom: 10px;

}

.pagetop_btn {
    width: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    text-align: right;
}

.pagetop_btn img {
    width: 15%;
}






.copy{
    color: #D9D9D9;
    font-size: 1.5rem;
    padding-top: 50px;
}




/* pc  769px */

@media screen and (min-width:769px) {

.nav {
        background-position: right;
    }
   

.section_topic {
    font-size: 2.4rem;
    margin: 50px 0;
}

.history_wrap {
    padding: 0 190px;
    padding-bottom: 63px;
    }


.history_text p {
    color: #434040;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2;
    padding: 70px 60px;
    text-align: center;
}

.timeline_img img {
    width: 40%;
}

.timeline_date {
    font-size: 2rem;
}

.timeline_text {
    font-size: 1.8rem;
}

.timeline_text span {
    font-size: 2.4rem;
    font-weight: 500;
    position: relative;
    top: 68px;
    left: -39px;
}

.pagetop_btn {
    width: 50%;
}

.copy {
    color: #D9D9D9;
    font-size: 1.6rem;
    padding-top: 108px;
}





}





/* 歴史ページのアニメーション */
.history-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.history-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* 歴史の年表のライン */
.time_line {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 20px;
}

/* メインビジュアルのフワッと出てくるアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2.5s ease-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* メインビジュアルのフワッとしたアニメーション */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 本文のフワッと出てくるアニメーション */
.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInText 2.5s ease-out forwards;
    animation-delay: 1s;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 年表の最後のテキストのアニメーション */
.timeline_text.fade-in-text {
    animation-delay: 3s;
}

/* スクロールアニメーション */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 2.5s ease-out;
}

.scroll-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* 年表の最後のテキストのアニメーション */
.timeline_text.scroll-fade {
    transition-delay: 0.5s;
}