body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.fade-in {
  opacity: 1; 
}

body.fade-out {
  opacity: 0;
}

html {
    scroll-behavior: smooth;
}

.main_bg {
  position: relative; /* 子要素の絶対配置の基準 */
  height: 850px;
  padding-top: 103px;
  background: #D1E0E3;
  background-size: cover;
  box-sizing: border-box;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes floatLeftRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(15px);
  }
}

.main_bg img.right-bottom {
  position: absolute;
  bottom: -150px;
  right: 0px;
  width: 550px;
  height: 570px;
  animation: floatUpDown 4s ease-in-out infinite;
}

.main_bg img.left-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 510px;
  animation: floatUpDown 4s ease-in-out infinite;
}




#header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1133px;
    height: 103px;
    z-index: 1000;
    background: url(../images/hedder_frame.png) no-repeat;
    background-size: contain;
    padding-left: 5px;
    margin-top: 30px;
}


#header ul {
  font-size: 25px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 800;
  display: flex;
  justify-content: space-between;  
  width: 100%;
  max-width: 900px; 
  margin: 0 auto;                 
  padding-top: 35px;
  list-style: none; 
}


#header ul li a {
  display: inline-block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

#header ul li a:active {
  transform: scale(1.2) rotate(10deg);
  transition: transform 0.2s ease;
}

.main{
    padding-top: 250px;
    padding-bottom: 300px;
    text-align: center;
}

.bg_about{
  display: flex;
  flex-direction: row; 
  justify-content: flex-start;
  align-items: flex-start; 
  background-color: #D0B9C7;
  gap: 40px;
}

.picture{
    position: relative;
    left: 150px;
    flex-shrink: 0; 
    padding-top: 100px;
    padding-left: 115px;
    z-index: 1;
}

.about{
    position: relative;
    right: 80px;
  background-color: #8788B4;
  width: 597px;
  height: 534px;
  margin-top: 150px;
  padding-left: 50px;
  margin-left: 180px;
  color: #fff;
  box-sizing: border-box;
}

.about h1 {
  font-size: 25px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 700;
  margin-top: 35px;
  margin-right: 380px;
  margin-bottom: 10px;
}

.about h2 {
  font-size: 20px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 500;
  display: inline-block;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 4px;
  margin-top: 40px;
  margin-bottom: 13px;
}

.profile p {
  margin-bottom: 10px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 400;
}

.history li {
  margin-bottom: 10px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 400;
}

.bg_design {
  padding-top: 100px;
  background-color: #D0B9C7;
  height: 1000px;
}

.flame_design{
  background: url(../images/frame.png) no-repeat;
  background-size: cover;
  height: 788px;
}

h3{
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 700;
  text-align: center;
  font-size: 25px;
  color: #fff;
  padding-top: 100px;
}

.picture_design{
  display: flex;
  justify-content: center;
  gap: 70px;
  margin-top: 87px;
}

.picture_design p {
  margin: 0;
}

.txt_design p {
  margin-top: 15px;
  text-align: center;
}

.txt_design p a {
  color: #fff;
  font-size: 20px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 500;
  border: 1px solid #fff;
  width: 177px;
  height: 32px;
  display: inline-block;
  line-height: 32px;  /* 縦中央揃え */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.txt_design p a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #000;
  cursor: pointer;
}



.txt_design{
  display: flex;
  text-align: center;
  justify-content: center;
  gap: 225px;
}

.btn_detail {
  margin-top: 50px;
  margin-left: 0; 
  text-align: center; 
  width: 100%; 
}

.btn_detail a {
  display: inline-block;
  width: 250px;
  height: 30px;
  line-height: 30px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 20px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0;
  /* ここは変更なし */
}

.btn_detail a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #000;
  cursor: pointer;
}



.bg_contact{
  position: relative;
  top: -50px;
  background-color: #A9C0D9;
  background-size: cover;
  height: 400px;
  z-index: -1;
}

.frame_contact{ 
  position: relative;
  top: -15px;
  z-index: 5;
}

.sns p {
  text-align: center;
  padding: 20px;
  color: #FFF;
  font-size: 25px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 700;
  border: 1px solid #FFF;
  width: 397px;
  height: 74px;
  display: inline-block;
  margin-top: 80px;
  margin-left: 540px;
  margin-bottom: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.sns p:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #000;
}


footer{
  position: relative;
  top: -50px;
  height: 100px;
  background: url(../images/footer_bg.png)no-repeat;
  background-size: cover;
  /* z-index: -2; */
}

.txt_rogo{
  text-align: center;
  padding-top:30px;
}

.txt_footer{
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 400;
  position: relative;
  top: -50px;
  text-align: end;
}

.bg{
  padding-top: 100px;
  background-color: #D0B9C7;
  height: 1000px;
}

.layer_frame {
  background: url(../images/frame2.png) no-repeat;
  background-size: cover;
  height: 1300px;
}

.layer_design h1{
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 700;
  text-align: center;
  font-size: 25px;
  color: #fff;
  padding-top: 100px;
}

.la_content {
  display: flex;
  flex-wrap: wrap;
  margin-left: 150px;
  gap: 80px;
  margin-top: 87px;
}

.la_content dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
}

.la_content dl dt {
  margin: 0;
}

.la_content dl dd {
  margin-top: 15px;
  color: #fff;
  font-size: 20px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 500;
  border: 1px solid #fff;
  width: 177px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 0; /* ここを削除 */
  display: inline-block;
}

.la_content dl dd:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #000;
}



.txt{
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 500;
  border: 1px solid #fff;
  padding: 3px;
  width: 150px;
  height: 30px;
  margin-bottom: 50px;
}

.la_detail{
  width: 941px;
  margin: 80px auto ;
  display: flex;
  justify-content: space-between;
  margin-top: 130px;
}

.la_detail dl{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.la_detail dl dd:nth-child(3){
  margin-top: 30px;
}

.la_txt{
  color: #FFF;
  font-size: 20px;
  margin-left: 250px;
  line-height: 50px;
  margin-top: 10px;
  margin-bottom: 100px;
}

.ap{
  display: flex;
  column-gap: 100px;
}

.screen-content{
margin: 0px;
  height: 207px;
  overflow: auto;
}

.pc-frame {
  position: relative;
  width: 402px;
  height: 267px;
}

.frame-img {
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

.screen-content {
  position: absolute;
  top: 13px; 
  left: 33px;
  width: 328px;
  height: 207px;
  overflow: auto;
  z-index: 2;
}

.design-img {
  display: block;
  width: 100%;
  height: auto;
}

.tit{
  padding-top: 40px;
  text-align: center;
}
