@charset "utf-8";

.top-message {
  background: #f6f5f5;
  padding: 30px 0 60px 0;
  overflow: hidden;
}

.top-message__inner {
  position: relative;
  min-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

.top-message__text {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.top-message__title {
    margin: 0;
    color: #e32314;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.1rem;
}

.top-message__title .quote {
    margin-left: -0.3em;
    margin-right: -0.5em;
}

.prime-container {
    display: flex;
    max-width: 1000px;
    margin: 2rem auto 0 auto;
}

.top-message__prime {
    display: flex;
    position: absolute;
    right: 200px;
    bottom: 10px;
    background: #fff;
    padding: 5px 10px;
}

.top-message__prime p {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    margin-left: 0.5rem;
}

.top-message__sub {
    display: inline-block;
    margin-left: 2rem;
}

.top-message__lead {
    margin-top: 1.5rem;
    color: #222;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 2;
    margin-left: 2rem;
}

.top-message__deco {
    position: absolute;
    top: -34px;
    right: -5px;
    width: 730px;
    z-index: 1;
}

.top-message__deco img {
  display: block;
  width: 100%;
  height: auto;
}

.top-message__image {
  margin: 48px 2rem 0 2rem;
  position: relative;
  z-index: 0;
}

.top-message__image>img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 32px;
}


/* =========================
  News
========================= */
.top-news {
  padding: 2rem 0 0 0;
}

.top-news__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.top-news__title {
  color: #eb3b2d;
  font-size: 2rem;
  font-weight: 500;
}

/* =========================
  Links (3 cards)
========================= */
.top-links {
  padding: 7rem 0 5em 0;
}

.top-links__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* gap: 24px; */
}

/* =========================
  こころネットグループ
========================= */

.top-group {
  padding: 0 0 120px 0;
}

.top-group__title {
  margin: 0 0 2rem;
  color: #eb3b2d;
  font-size: 2rem;
  font-weight: 500;
}

.top-group__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.group-card {
  position: relative;
  display: block;
  padding: 0 1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-sizing: border-box;
}

@media (min-width: 768px) {

.group-card {
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
}

.group-card:nth-child(4n) {
  border-right: 1px solid #dddddd;
}

.group-card:nth-last-child(-n + 4) {
  border-bottom: 1px solid #dddddd;
}

.group-card:last-child {
  border-right: 1px solid #dddddd;
}

}


.group-card__head {
  height: 1rem;
}

.group-card__category {
  position: relative;
  display: inline-block;
  padding-left: 12px;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.group-card__category::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 5px;
  height: 5px;
  background: #eb3b2d;
}

.group-card__body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  box-sizing: border-box;
}

.group-card__body img {
  display: block;
  max-width: 100%;
  width: 80%;
  height: auto;
}

.group-card__arrow {
  right: 5px;
  bottom: 5px;
  position: absolute;
  background: #a3a5b1;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.group-card__arrow img {
  display: block;
  width: 12px;
  height: 12px;
}




@media screen and (max-width: 767px) {

.top-message__inner {
  min-width: 100%;
  padding: 0;
}

.top-message__text {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 0 0.5rem;
}

.top-message__title {
  font-size: 1.6rem;
}

.top-message__lead {
  margin-top: 1rem;
  margin-left: 1rem;
}

.top-message__deco {
  position: absolute;
  top: -5%;
  right: 0;
  left: 45%;
  z-index: 1;
}

.top-message__deco img {
  display: block;
  width: 30%;
  height: auto;
}

.top-message__sub {
  margin-left: 1rem;
}

.top-message__image {
  margin: 1em 1em 0 1em;
}

.top-message__image>img {
  height: auto;
  border-radius: 20px;
}

.c-line-list__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
}

.c-line-list__date {
  white-space: nowrap;
}

.c-label {
  white-space: nowrap;
}

.c-line-list__text {
  width: 100%;
  margin-top: 0.4rem;
}

.top-news__title {
  font-size: 2rem;
}

.top-links {
  padding: 40px 0 72px;
}

.top-links__grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.top-group__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.group-card {
  display: block;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.group-card:nth-child(2n+1) {
  border-left: 1px solid #ddd;
}

.group-card:nth-child(-n+2) {
  border-top: 1px solid #ddd;
}

.top-group {
  padding: 0;
}

.top-message__prime {
  right: 7px;
  bottom: 7px;
  align-items: center;
  gap: 5px;
}

.top-message__prime img {
  width: 40px;
  height: auto;
}


}