@charset "UTF-8";

body {
    text-align: center;
    margin: 50px;
    background-color: #8f9394;
    color: white;
    font-family: "YuMincho";
}

@media screen and (max-width: 768px) {
    body p{
        font-size: 15px;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    margin: -50px;
    padding: 0 0 30px 0;
}

.video-box {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 75vh;

    margin: 0px;
}

.video-container {
    position: absolute;
    /* top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%); */
    inset: 0;
}
.video-container video {
    width: 100%;
    height: 100%; 
    object-fit: cover;
}

.overlay::after {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    background: rgba(0, 0, 0, 0.4);
}

.titlebar img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 800px;
    height: 300px;
    object-fit: contain;
    /* padding: 50px; */
}

@media screen and (max-width: 768px) {
  .titlebar img {
    object-fit: contain;
    width: 300px;
    height: 300px;
  }
}

.point {
    /* padding: 50px; */
    object-fit: contain;
    width: 50px;
    height: 100px;
    padding: 100px 0px 150px 0px;
    animation: bound 1s infinite;
}

@media screen and (max-width: 768px) {
    .point {
    /* padding: 50px; */
        width: 50px;
        height: 75px;
        animation: bound 1s infinite;
    }
}
@keyframes bound {
    0% {
        transform: translateY(-20%);
    }
    80% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(0%);
    }
}

@media screen and (max-width: 760px) {
    .point {
        padding: 0px;
    } 
}

/* .mokuji {
    display: flex;
    justify-content: center; 
    flex-direction: column;  
    height: 200px;
    margin: 30px 300px;
    /* text-align: center; */
    /* border: 1px solid #FFFFFF; */
    /* display: flex; */
    /* justify-content: center;               */
    /* justify-content: center; */
/* } */

.button {
    background-color: #000000;
    /* height: 50px; */
    color: white;
    text-align: center;
}

.background-text {
    /* margin: 0 300px; */
    display: flex;
    flex-direction: column; 
    justify-content: center;
}

.background-text-block h2 {
    font-size: 30px;
}

.background-text-block {
    margin: 0 50px;
}

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

    .background-text-block {
        margin: 0 25px;
    }
  .background-text-block h2 {
    font-size:20px;
  }
}

.tag {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    padding: 2px 20px;
    border-radius: 15px;
}
@media screen and (max-width: 768px) {
  .tag {
    background: transparent;
    color: #FFFFFF;
    font-size: 7px;
    border: 1px solid #FFFFFF;
    padding: 2px 10px;
    border-radius: 15px;
}
}

.tag-row {
    display: flex;
    margin: 5px;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  background-color: #FFF;
  flex: 1;
}

.card {
    display: flex;
    justify-content: center;
    padding: 50px;
    opacity: 0;
    /* visibility: hidden; */
    transition: all 1s;
    transform: translateY(25px);
    /* background-color: white; */
}

.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.card img {
  object-fit: cover; 
  width: 300px; 
  height: 200px;
  margin-right: 16px;
  padding-right: 16px;
  border-right: 1px solid #FFF; /* ← 縦線 */
}

.card-text h1 {
    font-size: 30px;
    margin: 5px;
}

.card-text p {
    font-size: 15px;
    margin: 5px;
    /* margin: 5px; */
}



@media screen and (max-width: 600px) {
    .card {
        padding: 20px;
        flex-direction: column; 
        justify-content: center;
        /* align-items: center; */
    }
        
    /* background-color: white; */
    .card h1{
        font-size: 20px;
        
    /* background-color: white; */
    }   
    .card p {
        font-size: 13px;
    }

    .card img {
        margin-right: 0px;
        /* padding-right: 0px; */
        border-right: none;
        object-fit: cover;
        height: 170px;
        width: 216px;
    }

    .card-text {
        margin-left: 16px;
        padding-left: 16px;
        border-left: 1px solid #FFF;
        text-align: left;
        max-width: 200px;
    }
}

.image {
    position:relative;
}
.top-pic {
    position:absolute;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.top-pic:hover{
  opacity: 1;
}

.card-text {
    text-align: left;
    /* display: flex;              
    flex-direction: column;  */
    width: 500px;
    /* justify-content: space-between; */
}