@charset 'UTF-8';

/* loading */
#splash {
	position: fixed;
	width: 100%;
	height: 100%;
	/* background:rgb(203, 133, 94, 0.8); */
    background:var(--background2);
	z-index: 9999999;
	text-align:center;
	color:#fff;
    opacity: 0.5;
}

#splash-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#splash_logo img {
    width: 300px;
}

.fadeUp {
    animation-name:fadeUpAnimation;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes fadeUpAnimation {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
HERO
================================================ */
#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#hero .wrapper {
    position: relative;
    padding: 0;
}

#hero p {
    position: absolute;
    top: 30%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    padding: .5rem 0;
    font-size: 1rem;
    margin: 1.5rem;
    color:var(--white);
    background: rgba(56, 88, 67, 0.3);
}

#hero ul {
    margin:0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

#hero li {
    overflow: hidden;
}

/* #hero .hero-slider {
    position:relative;
    z-index: 1;
    height: 100vh;
} */

#hero #hero-image-slider {
    position:relative;
    z-index: 1;
    width:100vw;
    height: 100vh;
}
  
/*　背景画像設定　*/
  
/* #hero .hero-slider-item01 {
      background:url(../images/hero.jpg);
      animation: animateHeroImage 3s infinite;
}

#hero .hero-slider-item02 {
    background:url(../images/bg_top_2.jpg);
    animation: animateHeroImage 3s infinite;
}

#hero .hero-slider-item03 {
    background:url(../images/bg_top_3.jpg);
    animation: animateHeroImage 3s infinite;
}

@keyframes animateHeroImage {
    0% {
        transform:translate(0);
    }
    100% {
        transform:translate(20%, 20%);
    }
    
} */

/* #hero .hero-slider-item {
    width: 100%;
    height:100vh;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 10vh;
} */

#hero .detailArea {
    position:fixed;
    /* vertical-align:middle;  */
    padding: 0;
    text-align: center;
    top:20vh;
    height:10vh;
    z-index: 3;
}

/*
ABOUT
================================================ */
#about {
    /* padding: 4rem 1rem; */
    padding-top: 10vh;
    height: 100vh;
    /* background-color: var(--green); */
    /* background-image: url('../images/hero.jpg'); */
    color: var(--white);
}

#about h2 {
  background: var(--white);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#about p {
    text-align: left;
    color: var(--white);
}

#about .works-box li {
    text-align: left;
    color: var(--black);
    padding-left: 3vw;
}

#about .works-circle p {
    margin:0 auto;
    padding: 0;
    text-align: center;
    color:var(--timberwolf);
}

#about img {
    background-size: cover;
    background-position: 50% 30%;
}

/*-- works-box --*/
.works-box-container {
    position:relative;
    top:0%;
    left:0%;
    width:100%;
    height:70%;
    padding:10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.works-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    transform: translateX(-50%);
    width: 15%;
    height: 30%;
    border-radius: 50%;
    background-color: var(--east-bay-dark);
    z-index: 999;
    text-align: center;
    padding: 2em 0;
    opacity: 0.8;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.works-box {
    /* width: 45%!important; */
    width: 40%!important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background2);

    padding: 3em 1em 1em;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
    position:relative;

    margin: 0.5em auto;
    border-top: solid 5px var(--grey-9);

    opacity: 0.7;
}

.works-box .works-title {
    background-color: var(--grey-7);
    font-size: 1em;
    color: #fff;
    padding:10px;
    text-align: center;
    width:100%;
    position:absolute;
    top:0;
    left:0;
}

/*
NEWS
================================================ */
/* #news {
    padding: 7rem 0;
    padding-top: 10vh;
    height: 100vh;
} */

#news h2 {
    color: var(--white);
}

#news .contentArea {
    top:30%;
}

.news-table {
    position: absolute;
    color: var(--white);
    width:100%;
    height:70%;
    text-align: center;
    z-index: 2;
    padding: .5rem .5rem;
    font-size: 1rem;
    /* margin: 1.5rem; */
}

.news-table tr {
    border-bottom: 1px solid rgba(255,255,255,.5);
}
.news-table td {
    display: block;
    line-height: 1.5;
}
/* .news-date {
    font-size: .875rem;
    padding-top: 1rem;
}
.news-content {
    padding-bottom: 1rem;
} */

/*
zeb
================================================ */
#zeb {
    /* padding: 4rem 1rem; */
    position: relative;
    padding-top: 10vh;
    height: 100vh;
    /* background-color: var(--white); */
    /* background-image: url('../images/hero.jpg'); */
    color: var(--white);
}

#zeb h2 {
  color: var(--white);
}

#zeb p {
    text-align: left;
    color: var(--white);
}

.bar-wrapper:nth-of-type(n+2) .label {
    color:#1D2815;
}

#zeb img {
    position: absolute;
    text-align: center;
    padding-top:5%;
    left:50%;
    height: 11vh;
    transform: translate(-50%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#zeb .zebImg {
    position: absolute;
    bottom: 0%;
    left: 80%;
    height: 15vh;
    width: 100%;
    transform: translate(-50%);
}

/*
ACHIEVEMENTS
================================================ */
#achievements {
    /* padding: 4rem 1rem; */
    padding-top: 10vh;
    height: 100vh;
    /* background-color: var(--light-brown); */
    /* background-image: url('../images/hero.jpg'); */
    color: var(--white);
}

/* #achievements img {
    width: 90%;
	vertical-align: bottom;
    z-index: 5;
} */

#achievements .wrapper{
    height:80vh;
    max-width:900px;
    margin:0 auto;
    overflow: hidden;
}

#achievements li:hover {
    cursor: pointer;
}

.gallery-slider {
    width:80%;
    margin:0 auto;
    height:70%;
    padding: 0;
}

.gallery-slider .slick-slide {
    padding: 0 10px;
	transform: scale(1);
	transition: all .5s;
	opacity: 0.5;
    transition-duration: 0.3s;
    .year, .facility {
        display:none;
    }
    img {
        /* width:20vw;
        height:50vh; */
    }
}

.gallery-slider .slick-slide.slick-center{
	transform: scale(1);
	opacity: 1;
    background: rgba(36, 32, 32, 0.5);
    position:relative;
    .year {
        position:absolute;
        display: inline-block;
        color:rgba(255, 255, 255, 0.5);
        left:10px;
    }
    .facility {
        position:absolute;
        display: inline-block;
        left:10px;
    }
    img {
        padding: 10px 2px 10px 2px;
        object-fit: cover;
    }
}

.slick-prev, 
.slick-next {
    position: absolute;
    z-index: 3;
    top: 42%;
    cursor: pointer;
    outline: none;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
    height: 15px;
    width: 15px;
}

.slick-prev {
    left: -2%;
    transform: rotate(-135deg);
}

.slick-next {
    right: -2%;
    transform: rotate(45deg);
}

.slick-list {
    overflow: visible;
}

.slick-dots {
    text-align:center;
	margin:20px 0 0 0;
}

.slick-dots li {
    display:inline-block;
	margin:0 5px;
}

.slick-dots button {
    color: transparent;
    outline: none;
    width:8px;
    height:8px;
    display:block;
    border-radius:50%;
    background:#ccc;
}

.slick-dots .slick-active button{
    background:#333;
}


/*
GENERAL STYLING
================================================ */
html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    height: 100vh;
}

.top-container {
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* .top-container.active {
    transform: translateY(-100%);
} */

.sub-container {
    width: 100%;
    z-index: 3;
}
/* 
.top-container.active + .sub-container {
    transform: translateY(0);
    opacity: 1;
} */

/* .top-container.active + .sub-container {
    transform: translateY(0);
} */
/* 
.top-container {
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.sub-container {
    width: 100%;
    z-index: 3;
}

.top-container.active + .sub-container {
    display: block;
} */

section
 {
    height: 90vh;
    position:absolute;
}

/*
COMMON
================================================ */
/* Layout */
 .wrapper {
    position:relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.contentArea {
    position:relative;
    top: 30%;
    left: 50%;
    width: 80%;
    height: 60%;
    transform: translate(-50%, -50%);
    background: rgba(36, 32, 32, 0.5);
    text-align: center;
    z-index: 2;
    padding: .5rem 0;
    font-size: 1rem;
    margin: 1rem;
    box-sizing: border-box; /* Add this line to prevent layout issues when scaling */
}

.contentArea .content-disp p {
    padding: 0 2rem;
}

p {
    line-height: 1.7;
}

img {
    max-width: 100%;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
h1,
h2 {
    text-align: center;
}

.scrolldown {
	position:absolute;
	bottom:20%;
	right:10%;
    z-index:10;
}


.scrolldown span{
	position: absolute;
	left:-20px;
	bottom:10px;
	color: #eee;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	-ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    z-index: 3;
}

.scrolldown:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: -6px;
    width: 1px;
    height: 20px;
    background: #eee;
    transform: skewX(-31deg);
    z-index: 10;
}

.scrolldown:after{
	content:"";
	position: absolute;
	bottom:0;
	right:0;
	width:1px;
	height: 100px;
	background:#eee;
    z-index: 10;
}

/* 詳細ボタンエリア */
.detailArea {
    position:relative;
    /* vertical-align:middle;  */
    padding: 0;
    text-align: center;
    top:5%;
    left: 50%;
    transform:translate(-50%);
    height:10vh;
}

#hero .detailArea {
    position:relative;
    /* vertical-align:middle;  */
    padding: 0;
    text-align: center;
    top:20%;
    right:30%;
    height:10vh;
}

#achievements .detailArea {
    height:5vh;
}

/* 詳細ボタンエリア */
#news .detailArea {
    top:20%;
}

 .btnDetail {
    position: absolute;
    overflow: hidden;
    padding: 1rem 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: #000;
    text-align: center;
    border-radius: 0.5rem;
  }

  .btnDetail:hover {
    opacity: 0.8;
  }
  
  .btnDetail span {
    position: relative;
  }

  .btnMain {
    position: absolute;
    overflow: hidden;
    padding: 1rem 2rem;
    color: #fff;
    background: #000;
    border-radius: 0.5rem;
    z-index: 3;
  }

  .btnMain:hover {
    opacity: 0.8;
  }
  
  .btnMain span {
    position: relative;
  }

/*-------*/
/*SP-SIZE*/
/*-------*/
@media (max-width: 750px) {

    body {
        overflow-x: hidden;
    }
    
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .wrapper {
        width: 100%;
        padding: 0;
        overflow: hidden;
    }

    #hero .news {
        display: none;
    }

    #hero {
        position: relative;
        z-index: 1;
        width:100%;
        height: 100vh;
    }

    #hero #hero-image-slider {
        content:"";
        position:fixed;
        top:0;
        left:0;
        z-index:-1;
        width:100%;
        height: 100vh;
    }

    .sub-container {
        position: relative;
        background-color: var(--grey-7);
        opacity: 0.9;
    }
    .contentArea {
        /* background: rgb(155, 126, 128); */
        background:var(--grey-2);
        margin:0;
    }

    #about {
        height:160vh;
    }

    #about .contentArea {
        top: 42%;
        height: 122vh;
    }

    #about .detailArea {
        top:5%;
        z-index: 999;
    }

    #about p,
    #about li,
    #zeb p {
        /* color:#1D2815; */
        color:#1D4A63;
    }

    #about p,
    #zeb p {
        padding:1rem;
        font-weight: bold;
    }

    .works-box {
        width: 90%!important;
        li{
            font-size: clamp(0.7rem, 3vw, 1.5rem);
        }
    }

    .works-circle {
        display: none;
    }

    #zeb {
        height:140vh;
    }

    #zeb .contentArea {
        top: 40%;
        height: 95vh;
        margin:10px 0px 50px;
    }

    #zeb .detailArea {
        top: 5%;
        z-index: 999;
    }
    
    .zeb-chart {
        width: 90%;
        max-width: 800px;
        background: #fff;
        padding: 5px 1px;
        margin: 0 auto;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        height:50vh;
        overflow: auto;
    }

    .bar-container {
        position: relative;
        background-color: #e0e0e0;
        border-radius: 10px;
        height: 30px;
        overflow: hidden;
        margin:10px;
    }

    .bar {
        height: 100%;
        border-radius: 10px;
        transition: width 1s ease;
    }

    .full {
        width: 100%;
        background-color: #4caf50;
    }

    .nearly {
        width: 75%;
        background-color: #4caf50;
    }

    .ready {
        width: 50%;
        background-color: #4caf50;
    }

    .oriented {
        width: 40%;
        background-color: #4caf50;
    }

    .label {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        font-weight: bold;
    }

    #zeb p {
        font-size: clamp(0.8rem, 2vw, 1.5rem);
    }

    .bar-wrapper p {
        font-size: clamp(0.8rem, 2vw, 1.5rem);
        color: #1D2815;
    }

    #zeb .zebImg {
        margin-top:10px;
    }

    #zeb .zeb-chart p {
        padding: 0.1rem;
    }

    .btn-menu {
        /* transform:translateX(-50px); */
    }
    section {
        scroll-snap-align: start;
    }

    /* Achievements */
    #achievements {
        height: 120vh;
    }

    .gallery-slider .slick-list {
        overflow: visible;
    }

    .gallery-slider .slick-slide {
        padding: 5px;
        transition: all .5s;
        opacity: 0.5;
        transition-duration: 0.3s;
        .year, .facility {
            display:none;
        }
        img {
            padding:0;
            width:100%;
            height:50vh;
        }
    }

    .gallery-slider .slick-track{}

    .gallery-slider .slick-slide.slick-current {
        opacity: 1;
    }
    
    .gallery-slider .slick-slide.slick-center {
        opacity: 1;
        background:var(--white);
        position:relative;
        .year {
            font-size:0.8rem;
            color:var(--white);
            bottom:15%;
            left:10px;
            opacity: 0.9;
        }
        .facility {
            font-size:1rem;
            bottom:4%;
            left:10px;
            color:var(--white);
            background-color: rgba(56, 88, 67, 0.6);
        }
        img {
            padding:0;
            width:100%;
            height:50vh;
        }
    }
}
/*------------*/
/*DESKTOP-SIZE*/
/*------------*/
@media (min-width: 750px) {
    .container {
        overflow: auto;
        position: relative;
        /* scroll-snap-type:y mandatory; */
        -ms-overflow-style: none;
        scrollbar-width: none;
      
        &::-webkit-scrollbar {
          display: none;
        }
    }
    .top-container {
        overflow: scroll;
        scroll-snap-type: y proximity; /* mandatoryからproximityに変更 */
        position: absolute;
        scroll-snap-align: start;
        transition: transform 0.5s ease-in-out;
        -ms-overflow-style: none;
        scrollbar-width: none;
        /* macOS Safari対応 */
        -webkit-overflow-scrolling: touch;
      
        &::-webkit-scrollbar {
          display: none;
        }
    }
    .sub-container {
        height: 100vh;
        overflow: scroll;
        scroll-snap-type: y proximity; /* mandatoryからproximityに変更 */
        position: absolute;
        scroll-snap-align: start;
        background-image: url("../images/bg_top_sub.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 2s ease-in-out, opacity 2s ease-in-out;
        transform: translateY(100%);
        opacity: 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
        /* macOS Safari対応 */
        -webkit-overflow-scrolling: touch;
      
        &::-webkit-scrollbar {
          display: none;
        }
    }
    
    .sub-container.PageIn{
        animation-name:PageInAnime;
        animation-duration:2s;
        animation-delay: 0.8s;
        animation-fill-mode:forwards;
    }
    
    @keyframes PageInAnime{
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
            transform: translateY(0%);
        }
    }

    /* macOS Safari用の追加スタイル */
    @supports (-webkit-touch-callout: none) {
        .top-container {
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }
        .sub-container {
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }
    }

    /* Common */
    h1,
    h2 {
        text-align: center;
    }
    h2 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
    a:hover {
        transition: .3s;
        color: var(--gurkha);
    }
    section {
        scroll-snap-align: start;
        transition: transform 2s ease-in-out, opacity 2s ease-in-out;
    }

    /* Hero */
    #hero h1 {
        font-size: 4rem;
    }
    #hero p {
        font-size: 1.8rem;
    }

    /* #hero .news {
        font-size: 1rem;
        width:85vw;
        height: 5vh;
        overflow-y: hidden;
    } */

    #hero .news {
        position: absolute;
        top: 85%;
        left:50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 2;
        padding: .5rem 0;
        margin: 1.5rem;
        color:var(--white);
        background: rgba(36, 32, 32, 0.5);
        font-size: 1rem;
        width:85vw;
        height: 5vh;
        overflow-y: hidden;
    }

    #hero .news span{
        position: relative;
        /* display: inline-block; */
        width: 100%;
        height: 100%;
        padding:1rem 0;
        display: flex;
        align-items: center;
        animation: ShiftText 20s linear infinite;
    }

    #hero .news .news-date {
        width: 15vw;
        padding:1rem .5rem;
        text-align: right;
    }

    #hero .news .news-content {
        text-align: left;
        flex-grow: 1;
        padding: 1rem .5rem;
    }
    
    @keyframes ShiftText{
        0%{
            opacity: 0;
        }
        
        1%,25%{
            /* top: -.5rem; */
            opacity: 1;
        }
        
        26%,50%{
            top: -2rem;
        }
        
        51%,75%{
            top: -4rem;
        }
        
        76%,100%{
            top: -6rem;
        }
    } 

    /* Works */
    .works-item {
        width: 60vw;
        max-width: 400px;
        /* padding: 10vw 5vh; */
    }

    .works-box {
        height:60%;
        li{
            font-size: clamp(0.7rem, 1vw, 1.2rem);
        }
    }

    .works-box .works-title {
        padding:clamp(5px, 5vh, 7px);
    }

    .contentArea {
        top: 35%;
        margin: 1.5rem;
    }

    #zeb img {
        height: 18vh;
    }

    .detailArea {
        top:4%;
        right:10%;
        height:10vh;
    }

    #news .detailArea {
        top:5%;
    }

    /* zeb */
    #zeb .zebImg {
        bottom: 20%;
    }

    /* .zeb-chart {
        width: 100%;
        max-width: 800px;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        height: calc(100% - 40px);
        overflow: auto;
    } */

    .zeb-chart {
        width:70%;
        height:70%;
        /* padding: 10px; */
        padding: 1rem 3rem;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }

    .bar-wrapper {
        display: flex;
        flex-direction: column;
        height: 40%;
    }

    .bar-wrapper p {
	    font-size: calc(0.4vw + 0.5rem);
        color: #1D2815;
    }

    .bar-container {
        position: relative;
        background-color: #e0e0e0;
        border-radius: 10px;
        /* height: 30px; */
        height: 100%;
        overflow: hidden;
    }

    .bar {
        height: 100%;
        border-radius: 10px;
        transition: width 1s ease;
    }

    .full {
        width: 100%;
        background-color: #4caf50;
    }

    .nearly {
        width: 75%;
        background-color: #4caf50;
    }

    .ready {
        width: 50%;
        background-color: #4caf50;
    }

    .oriented {
        width: 40%;
        background-color: #4caf50;
    }

    .label {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        font-weight: bold;
    }

    .gallery-slider {
        max-width:80vw;
    }

    .gallery-slider .slick-slide {
        padding: 0 10px;
        transform: scale(0.6);
        transition: all .5s;
        opacity: 0.5;
        transition-duration: 0.3s;
        .year, .facility {
            display:none;
        }
        img {
            width:100%;
            height:60vh;
        }
    }
    
    .gallery-slider .slick-slide.slick-center{
        transform: scale(1);
        opacity: 1;
        background: rgba(36, 32, 32, 0.5);
        position:relative;
        .year {
            font-size:clamp(0.8rem, 1.5vw, 1.2rem);
            bottom:10%;
            left:10px;
        }
        .facility {
            vertical-align: top;
            font-size:clamp(1rem, 1.5vw, 1.3rem);
            bottom:4%;
            left:10px;
        }
        img {
            /* padding: 10px 2px 10px 2px; */
            width:100%;
            height:60vh;
        }
    }
}

/*
DESKTOP SIZE（Large）
================================================ */
@media (min-width: 1000px) {
    
    .btnDetail {
        padding: 1.5rem 3rem;
    }

}