@charset "UTF-8";

:root {
    /* color */
    --color-main: #023C78;
    --color-sub: #CAAB8C;
    --color-base: #D8E7E8;
    --color-accent: #E55F1C;
    --color-text: #4D4D4D;
    --color-background: #FAF7F4;
    /* padding */
    /* width */
}

.main {
 height: 100vh;
}

.news {
    padding: 30px 10%;
}

.news__item {
    background-color: rgba(255, 255, 255,0.3);
    border: 1px solid var(--color-sub);
    border-radius: 40px;
    padding: 30px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 50px;
    cursor: pointer; /* ←クリックできる感じを出す */
    text-align: center;
}

.news__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.news__date {
    font-family: "Josefin Sans";
    font-size: 2.1rem;
    line-height: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 8px;
}

.news__title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 3px;
}

.news__text {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2rem;
}

/* 共通モーダルのスタイル */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(216, 231, 232, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 40px;
}
.modal.is-open { display: flex; }

.modal__content {
  background: var(--color-background);
  padding: 28px;
  border-radius: 40px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
}

/* 閉じるボタン */
.modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* optional: モーダル内テキストの余白 */
.modal__date { display:block; color:var(--color-text); margin-bottom:6px; font-family: "Josefin Sans"; font-size: 2.5rem;line-height: 3rem;}
.modal__title { margin:0 0 12px 0; font-size:1.6rem; color:var(--color-main); font-size: 1.8rem; font-weight: 600;}
.modal__body { color:var(--color-text); line-height:1.8; font-size: 1.5rem; font-weight: 400;}

/* カードのクリック時の簡単なアニメ（任意） */
.news__item:active { transform: translateY(-2px) scale(0.998); }

@media screen and (min-width: 769px) {
    .news {
        padding: 50px 15%;
    }

    .news__item {
        padding: 30px 45px;
        text-align: left;
    }

    .news__date {
        font-size: 2.5rem;
        line-height: 3.5rem;
        margin-bottom: 0.2rem;
        display: flex;
    }

    .news__title {
        font-size: 1.8rem;
        line-height: 2rem;
        margin-bottom: 7px;
    }

    .news__text {
        font-size: 1.4rem;
        font-weight: 400;
        line-height: 2.4rem;
    }
}


/* ==================
アニメーション＝＝＝＝＝＝ */

#animation {
  animation: fade-in 3s;
  animation-fill-mode: forwards;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


