@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

html {
  margin: 0 !important;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans", "Noto Sans JP", sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

#wpadminbar {
  display: none;
}

/* ---------- 画像の拡大表示 ---------- */

/* クリックできることが分かるように、カーソルを虫めがねに */
.news-detail img {
  cursor: zoom-in;
}

.img-modal {
  max-width: 90vw;
  max-height: 90vh;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

/* 後ろの暗い背景 */
.img-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.img-modal__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
}

/* 閉じるボタン：白い丸 */
.img-modal__close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  border: solid 2px var(--color-br);
  cursor: pointer;
}

/* 細い線を2本、斜めに交差させて「×」にする */
.img-modal__close::before,
.img-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--color-br);
}

.img-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.img-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 開くときに、ふわっと表示 */
.img-modal[open] {
  animation: img-modal-in 0.3s ease;
}

@keyframes img-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  /* 閉じるボタン：白い丸 */
  .img-modal__close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
  }
}
