@charset "utf-8";

body {
    color: #555;
    font: 12px verdana, "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif;
    line-height: 1.5;
    background: #fff;
    -webkit-text-size-adjust: 100%;
}

/* -----------------------------------------------------------
        リンク設定
------------------------------------------------------------*/
a {
    color: #358de0;
    text-decoration: none;
}

/* a:hover{color:#429bef;}  */
a:active,
a:focus {
    outline: 0;
}

/*************************************************************
/                      ヘッダー
**************************************************************/
#header {
    z-index: 100;
    /* margin-bottom: 5px; */
    /* background: url(../images/background.jpg) */
    background-image: url(../images/background.jpg);
}


.logo {  
    height: 50px;
    padding: 5px 10px 5px 10px;
    margin: 0 0 8px 0; 
    display: flex;
    justify-content: center;
}

.logo h4 {
    font-size: 20px;
    color: #444;
    font-weight: bold;
    line-height: 1;
    margin: 15px;
}


/* .logo_image {
    margin-right: 30px;
} */

.logo_image img {
    width: 80px;
}


/*************************************************************
/*                        真ん中 メイン枠 
**************************************************************/
.wrap{
    display: flex;
    flex-direction:row;
    /* height: 300px; */
    /* margin:5px  0; */
}
.wrapMain {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: solid 1px #a5a5a5;
    margin-left: 20px;
    width:70%;
    max-width: 800px;
}

.WrapExplain {
    border: solid 1px #a5a5a5;
    width:30%;
    margin-right: 20px;
    max-width: 370px;
}


.ColorExplain {
    display: flex;
    flex-direction:row;
}

.ColorExplainCircle{
    margin-top: 50px;
    width:25%;
    max-width: 50px;
}


/* --------------------------------------------
          「沿岸定置水温マップ」のタイトルの上の説明文
----------------------------------------------- */
/* .top_explane{
    width:80%; 
    margin: 10px; 
    padding: auto;
    text-align: left;
    font-size: 16px;
} */



/* --------------------------------------------
          沿岸定置水温マップの文字
----------------------------------------------- */
.title_box {
    width: 250px;
    height: 40px;
    margin: 8px 0 0 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}


.title_box h3 {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    margin: 5px; /* wordpress はmargin htmlはpadding　*/

}

/* --------------------------------------------
/              説明の文字
----------------------------------------------- */
.Explain_title_box{
    display: flex;
    flex-direction: column;
    align-items: center;
    width:100%; 
    /* margin: 0px; */
}

.Ex_title_box {
    width: 180px;
    height: 30px;
    margin: 5px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.Ex_title_box h3 {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    margin:0px;
    
}


.Explain div{
	margin-bottom: 10px;
}

.notice-box {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 16px 0;
  margin: 20px 0;
  line-height: 1.8;
}


.explain-details {
  margin: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.explain-details summary {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  padding: 8px 0;
}

.explain-details div {
  margin: 8px 0 10px 0;
  font-size: 16px;
}

@media only screen and (max-width:830px){
  .explain-details summary {
    font-size: 13px;
  }

  .explain-details div {
    font-size: 12px;
  }
}

/* --------------------------------------------
/          表示切り替えスイッチ
----------------------------------------------- */
.MapSwitch {
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: center; */
    margin: 5px 10px;
    width: 70%;
    /* border-top:1px solid #ccc; */
    /* border-bottom:1px solid #ccc; */
}

.MapSwitch_flame {
    display: flex;
    margin: 5px 0;
    /* flex-direction: row; */
    justify-content: space-evenly;  
}

.MapSwitch_button {
    /* float:left; */
    /* margin: auto; */
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.MapSwitch_moji {
    font-size: 15px;
}

.MapSwitch_circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: -moz-radial-gradient(#a8a7a7, #fff);
    background: -webkit-radial-gradient(#a8a7a7, #fff);
    background: radial-gradient(#a8a7a7, #fff);
}


.MapSwitch_circle:hover {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: -moz-radial-gradient(#1db629, #FFC778);
    background: -webkit-radial-gradient(#1db629, #FFC778);
    background: radial-gradient(#1db629, #FFC778);
    cursor: pointer;
}

.current-map {
    animation: flash 1.1s linear infinite;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: -moz-radial-gradient(#1db629, #FFC778);
    background: -webkit-radial-gradient(#1db629, #FFC778);
    background: radial-gradient(#1db629, #FFC778);
    cursor: pointer;
}


@keyframes flash {
    0% {
        transform: scale(0.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}


/* --------------------------------------------
/          日付表示
----------------------------------------------- */
#date {
    margin: 0 0 5px 0;
    font-size: 18px;
}

/* --------------------------------------------
/          マップ表示とカラーバー（縦型）
----------------------------------------------- */
.MapBarAnoSwi{
    width: 100%;
}

.mapbar {
    display: flex;
    justify-content: space-evenly; 
    align-items: center; 
}

.MapWrap {
    width: 70%;
     text-align: right;  
     margin: 0px 10px ; 
     max-width: 900px;  
     min-width: 300px; 
     position: relative;
}

.mapimg {
    width: 100%;
    background-image: url("../images/loading.gif");
    background-repeat: no-repeat;
}

.LandImg {
    width: 100%;
    position: absolute;
    top: 0px;
    left:0px;
    right: 0px;
}
/* 
.Blink {
    width: 100%;
    position: absolute;
    top: 0px;
    left:0px;
    right: 0px;
    -webkit-animation:blink 1.5s step-end infinite;
    -moz-animation:blink 1.5s step-end infinite;
    animation:blink 1.5s step-end infinite;
}

@-webkit-keyframes blink{
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
@-moz-keyframes blink{
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes blink{
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
} */

.TopImg {
    width: 100%;
    position: absolute;
    top: 0px;
    left:0px;
    right: 0px;
    box-shadow: 2px 5px 8px rgba(0, 0, 0, .4); 
}
.colorbarWrap{
    width: 30%;
     text-align: left; 
}

#colorbar {
    /* text-align: left; */
    margin: 10px 0px;
}

/* --------------------------------------------
/ 　　　　　　　スライダーとプルダウン（　過去マップ表示の時だけ）　
----------------------------------------------- */
.Anoswi_selY{
    display: flex;
}
 
.selYwrap{
    width: 90%;  
     margin-left: 20px;
} 

#selectYear {
    width: 80%;  
    margin: 0 5px ;
}

#selY {
    width: 80px;
}

.slider{
    display: flex;
    flex-direction: row;
    width: 90%; 

}

#selectYear input {
    width: 90%;
    cursor: pointer; 
}

#PlayButton{  
    width: 30px;
    margin: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, .4);
}

#PlayButton:hover {
    cursor: pointer;
}

#PlayButton:active {
	-webkit-transform: translate(0,2px);
	-moz-transform: translate(0,2px);
	transform: translate(0,2px);
	border-bottom:none;
}
/* --------------------------------------------
    平年値マップとの切り替えボタン
 --------------------------------------------*/

 /* https://reffect.co.jp/html/toggle-switch/ */

 #AnoswitchArea{
    margin: 5px 15px 0 15px;
    height: 50px;
    position: relative;
 }


 .Anoswitchwrap{
    width: 110px;
    position: absolute;
    right: 0;
 }

 .AnoswitchText{
    font: 12px;
 }

 .switch_label {
    position: relative;
    /* text-align: right; */
  }
  
  #Anoswitch {
    position: absolute;
    display: none;
    width: 0;
    height: 0;
  }

  .Anotitle{
    position: absolute; 
    top: 10px;
    left: 60px;
  }
 
 .Anoswitch {
    position: relative;
  }

  .Anobase {
    width: 50px;
    border-radius: 14px;
    height: 24px;
    background-color: #ddd;
  }

  .Anocircle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background-color: white;
}

input:checked ~ .Anobase {
  background-color: rgb(219, 234, 254);
  transition: 0.5s;
}

input:checked ~ .Anocircle {
  transform: translateX(160%);
  background-color: blue;
}

/* -----------------------------------------------------------
/*        modal でグラフ表示 
------------------------------------------------------------*/
.modal__bg {
    position: fixed;
    z-index: 10009;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0; /* 初期状態で非表示 */
    visibility: hidden; /* 初期状態で非表示 */
    transition: opacity .6s ease, visibility .6s ease;
  }
  
  .modal__bg.is-active {
    opacity: 1; /* 非表示を解除 */
    visibility: visible; /* 非表示を解除 */
  }
  
  .modal__inner {
    position: fixed;
    z-index: 10010;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 0 10px;
    opacity: 0; /* 初期状態で非表示 */
    visibility: hidden; /* 初期状態で非表示 */
    transition: opacity .6s ease, visibility .6s ease;
  }
  
  .modal__inner.is-active {
    opacity: 1; /* 非表示を解除 */
    visibility: visible; /* 非表示を解除 */
  }
  
  .modal-card {
    /*width: 680px;         */ 
    /*min-height: 600px;    */ 
    height: 80vh;
    max-height: 850px; 
    aspect-ratio: 8/11; 
    background: #fff;
    filter: drop-shadow(0 0 10px rgba(0 ,0, 0, 0.4));
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    position: absolute;
    /*z-index: 1;    */ 
    z-index: 1000;
    transform: translate3d(0, 48px, 0);
    opacity: 0; /* 初期状態で非表示 */
    visibility: hidden; /* 初期状態で非表示 */
    transition: opacity .6s ease, visibility .6s ease, transform .3s ease-in-out;
  }
  
  .modal-card.is-active {
    position: relative;
    z-index: 2;
    opacity: 1; /* 非表示を解除 */
    visibility: visible; /* 非表示を解除 */
    transform: translate3d(0, 0, 0);
  }
  
  .modal-card__heading {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    font-weight: bold;
    color: #444;
  }
  
  
  .modal-card__close {
    width: 15px;
    height: 15px;
    position: absolute;
    top: 16px;
    right: 13px;
  }
  
  .modal-card__close::before,
  .modal-card__close::after {
    content: "";
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 3px;
    background: #000;
    cursor: pointer;
  }
  
  .modal-card__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .modal-card__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  
  .imap-st {
    cursor: pointer;
  }
  

  .chart_container{
    height: 75vh; 
    max-width: 90vw; 
    aspect-ratio: 8/9; 
}


 .chart_container iframe {
     width: 100%;       /* 横幅を親に合わせる */
     height: 100%;     /* 高さを固定、または vh 単位も可 */
     border: none;      /* 枠線を消す */
 }

/*************************************************************
/*                        真ん中  説明文枠
**************************************************************/
/* --------------------------------------------
/           説明文
----------------------------------------------- */
.Exp1{
    margin-top:20px;
    margin-bottom:20px;
}


.Explain div {
    margin-left:10px;
    margin-right:10px;
    text-align: left;
    font-size: 16px;
}

.Explain p {
    margin-bottom: 16px;
}

.links {
    /* margin-left:10px;
    margin-right:10px;
    text-align: left; */
    font-size: 16px;
}

/*************************************************************
/*                        フッダー
**************************************************************/

.address {
    background-color: rgb(217, 242, 246);
    display: flex;
    /* margin: 10px; */
    flex-direction: column;
    align-items: center;
}

.address p{
    font-size: 12px;
    margin: 2px;
}



/*//////////////////////////////////////////////////////////////////////////////////////
/*                        スマホ表示
//////////////////////////////////////////////////////////////////////////////////////*/

@media only screen and (max-width:830px){

/*************************************************************
/              ヘッダー
************************************************************** */
#header .logo {
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flexbox;
    display: -moz-flexbox;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    justify-content: center ; 
    height: 24px;
}

    .logo_image img {
        width: 40px;
    }

    .logo h4 {
        font-size: 12px;
        color: #444;
        font-weight: bold;
        line-height: 1;
         margin: 5px; 
        /* padding: 0 0 10px 0; */
    }
/*************************************************************
/*                        真ん中 メイン枠 
**************************************************************/
.wrap{
    display: flex;
    flex-direction:column; 
    width:100%; 
    align-items: center;
    margin:5px 0 20px 0;
}
.wrapMain {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    margin:0  ; 
    width:90%; 
     /* margin:0px 10px; */
    /* max-width: 1000px; */
}

.WrapExplain {
    border: none;
    margin: 0 ;
    width: 90%; 
}


/* --------------------------------------------
/              沿岸水温マップの文字
----------------------------------------------- */
    .title_box {
        width: 180px;
        height: 30px;
        margin: 2px 0 0 5px;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }


     .title_box h3 {
        text-align: center;
        font-weight: bold;
        font-size: 15px;
        margin: 1px 0 0 0;
        padding: 3px; 
    }


/* --------------------------------------------
/              説明の文字
----------------------------------------------- */
    .Explain_title_box{
        display: flex;
        flex-direction: column;
        align-items: center;
        width:100%; 
        margin-top: 30px;
    }

    .Ex_title_box {
        width: 180px;
        height: 30px;
        margin-top: 2px;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }
    .Ex_title_box h3 {
        text-align: center;
        font-weight: bold;
        font-size: 15px;
        margin: 0;
        padding: 3px; 
    }


/* --------------------------------------------
/          表示切り替えスイッチ
----------------------------------------------- */
.MapSwitch {
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: center; */
    margin: 5px 5px;
    width: 100%;
    /* border-top:1px solid #ccc; */
    /* border-bottom:1px solid #ccc; */
}

.MapSwitch_flame {
    display: flex;
    margin: 5px 0;
    /* flex-direction: row; */
    justify-content: space-evenly;
}

.MapSwitch_moji {
    font-size: 12px;
}

/* --------------------------------------------
/          マップ表示とカラーバー（縦型）
----------------------------------------------- */
.MapBarAnoSwi{
    width: 100%;
}
.mapbar {
    display: flex;
    justify-content: space-evenly; 
}

.MapWrap {
    width: 70%;
    text-align: right;
    margin: 0px 10px ;
    max-width: 480px;
    min-width: 200px; 
    position: relative;
}

#colorbar {
    text-align: left;
    margin: 10px 0px;
    /* height: 400px; */
    /* max-width:7%; */
}
/* --------------------------------------------
/ 　　　　　　　スライダーとプルダウン（　過去マップ表示の時だけ）　 
----------------------------------------------- */
#selectYear {
    width: 100%; 
    margin: 15px 0px;
}


#selectYear select {
    /* margin-right: 10px; */
    width: 70px;
}

#selectYear input {
    width: 100%;
    margin-top: 20px;
}

#PlayButton{  
    width: 30px;
    margin: 20px 10px 0 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, .4);
}

/* --------------------------------------------
/          日付表示
----------------------------------------------- */
#date {
    margin: 3px;
    font-size: 14px;
}

.Explain div {
    margin-left:10px;
    margin-right:10px;
    text-align: left;
    font-size: 12px;
}
/* --------------------------------------------
/          モーダル　表示サイズ
----------------------------------------------- */
    .modal-card {   
        height: 95vh;       
        max-width: 90vw; 
        max-height: 600px; 
        aspect-ratio: 9/10;  
    } 

     .chart_container{
         height: 75vh;    
         max-width: 90vw;       
         aspect-ratio: 8/9; 
     } 



/*************************************************************
/*                        フッダー 
**************************************************************/

    .address p{
        font-size: 9px;
        margin: 1px;
    }

}
/* ******************************************************************
    スマホ 
******************************************************************** */
@media  screen and (max-width: 450px) {
    .modal-card {
        /* min-height: 400px;   */
        /* max-height: 400px;   */
        height: 85vh;       
        max-width: 90vw; 
        max-height: 450px; 
        /* height: auto; */
         aspect-ratio: 8/10;    
        /* overflow: scroll; */
    }   

     .chart_container{
        /* position: relative;  */
        max-width: 400px;
        width: 90vw; 
        /* max-height: 70vh;  高さの上限         */
        /* height:auto; */
        /* height: 90vh; */
        aspect-ratio: 8/9; 
        /* overflow: scroll; */
     } 
}

/***************************************************************
            タブレット　svg
***************************************************************/

@media  (orientation: landscape) and (max-width: 1200px) {
    .modal-card {
        /* min-height: 400px;   
        max-height: 680px;    */
         /* width: auto; */
        height: 90vh;      
        aspect-ratio: 8/10;
        /* overflow: scroll; */

    }   
    .chart_container{
        height: 85vh; 
        max-width: 85vw;       
        aspect-ratio: 8/9; 
     }  
    .chart_container iframe {
        width: 100%;       /* 横幅を親に合わせる */
        height: 100%;     /* 高さを固定、または vh 単位も可 */
        border: none;      /* 枠線を消す */
    }     
}


/*************************************************************/

@media (orientation: landscape) and (max-height: 450px) {


     .modal-card {   
         height: 90vh;  
        aspect-ratio: 8/10;
    } 
     .chart_container{
        height:85vh; 
        max-width: 90vw;  /*高さの上限*/        
        aspect-ratio: 8/9; 
     }      
}

/*************************************************************/
 
    