@charset "utf-8";
@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

body {
  font-family: Arial, Helvetica, 'Noto Sans JP';
  font-size: 16px;
  font-weight: 400;
}

/*まずはお決まりのボックスサイズ算出をborer-boxに */
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;/*rem算出をしやすくするために*/
}

.btn,
a.btn,
button.btn {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}


/*ボタン*/

a.btn-flat {
  overflow: hidden;
  padding: 1.5rem 6rem;
  color: #fff;
  border-radius: 0;
  background: #000;
}

a.btn-flat span {
  position: relative;
}

a.btn-flat:before {
  position: absolute;
  top: 0;
  left: 30px;
  width: 150%;
  height: 500%;
  content: '';
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  -webkit-transform: translateX(-98%) translateY(-70%) rotate(135deg);
  transform: translateX(-98%) translateY(-70%) rotate(135deg);
  background: #63327B;
}

a.btn-flat:hover:before {
  -webkit-transform: translateX(-9%) translateY(-25%) rotate(135deg);
  transform: translateX(-9%) translateY(-25%) rotate(135deg);
}

.wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
}

/* ヘッダー */

.header {
  margin: 0 auto 140px;
  position: relative;
}

.header img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: 20;
}

/* mvslider */
.slider {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	position: relative;
	max-width: 100%;
}

.slider div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	z-index: 0;
	opacity: 0;
	animation-name: slide-fade;
	animation-duration: 15s;
	animation-iteration-count: infinite;
}

.slider div span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 30% auto;
  text-align: center;
  line-height: 1.5;
}

@keyframes slide-fade {
	0%{
		opacity: 0;
	}
	20%{
		opacity: 1;
	}
	80%{
		opacity: 0;
	}
	100%{
		opacity: 0;
		z-index: 0;
	}
}
.slider div:first-of-type{
	background-image: url("../img/01.jpg");
}
.slider div:nth-of-type(2){
	background-image: url("../img/02.jpg");
	animation-delay: 5s;
}
.slider div:last-of-type{
	background-image: url("../img/03.jpg");
	animation-delay: 10s;
}

.vertical-text {
  writing-mode: vertical-rl;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    line-height: 2.5;
    letter-spacing: 0.2em;
}

.headline {
  margin: 0px auto 140px;
}

.headline_text {
  width: 100%;
  max-width: 1120px;
  text-align: center;
  margin: 0 auto;
}

.headline_text img {
 width: 740px;
}


.contents {
  margin: 0 auto 80px;
}
.contents_headline {
  margin: 0px auto;
  width: 100%;
  height: 550px;
  background-image: url('../img/contents_bg.png');
  background-size: cover;
}

.contents_headline {
  margin: 0 auto;
  color: #fff;
}




.flex_col3 {
  display: flex;
  justify-content: space-between;
}

.col3 {
  width: calc(100% / 3);
  background-color: #dadada;
}

.col3 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.col3_head_text {
  font-size: 18px;
  font-weight: 600;
  padding: 20px 20px 10px;

}

.col3_text {
  font-size: 14px;
  padding: 10px 20px 20px;
  line-height: 1.5;
  letter-spacing: 0.08rem;
}

.col3 a:hover {
  opacity: 0.7;
}

.concept_btn {
  text-align: center;
  margin-bottom: 40px;
}

.top_menu {
  margin: 80px auto;

}

.top_menu_headline h2 {
  position: relative;
  text-align: center;
}

.top_menu_headline h2::after {
  position: absolute;
  content: "menu";
  display: block;
  text-align: center;
  font-size: 16px;
  top:0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 50px auto;
  letter-spacing: 0.5rem;
}



.top_menu_headline {
  text-align: center;
}


.menu_flex {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
}

.col2 {
  width: calc(100% / 2);
  padding: 20px;
}

.col2 img {
  width: 80%;
  object-fit: cover;
}

.col2 p {
  font-size: 14px;
  line-height: 1.5;
  padding-top: 10px;
}


/* トップページアバウト */
.top_about {
  margin: 80px auto 0px;
}

.top_about_contents {
  width: 100%;
  height: 550px;
  background-image: url('../img/top_about_bg.png');
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;

}

.top_about_contents h2 {
  text-align: center;
  margin: auto;
  position: relative;
}

.top_about_contents h2::before {
  content: url('../img/nigihaya_head_logo.png');
  display: block;
}

.top_about_contents h2::after {
  position: absolute;
  content: "about";
  display: block;
  text-align: center;
  font-size: 16px;
  top:0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 160px auto;
  letter-spacing: 0.5rem;
  color: #fff;
}

.about_btn {
  padding-bottom: 150px;
}

.map {
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
}


/* フッター */
footer {
  background-color: #000;
  padding-top: 80px;
  padding-bottom: 80px;
}

.footer_contents {
  color: #fff;
  margin: 0 auto;
}

.footer_logo {
text-align: center;
}

.footer_logo img {
  width: 15%;
}

.footer_text {
  text-align: center;
}

.footer_text p {
  margin: 20px;
}
.footer_menu {
  display: flex;
  justify-content: center;
}

.footer_menu li {
  margin: 20px;
}

/* コンセプトページ */
.concept_header {
  width: 100%;
}

.concept_img {
  height: 100px;
  margin-top: 100px;
  background-color: #63327B;
  position: relative;
}

.concept_img img {
  position: absolute;
  width: 100%;
  max-width: 800px;
  top: -150px;
  left: -50px;
  z-index: 20;
}

#history {
  margin: 0 auto;
  padding-bottom: 80px;
  background-image: url(../img/nasu.gif) ;
  animation: fadeIn linear both;
  animation-timeline: view();
  animation-range: entry 25% cover 50%;
}

.history_head {
  text-align: center;
 padding-top: 130px;
  margin-bottom: 80px;
  font-size: 40px;
}

.history_flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  margin: 0 auto;
}

.history_card {
  width: 48%;
}

.history_outline {
  text-align: center;
  margin-bottom: 40px;
}

.history_outline p {
  line-height: 1.8;
  letter-spacing: 0.2rem;
  margin-top: 30px;
}

.history_card p {
  line-height: 1.8;
  letter-spacing: 0.2rem;
  margin-top: 30px;
}

.fukidashi-01-10 {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border: 2px solid #63327B;
  border-radius: 50%;
  animation: poyopoyo 2s ease-out infinite;
  opacity: 1;
  margin-bottom: 20px;
  color: #63327B;
}

@keyframes poyopoyo {
  0%, 40%, 60%, 80% {
    transform: scale(1.0);
  }
  50%, 70% {
    transform: scale(0.8);
  }
}


.fukidashi-01-10::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 58%;
  width: 15px;
  height: 15px;
  transform: rotate(135deg);
  box-sizing: border-box;
  background-color: #ffffff; /* 背景色と同じ色を指定 */
}
.fukidashi-01-10::after {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  left: 54%;
  width: 20px;
  height: 2px;
  transform: rotate(50deg);
  box-sizing: border-box;
  background-color: #333333;
  box-shadow: 0 2px 0 #ffffff, 0 -2px 0 #ffffff; /* 背景色と同じ色を指定 */
}


#concept {
  margin: 0 auto;
  background-color: #ebe8c1;
  padding-bottom: 80px;
  background-image: url(../img/concept_back.gif) ;
  animation: fadeIn linear both;
  animation-timeline: view();
  animation-range: entry 25% cover 50%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    clip-path: inset(45% 20% 45% 20%);
  }

  to {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
  }
}

.concept_flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  margin: 0 auto;
}

.concept_card {
  width: 48%;
}

.concept_card p {
  line-height: 1.8;
  letter-spacing: 0.2rem;
  margin-top: 30px;
}


#commitment {
  margin: 0 auto;
  padding-bottom: 80px;
  background-image: url(../img/asa.gif) ;
  animation: fadeIn linear both;
  animation-timeline: view();
  animation-range: entry 25% cover 50%;
}

.commitment_flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  margin: 0 auto;
}

.commitment_card {
  width: 48%;
}

.commitment_card p {
  line-height: 1.8;
  letter-spacing: 0.2rem;
  margin-top: 30px;
}

.concept_flex_img {
  width: 100%;
  height: auto;
}

/* アバウトページ */
.about_header {
  width: 100%;

}



/* 沿革 */

.development {
  margin: 0 auto;
}


.cp_block {
  margin: 3em auto;
}
.cp_timeline01 {
  position: relative;
  width: 100%;
  margin: 3em auto;
  padding: 1em 0;
  list-style-type: none;
}
.cp_timeline01:before {
  position: absolute;
  left: 50%;
  top: 0;
  content: '';
  display: block;
  width: 6px;
  height: 100%;
  margin-left: -3px;
  background: rgb(128, 95, 144);
  z-index: 5;
}
.cp_timeline01 li {
  padding: 1em 0;
}
.cp_timeline01 li:after {
  content: '';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.cp_timeline01 li:nth-child(odd) .timeline_item {
  position: relative;
  width: calc(50% - 29px);
  float: left;
  text-align: right;
}
.cp_timeline01 li:nth-child(even) .timeline_item {
  position: relative;
  width: calc(50% - 29px);
  float: right;
}
.cp_timeline01 li .timeline_item .flag_cont {
  position: relative;
  display: inline-block;
  text-align: center;
}
.cp_timeline01 li .timeline_item .flag {
  position: relative;
  display: inline;
  background: rgba(99,50,123 ,1);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: 500;
  text-align: left;
}
.cp_timeline01 li:nth-child(odd) .timeline_item .flag {
  box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}
.cp_timeline01 li:nth-child(even) .timeline_item .flag {
  box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}
.cp_timeline01 li:nth-child(odd) .timeline_item .flag_cont:before,
.cp_timeline01 li:nth-child(even) .timeline_item .flag_cont:before {
  position: absolute;
  top: 8px;
  right: -40px;
  content: ' ';
  display: block;
  width: 12px;
  height: 12px;
  margin-top: -10px;
  padding: 4px;
  background: rgba(181, 166, 188 ,1);
  border-radius: 50%;
  border: 6px solid rgba(99,50,123 ,1);
  z-index: 10;
}
.cp_timeline01 li:nth-child(even) .timeline_item .flag_cont:before {
  left: -40px;
}
.cp_timeline01 li:nth-child(odd) .timeline_item .flag_cont:after,
.cp_timeline01 li:nth-child(even) .timeline_item .flag_cont:after {
  position: absolute;
  top: 10px;
  right: -38px;
  content: ' ';
  display: block;
  width: 16px;
  height: 16px;
  margin-top: -10px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255 ,1);
  z-index: 10;
}
.cp_timeline01 li:nth-child(even) .timeline_item .flag_cont:after {
  left: -38px;
}
.cp_timeline01 li:nth-child(odd) .timeline_item .flag:after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -6px;
  border: solid transparent;
  border-left-color: rgba(99,50,123 ,1);
  border-width: 6px;
}
.cp_timeline01 li:nth-child(even) .timeline_item .flag:after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -6px;
  border: solid transparent;
  border-right-color: rgba(99,50,123 ,1);
  border-width: 6px;
}
.cp_timeline01 li .timeline_item .time {
  display: block;
  margin-top: 1em;
  padding: 4px 6px;
  font-size: 1.2em;
  line-height: 1em;
  color: rgba(255,87,34 ,1);
  text-align: right;
}
.cp_timeline01 li:nth-child(even) .timeline_item .time {
  text-align: left;
}
.cp_timeline01 li .timeline_item .desc {
  margin: 1em 0.75em 0 0;
  font-size: 0.7em;
  line-height: 1.5em;
  margin: 1em 1em 0 1em;
  padding: 1em;
  background: rgba(181, 166, 188 ,0.7);
  border-radius: 6px;
}
@media only screen and (max-width:768px) {
  .cp_timeline01 {
    width: 100%;
    padding: 4em 0 1em 0;
  }
  .cp_timeline01 li {
    padding: 2em 0;
  }
  .cp_timeline01 li:nth-child(odd) .timeline_item,
  .cp_timeline01 li:nth-child(even) .timeline_item {
    float: none;
    width: 100%;
    text-align: center;
  }

  
  .cp_timeline01 li .timeline_item .flag_cont {
    text-align: center;
  }
  .cp_timeline01 li .timeline_item .flag {
    z-index: 15;
  }
  .cp_timeline01 li:nth-child(odd) .timeline_item .flag_cont:before,
  .cp_timeline01 li:nth-child(even) .timeline_item .flag_cont:before {
    top: -30px;
    left: calc(50% - 12px);
  }
  .cp_timeline01 li:nth-child(odd) .timeline_item .flag_cont:after,
  .cp_timeline01 li:nth-child(even) .timeline_item .flag_cont:after {
    top: -28px;
    left: calc(50% - 10px);
  }
  .cp_timeline01 li:nth-child(odd) .timeline_item .flag:after,
  .cp_timeline01 li:nth-child(even) .timeline_item .flag:after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    height: 0;
    width: 0;
    margin-left: -6px;
    border: solid transparent;
    border-bottom-color: rgba(99,50,123 ,1);
    border-width: 6px;
    pointer-events: none;
  }
  .cp_timeline01 li .flag_cont {
    display: block;
    position: relative;
    margin: 4px 0 0 0;
    z-index: 14;
  }
  .cp_timeline01 li:nth-child(odd) .timeline_item .time,
  .cp_timeline01 li:nth-child(even) .timeline_item .time {
    float: none;
    text-align: center;
    background: #ffffff;
  }
  .cp_timeline01 li .timeline_item .desc {
    position: relative;
    z-index: 15;
  }
}

.access {
  margin: 80px auto;
}

.access_head {
  text-align: center;
  margin-bottom: 80px;
}



.nigi_access {
  text-align: center;
  line-height: 1.5;
  margin-top: 40px;
}