@charset "utf-8";

:root {
    --dark-green: hsl(164, 24%, 58%);
    --table-green: hsl(159, 9%, 35%);
    --sub-green: hsl(159, 23%, 85%);
    --accent-color: hsl(15, 100%, 60%);
    --foot-blue: hsl(180, 20%, 94%);
}

@media (max-width: 480px) {}

*,
*:before,
*:after {
    box-sizing: border-box;
}

/* for material icons */
.material-symbols-outlined {
    font-size: 18px;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 20;
    display: inline-flex;
    vertical-align: middle;
}

body {
    background: hsl(38deg 1% 99%);
    color: hsl(0 0% 20% / 1);
    font-size: .9em;
    font-family: YakuHanJPs, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    line-height: 1.6;
    margin: 0;
}

a:link,
a:visited {
    text-decoration: none;
    color: #000;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

strong {
    font-weight: 600;
}

em {
    color: var(--accent-color);
    font-style: normal;
}

small {
    color: #666;
    font-size: .9em;
}

.big {
    font-size: 1.2em;
}

.t-center {
    text-align: center;
}

.t-right {
    text-align: right;
}

.t-white {
    color: #fff;
}

/* 開閉コンテンツ用 */
summary {
    cursor: pointer;
}

details {
    transition: .5s;
}

/* ここまで */
header {
    margin: 2.4em auto;
    max-width: 720px;
    text-align: center;
}

main {
    @media (max-width: 720px) {
        margin: 0 .6em;
    }

    a {
        text-decoration: underline !important;
    }
}

.container {
    max-width: 720px;
    margin: auto;
}

.head-nav {
    background: linear-gradient(180deg, hsl(156, 15%, 98%), hsl(160, 20%, 88%) 60%, hsl(168, 45%, 96%));
    border: 1px solid var(--sub-green);
    border-radius: 6px;
    box-shadow: 0 1px 7px -4px rgba(0, 0, 0, .3);
    margin: .6em 0;
    text-shadow:
        1px 1px 2px #fff,
        -1px 1px 2px #fff,
        -1px -1px 2px #fff,
        1px -1px 2px #fff;

    ul {
        align-items: center;
        display: flex;
        flex-flow: row;
        justify-content: space-between;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    li {
        flex: 1;
        margin: 0;
        padding: 0;
        width: 100%;

        &:not(:last-child) {
            border-right: 1px solid var(--sub-green);
        }
    }

    a {
        align-items: center;
        display: flex;
        /* font-family: "Kosugi Maru", sans-serif; */
        font-size: .85em;
        flex-direction: column;
        justify-content: center;
        letter-spacing: .15em;
        line-height: 1.3;
        padding: .7em 0;
        text-decoration: none;

        span {
            color: var(--dark-green);
            /* margin-right: .2em; */
        }
    }
}

h1,
h2,
h3,
h4 {
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: .05em;
    margin: 2.4em 0 1.2em;
}

.page-title {
    border-bottom: 2px solid var(--sub-green);
    font-size: 1.33em;
    letter-spacing: .1em;
    margin: 1em 0 2em;
    padding-bottom: .2em;
}

h2 {
    font-size: 1.22em;
    padding-left: .8em;
    position: relative;

    &::before {
        position: absolute;
        top: .2em;
        bottom: .2em;
        left: 0;
        width: 5px;
        content: "";
        background-color: var(--sub-green);
        border-radius: 2px;
    }
}

/* h2 {
    background-color: var(--dark-green);
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 1.22em;
    padding: .4em .8em;

} */

h3 {
    font-size: 1.1em;
    padding-left: 1.1em;
    position: relative;

    &::before {
        position: absolute;
        top: calc(50% - .3em);
        left: 0;
        width: .6em;
        height: .6em;
        content: '';
        border-radius: 50%;
        background: var(--sub-green);
    }
}

h4 {
    color: var(--dark-green);
    font-size: 1.05em;
}

p {
    margin: 0 0 1em;
}

figure {
    margin: 1.5em 0;
    position: relative;

    figcaption {
        background: linear-gradient(180deg, transparent, hsl(0deg 0% 0% / 50%));
        color: #fff;
        font-style: italic;
        text-align: right;
        padding: 1.5em;
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;

        @media (max-width: 480px) {
            font-size: .9em;

        }
    }
}

ol,
ul {
    margin: 1em 0 2em;

    li {
        margin-bottom: .6em;
        padding-left: .5em;

        &::marker {
            color: hsl(0 0% 30% / 1);
            font-weight: bold;
        }
    }
}

.float-right {
    /* border: 1px solid hsl(0deg 0% 92%); */
    box-shadow: 0 0px 10px -3px rgba(0, 0, 0, .1);
    float: right;
    margin: 0 0 1.5em 1.5em;
    max-width: 30%;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.scroll-box {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    margin: 1em auto 1em 0;
    min-width: 90%;
    table-layout: fixed;
    white-space: nowrap;

    th,
    td {
        border: solid 1px var(--table-green);
        padding: .9em;
    }

    th {
        background-color: hsl(164, 19%, 68%);
    }

}

.flex-box {
    align-items: center;
    display: flex;
    gap: 2em;
    justify-content: space-between;

    &.even {
        align-items: flex-start;

        p {
            flex: 1;

            &:has(img) {

                text-align: center;
            }
        }

        dl {
            flex: 1;
            display: flex;
            flex-wrap: wrap;
            width: 100%;

            dt {
                text-align: right;
                width: 26%;
            }

            dd {
                margin: 0;
                padding-left: 2em;
                width: 73%;
            }
        }
    }

    &.flex-start {
        align-items: flex-start;
    }

    &.smt-column {
        @media (max-width: 480px) {
            flex-direction: column;
            gap: .5em;

            /* p:has(img) {
                text-align: center;
                width: 100%;
            } */
            p {
                margin: 1em auto;

                &.address {
                    font-size: .8em;
                    margin: 0 auto;
                }
            }
        }
    }
}

.two-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 3em;
    align-items: center;
    position: relative;

    &::before {
        /* border: 6px solid #d0e2db; */
        border-radius: 20px;
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        z-index: -1;
    }

    @media (max-width: 480px) {
        grid-template-columns: 1fr;
    }

    p {
        margin: 0;
    }

    img {
        border-radius: 2px;
        max-width: 350px;

        @media (max-width: 480px) {
            display: block;
            margin: .5em auto;
            max-width: 100%;
        }
    }

    p:nth-child(2) {
        /* background: hsl(0 0% 100% / 1);
        border-radius: 6px;
        box-shadow: 0 0 12px -6px rgba(0, 0, 0, .1);
        margin-left: -5em;
        padding: 2em; */
    }
}

/* .grid-inner {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
} */

.border-wrap {
    border: 1px solid var(--sub-green);
    border-width: 1px 0;
    margin: 1em 0;
    padding: 2em 0;

    h4:first-child {
        margin-top: 0;
    }

    p:last-child {
        margin-bottom: 0;
    }

    ul:last-child {
        margin-bottom: 0;
    }
}

footer {
    margin: 2em auto 0;
    padding: 2em 0;
    text-align: center;
}

.foot-menu {
    align-content: center;
    align-items: center;
    background-color: var(--foot-blue);
    display: flex;
    flex-wrap: wrap;
    font-size: .9em;
    gap: 3em;
    justify-content: center;
    line-height: 1.3;
    margin-bottom: 2.4em;
    padding: 2em;
}

.copyright {
    font-size: .8em;
    line-height: 2;
    padding-top: 2em;
}