body {
    font-family: serif;
    font-family: serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-top: 50px;
}

main, .back-wrapper {
    flex: 1;
}

.back {
    background-color: #ffffff;
    margin: 1%;
    padding: 2%;
    margin-bottom: 0;
}

/* メニュー*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    background-color: #008000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    color: #ffffff;
    font-size: 22px;
    margin-left: 20px;
    flex: 1;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 38%;
    transition: all 0.5s ease-in-out;
}

.nav-links li {
    list-style: none;
    margin: auto;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: all 0.4s ease-in-out;
}

.nav-active {
    transform: translateX(0%) !important;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links li:nth-child(5) a{
    color: #66FF66;
}

.nav-links li a:hover {
    color: #66FF66;
}
/* ここまでメニュー */

h1 {
    margin-top: 90px;
    text-align: center;
}

h2 {
    border: #008000 solid;
    border-width: 0 0 3px 5px;
    padding-left: 7px;
    margin-left: 10px;
    margin-top: 20px;
}

.guide {
    text-align: center;
    margin-top: 30px;
    font-size: 20px;
    line-height: 1.6;
}

.contact{
    font-size: 30px;
    text-align: center;
}

.address{
    font-size: 25px;
    margin-left: 50px;
}

.address iframe {
    width: 100%;
    max-width: 600px;
    height: 300px;

}

/* スクロールボタン */
.scroll-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #006400;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
}
/*ここまでスクロールボタン */

/* スクリーンリーダー専用テキスト */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* フィギュア要素 */
figure {
    margin: 10px 0;
}

figcaption {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* アーティクル・セクション */
article section {
    margin-bottom: 40px;
}

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

/* フッター */
footer {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid #008000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin: 10px 0;
}

footer address {
    font-style: normal;
    margin-top: 10px;
    line-height: 1.6;
}

footer a {
    color: #008000;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    figure {
        margin: 10px 0;
    }
    
    article section {
        margin-bottom: 30px;
    }
    
    footer {
        padding: 15px;
        margin-top: 30px;
    }
    
    footer address {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    article section {
        margin-bottom: 25px;
    }
    
    footer {
        padding: 10px;
        margin-top: 20px;
    }
    
    footer p,
    footer address {
        font-size: 12px;
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    .nav-links {
        width: 55%;
    }
    
    .logo {
        font-size: 20px;
    }
    
    h1 {
        font-size: 26px;
        margin-top: 80px;
    }
    
    .guide {
        font-size: 18px;
        margin-top: 50px;
        padding: 0 20px;
    }
    
    .contact {
        font-size: 26px;
    }
    
    .address {
        font-size: 22px;
        margin-left: 30px;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .logo {
        font-size: 18px;
        margin-left: 10px;
    }
    
    .logo-img {
        height: 30px;
    }

    nav {
        background-color: #008000;
        width: 100%;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: #008000;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
        margin-right: 10px;
        background-color: #008000;
    }
    
    h1 {
        font-size: 22px;
        margin-top: 70px;
        padding: 0 15px;
    }
    
    .guide {
        font-size: 16px;
        margin-top: 40px;
        padding: 0 20px;
    }
    
    .contact {
        font-size: 22px;
        padding: 0 15px;
    }
    
    .address {
        font-size: 18px;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .address iframe {
        width: calc(100% - 40px);
        height: 350px;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 14px;
    }
    
    .logo-img {
        height: 25px;
        margin-right: 5px;
    }
    
    .nav-links {
        width: 70%;
    }
    
    h1 {
        font-size: 18px;
        margin-top: 65px;
        padding: 0 10px;
    }
    
    .guide {
        font-size: 14px;
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .contact {
        font-size: 18px;
        padding: 0 10px;
        line-height: 1.6;
    }
    
    .address {
        font-size: 16px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .address iframe {
        width: calc(100% - 30px);
        height: 300px;
    }
    
    .scroll-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 18px;
    }
}

@keyframes navLinksFade {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}