
body{
    background:#FFFAF4;
}

.takara-header {
  word-break:break-all;
}
div.wrapper{
  box-sizing:border-box;
  position:relative;   /* ← これが必須 */
}

div.wrapper img.image-sukaru0{
  width:210px;
  height:auto;
  position:absolute;
  top:40px;
  right:-40px;
}

img.image-takibi02{
  width:130px;
  height:auto;
  position:absolute;
  top:700px;
  right:1px;
}


img.image-coin01{
  width:180px;
  height:auto;
  position:absolute;
  top:50px;
  left:0;
}


img.image-hune03{
  width:200px;
  height:auto;
  position:absolute;
  bottom:0;
  left:0px;
}

img.image-compass04{
  width:180px;
  height:auto;
  position:absolute;
  top:-80px;
  right:20px;
}

img.image-ikari05{
  width:160px;
  height:auto;
  position:absolute;
  top:-20px;
  right:20px;
}

img.image-coin06{
  width:150px;
  height:auto;
  position:absolute;
  bottom:-50px;
  left:20px;
}

img.image-katana07{
  width:160px;
  height:auto;
  position:absolute;
  top:250px;
  left:20px;
}

img.image-banana08{
  width:160px;
  height:auto;
  position:absolute;
  top:-50px;
  right:20px;
}

img.image-takibi09{
  width:130px;
  height:auto;
  position:absolute;
  bottom:30px;
  left:20px;
}


div.takara-header{
    width:90%;
    max-width:1120px;
    height:auto;
    display:block;
    box-sizing:border-box;
    position:relative;
    padding:10px;
    margin:60px auto;
    border:10px solid #ffd700;
    border-radius:16px;
    background:#FFFAF0;
}

div.takara-header h1{
    font-size:28px;
    font-family: serif;
    margin:0 0 40px 0;
    text-align: center;
}

div.takara-header h1 span{
    width:193px;
    height:61px;
    display: block;
    background:url(../images/logo-senryu.png)no-repeat center;
    background-size:100% auto;
    text-indent:-9999px;
    margin:0 auto;

}

div.takara-header p.takara-title{
    font-family: serif;
    font-size:24px;
    font-weight:bold;
    margin:0 0 40px 0;
    text-align:center;
    line-height:1;
}


div.takara-header p.takara-title span{
    font-size:60px;
    display:block;
    margin-bottom:16px;
}


div.takara-header p.takara-caption{
    font-size:18px;
    font-weight: bold;
    margin:0;
}

div.takara-header p.takara-caption span{
    display:block;
    font-size:14px;
    font-weight: bold;
    color: #FF7F50;
}

h2{
    font-family:serif;
    font-size:40px;
    font-weight:bold;
    text-align:center;
    line-height:1;
    letter-spacing:1px;
}

h2 span{
    display:block;
    font-family:sans-serif;
    font-size:18px;
    font-weight:bold;
    text-align:center;
    line-height:1;
    margin-top:16px;
    margin-bottom:8px;
}

section{
  width:100%;
  height:auto;
  display:block;
  box-sizing:border-box;
    padding:80px 0;
    position:relative;
}

section.first{
    background:#FFFAF4;
}

section.second{
    background:#DFCBB9;
    padding:0;
}

div.second-before{
    width:auto;
    height:200px;
    background:url(../images/bg_wave_top.png) top;
    background-size:100% 200px; /* 横幅を画面に合わせる */
}

div.second-after{
    width:auto;
    height:200px;
    background:url(../images/bg_wave_bottom.png) bottom #F4EDE7;
    background-size:100% 200px; /* 横幅を画面に合わせる */
}

section.third{
    background:#F4EDE7;
}

section.forth{
    background:#E8C4C4;
}

section.forth p{
    font-family:serif;
    font-size:20px;
    position: relative;
    z-index:1;
}


  .flex .item{
    flex: 0 0 calc(100% - 10px); /* grow=0, shrink=0, basis=33.3333%-gap */
    margin-bottom:40px;
    box-sizing:border-box;
    border:10px solid #405D93;
    background:#fff;
    box-shadow:0 0 16px rgba(0,0,0,0.25);
    padding-top:24px;
  }

  .flex .item span{
    font-family:serif;
    font-size:40px;
    font-weight:bold;
    display:block;
    padding:24px;
    line-height:1;
  }

  
  /* 子<span>はデフォルト非表示 */
  .flex .item p span{
    opacity: 0;
    transform: translateY(8px);
  }
  
 
 
 
  
  /* アニメーションを避けたい環境への配慮 */
  @media (prefers-reduced-motion: reduce){
    .flex{ opacity: 1; transform: none; transition: none; }
    .flex .item p span{ opacity: 1; transform: none; animation: none !important; }
  }

  p.annotaion{
    width: 90%;
    max-width:600px;
    height:auto;
    display:block;
    padding:0 16px;
    margin:0 auto 40px auto;
    font-size:12px !important;
    text-align:center;
  }

  @media screen and (min-width: 768px) {

 div.takara-header h1 span{
      display:block;
    }

  div.hakara-header h1{
      font-size:72px;
      margin-bottom:16px;
      line-height:1.5;
    }
 img.image-sukaru0{
  width:260px;
  height:auto;
  position:absolute;
  top:80px;
  right:60px;
}

img.image-takibi02{
  width:200px;
  height:auto;
  position:auto;
  bottom:100px;
  right:20px;
}

img.image-coin01{
  width:200px;
  height:auto;
  position:absolute;
  top:100px;
  left:50px;
}

 div.takara-header h1 span{
        display:block;

    }
   
   
div.takara-header p.takara-caption{
     text-align:center;
    }
    
     .flex .item {
        flex: 0 0 calc(50% - 16px); /* grow=0, shrink=0, basis=33.3333%-gap */
      }

      .flex.award02 .item {
        flex: 0 0 calc(33% - 16px); /* grow=0, shrink=0, basis=33.3333%-gap */
      }



/* 必要に応じてスマホ用の調整を追加 */


}
