/* サンジョイント：WordPress で足した分（書き出し元＝生成スクリプト/build_wp_theme.py・手で直さない）
 * 見た目の正は assets/css/style.css（再現サイト＝Readdy の Tailwind をそのまま）。ここは WordPress と Contact Form 7 の部品の手当てと、再現サイトの mock.css */

/* Contact Form 7：欄を包む span を消して、欄を再現サイトと同じ並びに置く */
.wpcf7-form .wpcf7-form-control-wrap, .wpcf7-form .wpcf7-acceptance, .wpcf7-form .wpcf7-list-item { display: contents; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 .hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; }
.wpcf7-form > .hidden-fields-container + * { margin-top: 0 !important; }
.wpcf7-not-valid-tip { display: block; margin-top: .25rem; font-size: 12px; line-height: 1.5; color: #e2342d; }
.wpcf7-form .wpcf7-not-valid { border-color: #e2342d !important; }
.wpcf7-response-output { font-size: 13px; line-height: 1.6; color: #e2342d; text-align: center; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.sent .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output { display: none; }
.wpcf7-spinner { display: none; }
.wpcf7 form.submitting button[type="submit"] { opacity: .6; pointer-events: none; }

/* ログインしている時だけ出る管理バーの下に、固定のヘッダーを出す */
.admin-bar header[data-header] { margin-top: 32px; }
@media (max-width: 782px) { .admin-bar header[data-header] { margin-top: 46px; } }

/* お知らせの本文（管理画面のブロックエディタで書いた文） */
.news-body h2 { font-size: 1.125rem; line-height: 1.6; font-weight: 700; color: #111827; margin-top: 2rem; }
.news-body h3 { font-size: 1rem; line-height: 1.6; font-weight: 700; color: #111827; margin-top: 1.5rem; }
@media (min-width: 768px) { .news-body h2 { font-size: 1.25rem; } .news-body h3 { font-size: 1.0625rem; } }
.news-body ul { list-style: disc; padding-left: 1.25rem; color: #4b5563; }
.news-body ol { list-style: decimal; padding-left: 1.25rem; color: #4b5563; }
.news-body li + li { margin-top: .5rem; }
.news-body a { color: #e2342d; text-decoration: underline; text-underline-offset: 2px; }
.news-body table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.news-body th, .news-body td { border: 1px solid #e5e7eb; padding: .5rem .75rem; text-align: left; }
.news-body th { background: #f9fafb; font-weight: 700; }
.news-body figure.wp-block-table { overflow-x: auto; }
.news-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.news-body .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 2rem; border-radius: 9999px; background: #e2342d; color: #fff; font-weight: 700; text-decoration: none; }
.news-body .wp-block-button__link:hover { background: rgba(226, 52, 45, .9); }

/* 管理画面で足した固定ページ（page.php）の本文 */
.sj-content { color: #374151; font-size: .9375rem; line-height: 1.9; }
.sj-content > * + * { margin-top: 1.25em; }
.sj-content h2 { color: #111827; font-weight: 700; font-size: 1.25rem; margin-top: 2em; }
.sj-content h3 { color: #111827; font-weight: 700; font-size: 1.0625rem; margin-top: 1.6em; }
.sj-content a { color: #e2342d; text-decoration: underline; text-underline-offset: 2px; }
.sj-content ul { list-style: disc; padding-left: 1.5em; }
.sj-content ol { list-style: decimal; padding-left: 1.5em; }
.sj-content img { max-width: 100%; height: auto; }

/* ===== 再現サイトの mock.css（書き出し元＝生成スクリプト/再現サイト/mock.css） ===== */
/* 再現サイトの補い（style.css＝Readdy の Tailwind をそのまま使い、足りない所だけここに書く） */

/* React の「出し入れ」を HTML の hidden 属性で持っているため、flex や grid のクラスが付いた要素でも必ず隠す */
[hidden] { display: none !important; }

/* お知らせの本文（今のサイトから移した HTML）。Tailwind の初期化で余白が消えるので、写真の下だけ足す */
.news-body figure { margin: 0; }
.news-body img { max-width: 100%; height: auto; }

/* 「Φ」（Φ6・Φ200 など）は Google Fonts の Noto Sans JP の分け方に入っていない（10/16 調べ・911種類の文字のうちこれだけ）
   → OS のフォント（Mac はヒラギノ・Windows は游ゴシックなど）で出て形がそろわない。
   同じ Noto Sans JP から Φ だけを取り出したファイル（1.4KB・SIL OFL）を手元に置き、Φ だけこれで出す（10/16 本人「1・2 で」）。
   Chrome は太さの指定がまったく同じ組の中でしか文字を探さない（「100 900」と幅で書くと Google の 400 の組と別扱いで読まれなかった）
   → Google と同じく 400・500・700 の3つに分けて書く（ファイルは1つ・太さを変えられる形式＝Google も3つとも同じファイル） */
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-jp-phi.woff2) format('woff2'); unicode-range: U+03A6; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/noto-sans-jp-phi.woff2) format('woff2'); unicode-range: U+03A6; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-jp-phi.woff2) format('woff2'); unicode-range: U+03A6; }

/* 横にはみ出す表の上の案内（site.js が、はみ出す時だけ出す・FB 10/21 No.8・16） */
.sj-scroll-hint { margin: 1rem 0 0; font-size: .75rem; line-height: 1.6; color: #6b7280; }
/* 角丸の枠の中で表の真上に出す時（製品の表・設備の表）：枠の端に付けず、表の最初の欄と同じ内側の余白を site.js が写す＝左は表の文字とそろい・上と下は同じ（AUN 10/22 No.2）。枠の外（Q&A の送料の表）は上を下（表の mt-4＝16px）と同じに（AUN 10/22 No.1） */
.sj-scroll-hint--in { margin: 0; padding: .75rem 1rem; }
@media (max-width: 767px) { .sj-scroll-hint:not(.sj-scroll-hint--in) { margin-top: .875rem; } } /* スマホは上の文が 14px（text-sm）で行の下の空きが小さい → 上を 2px 詰めると上下が同じ */
