.header-wrapper {
    position: relative; 
    background: url("../../images/pc/top_pc/headder_bg.svg") no-repeat center ;
    background-size: cover;
    padding-top: 5%;
    min-height: 100%;
}

.header-wrapper::after {
    content: "";
    position: absolute;
    bottom: -90px;
    left: 0;
    right: 0;
    height: 100px;
    background: url("../../images/pc/top_pc/headder_bg.svg") no-repeat center;
    background-size: contain;
    min-height: 227px;
    z-index: 1;
}
.content-wrapper {
    position: relative;
    background: url("../../images/pc/top_pc/wave.svg") no-repeat center top;
    /* background-size: 100% auto; */
    background-size: cover;
    padding: 50px 0 145px 0;
    margin-top: -1.5%;
    z-index: 1;
}
.content-footer-wrapper {
    position: relative;
    padding: 75px 0 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -5%;
    transition: right 0.3s ease;
    text-align: center;
    overflow: hidden;
}
.content-footer-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("../../images/pc/top_pc/back.jpg") no-repeat center;
    background-size: cover;
    /* opacity: .5; */
    /* z-index: 0; */
}
.content-footer-wrapper > * {
    position: relative;
    z-index: 1;
}
.content-footer-wrapper p {
    font-size: 20px;
    font-weight: bold
}
.footer-wrapper {
    background: url("../../images/pc/top_pc/wave_white.svg") no-repeat center top;
    background-size: 100% auto;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}
.gallery {
    width: 80%;
}
.close-btn {
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    float: right;
    color: #e2e2e2;
}
.menu-content {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
}
.menu-content a {
    padding: 10px 0;
    text-decoration: none;
    color: #747474;
    font-size: 12px;
    font-weight: bold;
}

/* .slider {
    position: absolute;
}
.slider-content {
    position: absolute;
    text-align: center;
}
.slider-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.slider-image {
    display: flex;
    width: 100%;
}

.slider-image img {
    width: 100%;
    flex-shrink: 0;
} */
 .slider {
  position: relative;
  width: 100%;
  /* height: 100vh; */
  overflow: hidden;
}

.slider-section {
  width: 100%;
  /* height: 100%; */
  position: relative;
}

.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}

.slider-image {
  display: flex;
  width: 100%;
  height: 100%;
}

.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image covering the space */
  flex-shrink: 0;
}


.slider {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.slider-section {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.slider-content img {
    max-width: 80%;
    height: auto;
}

.slider-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}

@keyframes slide {
    0%   { transform: translateX(0); }
    8.33%  { transform: translateX(-100%); }
    16.66% { transform: translateX(-200%); }
    25%  { transform: translateX(-300%); }
    33.33% { transform: translateX(-400%); }
    41.66% { transform: translateX(-500%); }
    50%  { transform: translateX(-600%); }
    58.33% { transform: translateX(-700%); }
    66.66% { transform: translateX(-800%); }
    75%  { transform: translateX(-900%); }
    83.33% { transform: translateX(-1000%); }
    91.66% { transform: translateX(-1100%); }
    100% { transform: translateX(0); }
}

.card {
    display: flex;
    flex-direction: column;
    background: white;
    margin: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 260px;
    text-align: center;
    box-sizing: border-box;
    flex: 1 1 250px;
}
.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f0f0f0;
    display: block;
}
.card-container {
    text-align: center;
    padding: 8px 10px;
}
.card-btn-event {
    border-radius: 20px;
    padding: 2px 30px;
    margin: 12px 0px;
    background-color: #68D0BB;
    color: white;
    border: none;
    font-size: 15px;
}
.card-btn-news {
    border-radius: 20px;
    padding: 2px 30px;
    margin: 10px 0px;
    background-color: #BEC736;
    color: white;
    border: none;
    font-size: 15px;
}
.card-title {
    font-size: 15px;
    font-weight: bold;
}
.card-content {
    font-size: 13px;
}
.card-desc {
    font-size: 12px;
    margin-bottom: 10px;
}
.card-content p {
    margin: 15px 0;
    text-align: left;
}
.btn-card {
    width: 90%;
    display: flex;
    margin-top: 1%;
}
.btn-link {
    width: 50%;
    background-color: white;
    padding: 10px 40px;
    border-radius: 50px;
    text-align: center;
    display: inline-block;
    margin: 20px 12px;
}
.btn-link img {
    margin-right: 10px;
}
.btn-link-group {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}
.btn-link a {
    color: black;
    text-decoration: none;
}
.btn-text {
    font-size: 25px;
    display: block;
    font-weight: bold;
}
.btn-content {
    font-size: 12px;
}
.content-footer-div {
    display: flex;
    text-align: left;
    justify-content: center;
    align-items: center;
    width: 70%;
    margin: 0 auto;
    gap: 40px;
}
.content-footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.content-footer-top img {
    max-width: 20%;
}
.content-footer-large span {
    display: block;
}
.content-footer-logo {
    width: 6%;
}
.content-footer-top,
.content-footer-small {
    display: flex;
    text-align: left;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
    width: 50%;
}
.content-footer-small {
    flex-wrap: wrap;
    font-size: 20px;
}
.footer-content {
    margin-bottom: 5%;
}
.footer-content-header {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-bottom: 5%;
}
.top-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-content-header a {
    padding-top: 10px;
}
.footer-content-header a , .footer-content-header span {
    margin-right: 10px;
    text-decoration: none;
    color: black;
}
.footer-content-text-large {
    font-size: 20px;
    font-weight: bold;
    vertical-align: top;
}
.footer-content-text-small {
    font-size: 10px;
}
.footer-content-div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.content-div {
    flex: 0 0 calc(25% - 7.5px);
    background: #D0C2C2;
    height: 200px;
}

@media (max-width: 768px) {
    .gallery {
        width: 92%;
    }
    .card-content {
        text-align: left;
    }
    .footer-content-header {
        flex-direction: column;
        align-items: center;
        margin: 15% 0;
    }
    .footer-content-div {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .content-div {
        flex: 0 0 calc(25% - 7.5px);
        background: #D0C2C2;
        height: 150px;
    }

    .header-wrapper {
        background: url("../../images/mobile/top_mobile/headdermask.svg") no-repeat center;
        padding-top: 22%;
        /* padding-top: calc(100% / 8); */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding-top: 0;
        z-index: 999;
        min-height: 9%;
    }

    .header-wrapper::after {
        background: url("../../images/mobile/top_mobile/headdermask.svg") no-repeat center;
        background-size: contain;
    }
    .content-wrapper {
        background: url("../../images/mobile/top_mobile/wave.svg") no-repeat center top;
        background-size: cover;
        margin-top: -5%;
    }
    .footer-wrapper {
        background: url("../../images/mobile/top_mobile/footermask.svg") no-repeat center top;
        background-size: contain;
        margin-top: -40px;
    }
    .slider {
        margin-top: 5%;
        height: 30vh;
    }
    .slider-image img {
        height: 30vh;
    }
    .section {
        display: block !important;
    }
    .content-footer-logo {
        width: 15%;
    }
    .content-footer-japanese-logo {
        width: 65%;
    }
    .content-footer-wrapper p {
        font-size: 12px;
        font-weight: bold;
    }
    .content-footer-div img {
        width: 17%;
    }
    .content-footer-div {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        margin-top: 35px !important;
        gap: 0px;
    }
    .content-footer-top,
    .content-footer-small {
        display: flex;
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 10px;
        width: 80%;
        text-align: justify;
        align-items: center;
        justify-content: center;
    }
    .content-footer-small {
        flex-wrap: wrap;
        font-size: 12px;
        font-weight: bold;
    }
    .navbar {
        width: 80%;
        margin-left: -20px;
        /* margin-top: 6% !important; */
    }
    .header img {
        width: 12%;
    } 
    .header-content {
        display: block;
        text-align: left;
        font-size: 12px;
        margin-top: 4px;
    } 
    .card {
        width: 100%;
        display: flex;
        flex-direction: row !important;
        align-items: stretch;
        max-height: 130px;
        margin: 20px 0;
        max-width: 100%;
    }
    .card-img {
        width: 40%;
        height: auto;
        overflow: hidden;
        /* flex: 0 0 40%; */
    }
    .card-title {
        display: block;
        white-space: normal;
        text-align: left;
        word-break: break-word;
        margin: 0;
    }
    .card img {
        width: 100%;
        height: 100%;
        object-position: center center; /* ここで上下左右中央に */
        object-fit: cover;
    }
    .card-container {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 10px !important;
    }
    .card-btn-news {
        margin: 0px;
    }
    .card-btn-event {
        margin: 0px;
    }
    .card-content p,
    .card-content div {
        margin-bottom: 0;
    }
    .card-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .card-content br {
        display: none;
    }
    .card-desc {
        display: none;
    }
    .btn-card {
        width: 100%;
        display: block;
        padding-top: 15%;
    }
    .btn-link {
        width: -webkit-fill-available;
        border-radius: 50px;
        padding: 10px 30px;
        margin: 20px 0px;
    }
    .btn-link-group img {
        width: 13%;
    }
    .btn-text {
        font-size: 20px;
    }
    .slider-content {
        position: absolute;
        text-align: center;
    }
    .slider-content img {
        width: 300px;
    }
}
@media (min-width: 400px) and (max-width: 581px) {
    .slider-image img {
        height: 35vh;
    }
    .header-wrapper {
        background: url("../../images/pc/top_pc/headder_bg.svg") no-repeat center ;
        /* padding-top: 9%; */
    }
    .navbar {
        /* margin-top: 3% !important; */
    }
    .slider {
        margin-top: 15%;
    }
}
@media (min-width: 581px) and (max-width: 769px) {
    .header-wrapper {
        background: url("../../images/pc/top_pc/headder_bg.svg") no-repeat center ;
        /* padding-top: 15%; */
        min-height: 10%;
    }

    .header-wrapper::after {
        content: "";
        position: absolute;
        bottom: -100px;
        left: 0;
        right: 0;
        height: 100px;
        background: url("../../images/pc/top_pc/headder_bg.svg") no-repeat center;
        background-size: contain;
        min-height: 227px;
        z-index: 1;
    }
    .navbar {
        margin-top: 1% !important;
    }
    .slider {
        margin-top: 10%;
    }
}
@media (min-width: 769px) and (max-width: 821px) {
    .header-wrapper {
        padding-top: calc(100% / 8);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding-top: 0;
        z-index: 999;
        min-height: 12%;
    }
    .content-wrapper {
        background: url("../../images/pc/top_pc/wave.svg") no-repeat center top;
        margin-top: -3.5%;
        background-size: cover;
    }
    .content-footer-wrapper {
        margin-top: -4%;
    }
    .navbar {
        margin-top: 2% !important;
    }
    .slider {
        margin-top: 11%;
    }
}
@media (min-width: 821px) and (max-width: 900px) {
    .header-wrapper {
        padding-top: calc(100% / 9);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding-top: 0;
        z-index: 999;
        min-height: 13%;
    }
    .content-wrapper {
        margin-top: -3.5%;
    }
    .content-footer-wrapper {
        margin-top: -4%;
    }
    .navbar {
        margin-top: 2% !important;
        position: fixed !important;
    }
    .slider {
        margin-top: 10%;
    }
}
@media (min-width: 901px) and (max-width: 1024px) {
.header-wrapper {
        padding-top: calc(100% / 9);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding-top: 0;
        z-index: 999;
        min-height: 15%;
    }
    .content-wrapper {
        margin-top: -3.5%;
    }
    .content-footer-wrapper {
        margin-top: -4%;
    }
    .navbar {
        margin-top: 1% !important;
        position: fixed !important;
    }
    .slider {
        margin-top: 10%;
    }
}
@media (min-width: 1025px) and (max-width: 1204px) {
    .header-wrapper {
        /* padding-top: calc(100% / 12); */
        padding-top: 8%;
    }
    .content-wrapper {
        background-size: cover;
        margin-top: -3.5%;
    }
    .navbar {
        /* margin-top: 3% !important; */
    }
}
@media (min-width: 1205px) and (max-width: 1249px) {
    .header-wrapper {
        padding-top: calc(100% / 14);
    }
    .content-wrapper {
        background-size: cover;
        margin-top: -2%;
    }
}
@media (min-width: 1250px) and (max-width: 1400px) {
    .header-wrapper {
        padding-top: calc(100% / 16);
    }
    .content-wrapper {
        background-size: cover;
        margin-top: -2%;
    }
}
@media (min-width: 1400px) and (max-width: 1750px) {
    .header-wrapper {
        padding-top: calc(100% / 20);
    }
    .content-wrapper {
        padding: 11% 0 5% 0;
    }
    .content-footer-wrapper {
        margin-top: -2%;
    }
}
@media (min-width: 1750px) and (max-width: 1780px) {
    .header-wrapper {
        padding-top: calc(100% / 25);
    }
    .content-wrapper {
        padding-top: 5%;
        padding-bottom: 12%;
        padding-left: 0%;
        padding-right: 0%;
    }
    .content-footer-wrapper {
        padding: 10% 0 10% 0;
        margin-top: -20px;
    }
}
@media (min-width: 1781px) and (max-width: 2070px) {
    .content-wrapper {
        padding-top: 10%;
        padding-bottom: 15%;
        padding-left: 0%;
        padding-right: 0%;
    }
    .content-footer-wrapper {
        padding: 10% 0 10% 0;
        margin-top: -22px;
    }
}
@media (min-width: 2071px) and (max-width: 3000px) {
    .content-wrapper {
        padding-top: 15%;
        padding-bottom: 20%;
        padding-left: 0%;
        padding-right: 0%;
    }
    .content-footer-wrapper {
        padding: 10% 0 10% 0;
        margin-top: -30px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .card {
        min-height: 135px;
    }
    .card-img {
        height: 135px;
    }
    .slider-content img {
        width: 600px;
    }
}