/*
Theme Name: Shionoya Satoru
Theme URI: https://example.com/
Author: Shionoya Satoru
Description: Satoru Shionoya公式サイト専用のクラシックWordPressテーマです。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: shionoya-satoru
*/

/* Keep page headings consistent with the site's sans-serif typography. */
body:not(.single) h1 {
  font-family: var(--font-sans);
}

.space {
	width: 100%;
	height: 20px;
	overflow: hidden;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: #111;
  background: #fff;
}

.site-pagination {
  margin-top: clamp(42px, 6vw, 80px);
}

.site-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.site-pagination a,
.site-pagination span {
  color: inherit;
  text-decoration: none;
}

.site-pagination .current {
  border-bottom: 1px solid currentColor;
}

.site-empty {
  padding: clamp(44px, 8vw, 110px) 0;
  border-top: 1px solid #111;
  font-size: 0.95rem;
}

.entry-content {
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  line-height: 2;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content img {
  height: auto;
}

/* Shared return link for single post templates. */
.single-back {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 7vw, 88px);
}

.single-back__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid #111;
  color: #111;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.single-back__link:hover,
.single-back__link:focus-visible {
  background: #111;
  color: #fff;
}

.single-back__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .single-back {
    margin-top: 48px;
  }

  .single-back__link {
    min-width: 132px;
    min-height: 44px;
  }
}

.news-single {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 130px) 0;
}

.news-single__header {
  padding-bottom: clamp(30px, 4vw, 52px);
  border-bottom: 1px solid #111;
}

.news-single__date {
  display: block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.news-single__title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
}

.news-single__body {
  max-width: 820px;
  margin: clamp(40px, 6vw, 78px) auto 0;
}

.works-list__thumb--placeholder,
.live-thumb--placeholder,
.wwdp-gallery__placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #777;
  background: #efefef;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.works-single__description.entry-content {
  text-align: left;
}

/* WORKS・NEWS投稿内のYouTubeを本文幅いっぱいに表示 */
.page-works-single .works-single__description .wp-block-embed-youtube,
.page-works-single .works-single__description .wp-block-embed-youtube .wp-block-embed__wrapper,
.news-single__body .wp-block-embed-youtube,
.news-single__body .wp-block-embed-youtube .wp-block-embed__wrapper {
  width: 100%;
  max-width: none;
}

.page-works-single .works-single__description iframe[src*="youtube.com"],
.page-works-single .works-single__description iframe[src*="youtube-nocookie.com"],
.news-single__body iframe[src*="youtube.com"],
.news-single__body iframe[src*="youtube-nocookie.com"] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* LIVE detail: restrained typography and consistent editorial spacing. */
.page-live-single .live-detail-section {
  padding: clamp(28px, 4vw, 52px) 0 clamp(56px, 7vw, 96px);
}

.page-live-single .live-heading {
  width: min(1080px, 100%);
  margin: 0 auto 32px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.page-live-single .live-detail-shell {
  width: min(1080px, 100%);
  padding: clamp(28px, 3.5vw, 44px) 0;
}

.page-live-single .live-detail-layout {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 64px);
}

.page-live-single .live-detail-copy {
  gap: 28px;
  padding-top: 4px;
  overflow-wrap: anywhere;
}

.page-live-single .live-detail-date {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.page-live-single .live-detail-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.65vw, 1.5rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.035em;
  text-wrap: pretty;
}

.page-live-single .live-detail-meta {
  gap: 6px;
  margin-top: 20px;
}

.page-live-single .live-detail-lines,
.page-live-single .live-detail-venue {
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.025em;
}

.page-live-single .live-detail-content {
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.page-live-single .live-detail-content > * {
  margin-block: 0 1.4em;
}

.page-live-single .live-detail-content > :last-child {
  margin-bottom: 0;
}

.page-live-single .live-detail-content :is(h2, h3, h4) {
  margin-top: 1.8em;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
}

.page-live-single .live-detail-content :is(ul, ol) {
  padding-left: 1.4em;
}

.page-live-single .live-detail-content a, .news-single__body a, .works-single__description a {
  color: #222;
  text-decoration: underline;
  text-decoration-color: #9a9890;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.page-live-single .live-detail-content a:hover, .news-single__body a:hover, .works-single__description a:hover {
  text-decoration-color: currentColor;
}

.page-live-single .live-detail-content a:focus-visible, .news-single__body a:focus-visible, .works-single__description a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.page-live-single .live-reserve-box {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--surface);
}

.page-live-single .live-reserve-box p {
  font-size: 0.9375rem;
  line-height: 1.9;
}

@media (max-width: 980px) {
  .page-live-single .live-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-live-single .live-detail-media {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .page-live-single .live-heading {
    margin-bottom: 24px;
  }

  .page-live-single .live-detail-shell {
    padding-block: 24px 32px;
  }

  .page-live-single .live-detail-media {
    max-width: 340px;
  }

  .page-live-single .live-detail-copy {
    gap: 24px;
    padding-top: 0;
  }

  .page-live-single .live-detail-content {
    padding-top: 20px;
  }
}

.works-single__tracks {
  white-space: normal;
}

.wwdp-single {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
}

.wwdp-single .subpage-heading {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.wwdp-single__image {
  margin: 28px 0 0;
}

.wwdp-single__image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  max-height: min(640px, 68svh);
  margin-inline: auto;
  object-fit: contain;
}

.wwdp-single .entry-content {
  width: min(600px, 100%);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.95;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

.wwdp-single .entry-content > * {
  margin-block: 0 1.4em;
}

.wwdp-single .entry-content > :last-child {
  margin-bottom: 0;
}

.wwdp-single .entry-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  margin-inline: auto;
  object-fit: contain;
}

.wwdp-single .entry-content a {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.theme-plugin-notice {
  padding: 20px;
  border: 1px solid #c8c8c8;
  color: #444;
  background: #f7f7f7;
  font-size: 0.9rem;
  line-height: 1.8;
}

.contact-form-section .wpcf7 {
  width: 100%;
}

@media (max-width: 640px) {
  .news-single {
    width: min(100% - 34px, 1120px);
  }

  /* LIVE archive: compact mobile cards with the poster and details side by side. */
  .page-live .live-section {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .page-live .live-heading {
    margin-bottom: 24px;
    font-size: 2rem;
  }

  .page-live .live-item__link {
    grid-template-columns: clamp(104px, 31vw, 128px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px 0 22px;
  }

  .page-live .live-thumb {
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 4;
  }

  .page-live .live-copy {
    gap: 5px;
    padding-top: 0;
    overflow-wrap: anywhere;
  }

  .page-live .live-date {
    font-size: 0.82rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .page-live .live-date--schedule {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
  }

  .page-live .live-title {
    margin: 3px 0 7px;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.45;
  }

  .page-live .live-meta {
    margin-top: 7px;
  }

  .page-live .live-meta p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .wwdp-single__image {
    margin-top: 24px;
  }

  .wwdp-single .entry-content {
    margin-top: 20px;
  }
}
