/*!  NEWS
================================================ */

/* ページタイトル
-------------------------------------------------*/

.l-intoro {
  padding-bottom: min(6.6666666667svw, 80px);
}

/* ニュース一覧
-------------------------------------------------*/

.l-newsarchive {
  padding-bottom: min(10svw, 120px);
  color: #798761;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* カテゴリーフィルター
-------------------------------------------------*/

.l-newsfilter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0 16px min(2svw, 24px);
  border: 0;
  border-bottom: 1px solid #798761;
}

.l-newsfilter__title {
  margin: 0;
  font-size: 16px;
}

.l-newsfilter__options {
  display: grid;
  grid-template-columns: repeat(3, 122px);
  gap: 16px;
}

.l-newsfilter__options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  opacity: 0;
}

.l-newsfilter__options label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #798761;
  border-radius: 2px;
  box-sizing: border-box;
  background-color: #fefdf6;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 24px;
}

.l-newsfilter__options input:checked + label {
  background-color: #798761;
  color: #fff;
}

.l-newsfilter__options input:focus-visible + label {
  outline: 2px solid #0e0000;
  outline-offset: 3px;
}

/* 記事
-------------------------------------------------*/

.l-newsarchive__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-newsarchive__item {
  display: grid;
  grid-template-columns: 140px 140px 1fr;
  align-items: center;
  gap: 0 24px;
  min-height: 112px;
  padding: 16px 12px;
  border-bottom: 1px solid #798761;
  box-sizing: border-box;
}

.l-newsarchive__item[hidden] {
  display: none;
}

.l-newsarchive__date,
.l-newsarchive__title {
  font-size: 20px;
  line-height: 1.5;
}

.l-newsarchive__category {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 2px;
  box-sizing: border-box;
  background-color: #798761;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  border-radius: 24px;
}

.l-newsarchive__title {
  margin: 0;
}

.l-newsarchive__title a {
  color: inherit;
  text-decoration: none;
}

/* 個別記事
-------------------------------------------------*/

.l-newsdetail {
  padding-bottom: min(10svw, 120px);
  color: #798761;
}

.l-newsdetail__article {
  width: min(88.3333333333%, 1000px);
  margin: 0 auto;
  border-top: 1px solid #798761;
}

.l-newsdetail__header {
  padding: min(4svw, 48px) 0 min(2.6666666667svw, 32px);
  border-bottom: 1px solid #798761;
}

.l-newsdetail__title {
  margin: 0;
  font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1.5;
}

.l-newsdetail__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}

.l-newsdetail__date {
  font-size: 16px;
}

.l-newsdetail__category {
  min-width: 140px;
  padding: 8px 16px;
  border-radius: 2px;
  box-sizing: border-box;
  background-color: #798761;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  border-radius:24px
}

.l-newsdetail__body {
  padding: min(4svw, 48px) 0 min(5.3333333333svw, 64px);
  font-size: 16px;
  line-height: 2;
}

.l-newsdetail__body p {
  margin: 0 0 24px 0;
}

.l-newsdetail__back {
  width: min(22svw, 220px);
  margin: 0 auto;
}

.l-newsdetail__back a {
  display: block;
  padding: 14px 20px;
  border: 1px solid #798761;
  border-radius: 2px;
  color: #798761;
  text-align: center;
  text-decoration: none;
}

/* ギャラリー
-------------------------------------------------*/

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: min(5svw, 30px);
  padding:24px 0;
}

.news-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.single-pic{
  width:80%;
  max-width: 320px;
  margin: 0 auto;
}


@media print, screen and (max-width: 750px) {
  .l-intoro {
    padding-bottom: min(13.3333333333svw, 50px);
  }

  .l-newsarchive {
    padding-bottom: min(16svw, 60px);
  }

  .l-newsdetail {
    padding-bottom: min(21.3333333333svw, 80px);
  }

  .l-newsdetail__article {
    width: 100%;
  }

  .l-newsdetail__header {
    padding: min(10.6666666667svw, 40px) 0 min(8.5333333333svw, 32px);
  }

  .l-newsdetail__title {
    font-size: 24px;
  }

  .l-newsdetail__meta {
    gap: min(6.4vw, 24px);
    margin-top: min(6.4svw, 24px);
  }

  .l-newsdetail__category {
    min-width: min(43.2vw, 162px);
  }

  .l-newsdetail__body {
    padding: min(10.6666666667svw, 40px) 0 min(16svw, 60px);
    line-height: 1.9;
  }

  .l-newsdetail__back {
    width: min(65.671641791%, 220px);
  }

  .l-newsfilter {
    display: grid;
    grid-template-columns: min(25.3731343284%, 85px) 1fr;
    align-items: start;
    gap: min(3.5820895522%, 12px);
    padding: 0 0 min(6.4svw, 24px);
  }

  .l-newsfilter__title {
    padding-top: min(1.8666666667svw, 7px);
    font-size: 16px;
  }

  .l-newsfilter__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: min(4.2666666667svw, 16px) min(6.4%, 16px);
  }

  .l-newsfilter__options label {
    min-height: min(10.1333333333svw, 38px);
    font-size: 14px;
  }

  .l-newsarchive__item {
    grid-template-columns: min(32.8358208955%, 110px) min(48.3582089552%, 162px);
    justify-content: space-between;
    gap: min(6.4svw, 24px) 0;
    min-height: 0;
    padding: min(11.7333333333svw, 44px) 0 min(12.8svw, 48px);
  }

  .l-newsarchive__date,
  .l-newsarchive__title,
  .l-newsarchive__category {
    font-size: 16px;
  }

  .l-newsarchive__category {
    min-height: min(10.9333333333svw, 41px);
  }

  .l-newsarchive__title {
    grid-column: 1 / -1;
  }
}

@media (hover: hover) {
  .l-newsarchive__title a:hover {
    text-decoration: underline;
  }

  .l-newsfilter__options label:hover {
    background-color: rgba(121, 135, 97, 0.15);
  }

  .l-newsfilter__options input:checked + label:hover {
    background-color: #798761;
  }

  .l-newsdetail__back a:hover {
    background-color: #798761;
    color: #fff;
  }
}

/* Lightbox Modal
-------------------------------------------------*/

.lightbox img,
.c-lightbox-trigger {
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

.c-lightbox-trigger img {
  display: block;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.lightbox img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (hover: hover) {
  .lightbox img:hover,
  .c-lightbox-trigger:hover img {
    opacity: 0.92;
    transform: scale(1.015);
  }
}

.c-lightbox-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: min(92vw, 1000px);
  max-height: 90vh;
  overflow: visible;
  outline: none;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease, overlay 0.3s ease allow-discrete, display 0.3s ease allow-discrete;
}

.c-lightbox-dialog[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  .c-lightbox-dialog[open] {
    opacity: 0;
    transform: scale(0.95);
  }
}

.c-lightbox-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease, overlay 0.3s ease allow-discrete, display 0.3s ease allow-discrete;
}

.c-lightbox-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .c-lightbox-dialog[open]::backdrop {
    opacity: 0;
  }
}

.c-lightbox-dialog__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 85vh;
}

.c-lightbox-dialog__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background-color: #fff;
}

.c-lightbox-dialog__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #798761;
  color: #ffffff;
  border: 2px solid #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.c-lightbox-dialog__close:hover {
  background-color: #5c6848;
  transform: scale(1.08);
}

.c-lightbox-dialog__close::before,
.c-lightbox-dialog__close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: currentColor;
}

.c-lightbox-dialog__close::before {
  transform: rotate(45deg);
}

.c-lightbox-dialog__close::after {
  transform: rotate(-45deg);
}

@media print, screen and (max-width: 750px) {
  .c-lightbox-dialog__close {
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
  }
}

