/* main */
.main-image-table {
    position: sticky;
    top: 0;
    z-index: -1;
    height: 100vh;
    margin-bottom: -80px;
}

.main-image-table::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0D434D;
    opacity: 0;
    -webkit-transition: opacity 1s ease-out 1.8s;
    -o-transition: opacity 1s ease-out 1.8s;
    transition: opacity 1s ease-out 1.8s;
}
body.loaded .main-image-table::before {
    opacity: 0.3;
}

.main-text-cell {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.main-text-cell h2 {
    font-size: 80px;
    color: #F7ECB2;
    
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    margin-bottom: 0;
}
.main-text-cell h2 span {
    display: inline-block;
    text-shadow: 0px 0px 7px transparent;
    opacity: 0;
    -webkit-transition: text-shadow 0.8s ease-out 1.8s, opacity 1s ease-out 0.5s, transform 0.8s linear 0.6s;
    -o-transition: text-shadow 0.8s ease-out 1.8s, opacity 1s ease-out 0.5s, transform 0.8s linear 0.6s;
    transition: text-shadow 0.8s ease-out 1.8s, opacity 1s ease-out 0.5s, transform 0.8s linear 0.6s;
}
body.loaded .main-text-cell h2 span {
    text-shadow: 5px 5px 12px #333;
    opacity: 1;
    transform: translateX(0) translateY(0);
}
.main-text-cell h2 span.fz160 {
    font-size: 160px;
}
.main-text-cell h2 span.fz120 {
    font-size: 120px;
}
.main-text-cell h2 span.fz160 + span.fz120 {
    margin-left: 20px;
}
.main-text-cell h2 span:first-of-type {
    transform: translateX(-50px);
}
.main-text-cell h2 span:nth-of-type(2) {
    transform: translateX(50px);
}
.main-text-cell h2 span:last-of-type {
    display: block;
    transform: translateY(1em);
}

.main-image-cell {
    height: 100%;
}

.main-image-image {
    width: 100%;
    height: 100%;
    background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
}
.main-image-image::after {
    content: '';
    display: block;
    padding-bottom: 60%;
}

@media only screen and (max-width: 1023px) {
    .main-text-cell h2 {
        font-size: 64px;
    }
    .main-text-cell h2 span.fz160 {
        font-size: 120px;
    }
    .main-text-cell h2 span.fz120 {
        font-size: 80px;
    }
}

@media only screen and (max-width: 767px) {
    .main-text-cell h2 span:first-of-type {
        transform: translateX(-5vw);
    }
    .main-text-cell h2 span:nth-of-type(2) {
        transform: translateX(5vw);
    }
}


@media only screen and (max-width: 450px) {
    .main-text-cell h2 {
        font-size: 56px;
    }
    .main-text-cell h2 span.fz160 {
        font-size: 100px;
    }
    .main-text-cell h2 span.fz120 {
        font-size: 64px;
    }
}
/*
---
---------------------------------------------------------------------------*/
section {
    padding: 8vw 0 0;
    color: #F7ECB2;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
section[data-aos] {
    transition-duration: 0s !important;
}
section + section {
    margin-top: -8vw;
}
section::after {
    opacity: 0;
}
section.aos-animate::after{
    animation: sec-op 1.5s linear 0s forwards;
}

section#greeting::after {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 3.4vw;
    width: 100%;
    height: 100%;
    
    background: -moz-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: -webkit-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: linear-gradient(to right, #0D434D, #17848A 50%, #0D434D);
}
section#future::after,
section#donation::after {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 8vw;
    width: 100%;
    height: 100%;
    background: #fff;
}
section#project::after {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 8vw;
    width: 100%;
    height: 100%;
    background: -moz-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: -webkit-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: linear-gradient(to right, #0D434D, #17848A 50%, #0D434D);
}
/*section.aos-animate::after {
    animation: sec-after 1.2s linear 0.3s forwards;
}
@keyframes sec-after {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}*/

.section-inner {
    background: -moz-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: -webkit-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: linear-gradient(to right, #0D434D, #17848A 50%, #0D434D);
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 200px;
    opacity: 0;
}
section.aos-animate .section-inner {
    animation: sec-op 1.5s linear 0s forwards;
}
@keyframes sec-op {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
section:nth-of-type(even) .section-inner {
    color: #00576C;
    background: #fff;
}
section:last-of-type .section-inner {
    color: #00576C;
    background: #D8CA83;
    padding-bottom: 80px;
}

@media only screen and (max-width: 1023px) {
    
}
@media only screen and (max-width: 767px) {
    
}
@media only screen and (max-width: 450px) {
    .section-inner {
        padding-bottom: 130px;
    }
}

section > svg {
    width: 100%;
    height: auto;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    fill: #fff;
}
svg.sec-wave {
    position: absolute;
    z-index: -1;
    top: 0;
    left: -1px;
    width: calc(100% + 2px);
    height: auto;
    fill: url(#bg_grad-wave);
    fill-opacity:0;
}
svg.sec-wave {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1420;
}
section.aos-animate > svg.sec-wave {
    animation: wave-ani 1.5s linear 0s forwards;
}
@keyframes wave-ani {
    0% {
        stroke-dasharray: 1500;
        stroke-dashoffset: 1420;
        fill-opacity:0;
        stroke-opacity: 1;
    }
    40% {
        stroke-dasharray: 1500;
        stroke-dashoffset: 0;
        fill-opacity:0;
        stroke-opacity: 1;
    }
    50% {
        stroke-dasharray: 1500;
        stroke-dashoffset: 0;
        fill-opacity:0;
        stroke-opacity: 1;
    }
    100% {
        stroke-dasharray: 1500;
        stroke-dashoffset: 0;
        fill-opacity:1;
        stroke-opacity: 0;
    }
}
section:nth-of-type(even) > svg.sec-wave {
    fill: #fff;
}
p.lead {
    max-width: 1200px;
    margin: 30px auto;
}


/*
--- 理事長あいさつ greeting
---------------------------------------------------------------------------*/
section#greeting {
    padding-top: 3.4vw;
    padding-bottom: 8vw;
    
    /*background: -moz-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: -webkit-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: linear-gradient(to right, #0D434D, #17848A 50%, #0D434D);*/
}
section#greeting > svg.sec-top {
    stroke: #fff;
    stroke-dasharray: 1420;
    stroke-dashoffset: 1420;
    fill: url(#bg_grad-greeting);
    fill-opacity:0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
}
section#greeting > svg.sec-wave {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1420;
    top: auto;
    left: -1px;
    bottom: 0;
    transform: rotate(180deg);
    fill: url(#bg_grad-wave);
    width: calc(100% + 2px);
}
section#greeting.aos-animate > svg.sec-top {
    animation: gt-ani 1.5s linear 0s forwards;
}
@keyframes gt-ani {
    0% {
        stroke-dasharray: 1420;
        stroke-dashoffset: 1420;
        fill-opacity:0;
        stroke: #fff;
    }
    40% {
        stroke-dasharray: 1420;
        stroke-dashoffset: 0;
        fill-opacity:0;
        stroke: #fff;
    }
    50% {
        stroke-dasharray: 1420;
        stroke-dashoffset: 0;
        fill-opacity:0;
        stroke: #fff;
    }
    100% {
        stroke-dasharray: 1420;
        stroke-dashoffset: 0;
        fill-opacity:1;
        stroke: transparent;
    }
}
section#greeting .section-inner {
    padding-bottom: 80px;
}
section#greeting .contents_body {
    max-width: 1000px;
    margin: 0 auto;
}
.greeting-wrapper {
    display: flex;
    gap: 100px;
}
.greeting-text-box {
    flex: 1;
}
.greeting-text-box p {
    margin-bottom: 1em;
}
.greeting-image-box {
    width: 35%;
}
.greeting-image-box img {
    display: block;
    box-shadow: 5px 5px 11px rgba(0,0,0,0.6);
}


@media only screen and (max-width: 1023px) {
    .greeting-wrapper {
        gap: 50px;
    }
}

@media only screen and (max-width: 767px) {
	.greeting-wrapper {
        flex-direction: column-reverse;
        align-items: center;
        gap: 30px;
    }
    .greeting-image-box {
        width: 300px;
    }
}


@media only screen and (max-width: 450px) {
	
}

/*
--- 歴史・沿革 history
---------------------------------------------------------------------------*/
section#history {
    background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    position: relative;
    z-index: 0;
}
section#history::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #F7ECB2;
    mix-blend-mode: screen;
    opacity: 0.9;
}
section#history .section-inner {
    background-color: transparent;
}
.swiper-container {
    max-width: 1220px;
    margin: auto;
}
.history-slider-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}
.history-slider-list {
    display: flex;
    transition: transform 0.5s ease;
    padding-left: 100px;
}
.slider-item {
    height: 100%;
    padding: 20px;
}

.year {
    padding-bottom: 15px;
    margin-bottom: 15px;
    position: relative;
}
.year::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #00576C;
    left: 0;
    bottom: 0;
    transform: translate(-50%, 50%);
}
.year::after {
    content: '';
    position: absolute;
    width: calc(100% + 40px);
    height: 1px;
    background-color: #00576C;
    left: 0;
    bottom: 0;
    transform: translate(0%, 50%);
}
.history {
    font-size: 14px;
}
.his-img {
    padding: 10px;
}
.his-img img {
    width: 100%;
}

section#history a.link-btn {
    border-color: #106981;
    color: #01566c;
}
section#history a.link-btn::after {
    border-color: #106981;
}
section#history a.link-btn::before {
    background-color: rgba(255,255,255,0.5);
}


@media only screen and (max-width: 1023px) {
	
}


@media only screen and (max-width: 767px) {
	
}


@media only screen and (max-width: 450px) {
	
}




/*
--- 将来構想 - future
---------------------------------------------------------------------------*/
section#future {
    text-align: center;
}
section#future .section-inner {
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    position: relative;
}

canvas {
    pointer-events: none;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    /*width: 100%;
    height: 100%;*/
    display: block;
    filter: blur(1px);
    opacity: 0.7;
}

section#future h2 {
    font-size: 64px;
    font-weight: 100;
    color: #D8CA83;
    margin-bottom: 10px;
}

section#future .contents_body {
    position: relative;
    z-index: 100;
}
.message {
    display: inline-block;
    font-size: 24px;
    max-width: 500px;
    margin: 10px auto 0;
    padding: 0 40px;
    position: relative;
}
.message::before, .message::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 1px;
    background-color: #F7ECB2;
    top: 50%;
}
.message::before {
    left: 0;
}
.message::after {
    right: 0;
}
.link-btn-wrap {
    text-align: center;
    margin-top: 50px;
}
a.link-btn {
    display: block;
    margin: auto;
    max-width: 350px;
    padding: 30px 25px;
    border: solid 1px #F7ECB2;
    color: #F7ECB2;
    position: relative;
    z-index: 0;
}
a.link-btn::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.25);
    filter: blur(15px);
    opacity: 0;
    -webkit-transition: opacity 0.5s ease-out;
    -o-transition: opacity 0.5s ease-out;
    transition: opacity 0.5s ease-out;
}
a.link-btn:hover::before {
    opacity: 1;
}
a.link-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    border-top: solid 1px #F7ECB2;
    border-right: solid 1px #F7ECB2;
}

.future-bg_image-wrap {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: -20px;
    left: 0;
}
.future-bg_image-wrap .ft-img-box {
    position: absolute;
    box-shadow: 6px 5px 14px rgba(0, 0, 0, 0.3);
}
.future-bg_image-wrap .ft-img-box:first-of-type {
    width: 180px;
    left: 20%;
    top: 0;
}
.future-bg_image-wrap .ft-img-box:nth-of-type(2) {
    width: 240px;
    left: 8%;
    bottom: 20%;
}
.future-bg_image-wrap .ft-img-box:last-of-type {
    width: 180px;
    right: 8%;
    top: 30%;
}
.future-bg_image-wrap .ft-img-box img {
    display: block;
    mask-image:
    linear-gradient(to top, rgb(0 0 0 / 100%) 96%, rgb(0 0 0 / 0%) 100%),
    linear-gradient(to bottom, rgb(0 0 0 / 100%) 96%, rgb(0 0 0 / 0%) 100%),
    linear-gradient(to left, rgb(0 0 0 / 100%) 97%, rgb(0 0 0 / 0%) 100%),
    linear-gradient(to right, rgb(0 0 0 / 100%) 97%, rgb(0 0 0 / 0%) 100%);
    mask-composite: intersect;
}

@media only screen and (max-width: 1023px) {
	.future-bg_image-wrap .ft-img-box:first-of-type {
        width: 140px;
        left: 14%;
    }
    .future-bg_image-wrap .ft-img-box:nth-of-type(2) {
        width: 180px;
        left: 5%;
        bottom: 12%;
    }
    .future-bg_image-wrap .ft-img-box:last-of-type {
        width: 150px;
        right: 4%;
        top: auto;
        bottom: 17%;
    }
}


@media only screen and (max-width: 767px) {
    section#future h2 {
        font-size: 56px;
    }
    canvas {
        opacity: 0.4;
    }
}


@media only screen and (max-width: 450px) {
    .future-bg_image-wrap .ft-img-box:first-of-type {
        width: 120px;
        left: 7%;
        top: 5%;
    }
    .future-bg_image-wrap .ft-img-box:nth-of-type(2) {
        width: 150px;
        left: -3%;
    }
    .future-bg_image-wrap .ft-img-box:last-of-type {
        bottom: 8%;
    }
}

/*
--- 
---------------------------------------------------------------------------*/
section#project {
    background: -moz-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: -webkit-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
	background: linear-gradient(to right, #0D434D, #17848A 50%, #0D434D);
}
section#project .section-inner {
    padding-left: 0;
    padding-right: 0;
}

.project-wrapper {
    display: flex;
}
.project-box {
    width: calc(100% / 3);
}
.project-img {
    padding-bottom: 100%;
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.project-img img {
    position: absolute;
    z-index: -1;
    height: 100%;
    width: auto;
    -webkit-transition: transform 1.2s;
    -o-transition: transform 1.2s;
    transition: transform 1.2s;
}
/*.project-img:hover img {
    transform: scale(1.05, 1.05);
}*/
.project-img::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(13,67,77,1);
    opacity: 0.6;
    -webkit-transition: opacity 0.8s;
    -o-transition: opacity 0.8s;
    transition: opacity 0.8s;
}
/*.project-img:hover::after {
    opacity: 0.4;
}*/
.project-img > a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

section#project a.link-btn {
    border-color: #106981;
    color: #01566c;
}
section#project a.link-btn::after {
    border-color: #106981;
}
section#project a.link-btn::before {
    background-color: rgb(16 105 129 / 15%);
}

@media only screen and (max-width: 1023px) {
    .project-img > a {
        font-size: 20px;
    }
}


@media only screen and (max-width: 767px) {
	.project-wrapper {
        flex-direction: column;
    }
    .project-box {
        width: 100%;
    }
    .project-img {
        padding-bottom: 40%;
    }
    .project-img img {
        width: 100%;
        object-fit: cover;
    }
    .project-img > a {
        font-size: 24px;
    }
}


@media only screen and (max-width: 450px) {
    .project-img > a {
        font-size: 20px;
    }
}

/*
--- 寄付金 - donation
---------------------------------------------------------------------------*/
section#donation {
    text-align: center;
    background-color: #fff;
}
section#donation svg.sec-wave {
    fill: #d8ca83;
    stroke: #d8ca83;
}
.donation-text {
    display: inline-block;
    max-width: 1000px;
    margin: 0 auto;
}
section#donation a.link-btn {
    border-color: #3F4E57;
    background: -moz-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
    background: -webkit-linear-gradient(left, #0D434D, #17848A 50%, #0D434D);
    background: linear-gradient(to right, #0D434D, #17848A 50%, #0D434D);
}

@media only screen and (max-width: 1023px) {
	
}


@media only screen and (max-width: 767px) {
	
}


@media only screen and (max-width: 450px) {
	
}


/*
---
---------------------------------------------------------------------------*/
footer{
    background-color: #D8CA83;
}

@media only screen and (max-width: 1023px) {
	
	/*
	---
	---------------------------------------------------------------------------*/
}


@media only screen and (max-width: 767px) {
	
	/*
	---
	---------------------------------------------------------------------------*/
}


@media only screen and (max-width: 450px) {
	
	/*
	---
	---------------------------------------------------------------------------*/
}


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

@media only screen and (max-width: 1023px) {
	
	/*
	---
	---------------------------------------------------------------------------*/
}


@media only screen and (max-width: 767px) {
	
	/*
	---
	---------------------------------------------------------------------------*/
}


@media only screen and (max-width: 450px) {
	
	/*
	---
	---------------------------------------------------------------------------*/
}










