@charset "UTF-8";

/*共通部分
-------------------------------------*/
html {
    font-size: 100%;
}

body {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    background-color: #fff;
}

section {
    padding: 60px 20px;
}

h2 {
    font-size: 35px;
}

p {
    font-size: 20px;
}

img {
    max-width: 100%;
}

.inner {
    text-align: center;
}

/*header
-------------------------------------*/
header {
    display: flex;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: inline-block;
}

.logo img {
    width: 100%;
}

header .logo {
    position: absolute;
    top: 7px;
    left: 15px;
    width: 200px;
}

header ul {
    margin-top: 15px;
    display: flex;
    list-style: none;

}

header li {
    padding: 0 20px;
}

header li a {
    text-decoration: none;
    padding: 5px 5px;
    border-radius: 4px;
    color: #4a4a4a;
}

header li a:hover {
    background-color: lightgreen;
    color: #fff;
}

/*key visual
-------------------------------------*/
.mainvisual {
    position: relative;
    overflow: hidden;
}

.mainvisual img {
    width: 100%;
    display: block;
    animation: fadeZoom 2s ease-out forwards;
}

.catchcopy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #024922;
    background: rgba(255, 240, 240, 0.884);
    /* 半透明の黒背景 */
    padding: 20px 30px;
    border-radius: 8px;
    opacity: 0;
    animation: floatUp 2s ease-out 0.5s forwards;
}

.catchcopy .title {
    font-size: 2rem;
    margin-bottom: 10px;
}

@keyframes fadeZoom {
    0% {
        transform: scale(1.1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/*service
-------------------------------------*/
.service {
    background-color: #FFEBD8;
}

.service-card-wrapper {
    display: flex;
    height: 100%;
    justify-content: center;
}

.service-card-wrapper:last-child {
    margin-right: 20px;
}

.card {
    padding: 20px 30px;
    width: 32%;
}

.card img {
    margin-left: 13px;
    width: 100%;
    height: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);

}

.h3-line {
    padding: 15px;
    font-size: 30px;
}

.h3-line p {
    font-size: 10px;
}


/*flow
-------------------------------------*/
.flow ol {
    padding: 50px 30px;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 70px;

}

.flow li {
    list-style: none;
    text-align: center;
    width: 300px;

}

.flow figure img {
    width: 100px;
    height: auto;
}

/*access
-------------------------------------*/
.access {
    align-items: center;
}

.map {
    margin: 15px;
    display: flex;
    gap: 2rem;
}

.info {
    width: 100%;
    max-width: 544px;
    margin: auto;
    border-spacing: 0;
}

.info th,
.info td {
    border-bottom: 1px solid #6ea7a1;
}

.info th {
    text-align: auto;
    font-weight: normal;
    padding: 1rem;
}

.info td {
    display: flex;
    text-align: left;
    padding: 1rem 0;
}

.info td p {
    padding-top: 4px;

}

.info img {
    padding: 5px;
    width: 32px;

}

iframe {
    align-items: center;
    max-width: 100%;
    margin: auto;
}

/*news
-------------------------------------*/
.news a {
    text-decoration: none;
    color: #4a4a4a;
}

.news ul li {
    padding: 10px;
    list-style: none;
    border-bottom: 1px dotted #6ea7a1;
}

.news ul li:nth-child(even) {
    background-color: #FFEBD8;

}

.news ul li time {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
}

.news ul li p {
    font-size: 15px;
}

.news-btn {
    display: block;
    width: 150px;
    text-align: center;
    text-decoration: none;
    color: #4a4a4a;
    background-color: #FFEBD8;
    font-size: 16px;
    margin: 20px auto;
    padding: 5px 0;
    border: 1px solid #fcddc0;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
}

.news-btn:hover {
    opacity: 0.7;
}

/*footer
-------------------------------------*/
footer {
    width: 100%;
    text-align: center;

}

footer .logo {
    width: 160px;
    margin: 15px 0;
}

.footer-access {
    background-color: lightgreen;
}

footer p small {

    height: 30px;
    font-size: 10px;
    line-height: 30px;
}

/* ハンバーガー初期非表示*/
.hamburger{
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}
     

@media screen and (max-width:768px) {
    h2 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }

    .h3-line {
        padding: 8px;
        font-size: 20px;
    }

    .h3-line p {
        font-size: 5px;
    }

    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        position: relative;
    }

    .main-nav {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease;
        flex-direction: column;
        gap: 1rem;
        background-color: #fff8cf;
        padding: 0 1rem;
        position: absolute;
        top: 60px;
        right: 1rem;
        border-radius: 10px;
        z-index: 10;
    }

    /* メニュー開いたとき */
    .main-nav.open {
        max-height: 250px;
        /* 適当に大きめにしておく */
        opacity: 1;
        padding: 1rem;
    }

    /* メニューのリンク */
    .main-nav li a {
        display: block;
        padding: 0.25rem;
        color: #000;
        background-color: #fff8cf;
        transition: background-color 0.3s ease;
    }

    .main-nav li a:hover {
        background-color: #d8e5a6;
        color: #000;
        outline: none;
    }

    /* ハンバーガーボタン */
    .hamburger{
        display: block;
        color: #333;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    .catchcopy {
        width: 50%;
        height: auto;
        font-size: 1.25rem;
    }

    .title {
        white-space: normal;
    }

    .service-card-wrapper,
    .flow ol {
        flex-direction: column;
        align-items: center;

    }

    .card {
        width: 90%;
        margin-bottom: 20px;

    }

    .map {
        flex-direction: column;
    }



}