/*
 * single-news.css
 * お知らせ詳細ページ
 * 旧投稿CSSの干渉を抑え、縦横・大小どの画像でもきれいに表示
 */

.om-news-single-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(126, 200, 246, .08), transparent 20%),
    radial-gradient(circle at 92% 18%, rgba(245, 138, 173, .08), transparent 18%),
    #ffffff !important;
}

/* 旧テーマの投稿本文レイアウトが混ざる場合の保険 */
.om-news-single-page #container,
.om-news-single-page .width,
.om-news-single-page .entry-content,
.om-news-single-page article {
  max-width: none;
}

.om-news-single-page .om-container {
  max-width: var(--container, 1120px) !important;
  width: min(1120px, calc(100% - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.om-news-single-hero {
  position: relative;
  padding: 70px 0 34px;
}

.om-news-single-hero__inner {
  position: relative;
  z-index: 3;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 40px;
  padding: 48px 56px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 18%, rgba(126, 200, 246, .14), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(245, 138, 173, .12), transparent 24%),
    linear-gradient(120deg, #ffffff 0%, #f0fbff 55%, #fff7fb 100%);
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: 0 14px 34px rgba(116, 88, 63, .08);
  overflow: hidden;
}

.om-news-single-hero__label {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #55aee2;
  background: #eaf8ff;
  border: 1px solid rgba(126, 200, 246, .22);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
}

.om-news-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.om-news-single-meta time {
  color: #8a7b70;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}

.om-news-single-hero h1 {
  margin: 0;
  color: #4b372e;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: .04em;
}

.om-news-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.om-news-label--notice {
  background: #ee729c;
}

.om-news-label--blog {
  background: #73b988;
}

.om-news-label--news {
  background: #ff9d11;
}

.om-news-label--photo {
  background: #55aee2;
}

.om-news-label--default {
  background: #9e8bff;
}

.om-news-single-hero__deco {
  position: relative;
  min-height: 190px;
}

.om-news-single-deco {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  animation: omSoftBob 5.2s ease-in-out infinite alternate;
}

.om-news-single-deco--note {
  right: 48px;
  top: 20px;
  width: 116px;
  height: 116px;
  color: #55aee2;
  background: #eaf8ff;
  font-size: 66px;
}

.om-news-single-deco--heart {
  left: 34px;
  bottom: 22px;
  width: 78px;
  height: 78px;
  color: #ee729c;
  background: #fff1f6;
  font-size: 44px;
  animation-delay: -.8s;
}

.om-news-single-deco--circle {
  right: 152px;
  bottom: 10px;
  width: 56px;
  height: 56px;
  background: #ffd95b;
  opacity: .72;
  animation-delay: -1.4s;
}

.om-news-single-main {
  padding-top: 28px;
  padding-bottom: 72px;
}

.om-news-single-card {
  position: relative;
  z-index: 3;
  max-width: 920px !important;
  margin: 0 auto;
  padding: 34px;
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.om-news-single-card::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 134px;
  height: 134px;
  border-radius: 999px;
  background: rgba(126, 200, 246, .13);
  pointer-events: none;
}

.om-news-single-eyecatch {
  position: relative;
  z-index: 2;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 30px;
  background: #f3f0eb;
  box-shadow: 0 10px 24px rgba(116, 88, 63, .10);
}

.om-news-single-eyecatch img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: 680px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}

.om-news-single-content {
  position: relative;
  z-index: 2;
  color: #5b4b42;
  font-size: 16px;
  line-height: 2.1;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.om-news-single-content > *:first-child {
  margin-top: 0 !important;
}

.om-news-single-content > *:last-child {
  margin-bottom: 0 !important;
}

.om-news-single-content p {
  margin: 0 0 18px;
  color: #5b4b42;
  font-size: 16px;
  line-height: 2.1;
  font-weight: 700;
}

.om-news-single-content h2,
.om-news-single-content h3,
.om-news-single-content h4 {
  margin: 34px 0 16px;
  color: #4b372e;
  line-height: 1.55;
  font-weight: 900;
  letter-spacing: .04em;
}

.om-news-single-content h2 {
  padding: 16px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 18%, rgba(126, 200, 246, .11), transparent 20%),
    linear-gradient(90deg, #ffffff 0%, #f0fbff 100%);
  border: 1px solid #f0e8df;
  font-size: 25px;
}

.om-news-single-content h3 {
  font-size: 22px;
  padding-left: 18px;
  border-left: 6px solid #55aee2;
}

.om-news-single-content h4 {
  font-size: 19px;
}

.om-news-single-content a {
  color: #55aee2;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.om-news-single-content ul,
.om-news-single-content ol {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
}

.om-news-single-content li {
  position: relative;
  list-style: none;
  padding: 12px 16px 12px 42px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f0e8df;
}

.om-news-single-content li::before {
  content: "♪";
  position: absolute;
  left: 15px;
  top: 13px;
  color: #55aee2;
  font-size: 14px;
  font-weight: 900;
}

/* 投稿本文内の画像を整える：縦長・横長・大きい画像・小さい画像に対応 */
.om-news-single-content figure,
.om-news-single-content .wp-block-image,
.om-news-single-content p:has(img) {
  margin: 28px auto !important;
  text-align: center !important;
}

.om-news-single-content figure {
  display: block;
}

.om-news-single-content img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 760px !important;
  margin: 0 auto !important;
  border-radius: 26px !important;
  object-fit: contain !important;
  object-position: center center !important;
  box-shadow: 0 10px 24px rgba(116, 88, 63, .10);
  background: #f3f0eb;
}

/* 横長画像は自然に横幅いっぱいまで、縦長画像は大きくなりすぎない */
.om-news-single-content .aligncenter,
.om-news-single-content .alignnone,
.om-news-single-content .size-full,
.om-news-single-content .size-large {
  margin-left: auto !important;
  margin-right: auto !important;
}

.om-news-single-content figcaption,
.om-news-single-content .wp-element-caption {
  margin: 10px 0 0;
  color: #8a7b70;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
  text-align: center;
}

.om-news-single-content iframe,
.om-news-single-content video {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px auto;
  border-radius: 24px;
}

.om-news-single-nav {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.om-news-single-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 24px;
  color: #5b4b42;
  background: #ffffff;
  border: 1px solid #f0e8df;
  box-shadow: 0 8px 18px rgba(116, 88, 63, .06);
  text-decoration: none !important;
  transition:
    transform .28s cubic-bezier(.22, 1, .36, 1),
    box-shadow .28s ease,
    background .28s ease;
}

.om-news-single-nav a span {
  color: #ff9d11;
  font-size: 13px;
  font-weight: 900;
}

.om-news-single-nav a strong {
  margin-top: 6px;
  color: #4b372e;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 900;
}

.om-news-single-nav__list {
  min-width: 150px;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #ffb13b 0%, #ff9d11 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.om-news-single-nav__list span,
.om-news-single-nav__list strong {
  color: #ffffff !important;
}

.om-news-single-nav__prev:empty,
.om-news-single-nav__next:empty {
  display: block;
}

@media (hover: hover) {
  .om-news-single-nav a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(116, 88, 63, .11);
  }
}

@media (max-width: 1180px) {
  .om-news-single-hero__inner {
    grid-template-columns: 1fr;
  }

  .om-news-single-hero__deco {
    display: none;
  }
}

@media (max-width: 768px) {
  .om-news-single-hero {
    padding: 34px 0 24px;
  }

  .om-news-single-hero__inner {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .om-news-single-hero h1 {
    font-size: 30px;
  }

  .om-news-single-card {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .om-news-single-eyecatch {
    border-radius: 24px;
  }

  .om-news-single-content {
    font-size: 15px;
    line-height: 2;
  }

  .om-news-single-content p {
    font-size: 15px;
    line-height: 2;
  }

  .om-news-single-content h2 {
    font-size: 21px;
    padding: 14px 16px;
  }

  .om-news-single-content h3 {
    font-size: 19px;
  }

  .om-news-single-content img {
    border-radius: 20px !important;
    max-height: 620px !important;
  }

  .om-news-single-nav {
    grid-template-columns: 1fr;
  }

  .om-news-single-nav__prev:empty,
  .om-news-single-nav__next:empty {
    display: none;
  }
}

/* :has 非対応ブラウザでも問題ないようにする保険 */
@supports not selector(p:has(img)) {
  .om-news-single-content p img {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
}


/* ========================================
   News single title size compact fix 2026052294
   PC/SPともにタイトル文字とヒーローカード縦幅を小さく調整
======================================== */

/* PC：タイトルカードを少しコンパクトに */
.om-news-single-hero {
  padding: 54px 0 24px !important;
}

.om-news-single-hero__inner {
  min-height: 210px !important;
  grid-template-columns: minmax(0, 1fr) 260px !important;
  gap: 28px !important;
  padding: 34px 46px !important;
  border-radius: 32px !important;
}

.om-news-single-hero h1 {
  font-size: clamp(24px, 2.7vw, 36px) !important;
  line-height: 1.55 !important;
  letter-spacing: .035em !important;
}

.om-news-single-hero__label {
  margin-bottom: 10px !important;
  padding: 5px 13px !important;
  font-size: 12px !important;
}

.om-news-single-meta {
  margin-bottom: 10px !important;
}

.om-news-single-meta time {
  font-size: 13px !important;
}

.om-news-single-hero__deco {
  min-height: 150px !important;
}

.om-news-single-deco--note {
  width: 88px !important;
  height: 88px !important;
  right: 34px !important;
  top: 18px !important;
  font-size: 50px !important;
}

.om-news-single-deco--heart {
  width: 62px !important;
  height: 62px !important;
  left: 28px !important;
  bottom: 20px !important;
  font-size: 34px !important;
}

.om-news-single-deco--circle {
  width: 46px !important;
  height: 46px !important;
  right: 126px !important;
}

/* SP：タイトルを大きすぎないサイズへ。カード縦幅も詰める */
@media (max-width: 768px) {
  .om-news-single-hero {
    padding: 24px 0 16px !important;
  }

  .om-news-single-hero__inner {
    min-height: 0 !important;
    padding: 24px 20px !important;
    border-radius: 24px !important;
    gap: 0 !important;
  }

  .om-news-single-hero h1 {
    font-size: clamp(23px, 7vw, 28px) !important;
    line-height: 1.55 !important;
    letter-spacing: .02em !important;
  }

  .om-news-single-hero__label {
    margin-bottom: 12px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
  }

  .om-news-single-meta {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .om-news-single-meta time {
    font-size: 13px !important;
  }

  .om-news-label {
    min-height: 24px !important;
    padding: 4px 11px !important;
    font-size: 11px !important;
  }

  .om-news-single-main {
    padding-top: 20px !important;
  }
}

@media (max-width: 390px) {
  .om-news-single-hero h1 {
    font-size: 24px !important;
  }

  .om-news-single-hero__inner {
    padding: 22px 18px !important;
  }
}


/* ========================================
   News single SP title layout fix 2026052295
   SP表示でタイトルが縦に崩れる問題を修正し、文字もさらに小さく調整
   PC表示は前回調整を維持
======================================== */
@media (max-width: 768px) {
  /* 前回のPC用2カラム指定がSPにも残らないよう、SPでは必ず1カラムに戻す */
  .om-news-single-hero__inner {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 22px 18px !important;
    border-radius: 24px !important;
  }

  .om-news-single-hero__copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .om-news-single-hero h1 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: clamp(20px, 5.7vw, 23px) !important;
    line-height: 1.62 !important;
    letter-spacing: .015em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
  }

  .om-news-single-hero {
    padding: 22px 0 14px !important;
  }

  .om-news-single-hero__label {
    margin-bottom: 10px !important;
    padding: 5px 13px !important;
    font-size: 11px !important;
  }

  .om-news-single-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .om-news-single-meta time {
    font-size: 12px !important;
  }

  .om-news-label {
    min-height: 23px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
  }

  /* SPでは右側の装飾領域を完全に非表示にし、タイトル幅を確保 */
  .om-news-single-hero__deco {
    display: none !important;
  }

  .om-news-single-main {
    padding-top: 18px !important;
  }
}

@media (max-width: 390px) {
  .om-news-single-hero h1 {
    font-size: 20px !important;
    line-height: 1.62 !important;
  }

  .om-news-single-hero__inner {
    padding: 20px 16px !important;
  }
}
