/* ==========================================================================
   single-news.css — お知らせ詳細
   ========================================================================== */

.news-single {
  padding: 60px 0 120px;
}

.news-single__inner.container {
  max-width: var(--container-article);
}

/* --- ヘッダー --- */
.news-single__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ddd;
}

.news-single__date {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 16px;
}

.news-single__title {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--color-base);
  font-feature-settings: "palt";
}

/* --- アイキャッチ --- */
.news-single__thumbnail {
  margin-bottom: 48px;
}

.news-single__thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- コンテンツ（the_content） --- */
.news-single__content {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-base);
}

.news-single__content h2 {
  margin: 48px 0 24px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
}

.news-single__content h3 {
  margin: 32px 0 16px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}

.news-single__content p {
  margin: 0 0 24px;
}

.news-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.news-single__content a {
  color: var(--color-orange);
  text-decoration: underline;
}

.news-single__content a:hover {
  opacity: 0.7;
}

.news-single__content ul,
.news-single__content ol {
  margin: 0 0 24px;
  padding-left: 1.5em;
  list-style: disc;
}

.news-single__content ol {
  list-style: decimal;
}

.news-single__content li {
  margin-bottom: 8px;
}

/* テーブル */
.news-single__content table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
}

.news-single__content th,
.news-single__content td {
  border: 1px solid #ddd;
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
}

.news-single__content th {
  font-weight: 700;
  background-color: rgba(234, 139, 15, 0.08);
}

/* ブロックエディタ テーブル */
.news-single__content .wp-block-table {
  margin: 0 0 24px;
  overflow-x: auto;
}

.news-single__content .wp-block-table table {
  margin: 0;
  font-size: 14px;
}

.news-single__content .wp-block-table th,
.news-single__content .wp-block-table td {
  padding: 12px 16px;
}

/* 引用 */
.news-single__content blockquote {
  border-left: 4px solid var(--color-orange);
  background: rgba(254, 246, 236, 0.5);
  border-radius: 8px;
  padding: 24px 24px 24px 32px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.news-single__content blockquote p {
  margin-bottom: 0;
}

/* コード */
.news-single__content pre {
  background-color: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin: 0 0 24px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.news-single__content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.news-single__content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* 画像・キャプション */
.news-single__content figure {
  margin: 0 0 24px;
}

.news-single__content figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 8px;
}

/* 区切り線 */
.news-single__content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 32px 0;
}

/* 埋め込み */
.news-single__content iframe,
.news-single__content video {
  max-width: 100%;
}

.news-single__content .wp-block-embed {
  margin: 0 0 24px;
}

.news-single__content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.news-single__content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- フッター --- */
.news-single__footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #ddd;
}

.news-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--color-navy);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-single__back:hover {
  opacity: 0.7;
}

.news-single__back svg {
  flex-shrink: 0;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1024px) {
  .news-single {
    padding: 48px 0 80px;
  }
}

@media (max-width: 768px) {
  .news-single {
    padding: 48px 0 64px;
  }

  .news-single__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .news-single__date {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .news-single__title {
    font-size: 22px;
  }

  .news-single__content {
    font-size: 14px;
    line-height: 1.8;
  }

  .news-single__content h2 {
    font-size: 18px;
    margin: 36px 0 16px;
  }

  .news-single__content h3 {
    font-size: 16px;
    margin: 24px 0 12px;
  }

  .news-single__content blockquote {
    padding: 16px 16px 16px 24px;
  }

  .news-single__content th,
  .news-single__content td {
    padding: 12px 16px;
  }

  .news-single__footer {
    margin-top: 48px;
  }

  .news-single__back {
    font-size: 14px;
  }
}


/* ==========================================================================
   editor-content.css — ブロックエディタ本文の共通スタイル
   使用: .editor-content（デフォルト）/ .editor-content--interview（インタビュー）
   ========================================================================== */

/* --- ベース --- */
.editor-content {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-base);
}

/* --- 見出し: 共通ベース --- */
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-base);
}

.editor-content h1:first-child,
.editor-content h2:first-child,
.editor-content h3:first-child,
.editor-content h4:first-child,
.editor-content h5:first-child,
.editor-content h6:first-child {
  margin-top: 0;
}

/* --- 見出し: デフォルトサイズ --- */
.editor-content h1 {
  font-size: 32px;
  margin: 56px 0 28px;
}

.editor-content h2 {
  display: inline-block;
  font-size: 26px;
  margin: 48px 0 24px;
  padding-bottom: 0.4em;
  border-bottom: 3px solid var(--color-orange);
}

.editor-content h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  margin: 40px 0 20px;
}

.editor-content h3::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: var(--color-orange);
  flex-shrink: 0;
}

.editor-content h4 {
  font-size: 18px;
  margin: 32px 0 16px;
}

.editor-content h5 {
  font-size: 16px;
  margin: 24px 0 12px;
}

.editor-content h6 {
  font-size: 16px;
  margin: 24px 0 12px;
}

/* --- 見出し: インタビュー（中央揃え・大きめ・下線なし） --- */
.editor-content--interview h2,
.editor-content--interview h3 {
  display: block;
  font-size: 26px;
  line-height: 48px;
  letter-spacing: 1.3px;
  margin-top: 80px;
  margin-bottom: 32px;
  padding-bottom: 0;
  padding-left: 0;
  border-bottom: none;
  text-align: center;
  justify-content: center;
}

.editor-content--interview h3::before {
  display: none;
}

/* --- 段落 --- */
.editor-content p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 24px;
}

.editor-content--interview p {
  margin-bottom: 40px;
}

.editor-content p:last-child {
  margin-bottom: 0;
}

/* --- 画像 --- */
.editor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.editor-content--interview img {
  display: block;
  max-width: 900px;
  margin: 60px auto;
  border-radius: var(--radius-small);
}

/* --- リンク --- */
.editor-content a {
  color: var(--color-orange);
  text-decoration: underline;
}

.editor-content a:hover {
  opacity: 0.7;
}

/* --- リスト --- */
.editor-content ul,
.editor-content ol {
  margin: 0 0 24px;
  padding-left: 1.5em;
  list-style: disc;
}

.editor-content ol {
  list-style: decimal;
}

.editor-content li {
  margin-bottom: 8px;
}

/* --- テーブル --- */
.editor-content table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
}

.editor-content th,
.editor-content td {
  border: 1px solid #888;
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  background-color: #fff;
  font-size: 15px;
}

.editor-content th {
  font-weight: 700;
}

.editor-content .wp-block-table {
  margin: 0 0 24px;
  overflow-x: auto;
}

.editor-content .wp-block-table table {
  margin: 0;
}

.editor-content .wp-block-table thead {
  border-bottom: 2px solid #888;
}

.editor-content .wp-block-table tfoot {
  border-top: 2px solid #888;
}

/* --- 引用 --- */
.editor-content blockquote {
  border-left: 4px solid var(--color-orange);
  background: rgba(254, 246, 236, 0.5);
  border-radius: 8px;
  padding: 24px 24px 24px 32px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.editor-content blockquote p {
  margin-bottom: 0;
}

/* --- コード --- */
.editor-content pre {
  background-color: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin: 0 0 24px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.editor-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.editor-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* --- 画像・キャプション --- */
.editor-content figure {
  margin: 0 0 24px;
}

.editor-content figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 8px;
}

/* --- 区切り線 --- */
.editor-content hr {
  border: none;
  border-top: 1px solid #888;
  margin: 32px 0;
}

/* --- 埋め込み --- */
.editor-content iframe,
.editor-content video {
  max-width: 100%;
}

.editor-content .wp-block-embed {
  margin: 0 0 24px;
}

.editor-content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.editor-content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   インタビュー本文専用（.editor-content--interview）
   ========================================================================== */

/* p: Figma準拠 */
.editor-content--interview p {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  font-style: normal;
  line-height: 40px;
  letter-spacing: 0.8px;
  font-feature-settings: "palt";
  color: var(--color-base);
}

/* h2: Figma準拠、中央揃え、前後に"装飾SVG */
.editor-content--interview h2 {
  display: flex;
  align-items: stretch;
  gap: 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 30px;
  font-style: normal;
  line-height: 60px;
  letter-spacing: 1.5px;
  font-feature-settings: "palt";
  color: var(--color-base);
  padding-bottom: 0;
  border-bottom: none;
  text-align: left;
}

.editor-content--interview h2::before,
.editor-content--interview h2::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: clamp(24px, 2.1vw, 41px);
  min-height: clamp(19px, 1.7vw, 33px);
  aspect-ratio: 41 / 33;
  background-size: contain;
  background-repeat: no-repeat;
}

.editor-content--interview h2::before {
  background-image: url('../images/interview/h2-deco-start.svg');
  background-position: left top;
  align-self: flex-start;
  margin-top: 0.2em;
}

.editor-content--interview h2::after {
  background-image: url('../images/interview/h2-deco-end.svg');
  background-position: right bottom;
  align-self: flex-end;
  margin-bottom: 0.2em;
}

.editor-content--interview h3 {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 30px;
  font-style: normal;
  line-height: 60px;
  letter-spacing: 1.5px;
  font-feature-settings: "palt";
  color: var(--color-base);
  padding-left: 0;
  border-left: none;
  text-align: center;
}

.editor-content--interview h3::before {
  display: none;
}

/* img: 角丸なし、両脇をsite-paddingで凹ませる */
.editor-content--interview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  margin: 60px 0;
  padding: 0 var(--site-padding);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 768px) {
  .editor-content {
    font-size: 14px;
    line-height: 1.8;
  }

  .editor-content h1 {
    font-size: 24px;
    margin: 40px 0 20px;
  }

  .editor-content h2 {
    font-size: 20px;
    margin: 36px 0 16px;
  }

  .editor-content h3 {
    font-size: 18px;
    margin: 28px 0 14px;
  }

  .editor-content h4 {
    font-size: 16px;
    margin: 24px 0 12px;
  }

  .editor-content h5 {
    font-size: 15px;
    margin: 20px 0 10px;
  }

  .editor-content h6 {
    font-size: 14px;
    margin: 20px 0 10px;
  }

  .editor-content p {
    font-size: 14px;
    line-height: 1.8;
  }

  .editor-content--interview h2,
  .editor-content--interview h3 {
    font-size: 20px;
    line-height: 36px;
    margin-top: 48px;
    margin-bottom: 24px;
  }

  .editor-content--interview p {
    font-size: 14px;
    line-height: 32px;
    letter-spacing: 0.6px;
  }

  .editor-content--interview h2,
  .editor-content--interview h3 {
    font-size: 22px;
    line-height: 40px;
    letter-spacing: 1px;
  }

  .editor-content--interview img {
    margin: 40px 0;
  }

  .editor-content blockquote {
    padding: 16px 16px 16px 24px;
  }

  .editor-content th,
  .editor-content td {
    padding: 10px 14px;
    font-size: 13px;
  }
}
