/* WordPress の本文(投稿・固定ページ)を新デザインで読ませるための最小限のスタイル */
.mgj-content { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.mgj-content img { height: auto; }
.mgj-content a { text-decoration: underline; text-underline-offset: 3px; }
.mgj-content h2 { margin: 56px 0 20px; padding-bottom: 12px; border-bottom: 1px solid #222222; font-size: 20px; line-height: 1.6; }
.mgj-content h3 { margin: 40px 0 16px; padding-left: 12px; border-left: 3px solid #222222; font-size: 17px; line-height: 1.6; }
.mgj-content h4 { margin: 32px 0 12px; font-size: 15px; }
.mgj-content p { margin: 0 0 1.4em; }
.mgj-content ul, .mgj-content ol { padding-left: 1.4em; }
.mgj-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
@media (max-width: 600px) { .mgj-content table { display: block; overflow-x: auto; } } /* 幅の広い表はスマホで横スクロール */
.mgj-content th, .mgj-content td { border: 1px solid #EDEDED; padding: 12px 16px; text-align: left; vertical-align: top; }
.mgj-content th { background: #F7F8F8; white-space: nowrap; }
.mgj-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.mgj-content .alignleft { float: left; margin: 0 24px 16px 0; }
.mgj-content .alignright { float: right; margin: 0 0 16px 24px; }
.mgj-content iframe, .mgj-content video { max-width: 100%; }
/* Contact Form 7 */
.mgj-content .wpcf7 input[type="text"], .mgj-content .wpcf7 input[type="email"], .mgj-content .wpcf7 input[type="tel"],
.mgj-content .wpcf7 textarea, .mgj-content .wpcf7 select {
  width: 100%; padding: 12px 14px; border: 1px solid #CFCFCF; background: #FFFFFF; font: inherit; font-size: 16px;
}
.mgj-content .wpcf7 textarea { min-height: 200px; }
.mgj-content .wpcf7 input[type="submit"] {
  min-width: 240px; min-height: 52px; padding: 12px 32px; border: 0; background: #222222; color: #FFFFFF;
  font: inherit; font-weight: 700; cursor: pointer;
}
.mgj-content .wpcf7 input[type="submit"]:hover { background: #555555; }
.mgj-content .wpcf7-not-valid-tip { color: #B00020; font-size: 13px; }
/* ページ送り */
.mgj-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0 2px; border: 1px solid #EDEDED; font-size: 14px; }
.mgj-pager .page-numbers.current { background: #222222; border-color: #222222; color: #FFFFFF; }

/* ===== ヘッダー: PC は横並び、960px 以下は MENU ボタンで開閉 ===== */
.mgj-hd { position: relative; z-index: 50; }
.mgj-menu-btn { display: none; }
@media (max-width: 960px) {
  .mgj-hd { flex-wrap: nowrap !important; align-items: center !important; min-height: 64px; }
  .mgj-menu-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 64px; height: 64px; margin-left: auto; border: 0; background: #3C3C3C; color: #FFFFFF;
    font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; cursor: pointer;
  }
  .mgj-menu-icon, .mgj-menu-icon::before, .mgj-menu-icon::after {
    display: block; width: 22px; height: 2px; background: #FFFFFF; transition: transform .2s, background .2s;
  }
  .mgj-menu-icon { position: relative; }
  .mgj-menu-icon::before, .mgj-menu-icon::after { content: ""; position: absolute; left: 0; }
  .mgj-menu-icon::before { top: -7px; }
  .mgj-menu-icon::after { top: 7px; }
  .mgj-hd.is-open .mgj-menu-icon { background: transparent; }
  .mgj-hd.is-open .mgj-menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .mgj-hd.is-open .mgj-menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .mgj-hd-menu {
    display: none !important; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #FFFFFF; border-top: 1px solid #EDEDED; border-bottom: 1px solid #222222;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .mgj-hd.is-open .mgj-hd-menu { display: flex !important; }
  .mgj-hd-nav { flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 0 !important; font-size: 15px !important; }
  .mgj-hd-nav a {
    display: flex; align-items: center; justify-content: space-between; min-height: 56px;
    padding: 0 clamp(16px, 4vw, 24px) !important; border-bottom: 1px solid #EDEDED;
  }
  .mgj-hd-nav a::after { content: ""; width: 16px; height: 1px; background: currentColor; }
  .mgj-hd-shop { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .mgj-menu-icon, .mgj-menu-icon::before, .mgj-menu-icon::after { transition: none; }
}

/* ===== フォーム(Contact Form 7 の dl/dt/dd): PC は2列、スマホは縦積み ===== */
.mgj-content .wpcf7 dl { margin: 32px 0; border-top: 1px solid #EDEDED; }
.mgj-content .wpcf7 dt { padding: 20px 0 8px; font-weight: 700; font-size: 14px; }
.mgj-content .wpcf7 dd { margin: 0; padding: 0 0 20px; border-bottom: 1px solid #EDEDED; }
.mgj-content .wpcf7 .red { color: #B00020; }
.mgj-content .wpcf7 .wpcf7-list-item { margin: 0 24px 0 0; }
.mgj-content .wpcf7 .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.mgj-content .wpcf7 input[type="radio"], .mgj-content .wpcf7 input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.mgj-content .wpcf7 input[type="reset"] { min-height: 52px; padding: 12px 24px; border: 1px solid #CFCFCF; background: #FFFFFF; font: inherit; cursor: pointer; }
@media (min-width: 721px) {
  .mgj-content .wpcf7 dl { display: grid; grid-template-columns: 200px 1fr; }
  .mgj-content .wpcf7 dt { padding: 28px 16px 20px 0; border-bottom: 1px solid #EDEDED; }
  .mgj-content .wpcf7 dd { padding: 20px 0; }
}
@media (max-width: 720px) {
  .mgj-content .wpcf7 dd { border-bottom: 0; padding-bottom: 4px; }
  .mgj-content .wpcf7 dl { border-top: 0; }
  .mgj-content .wpcf7 input[type="submit"] { width: 100%; }
  .mgj-content .wpcf7 input[type="reset"] { width: 100%; margin-top: 12px; }
}
