@import '01_font-sizes.css';
/* .wrapper{
    display: flex;
    width: 80%;
    margin: 0 auto;
} */

.wrapper{
    border: 4px solid black;
    background-color: white;
    opacity: 94%;
    padding: 22px;
}

footer{
    /* background-color: white; */
    opacity: 94%;
}

.wrapper .top{
    width: 100%;
    margin: 0 auto;
    text-align: center; /* 子要素の画像を親要素を基準に真ん中にする */
}

.wrapper .top .logo{
    width: 80%;
    max-width: 400px;
    display: block;
}

.wrapper .top table{
    display: inline;
}

.box{
    display: flex;
    width: 70%;
    margin: 0 auto;
    justify-content:center;
}

.box-left, .box-right{
    padding: 2%;
}

.gmap .map{
    border: 4px solid black;
    width: 522px;
    height: 522px;
}

.wrapper .top td{
    letter-spacing: 2px;
    vertical-align: top;
    text-align: left;
}

.wrapper .top th{
    letter-spacing: 2px;
    vertical-align: top;
    text-align: left;
}

/* .wrapper .top table{
    display: block;
    margin-right: auto;
    margin-left: auto;
} */


footer {
    color: black;
    text-align: center;
    padding: 1em;
    border-left: 4px solid black;
    border-right: 4px solid black;
    border-bottom: 4px solid black;
}

.map iframe{
    width: 100%;
    height: 100%;
}

.kogai {
    text-align: center;
}

.kogai img {
    width: 14%;
    border: 2px solid black;
}

.h_main_icon{
    width: 80px;
    border-radius: 50%;
    border: 2px solid black;
}

.f_icon{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px;
}

/* フッターのスタイリング */
footer {
    background-color: #f8f8f8;
    border-top: 4px solid black;
    padding: 20px 0;
}

.footer-sitemap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    /* max-width: 800px; */
    margin: 0px auto;
    padding: 0 315px;
}

.footer-section {
    flex: 1;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    line-height: 1.6em;
    color: black;
    padding: 10px 0 10px 0.2em;
    margin-left: 0;
    position: relative;
    z-index: 1;
    display: flex;
}

.footer-section h3::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0;
    width: 30px;
    height: 100%;
    background-image: url(./images/背景画像/058.webp);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* display: inline-block; */
    margin-left: 40px;
}

.footer-section p {
    margin: 5px 0;
    font-size:calc(var(--font-size-lg) + 10px);
    padding-left: 0;
    text-align: left;
    min-width: 500px;
}

.footer-section ul li a {
    color: #333;
    /* text-decoration: none; */
    /* font-size: 14px; */
}

.footer-section ul li a:hover {
    color: #ff6600;
    text-decoration: underline;
}

.footer-section img {
    width: 200px;
}

.footer-contact p {
    margin: 5px 0;
    /* font-size: 14px; */
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .footer-sitemap {
        flex-direction: column;
        padding: 0 15px; /* モバイルでの左右パディングを調整 */
    }
    
    .footer-section {
        width: 100%;
        min-width: auto;
    }

    .footer-section ul {
        margin-left: 20px; /* モバイルでの左マージンを調整 */
    }

    .footer-section p {
        min-width: unset; /* 固定幅を解除 */
        width: 100%; /* 親要素いっぱいに広げる */
        font-size: calc(var(--font-size-lg) + 5px); /* フォントサイズをやや小さく */
    }

    .footer-section h3 {
        padding: 8px 0 8px 0.2em; /* 上下パディングを少し小さく */
    }

    .footer-section h3::before {
        width: 25px; /* 背景画像の幅を少し小さく */
    }
}

/* 超小型デバイス用の追加調整 */
@media screen and (max-width: 480px) {
    .footer-sitemap {
        padding: 0 10px;
    }

    .footer-section {
        padding: 0 5px;
    }

    .footer-section ul {
        margin-left: 10px;
    }

    .footer-section p {
        font-size: calc(var(--font-size-lg) + 2px);
    }

    .copyright p {
        padding-left:0;
    }
}