/* 基本設定 */
/* ボックスモデルの統一 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--clr-blk);
    -webkit-text-size-adjust: 100%;
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--clr-wht);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 本文 */
p {
    font-size: 1rem;
    margin-bottom: 1em;
}

/* h1 */
h1 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.4em;
}

/* h2 */
h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.4em;
}

/* h3 */
h3 {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1em;
}

/* h4 */
h4 {
    font-size: 1.25rem;
}

section {
    &.ttl {
        font-size: max(4rem, 10px);
    }
}

/* 画像やメディアの最大幅制限 */
img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
    /* 余計な下マージン防止 */
}

/* リンクのスタイル初期化（必要に応じてカスタマイズ） */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover,
a:focus {}

a:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

input,
button,
textarea,
select {
    font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: auto;
    appearance: auto;
    display: inline-block;
    width: auto;
    min-width: 14px;
    min-height: 14px;
    padding: 0;
    margin: 0;
    border-width: 1px;
    border-color: #767676;
    background-color: #fff;
    cursor: pointer;
}

input[type="radio"] {
    border-radius: 50%;
}

/* 強制的にウェブフォントのスムージングを有効化（macOSなど） */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 不要なリストのマージン・パディング削除 */
ul,
ol {
    margin: 0;
}

/* テーブルの基本スタイル */
table {
    border-collapse: collapse;
    width: 100%;
}

/* ユーザーセレクト禁止例（必要な場合のみ） */
/* .no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
} */

/* SECTION基本設定 */
.outer {
    padding: 5em 0;
}

.inner {
    width: 70%;
    /*文字量多い場合は80％*/
    margin: 0 auto;
}

/*表示管理*/
.flex {
    display: flex;
}

.pc-flex {
    display: flex;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.pc-only {
    display: block;
}

.tb-only {
    display: none;
}

.sp-only {
    display: none;
}

.pc-none {
    display: none !important;
}

.tb-none {
    display: block;
}

.none {
    display: none !important;
}

.txt-center {
    text-align: center;
}

.txt-left {
    text-align: left;
}

.txt-right {
    text-align: right;
}

.txt-unset {
    text-align: unset;
}

.txt-justify {
    text-align: justify;
}

.fd-row {
    flex-direction: row;
}

.fd-row-reverse {
    flex-direction: row-reverse;
}

.fd-column {
    flex-direction: column;
}

.fd-column-reverse {
    flex-direction: column-reverse;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.static {
    position: static;
}

.ma-0 {
    margin: 0;
}

.ma-1 {
    margin: 1em;
}

.ma-2 {
    margin: 2em;
}

.mx-0 {
    margin-block-start: ;
}

#header {
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0;

    .logo {
        width: 21vw;
    }

    .outer {
        width: 100%;
        padding: 20px 0;
    }

    .inner {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .header-menu ul {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            height: 100%;
            font-size: 1.1em;
            font-weight: 500;
            gap: clamp(10px, 1.6vw, 1.6em);
        }
    }

    .scrolled {
        background-color: #fff;
        filter: drop-shadow(2px 2px 4px #555);
    }
}

.sp-menu-btn {
    display: none;
    width: 32px;
    height: 24px;
    margin: auto 0;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 300;

    & span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--clr-blk);
        transition: .3s;
    }

    & span:nth-child(1) {
        top: 0;
    }

    & span:nth-child(2) {
        top: 11px;
    }

    & span:nth-child(3) {
        bottom: 0;
    }
}

.sp-menu-btn.is-active {
    & span:nth-child(1) {
        transform: rotate(45deg);
        top: 11px;
        background: var(--clr-sp-menu-txt);
    }

    & span:nth-child(2) {
        opacity: 0;
    }

    & span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 11px;
        background: var(--clr-sp-menu-txt);
    }
}

.sp-menu {
    display: none;
}

#footer {
    background: var(--clr-footer);
    border-top: 1px solid #eaeaea;

    .outer {
        padding: 8em 0 2em;
    }

    .logo {
        margin-bottom: 1em;
    }

    .left {
        width: 28%;
    }

    .right {
        width: 72%;
        margin-left: 3vw;
    }

    #copyright {
        background: var(--clr-copyright);
        color: var(--clr-copyright-txt);
        text-align: center;
        padding: 0.6em 0 0.4em 0;
    }
}

#mainview {
    .outer {
        padding-top: 0;
    }

    .single-mv {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        z-index: 0;
    }

    .mv-slider {
        height: 100vh;
    }

    .mv-ttl {
        position: absolute;
        width: 35rem;
        top: 50%;
        left: 14%;
        filter: drop-shadow(3px 3px 2px #014b7a);
    }

    .catchcopy {
        position: absolute;
        width: max(25vw, 350px);
        height: auto;
        z-index: 100;
        left: 13%;
        bottom: 25%;
        object-fit: contain;
        filter: drop-shadow(2px 4px 6px #014b7a);
    }
}

#bread {
    margin-top: calc(5rem + 8px);
    font-size: 0.9em;
    color: var(--clr-dark-gray);
    width: 100%;
    overflow-x: auto;
    background: var(--clr-light-gray);

    .outer {
        padding: 8px 0 10px 0;
    }

    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        margin: 0;
        align-items: center;

        & .breadcrumb-item {
            display: flex;
            align-items: center;
            white-space: nowrap;

            &+&::before {
                content: ">";
                display: inline-block;
                padding-left: 0.5em;
                padding-right: 0.5em;
                color: var(--clr-dark-gray);
            }

            & a {
                color: var(--clr-dark-gray);
                text-decoration: none;

                &:hover {
                    color: var(--clr-primary);
                }
            }

            &.active {
                color: var(--clr-dark-gray);

                a {
                    color: var(--clr-dark-gray);
                    cursor: default;
                    text-decoration: none;
                }
            }

            & meta {
                display: none;
            }
        }
    }
}

#pagetop {
    & .is-active {
        opacity: 1;
        visibility: visible;
    }

    & button {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 80px;
        right: -80px;
        bottom: 10%;
        color: var(--clr-wht);
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        border: 0;
        background: var(--clr-primary);
        transition: .2s;
        letter-spacing: 3px;
        font-weight: bold;
        border-radius: 10px 0 0 10px;
        z-index: 50;

        & i {
            position: absolute;
            font-size: 30px;
            color: var(--clr-wht);
            top: 15px;
        }

        & p {
            margin: 0;
            font-size: 15px;
            bottom: 13px;
            position: absolute;

        }

        &.is-active {
            right: -2px;
        }
    }
}

.swiper-pagination {
    margin-bottom: 1%;
}

#contact {

    & input[type="text"],
    & input[type="password"],
    & input[type="datetime"],
    & input[type="date"],
    & input[type="month"],
    & input[type="time"],
    & input[type="week"],
    & input[type="number"],
    & input[type="email"],
    & input[type="url"],
    & input[type="search"],
    & input[type="tel"],
    & input[type="color"],
    & select,
    & textarea {
        display: block;
        width: 100%;
        height: 45px;
        margin-bottom: 0;
        padding: 0 12px;
        border: 1px solid #d8d8d8;
        border-radius: 3px;
        box-shadow: none;
        background-color: #F6F8F8;
        color: #5c6b80;
        font-size: 1em;
        vertical-align: middle;
        line-height: 45px;
        transition: background-color 0.24s ease-in-out;
    }

    & .wpcf7-list-item {
        display: inline-block;
        margin-right: 15px;
        margin-bottom: 5px;
    }

    & .wpcf7-list-item-label {
        vertical-align: middle;
        margin-left: 5px;
    }

    & textarea {
        resize: vertical;
        max-width: 100%;
        min-height: 300px;
        line-height: 1.5em;
        padding: 0.5em;
        overflow: auto;
    }

    & table.cf7-table {
        display: table;
        width: 100%;
        margin: 0 auto;

        & tr {
            border-top: 1px solid #e5e5e5;
        }

        & th {
            width: 30%;
            background-color: #F6F8F8;
            font-size: 15px;
            vertical-align: middle;
        }

        & tr,
        & th,
        & td {
            padding: 0.75rem 0.75rem !important;
        }

        & ::placeholder {
            color: #797979;
        }
    }

    & .cf7-req {
        font-size: .9em;
        padding: 2px 7px 4px;
        background: #B00000;
        color: #fff;
        border-radius: 3px;
        margin-right: 1em;
    }

    & .cf7-unreq {
        font-size: .9em;
        padding: 4px 7px;
        background: #bdbdbd;
        color: #fff;
        border-radius: 3px;
        margin-right: 1em;
    }

    & p {
        margin: 0;
    }

    & input.wpcf7-submit {
        background-color: #014b7a;
        border: 2px solid #014b7a;
        color: #fff;
        font-size: 1.2em;
        font-weight: bold;
        margin: 0 auto;
        padding: 15px 30px;
        transition: all 0.5s 0s ease;
        border-radius: 15px;
        width: auto;

        &:hover {
            background: #fff;
            color: #014b7a;
        }
    }

    & input.wpcf7-previous {
        border: 2px solid #777;
        color: #777;
        font-size: 1.2em;
        font-weight: bold;
        margin: 0 auto;
        padding: 15px 30px;
        transition: all 0.5s 0s ease;
        border-radius: 15px;
        width: auto;

        &:hover {
            background: #777;
            color: #fff;
        }
    }

    & .cf7-btn {
        text-align: center;
        margin: 20px;
    }

    & .wpcf7-spinner {
        width: 0;
        margin: 0;
    }

    table.confirm-table {

        tr,
        th,
        td {
            padding: 1em !important;
        }
    }

    .confirm-btn-container {
        display: flex;
        margin: 4em auto;
        justify-content: center;
        gap: 3em;

        .wpcf7-submit,
        .wpcf7-previous {
            padding: 10px 30px;
        }
    }
}

.dd-utr {
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
}


@media (max-width: 1024px) {
    .inner {
        width: 90%;
    }

    .pc-only {
        display: none;
    }

    .tb-only {
        display: block;
    }

    .sp-only {
        display: none;
    }

    .pc-none {
        display: block;
    }

    .tb-none {
        display: none !important;
    }

    .sp-none {
        display: block;
    }

    .none {
        display: none !important;
    }

    #header {
        .logo {
            width: 16em;
        }

        .inner {
            width: 100%;
            margin: 0;
            padding: 0 5%;
        }
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .outer {
        padding: 2em 0;
    }

    .inner {
        width: 95%;
    }

    .pc-flex {
        display: block;
    }

    .tb-flex {
        display: block;
    }

    .sp-flex {
        display: flex;
    }

    .pc-only {
        display: none;
    }

    .tb-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .pc-none {
        display: block;
    }

    .tb-none {
        display: block;
    }

    .sp-none {
        display: none !important;
    }

    .none {
        display: none !important;
    }

    #header {
        .logo {
            width: 80%;
        }

        nav li {
            color: white !important;
        }
    }


    .header-menu {
        display: none;
    }

    .sp-menu-btn {
        display: block;
    }

    .sp-menu {
        position: fixed;
        height: 100vh;
        inset: 0;
        background: #014b7a;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: .3s;
        z-index: 200;
        color: #ffffff;

        &.is-open {
            transform: translateX(0);
        }
    }

    .sp-menu-list {
        display: flex;
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    #footer {

        .left,
        .right {
            width: 100%;
            margin: 0;
        }

        .left {
            margin-bottom: 1em;
        }
    }

    #contact {
        & table.cf7-table {
            width: 90%;

            & tr,
            & td,
            & th {
                display: block;
                width: 100% !important;
                line-height: 2.5em;
            }

            & th {
                background-color: #F6F8F8;
            }
        }
    }
}