/* ヤマシチ 下層ページ（ヤマシチについて・質預り・買取・取扱品目・よくある質問・アクセス・ブログなど）
   トップと同じ「紙の看板と森」の見た目。ページの文章・ブロックはそのままで、見た目だけを上書きする。
   トップ（.ymst-page）には効かない。 */
body.ymsf:not(.ymst-page){
  --yp-ink:#1f1c19; --yp-paper:#fffdf7; --yp-cream:#fbf3e3; --yp-orange:#ff7f00; --yp-orange-deep:#e2660a;
  --yp-leaf:#2f8f3e; --yp-leaf-soft:#e4f1d4; --yp-red:#e03a2f; --yp-yellow:#ffc93c; --yp-muted:#5d5750;
  --yp-round:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Noto Sans JP",system-ui,sans-serif;
}
body.ymsf:not(.ymst-page) .l-contents{background:var(--yp-cream);color:var(--yp-ink)}

/* 「本文の幅いっぱい」のページ（ランディングページ型）で、セクションの外に置かれた文章や見出しが画面の端に付かないように */
body.ymsf.l-body--blank-content .c-entry__content > :is(h2,h3,h4,p,ul,ol,.wp-block-image,.wp-block-table,.smb-accordion,.wpco-wrapper,.wp-block-buttons){
  max-width:min(1080px,calc(100% - 2 * max(16px,env(safe-area-inset-left,0px))));margin-left:auto;margin-right:auto}

/* ---------- 見出しの看板（各セクションのタイトル） ---------- */
body.ymsf:not(.ymst-page) .smb-section__header{display:flex;flex-direction:column;align-items:center;gap:8px;position:static}
body.ymsf:not(.ymst-page) .smb-section__title{display:inline-block;position:relative;margin:0;font-family:var(--yp-round);font-weight:900;
  font-size:clamp(22px,3vw,30px);letter-spacing:.06em;line-height:1.4;color:var(--yp-ink);background:var(--yp-paper);
  border:3px solid var(--yp-ink);border-radius:10px;padding:.35em 1.1em;box-shadow:4px 5px 0 rgba(0,0,0,.15);text-wrap:balance}
body.ymsf:not(.ymst-page) .smb-section__title::before,body.ymsf:not(.ymst-page) .smb-section__title::after{content:none}
body.ymsf:not(.ymst-page) .smb-section__subtitle{position:static;transform:none;order:2;font-family:var(--yp-round);font-weight:700;
  font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--yp-orange-deep);margin:0}

/* 色付きの帯（波のセクション）は、トップと同じ若葉色に */
body.ymsf:not(.ymst-page) .smb-section[style*="--smb-section--background-color"]{--smb-section--background-color:var(--yp-leaf-soft)!important}
body.ymsf:not(.ymst-page) .smb-section__divider path{fill:var(--yp-cream)}

/* ---------- 本文の見出し ---------- */
body.ymsf:not(.ymst-page) .c-entry__content h2.wp-block-heading{font-family:var(--yp-round);font-weight:900;color:var(--yp-ink);
  background:var(--yp-paper);border:3px solid var(--yp-ink);border-radius:10px;padding:.45em .9em;box-shadow:3px 4px 0 rgba(0,0,0,.12);
  display:flex;align-items:center;gap:.55em;line-height:1.45}
body.ymsf:not(.ymst-page) .c-entry__content h2.wp-block-heading.has-text-align-center{justify-content:center}
body.ymsf:not(.ymst-page) .c-entry__content h2.wp-block-heading::before{content:"";position:static;width:14px;height:14px;flex:none;
  border-radius:50%;background:var(--yp-orange);border:2.5px solid var(--yp-ink);transform:none}
body.ymsf:not(.ymst-page) .c-entry__content h2.wp-block-heading::after{content:none}
body.ymsf:not(.ymst-page) .c-entry__content h3.wp-block-heading{font-family:var(--yp-round);font-weight:700;color:var(--yp-ink);
  border:0;border-bottom:2.5px dashed rgba(31,28,25,.3);padding:0 0 .35em;background:none}
body.ymsf:not(.ymst-page) .c-entry__content h3.wp-block-heading::before,body.ymsf:not(.ymst-page) .c-entry__content h3.wp-block-heading::after{content:none}
body.ymsf:not(.ymst-page) .smb-media-text__title{font-family:var(--yp-round);font-weight:900}

/* ---------- 枠の箱 → 白い紙のカード ---------- */
body.ymsf:not(.ymst-page) .smb-box{--smb-box--border-width:0px}
body.ymsf:not(.ymst-page) .smb-box__background{background:var(--yp-paper)!important;border:3px solid var(--yp-ink)!important;border-radius:12px!important;
  box-shadow:0 0 0 5px #fff,0 0 0 8px var(--yp-ink),5px 8px 0 8px rgba(0,0,0,.1);opacity:1!important}
body.ymsf:not(.ymst-page) .wp-block-columns:has(> .wp-block-column > .smb-box){gap:clamp(22px,3vw,34px)}

/* 点線の区切り */
body.ymsf:not(.ymst-page) .c-entry__content hr.wp-block-separator{border:0;border-top:4px dotted var(--yp-orange);opacity:1;background:none}

/* ---------- 写真 → 貼った写真プリント、リンクの画像 → 画びょうで留めた札 ---------- */
body.ymsf:not(.ymst-page) .c-entry__content .wp-block-image img,
body.ymsf:not(.ymst-page) .smb-media-text__figure img{background:#fff;padding:6px;border:2.5px solid var(--yp-ink);border-radius:6px;
  box-shadow:4px 6px 0 rgba(0,0,0,.16)}
body.ymsf:not(.ymst-page) .smb-media-text:nth-of-type(odd) .smb-media-text__figure img,
body.ymsf:not(.ymst-page) .wp-block-column:nth-child(odd) > .wp-block-image:not(:has(a)) img{rotate:-1deg}
body.ymsf:not(.ymst-page) .smb-media-text:nth-of-type(even) .smb-media-text__figure img,
body.ymsf:not(.ymst-page) .wp-block-column:nth-child(even) > .wp-block-image:not(:has(a)) img{rotate:1deg}
body.ymsf:not(.ymst-page) .c-entry__content .wp-block-image a{position:relative;display:inline-block;transition:transform .15s}
body.ymsf:not(.ymst-page) .c-entry__content .wp-block-image a:hover{transform:translateY(-3px) rotate(.6deg)}
body.ymsf:not(.ymst-page) .c-entry__content .wp-block-image a::before{content:"";position:absolute;left:50%;top:-9px;width:18px;height:18px;margin-left:-9px;
  border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff7 0 18%,transparent 20%),var(--yp-red);border:2.5px solid var(--yp-ink);z-index:1}

/* ---------- よくある質問（開け閉めするもの） ---------- */
body.ymsf:not(.ymst-page) .smb-accordion__item__title{background:var(--yp-paper)!important;color:var(--yp-ink)!important;border:3px solid var(--yp-ink);
  border-radius:10px;font-family:var(--yp-round);font-weight:700;box-shadow:3px 4px 0 rgba(0,0,0,.12)}
body.ymsf:not(.ymst-page) .smb-accordion__item__body{background:#fff;border:3px solid var(--yp-ink);border-top:0;border-radius:0 0 10px 10px;margin-top:-6px;padding-top:calc(var(--_padding1,1.5rem) + 6px)}

/* 目次 → 白い紙（目次の中身は .wpco。外側の .smb-contents-outline は空のまま残るので触らない） */
body.ymsf:not(.ymst-page) .wpco{background:var(--yp-paper)!important;border:3px solid var(--yp-ink);border-radius:12px;
  box-shadow:0 0 0 5px #fff,0 0 0 8px var(--yp-ink),5px 8px 0 8px rgba(0,0,0,.1);padding:20px 24px!important}
body.ymsf:not(.ymst-page) .wpco__title{font-family:var(--yp-round);font-weight:900}

/* ---------- ブログ（一覧） ---------- */
body.ymsf:not(.ymst-page) .c-entry__header .c-entry__title{display:inline-block;font-family:var(--yp-round);font-weight:900;background:var(--yp-paper);
  border:3px solid var(--yp-ink);border-radius:10px;padding:.3em 1em;box-shadow:4px 5px 0 rgba(0,0,0,.15)}
body.ymsf:not(.ymst-page) .c-entries--rich-media .c-entries__item > a{display:block;height:100%;text-decoration:none;color:var(--yp-ink);
  background:var(--yp-paper);border:3px solid var(--yp-ink);border-radius:10px;overflow:hidden;box-shadow:4px 6px 0 rgba(0,0,0,.14);transition:transform .15s}
body.ymsf:not(.ymst-page) .c-entries--rich-media .c-entries__item > a:hover{transform:translateY(-3px) rotate(-.4deg)}
body.ymsf:not(.ymst-page) .c-entries--rich-media .c-entry-summary__figure{border-bottom:3px solid var(--yp-ink);margin:0}
body.ymsf:not(.ymst-page) .c-entries--rich-media .c-entry-summary__body{padding:14px 16px 16px}
body.ymsf:not(.ymst-page) .c-entries--rich-media .c-entry-summary__title{font-family:var(--yp-round);font-weight:900}
body.ymsf:not(.ymst-page) .c-entry-summary__term{background:var(--yp-leaf);color:#fff;border:2px solid var(--yp-ink);border-radius:999px;
  font-family:var(--yp-round);font-weight:700;top:10px;right:10px;padding:2px 12px}
body.ymsf:not(.ymst-page) .c-pagination .page-numbers{border:2.5px solid var(--yp-ink);border-radius:999px;background:var(--yp-paper);color:var(--yp-ink);font-weight:700}
body.ymsf:not(.ymst-page) .c-pagination .page-numbers.current{background:var(--yp-orange)}

/* ブログの記事ページの見出し */
body.ymsf.single-post .c-entry__header .c-entry__title{display:block}

/* 色の付いた大きな見出しの帯（取扱品目のいちばん上など）：オレンジ一面 → 若葉色の帯、見出しは紙の看板 */
body.ymsf:not(.ymst-page) .smb-section[style*="--smb-section--fixed-background-color"]{--smb-section--fixed-background-color:var(--yp-leaf-soft)!important;
  border-block:3px solid var(--yp-ink)}
body.ymsf:not(.ymst-page) .smb-section__title .sme-text-color{color:inherit!important}
body.ymsf:not(.ymst-page) .smb-section__title .sme-font-size{font-size:inherit!important}
body.ymsf:not(.ymst-page) .smb-section__lede{font-family:var(--yp-round);color:var(--yp-ink)}
@media (max-width:639px){
  body.ymsf:not(.ymst-page) .c-entries--rich-media .c-entries__item{flex:0 0 100%;max-width:100%}
}

/* ======================================================================
   質預り・買取ページの「早わかり」部品（ブロック編集画面で作る普通のブロックに、
   「追加 CSS クラス」で ym-… を付けて見た目を変える。文章は編集画面でそのまま直せる）
   ====================================================================== */
body.ymsf .ym-card{background:var(--yp-paper);border:3px solid var(--yp-ink);border-radius:12px;padding:clamp(16px,3vw,28px);
  box-shadow:5px 7px 0 rgba(0,0,0,.1);max-width:min(980px,100%);margin-left:auto;margin-right:auto}
body.ymsf .ym-card > :first-child{margin-top:0}
body.ymsf .ym-card > :last-child{margin-bottom:0}

/* 1・2・3 の3行 */
body.ymsf ol.ym-three{list-style:none;margin:0;padding:0;display:grid;gap:14px;counter-reset:ym3}
body.ymsf ol.ym-three > li{counter-increment:ym3;display:grid;grid-template-columns:44px 1fr;column-gap:12px;align-items:center;
  font-size:14px;line-height:1.6;color:var(--yp-muted);margin:0}
body.ymsf ol.ym-three > li::before{content:counter(ym3);grid-row:span 2;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;
  border:3px solid var(--yp-ink);background:var(--yp-orange);color:var(--yp-ink);font:900 20px/1 var(--yp-round)}
body.ymsf ol.ym-three > li:nth-child(2)::before{background:var(--yp-leaf-soft)}
body.ymsf ol.ym-three > li:nth-child(3)::before{background:#fff}
body.ymsf ol.ym-three > li strong{display:block;font:700 clamp(16px,2vw,19px)/1.6 var(--yp-round);color:var(--yp-ink)}

/* 覚えていただくルール（1つだけ） */
body.ymsf p.ym-rule{margin:18px 0 0;font:700 clamp(17px,2.2vw,20px)/1.6 var(--yp-round);background:#fff;border:3px solid var(--yp-ink);
  border-radius:10px 10px 0 0;padding:12px 16px 4px}
body.ymsf p.ym-rule strong{background:linear-gradient(transparent 58%,#ffc98a 58%)}
body.ymsf p.ym-rule-note{margin:0;background:#fff;border:3px solid var(--yp-ink);border-top:0;border-radius:0 0 10px 10px;padding:0 16px 12px;
  font-size:14px;color:var(--yp-muted)}
body.ymsf p.ym-label{margin:16px 0 6px;font:700 15px/1.5 var(--yp-round)}

/* 丸い札の並び（持ち物・本人確認書類・約束ごと） */
body.ymsf ul.ym-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 10px}
body.ymsf ul.ym-chips > li{margin:0;background:#fff;border:2.5px solid var(--yp-ink);border-radius:999px;padding:4px 14px;font:700 14px/1.6 var(--yp-round)}
body.ymsf ul.ym-chips.ym-last-no > li:last-child{background:#fde8e6}

/* 質料が溜まるとどうなる？ */
body.ymsf ol.ym-meter{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;counter-reset:ymm}
body.ymsf ol.ym-meter > li{counter-increment:ymm;margin:0;text-align:center;background:#fff;border:2.5px solid var(--yp-ink);border-radius:10px;
  padding:12px 6px;font-size:13px;line-height:1.5;color:var(--yp-muted)}
body.ymsf ol.ym-meter > li::before{content:counter(ymm);display:grid;place-items:center;width:40px;height:40px;margin:0 auto 6px;border-radius:50%;
  border:2.5px solid var(--yp-ink);background:var(--yp-leaf-soft);color:var(--yp-ink);font:900 17px/1 var(--yp-round)}
body.ymsf ol.ym-meter > li:nth-child(2)::before{background:#fff2b8}
body.ymsf ol.ym-meter > li:nth-child(3)::before{background:#ffd29a}
body.ymsf ol.ym-meter > li:last-child{background:#fde8e6;color:var(--yp-red);font-weight:700}
body.ymsf ol.ym-meter > li:last-child::before{content:"！";background:var(--yp-red);color:#fff}
body.ymsf ol.ym-meter > li strong{display:block;font:900 15px/1.4 var(--yp-round);color:var(--yp-ink)}
@media (max-width:560px){body.ymsf ol.ym-meter{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.ymsf p.ym-after{margin:14px 0 0;font-weight:700}

/* お預けのあとは、ご自由に（3枚のカード） */
body.ymsf .wp-block-columns.ym-choices{gap:18px;max-width:min(1080px,100%);margin-left:auto;margin-right:auto}
body.ymsf .ym-choices > .wp-block-column{background:var(--yp-paper);border:3px solid var(--yp-ink);border-radius:12px;padding:16px;
  box-shadow:4px 6px 0 rgba(0,0,0,.12);display:flex;flex-direction:column;gap:8px}
body.ymsf .ym-choices > .wp-block-column > *{margin:0}
body.ymsf .ym-choices h3.wp-block-heading{font:900 18px/1.4 var(--yp-round);border:0;padding:0;margin:0}
body.ymsf .ym-choices p.ym-pay{background:#fff;border:2px solid var(--yp-ink);border-radius:8px;padding:6px 10px;font:700 14px/1.6 var(--yp-round)}
body.ymsf .ym-choices p.ym-pay strong{color:var(--yp-orange-deep)}
body.ymsf .ym-choices p{font-size:14px}
body.ymsf p.ym-appeal{background:#fff2b8;border:2px dashed var(--yp-ink);border-radius:8px;padding:6px 10px;font-size:13px}

/* 買取と質預りの比べる表 */
body.ymsf figure.ym-compare{max-width:min(980px,100%);margin-left:auto;margin-right:auto}
body.ymsf figure.ym-compare table{border-collapse:separate;border-spacing:0;background:var(--yp-paper);border:3px solid var(--yp-ink);border-radius:12px;
  overflow:hidden;box-shadow:5px 7px 0 rgba(0,0,0,.1);width:100%}
body.ymsf figure.ym-compare th,body.ymsf figure.ym-compare td{border:0;border-bottom:2px dashed rgba(31,28,25,.25);padding:12px 14px;text-align:left;vertical-align:top}
body.ymsf figure.ym-compare tr:last-child > *{border-bottom:0}
body.ymsf figure.ym-compare thead th{font:900 18px/1.4 var(--yp-round);border-bottom:3px solid var(--yp-ink)}
body.ymsf figure.ym-compare thead th:nth-child(2){background:#ffe3c2}
body.ymsf figure.ym-compare thead th:nth-child(3){background:var(--yp-leaf-soft)}
body.ymsf figure.ym-compare tbody td:first-child{font:700 14px/1.6 var(--yp-round);color:var(--yp-muted);white-space:nowrap;width:1%}
@media (max-width:560px){body.ymsf figure.ym-compare th,body.ymsf figure.ym-compare td{padding:10px 8px;font-size:14px}
  body.ymsf figure.ym-compare tbody td:first-child{white-space:normal}}

/* 買取の3ステップ */
body.ymsf ol.ym-steps{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;counter-reset:yms;max-width:min(1080px,100%)}
body.ymsf ol.ym-steps > li{counter-increment:yms;margin:0;background:var(--yp-paper);border:3px solid var(--yp-ink);border-radius:12px;padding:14px;
  box-shadow:4px 6px 0 rgba(0,0,0,.12);font-size:14px;line-height:1.7}
body.ymsf ol.ym-steps > li::before{content:counter(yms);display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--yp-orange);
  border:3px solid var(--yp-ink);font:900 18px/1 var(--yp-round);margin-bottom:6px}
body.ymsf ol.ym-steps > li strong{display:block;font:900 17px/1.4 var(--yp-round)}
@media (max-width:760px){body.ymsf ol.ym-steps{grid-template-columns:minmax(0,1fr)}}

/* 詳しいルール（押すと開く） */
body.ymsf details.ym-rules{background:var(--yp-paper);border:3px solid var(--yp-ink);border-radius:10px;max-width:min(1080px,100%);margin:0 auto 10px}
body.ymsf details.ym-rules > summary{cursor:pointer;padding:12px 16px;font:700 16px/1.5 var(--yp-round);list-style:none;display:flex;justify-content:space-between;gap:10px}
body.ymsf details.ym-rules > summary::-webkit-details-marker{display:none}
body.ymsf details.ym-rules > summary::after{content:"＋";font-weight:900}
body.ymsf details.ym-rules[open] > summary::after{content:"－"}
body.ymsf details.ym-rules > :not(summary){padding-left:16px;padding-right:16px}
body.ymsf details.ym-rules > :last-child{padding-bottom:14px}
body.ymsf figure.ym-compare thead,body.ymsf figure.ym-compare thead tr{background:none;color:var(--yp-ink)}
body.ymsf figure.ym-compare thead th{color:var(--yp-ink)}
body.ymsf figure.ym-compare thead th:first-child{background:var(--yp-paper)}
body.ymsf .ym-choices h3.wp-block-heading{border-bottom:0}
body.ymsf ol.ym-steps + ul.ym-chips{margin:18px auto 0;justify-content:center;max-width:min(1080px,100%)}
