@charset "UTF-8";
/* ============================================================
   mmn-wp.css — WordPress で表示するときだけ必要な調整
   デザイン納品CSS（mmn-top / mmn-list / mmn-faq / mmn-article）は変更せず、
   ここで WordPress 側の違い（管理バー・検索フォーム・記事本文など）だけを補う
   ============================================================ */

/* 検索欄：デザインでは div.search、WordPressでは送信できるよう form.search にしている */
form.search{margin:0}

/* 検索欄：入力履歴は出す（ブラウザの標準のまま）。
   履歴から選んだとき・候補にカーソルを合わせたときにブラウザが付ける青い背景だけを出さない */
form.search input:-webkit-autofill,
form.search input:-webkit-autofill:hover,
form.search input:-webkit-autofill:focus,
form.search input:-webkit-autofill:active{
  -webkit-box-shadow:0 0 0 1000px #fff inset;
  box-shadow:0 0 0 1000px #fff inset;
  -webkit-text-fill-color:#1F1C0E;
  caret-color:#1F1C0E;
  transition:background-color 600000s 0s,color 600000s 0s;
}
form.search input:autofill{background:#fff}

/* TOP のおすすめタブ：選択中のタブ以外の列は出さない */
.car-row[hidden]{display:none}

/* カテゴリ一覧タブ（カテゴリ一覧ページ自身では href なし） */
.ctab:not([href]){cursor:default}

/* 記事本文：WordPress のエディターで入る画像・埋め込みがはみ出さないように */
.mmn-article main .content img{max-width:100%;height:auto}
.mmn-article main .content iframe{max-width:100%}
.mmn-article main .content .wp-caption{max-width:100%}
.mmn-article main .content .aligncenter{display:block;margin-left:auto;margin-right:auto}

/* 目次：見出しが無い記事では目次の枠ごと隠す（JSで .is-empty を付ける） */
.toc.is-empty{display:none}

/* 検索結果の見出し：検索語も見出しと同じ色（デザインの .page-title のまま。色は付けない） */
.mmn-list .search-word{color:inherit}

/* 管理バー（ログイン中・ライブプレビュー）の分だけ、固定ヘッダーとカテゴリタブを下げる */
@media (min-width:783px){
  .admin-bar.mmn-page > header{top:32px}
  .admin-bar.mmn-page .cat-nav{top:90px}
}

/* 記事カードのサムネイル：WordPress のアイキャッチ（img）を枠いっぱいに縮小・トリミング
   （デザインは枠の背景画像で作られていて img の指定が無く、元の大きさのまま／引き伸ばされていた） */
.mmn-page .card-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.mmn-page .art-tag[hidden]{display:none}

/* 記事本文の中に入っている別の目次（Cocoon・目次プラグイン）は出さない。目次は本文の上の1つだけ */
.mmn-article main .content .toc,
.mmn-article main .content #toc_container,
.mmn-article main .content .ez-toc-container{display:none}

/* ハンバーガーメニュー：フォントの土台をデザインの body と同じに固定する
   （記事詳細では本文のブロック用に後から読み込まれる外部CSSが body・a などの指定を上書きすることがあるため） */
.mmn-page .mobile-drawer,
.mmn-page .mobile-drawer a,
.mmn-page .mobile-drawer button{font-family:'Noto Sans JP','Hiragino Sans',sans-serif;line-height:1;letter-spacing:0}
.mmn-page .mobile-drawer a{text-decoration:none}

/* 記事詳細：タグのホバーは背景色だけ変える（文字色はそのまま #1F1C0E） */
.mmn-article .t-tag:hover,
.mmn-article .side-tags a:hover{color:#1F1C0E}

/* 記事詳細：カテゴリラベル（.t-cat）はリンク。ホバーは TOP「目的別クイックガイド」（.qpill:nth-child(n):hover）と同じ
   ＝枠の色はそのまま、背景だけ枠と同系の薄い色にする（文字色は変えない） */
.mmn-article .t-cat{cursor:pointer;transition:background .15s}
.mmn-article .t-cat:hover{color:#1F1C0E}
.mmn-article .t-cat[data-cat="a"]:hover{background:#ECF8E2}  /* はじめに        ＝クイックガイド1番目 */
.mmn-article .t-cat[data-cat="b"]:hover{background:#E5EFF8}  /* 予約管理        ＝2番目 */
.mmn-article .t-cat[data-cat="c"]:hover{background:#D0F0E8}  /* 店舗ページ管理（12/1 ユーザー指定 #d0f0e8。TOPクイックガイドには店舗ページ管理の項目なし） */
.mmn-article .t-cat[data-cat="d"]:hover{background:#FFF2F2}  /* セラピスト管理  ＝4番目 */
.mmn-article .t-cat[data-cat="e"]:hover{background:#FBF5FF}  /* セラピストマイページ＝5番目 */
.mmn-article .t-cat[data-cat="f"]:hover{background:#F7F3DF}  /* ルーム・顧客管理＝6番目 */
.mmn-article .t-cat[data-cat="g"]:hover{background:#E6E6E6}  /* 困ったとき      ＝7番目 */

/* 記事詳細：サイドバー「同じカテゴリの記事」・目次 のホバー＝下線なし・文字色 #868686 */
.mmn-article .side-links a:hover,
.mmn-article .side-links a:hover span,
.mmn-article .toc-list a:hover{color:#868686;text-decoration:none}

/* ------------------------------------------------------------
   記事詳細：旧エディターで書いた本文を、デザインの間隔・見た目に合わせる
   （新しい形の本文は h2・h3 が .art-sec／.art-sub の中にあるので、
     ここの「.content > h2」などの指定は旧本文だけに効く）
   ※ 文字の大きさなどの直接指定・余白用の空の div は inc/mmn-design.php で表示時に外している
   ------------------------------------------------------------ */
/* 旧本文の直接指定（style="font-size:32px" など）に負けないよう、デザインの文字の大きさを !important で当てる
   （!important でないと、要素に直接書かれた style には勝てない） */
.mmn-article main .content > h2{font-size:20px!important;line-height:24px!important;font-weight:bold!important}
/* h3：11/30 指示「.content h3 は normal normal bold 16px/1 'Noto Sans JP',sans-serif」（デザインの 17px から変更・新しい本文にも適用） */
.mmn-article main .content h3{font:normal normal bold 16px/1 'Noto Sans JP',sans-serif}
.mmn-article main .content > h3{font-size:16px!important;line-height:1!important;font-weight:bold!important}
.mmn-article main .content > h4{font-size:14px!important;line-height:1.4!important;font-weight:bold!important}
.mmn-article main .content > p{font-size:14px!important;line-height:1.5!important}
/* 見出し・段落の中の span に直接書かれた文字の大きさ・太さは外して、見出し・段落の指定に合わせる
   （太字の <strong> とマーカーはそのまま） */
.mmn-article main .content > :is(h2,h3,h4,p,div,ul,ol) span[style]{font-size:inherit!important;line-height:inherit!important}
.mmn-article main .content > :is(h2,h3,h4) span[style]{font-weight:inherit!important}
.mmn-article main .content > p span[style*="font-weight: 400"],
.mmn-article main .content > p span[style*="font-weight:400"]{font-weight:inherit!important}
/* 余白用の空の div（style="margin-bottom: 3.6em;"）は出さない。間隔は下の指定で付ける */
.mmn-article main .content > div[style*="margin-bottom"]:not([class]):empty{display:none!important}
.mmn-article main .content > div[style*="margin-bottom"]:not([class]){margin-bottom:0!important}
/* 旧本文のリンクの直接の文字色（緑など）→ デザインのリンク色 */
.mmn-article main .content a[style]{color:#1A56A8!important}
@media (max-width:767px){
  .mmn-article main .content > h2{font-size:17px!important;line-height:23px!important}
  .mmn-article main .content h3{font-size:14px;line-height:1.3}
  .mmn-article main .content > h3{font-size:14px!important;line-height:1.3!important}
  .mmn-article main .content > h4{font-size:12px!important}
  .mmn-article main .content > p{font-size:12px!important;line-height:1.6!important}
}
/* h2 のまとまりとまとまりの間＝45px（デザイン .art-sec の間隔） */
.mmn-article main .content > h2:not(:first-child){margin-top:45px}
/* h3 のまとまりの間＝40px（デザイン .art-sub の間隔） */
.mmn-article main .content > h3:not(:first-child){margin-top:40px}
.mmn-article main .content > h2 + h3{margin-top:0}
/* h4（旧本文の小見出し）＝デザインの手順の見出し（.step dt）と同じ */
.mmn-article main .content > h4{margin:30px 0 12px;font:normal normal bold 14px/1.4 'Noto Sans JP',sans-serif;color:#1F1C0E}
.mmn-article main .content > h3 + h4,.mmn-article main .content > h2 + h4{margin-top:0}
/* 画像＝デザインの画像（.art-img）と同じ枠線。画像の段落の後は次の手順まで 30px（.step の間隔） */
.mmn-article main .content img[class*="size-"],
.mmn-article main .content img.alignnone{display:block;max-width:100%;height:auto;margin:0 0 10px;border:1px solid #9D9D9D}
.mmn-article main .content > p:has(> img){margin-bottom:30px}
.mmn-article main .content > p > img{margin-bottom:0}
/* 文章のすぐ下に画像が続く段落（改行だけで同じ段落になっている）は、文章と画像の間を 12px あける */
.mmn-article main .content > p > img:not(:first-child){margin-top:12px}
/* 動画（[video]）を本文の幅に収める */
.mmn-article main .content .wp-video{width:100%!important;max-width:100%;margin:0 0 15px}
.mmn-article main .content .wp-video video{max-width:100%;height:auto}
/* マーカー・太字（旧本文で使っているクラス） */
.mmn-article main .content .marker-under{background:linear-gradient(transparent 60%,#ff9 60%)}
.mmn-article main .content .marker-under-blue{background:linear-gradient(transparent 60%,#c0e4ff 60%)}
.mmn-article main .content .bold{font-weight:bold}
.mmn-article main .content hr{margin:30px 0;border:0;border-top:1px solid #CECECE}

/* 旧本文の Cocoon「情報ボックス」「グッドボックス」など（本文下の「〜はコチラ」）
   → デザインの .content-link（枠なし・中央寄せのテキストリンク）と同じ見た目 */
.mmn-article main .content :is(.information-box,.info-box,.good-box,.blank-box,.memo-box,.question-box,.ok-box,.ng-box,.bad-box,.common-icon-box){
  margin:0 0 15px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:center;color:#1F1C0E;font:normal normal 400 14px/1.5 'Noto Sans JP',sans-serif
}
/* 旧本文の「アラートボックス」→ デザインの注意（.caution：赤枠・赤字） */
.mmn-article main .content .alert-box{
  margin:0 0 20px;padding:14px 15px;border:1px solid #B52929;background:none;text-align:left;color:#B52929;font:normal normal 400 14px/17px 'Noto Sans JP',sans-serif
}
.mmn-article main .content .alert-box p{margin:0;color:#B52929;font:inherit}
.mmn-article main .content :is(.information-box,.info-box,.good-box,.alert-box,.blank-box,.memo-box,.question-box,.ok-box,.ng-box,.bad-box,.common-icon-box)::before,
.mmn-article main .content :is(.information-box,.info-box,.good-box,.alert-box,.blank-box,.memo-box,.question-box,.ok-box,.ng-box,.bad-box,.common-icon-box)::after{content:none;display:none}
.mmn-article main .content :is(.information-box,.info-box,.good-box,.common-icon-box) p{margin:0;text-align:center}
@media (max-width:767px){
  .mmn-article main .content > h4{font-size:12px}
  .mmn-article main .content :is(.information-box,.info-box,.good-box,.common-icon-box){font-size:12px}
  .mmn-article main .content .alert-box{padding:15px 10px 15px 15px;font-size:12px}
}

/* 横はみ出し防止：画面幅が 375px より狭いスマホ（ライブプレビューのモバイルは 320px）で
   TOP の見出し（幅 299px 固定）がはみ出して、ページ全体が横にずれていた */
.mmn-page{overflow-x:clip}
@media (max-width:374px){
  .mmn-top .hero-text h1,.mmn-top .hero-text p{width:auto;max-width:100%;height:auto}
  .mmn-top .hero-text h1{font-size:17px}
}

/* FAQ：質問がまだ1件も無いときの「準備中」表示 */
.mmn-faq .zero-state{text-align:center;padding:60px 20px}
.mmn-faq .zero-title{font-size:16px;font-weight:700;color:var(--primary);margin-bottom:8px}
.mmn-faq .zero-desc{font-size:13px;color:var(--sub)}

/* ------------------------------------------------------------
   記事詳細：キャラクターの掛け合い（.talk）
   デザインのCSS（mmn-article.css）はそのまま。ここは WP 用の差分だけ
   ・ショートコード [talk][tencho]…[/tencho][rin]…[/rin][/talk] で入れたもの
   ・旧本文の Cocoon 吹き出し（表示時に .talk に置き換え：inc/mmn-design.php）
   ------------------------------------------------------------ */
/* 本文のいちばん上に置いた掛け合い＝デザインの「導入の会話」（目次の下・下の余白 45px） */
.mmn-article main .content > .talk:first-child{margin-bottom:45px}
/* 旧本文の吹き出しは中に段落（p）があるので、段落の余白を消して改行と同じ見た目にする */
.mmn-article main .content .talk-bubble p{margin:0;font:inherit;color:inherit}
.mmn-article main .content .talk-bubble p + p{margin-top:.6em}
/* 旧本文のキャラ画像（Cocoon の人物アイコン）もデザインの大きさ 55px に収める */
.mmn-article main .content .talk-chara img{object-fit:contain;border:0;margin:0}
/* 本文の中では デザインの「.content p」（下の余白 15px・行の高さ 1.5）が吹き出しにも効いてしまうので、吹き出しの指定に戻す */
.mmn-article main .content p.talk-bubble{margin:0;font:normal normal 400 14px/20px 'Noto Sans JP',sans-serif;line-height:1.15}
@media (max-width:767px){
  .mmn-article main .content p.talk-bubble{font-size:12px;line-height:18px}
}

/* SP：カテゴリラベル（.t-cat）・サイドバーのタグ（.side-tags a）の文字を上下中央に（12/1 指摘）
   ・.side-tags a は flex でないため align-items:center が効いていなかった → inline-flex に
   ・文字の行の高さを 1 にして、本文の行の高さ（1.5〜1.7）を引き継がないようにする
   ・Noto Sans JP は字が枠の中で少し下に寄るので、下の余白を 2px 多くして字を 1px 上げる（上下の合計は元のまま） */
@media (max-width:767px){
  .mmn-article .t-cat{line-height:1}
  .mmn-article .t-cat span{display:block;line-height:1;padding-bottom:2px}
  .mmn-article .side-tags a{display:inline-flex;align-items:center;justify-content:center;line-height:1;padding:6px 9px 8px}
}

/* 旧本文の Cocoon 吹き出し（speech-wrap）は新デザインでは使わない（12/1 ユーザー判断）
   表示時に inc/mmn-design.php で外しているが、形が違って外れなかったものもここで隠す */
.mmn-article main .content .speech-wrap{display:none!important}

/* ------------------------------------------------------------
   記事詳細：見出しの装飾の色をカテゴリごとに変える（12/2 ユーザー依頼）
   デザインは全記事 #E0A2A2（セラピスト管理の色）。body の .mmn-cat-a〜f（inc/mmn-design.php）で切り替える
     --mmn-accent       … タイトル下の線・h2 左の縦棒（各カテゴリアイコンの色）
     --mmn-accent-light … h2 下の細線（デザインの #EFD0D0 と同じく、accent を白と半々に混ぜた色）
   カテゴリが判定できない記事は #9D9D9D（12/2 ユーザー指定）。困ったとき(g) のカテゴリに入る記事はないので指定しない
   ------------------------------------------------------------ */
.mmn-article{--mmn-accent:#9D9D9D;--mmn-accent-light:#CECECE}  /* カテゴリが判定できない記事 */
.mmn-article.mmn-cat-a{--mmn-accent:#B2D0AC;--mmn-accent-light:#D9E8D6}  /* はじめに */
.mmn-article.mmn-cat-b{--mmn-accent:#A1C2E3;--mmn-accent-light:#D0E0F1}  /* 予約管理 */
.mmn-article.mmn-cat-c{--mmn-accent:#92C5C7;--mmn-accent-light:#C9E2E3}  /* 店舗ページ管理 */
.mmn-article.mmn-cat-d{--mmn-accent:#E0A2A2;--mmn-accent-light:#EFD0D0}  /* セラピスト管理 */
.mmn-article.mmn-cat-e{--mmn-accent:#D0C1DB;--mmn-accent-light:#E8E0ED}  /* セラピストマイページ */
.mmn-article.mmn-cat-f{--mmn-accent:#DDDD92;--mmn-accent-light:#EEEEC9}  /* ルーム・顧客管理 */
.mmn-article .art-title{border-bottom-color:var(--mmn-accent)}
.mmn-article main .content h2{border-bottom-color:var(--mmn-accent-light)}
.mmn-article main .content h2::before{background:var(--mmn-accent)}

/* ------------------------------------------------------------
   記事詳細：タブレット（768〜1139px）（12/3 ユーザー依頼）
   SPと同じように、サイドナビを右に置かず、関連記事の下に置く
   並び：パンくず → 本文 → 関連記事 → タグ一覧 → 困ったときは
   ※ PCの2列（810＋40＋250＝1100px）に左右の余白が取れない幅までを対象にする
   ------------------------------------------------------------ */
@media (min-width:768px) and (max-width:1139px){
  .mmn-article .page-wrap{
    grid-template-columns:minmax(0,810px);
    justify-content:center;
    column-gap:0;
    max-width:none;
    padding-left:24px;
    padding-right:24px;
  }
  .mmn-article main{min-width:0}
  .mmn-article .related{grid-column:1;grid-row:3;min-width:0;margin-bottom:25px}
  .mmn-article .sidebar{display:flex;grid-column:1;grid-row:4}
  .mmn-article .side-box--samecat{display:none}  /* SPと同じく出さない */
  .mmn-article .side-box{padding:20px}
  .mmn-article .side-ttl{font-size:15px}
  .mmn-article .side-ttl::before{height:15px}
  .mmn-article .side-tags{gap:12px 10px;margin-top:14px}
  .mmn-article .side-tags a{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px 8px;border-radius:13px;line-height:1}
  .mmn-article .side-help{justify-content:center;position:relative}
  .mmn-article .side-help br{display:none}
  .mmn-article .side-help-arrow{position:absolute;right:12px;top:50%;margin-left:0;transform:translateY(-50%)}
  /* 吹き出し・動画：本文の幅に合わせる */
  .mmn-article .talk-bubble{flex:1;width:auto;min-width:0}
  .mmn-article .video-box{height:auto;aspect-ratio:16/9}
}

/* ------------------------------------------------------------
   タブレット（768〜1139px）：TOP・一覧・FAQ の左右の余白とはみ出し（12/3 ユーザー指摘）
   PCは中央の 1100px に収まる前提で左右の余白が 0 のため、狭い幅では画面の端に付いていた
   ------------------------------------------------------------ */
@media (min-width:768px) and (max-width:1139px){
  /* カテゴリ一覧・カテゴリ別一覧・タグ・検索・FAQ：パンくず・h1・中身の左右に余白 */
  .mmn-list .page-wrap,
  .mmn-faq .page-wrap{padding-left:24px;padding-right:24px}
  /* TOP：目的別クイックガイドの左右に余白（ほかの見出しと同じ 35px） */
  .mmn-top .qg-wrap{padding-left:35px;padding-right:35px}
  /* 記事一覧：3列で画面の幅に収める（PCは 264px×4列の固定で、右にはみ出していた） */
  .mmn-list .art-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mmn-list .art-grid .card{width:auto;height:auto;min-height:282px}
  .mmn-list .art-grid .card-thumb{width:100%;height:auto;aspect-ratio:264/165}
  /* ヘッダー下のカテゴリの帯：選択中の下線が、帯の外（右）にはみ出さないように */
  .mmn-page .cat-nav{overflow:clip}
}
