/*---------------------------------------
 NEWS - Base & PC Layout
---------------------------------------*/
.news {
  width: 100%;
  margin: 2em auto 0;
  display: flex;
  flex-direction: row;
  gap: 0 5%;
}

.newsTitle {
  width: 9%;
  transform: translateY(1.2em);
}

.newsWrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #f9a6b4;
  border-radius: 10px;
  padding: 15px;
  margin: 0 auto 30px;
}

.newsD {
  color: #f79fb8;
  text-align: left;
  margin-bottom: 5px;
  letter-spacing: 0.09em;
}

.newsT {
  color: #736357;
  text-align: left;
  letter-spacing: 0.09em;
}

/* 旧NEWS詳細用スタイル */
.nHeader {
  margin: 30px auto 0;
  text-align: center;
  background-image: url(../img/newsBack_b.png);
  background-position: center left;
  background-repeat: repeat-x;
  padding: 72px 0 0 0;
  height: 116px;
}

.nHeader h1 {
  color: #3ebfd5;
  font-size: 24px;
  letter-spacing: 0.17em;
  font-weight: normal;
}

.nWrap {
  width: 800px;
  margin: 50px auto 100px;
}

.nBox {
  width: 90%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  justify-content: center;
  align-self: center;
  padding: 50px;
}

.waku {
  box-shadow: 3px 3px 6px 2px rgba(255, 206, 247, 0.4);
  border-left: 2px solid #fcdde6;
  border-right: 2px solid #fffbc2;
  margin: 0 auto 30px;
}

.waku::before,
.waku::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(to right, #fcdde6 0%, #fffbc2 100%);
}

.nBox .date {
  font-size: 16px;
  color: #40b5c8;
  text-align: left;
  margin-bottom: 10px;
}

.nBox .title {
  font-feature-settings: "palt";
  font-size: 22px;
  color: #736357;
  line-height: 1.47em;
  letter-spacing: 0.09em;
}

.nBox .nTxt {
  font-feature-settings: "palt";
  margin-top: 20px;
  font-size: 16px;
  color: #736357;
  align-self: center;
  width: 100%;
  text-align: left;
  line-height: 1.57em;
  letter-spacing: 0.09em;
  padding-top: 20px;
  border-top: 1px solid #7363573d;
  overflow: visible;
  box-sizing: border-box;
}

.nBox .nTxt a {
  color: #3fb2c7;
  text-decoration: underline;
}

/* ニュースリストエリア */
.news-container {
  width: 86%;
  overflow: hidden;
}

.news-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0 5em;
  padding: 2em 0;
  border-bottom: 3px dotted #a9d8e1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: #f0f7ff;
}

.web {
  text-decoration: underline;
}

.news-date {
  color: #5f5045;
  display: block;
  font-family: urw-din, sans-serif;
  font-size: clamp(0.938rem, 0.707rem + 1.023vw, 1.5rem);
  font-weight: 400;
  font-style: normal;
  padding-left: 1em;
}

.news-title {
  width: 70%;
  color: #5f5045;
  font-weight: bold;
  font-size: clamp(0.813rem, 0.761rem + 0.227vw, 0.938rem);
  font-variation-settings: "wght" 300;
  line-height: 1.5;
}

/* モーダル表示エリア */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-backdrop.is-active {
  display: flex;
}

.modal-content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  padding: 55px 60px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.modal-scroll-area {
  overflow-y: auto;
  max-height: 100%;
}

.article-body {
  text-align: left;
}

.article-title {
  font-size: clamp(0.875rem, 0.619rem + 1.136vw, 1.5rem);
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-date {
  font-size: 0.9rem;
  color: #5f5045;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.article-text {
  font-size: clamp(0.875rem, 0.824rem + 0.227vw, 1rem);
  line-height: 1.8;
}

.article-text span.caution {
  font-size: 12px;
  text-indent: -1em;
  padding-left: 1em;
}

.article-text .web {
  text-decoration: underline;
}

.article-title,
.article-text {
  overflow-wrap: break-word;
  word-break: break-all;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  z-index: 10;
}

.close-button:hover {
  color: #333;
}


/*---------------------------------------
 NEWS - Responsive (SP)
---------------------------------------*/
@media screen and (max-width: 768px) {
  .news {
    margin-top: 0;
    flex-direction: column;
  }

  .newsTitle {
    position: static;
    top: auto;
    left: auto;
    width: 19%;
    margin-bottom: 0.5em;
  }

  .newsTitle img {
    width: 90%;
  }

  .newsD,
  .newsT {
    font-size: 14px;
  }

  .news-container {
    width: 100%;
  }

  .news-item {
    gap: 0 1em;
  }

  .news-title {
    width: 85%;
  }

  .modal-content {
    padding: 40px 14px;
  }

  .close-button {
    top: 0;
    right: 0;
  }

  /* SP用の旧NEWS詳細形式 */
  .nHeader {
    width: 100%;
    margin: 0 auto;
  }

  .nHeader h1 {
    color: #40b5c8;
    font-size: 24px;
    letter-spacing: 0.17em;
    font-weight: normal;
  }

  .nWrap {
    width: 90%;
    margin: 20px auto 0;
  }

  .nBox {
    width: 80%;
    padding: 20px;
  }

  .nBox .date {
    font-size: 14px;
    color: #40b5c8;
    text-align: left;
    margin-bottom: 8px;
  }

  .nBox .title {
    font-size: 16px;
  }

  .nBox .nTxt {
    margin-top: 30px;
    font-size: 12px;
    overflow: auto;
  }
}

@media only screen and (device-width: 540px) {
  .newsTitle {
    top: 33%;
    left: 41%;
  }
}