/* offcanvas */
html {
	position: relative;
	min-height: 100%;
}

a {
	text-decoration: none;
}

/* navbar fixed-top */
body {
	padding-top: 3.5rem;
}

@media (min-width: 768px) {
    body {
        padding-top: 4.5rem;
    }
}

@media (min-width: 880px) {
    body {
        padding-top: 4.8rem;
    }
}

.navbar-nav > li a {
	color: #fff;
}

/* nav menu fontsize */
/* @media (min-width: 768px) {
    .navbar-nav > li {
        font-size: 74%;
        }
    }

@media (min-width: 880px) {
/* @media (min-width: 992px) { */
/*     .navbar-nav > li {
        font-size: 100%;
        }
    }

/* nav menu border */
@media (min-width: 768px) {
	.navbar-nav {
		--bs-nav-link-padding-y: 0;
		}
	
	.navbar-nav > li.menu_bar {
		border-left: solid 2px #fff;
		margin-top: 0.5rem;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		}
	
	.navbar-nav > li.menu_bar:last-child {
		border-right: solid 2px #fff;
	}
}

@media (max-width: 767.98px) {
	.navbar-nav > li.menu_bar {
		border-bottom: solid 1px #fff;
		margin-top: 0.5rem;
		}
}

/* country menu */
table.ct_menu td { /* country menu width & line */
	border: solid 2px #fff;
	width: 3.0rem;
	text-align: center;
}

table.ct_menu a {
    color: white;
    display: block;
}

table.ct_menu a:hover {
    opacity: 0.8;
}

table.ct_menu td.hq {
    width: 6.0rem;
}

/* header */
.card {
    border: none;
    color: #ccc;
}

.card-img {
    border-radius: 0;
}

@media (min-width: 992px) { /* adjusting the position of text on the image */
    h3.card-title {
        font-size: 2.0rem;
        margin: 1.5rem 0 0.5rem 1.5rem;
    }
     
    /* p.card-text {
        margin-left: 1.5rem;
        font-size: 1.1rem;
    } */
}

@media (max-width: 575.98px) { /* adjusting the position of text on the image */
    h3.card-title {
        font-size: 1.1rem;
    }
    
    /* p.card-text {
        font-size: 0.8rem;
    } */
}

/* section title */
.sec-title {
    position: relative;
    padding: 2px 15px;
    color: white;
    background-color: #006db9;
    font-size: 1.0rem;
}

.sec-title .rss_link {
	position: absolute;
	right: 6px;
	top: 6px;
}

.sec-title-r {
    position: relative;
    padding: 2px 15px;
    color: white;
    background-color: #006db9;
    font-size: 1.0rem;
}

@media (max-width: 991.98px) {
    .sec-title-r {
        padding: 3.6px 15px;
        font-size: 0.9rem;
    }
}

a .sec-title-r {
    text-decoration-color: #006db9;
}

.sec-title-r .page_link {
	position: absolute;
	right: 4px;
    top: -4px;
    font-size: 1.5rem;
}

/* map button */
.map-btn-blue {
    display: block;
    padding: 15px 20px 16px 10px;
    color: white;
    background-color: #006db9;
    max-width: 100%;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 5px;
    box-shadow: 4px 4px 4px #aaa;
}

@media (max-width: 575.98px) {
    .map-btn-blue {
        font-size: 0.85rem;
    }
}

a:hover .map-btn-blue {
    opacity: 0.5;
}

.map-btn-gray {
    display: block;
    padding: 10px 10px 11px 16px;
    /* padding: 10px 20px 11px 30px; */
    color: black;
    background-color: #bec0c2;
    max-width: 100%;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 5px;
    box-shadow: 4px 4px 4px #aaa;
}

@media (max-width: 575.98px) {
    .map-btn-gray {
        padding: 10px 10px 11px 0;
        font-size: 0.85rem;
    }
}

a:hover .map-btn-gray {
    opacity: 0.5;
}

/* news */
table.top_news {
	border-style: none;
}

table.top_news td:first-child {
    width: 25%;
    padding-right: 1.0rem;
}

table.top_news td a {
	vertical-align: top;
	text-decoration: none;
	color: #006db9;
    font-size: 0.9rem;
}

table.top_news td a:hover {
    color: #3399ff;
    text-decoration: underline;
}

table.top_news td .new {
	vertical-align: top;
	color: red;
    font-size: 0.9rem;
    font-weight: bold;
}

table.top_news .td1 {
    vertical-align: top;
	font-weight: bold;
	color: #006db9;
    font-size: 0.9rem;
}

/* news oritatami */
div.tuzukiwaku {
	border: none;
	display: none;
}

input.submit_button {
    margin-top: 0.5rem;
    padding: 4px 20px 5px;
    background-color: #bec0c2;
    color: black;
    text-align: center;
    font-size: 0.9rem;
    border-style: none;
    border-radius: 5px;
}

input.submit_button:hover {
    opacity: 0.5;
}

/* data download */
.d-d {
    font-size: 0.9rem;
}

.d-d a {
	text-decoration: none;
	color: #006db9;
}

.d-d a:hover {
    color: #3399ff;
    text-decoration: underline;
}

.dl_tittle {
	color: #006db9;
	font-weight: bold;
    border-bottom: 1px solid #006db9;
	padding-top: 3px;
}

table.d-d td {
    vertical-align: top;
}

/* footer-bottom nav */
.bottom-nav {
	background-color: #006db9;
	color: white;
}

.bottom-nav a {
	color: white;
    text-decoration: none;
}

.bottom-nav a:hover {
	opacity: 0.8;
}

/* back to top button */
#btn-back-to-top {
	position: fixed;
	color: #dcddde;
	font-size: 36px;
	cursor: pointer;
	bottom: 80px;
	right: 20px;
	display: none;
}

/* navbar-icon adjustment */
.navbar .navbar-toggler { /* remove the border */
	--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), 0);
	--bs-navbar-toggler-focus-width: 0;
}

.navbar .navbar-toggler .navbar-toggler-icon { /* set the alpha value of the icon button to 1 */
	--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas .btn-close { /* remove the border that appears after clicking close */
	--bs-btn-close-opacity: 1; /* set the alpha value of the close button to 1 */
	--bs-btn-close-hover-opacity: 1; /* set the alpha value to 1 when the close button is hovered over */
	--bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(0,0,0,0);
}

/* diagram manual */
.btn-close { /* remove the border that appears after clicking close */
	--bs-btn-close-opacity: 1; /* set the alpha value of the close button to 1 */
	--bs-btn-close-hover-opacity: 1; /* set the alpha value to 1 when the close button is hovered over */
	--bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(0,0,0,0);
}