﻿
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f4f7f9;
    margin: 0;
    padding: 0;
}

header, footer {
    background-color: #2C3e50;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
}

header img,h2 {
    display: inline-block;
}
header nav {
    display: block;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 30px 20px;
    background-color: #faf3e0;
}

    main img {
        width: 100px;
        height: auto;
        margin-right: 10px;
    }

.imgtop {
    width: 400px;
    height: auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.table-container {
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    border: 1px solid #ddd;
}

    .table-container:hover {
        transform: scale(1.05);
    }

table {
    width: 100%;
    border-collapse: collapse;
}



td, th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}


h2 {
    font-size: 24px;
    margin: 20px 0;
}

.keyword-box {
    width: 400px;
    margin-right: 10px;
}

@media screen and (max-width: 600px) {
    .keyword-box {
        width: 200px;
    }
    header, footer {
        padding: 10px;
        font-size: 16px;
    }
    nav a {
        font-size: 12px;
        margin: 0 8px;
    }
    h2 {
        font-size: 18px;
        margin: 10px 0;
    }
    .tab-button {
        font-size: 14px;
        padding: 8px 12px;
    }
    main img {
        width: 80%;
        height: auto;
        margin-right: 10px;
    }

    .imgtop {
        width: 80%;
        height: auto;
    }
}


.twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .twocol {
        grid-template-columns: 1fr;
    }
}

.search-btn {
    margin-top: 3px
}

/* ポップアップ用 */
#popup {
    display: none;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
    max-width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-sizing: border-box;
}

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

#popup-close {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
}



h1 {
    text-align: center;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.tab-button {
    padding: 10px 20px;
    background-color: #eee;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 16px;
}

    .tab-button.active {
        background-color: #007acc;
        color: #fff;
    }

.tab-content {
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

    .tab-content.active {
        display: block;
    }

.step-image {
    width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
