/*--------------------------------
　　COMMON
--------------------------------*/
:root {
    --color-type-1: #888888;
    --color-type-2: #333333;
    --color-type-3: #222222;
    --color-point-1: #c68000;
    --color-marker: #FFF27E;
}

html {
    font-size: 18px;
    font-family: "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    line-height: 2;
    margin: 0 auto;
    color: var(--color-type-3);
    background-image: url(../img/bg-image.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    position: relative;
}

body.nav-open {
    overflow: hidden;
}

.wrapper {
    overflow-x: hidden;
}

@media screen and (max-width:768px) {
    html {
        font-size: 15px;
    }

    body {
        line-height: 1.8;
    }
}

a {
    text-decoration: none;
    color: var(--color-type-3);
}

figure {
    margin: 0.75em 0;
    padding: 0;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
    flex-wrap: wrap;
}

.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky {
    position: -webkit-sticky;
    position: sticky;
}

.pconly {
    display: inline-block;
}

.sponly {
    display: none;
}

@media screen and (max-width:768px) {
    .pconly {
        display: none;
    }

    .sponly {
        display: inline-block;
    }
}


/*--------------------------------
　　HEADER
--------------------------------*/

header {
    position: fixed;
    padding: 17px 20px;
    top: 0;
    z-index: 10;
    width: calc(100% - 34px);
    transition: 0.5s all;
}

header.active {
    background-color: rgb(255 255 255 / 90%);
    padding: 8px 20px;
    box-shadow: 0 0 10px var(--color-type-1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.nav-open header {
    background-color: unset;
    box-shadow: unset;
}

header .logo {
    width: 100px;
    transition: 0.5s all;
    display: block;
}

header.active .logo {
    width: 60px;
}


/*--------------------------------
　　MENU
--------------------------------*/

/*------nav-btn-------*/
.openbtn {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: all .5s;
}

.openbtn span {
    display: inline-block;
    transition: all .5s;
    position: absolute;
    left: 8px;
    height: 2px;
    background: var(--color-type-3);
}

.openbtn span:nth-of-type(1) {
    top: 25%;
    width: 60%;
}

.openbtn span:nth-of-type(2) {
    top: 49%;
    width: 45%;
}

.openbtn span:nth-of-type(3) {
    top: 75%;
    width: 30%;
}

.nav-open .openbtn span:nth-of-type(1) {
    top: 50%;
    left: 22%;
    transform: translateY(0%) rotate(-135deg);
    width: 60%;
}

.nav-open .openbtn span:nth-of-type(2) {
    opacity: 0;
}

.nav-open .openbtn span:nth-of-type(3) {
    top: 50%;
    left: 22%;
    transform: translateY(0%) rotate(135deg);
    width: 60%;
}

header.active .openbtn {
    width: 25px;
    height: 25px;
}


/*------global nav-------*/
nav {
    background-color: rgb(255 255 255 / 90%);
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 5;
    transition: all 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.nav-open nav {
    right: 0;
}

nav>div {
    padding: 20px;
    max-height: 80vh;
    max-width: 100%;
    opacity: 0;
    transition: all 0.5s;
    transition-delay: 0.5s;
}

.nav-open nav>div {
    opacity: 1;
}

nav .title {
    text-align: center;
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.5;
}

nav .title span {
    font-size: 0.85rem;
}

nav ul {
    list-style-type: none;
    padding: 10px;
}

nav ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 0.7rem;
    line-height: 1.5;
}

nav ul li:before {
    content: "";
    display: block;
    position: absolute;
    left: 0px;
    height: 0;
    width: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--color-point-1);
    top: 0.8rem;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

nav ul a {
    display: block;
    color: var(--color-type-3);
    transition: all 0.5s;
}

nav ul a[href]:hover {
    color: var(--color-point-1);
}

nav ul a:not([href]) {
    color: #888888;
}



/*--------------------------------
　　MAIN
--------------------------------*/

main {
    max-width: calc(800px - 40px);
    margin: 0 auto;
    padding: 5rem 20px;
}

section {
    margin: 2rem 0;
}

main>section {
    margin-top: 4rem;
}

h2+section {
    margin-top: 0;
}

h1 {
    text-align: center;
    font-weight: 600;
    font-size: 2.6rem;
    line-height: 1.6;
    margin-bottom: 4rem;
}

h1 span {
    font-size: 1.4rem;
}

h2 {
    font-size: 1.7rem;
    border-bottom: solid 3px var(--color-type-1);
    position: relative;
    margin-bottom: 3rem;
}

h2:after {
    position: absolute;
    content: " ";
    display: block;
    border-bottom: solid 3px var(--color-point-1);
    bottom: -3px;
    width: 20%;
}

h3 span {
    position: relative;
    display: inline;
    background-image: linear-gradient(transparent 50%, var(--color-marker) 50%);
    background-size: 0% 100%;
    /* 横幅を0%からスタート */
    background-repeat: no-repeat;
    background-position: 0 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background-size 1s;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

h3.active span {
    background-size: 100% 100%;
    /* 横幅が100%に広がる */
}

h4 {
    font-size: 1.125rem;
    color: var(--color-point-1);
    display: block;
    margin-bottom: 0.5rem;
}

h2+*,
h3+*,
h4+* {
    margin-top: 0;
}

table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
    border: solid 1px #778ca3;
    margin: 0.75em 0;
}

table tr {
    border-top: dashed 1px #778ca3;
}

table thead {
    background: #e9faf9;
}

table thead th {
    text-align: center;
}

table th,
table td {
    padding: 10px;
    text-align: left;
    border-right: dashed 1px #778ca3;
}

.date {
    font-size: 0.85rem;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
    color: var(--color-type-1);
    text-align: right;
}

.date::before {
    content: "";
    background-image: url(../img/clock.svg);
    display: inline-block;
    height: 0.85rem;
    width: 0.85rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}

figure figcaption {
    font-size: 0.75rem;
    color: var(--color-type-1);
}

img {
    width: 100%;
}

ol,
ul {
    padding-left: 1.2em;
}

p {
    margin: 0;
}

p+P {
    margin-top: 0.75rem;
}

p a {
    text-decoration: underline;
    color: var(--color-point-1);
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.6;
    }

    h1 span {
        font-size: 1.2rem;
    }

    table th,
    table td {
        font-size: 0.875rem;
        padding: 5px;
    }
}


/*------timeline-------*/
.timeline {
    list-style: none;
    padding-left: 0;
}

.timeline>li {
    display: flex;
    position: relative;
}

.timeline h4 {
    margin: 0;
}

.timeline-icon {
    padding-right: 20px;
}

.timeline-icon img {
    width: 160px;
}

.timeline-content {
    flex: 1;
    border-left: 1px var(--color-point-1) solid;
    padding-left: 30px;
    padding-bottom: 20px;
    position: relative;
}

.timeline-content:before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--color-point-1);
    position: absolute;
    left: -6px;
    top: 12px;
    border-radius: 100%;
}

@media screen and (max-width:768px) {
    .timeline>li {
        display: block;
        border-left: 1px var(--color-point-1) solid;
        padding-left: 30px;
        padding-bottom: 20px;
        position: relative;
    }

    .timeline>li:before {
        content: '';
        width: 12px;
        height: 12px;
        background: var(--color-point-1);
        position: absolute;
        left: -6px;
        top: 12px;
        border-radius: 100%;
    }

    .timeline-icon {
        padding-right: 0;
        text-align: center;
    }

    .timeline-content {
        border-left: none;
        padding-left: 0;
        padding-bottom: 0;
    }

    .timeline-content:before {
        content: unset;
    }
}



/*------title-type-------*/
.title-type-01 {
    position: relative;
    display: inline-block;
    padding: 0 45px;
}

.title-type-01:before,
.title-type-01:after {
    content: '';
    position: absolute;
    top: 10%;
    display: inline-block;
    height: 80%;
    border-right: 2px solid var(--color-point-1);
}

.title-type-01:before {
    left: 20px;
    -webkit-transform: rotate(-25deg);
    transform: rotate(-25deg);
}

.title-type-01:after {
    right: 20px;
    -webkit-transform: rotate(25deg);
    transform: rotate(25deg);
}

@media screen and (max-width: 768px) {
    .title-type-01 {
        padding: 0 40px;
    }

    .title-type-01:before {
        -webkit-transform: rotate(-15deg);
        transform: rotate(-15deg);
    }

    .title-type-01:after {
        -webkit-transform: rotate(15deg);
        transform: rotate(15deg);
    }
}


/*--------------------------------
　　ASIDE
--------------------------------*/

/*------side-menu-------*/
.submenu {
    position: absolute;
    right: 0;
}

.submenu .sticky {
    top: 60px;
}

/*------submenu-btn-------*/
.submenu .submenu-btn {
    cursor: pointer;
    width: 30px;
    height: 30px;
    transition: all .5s;
    position: absolute;
    top: 0;
    right: 10px;
}

.submenu .submenu-btn span {
    display: inline-block;
    transition: all .5s;
    position: absolute;
    left: 13px;
    width: 3px;
    height: 3px;
    background: var(--color-type-3);
}

.submenu .submenu-btn span:nth-of-type(1) {
    top: 25%;
}

.submenu .submenu-btn span:nth-of-type(2) {
    top: 49%;
}

.submenu .submenu-btn span:nth-of-type(3) {
    top: 75%;
}

.submenu.active .submenu-btn span {
    height: 2px;
}

.submenu.active .submenu-btn span:nth-of-type(1) {
    top: 50%;
    left: 22%;
    transform: translateY(0%) rotate(-135deg);
    width: 60%;
}

.submenu.active .submenu-btn span:nth-of-type(2) {
    opacity: 0;
}

.submenu.active .submenu-btn span:nth-of-type(3) {
    top: 50%;
    left: 22%;
    transform: translateY(0%) rotate(135deg);
    width: 60%;
}

/*------submenu-menu-------*/
.submenu .menu {
    border-left: 1px solid var(--color-type-1);
    width: 0;
    overflow: hidden;
    background-color: rgb(255 255 255 / 90%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.5s;
}

.submenu.active .menu {
    width: 270px;
}

.submenu ul {
    width: 230px;
    overflow-y: auto;
    padding: 10px 20px;
    list-style-type: none;
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

.submenu ul li.index {
    letter-spacing: 2px;
    font-weight: 600;
}

.submenu ul li:not(.index) {
    margin-top: 0.8rem;
    position: relative;
}

.submenu ul li.H2 a {
    font-weight: 600;
}

.submenu ul li.H3 {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.submenu ul li.H3::before {
    content: "";
    display: inline-block;
    width: 0.4rem;
    border: 1px solid var(--color-type-1);
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    transition: all 0.5s;
}

.submenu ul li a {
    color: var(--color-type-1);
    display: block;
    transition: all 0.5s;
}

.submenu ul li a:hover {
    color: var(--color-type-3);
}

.submenu ul li.active::before {
    border: 1px solid var(--color-point-1);
}

.submenu ul li.active a {
    color: var(--color-point-1);
}

@media screen and (max-width:768px) {}


/*--------------------------------
　　prev-next-link
--------------------------------*/
.prev-next-link {
    display: flex;
    margin-top: 50px;
}

.prev-next-link p+p {
    margin-top: 0;
}

.prev-next-link .pe {
    pointer-events: none;
}

.prev-next-link a {
    width: 50%;
    border-top: 1px #ddd solid;
    border-bottom: 1px #ddd solid;
    display: block;
    text-decoration: none;
    padding: 15px 20px;
    color: var(--color-point-1);
    transition: all .5s;
}

.prev-next-link a:hover {
    background-color: #f6f6f6;
}

.prev-next-label {
    font-size: .825rem;
    color: #000;
}

.next-link {
    text-align: right;
}

@media screen and (max-width:768px) {
    .prev-next-link {
        display: block;
        margin-top: 50px;
    }

    .prev-next-link a {
        width: calc(100% - 40px);
    }

    .prev-next-link .pe {
        display: none;
    }

    .next-link {
        text-align: left;
    }
}


/*--------------------------------
　　pagetop
--------------------------------*/

#page_top {
    display: flex;
    visibility: hidden;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: fixed;
    right: 20px;
    bottom: -20px;
    background: var(--color-type-3);
    opacity: 0;
    z-index: 3;
    cursor: pointer;
    transition: 0.5s all;
}

#page_top.active {
    visibility: visible;
    opacity: 0.3;
    bottom: 15px;
}

#page_top a {
    width: 8px;
    height: 8px;
    border: 2px solid;
    border-color: #FFFFFF #FFFFFF transparent transparent;
    transform: rotate(-45deg);
    margin-top: 6px;
}



/*--------------------------------
　　FOOTER
--------------------------------*/

footer .contact {
    background-color: #e0e0e0;
    color: var(--color-type-3);
    text-align: center;
    padding: 40px 20px;
}

footer .contact p {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

footer .footer-btn {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

footer .contact a {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    letter-spacing: 0.1rem;
    overflow: hidden;
    padding: 0.75rem 3.5rem;
    color: #fff;
    background: var(--color-type-3);
}

footer .contact a span {
    position: relative;
}

footer .contact a[target="_blank"] span {
    display: flex;
    align-items: center;
    gap: .25rem;
}

footer .contact a[target="_blank"] span::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

footer .contact a:before {
    position: absolute;
    top: 0;
    left: 30px;
    width: 150%;
    height: 545%;
    content: '';
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    -webkit-transform: translateX(-98%) translateY(-70%) rotate(135deg);
    transform: translateX(-98%) translateY(-70%) rotate(135deg);
    background: var(--color-point-1);
}

footer .contact a:hover:before {
    -webkit-transform: translateX(-8%) translateY(-25%) rotate(135deg);
    transform: translateX(-8%) translateY(-25%) rotate(135deg);
}

footer .contact a.pe:before {
    -webkit-transform: translateX(-84.5%) translateY(-70%) rotate(135deg);
    transform: translateX(-84.5%) translateY(-70%) rotate(135deg);
}

footer .contact a.pe:hover:before {
    -webkit-transform: translateX(-20%) translateY(-25%) rotate(135deg);
    transform: translateX(-20%) translateY(-25%) rotate(135deg);
}

@media screen and (max-width:768px) {
    footer .contact p {
        text-align: left;
    }

    footer .footer-btn {
        flex-direction: column;
    }
}

footer .copyright {
    background-color: var(--color-type-3);
    text-align: center;
    color: var(--color-type-1);
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    margin: 0;
    padding: 20px;
}


/* button type01 */
.btn.type01 {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    outline: none;
    position: relative;
    z-index: 2;
    background-color: #F5F5F5;
    color: #F08300;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px;
    margin-top: auto;
}

.btn.type01::before,
.btn.type01::after {
    position: absolute;
    z-index: -1;
    display: block;
    content: '';
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #F5F5F5;
}

.btn.type01,
.btn.type01::before,
.btn.type01::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.btn.type01:hover {
    background-color: #F08300;
    color: #FFFFFF;
}

.btn.type01::before {
    right: 0;
}

.btn.type01::after {
    left: 0;
}

.btn.type01:hover::before,
.btn.type01:hover::after {
    width: 0;
}

/*--------------------------------
　　fixed-banner
--------------------------------*/

.fixed-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 100%;
    max-width: 320px;
    background: #fff7b3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    box-sizing: border-box;
    transition: opacity 0.3s, transform 0.3s;
}

.banner-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media screen and (max-width:768px) {
    .fixed-banner {
        max-width: 260px;
        padding: 15px;
    }

    .banner-inner {
        gap: 8px;
    }
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    /* 画像を絶対配置の基準にする */
}

.banner-header img {
    position: absolute;
    top: -55px;
    left: -20px;
    width: 90px;
    height: auto;
}

.banner-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-point-1);
    margin: 0;
    padding-left: 70px;
    line-height: 1.4;
}

.banner-desc {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

/*------bunner-button-------*/

.banner-btn {
    position: relative;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    vertical-align: middle;
    text-decoration: none;
    letter-spacing: 0.05rem;
    overflow: hidden;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #fff;
    text-align: center;
    border-radius: .25rem;
    background: var(--color-type-3);
}

.banner-btn[target="_blank"] span {
    position: relative;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.banner-btn[target="_blank"] span::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.banner-btn::before {
    position: absolute;
    top: 0;
    left: 30px;
    width: 150%;
    height: 545%;
    content: '';
    display: inline-block;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    -webkit-transform: translateX(-85%) translateY(-70%) rotate(135deg);
    transform: translateX(-85%) translateY(-70%) rotate(135deg);
    background: var(--color-point-1);
}

.banner-btn:hover::before {
    -webkit-transform: translateX(-20%) translateY(-25%) rotate(135deg);
    transform: translateX(-20%) translateY(-25%) rotate(135deg);
}


.banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    color: #333;
}

/* 非表示用クラス */
.fixed-banner.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.fixed-banner .close-btn {
    cursor: pointer;
    width: 35px;
    height: 35px;
    transition: all .5s;
    position: absolute;
    top: 0;
    right: 0;
    border: 2px solid #fff27e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    background-color: #FFF;
    transform: translate(30%, -30%);
}

.fixed-banner .close-btn span {
    display: inline-block;
    transition: all .5s;
    position: absolute;
    left: 13px;
    width: 3px;
    height: 3px;
    background: var(--color-type-3);
}

.fixed-banner .close-btn span {
    height: 2px;
}

.fixed-banner .close-btn span:nth-of-type(1) {
    top: 50%;
    left: 22%;
    transform: translateY(0%) rotate(-135deg);
    width: 60%;
}

.fixed-banner .close-btn span:nth-of-type(2) {
    top: 50%;
    left: 22%;
    transform: translateY(0%) rotate(135deg);
    width: 60%;
}

td figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 2em;
}