/* Rich text from microCMS (news bodies, block pages).
   microCMS wraps images in <figure> and sets width/height attributes; keep the same look as the
   WordPress body (image inside a paragraph, full content width, natural aspect ratio). */
.p-single__info figure { margin: 24px 0 0; }
.p-single__info img { max-width: 100%; height: auto; }
@media screen and (min-width: 768px) {
  .p-single__info figure { margin-top: 3rem; }
}

/* microCMS tables put a <p> in every cell and drop the inline widths WordPress had
   (table width 100%, cells 50%). Restore that look. */
.p-single__info table { width: 100%; border-collapse: collapse; }
.p-single__info td, .p-single__info th { width: 50%; }
.p-single__info td > p, .p-single__info th > p {
  margin: 0; font: inherit; letter-spacing: inherit; line-height: inherit;
}

/* News images: shown at a moderate size; a click opens the full image (src/components/NewsImageZoom).
   lib/news-html.ts wraps each image in <button class="news-zoom">. */
.p-single__info figure:has(.news-zoom) { line-height: 0; }
.p-single__info .news-zoom {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  max-width: 100%; padding: 0; border: none; background: none; text-align: left; cursor: zoom-in; line-height: 1.5;
}
.p-single__info .news-zoom img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 22rem;
  border-radius: 0.375rem; transition: opacity 0.3s ease;
}
.p-single__info .news-zoom__hint {
  font-size: 0.6875rem; letter-spacing: 0.01375rem; color: rgba(37, 58, 73, .6);
}
@media screen and (min-width: 768px) {
  .p-single__info .news-zoom img { max-width: 32rem; max-height: 26rem; }
}
@media (any-hover: hover) {
  .p-single__info .news-zoom:hover img { opacity: 0.85; }
}
.p-single__info .news-zoom:focus-visible { outline: 1px solid #253A49; outline-offset: 0.25rem; }

/* News PDF files (rich editor "ファイル" button, or any link to a .pdf): a plain file row that opens in a new tab. */
.p-single__info a.news-pdf {
  display: inline-flex; align-items: center; gap: 0.875rem; max-width: 100%;
  margin-top: 0.25rem; padding: 0.875rem 1.125rem;
  border: 1px solid rgba(37, 58, 73, .25); border-radius: 0.375rem;
  color: #253A49; text-decoration: none; transition: background-color 0.3s ease;
}
.p-single__info .news-pdf__type {
  flex: none; padding: 0.25rem 0.375rem; border: 1px solid #253A49; border-radius: 0.1875rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.05rem; line-height: 1;
}
.p-single__info .news-pdf__name { min-width: 0; overflow-wrap: anywhere; }
.p-single__info .news-pdf__open {
  flex: none; margin-left: 0.5rem; font-size: 0.6875rem; color: rgba(37, 58, 73, .6); white-space: nowrap;
}
@media (any-hover: hover) {
  .p-single__info a.news-pdf:hover { background-color: rgba(253, 252, 249, .5); }
}


/* Phone header "Menu" button: the word sits half a pixel high and the three bars half a pixel low in the
   theme; measured on screen, this puts both exactly in the middle of the button (14.5px / 15.5px each side). */
/* The two chips in the phone header (globe, Menu) are the same height (26px) with the same side padding (8px);
   the theme made the Menu chip 20px tall next to a 26px globe chip. */
@media screen and (max-width: 767px) {
  .p-drawer__menu-text { transform: translateY(0.5px); }
  .p-drawer__hamburger { transform: translateY(-0.5px); }
  .p-drawer__head .p-drawer__menu-btn { padding: 7px 8px; }
}
