/* ソコロシステムズ 特設ページ（試作 v2）｜デザイン＝ラフ案1「濃緑の台紙」を土台に3点直したもの
   色はロゴ画像のピクセルから取得: 濃緑 #192f19 / オレンジ #ea9523（README参照）。コントラスト比は tools/contrast.py
   オレンジを使うのは「章の番号」「アイコンの丸囲み」「電話ボタン」だけ。 */
:root {
  --green: #192f19;
  --green3: #3c5a3c;
  --orange: #ea9523;
  --cream: #f6f1e3;
  --white: #ffffff;
  --ink: #1a1a1a;
  --sub: #595959;
  --rule: #767676;
  --link: #1f5f2e;
  --ac: #4f7a4f;
  --ac-on-green: #a9d0a9;
  --draft: #ffe58a;
  --draft-edge: #8a6500;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--green);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22390%22 height=%22760%22 viewBox=%220 0 390 760%22%3E%3Cline x1=%22294%22 y1=%22446%22 x2=%22305%22 y2=%22333%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%2241%22 y1=%22531%22 x2=%22160%22 y2=%22441%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22177%22 y1=%22166%22 x2=%22121%22 y2=%2250%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%2236%22 y1=%2286%22 x2=%22121%22 y2=%2250%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%2275%22 y1=%22240%22 x2=%22197%22 y2=%22318%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%2241%22 y1=%22531%22 x2=%2232%22 y2=%22696%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22286%22 y1=%22108%22 x2=%22376%22 y2=%2276%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22177%22 y1=%22166%22 x2=%2275%22 y2=%22240%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22160%22 y1=%22441%22 x2=%22197%22 y2=%22318%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%2236%22 y1=%2286%22 x2=%2275%22 y2=%22240%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22169%22 y1=%22585%22 x2=%2232%22 y2=%22696%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22214%22 y1=%22678%22 x2=%22334%22 y2=%22654%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22305%22 y1=%22333%22 x2=%22378%22 y2=%22407%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22294%22 y1=%22446%22 x2=%22378%22 y2=%22407%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22286%22 y1=%22108%22 x2=%22361%22 y2=%22197%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%2241%22 y1=%22531%22 x2=%22169%22 y2=%22585%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22177%22 y1=%22166%22 x2=%22286%22 y2=%22108%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22334%22 y1=%22654%22 x2=%22169%22 y2=%22585%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22361%22 y1=%22197%22 x2=%22376%22 y2=%2276%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22214%22 y1=%22678%22 x2=%22169%22 y2=%22585%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22197%22 y1=%22318%22 x2=%22305%22 y2=%22333%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Cline x1=%22294%22 y1=%22446%22 x2=%22160%22 y2=%22441%22 stroke=%22%233c5a3c%22 stroke-width=%221%22 opacity=%22.75%22/%3E%3Ccircle cx=%22177%22 cy=%22166%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22214%22 cy=%22678%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%2236%22 cy=%2286%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22286%22 cy=%22108%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%2241%22 cy=%22531%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22121%22 cy=%2250%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22294%22 cy=%22446%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%2275%22 cy=%22240%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22334%22 cy=%22654%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22160%22 cy=%22441%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22169%22 cy=%22585%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22361%22 cy=%22197%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22376%22 cy=%2276%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22197%22 cy=%22318%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%2232%22 cy=%22696%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22305%22 cy=%22333%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3Ccircle cx=%22378%22 cy=%22407%22 r=%222.4%22 fill=%22%235b7a5b%22/%3E%3C/svg%3E");
  background-size: 390px 760px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: auto-phrase;
  text-spacing-trim: trim-start;
  padding-bottom: 96px;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: 0.02em; }
a { color: var(--link); }

/* 句ごとの折り返し：改行は読点・句点の後ろだけ（句そのものが1行より長いときだけ中で折れる） */
.ph { display: inline-block; max-width: 100%; vertical-align: top; text-wrap: balance; }
/* 短いかぎかっこ「…」は中で折らない（build_v2.py が12字までを包む） */
.nb { white-space: nowrap; }

strong {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--green3);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}

/* ---------- 試作の目印（公開前に data-draft-note を全件削除） ---------- */
.draft-band {
  background: var(--draft);
  color: var(--ink);
  border-bottom: 1px solid var(--draft-edge);
  padding: 4px 16px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  font-family: var(--sans);
}
.draft-note {
  display: block;
  margin: 14px 0 0;
  padding: 6px 12px;
  background: var(--draft);
  color: var(--ink);
  border-left: 4px solid var(--draft-edge);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--sans);
}

/* ---------- 絵（線のアイコン） ---------- */
.ic { width: 64px; height: 64px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; }
.ic * { vector-effect: non-scaling-stroke; }
.ic .ac { stroke: var(--ac); }
.ic .fillbg { fill: var(--icbg, #fff); }
.ic24 { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; }
.ic24 * { vector-effect: non-scaling-stroke; }
/* 白い円＋オレンジの輪（オレンジを使う3か所のうちの1つ） */
.cic { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--white); border: 2.5px solid var(--orange); display: grid; place-items: center; color: var(--green); margin-bottom: 14px; }
.cic .ic { width: 42px; height: 42px; }

/* ---------- ボタン ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 20px;
  border: 2.5px solid transparent; border-radius: 10px;
  font: inherit; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
}
.b-or { background: var(--orange); color: var(--green); border-color: var(--orange); }
.b-gh { color: var(--white); border-color: rgba(255, 255, 255, 0.8); }
.b-wh { background: var(--white); color: var(--green); border-color: var(--white); justify-content: space-between; margin-top: 16px; }
.b-wh .form-txt { text-align: left; }
.btn-tel { justify-content: flex-start; gap: 14px; min-height: 80px; background: var(--orange); color: var(--green); border-color: var(--orange); }
.tel-txt { display: block; text-align: left; line-height: 1.35; }
.ofc { display: block; font-size: 17px; }
.tnum { display: block; font-size: 27px; letter-spacing: 0.04em; }
.tel-btns { display: grid; gap: 12px; margin: 22px 0 6px; }
.btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.hero .btn:focus-visible, .hero summary:focus-visible, .contact a:focus-visible, .bar a:focus-visible, .closing a:focus-visible { outline-color: var(--white); }

/* ---------- 冒頭 ---------- */
.col { max-width: 760px; margin: 0 auto; }
.hd { padding: 14px 8px 0; }
.logocard { display: inline-flex; background: var(--white); border-radius: 10px; padding: 10px 14px; }
.logocard img { height: 28px; width: auto; display: block; }
.hero { padding: 30px 22px 44px; }
.ring { width: 92px; height: 92px; border-radius: 50%; border: 2.5px solid var(--orange); display: grid; place-items: center; color: var(--white); margin-bottom: 22px; --ac: var(--ac-on-green); }
.ring .ic { width: 54px; height: 54px; }
.eyebrow { margin: 0; }
.pill { display: inline-block; background: var(--white); color: var(--green); font-weight: 700; font-size: 16px; line-height: 1.5; padding: 6px 16px; border-radius: 999px; }
.hero h1 { font-size: 30px; line-height: 1.5; margin: 18px 0 22px; color: var(--white); }
.hero strong { text-decoration-color: var(--ac-on-green); }
.lead { font-size: 17px; color: var(--white); }
.acts { display: grid; gap: 12px; margin-top: 28px; }
.callpick summary { list-style: none; }
.callpick summary::-webkit-details-marker { display: none; }
.callpick .chev { transition: transform 0.2s; }
.callpick[open] .chev { transform: rotate(180deg); }
.callpick-panel { display: grid; gap: 10px; margin-top: 10px; }
.callpick-panel .btn-tel { min-height: 76px; }

/* ---------- 紙面（クリームの台紙） ---------- */
main { counter-reset: ch; display: block; padding-top: 6px; }
.paper {
  background: var(--cream);
  color: var(--ink);
  border-radius: 8px;
  margin: 0 max(8px, calc((100% - 760px) / 2));
  padding: 28px 10px 30px;
}
.paper + .paper { margin-top: 14px; }
.chead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cn { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: 19px; line-height: 1; font-family: var(--sans); }
.cn::before { counter-increment: ch; content: counter(ch); }
.paper h2, .contact h2 { font-size: 24px; line-height: 1.5; }
.paper h2 { color: var(--green); }
.sub { font-size: 20px; line-height: 1.6; margin: 0 0 16px; }
.paper .sub { color: var(--green); }
.subrow { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.subrow .cic { width: 64px; height: 64px; margin: 0; }
.subrow .cic .ic { width: 38px; height: 38px; }
.subrow .sub { margin: 0; }

.card { background: var(--white); border-radius: 12px; padding: 18px 12px 20px; margin-top: 14px; position: relative; --icbg: #fff; }
.card h3, .card h4 { font-size: 18px; line-height: 1.6; letter-spacing: 0.01em; color: var(--green); margin-bottom: 10px; }
.pcard .cic { position: absolute; right: 14px; top: 14px; margin: 0; width: 64px; height: 64px; }
.pcard .cic .ic { width: 38px; height: 38px; }
.prow { display: flex; align-items: center; gap: 10px; min-height: 64px; padding-right: 76px; margin-bottom: 8px; }
.pn { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 22px; line-height: 1; font-family: var(--sans); }
.pk { font-weight: 700; font-size: 18px; color: var(--green); line-height: 1.5; }
.pbar { color: var(--sub); font-weight: 400; }
.closing { background: var(--green); color: var(--white); border-radius: 12px; padding: 18px 14px; margin-top: 14px; font-size: 18px; font-weight: 700; }
.closing strong { text-decoration-color: var(--ac-on-green); }
.since { display: flex; align-items: center; gap: 12px; background: var(--green); color: var(--white); border-radius: 12px; padding: 16px 14px; margin: 6px 0 16px; --ac: var(--ac-on-green); }
.since .ring2 { flex: none; width: 60px; height: 60px; border-radius: 50%; border: 2.5px solid var(--orange); display: grid; place-items: center; color: var(--white); }
.since .ring2 .ic { width: 36px; height: 36px; }
.since .stx { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.5; letter-spacing: 0.02em; }

/* ---------- ご相談（濃緑の地） ---------- */
.contact { padding: 30px 22px 22px; color: var(--white); }
.contact h2 { color: var(--white); }
.contact .sub { font-size: 20px; color: var(--white); font-family: var(--serif); font-weight: 700; }
.contact .cic { --ac: var(--ac); }
.formnote { margin-top: 30px; }

/* ---------- 末尾 ---------- */
.foot { margin-top: 14px; font-size: 16px; line-height: 1.75; }
.foot a { display: inline-block; min-height: 44px; padding: 10px 0; }
.foot .co { font-weight: 700; font-size: 18px; }
.foot .analytics { margin-top: 22px; }
.foot .hp { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.6em; }
.foot .src-h { font-family: var(--sans); font-size: 18px; line-height: 1.6; margin: 28px 0 10px; letter-spacing: 0.03em; color: var(--ink); }
.src { margin: 0; padding: 0; list-style: none; }
.src li { padding: 12px 0 2px; border-top: 1px solid var(--rule); }
.src li:last-child { border-bottom: 1px solid var(--rule); }
.src-u { display: block; word-break: break-all; font-size: 16px; }

/* ---------- 画面下の電話帯（スマホのみ） ---------- */
.bar { display: none; }
@media (max-width: 767px) {
  .bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--green); border-top: 2px solid var(--green3); }
  .bar .btn { min-height: 48px; padding: 6px 8px; font-size: 17px; gap: 8px; }
}

/* ---------- PC（紙面は最大760pxで中央） ---------- */
@media (min-width: 768px) {
  body { font-size: 18px; background-size: 780px 1520px; padding-bottom: 40px; }
  .hd { padding: 22px 8px 0; }
  .logocard img { height: 34px; }
  .hero { padding: 56px 0 72px; }
  .hero .col { max-width: 696px; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 19px; }
  .ring { width: 104px; height: 104px; }
  .ring .ic { width: 62px; height: 62px; }
  .acts { grid-template-columns: auto auto; justify-content: start; align-items: start; gap: 16px; }
  .acts .btn { min-width: 240px; }
  .callpick-panel { grid-template-columns: 1fr; }
  .paper { padding: 44px 44px 48px; border-radius: 12px; }
  .paper + .paper { margin-top: 20px; }
  .paper h2, .contact h2 { font-size: 30px; }
  .cn { width: 46px; height: 46px; font-size: 22px; }
  .sub, .contact .sub { font-size: 22px; }
  .card { padding: 24px 24px 26px; }
  .card h3, .card h4 { font-size: 21px; }
  .cic { width: 80px; height: 80px; }
  .cic .ic { width: 48px; height: 48px; }
  .pcard .cic { width: 72px; height: 72px; right: 24px; top: 20px; }
  .pcard .cic .ic { width: 42px; height: 42px; }
  .prow { padding-right: 96px; }
  .closing { padding: 22px 24px; font-size: 20px; }
  .since { padding: 18px 24px; }
  .since .stx { font-size: 24px; }
  .contact { padding: 56px 0 40px; }
  .contact .col { max-width: 696px; }
  .tel-btns { grid-template-columns: 1fr 1fr; }
  .foot { padding: 36px 44px 40px; }
}
