html {
    width: 100%;
    overflow-y: scroll;
  }

body{
    width: 100%;
    margin: 0;
    align-items: center;
    background: #FAFAFA;
    color: #333;
    font-family: 'Barlow', "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-feature-settings: "palt";
    padding-top: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /** min-height: calc(100vh - 60px); **/
  }

h1, h2, h3, p{
    color: #333;
    line-height: 135%;
  }

/* フォントはHTML側の<link>で読み込み済み */

/* 地図切り替えボタン */

.mapboxgl-ctrl-layer-switch button {
  font-size: 12px;
  width: 45px;
  height: 40px;
  padding: 2px;
  display: block;
  margin-bottom: 7px;
  box-sizing: border-box; 
  background-color: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  line-height: 14px;
  border: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); /* 要素の外側に線を表示 */
}

/* 地図ポップアップ系 */

        .popup-date{
            font-size: 14px;
            padding-bottom: 2px;
            border-bottom: 1px solid #ccc;
        }
        .popup-wrap {
            font-size: 14px;
            padding-top: 4px;
            line-height: 20px;
        }
        .popup-name {
            font-size: 16px;
            font-weight: 700;
        }
        .popup-cap {
            font-size: 12px;
        }
        .maplibregl-popup-content{
            border-radius: 8px !important;
            font-family: 'Barlow', "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
            align-items: center; 
            justify-content: center; 
            flex-direction: column; /* 上下中央揃えのために追加 */
            padding: 15px !important;
            font-feature-settings: "palt";
        }

/* ナビ */

.logo_lkjhgfd {
  float: left;
  padding: 20px 5% 20px;
  }

.logo a{
  display: block;
  width: 176px;
  height: 40px;
  background: url(../img/logo.svg) left top/176px auto no-repeat;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  }

.header {
  z-index: 9999;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: #FFF;
  box-shadow: 0 0px 10px rgba(0,0,0,0.15);
  box-sizing: border-box;
  padding-left: 20px;
  display: flex;
  align-items: center;
}

.header>.inner{
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  background-color: #333333;
}


.global-nav {
  position: fixed;
  right: -320px;
  top: 0;
  width: 300px;
  height: 100vh;
  padding-top: 60px;
  background-color: #FFF;
  transition: all .6s;
  z-index: 200;
  overflow-y: auto;
}
.hamburger {
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1100;
}
.global-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.global-nav__item {
  text-align: left;
  padding: 0 20px;
  font-weight: 600;
}
.global-nav__item a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}
.global-nav__item a:hover {
  text-decoration: underline;
}
.hamburger__line {
  position: absolute;
  left: 10px;
  width: 30px;
  height: 2px;
  background-color: #555;
}
.hamburger__line--1 {
  top: 19px;
}
.hamburger__line--2 {
  top: 29px;
}
.hamburger__line--3 {
  top: 39px;
}
.black-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 101;
  background-color: #000;
  opacity: 0;
  visibility: hidden;
  transition: all .6s;
  cursor: pointer;
}
.nav-open .global-nav {
  z-index: 1001;
  right: 0;
}
.nav-open .black-bg {
  opacity: .8;
  visibility: visible;
}
.nav-open .hamburger__line--1 {
  transform: rotate(45deg);
  top: 29px;
}
.nav-open .hamburger__line--2 {
  width: 0;
  left: 50%;
}
.nav-open .hamburger__line--3 {
  transform: rotate(-45deg);
  top: 29px;
}

/* 上に戻るボタン */

#pagetop {
    position: fixed;
    right: 2.5vh;
    bottom: 2.5vh;
    text-indent: -9999px;
    margin: 0;
    opacity: 0.7;
}
#pagetop a {
    position: relative;
    display: block;
    width: 55px;
    height: 55px;
    background: #333;
    transition: opacity .6s ease;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}
#pagetop a:hover {
    opacity: 0.5;
}
#pagetop a::before {
    position: absolute;
    top: 7px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 14px;
    height: 14px;
    margin: auto;
    content: '';
    transform: rotate(-45deg);
    border-top: 2px solid #FFF;
    border-right: 2px solid #FFF;
}


/* 本文系 */

main{
  width: 90%;
  max-width: 1000px;
  margin: 1.5em 0;
  }

h1{
  font-weight: 200;
  font-size: 21pt;
  margin: 0 0 0.4em 0;
}

h2{
  font-size: 16pt;
  margin: 0.8em 0 0.4em 0;
  padding: 0 0 0 0.1em;
  background: linear-gradient(90deg, #E6519C, #EC6A6A, #EF9060, #F8B857, #FDD23E, #F2F260, #B8E6A1, #82D9D2, #5BC3E6);
  background-repeat: no-repeat;
  background-size: 100% 25%;
  background-position: bottom;
}

h3{
  font-size: 14pt;
  margin: 1.2em 0 0 0;
}

main p{
  line-height: 1.7em;
  margin: 0.5em 0;
  text-align: justify;
}

p.occur-time{
  font-size: 13pt;
  font-weight: 300;
  margin: 0;
}

.summary{
  list-style-type: none;
  padding: 0.5em 1em 0.5em 2.5em;
  line-height: 1.6em;
  border: solid 2px #AAA;
  position: relative;
  border-radius: 0 6px 6px 6px;
  background: #fff;
  display: block;
  margin-bottom: 1.5em;
}

.summary ul li:last-of-type {
  border-bottom: none;
}

.summary li:before{
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00c";
  color: #AAA;
  position: absolute;
  left : 1em;
}

.summary li:after{
  background: #AAA;
  color: #fff;
  font-weight: bold;
  position: absolute;
  left: -2px;
  bottom: 100%;
  padding: 1px 10px;
  content: "まとめると";
  letter-spacing: 0.05em;
  border-radius: 6px 6px 0 0;
}

.fa-expand{
  display: inline-block;
  background-color: #999;
  color: #FFF;
  padding: 10px;
}


/* メイン地図 */

.submap{
  height: 50vh;
  width: 75%;
  z-index: 100;
  float: left;
}

/* 地震詳細 */

#stationInfo {
  display: flex;
  flex-direction: column;
  padding: 6px 10px 0 10px;
  box-sizing: border-box;
  background: #E6E6E6;
  overflow-y: auto;
}

#stationInfo p {
  border-bottom: 1px solid #bbb;
  padding-bottom: 8px;
  margin-bottom: 2px;
  font-size: 14px;
}

#stationInfo p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 12px;
  line-height: 16px;
  margin-top: auto;
}

@media (max-width: 768px) {
    .submap {
      width: 100%;
    }
    #stationInfo p {
      display: none; /* 全ての p 要素を非表示に */
    }
    #stationInfo p:last-child {
      display: block; /* 最後の p 要素だけ表示 */
      width: 100%; /* 地図の幅に合わせる */
      max-width: 100%; /* 親要素の幅を超えないように */
      background: #E6E6E6;
      box-sizing: border-box;
      margin-bottom: 8px;
    }
}

@media (min-width: 769px) {
    #stationInfo {
      display: flex;
      flex-direction: column;
      width: 25%;
      height: 50vh;
      margin-bottom: 8px;
      padding: 4px 14px 0 14px;
    }
    #stationInfo p:last-child {
      padding-bottom: 6px;
    }
}




.fullwrap{
  flex: 1;
  width: 100%;
  position: relative;
}

.fullmap{
  flex: 1;
  z-index: 100;
  height: 100%;
  width: 100%;
  }

.full-window{
  min-height: 100vh; /* Fallback */
  min-height: calc(var(--vh, 1vh) * 100);
}

.bottom-wrap {
    position: absolute; /* 絶対配置を使用して地図内の任意の位置に配置 */
    bottom: 0px; /* 地図の下からの距離を設定 */
    left: 0px; /* 地図の左からの距離を設定 */
    background-color: rgba(255, 255, 255, 0.9); /* 半透明の黒背景を設定 */
    color: white; /* テキストの色を白に設定 */
    padding: 10px; /* 内側の余白を設定 */
    border-radius: 0px 8px 0 0; /* 角を丸くする */
    z-index: 1000; /* 他の要素よりも前面に表示されるようにする */
    display: flex; /* ボックス内の要素を横に並べる */
    align-items: center; /* 垂直方向の中央揃え */
}

.ref-button{
  margin-right: 10px;
  display: inline-block; /* blockからinline-blockに変更 */
  font-weight: bold;
  color: #fff;
  padding: 0.3em 1em;
  background: linear-gradient(40deg, #E6519C, #EC6A6A);
  border-radius: 100vh;
  text-decoration: none;
  line-height: 1.5em; /* 追加: 文字の高さを調整 */
}

.ref-button:hover{
  opacity: 0.5;
}

main a{
  color: #0099cc;
  text-decoration: underline;
}

main a:hover{
  text-decoration: none;
}

.refe{
	line-height: 1em;
	vertical-align: 25%;
  font-size: 10pt;
  text-decoration: none;
  padding: 0 0.1em;
}

.sub-p{
  font-size: 11pt;
}

/* 震度 */

.int-box{
	width: 25%;
	margin: 1em 0 0 0;
	border-radius: 6px 6px 0 0;
	text-align: center;
	font-weight: 600;
  line-height: 1.2em;
  padding: 0.4em 0;
}

.int-line{
	width: 100%;
	height: 2px;
	margin: 0;
}

.int-wrap{
	filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.1));
}

.int7{
  background: #E6519C;
}

.int65{
  background: #EC6A6A;
}

.int6{
  background: #ED7C65;
}

.int60{
  background: #EF9060;
}

.int55{
  background: #F8B857;
}

.int5{
  background: #FAC34B;
}

.int50{
  background: #FDD23E;
}

.int4{
  background: #F2F260;
}

.int3{
  background: #B8E6A1;
}

.int2{
  background: #82D9D2;
}

.int1{
  background: #5BC3E6;
}


/* 震度の表 */

.intable{
  border-spacing: 0 0.25em;
  width: 100%;
}

.intable th{
  width: 25%;
  text-align: center;
  line-height: 1em;
  padding: 0.25em;
  background: #E6E6E6;
}

.intable td{
  display: inline-block;
  line-height: 1.4em;
  padding: 0.2em 0em 0.2em 0.8em;
}

.city-name {
  display: inline-block;
  margin-right: 10px; /* 市区町村名間のスペース */
  line-height: 1.5em;
}
.small-etc {
  font-size: 0.7em;
}
/* 3カラム */

.column-wrap{
  display: flex;
  justify-content: space-between;
  margin: 1em 0;
  flex-wrap : wrap;
}

.column-3{
  width: 32%;
  height: 16em;
  margin-bottom: 2%;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  border-radius: 7px;
  overflow :hidden;
  transition:transform 0.3s;
}

.column-3 img{
  width: 100%;
  height: 62%;
  object-fit: cover;
  border-radius: 7px 7px 0 0;
  filter: brightness(90%);
}

.column-3:hover{
  transform:scale(1.1);
}

.column-3 p.col-title{
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  position: relative;
  margin: 0.2em;
}

.column-3 p.col-title:before{
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.3em;
  display: inline-block;
  width: 24px;
  height: 2px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: black;
}

.column-3 p.col-cap{
  font-size: 14px;
  line-height: 1.3em;
  text-align: center;
  padding: 0 1em;
  margin: 1.5em 0 0 0;
}

.column-3 a{
  text-decoration: none;
}


@media screen and (max-width:800px) {

.column-wrap{
  display:flex;
  flex-flow: column;
  margin: 0;
}

.column-3{
width: 100%;
margin-bottom: 3%;
margin-top: 2%;
}

}

/*googleカスタム検索用*/
#___gcse_0,
#___gcse_1{
    margin-bottom: 0;
}
.gsc-input-box {
    border: none!important;
    width: 100%!important;
    max-width: 1000px!important;
    border-radius: 10px!important;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    padding: 0 !important;
}
td#gs_tti50,
div#___gcse_1{
    border: 2px solid #ccc;
    padding: 15px;
    border-radius: 10px!important;
    background-color: none!important;
}
.cse .gsc-search-button-v2,
.gsc-search-button-v2{
    padding: 15px 5px!important;
    border: none!important;
    border-radius: 0!important;
    -moz-border-radius:  0!important;
    -webkit-border-radius: 0!important;
    border-color: none!important;
    background-color: none!important;
    background-image: none!important;
    background: none!important;
    position: absolute;
    right: 15px;
    bottom: 0px;
}
.under_3col_side .gsc-search-button-v2{
    right: 18px;
}
#___gcse_1 .gsc-search-button-v2{
    bottom: -17px;
}
.gsc-search-button-v2 svg {
    fill: #aaa!important;
    width: 30px !important;
    height: 30px !important;
}
td.gsc-search-button{
    position: relative;
    width: 0;
}
.slabel {
    padding-left: 20px;
    margin-bottom: 10px;
}
table.gsc-search-box td.gsc-input{
    padding-right: 0!important;
}

.gsc-input{
    font-size: 20px !important;
}

div.gsc-clear-button {
  display: none !important;
}

td.gsc-clear-button {
  display: none !important;
}

td.gsib_b{
  display: none !important;
}

table.gsc-search-box{
  width: 100%;
}

/* SNSシェアボタン */

#social-icon,
.social-page {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1em;
}

/* マップページ専用のmargin打ち消し設定 */
.bottom-wrap #social-icon {
  margin-top: 0;
}

/* SNSアイコン共通ボックス */
.sns-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin-left: 6px;
  text-decoration: none;
  background: none;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

/* 拡大アニメーション */
.sns-icon:hover {
  transform: scale(1.3);
}

/* アイコン共通設定 */
.sns-icon i {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

/* Facebook */
.sns-icon.facebook i {
  font-size: 36px;
  color: #1877F2;
  transform: translateY(-1px) translateX(1px);
}

/* Twitter (X) */
.sns-icon.twitter {
  background-color: #000;
}
.sns-icon.twitter i {
  font-size: 22px;
  color: white;
}

/* LINE */
.sns-icon.line i {
  font-size: 36px;
  color: #00B900;
}

/* Hatena */
.sns-icon.hatena {
  background-color: #1ba1f3;
}
.sns-icon.hatena i {
  font-size: 20px;
  color: white;
}
.sns-icon.hatena i::before {
  content: "B!";
  font-family: Verdana, sans-serif;
  font-weight: bold;
}





/* フッター */

.foot-yes{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer{
  height: 6em;
  width: 100%;
  background: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.footicon{
  color: #777;
  background: none;
  font-size: 24px;
  text-decoration: none;
  margin-left: 0.2em;
}
