html {
    background: url(img/youhishi.png);
}

.yuji-mai-regular {
    font-family: "Yuji Mai", serif;
    font-weight: 400;
    font-style: normal;
}


body {
     font-family: "Yuji Mai", serif;
}
    

div#main {
    margin: 5em 5em;
    padding: 1em;
    display: block;
    position: relative;
    box-shadow: 2px 0 3px #666, -2px 0 3px #666;
}

#main::after {
    content: "";
    background: url(img/背景藤1.png);
    opacity: 1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}


div.container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin: 2em auto;
  max-width: 1200px;
}

.image-section {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.responsive-image {
  width: 100%;
  height: auto;
  max-width: 500px;
}

.text-section {
  flex: 1 1 50%;
  font-family: "Yuji Mai", serif;
  padding: 1em;
}

div#title {
    font-family: "Sawarabi Mincho";
}

.title-wrapper {
  margin-top: 6rem;
  text-align: center;
}

.titlecall {
  font-size: 1.8em;
  margin: 0 auto 0.5em auto;
  padding: 0.5em 1em 0.5em 4em;
  background: url(img/カフェロゴ.png) no-repeat left center;
  background-size: 3em;
  font-family: "Sawarabi Mincho";
  border-bottom: 1px dashed #000;
}

.story {
    background: url(img/カフェロゴ.png)  no-repeat;
    background-size: contain;
    padding-left: 3em;
    border-bottom: 1px dashed #000;
    font-family: "Sawarabi Mincho";
}

h1 {
    margin: 0;
    font-size: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 3px #000;
}

h3 {
    background: url(img/カフェロゴ.png)  no-repeat;
    background-size: contain;
    padding-left: 2em;
    border-bottom: 1px dashed #000;
    font-family: "Sawarabi Mincho";
}

p {
    margin: 0;
}

dt {
    font-weight: bold;
}

ol {
    padding-left: 1.5em;
}

.map-container {
  width: 100%;
  max-width: 600px;
  margin: 1em auto;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#sub-title {
    padding-left: 53%;
}

.sp-br {
    display: none;
}

@media (max-width: 750px) {
    #main {
        width: 100vw;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    #main::after {
        content: "";
        position: absolute;
        top: 0;
        left: 7.5%;
        width: 85%;
        height: 100%;
        background: url(img/背景藤1.png) repeat-y;
        background-size: contain;
        z-index: -1;
    }

    .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        width: 92vw;
        max-width: 92vw;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }   

    .text-section, .image-section {
        width: 100%;
        padding: 1em;
        box-sizing: border-box;
    }

    .responsive-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .titlecall {
        font-size: 1.2em;
        background: none;
        line-height: 1.5;
        padding: 0.5em 1em 0.5em 1em;
    }

    .title-wrapper {
        padding: 0 1em; /* スマホでも余白を */
    }

    .map-container {
        width: 90%;
        margin: 1em auto;
    }

}   

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
}

main {
    background: #FFF;
    width: 90%;
    margin-top: 7rem;
}

h1 small {
    font-size: 1rem;
    white-space: wrap;
}



a:link {
    text-decoration: none;
    color: #3707c4;
}

a:link.tab{
    text-decoration:none;
    color:#000;
}


iframe {
    width: 90%;
    aspect-ratio: 4/3;
}

dt{
    font-weight: bold;
}

.global-nav {
    float: right;
    padding: 0;
}

.global-nav li {
    float: left;
    margin:0 20px;
    font-size:20px;
    list-style: none;
}

.global-nav li a{
    color: #dedede;
    text-decoration: none;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 1em;
}
header {
    /*fixedで上部固定*/
    position: fixed;
    height: 3rem;
    width: 100%;
    z-index: 999;/*最前面へ*/
    background-color: #493a35;
    justify-content: space-between;
    align-items: center;
    color:#fff;
    text-align: center;
    padding: 15px;
}

/*　上に上がる動き　*/

#header.UpMove{
    animation: UpAnime 0.5s forwards;
  }
  
  @keyframes UpAnime{
    from {
      opacity: 1;
    transform: translateY(0);
    }
    to {
      opacity: 0;
    transform: translateY(-100px);
    }
  }
  
  /*　下に下がる動き　*/
  
  #header.DownMove{
    animation: DownAnime 0.5s forwards;
  }
  @keyframes DownAnime{
    from {
      opacity: 0;
    transform: translateY(-100px);
    }
    to {
      opacity: 1;
    transform: translateY(0);
    }
  }
/*ハンバーガーメニューボタン外側*/
.openbtn{
    position: relative;/*ボタン内側の基点となるためrelativeを指定*/
    float: right;
    margin-right: 20px;
    background:#ECA869;
    cursor: pointer;
      width: 50px;
      height:50px;
    border-radius: 5px;
}
/*ボタン内側*/
.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #444444;
    width: 45%;
}
.openbtn span:nth-of-type(1) {
    top:15px; 
}
      
.openbtn span:nth-of-type(2) {
    top:23px;
}
      
.openbtn span:nth-of-type(3) {
    top:31px;
}
/*activeクラスが付与されると線が回転して×に*/
.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}
.openbtn.active span:nth-of-type(2) {
    opacity: 0;/*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}
    /*ナビゲーション*/
#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: -999;
    /*ナビのスタート位置と形状*/
    top:-1900%;
    left:0;
    width:100%;
    height: 80vmin;/*ナビの高さ*/
    background:rgba(236, 168, 105, 0.904);
        /*動き*/
    transition: all 1.5s;
}
/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
    top: 0;
    transition: 0.9s;
}
/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: -999; 
    width: 100%;
    height: 80vmin;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: -999;
    top:30%;
    left:50%;
    padding-top: 8rem;
    transform: translate(-50%,-50%);
}
/*リストのレイアウト設定*/
#g-nav li{
    list-style: none;
    text-align: center; 
    float: none;
}   
#g-nav li a{
    color: #353535;
    text-decoration: none;
    padding:10px;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
 } 
.global-nav {
    width: 20rem;
}
