
/* =========================================================
   HEADER
========================================================= */
.p-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 72px;
    margin: 0;
}

.p-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 0 28px;
}

.p-header__logov2 {
    position: relative;
    z-index: 2;
    display: block;
    flex-shrink: 0;
    width: 150px;
    height: auto;
}

.p-header__logov2 img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 通常PCヘッダー：中央ナビ */
.p-header__nav-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.p-header .p-nav {
    margin: 0;
}

.p-header .p-nav__lists {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 52px);
    margin: 0;
    padding: 0;
}

.p-header .p-nav__list {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.p-header .p-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .06em;
    text-decoration: none;
    transition: opacity .3s ease, color .3s ease;
}

.p-header .p-nav__link:hover {
    opacity: .65;
}

.p-header .p-nav__link.is-recruit {
    width: auto;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #fff;
}

/* 通常PCヘッダー：右端お問い合わせ */
.p-header__contact {
    position: relative;
    z-index: 2;
    margin-left: auto;
}

.p-header__contact .p-nav__link.is-contact {
    min-width: 126px;
    padding: 12px 22px;
    border: 0;
    border-radius: 100px;
    background: #263f64;
    color: #fff;
    font-size: 15px;
    letter-spacing: .06em;
    gap: 20px;
    justify-content: space-around;
    font-family: "Noto Sans JP", sans-serif;
    height: 46px;
}

.p-header__contact .p-nav__link.is-contact::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-radius: 50%;
    background: #fff;
}

/* =========================================================
   RECRUIT HEADER
========================================================= */
.p-header.is-recruit {
    position: fixed;
    height: 100px;
    margin-top: 59px;
    background: none;
}

.p-header.is-recruit.is-scroll {
    margin-top: 0;
    background: #fefefe;
}

.p-header.is-recruit .p-header__inner {
    justify-content: space-between;
    max-width: 1765px;
    margin: 0 auto;
    padding: 0 40px;
}

.p-header.is-recruit .p-header__nav {
    margin-left: auto;
}

.p-header.is-recruit .p-nav__lists {
    gap: 10px;
}

.p-header.is-recruit .p-nav__link {
    color: #333;
    font-size: 14px;
}

.p-header.is-recruit .p-nav__link.is-recruit {
    color: #333;
}

@media screen and (min-width: 1200px) {
    .p-header.is-recruit .p-nav__lists {
        gap: 50px;
    }

    .p-header.is-recruit .p-nav__link {
        font-size: 22px;
    }
}

/* =========================================================
   1200px以下
========================================================= */
@media screen and (max-width: 1199px) {
    .p-header__inner {
        padding: 0 20px;
    }

    .p-header__logov2 {
        width: 135px;
    }

    .p-header .p-nav__lists {
        gap: 22px;
    }

    .p-header .p-nav__link {
        font-size: 14px;
    }

    .p-header__contact .p-nav__link.is-contact {
        min-width: 112px;
        padding: 11px 16px;
        font-size: 12px;
        justify-content: space-around;
    }
}

/* =========================================================
   1050px以下
========================================================= */
@media screen and (max-width: 1050px) {
    .p-header__logov2 {
        width: 120px;
    }

    .p-header .p-nav__lists {
        gap: 15px;
    }

    .p-header .p-nav__link {
        font-size: 10px;
    }

    .p-header__contact .p-nav__link.is-contact {
        min-width: 100px;
        padding: 10px 13px;
    }
}
/* =========================================================
   1000px以下
========================================================= */
@media screen and (max-width: 1000px) {
    .ueda-mv {
        height: 560px;
    }

    .ueda-history__inner {
        grid-template-columns: 45% 55%;
        width: calc(100% - 50px);
    }

    .ueda-history__copy {
        gap: 30px;
    }
}

/* =========================================================
   SP
========================================================= */
@media screen and (max-width: 767.98px) {
    .p-header {
        height: 70px;
    }

    .p-header__inner {
        justify-content: space-between;
        padding: 0 18px;
    }

    .p-header__logov2 {
        width: 130px;
        height: auto;
    }

    .p-header__icon {
        z-index: 101;
        width: 34px;
        height: 24px;
    }

    .p-header__bar {
        height: 2px;
        background: #fff;
    }

    .p-header__bar:nth-of-type(3) {
        top: 22px;
    }

    .p-header.is-scroll:not(.is-recruit) .p-header__bar {
        background: #263f64;
    }

    .p-header.is-recruit {
        height: 70px;
        margin-top: 20px;
    }

    .p-header.is-recruit.is-scroll {
        margin-top: 0;
    }

    .p-header.is-recruit .p-header__inner {
        padding: 0 18px;
    }

    .p-header.is-recruit .p-header__bar {
        background: #333;
    }

    .p-drawer {
        top: -100vh;
    }

    .p-drawer.is-open,
    .p-drawer.is-recruit.is-open {
        top: 0;
    }

}
/* =========================================================
   FOOTER OVERRIDE
========================================================= */

.p-footer {
    position: relative;
    min-height: 430px;
    margin: 0;
    padding: 35px 0 25px;
    overflow: visible;
    background: #263f64;
    color: #fff;
    font-family: "Noto Serif JP", serif;
}

.p-footer__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}


.p-footer__bg img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.p-footer__inner {
    position: relative;
    z-index: 3;
    display: block;
    width: min(1180px, calc(100% - 80px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

/* =========================================================
   FOOTER NAV
========================================================= */

.p-footer .p-footer-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.p-footer .p-footer-nav__lists {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
    margin: 0;
    padding: 0;
}

.p-footer .p-footer-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.p-footer .p-footer-nav__link {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .05em;
    text-decoration: none;
    transition: opacity .3s ease;
}

.p-footer .p-footer-nav__link:hover {
    opacity: .6;
}

/* =========================================================
   FOOTER MAIN
========================================================= */

.p-footer__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 300px;
    padding-top: 30px;
}

/* =========================================================
   COMPANY
========================================================= */

.p-footer__company {
    display: flex;
    align-items: center;
    gap: 55px;
    padding-left: 25px;
}

.p-footer__logo {
    display: block;
    flex-shrink: 0;
    width: 165px;
    height: auto;
    margin: 0;
}

.p-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.p-footer__company-info {
    padding-top: 5px;
}

.p-footer__ttl {
    margin: 0;
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .05em;
}
.p-footer__ttl b{
    font-family: "Noto Sans JP", sans-serif;
    font-size: 22px;
}

.p-footer__address {
    display: block;
    margin: 24px 0 0;
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: .02em;
}

.p-footer__address span {
    display: block;
}

.p-footer__address a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   FOOTER MESSAGE
   背景写真に対して絶対配置
========================================================= */

.p-footer__main {
    position: relative;
}

/* 日本語4列 */
.p-footer__message-ja {
    position: absolute;
    top: 105px;
    right: 55px;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 33px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .05em;
}

.p-footer__message-ja span {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* 英字は日本語とは別位置 */
.p-footer__message-en {
    position: absolute;
    top: 250px;
    right: 175px;
    margin: 0;
    color: #fff;
    font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .02em;
    writing-mode: horizontal-tb;
    white-space: nowrap;
}

/*
 * 親自体はレイアウトに参加させない
 */
.p-footer__message {
    position: static;
    display: block;
    margin: 0;
    padding: 0;
}

/* =========================================================
   COPYRIGHT
========================================================= */

.p-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-family: serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
    text-align: center;
    margin-top: 80px;
}

/* =========================================================
   TO TOP
========================================================= */

.p-footer__totop {
    position: absolute;
    top: 0;
    right: 55px;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #263A5A;
    color: #fff;
}

/* TOP文字は円のど真ん中 */
.p-footer__totop span {
    display: block;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .04em;
    margin-top: 10px;
}

/* ●だけ独立配置 */
.p-footer__totop i {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
}

@media screen and (max-width: 767.98px) {
    .p-footer__totop {
        right: 18px;
        width: 54px;
        height: 54px;
    }

    .p-footer__totop i {
        top: 9px;
        width: 4px;
        height: 4px;
    }
}


/* =========================================================
   FOOTER 1000px以下
========================================================= */

@media screen and (max-width: 1000px) {
    .p-footer__inner {
        width: calc(100% - 50px);
    }

    .p-footer .p-footer-nav__lists {
        gap: 28px;
    }

    .p-footer__company {
        gap: 35px;
        padding-left: 0;
    }

    .p-footer__logo {
        width: 135px;
    }

    .p-footer__message {
        margin-right: 35px;
    }

    .p-footer__message-ja {
        gap: 9px;
        font-size: 22px;
    }

    .p-footer__totop {
        right: 25px;
    }
}

/* =========================================================
   FOOTER SP
========================================================= */

@media screen and (max-width: 767.98px) {
    .p-footer {
        min-height: 0;
        padding: 55px 0 25px;
    }

    .p-footer__bg::before {
        background: rgba(38, 63, 100, .85);
    }

    .p-footer__bg img {
        width: 100%;
        opacity: .45;
    }

    .p-footer__inner {
        display: block;
        width: calc(100% - 36px);
        margin: 0 auto;
    }

    .p-footer .p-footer-nav {
        padding: 0;
        border: 0;
    }

    .p-footer .p-footer-nav__lists {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, .25);
    }

    .p-footer .p-footer-nav__list {
        border-bottom: 1px solid rgba(255, 255, 255, .25);
    }

    .p-footer .p-footer-nav__list:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, .25);
    }

    .p-footer .p-footer-nav__link {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 52px;
        padding: 0 15px;
        color: #fff;
        font-size: 12px;
    }

    .p-footer .p-footer-nav__link::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 14px;
        width: 5px;
        height: 5px;
        border-top: 1px solid #fff;
        border-right: 1px solid #fff;
        transform: translateY(-50%) rotate(45deg);
    }

    .p-footer__main {
        display: block;
        min-height: 0;
        padding: 45px 0 35px;
    }

    .p-footer__company {
        display: block;
        padding: 0;
        text-align: center;
    }

    .p-footer__logo {
        width: 120px;
        margin: 0 auto;
    }

    .p-footer__company-info {
        margin-top: 25px;
        padding: 0;
    }

    .p-footer__ttl {
        font-size: 16px;
    }

    .p-footer__address {
        margin-top: 18px;
        font-size: 12px;
        line-height: 1.9;
    }

    .p-footer__message {
        justify-content: center;
        gap: 17px;
        margin: 45px 0 0;
    }

    .p-footer__message-en {
        font-size: 7px;
    }

    .p-footer__message-ja {
        gap: 8px;
        font-size: 19px;
    }

    .p-footer__copyright {
        font-size: 8px;
        margin-top: 0;
    }

    .p-footer__totop {
        top: -27px;
        right: 18px;
        width: 54px;
        height: 54px;
    }
}

@media screen and (max-width: 767.98px) {

    .p-footer__message {
        position: relative;
        display: block;
        margin: 35px auto 0;
        padding: 0;
        min-height: 210px;
        max-width: 160px;
    }

    /* 日本語4列 */
    .p-footer__message-ja {
        position: absolute;
        top: 0;
        right: 8px;

        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 7px;

        margin: 0;

        color: #fff;
        font-family: "Noto Serif JP", serif;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: .04em;
    }

    .p-footer__message-ja span {
        display: block;
        writing-mode: vertical-rl;
        text-orientation: upright;
    }

    /* 英字は日本語と別で左下 */
    .p-footer__message-en {
        position: absolute;
        top: 120px;
        left: 8px;
        right: auto;
        margin: 0;
        color: #fff;
        font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
        font-size: 8px;
        font-weight: 400;
        line-height: 1.35;
        letter-spacing: .02em;

        writing-mode: horizontal-tb;
        white-space: nowrap;
    }
}