/* Fonts moved to header.php */

.wrapper {
    max-width: 1080px;
    margin: 0 auto;
}

.wrappered {
    max-width: 768px;
    margin: 0 auto;
}

form.sent .innersent {
    display: none;
}

a {
    text-decoration: none;
}

ul li {
    list-style: none;
}

a:hover {
    opacity: 0.7 !important;
}

p {
    font-family: 'Noto Sans JP', sans-serif;
}

span {
    font-family: 'Noto Sans JP', sans-serif;
}

a {
    font-family: 'Noto Sans JP', sans-serif;
}

h1 {
    font-family: 'Zen Maru Gothic', sans-serif;
}

h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
}

h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
}

h4 {
    font-family: 'Zen Maru Gothic', sans-serif;
}

h5 {
    font-family: 'Zen Maru Gothic', sans-serif;
}

p.zen {
    font-family: 'Zen Maru Gothic', sans-serif;
}

time {
    font-family: 'Noto Sans JP', sans-serif;
}

input {
    font-family: 'Noto Sans JP', sans-serif;
}

textarea {
    font-family: 'Noto Sans JP', sans-serif;
}

ol li {
    font-family: 'Noto Sans JP', sans-serif;
}

ul li {
    font-family: 'Noto Sans JP', sans-serif;
}

table {
    font-family: 'Noto Sans JP', sans-serif;
}

td {
    font-family: 'Noto Sans JP', sans-serif;
}

tr {
    font-family: 'Noto Sans JP', sans-serif;
}

dd {
    font-family: 'Noto Sans JP', sans-serif;
}

dt {
    font-family: 'Noto Sans JP', sans-serif;
}

.clearfix::after {
    content: "";
    display: block;
    width: 0;
    clear: both;
}

.padleftright {
    padding-left: 3%;
    padding-right: 3%;
}

.upnav {
    float: right;
    margin-right: 6%;
}

#humMenu {
    padding: 6px;
    float: right;
    position: fixed;
    right: 1px;
    background-color: rgba(255, 255, 255, 0.7);
}


#humCheck,
#humClose {
    display: none;
}

#humOpen {
    display: block;
    width: 40px;
    cursor: pointer;
}

#humOpen:hover {
    opacity: 0.5;
}

#humOpen img {
    display: block;
}

#humClose,
#humMenu nav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
}

#humClose {
    z-index: 2;
    width: 100%;
    background: gray;
    opacity: 0.8;
    transition: 0.5s;
}

#humMenu nav {
    z-index: 3;
    width: 250px;

    transition: 0.5s;
    transform: translateX(100%);
}

#humCheck:checked~#humClose {
    display: block;
}

#humCheck:checked~nav {
    background-color: #9D8F66;
    transform: translateX(0);
    z-index: 1000000;
}

#humMenu nav ul {
    overflow: hidden;
    list-style: none;
}

#humMenu nav li {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 15px 0;
    margin: 10px 0;
    padding-left: 20px;
}

#humMenu nav li:first-child {
    padding-top: 30px;
}

#humMenu nav li:hover {
    opacity: 0.5;
}

#humMenu nav li a {
    font-size: 20px;
    text-decoration: none;
    font-size: 20px;
    color: #fff;
}

nav.glopc {
    display: none;
}

.pc {
    display: none;
}

.pcinline {
    display: none;
}

.sptabyes {
    display: block;
}

.pc1280 {
    display: none;
}


.headtitle {
    float: left;
    padding: 8px 12px;
    border-radius: 0 0 20px 0px;
    width: 306px;
    background-color: #A5CE20;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.headtitle a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.headtitle img {
    width: 30px;
    height: auto;
    flex-shrink: 0;
}

.headtitle p {
    color: #fff;
}

.headtitle p.headerp {
    font-size: 14px;
    margin-top: 6px;
}

.headtitle div {}

.headtitle p.kishiwada {
    font-size: 12px;
    padding-bottom: 4px;
    line-height: 1.3em;
}


footer {
    background-image: url(../img/footerbg.png);
    padding-top: 40px;
    margin-bottom: 97px;
    background-size: 300%;
}

footer .footertitle p {
    color: #722929;
    font-weight: bold;
    font-size: 16px;
}

footer .footertitle p.redbold {
    color: #dc143c;
}

footer .footertitle h2 {
    color: #722929;
    font-weight: bold;
    font-size: 20px;
    padding-bottom: 8px;
}

.footertitle {
    border-bottom: 1px solid #722929;
    padding-bottom: 17px;
    margin-bottom: 15px;
}

footer .innerul {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

footer .innerul li:nth-child(odd) {
    margin-right: 5%;
}

footer .innerul li {
    width: 32%;
    padding-bottom: 11px;
    line-height: 1.5em;
    color: #722929;
    font-weight: bold;
    padding-left: 20.5px;
    text-indent: -20.5px;
}

footer .innerul li a {
    color: #722929;
}

footer ul.footul li a {
    color: #fff;
}

footer .innerul li:before {
    content: '';
    display: inline-block;
    width: 21px;
    height: 14px;
    background-image: url(../img/arrowbr.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: baseline;
}

.footerbottom {
    background-color: #8B701E;
    padding-top: 5px;
    padding-bottom: 5px;

}

.footerbottom p {
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: bold;

}

.footlink a.footinnerlink {
    display: block;
    margin-bottom: 20px;
    color: #722929;
    font-weight: bold;
}

.footlink a.footinnerlink:before {
    content: '';
    display: inline-block;
    width: 21px;
    height: 14px;
    background-image: url(../img/arrowbr.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: baseline;
}

.spcontact {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #FFFBF5;
}

.spcontact img {
    width: 47%;
}

.spcontact a:first-child img {
    margin-right: 4%;
}

.spcontact a:nth-child(3) img {
    margin-right: 4%;
}

.spcontacttop p {
    color: #8B701E;
    line-height: 1.5em;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
}

.spcontacttop {
    background-color: rgba(255, 255, 255, 0.8);
    position: fixed;
    bottom: 0px;
    font-size: 0;
    z-index: 99;
    padding-top: 6px;
    padding-bottom: 3px;
    width: 95%;
}

.nodp {
    display: none;
}

.side {
    display: none;
}

.footdiv {
    margin-bottom: 40px;
}

@media (min-width:768px) {
    .sptabyes {
        display: block;
    }

    .side {
        display: none;
    }

    .sp {
        display: none;
    }

    .pc {
        display: block;
    }

    .pcinline {
        display: inline;
    }

    .nodp {
        display: none;
    }

    .topcontact {
        display: flex;
        flex-wrap: wrap;
        width: 320px;
        float: right;
        padding-top: 8px;
    }

    .topcontact img {
        width: 45%;

    }

    .topcontact div {
        width: 100%;
    }

    .topcontact div p {
        font-size: 1vw;
        text-align: center;
        color: #8B701E;
        line-height: 1.5em;
        font-weight: bold;
    }

    .headtitle div {
        width: auto;
    }

    .headtitle {
        width: 375px;
        padding: 10px;
    }

    .headtitle img {
        padding-top: 0;
    }

    .topcontact img {
        width: 155px;
    }

    .topcontact a:first-child img {
        margin-right: 2%;
        padding-right: 10px;
    }

    footer {
        margin-bottom: 130px;
    }

    .spcontact {
        width: 700px;
        display: block;
        margin: 0 auto;
    }

    @media (min-width:1080px) {
        header {
            z-index: 100000;
            position: fixed;
            width: 100%;
            background-color: #fff;
        }

        .wrap {
            width: 800px;
            margin: 0 auto;
        }

        .nodp {
            display: block;
        }

        .sptabyes {
            display: none;
        }

        .onlypc {
            display: none;
        }

        .padleftright {
            padding-left: 0;
            padding-right: 0;
        }

        .headtitle div {
            width: auto;
            max-width: none;
        }

        .headtitle {
            width: 45%;
            padding: 10px;
        }

        .headtitle a {
            gap: 15px;
        }

        .topcontact img {
            width: 25vw;
        }

        .topcontact {
            width: 53%;
            padding-top: 20px;
        }

        .headtitle p {
            color: #fff;
            font-weight: bold;
            font-size: 2.5vw;
        }

        .headtitle p.headerp {
            font-size: 1.4vw;
            margin-top: 12px;
        }

        .headtitle img {
            padding-top: 0;
            width: 40px;
        }

        .headtitle p.kishiwada {
            font-size: 1.5vw;
        }

        .topul {
            clear: both;
            display: flex;
            flex-wrap: wrap;
        }

        .topulbg {
            background-color: #9D8F66;
            clear: both;

        }

        .topul li {
            text-align: center;
            width: 115px;
            font-weight: bold;
            border-right: 1px solid #fff;
            font-size: 14px;
            margin-top: 20px;
            margin-bottom: 20px;

        }

        .topul li a {
            color: #fff;

        }

        .topul li:last-child {
            border-right: none;
        }

        .spcontacttop {
            position: static;
            width: 30%;
        }

        .footdiv {
            width: 59%;
        }

        .spcontact {
            padding-top: 0;
            width: auto;
        }

        .upfootdiv {
            display: flex;
            flex-wrap: wrap;
        }

        .spcontacttop {
            position: static;
            background-color: #FFFBF5;
            width: 35%;
        }

        .footertitle {
            margin-right: 13%;
        }

        .spcontact img {
            width: 95%;
            margin-bottom: 20px;
        }

        .spcontact img:nth-child(2) {
            margin-left: 11px;
        }

        .spcontacttop p {
            text-align: left;
            font-size: 14px;
        }

        footer {
            padding-top: 115px;
            margin-bottom: 0;
            background-size: 170%;
        }

        footer .innerul {
            padding-bottom: 20px;
        }

        .footul {
            clear: both;
            display: flex;
            flex-wrap: wrap;
        }

        .footulbg {
            background-color: #9D8F66;
            clear: both;

        }

        .footdiv {
            padding-left: 3%;
            padding-right: 3%;
        }

        .footul li {
            text-align: center;
            width: 150px;
            font-weight: bold;
            border-right: 1px solid #fff;
            font-size: 14px;
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .footul li {
            color: #fff;
        }

        .footul li:last-child {
            border-right: none;
        }

        .footerbottom p {
            padding-top: 10px;
            padding-bottom: 10px;
        }

        @media (min-width:1600px) {
            .side {
                display: block;
                width: 250px;
                position: fixed;
                bottom: 15%;
                right: 1%;
            }

            .side div {
                padding-top: 0;
                width: auto;
            }

            .upfootdiv {
                display: flex;
                flex-wrap: wrap;
            }

            .side img {
                width: 95%;
                margin-bottom: 10px;
            }

            .side div img:nth-child(2) {
                margin-left: 4px;
            }

            .side p {}

            .side p {
                color: #8B701E;
                line-height: 1.5em;
                font-weight: bold;
                text-align: center;
                font-size: 14px;
            }
        }

    }
}

/* Author Section */
.author-section {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 25px;
    margin-top: 60px;
    margin-bottom: 40px;
    background-color: #fff;
    /* 記事幅に合わせる */
    margin-left: auto;
    margin-right: auto;
}

.columnpostdiv .author-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0px;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.author-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.columnpostdiv .author-img {
    margin-right: 25px;
    width: 14%;
}

.columnpostdiv .author-img img {
    border-radius: 10px;
    height: auto;
    ;
    width: 100%;
    object-fit: cover;
    border: 1px solid #eee;
    margin-top: 0px;
    margin-bottom: 0;
}

.columnpostdiv .author-info {
    flex: 1;
}

.columnpostdiv .author-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 0px;
    margin-top: 0;
}

.columnpostdiv .author-name a {
    color: #0044cc;
    text-decoration: underline;
}

.columnpostdiv .author-name a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.columnpostdiv .author-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0px;
    color: #333;
    margin-top: 0px;
}

.columnpostdiv .author-text p {
    margin-top: 0px;
    margin-bottom: 0px;
}

.columnpostdiv .author-link-detail {
    text-align: left;
    margin-top: 0px;
    margin-bottom: 0;
}

.columnpostdiv .author-link-detail a {
    font-weight: bold;
    text-decoration: underline;
    color: #0044cc;
    font-size: 14px;
}

@media (max-width: 768px) {
    .columnpostdiv .author-inner {
        flex-direction: column;
    }

    .columnpostdiv .author-img {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }


    .columnpostdiv .author-section {
        padding: 20px;
        border-width: 1px;
    }

    .columnpostdiv .author-title {
        font-size: 16px;
    }

    .columnpostdiv .author-name {
        font-size: 18px;
        display: block;
        margin-bottom: 5px;
        text-align: center;
    }

    .columnpostdiv .author-text {
        text-align: left;
    }

    .columnpostdiv .author-link-detail {
        text-align: center;
    }

    .columnpostdiv .author-img img {
        max-width: 250px;
    }
}

/* Table of Contents */
.toc-container {
    background-color: #f9f9f9;
    padding: 20px 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    clear: both;
    /* Ensure no float interference */
}

.toc-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
    font-family: 'Zen Maru Gothic', sans-serif;
    border: none;
    /* Reset potential borders */
}

.toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.toc-list li {
    list-style: none !important;
    margin: 0 0 10px 0 !important;
    border-bottom: 1px dashed #ccc;
    padding: 0 0 5px 15px !important;
    position: relative;
    background: none !important;
    /* Reset inherited backgrounds */
    width: auto !important;
    /* Reset potential width constraints */
    float: none !important;
    /* Reset potential floats */
    text-align: left !important;
    line-height: unset !important;
    ;
    text-indent: unset !important;
    ;
}

.toc-list li:before {
    content: "▼";
    font-size: 10px;
    color: #A5CE20;
    position: absolute;
    left: 0;
    top: 7px;
    display: block;
    width: auto;
    height: auto;
    background: none;
}

.toc-list li:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
}

.toc-list li a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 15px;
    display: block;
    line-height: 1.6;
    background-color: transparent !important;
}

.toc-list li a:hover {
    text-decoration: underline !important;
    opacity: 0.7;
    color: #A5CE20 !important;
}

/* Ensure smooth scrolling when clicking anchors */
html {
    scroll-behavior: smooth;
}