@import url("../common.css");

/* ================================
   Global
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  color: var(--text);
  background: var(--modal-bg);
  line-height: 1.6;
}

/* body.theme-mountain {
  background: var(--panel-mountain);
} */

/* ================================
   Layout
================================ */
.news-preview-body {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  height: 100%;
  width: 100%;
  padding: 30px 40px;
}

/* モーダル外枠 */
.modal-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 20px;
  z-index: 10;
  color: var(--text);
}

.title-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

/* タイトル */
.modal-title {
  font-size: 28px;
  letter-spacing: 0.2em;
  margin: 0;
  padding: 0;
}

.title-line {
  border-top: 2px solid var(--text);
  width: 100%;
}

/* ニュースリスト */
.news-board {
  width: 100%; /* ←これでスマホでも親要素に合わせて縮みます */
  height: 100%;
  max-height: 440px;
  min-height: 440px;
  background-color: var(--white);
  padding: 10px 25px;
  text-align: left;
  overflow-y: auto;
}

.news-board::-webkit-scrollbar {
  width: 4px;
}

.news-board::-webkit-scrollbar-thumb {
  background-color: var(--text);
}

.news-board ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.access-board {
  width: 100%; /* ←これでスマホでも親要素に合わせて縮みます */
  height: 100%;
  background-color: var(--white);
  padding: 10px 25px;
  text-align: left;
  overflow-y: auto;
}

.access-link {
  padding-bottom: 40px;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  height: 140px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.news-item {
  border-bottom: 1px solid var(--text);
}

.news-item > a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #e0e0e0;
}

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

.news-date {
  font-size: 13px;
  color: var(--modal-bg);
  display: block;
  margin-bottom: 5px;
}

.news-text {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: underline;
}

.news-text:hover {
  color: var(--accent-blue);
  cursor: pointer;
}

.p-news-detail {
  background: var(--white);
  min-height: 100%;
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

.p-news-detail__header {
  padding: 40px 20px 40px 10px;
  color: var(--text);
  border-bottom: 2px solid var(--text);
}

.p-news-detail__header_access {
  padding: 16px 8px 16px 0;
  color: var(--text);
  width: 100%;
  border-bottom: 2px solid var(--text);
}

.p-news-detail__breadcrumb {
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.p-news-detail__breadcrumb a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.p-news-detail__breadcrumb a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.p-news-detail__breadcrumb span {
  color: var(--white);
}

.p-news-detail__meta {
  max-width: 800px;
}

.p-news-detail__date {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}

.p-news-detail__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
}

.p-news-detail__title_center {
  font-size: 28px;
  text-align: center;
}

.p-news-detail__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.p-news-detail__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.p-news-detail__content {
  background: var(--white);
  line-height: 1.9;
  font-size: 16px;
  height: 100%;
  padding: 24px 20px;
  color: var(--text);
}

.p-news-detail__content h2 {
  font-size: 22px;
  font-weight: 700;
  padding-top: 20px;
  color: var(--accent-blue);
}

.p-news-detail__content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-blue);
}

.p-news-detail__content p {
  line-height: 1.9;
}

.p-news-detail__content ul,
.p-news-detail__content ol {
  padding-left: 1.5em;
}

.p-news-detail__content li {
  line-height: 1.8;
}

.p-news-detail__content strong {
  font-weight: 700;
  color: var(--accent-red);
}

.p-news-detail__content a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.p-news-detail__content a:hover {
  opacity: 0.7;
}

.p-news-detail__footer {
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.p-news-detail__back {
  text-align: center;
}

.p-news-detail__back-link {
  display: inline-block;
  padding: 10px 20px;
  color: var(--white);
  background-color: var(--accent-blue);
  text-decoration: none;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.p-news-detail__back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}

/* SNSアイコン */
.sns-group {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  gap: 25px;
  padding-bottom: 20px;
}

/* アイコン自体の大きさを決める場所 */
.sns-svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

/* 丸い枠の大きさを決める場所 */
.icon-circle {
  width: 48px;
  height: 48px;
  background-color: var(--text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.icon-circle:hover {
  transform: scale(1.1);
}

.btn__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  gap: 40px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding-bottom: 20px;
}

.btn-reserve {
  display: block;
  width: 90%;
  max-width: 320px;
  border: 1px solid var(--dark);
  padding: 15px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  color: var(--dark);
  font-weight: bold;
  background: var(--white);
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
}

.btn-reserve:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

@media (width <= 900px) {
  .btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .news-preview-body {
    align-items: flex-start;
    padding: 20px 30px;
  }

  .modal-title {
    font-size: 20px;
    letter-spacing: 0.1em;
  }

  .news-board {
    padding: 8px 14px;
    max-height: 400px;
  }

  .news-date {
    font-size: 11px;
  }

  .news-text {
    font-size: 14px;
  }

  .news-item > a {
    padding: 10px 0;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
  }

  .sns-svg {
    width: 20px;
    height: 20px;
  }

  .modal-container {
    height: 100%;
    gap: 20px;
  }

  .p-news-detail__header {
    padding: 30px 15px;
  }

  .p-news-detail__title {
    font-size: 22px;
  }

  .p-news-detail__title_center {
    font-size: 24px;
  }

  .p-news-detail__container {
    padding: 30px 15px;
  }

  .p-news-detail__content {
    font-size: 15px;
  }
}

/* ================================
   Responsive (520px以下)
================================ */
@media (width <= 520px) {
  .news-preview-body {
    align-items: flex-start;
    padding: 40px 12px;
  }

  .news-text {
    font-size: 12px;
  }
}
