body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #000000;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

.title-logo{
    max-width: 100%;
}

.main-page {
    background-image: url(/jukusai/images/background-main.png);
    background-repeat: repeat-y;
    background-size: 100%;
}

.main-contents {
    display: none;
    padding: 2rem;
}

.video-container {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video {
    aspect-ratio: 1/1;
    width: 100vmin;
    object-fit: cover;
}

#close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
}

#close-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

.coming-soon {
    justify-content: center;
    display: flex;
    margin: auto;
    padding: 10px;
    text-align: center;
    padding: auto;
}

.coming-soon-img {
    margin: auto;
    max-width: 50%;
}


.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin: auto;
    border-top: 16px solid blue;
    border-bottom: 16px solid blue;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.coming-soon-text {
    padding: 20px;
    font-size: 30px;
}

nav {
    background: #000000;
    padding: 10px;
    text-align: center;
    width: 100%;
}

nav ul {
    list-style: none;
    padding: 0;
    accent-color: #FFD700;
}

nav ul li {
    display: inline;
    margin: 0 10px;

}

nav ul li a {
    color: #15ff00;
    text-decoration: none;
}

nav ul li a::after{
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

main {
    padding: 20px;
}

footer {
    background-color: #35424a;
    color: #ffffff;
    text-align: center;
    padding: 0px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

button {
    padding: 10px 20px;
    background-color: #35424a;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.social-links {
    text-align: center;
    padding: 20px 0;
}

.social-links a {
    text-decoration: none;
    color: #35424a;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
    fa-x:before{content:"\f099"}
    fa-x-square:before{content:"\f081"}
}

.social-links a:hover {
    color: #45a049;
}

.main-info {
    text-align: center;
    padding: 20px 0;
}

.padding {
    padding: 20px 0;
}

.sub-info {
    text-align: center;
}

.access {
    background-image: url(/jukusai/images/sample-box-1.png);
    background-size: 100%;
    padding: 20px;
}

.access-box {
  display: flex;
  justify-content: center;
}

.access-map-google {
    width: 600px;
    height: 400px;
    border: 0;
    display: block;
    overflow: hidden;
    padding: 20px;
}

.access-map {
    width: 100%;
    padding-left: 100px;
    padding-right: 100px;
}

@media screen and (min-width: 600px){ 
    .access {
        justify-content: center;
        width: 700px;
        margin: auto;
    }
}

@media screen and (max-width: 600px){ 
    .access-map{
        width: 100%;
    }
}

.access-info-box{
    background-color: rgba(256,256,256,0.9);
    margin: auto;
    justify-content: center;
    max-width: 700px;
    border-radius: 20px;
}

.access-info-text {
    text-align: left;
    display: inline-block;
    font-size: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    max-width: 700px;
    margin: auto;
}

.access-sub {
    text-align: center;
    font-size: 25px;
    margin: auto;
    padding: 10px;
}

.text-box {
    margin: auto;
    display: block;
    justify-content: center;
}

.text-box .main-text {
    text-align: left;
    display: inline-block;
    font-size: 15px;
}


* {box-sizing:border-box}

.slideshow-container {
  width: 100%;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 3s;
}

@keyframes fading{
    0%{opacity:0}
    50%{opacity:1}
    100%{opacity:0}}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


.content {
    display: flex;
    justify-content: center;
}

.content-index-box {
    display: flex;
    justify-content: center;
    max-width: 600px;
    border-radius: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    vertical-align: middle;
    background-color: rgba(255,255,255,0.7);
}

.content-index-text {
    max-width: 370px;
    text-align: center;
}

.content-index-link {
    display: flex;
    justify-content: center;
    padding: auto;
}

.content-index-icon {
    width: 100%;
    max-width: 100px;
    max-height: 100px;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 20px;
    margin-right: 20px;
}

.ad {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    margin: auto;
}

.ad-box {
    margin: auto;
    padding: 10px
}

.timeschedule {
    display: flex;
    justify-content: center;
    margin: auto;
}

.timeschedule-box {
    display: flex;
    justify-content: center;
    margin: auto;
}

.timeschedule-photo {
    margin: auto;
    max-width: 90%;
}

.bus {
    display: flex;
    justify-content: center;
    margin: auto;
}

.diagram-box {
    display: flex;
    justify-content: center;
    padding: 1%;
    margin: auto;
    background-color: rgba(255,255,255,0.6);
    border-radius: 20px;
}

.diagram-photo {
    margin: auto;
    max-width: 90%;
}

.count-down {
    display: flex;
    justify-content: center;
         flex-direction: column;
    margin: auto;
    padding: 1%;
    background-color: #bbb;
    width: 90%;
    height: auto;
}

.count-down .h2 {
    left: 0;
    margin: 1%;
    margin-right: 100%;
    padding-left: 10%;
    padding-right: 1%;
}

#ntp-time {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    font-family: sans-serif;
    height: 100px
}

.flip-digit {
    width: 100%;
    max-width: 50px;         
    aspect-ratio: 5/9;            
    position: relative;
    display: inline-block;
    overflow: hidden;
    perspective: 10px;
}

.flip-digit img {
    width: 100%;
    height: 50%;
    object-fit: contain;
    display: block;
    position: absolute;
    left: 0;
}

.flip-digit img.top-front,
.flip-digit img.top-next {
    top: 0;
    height: 50%;
}

.flip-digit img.bottom-front,
.flip-digit img.bottom-next {
    bottom: 0;
    height: 50%;
}

.flip-digit img.top-front,
.flip-digit img.bottom-front {
    z-index:10;
}

.flip-digit.flip .top-front {
    animation: flip-top 0.6s ease-in forwards;
}

@keyframes flip-top {
    0%   { transform: rotateX(0deg); transform-origin: bottom; }
    100% { transform: rotateX(-90deg); transform-origin: bottom; }
}

.flip-clock {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    font-size: 1rem;
}

.flip-clock span.unit {
    display: inline-flex;
    align-items: flex-end;
    font-size: 2rem;
    margin-left: 0.5rem;
    color: #000;
}