@import url(sanitize.css);

body{
    font-family: '游明朝','ヒラギノ明朝',serif;
    color:#666
}
/* ==== ヘッダーのスタイル ==== */
.header-box {
    height: 60px;
  }

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
  }
  
  .header .logo {
    width: 15%;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 1em;
    font-weight: 600;
    background: white;
  }


  
  .header nav {
    width: 85%;
  }
  
  .header ul {
    width: 100%;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .header ul li {
    width: 100%;
    position: relative;
  }
  
  .header a {
    display: block;
    width: 100%;
    line-height: 40px;
    font-size: 0.8em;
    text-align: center;
    text-decoration: none;
    color: #333;
  }

  ul.ddmenu a:hover{
    background-color: white;
    color: black;
  }

  ul.ddmenu ul{
    display: none;
    background-color: white;
    margin: 0px;
    padding: 0px;
    position: absolute;
  }

  ul.ddmenu li:hover ul{
    display: block;
  }

  
  /* ==== ハンバーガーメニューのスタイル ==== */
  .hamburger-menu {
    display: none;
    width: 25px;
    height: 20px;
    position: relative;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
  }
  
  .line {
    background-color: #666;
    height: 2px;
    width: 100%;
    position: absolute;
    transition: all 0.3s;
  }
  
  .line:nth-of-type(1) {
    top: 0;
  }
  
  .line:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  
  .line:nth-of-type(3) {
    bottom: 0;
  }
  
  .hamburger-menu.active > .line:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  
  .hamburger-menu.active > .line:nth-of-type(2) {
    display: none;
  }
  
  .hamburger-menu.active > .line:nth-of-type(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    padding: 0px;
    width: 350px;
    background-color: white;
    border: 1px solid #ccc;
    opacity: 0;
  }
  
  .nav-menu.active {
    display: flex;
    animation: fadeIn 0.5s forwards;
  }
  
  .nav-menu a {
    text-decoration: none;
    color: #666;
    padding: 5px;
    margin: 0px;
  }

  .nav-menu ul{
    width: 100%;

    list-style: none;
    padding: 0px;
    margin: 0px;
  }


/* ==== 追加した部分 ==== */

label {
    display: block;
    text-align: center;
    font-size: 1em;
    color: #666;


}

input[type="checkbox"].on-off{
    display: none;
}

.navi lavel{
    text-align: center;
}

.navmenu ul {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    margin: 0;
    padding: 0;
    list-style: none;

}

.navmenu li {
    padding: 5px;

}

input[type="checkbox"].on-off + ul{
    height: 0;
    overflow: hidden;
}

input[type="checkbox"].on-off:checked + ul{
    height: 280px;
}

.nav-menu .navmenu li a {
    display: block;
    width: 100%;
    line-height: 15px;
    font-size: 1em;
    margin: 5px auto;
    text-align: center;
    text-decoration: none;
    color: #666;
  }

  .nav-menu .navmenu li li a {
    display: block;
    width: 100%;
    line-height: 15px;
    font-size: 0.8em;
    margin: 0px auto;
    text-align: right;
    text-decoration: none;
    color: #330256;
  }
  .nav-menu a:hover{
    background-color: #f9f9f9;
    color: black;
  }

  .nav-menu .navmenu li li a:hover{
    background-color: #fef9fb;
    color: black;
  }

  .nav-menu label:hover{
    background-color: #f9f9f9;
    color: black;
  }

  
  @keyframes fadeIn {
    0% {
      top: 45%;
      opacity: 0;
    }
    
    100% {
      top: 50%;
      opacity: 1;
    }
  }
  
  @media (max-width: 1100px) {
    .hamburger-menu {
      display: block;
    }
  
    .pc-menu {
      display: none;       
    }

    
    .header .logo {
        width: 150px;
    }
  }
  /* ==== ページトップに戻るのスタイル ==== */
html {
    scroll-behavior: smooth;
}
.pagetop {
    height: 40px;
    width: 40px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #333;
    border-right: 3px solid #333;
    transform: translateY(20%) rotate(-45deg);
}

 /* ==== ここからメイン ==== */
 .aboutus{
    width: 80%; font-size: 100%; padding: 5px; margin: 10px auto; text-align: center; display: block;
}

@media only screen and (max-width: 767px){
    .aboutus{
       width: 100%;
       height: auto;
       font-size: 0.9em;
    }
}
.aboutus .text{
    width: 80%; font-size: 1em; margin: 10px; text-align: left; display: inline-block;
}

 /* ==== 七宝焼について ==== */

 /* ==== スライドショー ==== */
 .img-frame{
    position: relative;
    width: 80vw;
    height: calc(80vw*0.6);
    overflow: hidden;
    margin: 0 auto;
 }

@media only screen and (max-width: 767px){
    .img-frame{
       width: 100%;
       height: calc(100vw*0.6);
    }
}
 
 .img-01, .img-02, .img-03{
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
 }
 .img-01{
    background-image: url(../img2023/img-01.jpg);
    animation: slide-animation-01 24s infinite;
 }
 .img-02{
    background-image: url(../img2023/img-02.jpg);
    animation: slide-animation-02 24s infinite;
 }
 .img-03{
    background-image: url(../img2023/img-03.jpg);
    animation: slide-animation-03 24s infinite;
 }
 @keyframes slide-animation-01 {
     0% {opacity: 1; transform: scale(1.0);}
   30% {opacity: 1;}
   40% {opacity: 0; transform: scale(1.15);}
   90% {opacity: 0}
 100% {opacity: 1; transform: scale(1.0);}
 }
 @keyframes slide-animation-02 {
     0% {opacity: 0;}
   30% {opacity: 0; transform: scale(1.1);}
   40% {opacity: 1;}
   60% {opacity: 1;}
   70% {opacity: 0; transform: scale(1.0);}
 100% {opacity: 0;}
 }
 @keyframes slide-animation-03 {
     0% {opacity: 0;}
   60% {opacity: 0;  transform: scale(1.0);}
   70% {opacity: 1;}
   90% {opacity: 1;}
 100% {opacity: 0; transform: scale(1.1);}
 }

/* ==== 説明コーナー==== */

.clearfix:after{
  content:" ";
  display:table;
  clear:both;
}
.description{
  border-bottom:#c0bebe solid .5px; width: 70%; font-size: 0.9em; padding: 10px; margin: 0px auto 10px; line-height: 120%;
}

.description img{
  float: left; width:350px; height:auto; margin-right: 20px;
}

.miryoku{
  width: 70%; font-size: 0.9em; padding: 10px; margin: 0px auto 10px; line-height: 120%;
}
.description2{
  width: 60%; font-size: 0.9em; padding: 10px; margin: 0px auto; line-height: 120%;
}

.description2 img{
  float: left; margin: 0 10px 20px 0;
}

@media only screen and (max-width:900px){
  .description{
      width:80%;
      font-size:90%;
      text-align: center;
  }

  .description img{
      width:80%;
      height: auto;
      float: none;
  }

  .description p{
    text-align: left;
}

  .miryoku{
    width: 75%;
      font-size: 90%;
  }

  .description2{
      font-size:90%;
  }
  
  .description2 img{
     width:80%;
     height: auto;
      float: none;
      margin: auto;
  }
}
/* ==== メニュー、コンテンツ ==== */
.tablepc{
  border:0; width:80%; margin: auto;
  table-layout: fixed;
  display: block;
} 

.tablepc TD{
  width: 32%; height:180px; color:#666; font-size:0.8em; line-height:120%; padding:20px 5px ;text-align: center;
}



.tablepc TD a:link{
color: #333;
text-decoration: none;
}
.tablepc TD a:visited{
color: #333;
text-decoration: none;
}
.tablepc TD a:hover{
color: #999999;
text-decoration: underline;
}
.tablepc TD a:active{
color: #999999;
text-decoration: underline;
}

.tablesp{
  border:0; width:100%; margin: auto;
  table-layout: fixed;
  display: none;
}
.tablesp TD{
  width: 50%; height:100px; color:#666; font-size:0.8em; padding: 5px 0px; text-align: center;
}

.tablesp TD a:link{
  color: #333;
  text-decoration: none;
}
.tablesp TD a:visited{
  color: #333;
  text-decoration: none;
}
.tablesp TD a:hover{
  color: #999999;
  text-decoration: underline;
}
.tablesp TD a:active{
  color: #999999;
  text-decoration: underline;
}

@media only screen and (max-width: 1000px){
  .tablepc{
      display: none;
  }
  .tablesp{
      display: block;
  }
}


/* ==== ここからフッター ==== */
#hpb-footer{
width: 90%;
margin-left: auto;
margin-right: auto;
padding-top: 10px;
position: relative;
padding-bottom: 0px;
clear: both;
}


#hpb-footerExtra1{

text-align: left;
background-color : white;
}

#hpb-footerExtra1 ul{
/* フッターサブメニュー設定 */
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
padding-left: 0;
list-style-type: none;

}

#hpb-footerExtra1 li{
display: inline-block;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #666;
font-size: 0.75em;
word-wrap: break-word;
overflow-wrap: break-word;
}

#hpb-footerExtra1 li a{
padding-left: 10px;
padding-right: 10px;

}

#hpb-footerExtra1 a:link{
color: #333;
text-decoration: none;
}
#hpb-footerExtra1 a:visited{
color: #333;
text-decoration: none;
}
#hpb-footerExtra1 a:hover{
color: #999999;
text-decoration: underline;
}
#hpb-footerExtra1 a:active{
color: #999999;
text-decoration: underline;
}

#hpb-footerMain{
margin-left: auto;
margin-right: auto;
margin-top: 0px;
padding-top: 0px;
color:#333;
background-color : white;
}
#hpb-footerMain p{
/* コピーライト文字設定 */
padding-top: 10px;
padding-right: 5px;
padding-bottom: 0px;
padding-left: 5px;
text-align: center;
color  : #333;
font-size: 0.7em;
word-break: break-all;
}

@media only screen and (max-width: 767px){
  .footer{
      font-size: 80%;
}
}