/* =========================================================
   Single CSS — お知らせ詳細ページ専用
   ========================================================= */

.detail-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 32px 24px;
}

.article {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 48px 56px 52px;
  margin-top: 24px;
}
.art-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 26px;
  margin-bottom: 32px;
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.art-date {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.art-title {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.art-body {
  font-size: 15px;
  line-height: 2.15;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.art-body p {
  margin: 0 0 1.7em;
}
.art-body p.lead {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.art-body strong {
  font-weight: 700;
}

.art-figure {
  margin: 8px 0 30px;
}
.art-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}
.art-figure figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.art-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 42px 0 18px;
}
.art-h2::before {
  content: "";
  width: 5px;
  height: 22px;
  background: var(--green);
  border-radius: 3px;
  flex-shrink: 0;
}

.schedule {
  list-style: none;
  padding: 0;
  margin: 0 0 1.7em;
}
.schedule li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--border);
}
.schedule li:last-child {
  border-bottom: none;
}
.schedule li .when {
  font-weight: 700;
  color: var(--green);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.callout {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 8px 0 1.7em;
}
.callout .c-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.callout p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* SNS シェア */
.share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.share .label {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  white-space: nowrap;
}
.share-btns {
  display: flex;
  gap: 10px;
}
.share-btns a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.share-btns a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.share-btns svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* 前後ナビ */
.pager {
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pager a {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  transition:
    border-color 0.2s,
    transform 0.2s;
  text-decoration: none;
}
.pager a:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}
.pager .dir {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 6px;
}
.pager .t {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
  display: block;
}
.pager a.next {
  text-align: right;
}
.pager a:hover .t {
  color: var(--green);
}

/* 関連記事 */
.related {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px 8px;
}
.related-head {
  text-align: center;
  margin-bottom: 32px;
}
.related-head .en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  color: var(--terracotta);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.related-head h2 {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.rel-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: block;
  text-decoration: none;
}
.rel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.rel-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.rel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.rel-card:hover .rel-thumb img {
  transform: scale(1.05);
}
.rel-body {
  display: block;
  padding: 18px 20px 22px;
}
.rel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rel-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.rel-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.7;
  letter-spacing: 0.03em;
}
.rel-card:hover .rel-title {
  color: var(--green);
}

.back-wrap {
  text-align: center;
 padding-top: 48px;
}

/* =========================================================
   WordPress 本文（the_content）フォールバック
   投稿本文には手書きHTMLのカスタムクラス（.art-h2 等）が
   付かないため、素のタグにスタイルを当てて崩れを防ぐ
   ========================================================= */
.art-body h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 42px 0 18px;
}
.art-body h2::before {
  content: "";
  width: 5px;
  height: 22px;
  background: var(--green);
  border-radius: 3px;
  flex-shrink: 0;
}
.art-body h3 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 32px 0 14px;
}
.art-body ul,
.art-body ol {
  margin: 0 0 1.7em;
  padding-left: 1.4em;
}
.art-body li {
  margin-bottom: 0.5em;
  line-height: 1.9;
}
.art-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.art-body a:hover {
  opacity: 0.75;
}
.art-body img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.art-body figure {
  margin: 20px 0 30px;
}
.art-body figure img {
  width: auto;
  height: auto;
  border-radius: 12px;
}
.art-body figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.art-body blockquote {
  background: var(--cream-2);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 8px 0 1.7em;
  color: var(--muted);
}
.art-body blockquote p:last-child {
  margin-bottom: 0;
}

/* 本文テーブル：1列目だけ width:30%（残りは均等に）。
   width を確実に効かせるため table-layout:fixed + width:100% を指定する。 */
.art-body table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.art-body th,
.art-body td {
  word-break: break-word;
}
.art-body tr > :first-child {
  width: 25%;
}

/* モバイル調整 */
@media (max-width: 768px) {
  .detail-wrap {
    padding: 12px 12px 14px;
  }
  .article {
    padding: 14px 14px 20px;
    border-radius: 12px;
    margin-top: 14px;
  }
  .art-head {
    padding-bottom: 14px;
    margin-bottom: 18px;
  }
  .art-meta {
    gap: 10px;
    margin-bottom: 10px;
  }
  .art-date {
    font-size: 14px;
  }
  .art-title {
    font-size: 18px;
    letter-spacing: 0.03em;
    line-height: 1.5;
  }
  .art-body {
    font-size: 14px;
    line-height: 1.95;
  }
  .art-body h2 {
    font-size: 16px;
  }
  .art-body p {
    margin-bottom: 1.4em;
  }
  .art-body p.lead {
    font-size: 13px;
  }
  .art-h2 {
    font-size: 14px;
    margin: 24px 0 12px;
    gap: 10px;
  }
  .art-h2::before {
    width: 4px;
    height: 18px;
  }
  .art-figure {
    margin: 4px 0 18px;
  }
  .art-figure img {
    border-radius: 8px;
    width: 100%;
  }
  .art-figure figcaption {
    font-size: 10.5px;
  }
  .schedule li {
    grid-template-columns: 80px 1fr;
    gap: 8px;
    padding: 12px 0;
  }
  .schedule li .when {
    font-size: 12px;
  }
  .callout {
    padding: 14px 14px;
    border-radius: 10px;
  }
  .callout .c-title {
    font-size: 13px;
  }
  .callout p {
    font-size: 11.5px;
  }
  .share {
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
  }
  .share .label {
    font-size: 12px;
  }
  .share-btns a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }
  .share-btns svg {
    width: 14px;
    height: 14px;
  }
  .pager {
    grid-template-columns: 1fr;
    padding: 0 12px;
    gap: 10px;
    margin-top: 24px;
  }
  .pager a {
    padding: 14px 16px;
    border-radius: 10px;
  }
  .pager .t {
    font-size: 14px;
  }
  .related {
    padding: 32px 12px 8px;
  }
  .related-head h2 {
    font-size: 16px;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* スマホ: 縦長になりすぎるので、左サムネ＋右テキストの横並びコンパクトカードに */
  .rel-card {
    display: flex;
    align-items: stretch;
  }
  .rel-thumb {
    width: 112px;
    flex-shrink: 0;
    aspect-ratio: auto; /* 高さは本文に合わせて伸ばす */
  }
  .rel-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
  }
  .rel-meta {
    margin-bottom: 0;
    gap: 8px;
  }
  .rel-date {
    font-size: 12px;
  }
  .rel-title {
    font-size: 14px;
    line-height: 1.5;
    /* 長いタイトルは2行で省略してカード高さを一定に保つ */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .back-wrap {
    padding: 28px 0 48px;
  }
}
