body {
    color: var(--bs-primary);
    line-height: 1.6;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    font-weight: bold;
}

@media screen and (max-width:575px) {
    h1 {
        font-size: 3rem;
    }
}

a {
    text-decoration: none;
}

a:hover {
    color: rgba(89, 48, 7, .8);
    transition: all 0.3s ease 0s;
    text-decoration: underline;
}

a.btn,
a .card {
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(89, 48, 7, .75);
}
.breadcrumbs .current-item {
    color: rgba(89, 48, 7, .75);
}

main {
    margin-top: 68px;
}

/* header navigation ----------------------------*/
.navbar {
    background-color: #ffbbbb;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar-brand img {
    height: 42px;
}

.nav-link {
    color: #593007;
    font-weight: bold;
}

.nav-link:hover {
    color: rgba(89, 48, 7, .8);
}

/*----------------------------------------------------------------------------------------------------------------*/


/*----------------------------------------------------------------------------------------------------------------*/


/* footer ----------------------------*/
.footer-contact {
    background-color: #fce3bb;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-buttons {
    justify-content: center;
}

.footer-buttons .btn-lg.yellow {
    width: 100%;
    height: 4.5rem;
    line-height: 1.25rem;
    margin-bottom: .5rem;
    /* background-color: #ffe1ab; */
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 2px #593007;
}

.footer-buttons .btn-lg.yellow.phone img {
    margin-right: 1rem;
    height: 2rem;
}

.footer-buttons .btn-lg.yellow.mail img {
    margin-right: 1rem;
    width: 2rem;
}

.footer-buttons .btn-lg.yellow .small {
    font-size: .6em;
}

.footer-buttons .btn-lg.yellow:hover {
    background-color: #ffc966;
    color: var(--bs-primary);
}

.footer-menu {
    background-color: #ffbbbb;
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.footer-menu-item {
    display: block;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: .5rem;
}

@media screen and (min-width: 576px) {
    .footer-menu-item {
        display: inline-block;
    }
}

.footer-bottom {
    background-color: #ffbbbb;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.footer-logo {
    height: 42px;
    margin-bottom: 1rem;
}


/* home ----------------------------*/
.home-top {
    background-color: rgba(255, 255, 255, .8);
}

.home-top .block9 {
    margin-top: calc(var(--bs-gutter-x) * .5 * -1);
}

.home-top .block9 img {
    cursor: pointer;
    transition: transform .3s ease;
}

.home-top .block9 .col-4:hover img {
    transform: scale(1.1);
}

/* tooltip customize */
.tooltipster-sidetip .tooltipster-content {
	font-size: 1rem;
	line-height: 1.25rem;
	padding: .5rem 1rem;
    color: #fff;
}

.tooltipster-sidetip.tooltipster-borderless .tooltipster-box {
    background: rgba(89, 48, 7, .9);
}

.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-arrow-border {
    border-top-color: rgba(89, 48, 7, .9);
}

.home-top .img-border {
    display: block;
    overflow: hidden;
    margin-top: calc(var(--bs-gutter-x) * .5);
    margin-bottom: calc(var(--bs-gutter-x) * .5);
    border-right: solid 1px rgba(0, 0, 0, .5);
    border-bottom: solid 1px rgba(0, 0, 0, .5);
}

.home-top .border-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 1px rgba(0, 0, 0, .5);
    width: 100%;
    aspect-ratio: 1;
}

/* News - home and news list */
ul.news-list {
    list-style-type: none;
    border-top: solid 1px rgba(89, 48, 7, .6);
    padding-left: 0 !important;
}

.news-list li {
    padding: .75rem 1rem;
    border-bottom: solid 1px rgba(89, 48, 7, .6);
}

.news-list li>span:first-child { /*.news-list-date*/
    display: inline-block;
    margin-right: 1rem;
}
.news-list li>span:nth-child(2) { /*.news-list-category*/
    display: inline-block;
    min-width: 140px;
}
.news-list li>span:nth-child(3) { /*.news-list-title*/
    display: block;
    margin-top: .25em;
}

@media screen and (min-width: 576px) {
    .news-list li {
        display: flex;
        flex-direction: row;
    }
    .news-list li>span:first-child { /*.news-list-date*/
        margin-right: 1em;
    }
    .news-list li>span:nth-child(2) { /*.news-list-category*/
        min-width: 140px;
        margin-right: 1em;
    }
    .news-list li>span:nth-child(3) { /*.news-list-title*/
        margin-top: 0;
    }
}

.news-list-category>span {
    display: inline-block;
    width: 100%;
    color: rgba(255, 255, 255, .8);
    background-color: rgba(89, 48, 7, .6);
    padding-left: .5em;
    padding-right: .5em;
    text-align: center;
}

.news-category-title {
    margin-bottom: .5rem;
    padding-left: 0 !important;
    border-left: none !important;
    font-size: 1.25rem;
}

.news-category-list {
    border-top: solid 4px #fce3bb;
    border-bottom: solid 4px #fce3bb;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem !important;
}
.news-category-list li {
    list-style-type: none;
    position: relative;
    line-height: 2rem;
    padding-left: .5rem;
}

.news-category-list li::before {
    content: "";
    position: absolute;
    top: calc(50% - .5em);
    left: -1rem;
    width: 1em;
    height: 1em;
    color: var(--bs-primary);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23593007" class="bi bi-chevron-double-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8 3.646 2.354a.5.5 0 0 1 0-.708z"/><path fill-rule="evenodd" d="M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8 7.646 2.354a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-size: 1em 1em;
    -webkit-font-smoothing: antialiased;
}

.news .news-category {
    color: rgba(255, 255, 255, .8);
    background-color: rgba(89, 48, 7, .6);
    padding-left: 1em;
    padding-right: 1em;
}

.home-bunposha-box {
    margin-top: calc(var(--bs-gutter-x) * .5 * -1);
}

.home-bunposha-box>a {
    text-decoration: none;
}

.home-bunposha-box .card {
    border-radius: 0;
    border: none;
    margin-top: calc(var(--bs-gutter-x) * .5);
    margin-bottom: calc(var(--bs-gutter-x) * .5);
}

.home-bunposha-box .card-body {
    background-color: #f0f0f0;
    min-height: 4.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5em;
}

.home-bunposha-box .card-body h5 {
    color: #593007;
    font-size: 1rem;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    margin-bottom: 0;
}

.home-bunposha-box .card-img-bottom {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1;
    background-size: contain;
    transition: transform .5s ease;
}

.home-bunposha-box>a:hover .card-img-bottom img {
    transform: scale(1.4);
}

.home-bunposha-box .card-img-bottom .overlay-gray {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .05), rgba(0, 0, 0, .1), rgba(0, 0, 0, .2));
    background-size: cover;
}

@media only screen and (max-width:575px) {
    .home-bunposha-box {
        margin-top: calc(var(--bs-gutter-x) * .25 * -1);
    }
    .home-bunposha-box>a:nth-child(odd) {
        padding-right: calc(var(--bs-gutter-x) * 0.25);
    }
    .home-bunposha-box>a:nth-child(even) {
        padding-left: calc(var(--bs-gutter-x) * 0.25);
    }
    .home-bunposha-box .card {
        margin-top: calc(var(--bs-gutter-x) * .25);
        margin-bottom: calc(var(--bs-gutter-x) * .25);
    }
}

.line-horizontal {
    border-top: solid 1px #593007;
}

.line-right {
    font-size: 1.2rem;
    border-right: none;
}

@media only screen and (min-width:768px) {
    .line-right {
        border-right: solid 1px #593007;
    }
}

.btn-lg.digital,
.btn-lg.advertise,
.btn-lg.printing,
.btn-lg.others {
    position: relative;
    height: 88px;
    display: flex;
    align-items: center;
    padding-left: 110px;
    margin-bottom: .5rem;
    background-color: #ffe1ab;
}

@media only screen and (min-width:1200px) {
    .btn-lg.digital,
    .btn-lg.advertise,
    .btn-lg.printing,
    .btn-lg.others {
        padding-left: 170px;
    }
}

.btn-lg.digital::before {
    position: absolute;
    content: '';
    width: 70px;
    height: 62px;
    top: .75rem;
    left: 1.5rem;
    background-image: url(../img/digital-contents.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.btn-lg.advertise::before {
    position: absolute;
    content: '';
    width: 70px;
    height: 62px;
    top: .75rem;
    left: 1.5rem;
    background-image: url(../img/advertisement.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.btn-lg.printing::before {
    position: absolute;
    content: '';
    width: 70px;
    height: 62px;
    top: .75rem;
    left: 1.5rem;
    background-image: url(../img/printing.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.btn-lg.others::before {
    position: absolute;
    content: '';
    width: 70px;
    height: 62px;
    top: .75rem;
    left: 1.5rem;
    background-image: url(../img/others.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.business:hover div {
    background-color: #ffc966;
    color: var(--bs-primary);
}

.privacy .article h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-left: .5rem;
    border-left: solid .5rem #fce3bb;
}


/* background ----------------------------*/
main {
    position: relative;
    overflow: hidden;
}

.bg-clippy-yellow {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 3840px;
    height: 90%;
    background-color: #fce3bb;
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 50%);
}
.bg-clippy-pink {
    position: absolute;
    z-index: -1;
    top: 0;
    right: -600px;
    width: 3840px;
    height: 90%;
    background-color: #ffbbbb;
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 50%);
}

.bg-clippy-pink-base {
    position: absolute;
    z-index: -1;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 60%;
    background-color: #ffbbbb;
}


@media only screen and (min-width:768px) {
    .bg-clippy-yellow {
        position: absolute;
        z-index: -1;
        top: 0;
        right: 0;
        width: 3840px;
        height: 95%;
        background-color: #fce3bb;
        clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 50%);
    }
    .bg-clippy-pink {
        position: absolute;
        z-index: -1;
        top: 0;
        right: -900px;
        width: 3840px;
        height: 95%;
        background-color: #ffbbbb;
        clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 50%);
    }
    
    .bg-clippy-pink-base {
        position: absolute;
        z-index: -1;
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 52.5%;
        background-color: #ffbbbb;
    }
}


/* components table ----------------------------*/
.table, .table tr, .table th, .table td {
    background-color: transparent !important;
}
.table>:not(caption)>*>* {
    color: #593007 !important;
    padding: 0.75rem 0.75rem;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    font-weight: normal;
    border-color: rgba(89, 48, 7, .6);
}

@media only screen and (max-width:575px) {
    table.responsiveTable tr {
        border: none !important;
    }

    table.responsiveTable th,
    table.responsiveTable td:first-child {
        width: 100%;
        display: block;
        line-height: 1.5em;
        padding: .5em !important;
        font-weight: bold;
        border: none;
        background-color: rgba(89, 48, 7, .1) !important;
    }

    table.responsiveTable td {
        width: 100%;
        display: block;
        line-height: 1.5em;
        padding: .5em .5em 1em !important;
        border: none;
    }
}

/* .article ----------------------------*/
.article {
    /*line-height: 1.75rem;*/
}

.article ul {
    padding-left: 1rem;
}

.article .table {
    /*line-height: 1.25;*/
}

.article .table tbody tr:first-child {
    border-top: solid 1px rgba(89, 48, 7, .6);
}

.article .table th {
    background-color: #ffdcdc !important;
}

@media only screen and (max-width:575px) {
    .article table.responsiveTable tr th {
        border-top: solid 1px rgba(89, 48, 7, .6);
        border-bottom: solid 1px rgba(89, 48, 7, .6);
    }
}

/* Contact ----------------------------*/
.h2-contact {
    font-size: 1.5rem;
    padding-bottom: .5rem;
    border-bottom: solid 6px #fce3bb;
}
.contact .required {
    color: red;
}
label, .form-label {
    color: var(--bs-primary);
    margin-bottom: 0 !important;
    font-size: 15px;
}
div.form-control {
    color: #593007;
}
input:not([type=checkbox]), .contact textarea {
    border: solid 1px transparent;
    border-radius: 0;
    color: var(--bs-primary);
    background: rgba(89, 48, 7, .15);
}
input:not([type=checkbox]):focus, .contact textarea:focus {
    color: var(--bs-primary);
    background-color: rgba(89, 48, 7, .15);
    border-color: rgba(89, 48, 7, .15);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(89, 48, 7, 0.25);
}
.form-check-input:focus {
    border-color: rgb(89, 48, 7);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(89, 48, 7, 0.25)
}

.contact-confirm .form-control {
        border: none;
}

.btn-return {
    background-color:rgba(89, 48, 7, .5);
    border: none;
}

.contact .line-horizontal {
    display: none;
}

.contact-confirm .line-horizontal {
    display: block;
    margin-bottom: 1rem;
}

.contact-confirm label+br+span {
    padding-left: 1rem;
}
.contact-confirm .kojin-joho {
    display: none;
}


/* components breadcrumb ----------------------------*/
.breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, ">");
}

/* components back2top ----------------------------*/
#back2top {
    display: table;
    position: fixed;
    bottom: -50px;
    right: 20px;
    color: #ffffff !important;
    font-size: 20px;
    z-index: 1000;
    text-decoration: none;
    width: 50px;
    height: 50px;
    background-image: url(../img/back2top.svg);
    background-size: contain;
    background-repeat: no-repeat;
    border-bottom: none !important;
    text-align: center;
    transition: all 500ms 0s ease;
    cursor: pointer;
}

#back2top.up {
    transform: translateY(-70px);
}

#back2top.down {
    transform: translateY(70px);
}

#back2top i {
    display: table-cell;
    vertical-align: middle;
}

#back2top {
    text-decoration: none !important;
}

#back2top:active,
#back2top:focus {
    outline: none;
    border: none;
    text-decoration: none !important;
    color: #ffffff !important;
}

.word-break-all {
    /*長い英数字URLの改行に使用*/
    word-break: break-all;
}

/* button chevron-right white */
.btn-chevron-right-w {
    position: relative;
}

.btn-chevron-right-w::after {
    content: "";
    position: absolute;
    top: calc(50% - .5em);
    right: .5em;
    width: 1em;
    height: 1em;
    color: #fff;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23fff" class="bi bi-chevron-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-size: 1em 1em;
    -webkit-font-smoothing: antialiased;
}


.external-link::after, 
.news-list a[target="_blank"]::after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23593007" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z"/><path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z"/></svg>');;
    width: 1em;
    height: 1em;
    margin-left: .25em;
    vertical-align: middle;
}


/* Pagination */
.wp-pagenavi {
    display: flex;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    padding-top: 2rem;
}

.wp-pagenavi .page:not(:first-child) .page-link {
    margin-left: -1px;
}
.wp-pagenavi .page, 
.wp-pagenavi .current,
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink,
.wp-pagenavi .first,
.wp-pagenavi .last {
    padding: 0.375rem 0.75rem;
    margin-left: 0.125rem;
    margin-right: 0.125rem;
}

.wp-pagenavi .page {
    position: relative;
    display: block;
    color: var(--bs-primary);
    /*background-color: rgba(89, 48, 7, .2);*/
    text-decoration: none;
    border: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.wp-pagenavi .page:hover,
.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .nextpostslink:hover {
    background-color: rgba(89, 48, 7, .2);
    text-decoration: none;
}

.wp-pagenavi .current {
    z-index: 3;
    color: #fff;
    background-color: var(--bs-primary);
    border: none;
}
