/* 全体設定 */
body {
    font-family: 'Noto Sans JP', 'Lato', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: #333;
}

/* === 背景スライドショー ここから === */
.slideshow {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.slideshow li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: imageAnimation 36s linear infinite;
}

/* --- 画像ファイルの指定 --- */
.slideshow li:nth-child(1) { background-image: url(images/image0.jpeg); }
.slideshow li:nth-child(2) { background-image: url(images/image1.jpeg); animation-delay: 6s; }
.slideshow li:nth-child(3) { background-image: url(images/image2.jpeg); animation-delay: 12s; }
.slideshow li:nth-child(4) { background-image: url(images/image4.jpeg); animation-delay: 18s; }
.slideshow li:nth-child(5) { background-image: url(images/image5.jpeg); animation-delay: 24s; }
.slideshow li:nth-child(6) { background-image: url(images/image7.jpeg); animation-delay: 30s; }

/* --- アニメーションの定義 --- */
@keyframes imageAnimation {
    0% { opacity: 0; }
    8% { opacity: 1; }
    25% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}
/* === 背景スライドショー ここまで === */

/* ヘッダーのスタイル */
.header {
    background-color: transparent;
    color: #fff;
    padding: 1.5rem 2rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.header__logo {
    margin: 0;
    font-size: 1.8rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.header__logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.header__logo a img {
    height: 35px; /* ロゴの高さ */
    margin-right: 12px;
}

/* ナビゲーションのスタイル */
.header__nav {
    display: none;
}

/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}

.hamburger__bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: transform 0.3s ease-in-out;
}

/* メインコンテンツの基本的なスタイル */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 6rem;
}

.main-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

section {
    margin-bottom: 3rem;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    color: #007bff;
    text-align: center;
    margin-bottom: 2rem;
}

/* ヒーローセクション（トップページのメインビジュアル） */
#hero {
    text-align: center;
    padding: 8rem 0;
    background-color: transparent;
    margin-top: 0;
    padding-top: 10rem;
}

#hero h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

#hero p {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

/* 新着情報セクション */
#news ul {
    list-style: none;
    padding: 0;
}

#news li {
    border-bottom: 1px dashed #ccc;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
}

#news li:last-child {
    border-bottom: none;
}

#news time {
    font-size: 0.9rem;
    color: #777;
    margin-right: 15px;
    min-width: 90px;
}

#news li a {
    text-decoration: none;
    color: #333;
    flex-grow: 1;
    transition: color 0.3s ease;
}

#news li a:hover {
    color: #007bff;
}

/* フッターのスタイル */
footer {
    background-color: #333;
    color: #f8f8f8;
    text-align: center;
    padding: 1.5rem 0;
}

/* フッターのナビゲーションスタイル */
footer nav {
    display: block;
    margin-bottom: 1rem;
}

footer nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

footer nav ul li {
    margin: 0 15px;
}

footer nav ul li a {
    text-decoration: none;
    color: #f8f8f8;
    font-size: 1rem;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: #007bff;
}

footer p {
    margin: 0.5rem 0;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

footer ul li {
    margin: 0 10px;
}

footer ul li a {
    text-decoration: none;
    color: #f8f8f8;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #007bff;
}

/* about.html の会社概要セクションのスタイル */
.profile-list {
    margin: 0 auto;
    max-width: 800px;
    padding: 0;
}

.profile-list dt {
    font-weight: bold;
    background-color: #e9ecef;
    padding: 15px 20px;
    border-left: 5px solid #007bff;
    margin-top: 20px;
}

.profile-list dd {
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.profile-list dd ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.profile-list dd ul li {
    padding-left: 1.5rem;
    position: relative;
}

.profile-list dd ul li::before {
    content: '▶';
    color: #007bff;
    font-size: 0.8em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* contact.html のスタイル */
.contact-details {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-align: left;
}

.contact-details h3 {
    text-align: center;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.contact-list dt {
    font-weight: bold;
    color: #495057;
    margin-top: 1.5rem;
}

.contact-list dd {
    margin-left: 0;
    margin-bottom: 0.5rem;
}

.contact-list dd a {
    color: #007bff;
    text-decoration: none;
}

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

/* 地図コンテナのスタイル */
.map-container {
    margin-top: 2rem;
    padding: 0 1rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}


/* レスポンシブデザインの基本（スマホ対応） */
@media (max-width: 768px) {
    .header {
        justify-content: space-between;
        padding: 1rem;
    }
    
    .header__logo {
        font-size: 1.5rem;
    }

    .header__logo a img {
        height: 25px;
        margin-right: 8px;
    }

    .hamburger {
        display: block;
    }

    .header__nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 15;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        padding-top: 60px;
        box-sizing: border-box;
    }

    .header__nav--active {
        transform: translateX(0);
        display: block;
    }
    
    .header__nav-list {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .header__nav-list li {
        width: 100%;
        text-align: center;
    }
    
    .header__nav-list li a {
        display: block;
        padding: 15px;
        color: #fff;
        text-decoration: none;
        font-size: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .header__nav-list li:last-child a {
        border-bottom: none;
    }
    
    .hamburger--active .hamburger__bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger--active .hamburger__bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger--active .hamburger__bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    main {
        padding: 0 1rem;
        margin-top: 8rem;
    }

    #hero {
        padding: 6rem 0;
        padding-top: 8rem;
    }

    #hero h2 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .slideshow li {
        background-size: cover;
        background-position: center center;
    }
    .profile-list dt {
        padding: 10px 15px;
        font-size: 1rem;
    }
    .profile-list dd {
        padding: 10px 15px;
    }
    .contact-details {
        padding: 1.5rem;
    }
}
