/*
Theme Name: Nagi Press
Theme URI: https://example.com/
Author: Blog Team
Author URI: https://example.com/
Description: 収益化に特化したオリジナルWordPressテーマ「Nagi Press」。編集部メディア然とした大胆なエディトリアルデザイン(セリフ見出し・朱色アクセント・凪いだ余白)に、広告枠・CTAボックス・目次自動生成・人気記事ランキング・関連記事表示などの収益化機能を標準搭載。
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: monetize-press
*/

/* ==========================================================================
   0. Design tokens — editorial / 凪(calm) × 朱(vermillion)
   ========================================================================== */
:root {
  --mp-color-bg: #f6f3ec;
  --mp-color-surface: #ffffff;
  --mp-color-ink: #191714;
  --mp-color-text: #2a2722;
  --mp-color-text-muted: #817a6e;
  --mp-color-border: #e1dbcc;
  --mp-color-border-strong: #c9c0ac;

  --mp-color-primary: #191714;
  --mp-color-primary-light: #2d2a24;
  --mp-color-primary-contrast: #f6f3ec;

  --mp-color-accent: #b23a2e;
  --mp-color-accent-dark: #8f2e24;
  --mp-color-accent-soft: #f6e4e0;
  --mp-color-accent-contrast: #ffffff;

  --mp-color-success: #4b7a51;
  --mp-color-ad-border: #ded7c6;
  --mp-color-ad-bg: #efe9db;
  --mp-color-ad-text: #9c927f;

  --mp-font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP",
    "Georgia", serif;
  --mp-font-base: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", Meiryo, "Segoe UI", Roboto, sans-serif;

  --mp-radius-sm: 3px;
  --mp-radius-md: 4px;
  --mp-radius-lg: 6px;

  --mp-shadow-sm: 0 1px 2px rgba(25, 23, 20, 0.06);
  --mp-shadow-md: 0 6px 20px rgba(25, 23, 20, 0.10);
  --mp-shadow-lg: 0 16px 40px rgba(25, 23, 20, 0.16);

  --mp-container: 1180px;
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }

body {
  background: var(--mp-color-bg);
  color: var(--mp-color-text);
  font-family: var(--mp-font-base);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mp-color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.mp-container {
  max-width: var(--mp-container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--mp-color-ink);
  color: var(--mp-color-bg);
  padding: 10px 16px;
  border-radius: var(--mp-radius-sm);
  z-index: 10000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 10px; }

/* ==========================================================================
   2. Reading progress bar
   ========================================================================== */
.mp-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--mp-color-accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   3. Masthead
   ========================================================================== */
.mp-utility-bar {
  background: var(--mp-color-ink);
  color: rgba(246, 243, 236, 0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.mp-utility-bar .mp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.mp-utility-bar .mp-container > span:first-child { flex: 0 0 auto; white-space: nowrap; }
.mp-utility-bar__tagline {
  font-style: italic;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-header {
  background: var(--mp-color-bg);
  border-bottom: 3px solid var(--mp-color-ink);
  position: sticky;
  top: 0;
  z-index: 500;
}

.mp-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 26px 20px 0;
}

.mp-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mp-branding img.custom-logo { max-height: 48px; width: auto; }

.mp-site-title {
  font-family: var(--mp-font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.1;
  text-align: center;
}
.mp-site-title a { color: var(--mp-color-ink); text-decoration: none; }
.mp-site-description {
  margin: 2px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mp-color-text-muted);
  text-align: center;
}

.mp-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--mp-color-border-strong);
  color: var(--mp-color-ink);
  border-radius: var(--mp-radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.mp-primary-nav {
  width: 100%;
  border-top: 1px solid var(--mp-color-border-strong);
  margin-top: 18px;
}
.mp-primary-nav ul {
  display: flex;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.mp-primary-nav a {
  display: block;
  color: var(--mp-color-text);
  padding: 13px 18px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mp-primary-nav a:hover,
.mp-primary-nav .current-menu-item > a {
  border-bottom-color: var(--mp-color-accent);
  color: var(--mp-color-accent-dark);
}

.mp-header-ad-bar {
  background: var(--mp-color-ad-bg);
  border-bottom: 1px solid var(--mp-color-ad-border);
}
.mp-header-ad-bar .mp-container { padding-top: 10px; padding-bottom: 10px; }

/* ==========================================================================
   4. Ad slots
   ========================================================================== */
.mp-ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 28px 0;
  text-align: center;
}
.mp-ad-slot__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mp-color-ad-text);
  text-transform: uppercase;
}
.mp-ad-slot--placeholder {
  padding: 22px 16px;
  width: 100%;
  background: var(--mp-color-ad-bg);
  border: 1px dashed var(--mp-color-ad-border);
}
.mp-ad-slot--placeholder .mp-ad-slot__label { text-transform: none; font-size: 12.5px; }

/* ==========================================================================
   5. Layout grid
   ========================================================================== */
.mp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 40px 0 70px;
  align-items: start;
}
.mp-layout--full { grid-template-columns: minmax(0, 1fr); }
.mp-main { min-width: 0; }

/* ==========================================================================
   5b. Hero (featured story)
   ========================================================================== */
.mp-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--mp-color-border-strong);
  margin-bottom: 36px;
}
.mp-hero__thumb { overflow: hidden; box-shadow: var(--mp-shadow-md); }
.mp-hero__thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1200 / 630; }
.mp-hero__body { display: flex; flex-direction: column; justify-content: center; }
.mp-hero__title {
  font-family: var(--mp-font-serif);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.35;
  margin: 10px 0 16px;
  font-weight: 700;
}
.mp-hero__title a { color: var(--mp-color-ink); }
.mp-hero__title a:hover { color: var(--mp-color-accent-dark); text-decoration: none; }
.mp-hero__excerpt { font-size: 15px; color: var(--mp-color-text-muted); line-height: 1.8; margin: 0 0 14px; }
.mp-hero__meta { font-size: 12.5px; color: var(--mp-color-text-muted); }

/* ==========================================================================
   6. Cards / post lists — flat editorial list style
   ========================================================================== */
.mp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0;
  border-top: 1px solid var(--mp-color-border);
  border-left: 1px solid var(--mp-color-border);
}

.mp-card {
  background: var(--mp-color-surface);
  border-right: 1px solid var(--mp-color-border);
  border-bottom: 1px solid var(--mp-color-border);
  display: flex;
  flex-direction: column;
}
.mp-card__thumb { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--mp-color-ad-bg); }
.mp-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.mp-card:hover .mp-card__thumb img { transform: scale(1.04); }
.mp-card__body { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }

.mp-kicker {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mp-color-accent-dark);
  text-transform: uppercase;
  position: relative;
  padding-left: 12px;
}
.mp-kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--mp-color-accent);
  transform: translateY(-50%);
}

.mp-card__cat { /* alias kept for compatibility, styled as kicker */
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mp-color-accent-dark);
  text-transform: uppercase;
}
.mp-card__title {
  font-family: var(--mp-font-serif);
  font-size: 18.5px;
  line-height: 1.5;
  margin: 0;
  font-weight: 700;
}
.mp-card__title a { color: var(--mp-color-ink); }
.mp-card__title a:hover { color: var(--mp-color-accent-dark); text-decoration: none; }
.mp-card__excerpt { font-size: 13.5px; color: var(--mp-color-text-muted); margin: 0; line-height: 1.75; }
.mp-card__meta { font-size: 11.5px; color: var(--mp-color-text-muted); margin-top: auto; padding-top: 8px; letter-spacing: 0.02em; }

.mp-section-title {
  font-family: var(--mp-font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mp-color-ink);
}

/* ==========================================================================
   7. Single post
   ========================================================================== */
.mp-breadcrumbs { font-size: 12.5px; color: var(--mp-color-text-muted); margin-bottom: 20px; }
.mp-breadcrumbs a { color: var(--mp-color-text-muted); }
.mp-breadcrumbs .sep { margin: 0 6px; }

.mp-article-header { margin-bottom: 24px; }
.mp-article-header .mp-kicker { margin-bottom: 14px; }
.mp-article-title {
  font-family: var(--mp-font-serif);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.5;
  margin: 0 0 16px;
  font-weight: 700;
}
.mp-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--mp-color-text-muted);
  border-top: 1px solid var(--mp-color-border);
  border-bottom: 1px solid var(--mp-color-border);
  padding: 12px 0;
}

.mp-article-thumb {
  margin: 24px 0 30px;
  overflow: hidden;
  box-shadow: var(--mp-shadow-md);
}

.mp-toc {
  background: var(--mp-color-surface);
  border: 1px solid var(--mp-color-ink);
  padding: 4px 22px 18px;
  margin: 0 0 34px;
}
.mp-toc summary {
  cursor: pointer;
  font-family: var(--mp-font-serif);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-toc summary::-webkit-details-marker { display: none; }
.mp-toc summary::before { content: "\2630"; color: var(--mp-color-accent); }
.mp-toc__list { margin: 4px 0 0; padding-left: 1.2em; font-size: 14px; }
.mp-toc__list li { margin-bottom: 7px; }
.mp-toc__list a { color: var(--mp-color-text); }
.mp-toc__list a:hover { color: var(--mp-color-accent-dark); }
.mp-toc__sub { list-style-type: "– "; margin-left: 1em; }

.mp-article-content { font-size: 17px; }
.mp-article-content h2 {
  font-family: var(--mp-font-serif);
  font-size: 26px;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--mp-color-ink);
  font-weight: 700;
}
.mp-article-content h3 {
  font-family: var(--mp-font-serif);
  font-size: 20px;
  margin: 34px 0 15px;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}
.mp-article-content h3::before {
  content: "";
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 4px;
  background: var(--mp-color-accent);
}
.mp-article-content p { margin: 0 0 1.4em; }
.mp-article-content ul, .mp-article-content ol { margin: 0 0 1.4em; }
.mp-article-content li { margin-bottom: 6px; }
.mp-article-content img, .mp-article-content figure { box-shadow: var(--mp-shadow-sm); }
.mp-article-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--mp-color-ad-bg);
  border-left: 4px solid var(--mp-color-accent);
  color: var(--mp-color-text-muted);
  font-style: italic;
}

/* CTA box (shortcode) */
.mp-cta {
  margin: 2.2em 0;
  padding: 30px;
  background: var(--mp-color-ink);
  color: var(--mp-color-bg);
  text-align: center;
}
.mp-cta__title { font-family: var(--mp-font-serif); font-size: 21px; font-weight: 700; margin: 0 0 10px; }
.mp-cta__body { font-size: 14.5px; color: rgba(246,243,236,0.75); margin-bottom: 18px; }
.mp-cta__body p:last-child { margin-bottom: 0; }
.mp-cta__button {
  display: inline-block;
  background: var(--mp-color-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 14px 40px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.mp-cta__button:hover { background: var(--mp-color-accent-dark); }

.mp-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 44px 0;
  padding: 22px;
  background: var(--mp-color-surface);
  border: 1px solid var(--mp-color-border);
}
.mp-author-box img { border-radius: 50%; }
.mp-author-box__name { font-weight: 700; margin: 0 0 4px; }
.mp-author-box__bio { font-size: 13.5px; color: var(--mp-color-text-muted); margin: 0; }

.mp-related {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--mp-color-border-strong);
}

.mp-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 44px;
}
.mp-pagination a, .mp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: var(--mp-color-surface);
  border: 1px solid var(--mp-color-border-strong);
  color: var(--mp-color-text);
  font-size: 13.5px;
  text-decoration: none;
}
.mp-pagination .current { background: var(--mp-color-ink); color: var(--mp-color-bg); border-color: var(--mp-color-ink); }
.mp-pagination a:hover { border-color: var(--mp-color-accent); color: var(--mp-color-accent-dark); }

/* ==========================================================================
   8. Sidebar
   ========================================================================== */
.mp-sidebar { display: flex; flex-direction: column; gap: 36px; }
.mp-widget {
  background: var(--mp-color-surface);
  border: 1px solid var(--mp-color-border);
  padding: 22px;
}
.mp-widget-title {
  font-family: var(--mp-font-serif);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mp-color-ink);
}
.mp-ranking-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mp-ranking-item { display: flex; gap: 12px; align-items: flex-start; }
.mp-ranking-rank {
  flex: 0 0 24px;
  height: 24px;
  background: var(--mp-color-ink);
  color: var(--mp-color-bg);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mp-font-serif);
}
.mp-ranking-item:nth-child(1) .mp-ranking-rank { background: var(--mp-color-accent); color: #fff; }
.mp-ranking-item:nth-child(2) .mp-ranking-rank { background: #8a8370; color: #fff; }
.mp-ranking-item:nth-child(3) .mp-ranking-rank { background: #ab8f63; color: #fff; }
.mp-ranking-title { font-size: 13.5px; line-height: 1.5; }
.mp-ranking-title a { color: var(--mp-color-text); }

.mp-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.mp-sidebar .widget li { padding: 8px 0; border-bottom: 1px dashed var(--mp-color-border); font-size: 13.5px; }
.mp-sidebar .widget li:last-child { border-bottom: none; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.mp-footer { background: var(--mp-color-ink); color: rgba(246,243,236,0.85); margin-top: 48px; }
.mp-footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding: 52px 0 30px;
}
.mp-footer-widgets .mp-widget-title { color: var(--mp-color-bg); border-bottom-color: rgba(246,243,236,0.3); }
.mp-footer-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.mp-footer-widgets .widget li { padding: 5px 0; font-size: 13.5px; }
.mp-footer-widgets a { color: rgba(246,243,236,0.7); }
.mp-footer-widgets a:hover { color: #fff; }
.mp-footer-nav {
  border-top: 1px solid rgba(246, 243, 236, 0.14);
  padding: 22px 0;
}
.mp-footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}
.mp-footer-nav__list li { margin: 0; }
.mp-footer-nav__list a {
  display: inline-block;
  padding: 6px 14px;
  color: rgba(246, 243, 236, 0.7);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid rgba(246, 243, 236, 0.2);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.mp-footer-nav__list a:hover {
  color: #fff;
  border-color: var(--mp-color-accent);
}

.mp-footer-bottom {
  border-top: 1px solid rgba(246,243,236,0.14);
  padding: 20px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(246,243,236,0.5);
}

/* ==========================================================================
   10. Misc pages
   ========================================================================== */
.mp-page-header { margin-bottom: 30px; }
.mp-page-title { font-family: var(--mp-font-serif); font-size: 28px; font-weight: 700; margin: 0 0 10px; }
.mp-archive-desc { color: var(--mp-color-text-muted); font-size: 14px; }
.mp-empty { padding: 70px 20px; text-align: center; color: var(--mp-color-text-muted); }

.mp-comments { margin-top: 44px; }
.mp-comments .comment-form input[type="text"],
.mp-comments .comment-form input[type="email"],
.mp-comments .comment-form input[type="url"],
.mp-comments .comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--mp-color-border-strong);
  font-family: inherit;
  margin-bottom: 12px;
  background: var(--mp-color-surface);
}
.mp-comments .comment-form input[type="submit"] {
  background: var(--mp-color-accent);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 12px 30px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.mp-comments .comment-form input[type="submit"]:hover { background: var(--mp-color-accent-dark); }
.mp-comments ol.comment-list { list-style: none; margin: 0; padding: 0; }
.mp-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--mp-color-border); }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .mp-layout { grid-template-columns: 1fr; }
  .mp-hero { grid-template-columns: 1fr; }
  .mp-nav-toggle { display: inline-flex; align-items: center; gap: 6px; position: absolute; right: 20px; top: 24px; z-index: 10; }
  .mp-header__inner { padding-left: 60px; padding-right: 60px; }
  .mp-primary-nav {
    display: none;
    border-top: none;
    margin-top: 10px;
  }
  .mp-primary-nav.is-open { display: block; }
  .mp-primary-nav ul { flex-direction: column; gap: 0; }
  .mp-primary-nav a { border-bottom: 1px solid var(--mp-color-border); border-left: 3px solid transparent; }
  .mp-primary-nav a:hover,
  .mp-primary-nav .current-menu-item > a { border-left-color: var(--mp-color-accent); border-bottom-color: var(--mp-color-border); }
  .mp-header__inner { position: relative; }
}

@media (max-width: 560px) {
  .mp-site-title { font-size: 22px; }
  .mp-utility-bar__tagline { display: none; }
  .mp-header__inner { padding-left: 52px; padding-right: 52px; }
  .mp-article-content { font-size: 16px; }
  .mp-cta { padding: 22px; }
}

/* ==========================================================================
   12. 広告・アフィリエイト表示 / お問い合わせフォーム
   ========================================================================== */
.mp-affiliate-disclosure {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mp-color-text-muted);
  background: var(--mp-color-ad-bg, #f1ede2);
  border: 1px solid var(--mp-color-border);
  border-radius: var(--mp-radius-sm);
  padding: 10px 14px;
  margin: 0 0 20px;
}
.mp-affiliate-disclosure a { color: var(--mp-color-text-muted); text-decoration: underline; }

.mp-pr-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--mp-color-accent-dark, var(--mp-color-accent));
  border-radius: 3px;
  padding: 2px 7px;
  vertical-align: middle;
  margin-right: 4px;
}

.mp-contact-form { max-width: 560px; margin-top: 24px; }
.mp-contact-form__row { margin-bottom: 20px; }
.mp-contact-form__row label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.mp-contact-form__required {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--mp-color-accent);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 4px;
}
.mp-contact-form input[type="text"],
.mp-contact-form input[type="email"],
.mp-contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--mp-color-border-strong);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-color-surface);
  box-sizing: border-box;
}
.mp-contact-form textarea { resize: vertical; }
.mp-contact-form__submit {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--mp-color-ink);
  border: none;
  border-radius: var(--mp-radius-sm);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mp-contact-form__submit:hover { background: var(--mp-color-accent-dark, var(--mp-color-accent)); }
.mp-contact-form__notice {
  padding: 12px 16px;
  border-radius: var(--mp-radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.mp-contact-form__notice--success { background: #e7f3e8; color: #2a6b35; border: 1px solid #bfe0c3; }
.mp-contact-form__notice--error { background: #fbe9e7; color: var(--mp-color-accent-dark, #b23a2e); border: 1px solid #f0c6c0; }

/* ==========================================================================
   13. SNSシェア / メルマガ登録 / 本文内関連リンク
   ========================================================================== */
.mp-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}
.mp-share__label {
  font-size: 12.5px;
  color: var(--mp-color-text-muted);
  margin-right: 2px;
}
.mp-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.mp-share__btn:hover { opacity: 0.85; }
.mp-share__btn--x { background: #000; }
.mp-share__btn--hatena { background: #00a4de; }

.mp-newsletter {
  background: var(--mp-color-ink);
  color: var(--mp-color-bg);
  border-radius: var(--mp-radius-md, 8px);
  padding: 28px 26px;
  margin: 28px 0;
}
.mp-newsletter__title { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.mp-newsletter__desc { font-size: 13.5px; opacity: 0.8; margin: 0 0 16px; }
.mp-newsletter__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mp-newsletter__form input[type="email"] {
  flex: 1 1 240px;
  font: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: none;
  border-radius: var(--mp-radius-sm);
}
.mp-newsletter__form button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--mp-color-ink);
  background: #fff;
  border: none;
  border-radius: var(--mp-radius-sm);
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mp-newsletter__form button:hover { background: var(--mp-color-accent); color: #fff; }
.mp-newsletter .mp-contact-form__notice { color: var(--mp-color-ink); }

.mp-inline-related {
  background: var(--mp-color-ad-bg, #f1ede2);
  border-left: 4px solid var(--mp-color-accent);
  border-radius: var(--mp-radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}
.mp-inline-related__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mp-color-accent-dark, var(--mp-color-accent));
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.mp-inline-related ul { list-style: none; margin: 0; padding: 0; }
.mp-inline-related li { margin: 4px 0; }
.mp-inline-related a { color: var(--mp-color-text); font-weight: 600; text-decoration: underline; }
.mp-inline-related a:hover { color: var(--mp-color-accent-dark, var(--mp-color-accent)); }
