@charset "UTF-8";

/* レイアウトをリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HOMEのメイン */
.hero img {
    width: 100%;
}

.home {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hero {
    width: 100%;
}

.hero img {
    width: 100%;
    max-height: 100dvh;
    object-fit: cover;
}

.home-title-container {
    padding: 1rem 0;
    text-decoration: none;
}
    @media screen and (min-width: 1024px) {
        .home-title-container {
            padding: 1.25rem 0;
        }
    }

.home-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
    @media screen and (min-width: 744px) {
        .home-section-wrapper {
        gap: 6rem;
    }
    }

    @media screen and (min-width: 1024px) {
    .home-section-wrapper {
        gap: 7.5rem;
    }
}

.home-section-title {
    font-family: var(--en-font);
    font-size: 2rem;
    font-weight: 300;
    color: var(--main-color);
}
    @media screen and (min-width: 744px) {
        .home-section-title {
            font-size: 2.5rem;
        }
    }

    @media screen and (min-width: 1024px) {
        .home-section-title {
            font-size: 2.75rem;
        }
    }

.home-section-title:hover {
    color: var(--sub-color);
}

.information .home-section-title:hover {
    color: var(--main-color);
}

.home-section-subtitle {
    font-family: var(--jp-font);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--sub-color);
}
    @media screen and (min-width: 744px) {
        .home-section-subtitle {
            font-size: 1rem;
        }
    }

    @media screen and (min-width: 1024px) {
        .home-section-sbutitle {
            font-size: 1.25rem;
        }
    }

.view-all {
    display: flex;
    justify-content: flex-end;
    font-family: var(--en-font);
    font-weight: 300;
    color: var(--main-color);

    font-size: 1.25rem;
    padding-top: 1rem;
    text-decoration: none;
}
    @media screen and (min-width: 744px) {
        .view-all {
            padding-top: 1.5rem;
        }
    }

    @media screen and (min-width: 1024px) {
        .view-all {
            padding-top: 2.5rem;
            font-size: 1.5rem;
        }
    }

.view-all:hover {
    color: var(--sub-color);
    text-decoration: underline;
}


/*ーーーーーーーーーーーーーーーWORKSセクションーーーーーーーーーーーーーーー*/
.works-home {
    width: 80%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/*リスト一覧*/
.works-list-home {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 3rem;
}
    @media screen and (min-width: 744px) {
        .works-list-home {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media screen and (min-width: 1024px) {
        .works-list-home {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 5rem;
        }
    }

.works-item-home {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 auto;
}

.works-item-home img {
    width: 100%;
}

.works-item-home-category-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.works-item-home-category-container p {
    color: var(--sub-color);
}

.works-item-home-category {
    font-family: var(--jp-font);
    font-size: 1rem;
    color: var(--sub-color);
}

.works-item-home-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.works-item-home-details a {
    font-family: var(--jp-font);
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--main-color);
    text-decoration: none;
}

.works-item-home-details a:hover {
    color: var(--sub-color);
}

.works-item-home-title {
    display: block;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sub-color);
    margin: 0;
}

.works-item-home-title a {
    display: block;
    width: 100%;
}

/*ーーーーーーーーーーーーーーーnews&Ccolumnセクションーーーーーーーーーーーーーーー*/
.news-home,
.column-home {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.news-list-home,
.column-list-home {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
    @media screen and (min-width: 744px) {
        .news-list-home,
        .column-list-home {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr))
        }
    }

    @media screen and (min-width: 1024px) {
        .news-list-home,
        .column-list-home {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 5rem;
        }
    }

.news-item-home,
.column-item-home {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
}

/* カテゴリ＋日付 */
.news-item-home-category-container,
.column-item-home-category-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.news-item-home-category,
.column-item-home-category {
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;

    font-family: var(--jp-font);
    font-size: 0.75rem;
    color: var(--white);
    background-color: var(--sub-color);
}

.news-item-home-date,
.column-item-home-date {
    font-family: var(--en-font);
    font-size: 1rem;
    color: var(--sub-color);
}

/* 詳細 */
.news-item-home-details,
.column-item-home-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

/* タイトルリンク：worksと同フォント/太さ */
.news-item-home-details a,
.column-item-home-details a {
    font-family: var(--jp-font);
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--main-color);
    text-decoration: none;
}

.news-item-home-details a:hover,
.column-item-home-details a:hover {
    color: var(--sub-color);
}

.news-item-home-title,
.column-item-home-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2; /* 2行（または3行）で止める */
    overflow: hidden;
}

/*INFORMATIONセクション*/
.information {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.information-home-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
    @media screen and (min-width: 744px) {
        .information-home-container {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 3rem;
        }
    }

    @media screen and (min-width: 1024px) {
        .information-home-container {
            gap: 5rem;
        }
    }

.information-item-home {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    gap: 1rem;
}

.information-img {
    width: 100%;
}

.information-item-home-details {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--sub-color);
    padding-bottom: 0.5rem;
    
}

.information-item-home-details h3 {
    font-family: var(--en-font);
    font-weight: 400;
    color: var(--sub-color);
    font-size: 1rem;
}
    @media screen and (min-width: 744px) {
        .information-item-home-details h3 {
        font-size: 0.75rem;
        }
    }

    @media screen and (min-width: 1024px) {
        .information-item-home-details h3 {
        font-size: 1rem;
        }
    }

.information-item-home-details p {
    font-family: var(--jp-font);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--main-color);
}
    @media screen and (min-width: 744px) {
        .information-item-home-details p {
        font-size: 1.25rem;
        }
    }

    @media screen and (min-width: 1024px) {
        .information-item-home-details p {
        font-size: 1.5rem;
        }
    }


.information-item-home-details p:hover {
    color: var(--sub-color);
}