@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-image: url('../images/haikei.png'); 
    background-size: cover;               
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;        
    background-color: #f4f4f4;           
    color: #333;
}
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

#header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#global-nav ul {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

#global-nav li a {
    display: block;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

#global-nav li a:hover {
    background-color: #555;
}

.content-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 450px;
    background-color: transparent; 
    text-align: center;
    padding-top: 50px;
}

.slideshow {
    display: flex;
    width: 400%;
    position: absolute;
    top: 0;
    left: 0;
    transition: left 0.5s ease-in-out;
}

.slide {
    width: 25%;
    height: 400px;
    line-height: 400px;
    font-size: 2em;
    color: #fff;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-1 {
    background-image: url('../images/kome1.jpg');
}

.slide-2 {
    background-image: url('../images/kome2.jpg');
}

.slide-3 {
    background-image: url('../images/kome3.jpg');
}

.slide-4 {
    background-image: url('../images/kome4.jpg');
}

.slide-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.slide-nav button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}

.slide-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slide-indicators li {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slide-indicators li.active {
    background-color: #fff;
}

#contact-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: red;
    font-size: 0.9em;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

#check-btn, #submit-btn {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#check-btn {
    background-color: #007bff;
    color: white;
}

#submit-btn {
    background-color: #28a745;
    color: white;
}

#submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    z-index: 999;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: 30px;
}

#ranking ol {
    padding-left: 0 !important;
    list-style-type: none !important;
}

#ranking li {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px !important;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#ranking h4 {
    color: #cc0000;
    font-size: 1.8em;
    margin-bottom: 8px;
    padding-bottom: 5px;
    
    border-bottom-style: solid; 
    border-bottom-width: 2px;
    display: inline-block;
}

#ranking li:nth-child(1) h4 {
    border-bottom-color: #ff7f50; 
}
#ranking li:nth-child(2) h4 {
    border-bottom-color: #daa520; 
}
#ranking li:nth-child(3) h4 {
    border-bottom-color: #cd7f32; 
}
#ranking li:nth-child(4) h4 {
    border-bottom-color: #a9a9a9; 
}
#ranking li:nth-child(5) h4 {
    border-bottom-color: #8b4513; 
}

.ranking-sub-heading {
    font-size: 1.0em;
    font-weight: bold;
    color: #cc0000; 
    margin-top: 10px;
    margin-bottom: 5px;
    border-left: 3px solid #cc0000; 
    padding-left: 8px;
}

.ranking-details {
    list-style: disc; 
    margin-left: 35px; 
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    padding-left: 0;
}

.ranking-details li {
    padding: 0;
    margin-bottom: 5px;
    border: none;
    background-color: transparent;
    box-shadow: none;
    list-style-type: disc; 
}

.ranking-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}