/*
Theme Name: SAGA SMART MACHINAKA LAB
Description: SAGA SMART MACHINAKA LAB theme.
Author: Local Media Labs
Version: 1.0
*/
@charset "utf-8";
body {
    line-height: 1.8 !important;
}
p.top-txt, #page p {
    letter-spacing: 0.8px;
    /*text-indent: 1em;*/
}
a:hover {
    color:#0B41A0;
}
img {
    max-width: 100%;
    height: auto;
}

.bgwave-container {
    background-color: #B7EA7A;
    background-image: url(images/wave-top.png),url(images/wave-bottom.png);
    background-size: 120rem;
    background-position: top -50px center,bottom center;
    background-repeat: no-repeat;
    position: relative;
}
.bgwave-block {
    /*padding-top: 4.25rem;*/
    /*padding-bottom: 7.5rem;*/
    position: relative;
    z-index: 99;
}
.bgwave-container h5 {
    line-height: 1.8;
}
/*.bgwave-container {
    background-position: top -2px center,bottom 170px center;
}*/

header.front-page,
header.main-page {
    height: 90px;
}
.navbar-brand {
    /*transition: transform .2s ease, -webkit-transform .2s ease;*/
    line-height: 1.5;
}
.navbar-brand span {
    letter-spacing: -1px;
    font-weight: bold;
    /*text-shadow: 1px 1px 0 #fff, 5px 5px 2px #222;*/
    text-shadow: 0.5px 0.5px 0 #fff, 0 0 0 #222;
    font-size: 1.8rem;
    text-transform: uppercase;
}
.navbar-brand img {
    height: 70px;
}
a.navbar-brand:hover {
    color: #ddd !important;
    /*transform: scale(1.1);*/
}
.navbar {
    height: 70px;
    font-size: 1.2rem;
    color: #222325;
    z-index: 1999;
    /*text-transform: lowercase;*/
}
.nav-link:hover {
    color: #ddd !important;
}
.nav-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
}
.nav-link::after {
    position: absolute;
    bottom: -2px;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform .3s;
}
.nav-link:hover::after {
    transform: scale(1, 1);
}

@-webkit-keyframes AnimationName {
    0%{background-position:0% 52%}
    50%{background-position:100% 49%}
    100%{background-position:0% 52%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 52%}
    50%{background-position:100% 49%}
    100%{background-position:0% 52%}
}
@-o-keyframes AnimationName {
    0%{background-position:0% 52%}
    50%{background-position:100% 49%}
    100%{background-position:0% 52%}
}
@keyframes AnimationName {
    0%{background-position:0% 52%}
    50%{background-position:100% 49%}
    100%{background-position:0% 52%}
}
.navbar a {
    color:#222222;
}
.navbar .nav-item {
    padding-left: 20px;
    padding-right: 20px;
} 
.navbar-nav li a.dropdown-toggle {
    margin-right: 15px;
}
.dropdown-toggle::after {
    position: absolute;
    bottom: 3px;
    right: 0;
    /*content: '';
    width: 100%;
    height: 3px;
    background-image: linear-gradient(to right, #1d2088, #ea616f 95%, #f08300 95%);
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform .3s;*/
      content: "\f107" !important;
      font-family: "Font Awesome 5 Free";
      border: none !important;
      font-weight: 900;
  }

.navbar-toggler {
    width: 65px;
    height: 65px;
    border-radius: 50% !important;
    border: none !important;
    background-color: #fafafa !important;
    z-index: 1998;
}
.navbar-toggler:hover {
    border: none !important;
}
.home-header-intro img {
    margin-top: 40px;
}
/* menu */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
	 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M6 6L 24 24M24 6L6 24'/%3E%3C/svg%3E");
}
.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon {
	 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");

}
.site-header .navbar-toggler {
    margin: 0 auto;
    display: block;
}
#project {
    /*position: relative;*/
    margin: 0 auto;
    margin-bottom: 0px;
    /*top: -450px;
    margin-bottom: -450px;*/
    background-color: #FFF;
    background-image: url(images/bg-right1.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 60%;

}
#project img {
    max-width: 800px;
}
.btn {
    border-radius: 40px !important;
    letter-spacing: 3px;
    cursor: pointer;
}
.btn:hover {
    transform: scale(1.05);
    transition-property: transform;
    transition-duration: 0.5s;
    transition-timing-function:ease-in-out;
    transition-delay: 0s;
}
.title h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 60px;
    color: #30A5D4;
    line-height: 100%;
    font-weight: 900;
    text-align: center;
}
.title .jp {
    color: #000;
    font-size: 16px;
    font-weight: bold;
    line-height: 120%;
    display: inline-flex;
    align-items: center;
}
.title .jp::after, 
.title .jp::before {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #9E9E9E;
    display: block;
    width: 30px;
    margin: 0 7px;
}
#page h4 {
    margin: 30px auto 30px;
    display: inline-block;
    background: linear-gradient(transparent 80%, #30A5D4 0%);
}
#page h4 span {
}
#page h5 {
    margin: 25px auto 15px;
    color: #30A5D4;
}
#team .card h5 {
    position: absolute;
    top: -15px;
    background-color: #222;
    padding: 8px 0;
    display: block;
    width: 90%;
    color: #fff;
    border-radius: 50px;
}
#team .card {
    transition: transform .2s ease, -webkit-transform .2s ease;
}
#team .card:hover {
    transform: scale(1.05);
}
a.sub::after {
    content: '';
    position: absolut;
    background-image: url(./images/arrow_black.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 39px 1818px;
    width: 39px;
    height: 18px;
    bottom: 25px;
    right: 0;
    z-index: 2;
}
.item-text{
    position: relative;
    z-index: 1;
}
.item-text:after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;/*テキストからの距離*/
    width: 0%;/*初期状態では下線非表示*/
    height: 2px;/*下線の高さ*/
    background: #000;/*下線の色*/
    z-index: -1;
    transition: all 0.4s;/*アニメーション速度*/
}
.item:hover .item-text:after{
    width: 100%;/*hover時に表示*/
}
#news a {
    color: #212529;
    text-decoration: underline;
}
.h1-title {
    font-family: 'Spartan', sans-serif;
    position: relative;
    font-size: 12vw;
}
.h2-title {
    font-family: 'Spartan', sans-serif;
    font-size: 4.5vw;
    margin-bottom: 20px;
}
h3.h3-title {
    font-size: 40px;
    color: #30A5D4;
    line-height: 100%;
    font-weight: 900;
}
h4.h4-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.6;
}
.text-right {
    text-align: right !important;
    margin-bottom: 7px;
}
.breadcrumb {
    font-size: 14px;
	background: #fff;
}
.breadcrumb a {
    color: #0f0f0f;
}

.card-image {
    background-color:#ccc;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

footer {
    background-color: #3e3a39;
    padding: 60px 0 40px;
	line-height:1.0;
}
footer img {
    max-height: 85px;
	max-width: 70% !important;
    /*background-color: #fff;*/
}
footer h4 {
    border-bottom: 1px solid #f8f9fa;
    margin-bottom: 15px;
    padding-bottom: 8px;
}
.footer-tel {

}
.footer-tel span {

}
footer ul {
    margin-bottom: 30px;
}
footer li {
    list-style-type: none;
    margin-bottom: 5px;
}
footer a {
    color: #f8f9fa;
}
footer li a {
    /*text-transform: uppercase;*/
    text-decoration: none;
}
footer li a:hover {
    color: #fff;
    text-decoration: underline;
}
footer ul li:before {
    font-family: "Font Awesome 5 Free";
    content: "\f105";
    color: #f8f9fa;
    font-weight: 900;
}

#page-top {
	position: fixed;
	bottom: 150px;
	right: 10px;
}
#page-top a{	
	display: block;
	padding: 10px;
	width: 70px;
	height: 70px;
	line-height: 60px;
	text-align: center;
	font-size: 100%;
	border-radius: 70px;
	background: #30A5D4;
	
	color: #FFF;
}
#page-top a:hover{
	text-decoration: none;
	/*background: #fdc600;*/
	background: #2071c4;
	color: #FFF;
}
#page-top a i {
    font-size: 32px;

}

@media (max-width: 374.98px) {
    .navbar-brand span {
        font-size: 1.2rem !important;
    }
    #project {
        top: -260px;
        margin-bottom: -260px;
    }
    .home-header-intro img {
        margin-top: 80px;
    }
}
@media (max-width: 449.98px) {
    .navbar-toggler {
        width: 45px;
        height: 45px;
        padding: 1px 4px !important;
        position: absolute;
        top: 60px;
        right: 10px;
        border: 2px solid #000;
    }
    main#page, main#news, #page .wallpaper {
        background-size: 100% !important;
    }
    h3.h3-title {
        font-size: 30px !important;
    }
}
/*@media (max-width: 374.98px) and (min-width: 450px) {
    .navbar-brand span {
        font-size: 1.35rem !important;
    }
}
}*/
@media (max-width: 449.98px) and (min-width: 375px) {
    #project {
        top: -280px;
        margin-bottom: -280px;
    }
    .home-header-intro img {
        margin-top: 80px;
    }
    .navbar-brand span {
        font-size: 1.35rem !important;
    }
}

@media (max-width: 575.98px) and (min-width: 450px) {
    #project {
        top: -350px;
        margin-bottom: -350px;
    }
    .home-header-intro img {
        margin-top: 90px;
    }
    .navbar-brand span {
        font-size: 1.6rem !important;
    }
}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    #navbars {
        font-size: 1.2rem;
    }
    .navbar-toggler {
        width: 50px;
        height: 50px;
        padding: 1px 4px !important;
        position: absolute;
        top: 15px;
        right: 10px;
        border: 2px solid #000;
    }
    main#page, main#news, #page .wallpaper {
        background-size: 80%;
    }
    /*.navbar-brand span {
        font-size: 0.95rem !important;
    }*/
}
/* Medium devices (tablets, less than 992px) */
@media (max-width: 767.98px) and (min-width: 576px) {
    #project {
        top: -400px !important;
        margin-bottom: -400px !important;
    }
    .home-header-intro img {
        margin-top: 95px;
    }
    main#page, main#news, #page .wallpaper {
        background-size: 70%;
    }
}
/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
}
/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) and (min-width: 768px) {
    #project {
        top: -300px !important;
        margin-bottom: -300px !important;
    }
    .home-header-intro img {
        margin-top: 95px;
    }
    main#page, main#news, #page .wallpaper {
        background-size: 60%;
    }
}
@media (max-width: 1199.98px) {
    #navbars { 
        background: rgba(48, 165, 212, 1);
        text-transform: uppercase;
        padding: 8px 15px 16px;
        text-align: center;
    }
    #navbars ul li a:hover { 
        color: #fafafa;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) and (min-width: 992px) {
    #project {
        top: -360px !important;
        margin-bottom: -360px !important;
    }
    .home-header-intro img {
        margin-top: 90px !important;
    }
    #team .card h5 {
        font-size: 1.0rem !important;
    }
}
@media (max-width: 1199.98px) {
}

/* X-Large devices (large desktops, less than 1400px) */
@media (max-width: 1399.98px) and (min-width: 1200px) {
    #project {
        top: -400px !important;
        margin-bottom: -400px !important;
    }
    .home-header-intro img {
        margin-top: 90px !important;
    }
}
@media (max-width: 1399.98px) {
}

.share a {
    display: inline-block;
    padding: .5em 1em;
    color: #fff !important;
    font-size: small;
    margin: 0 .1em .1em 0;
    /*opacity: 0.8;*/
    text-decoration: none;
}
.share_facebook {
    background: #39599F;
}
.share_twitter {
    background: #45B0E3;
}
.share_hatena {
    background: #00A4DE;
}
iframe#movie-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chat-trigger {
    display: none;
}

.chat-button {
    position: fixed;
    right: 10px;
    bottom: 80px;
    width: 70px;
    height: 70px;
    background: #212529;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    color: white;
    background: #30A5D4;
    z-index: 1001;
}

.chat-icon-open,
.chat-icon-close {
    position: absolute;
    transition: opacity 0.3s ease;
}

.chat-icon-close {
    opacity: 0;
}

.chat-trigger:checked ~ .chat-button .chat-icon-open {
    opacity: 0;
}

.chat-trigger:checked ~ .chat-button .chat-icon-close {
    opacity: 1;
}

.popup-chat {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 380px;
    height: 450px;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-trigger:checked ~ .popup-chat {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .popup-chat {
        position: fixed;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .chat-trigger:checked ~ .chat-button {
        position: fixed;
        right: 10px;
        bottom: 10px;
        width: 60px;
        height: 60px;
        background: #212529;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        color: white;
        background: #30A5D4;
        z-index: 1001;
    }
}