/* ========================================
   Page Styles
   ======================================== */

/* 共通項目 */
.pc-only {
    display: inline-table;
}

.mobile-only {
    display: none;
}

.xpc-only {
    display: inline-table;
}

@media screen and (max-width: 768px) {
    .xpc-only {
        display: none;
    }
}

@media screen and (max-width: 630px) {
    .pc-only {
        display: none;
    }

    .mobile-only {
        display: inline-table;
    }
}


body:not(.home) main a {
    text-decoration: underline;
}

body:not(.home) main a:hover {
    text-decoration: none;
}

/* リスト */
ul,
ol {
    padding: 16px;
    line-height: 1.8;
}


/* 見出し */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0.02em;
}


h1 {
    padding: 8px;
    border-radius: 4px;
    background: #a91315;
    color: #fff;
    font-size: 1.4em;
    max-width: 950px;
    margin: 30px auto 0;
    font-weight: normal;
}

h2 {
    padding: 0 16px;
    border-left: 3px solid #a91315;
    font-size: 1.3em;
    margin-bottom: 1rem;
}

.business-page h2,
.job-page h2 {
    margin: 20px auto 0.5em;
    padding: 5px 0;
    font-size: 1.5em;
    border-left: none;
    max-width: 950px;
    font-weight: 500;
}


.business-page h3.section-subtitle {
    position: relative;
    color: #FFF;
    font-size: 1em;
    font-weight: normal;
    max-width: 950px;
    margin: 0 auto 20px;
    border-radius: 3px;
    padding: 5px 8px;
}

.business-page h3.section-subtitle:before {
    content: "■";
    left: 0;
    margin-right: 2px;
}


/* Header */
.header {
    background-color: #ffffff;
}

.header-logo {
    padding: var(--spacing-sm) 0;
    background: linear-gradient(to bottom, rgba(175, 20, 20, 1) 0%, rgba(162, 19, 22, 1) 48%, rgba(150, 18, 23, 1) 100%);
    text-align: center;
}

.nav-header {
    display: none;
}



@media (max-width: 768px) {
    header {
        background: linear-gradient(to bottom, rgba(175, 20, 20, 1) 0%, rgba(162, 19, 22, 1) 48%, rgba(150, 18, 23, 1) 100%);
        z-index: 100000;
        position: fixed;
        height: 57px;
    }

    .nav-header {
        display: flex;
        align-items: center;
        position: relative;
        z-index: 10000;
        grid-column-start: 1;
        grid-column-end: 2;
        width: 85%;
        padding-left: 8px;
    }

    .header-logo {
        display: none;
    }

    .nav-logo img {
        height: auto;
        max-width: 890px;
        width: 95%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 72px;
    }
}

@media (max-width: 630px) {
    main {
        padding-top: 54px;
    }
}

#nav-area {
    width: 100%;
}

.nav {
    border-bottom: 1px solid #af1414;
}

.nav.fixed {
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 950px;
    padding: 10px 0;
}

/* Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 3px;
    background-color: var(--color-bg);
    transition: var(--transition);
}

.nav-box {
    width: 100%;
}

.nav-list {
    display: flex;
    gap: 0.2em;
    align-items: center;
    justify-content: center;
    width: 100%;
    line-height: 1.4;
    min-height: 24px;
}

.nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.nav-item:first-child:before {
    position: absolute;
    content: "";
    border-left: 1px solid #666;
    height: 24px;
    left: 0;
    top: calc(50% - 12px);
}

.nav-item:after {
    position: absolute;
    content: "";
    border-right: 1px solid #666;
    height: 24px;
    right: 0;
    top: calc(50% - 12px);
}

.nav-item:last-child:after {
    border-right: none;
}

a.nav-link {
    padding: 0 5px;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    justify-content: center;
    font-weight: bold;
    line-height: 1.2;
}

a.nav-link:hover {
    color: var(--color-primary) !important;
}

.stellarnav ul ul li a {
    font-weight: bold !important;
}


@media (min-width: 769px) {

    .stellarnav>ul {
        display: flex !important;
    }

    .stellarnav a.active {
        color: var(--color-primary) !important;
    }

    .stellarnav>ul>li a.nav-link {
        padding: unset !important;
    }

    .stellarnav li.has-sub>a::after {
        border-top: 6px solid #777;
    }

    .stellarnav ul ul {
        background: #fff !important;
        width: 160px !important;
    }

    .stellarnav ul ul li {
        border-bottom: 1px solid var(--color-primary) !important;
    }

    .stellarnav ul ul li:last-child {
        border-bottom: none !important;
    }

    .stellarnav ul ul li a {
        font-weight: normal !important;
    }

    .stellarnav ul ul li a:hover {
        color: var(--color-primary);
    }

    a.nav-link.btn.btn-secondary {
        border-radius: 3px;
        background: #ff6666;
        color: #fff !important;
        padding: 5px !important;
    }

    a.nav-link.btn.btn-secondary:hover {
        background: var(--color-primary);
    }
}


/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        width: 100vw;
    }

    #nav-area {
        align-items: flex-end;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 100%;
        width: 100%;
        grid-column-start: 1;
        grid-column-end: 4;
        position: absolute;
        top: 0;
        left: 0;
    }

    .nav .container {
        background: linear-gradient(to bottom, rgba(175, 20, 20, 1) 0%, rgba(162, 19, 22, 1) 48%, rgba(150, 18, 23, 1) 100%);
        display: grid;
        grid-template-rows: 1fr;
        margin: 0 auto;
        padding: 0;
        position: relative;
        z-index: 100;
        box-sizing: border-box;
        height: 57px;
    }


    .stellarnav.mobile>ul {
        top: -3px;
    }

    .stellarnav.mobile a.menu-toggle.full {
        display: flex;
        justify-content: flex-end;
    }

    .stellarnav.mobile a.menu-toggle.full .bars {
        background: rgba(0, 0, 0, .3);
        padding: 8px;
        top: -2px !important;
    }

    .stellarnav.mobile a.menu-toggle.full .bars span {
        background: var(--color-bg);
    }

    .nav-item:first-child::before {
        border-left: none;
    }

    .stellarnav>ul>li:after {
        border-right: none;
    }

    .stellarnav>ul>li a.nav-link {
        text-align: left;
        color: var(--color-bg) !important;
        background: var(--color-primary) !important;
        font-weight: normal;
        border-radius: 0;
    }

    .stellarnav>ul>li a.nav-link:hover,
    .stellarnav ul li li a:hover {
        background: #710000 !important;
    }

    .stellarnav a.dd-toggle .icon-plus::after,
    .stellarnav a.dd-toggle .icon-plus::before {
        border-bottom: solid 3px var(--color-bg) !important;
    }

    .stellarnav a.dd-toggle .icon-plus::before {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        transition: width .3s;
    }

    .stellarnav .open a.dd-toggle .icon-plus::before {
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
        transition: width .3s;
        top: 19px;
    }

    .stellarnav a.dd-toggle .icon-plus::after {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        transition: width .3s;
        right: -6px;
    }

    .stellarnav .open a.dd-toggle .icon-plus::after {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        transition: width .3s;
        right: -5px;
    }

    .stellarnav>ul>li>ul>li a {
        background: var(--color-primary-light) !important;
        color: var(--color-bg);
        font-weight: normal !important;
        padding-left: 42px !important;
    }
}


/* Footer */
.footer-message {
    position: relative;
    top: 0px;
    padding: 5px 15px;
    background-color: #a91315;
    width: 270px;
    text-align: center;
    margin: 0 auto;
    box-sizing: content-box;
    color: #ffffff;
}

.footer-message:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    bottom: -10px;
    left: 0;
    border-style: solid;
    border-color: #a91315 transparent transparent transparent;
    border-width: 10px 147px 0 147px;
    z-index: 1;
}

.footer-content {
    text-align: center;
    width: 100%;
    padding: 20px 16px 1px;
    background: #efede9;
}

.footer-content .flex-column {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-bottom: 15px;
}

.footer-content .flex-column .footer-button {
    padding: 3px 20px 3px 8px;
    background: gray;
    color: #fff;
    white-space: nowrap;
    position: relative;
    font-size: 0.9em;
    border-radius: 3px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.footer-content .flex-column .footer-button:after {
    position: absolute;
    content: "";
    top: 8px;
    width: 0;
    height: 0;
    right: 3px;
    border: 5px solid transparent;
    border-left-color: #fff;
}

.footer-content .flex-column .footer-button:hover {
    background: darkgreen;
}

.footer-content .flex-column .footer-hours {
    padding: 3px 3px 3px 8px;
    background: gray;
    color: #fff;
    white-space: nowrap;
    position: relative;
    font-size: 0.9em;
    border-radius: 3px;
    margin-bottom: 10px;
}

.footer-bottom-content {
    font-size: var(--font-size-sm);
    padding: 20px 16px;
    font-size: 11px;
    color: #efede9;
    background: #a91315;
    text-align: center;
}

.home .footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6em;
}

.home .footer-bottom-content p {
    padding-left: 176px;
}


@media screen and (max-width: 768px) {
    .home .footer-bottom-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1em;
    }

    .home .footer-bottom-content p {
        padding-left: 0;
    }
}



/* --- totop.js用 --- */
#totop {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 9999;
    cursor: pointer;
}

#totop:hover {
    filter: brightness(1.2);
}