*{
  font-family: "Noto Sans JP", sans-serif;
  padding:0;
  margin:0;
  color:#333;
  font-weight: 400;
}
img{
  display: block;
}
.pinkbold,strong{
  font-weight: 800;
  font-size: 1.2rem;
  color: #ff5087;
}
.pink{
  color: #ff5087;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}
#wrapper{
  position: relative;
  overflow: hidden;
}
.serif{
  font-family: "Noto Serif JP", serif;
}
#fixed_bg{
  position:fixed;
  left:0;
  top:0;
  width: 100%;
  height: 100%;
  background: url('../img/herobg2.webp') repeat center top;
  background-size: cover;

}
#bokeh-canvas{
  position:fixed;
  left:0;
  top:0;
  width: 100%;
  height: 100%;
}

#fixed_bg:after{
  content:"";
  position: absolute;
  left: 0;
  top: 0;
  background: url(../img/blogo.webp) no-repeat center top;
  background-size: auto 100%;
  width: 100%;
  height: 100%;
}
/*
#fit_cn:after{
  content:"";
  position: fixed;
  background: url(../img/hero_visual.webp) no-repeat center bottom;
  background-size:auto 100%;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 81%;
  transition:0.5s ease;
  transform-origin:center bottom;
}
*/
#main_visual{
  content:"";
  position: fixed;
  background: url(../img/hero_visual.webp) no-repeat center bottom;
  background-size:auto 100%;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 81vh;
  height: 81dvh;
  transition:0.5s ease;
  transform-origin:center bottom;
  z-index: 1;
}
.fit_active #fit_cn:after,
.fit_active #main_visual{
  transform: scale(0.6);
  bottom:0;
}
.fit_active_stop #fit_cn:after,
.fit_active_stop #main_visual{
  position: absolute;
  transform: scale(0.6);
}

.fit_active .scfade{
  opacity: 0;
  transition:0.3s;
}
#message:after{
  content:"";
  position:fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding-top: 20%;
  background: linear-gradient(to bottom,  rgba(240,230,218,0) 0%,rgba(240,230,218,1) 100%);
  opacity: 0;
  transition:0.3s
}
.fit_active #message:after{
  opacity: 1;
}
.fit_active_stop #message:after{
  opacity: 0;
}



/* 親要素：はみ出しを隠す */
header {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  align-items: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}
/* 
  スケーリング対象：
  ここを基準サイズ(例: 1185x900)で固定し、JSでscaleをかけます 
*/
#fit_cn {
  position: relative; /* absoluteから変更 */
  width: 100%;      /* デザインの基準幅 */
  height: 100vh;     /* デザインの基準高さ */
  height: 100dvh;     /* デザインの基準高さ */
  z-index: 10;
  left:0;
  top: 0;
}

#fit_cn > * {
  pointer-events: auto; /* 子要素のクリックは有効にする */
}
.scale_size,.scale_size2{
  transform-origin: left top;
}

/* 個別要素：vhではなく基準サイズ内でのpx指定にする */
h1 {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1185px; /* 元のサイズ */
  height: auto;
}

header h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  font-size: 46px;
  line-height: 1.5;
  text-align: center;
  font-weight: 900;
  color:#2b3e47;
  text-shadow: 0 0 6px #f5f1ea, 0 0 6px #f5f1ea,0 0 6px #f5f1ea, 0 0 6px #f5f1ea, 0 0 6px #f5f1ea,
   0 0 6px #f5f1ea,0 0 6px #f5f1ea, 0 0 6px #f5f1ea,0 0 6px #f5f1ea, 0 0 6px #f5f1ea, 0 0 6px #f5f1ea;
  z-index: 1;
  margin-top: 15vh;
  margin-top: 15dvh;
}

#fair_bnr {
  position: absolute;
  width: 250px;
  left: 50%;
  top: 50%;
  margin-left: -400px;
  z-index: 2;
  transform-origin: left top;
}
#fair_bnr img{
  transition: 0.3s ease;
}
#fair_bnr:hover img{
  opacity: 0.9;
}
/*-------------
scroll
--------------*/
.scroll_view{
    position: fixed;
    right:50px;
    bottom:0;
    transition:0.3s;
    z-index: 2;
}
.scroll_text {
  position: absolute;
  right: -24px;
  top: 9px;
  font-weight: 600;
  writing-mode: vertical-rl;
  width: 10px;
  font-size: 14px;
  color: #ff5087;
  margin-bottom: 10px;
  margin-left: 6px;
}
.scroll_line{
  position: relative;
  width:2px;
  height: 120px;
  margin-top:10px;
  margin-left:5px;
  overflow: hidden;
}
.scroll_line:before{
  content:"";
  position: absolute;
  width: 2px;
  height: 100%;
  left: 0;
  top: 0;
  background: #e6d8c6;
}
.line_anim{
  position: absolute;
  left:0;
  top:-100px;
  width:100%;
  height: 100%;
  background: #ff5087;    
  animation: roopanim 3s cubic-bezier(.43,.2,.02,1) 1s infinite;
}
@keyframes roopanim {
  0% {
    top:-120px;
  }
  100% {
      top:120px;
  }
}
.section_padding{
  position: relative;
  width: 100%;
  padding: 200px 0;
}
.section_padding h2{
  position: relative;
  font-size:60px;
  line-height: 75px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 60px;
  color: #2b3e47;
}

.message_list {
  position: relative;
  column-count: 2;
  column-gap: 40px;
  width: calc(100% - 80px);
  margin: 30px auto 15px;
  padding-bottom: 170px;
  transform: translateX(-10px);
}

.message_list p {
  /* 列内でバラバラにならない設定 */
  display: block; 
  width: calc(100% - 20px); 
  break-inside: avoid;
  background: rgba(255,255,255,0.5);
  padding: 20px;
  
  /* 装飾・フォント */
  text-align: justify;
  word-break: break-all;
  font-size: 16px;
  line-height: 32px;
  
  /* メッセージごとの下の余白 */
  margin-bottom: 20px; 
}
#result{
  position: relative;

  min-height: 900px;
  z-index: 10;
}
.result_num_info{
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}
.result_data:nth-child(odd){
  padding: 30px;
  width: calc(50% - 60px);
  text-align: center;
  border-top:solid 1px #ff5087;
}
.result_data:nth-child(even){
  padding: 30px;
  width: calc(50% - 61px);
  text-align: center;
  border-top:solid 1px #ff5087;
  border-left:solid 1px #ff5087;
}
.result_data:last-child,
.result_data:nth-last-child(2){
  border-bottom:solid 1px #ff5087;
}
.small{
  font-size: 14px;
  color:inherit;
  font-weight: 600;
}



.result_data h3{
  font-size: 36px;
  line-height: 36px;
  font-weight: 900;
  margin-bottom: 10px;
  color:#2b3e47;
}
.result_data .numdata{
  font-weight: 900;
  color:#ff5087;
  font-size: 50px;
  line-height: 100px;
}
.big_font{
  font-size: 100px;
  font-weight: inherit;
  color: inherit;
}



#fair{
  z-index: 1;
  padding-top: 100vh;
  padding-top: 100dvh;
  padding-bottom: 0 !important;
}
#fair_wrap{
  position: relative;
  max-width: calc(1200px - 160px);
  /*
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  */
  margin: 0 auto;
  padding: 80px 80px 0;
}
#fair_wrap iframe{
  background: #FFF;
  margin-top: 60px;
}
#fair_p{
  font-weight: 600;
  font-size: 28px;
  color:#2b3e47;
  text-align: center;
  text-shadow: 0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF;
}
#fair_wrap h2{
  text-shadow: 0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF;
}
#fair_p .pink{
  font-weight: 900;
  font-size: 32px;
}
#fair_links{
  display: flex;
  justify-content: space-between;
  background: #FFF;
  padding: 5px 40px 40px;
  margin-top: -10px;
}
.fair_btns{
  width: calc(50% - 10px);
  padding:20px 0;
  font-size: 18px;
  line-height: 18px;
  font-weight: 600;
  color:#FFF;
  background: #ff5087;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: 0.3s;
  border: solid 1px #FFF;
}
.fair_btns:last-child{
  color:#ff5087;
  background: #fff;
  border: solid 1px #ff5087;
}
.fair_btns:hover{
  opacity: 0.9;
}

#video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 背面に配置 */
  overflow: hidden;
  pointer-events: none; /* 動画へのクリックを無効化 */
  z-index: 0;
}






#video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
#video-background #player{
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
.player_fit #video-background{
  position: fixed;
}
#video-background:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: url(../img/dotted.png) repeat left top rgba(0, 0, 0, 0.2);
  background-size: 3px auto;
  transition: 1s;
  opacity: 0.8;
}
#player video{
  width: 100%; position:absolute;left:0;top:0;height:100%;object-fit:cover;object-position: center bottom;
}
/* 16:9の比率を維持して全画面を覆う（画面比率に合わせて調整） */
@media (min-aspect-ratio: 16/9) {
  #player { height: 56.25vw; }
}
@media (max-aspect-ratio: 16/9) {
  #player { width: 177.78vh; }
}

.content-overlay {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding-top: 20vh;
  padding-top: 20dvh;
}

#access_wrap{
  position: relative;
  z-index: 1;
  max-width: calc(1200px - 160px);
  margin: 0 auto;
}
#access_wrap h2{
  text-shadow: 0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF,0 0 2px #FFF, 0 0 2px #FFF;
}


#access_txt{
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 15px;
  background: #FFF;
}
#access_txt .brown{
  color: #333;
  font-size:  16px;
  line-height:  32px;
  padding:5px 30px;
  background-color: #FFF
}
#access_txt .brown:last-child{
  border-bottom: none;
}
#map{
  position: relative;
  width: 100%;
  padding-top: 45%;
  height: 0;
  background: #FFF;
}
#map iframe{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-top: solid 40px #FFF !important;
  border-left: solid 40px #FFF !important;
  border-right: solid 40px #FFF !important;
}
footer{
  position: relative;
  padding: 40px 0 30px;
  background: #FFF;
  text-align: center;
  z-index: 1;
}
footer p:nth-child(1){
  width:100px; 
  margin: 0 auto;
}
footer p:nth-child(2){
  font-size: 20px;
  margin-top: 15px;
}
footer p:nth-child(3){
  font-size: 16px;
  line-height: 28px;
}
footer a{
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  color: inherit;
}
address{
  margin-top: 20px;
  font-style: normal;
  font-size: 12px;  
}
.sp_br{
  display: none;
}
#access_wrap{
  padding: 0 80px;
}
.pagination{
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 0;
  z-index: 9;
  align-items: center;
  margin-top: 40px;
}
.acpage #message{
  margin-bottom: 80px;
}

.pagination a{
  display: block;
  text-decoration: none;
  padding:5px 12px;
  margin: 6px;
  background: #2b3e47;
  color:#FFF;
  border: solid 1px #999;
}
.pagination .current{
  padding:5px 12px;
  margin: 6px;
  color: #2b3e47;
  border: solid 1px #2b3e47;
  background: #FFF;
}
.message_list_inpage{
  padding-bottom: 0;
}
#message2{
  position: relative;
  padding-bottom: 300px;
  margin-top: -160px;
}
#message2 h3{
  font-weight: 900;
  text-align: center;
  font-size: 40px;
  color: #2b3e47;
}
#comment_list{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 40px auto 0;
  padding: 0 60px;
  max-width: 1200px;
}
#comment_list a{
  display: block;
  position: relative;
  list-style: none;
  width:calc(calc(100% / 3) - 75px);
  padding: 30px;
  border-radius: 5px;
  background: #FFF;
  margin-bottom: 20px;
  box-shadow: 0 0 1px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 20px;
  line-height: 20px;
  color: #ff5087;
  border: solid 1px #ff5087;
  cursor: pointer;
  text-decoration: none;
}
#comment_list li{
  position: relative;
  color: #ff5087;
  font-weight: 600;
}
#comment_list a:before{
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  content:"";
  width: 60px;
  height: 60px;
}
#comment_list a:nth-child(1):before{
  background: url(../img/icon1.jpg) no-repeat center center;
  background-size: 100% auto;
}
#comment_list a:nth-child(2):before{
  background: url(../img/icon2.jpg) no-repeat center center;
  background-size: 100% auto;
}
#comment_list a:nth-child(3):before{
  background: url(../img/icon3.jpg) no-repeat center center;
  background-size: 100% auto;
}
#comment_list a:nth-child(4):before{
  background: url(../img/icon4.jpg) no-repeat center center;
  background-size: 100% auto;
}
#comment_list a:nth-child(5):before{
  background: url(../img/icon5.jpg) no-repeat center center;
  background-size: 100% auto;
}
#comment_list a:nth-child(6):before{
  background: url(../img/icon6.jpg) no-repeat center center;
  background-size: 100% auto;
}



#comment_list a:after{
  position: absolute;
  right: 20px;
  top: 50%;
  content:"";
  width: 8px;
  height: 8px;
  border-top: solid 2px #ff5087;
  border-right: solid 2px #ff5087;
  transform: rotate(45deg) translateY(-50%);
}
#comment_list a:hover{
  opacity: 0.95;
}
@media screen and (max-width: 1100px){
  #comment_list a {
    width: calc(calc(100% / 2) - 75px);
  }
}



@media screen and (max-width: 768px){
  .pagination{
    margin-top: -44px;
  }
  .message_list p {
    width: calc(100% - 10px);
  }
  #comment_list {
    padding: 0 20px;
    margin-top: 20px;
  }
  #comment_list a {
    width: 100%;
    margin-bottom: 10px;
  }
  #message2 {
    padding-bottom: 120px;
    margin-top: -60px;
  }
  #message2 h3 {
    font-size: 32px;
  }
  .message_list {
    transform: translateX(-5px);
  }

  .sp_br{
    display: block;
  }
  #wrapper{
    position: relative;
    overflow: hidden;
  }
  .scroll_view {
    right: 30px;
  }
  h1 {
    left: 1%;
    top: 1%;
    transform: none;
    width: 98%;
    height: auto;
    margin-top: 0;
  }
  #main_visual {
    width: 200%;
    height: 84vh;
    height: 84dvh;
    margin-left: -50%;
    margin-bottom: 2.5vh;
    margin-bottom: 2.5dvh;
  }
  header h2 {
    font-size: 7vw;
    line-height: 9.5vw;
    margin-top: 14.5vh;
    margin-top: 14.5dvh;
    left: 50%;
    transform:translateX(-50%);
  }
  #fair_bnr {
    position: absolute;
    width: 35%;
    left: 0;
    bottom: 0;
    margin-left: 2%;
    z-index: 2;
    transform-origin: left top;
    top: auto;
    margin-bottom: 38vh;
    margin-bottom: 38dvh;
  }
  .fit_active #fit_cn:after, .fit_active #main_visual {
    transform:scale(0.58) translateY(10%);
    bottom: 0;
  }
  .section_padding {
    padding: 120px 0;
  }
  #message{
    padding-bottom:42vh;
  }
  .section_padding h2 {
    font-size: 7vw;
    line-height: 10vw;
    margin-bottom: 40px;
  }
  .message_list {
    column-count: 2;
    column-gap: 20px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding-bottom: 80px;
  }
  .message_list p{
    font-size: 14px;
    line-height: 28px;
    padding: 10px;
  }
  #message:after {
    padding-top: 50%;
  }
  .fit_active #fit_cn:after, .fit_active #main_visual {
      bottom: 0;
  }
  .result_num_info .result_data{
    width:100%;
    border-left:none;
    border-right:none;
    padding: 20px;
  }
  .big_font {
    font-size: 60px;
  }
  .result_data .numdata {
    font-size: 30px;
    line-height: 60px;
  }
  .result_data h3 {
    font-size: 24px;
    line-height: 24px;
  }
  #fair_wrap {
    padding: 0 20px;
  }
  #fair_p {
    font-size: 20px;
  }
  #fair_p .pink {
    font-size: 30px;
  }
  #fair_wrap iframe {
    margin-top: 20px;
  }
  #fair_links{
    display: block;
  }
  .fair_btns{
    width: 100%;
  }
  .fair_btns:first-child{
    margin-bottom: 20px;
  }
  #fair_links {
    padding: 5px 20px 40px;
  }
  /*
  #map_wrap{
    margin: 0 20px;
  }
  */
  #access_wrap{
    padding: 0 20px;
  }

  #access_txt .brown {
    line-height: 32px;
    padding: 0 20px;
  }
  #map {
    position: relative;
    width: 100%;
    padding-top: 80%;
  }
  #fixed_bg:after{
    top: 10%;
    height: 80%;
  }
  .small{
    display: block;
    line-height: 14px;
  }
  #fair_wrap h2,  #access h2{
    font-size: 9vw;
    line-height: 12vw;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-bottom: 30px;
  }
  #map iframe{
    border-top: solid 20px #FFF !important;
    border-left: solid 20px #FFF !important;
    border-right: solid 20px #FFF !important;
  }
  .acpage #message{
    padding-bottom: 80px;
  }

}