/* 全体のスタイル設定 */
.logo-fixed {
    position: absolute;
    width: 150px;
    height: 55px;
    top: 17px;
    left: 20px;
    z-index: 1000; /* 前面に出す */
}

.responsive-image {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    opacity: 1 !important;
}

/* 画像のスタイル設定 */
.responsive-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fade-image {
    position: absolute;
    transition: opacity 1s ease-in-out;
}

/* フレーズのスタイル設定 */
.phrase {
    position: absolute;
    top: 40%;
    right: 7%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 30px;
    z-index: 1;
    padding: 20px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 2;
}

/* ボタンのスタイル設定 */
.login-buttons {
    position: absolute;
    right: 18%;
    bottom: 40%;
    z-index: 2;
}

.login-button {
    width: 248px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    color: #4f4f4f;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 25px;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #e0e0e0;
    color: #333333;
}
/* マークボタンのスタイル設定 */
.marks {
    position: fixed;
    bottom: 20px;
    right: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.mark-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mark-button img {
    width: 60px;
    height: auto;
}

/* フェードアニメーション */
@keyframes fade {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* フェードイン・フェードアウトする画像の設定 */
.fade-image:nth-child(1) {
    animation: fade 15s infinite;
    animation-delay: 0s;
}

.fade-image:nth-child(2) {
    animation: fade 15s infinite;
    animation-delay: 5s;
}

.fade-image:nth-child(3) {
    animation: fade 15s infinite;
    animation-delay: 10s;
}

/* メインコンテンツのスタイル設定 */
.main-contents {
    width: 100%;
    height: 100%;
    margin: 0px auto;
}

/* テキストを中央揃えにするクラス */
.text-center {
    text-align: center;
}

/* テキストを右揃えにするクラス */
.text-right {
    text-align: right;
    margin-right: 70px;
}

/* 全体のスタイル */
.about {
    width: 70%;
    margin: 200px auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 200px;
}

/* 見出しとサブタイトルのスタイル */
.about-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    font-weight: bold;
    line-height: 42px;
}

.about-title {
    width: 249px;
}

.about-subtitle {
    font-size: 16px;
    margin-top: 7px;
    color: #000;
}

/* 説明文のスタイル */
.about-description {
    margin-top: 50px;
    margin-bottom: 50px;
    line-height: 1.6;
}

.about-link {
    border: 1px solid #4f4f4f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin: 10px auto;
    border-radius: 5px;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    background-color: transparent;
}

.about-link:hover {
    background-color: #4f4f4f;
}

/* aタグのスタイル */
.about-link a {
    color: #000 !important;
    text-decoration: none !important;
    display: block;
    width: 100%;
    text-align: center;
}

/* aにホバーしたときの色 */
.about-link:hover a {
    color: #ffffff !important;
}

.navigation {
    display: flex;
    height: auto;
    background-color: #f8f8f8;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

/* コンテンツボックスのスタイル設定 */
.navigation > div {
    width: 330px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    font-size: 18px;
    font-weight: normal;
    position: relative;
    overflow: hidden;
}

.navigation > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.navigation > div .text-overlay {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.news-subtitle {
    display: flex;
    justify-content: flex-end;
    color: #d9d9d9;
    letter-spacing: 2px;
    font-size: 14px;
    padding-top: 8px;
    font-weight: 700;
}

.news-link img {
    display: block;
}

/* 全体コンテナ */
.points {
    text-align: center;
    background: #f8f8f8;
    padding: 40px 0;

    /* 中央揃え用追加 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 750px;
    box-sizing: border-box;
}

/* タイトル */
.points-title {
    font-size: 24px;
    margin-bottom: 65px;
    font-weight: 900;
    letter-spacing: 2px;
}

/* ポイントコンテナ */
.points-item-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* アイテム */
.points-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    gap: 10px;
    background: #ffffff;
    padding: 40px 0 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: visible;
    width: 380px;
}

/* 数字のポイントボックス */
.point-number {
    width: 80px;
    height: 80px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 30px;
    position: absolute;
    top: -40px;
    font-weight: 700;
}

/* テキストボックス */
.point-text-container {
    background: #ffffff;
    padding: 5px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
}

.point-text-container-ex {
    background: #ffffff;
    font-size: 15px;
    text-align: left;
    padding: 10px;
    line-height: 1.6;
    position: relative;
}

/* 画像 */
.point-image-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.point-image-container img {
    width: 420px !important;
    height: auto;
}

/* 全体コンテナのスタイル */
.logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 50px 20px;
    margin: 50px 0;
}

/* 各ブロックのスタイル */
.logo-block {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* 画像のスタイル */
.logo-item img {
    width: 100px;
    height: auto;
    display: block;
}

.news-headlines {
    cursor: pointer;
    width: 680px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-details-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-details-image img {
    max-width: 90%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.news-details-header {
    font-family: Noto Sans JP;
    text-align: center;
}

.news-details-title {
    font-weight: 500;
    font-size: 16px;
    color: #4f4f4f;
    margin-bottom: 36px;
}

.news-details-content {
    margin: 100px 20px;
    width: 90%;
    text-align: center;
}

.news-details-date {
    color: #9a9a9a;
    font-weight: 900px;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-sub-contents {
    display: flex;
    justify-content: center;
    margin-bottom: 72px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-btn {
    cursor: pointer;
}

.pagination-page {
    font-size: 13px;
    margin: 0 4px;
    cursor: pointer;
}

.active-page {
    color: #000;
}

.inactive-page {
    color: #D9D9D9;
}

@media screen and (max-width: 1200px) {
    .responsive-image {
        max-height: 500px;
    }

    .phrase {
        top: 40%;
        right: 5%;
        font-size: 25px;
        letter-spacing: 4px;
        line-height: 1.8;
        width: 50%;
    }

    .login-buttons {
        right: 17%;
        bottom: 30%;
    }
}

@media screen and (max-width: 768px) {
    .logo-fixed {
        width: 120px;
        height: 44px;
        top: 10px;
        left: 10px;
    }

    .about {
        width: 90%;
        margin: 100px auto 0;
        margin-bottom: 100px;
    }

    .about-description {
        margin: 30px 10px;
        font-size: 14px;
        br {
            display: none;
        }
    }

    .points-item {
        width: 90%;
        margin: 20px auto;
    }

    .news {
        width: 90%;
    }

    .news-headlines {
        width: 100%;
        max-width: 280px;
    }

    .navigation {
        gap: 20px;
        padding: 30px 15px;
    }

    .navigation > div {
        width: calc(50% - 20px);
        height: 150px;
    }

    .responsive-image {
        max-height: 400px;
    }

    .phrase {
        top: 40%;
        right: 5%;
        font-size: 20px;
        letter-spacing: 4px;
        line-height: 1.8;
        width: 40%;
    }

    .login-buttons {
        right: 23%;
        bottom: 32%;
    }

    .login-button {
        width: 150px;
        height: 30px;
        font-size: 12px;
    }

    .news {
        width: 80% !important;
    }

    .news-headlines {
        font-size: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    .points {
        min-height: 600px;
        padding: 20px 0;
    }

    .points-title {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .points-item {
        width: 85%;
        padding: 30px 0 15px;
    }

    .point-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
        top: -30px;
    }

    .point-text-container {
        font-size: 14px;
    }

    .point-text-container-ex {
        font-size: 12px;
        padding: 8px;
    }

    .point-image-container img {
        width: 300px !important;
    }

    .navigation {
        flex-direction: column;
        align-items: center;
    }

    .navigation > div {
        width: calc(100% - 40px);
        max-width: 330px;
        height: 150px;
        margin: 10px auto;
    }

    .responsive-image {
        max-height: 200px;
    }

    .phrase {
        right: 50%;
        top: 25%;
        transform: translateX(50%);
        font-size: 16px;
        letter-spacing: 2px;
        line-height: 1.6;
        width: 70%;
        text-align: center;
    }

    .login-buttons {
        right: 50%;
        bottom: 5%;
        transform: translateX(50%);
    }

    .login-button {
        width: 130px;
        height: 25px;
        font-size: 12px;
    }
}
