/*
Theme Name: Skillcraft Clean
Theme URI: https://skill-c.jp/
Author: Tom'sWorkers
Description: Independent classic WordPress theme: preserves published Skillcraft blocks and the existing NEWS plugin, without Twenty Fourteen markup.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: skillcraft-clean
*/

/* The published 20 fixed pages own their approved inline CSS.
   Keep the theme's global page reset to the minimum necessary body edge reset.
   The NEWS plugin supplies a separate document/body class and its own CSS. */
body.sc-clean-site { margin: 0; }

/* Scoped route design for search, archives, 404, posts index and generic singular. */
.sc-clean-screen {
  --sc-route-paper: #fcfcfa;
  --sc-route-text: #263b48;
  --sc-route-muted: #627786;
  --sc-route-line: #dbe3e6;
  --sc-route-serif: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  width: min(1100px, calc(100% - 48px));
  max-width: 100%;
  min-height: 55vh;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 105px) 0 108px;
  background: var(--sc-route-paper);
  color: var(--sc-route-text);
  font-family: var(--sc-route-serif);
  font-size: 16px;
  line-height: 1.9;
}
.sc-clean-screen, .sc-clean-screen *, .sc-clean-screen *::before, .sc-clean-screen *::after { box-sizing: border-box; }
.sc-clean-screen__eyebrow { margin: 0 0 16px; font: 400 12px/1.5 Arial, sans-serif; letter-spacing: .2em; color: #708795; }
.sc-clean-screen__title { margin: 0 0 32px; font-size: clamp(28px, 4vw, 44px); font-weight: 500; line-height: 1.5; letter-spacing: .04em; overflow-wrap: anywhere; }
.sc-clean-screen__lead { margin: 0 0 30px; color: var(--sc-route-muted); overflow-wrap: anywhere; }
.sc-clean-screen__content { max-width: 920px; margin: 0 auto; overflow-wrap: anywhere; }
.sc-clean-screen__content img, .sc-clean-screen__content iframe, .sc-clean-screen__content video { max-width: 100%; height: auto; }
.sc-clean-card-list { list-style: none; margin: 30px 0; padding: 0; border-top: 1px solid var(--sc-route-line); }
.sc-clean-card { margin: 0; border-bottom: 1px solid var(--sc-route-line); padding: 26px 0 29px; }
.sc-clean-card__meta { margin: 0 0 9px; font: 400 13px/1.7 Arial, sans-serif; color: var(--sc-route-muted); letter-spacing: .06em; }
.sc-clean-card__title { margin: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.sc-clean-card__title a { color: inherit; text-decoration: none; }
.sc-clean-card__title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.sc-clean-pagination { margin-top: 36px; }
.sc-clean-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.sc-clean-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 6px 11px; border: 1px solid var(--sc-route-line); color: var(--sc-route-text); text-decoration: none; }
.sc-clean-pagination .page-numbers.current { background: var(--sc-route-text); color: #fff; }
.sc-clean-pagination a.page-numbers:hover { background: #edf1f3; }
.sc-clean-action { display: inline-flex; align-items: center; min-height: 48px; border: 1px solid #8b9fab; padding: 11px 25px; text-decoration: none; color: var(--sc-route-text); }
.sc-clean-action:hover { background: #eef3f5; }
.sc-clean-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.sc-clean-search label { display: block; flex: 1 1 250px; }
.sc-clean-search input[type='search'] { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--sc-route-line); background: #fff; color: var(--sc-route-text); font: inherit; }
.sc-clean-search button { min-height: 48px; padding: 10px 25px; border: 1px solid var(--sc-route-text); background: var(--sc-route-text); color: #fff; cursor: pointer; font: inherit; }
.sc-clean-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.sc-clean-screen :focus-visible, .sc-clean-news-route :focus-visible { outline: 2px solid #315c78; outline-offset: 3px; }

/* Fallback singles only. Normal NEWS plugin route uses body.sc-news-single and
   the plugin's own assets/single.css, not the rules below. */
body.sc-clean-news-fallback {
  background: #fcfcfa;
  color: #273843;
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  line-height: 1.9;
}
body.sc-clean-news-fallback .sc-news-main { width: 100%; max-width: none; min-width: 0; background: #fcfcfa; margin: 0; padding: 0; }
body.sc-clean-news-fallback .sc-news-main, body.sc-clean-news-fallback .sc-news-main *, body.sc-clean-news-fallback .sc-news-main *::before, body.sc-clean-news-fallback .sc-news-main *::after { box-sizing: border-box; }
body.sc-clean-news-fallback .sc-news-container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 54px); }
body.sc-clean-news-fallback .sc-news-breadcrumb { border-bottom: 1px solid #e4e8e7; background: #fcfcfa; color: #64747e; font-size: 12px; }
body.sc-clean-news-fallback .sc-news-breadcrumb .sc-news-container { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
body.sc-clean-news-fallback .sc-news-breadcrumb a { color: #405d70; text-decoration: none; }
body.sc-clean-news-fallback .sc-news-breadcrumb [aria-current] { overflow-wrap: anywhere; }
body.sc-clean-news-fallback .sc-news-article { margin: 0; padding: 0; border: 0; background: transparent; }
body.sc-clean-news-fallback .sc-news-intro { padding: clamp(48px,7vw,86px) 0 clamp(35px,5vw,62px); border-bottom: 1px solid #e4e8e7; }
body.sc-clean-news-fallback .sc-news-overline { margin: 0 0 20px; font: 400 12px/1.5 Arial, sans-serif; letter-spacing: .17em; color: #728590; }
body.sc-clean-news-fallback .sc-news-title { margin: 0; padding: 0; font: 600 clamp(26px,3.2vw,40px)/1.6 'Noto Serif JP','Yu Mincho',serif; color: #263d4a; overflow-wrap: anywhere; letter-spacing: .025em; }
body.sc-clean-news-fallback .sc-news-date { display: block; margin-top: 18px; font: 400 13px/1.7 Arial,sans-serif; color: #788893; letter-spacing: .09em; }
body.sc-clean-news-fallback .sc-news-content { width: 100%; max-width: 900px; margin: 0 auto; padding: clamp(40px,6vw,72px) 0 clamp(64px,8vw,96px); font-size: 16px; line-height: 2.1; overflow-wrap: anywhere; }
body.sc-clean-news-fallback .sc-news-content p, body.sc-clean-news-fallback .sc-news-content li { font: 400 16px/2.1 'Noto Serif JP','Yu Mincho',serif; color: #273843; }
body.sc-clean-news-fallback .sc-news-content p { margin: 0 0 1.5em; }
body.sc-clean-news-fallback .sc-news-content a { color: #315b77; text-decoration: underline; text-underline-offset: 3px; }
body.sc-clean-news-fallback .sc-news-content img, body.sc-clean-news-fallback .sc-news-content video { max-width: 100%; height: auto; }
body.sc-clean-news-fallback .sc-news-content figure { max-width: 100%; height: auto; margin: 24px auto; }
body.sc-clean-news-fallback .sc-news-content table { max-width: 100%; width: 100%; border-collapse: collapse; }
body.sc-clean-news-fallback .sc-news-back { margin: 0 auto 75px; max-width: 900px; padding-top: 24px; border-top: 1px solid #e1e6e4; }
body.sc-clean-news-fallback .sc-news-back a { color: #315b77; text-decoration: none; display: inline-block; padding-bottom: 6px; border-bottom: 1px solid #91a8b5; font-size: 14px; }
body.sc-clean-news-fallback .sc-news-back a:hover { color: #1e4055; border-bottom-color: #1e4055; }
@media (max-width: 640px) {
  .sc-clean-screen { width: calc(100% - 32px); padding-top: 48px; padding-bottom: 78px; }
  body.sc-clean-news-fallback .sc-news-breadcrumb .sc-news-container { gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  body.sc-clean-news-fallback .sc-news-intro { padding-top: 40px; padding-bottom: 35px; }
  body.sc-clean-news-fallback .sc-news-content { padding-top: 34px; padding-bottom: 65px; }
  body.sc-clean-news-fallback .sc-news-content p, body.sc-clean-news-fallback .sc-news-content li { font-size: 15px; line-height: 2.05; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-clean-screen *, .sc-clean-news-route * { scroll-behavior: auto; }
}
