/*
Theme Name: Takano Lab.
*/

@font-face {
    font-family: 'Montserrat'; /* フォントの名前を指定 */
    src: url('./fonts/montserrat_normal_400.ttf') format('truetype'); /* フォントファイルのパスを指定 */
    font-weight: 400; /* フォントの太さ */
    font-style: normal; /* フォントのスタイル */
}

@font-face {
    font-family: 'Montserrat'; /* フォントの名前を指定 */
    src: url('./fonts/montserrat_normal_700.ttf') format('truetype'); /* フォントファイルのパスを指定 */
    font-weight: 700; /* フォントの太さ */
    font-style: normal; /* フォントのスタイル */
}

body {
    font-family: 'Montserrat', sans-serif; /* デフォルトのフォントも指定 */
    margin: 0; /* Reset body margin */
}

.slide {
    position: relative;
    width: 80%;
    height: 40vw; /* Set height based on viewport width */
    max-height: 400px; /* Set maximum height */
    overflow: hidden;
    margin: 0 auto;
    cursor: pointer; /* Make it clickable */
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Set height to 100% */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide-item.active {
    opacity: 1; /* Show active slide */
}

.slide img {
    width: 100%; /* Set image width to parent element */
    height: 100%; /* Set image height to 100% */
    object-fit: cover; /* Adjust image to fit parent */
}

.section-title {
    text-align: center; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 32px; /* Base font size */
    margin: 20px 0; 
}

.text {
    text-align: center; 
    color: black;  
    font-size: 18px; /* Base font size */
    margin: 10px 0; /* Adjust text margins */
    font-family: 'Montserrat', sans-serif; /* フォントを明示的に指定 */
    font-weight: 400; /* 通常の太さを指定 */
}

.news-section {
    margin-top: 20px;
    padding: 10px;
    width: 70%;
    display: block;             
    margin: 0 auto;            
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    background-color: #fff;    
    text-align: center;         
}

.news-list {
    list-style: none; 
    padding: 0; 
}

.news-list li {
    margin-bottom: 5px; 
    padding: 5px 0; 
    border-top: 1px solid #ddd; 
}

.news-list li:first-child {
    border-top: none; 
}

.news-list a {
    text-decoration: none; 
    color: #333; 
}

.news-list a:hover {
    text-decoration: underline; 
}

h2 {
    text-align: left;
    font-family: 'Montserrat', sans-serif; 
    font-size: 15px; /* Base font size */
    font-weight: 400; /* 太字にする */
}

/* Shrink text size based on viewport */
@media (max-width: 600px) {
    .section-title {
        font-size: 6vw; /* 6% of viewport width */
    }
    .text {
        font-size: 4vw; /* 4% of viewport width */
    }
    h2 {
        font-size: 5vw; /* 5% of viewport width */
    }
}

.read-more-button {
    text-align: center;
    display: block;
    margin: 20px auto; /* Center the button */
    padding: 10px 20px;
    background-color: white; /* White background */
    color: black; /* Black text */
    text-decoration: none;
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Floating shadow */
    transition: background-color 0.3s, box-shadow 0.3s; /* Transition effects */
    width: 200px; /* Set a width for the button */
}

.read-more-button:hover {
    background-color: #f0f0f0; /* Light gray on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

header {
    text-align: center;
    padding: 20px;
}

.logo img {
    max-width: 100px;
}

.main-menu {
    list-style: none;
    padding: 0;
}

.main-menu li {
    display: inline;
    margin: 0 15px;
}

.main-menu li a {
    text-decoration: none;
    color: black;
    font-family: 'Montserrat', sans-serif; /* Montserratフォントを適用 */
    font-weight: 700; /* 太字にする */
}

.slideshow {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

.slides img {
    width: 100%;
    display: none;
}

.slides img.active {
    display: block;
}
