/*
 * 仕組み化ガイド（shikumika-guide.com）のデザイン。正本はこのファイル。
 * 配布: py 事業部/46_仕組み化ガイド/wordpress/design_deploy.py --apply（mu-plugins/ss-design.css）
 * 記事本文は書き換えず、Cocoon の部品（.btn-red / .blank-box / .scrollable-table / figure.ss-screen）に色と形を当てる。
 * Cocoonのテーマ設定（theme_mods）は switch_to_cocoon.py が上書きするので、色はここで持つ（2026-10-07 Claude判断）。
 */
:root {
  --ss-navy: #0f2747;
  --ss-navy-2: #1b3f78;
  --ss-blue: #2459d4;
  --ss-teal: #10a99a;
  --ss-teal-soft: #e8f7f5;
  --ss-blue-soft: #eef3fd;
  --ss-bg: #f3f6fb;
  --ss-text: #263241;
  --ss-muted: #677489;
  --ss-line: #dde4ee;
  --ss-cta-from: #ff8a1f;
  --ss-cta-to: #ff4f5a;
  --ss-radius: 14px;
  --ss-shadow: 0 6px 24px rgba(15, 39, 71, .08);
}

/* ---------- 全体 ---------- */
body.public-page { background: var(--ss-bg); color: var(--ss-text); }
.content { margin-top: 28px; }
.main, .sidebar .widget {
  background: #fff;
  border-radius: var(--ss-radius);
  box-shadow: var(--ss-shadow);
  border: none;
}
.main { padding: 36px 44px; }
.sidebar { background: transparent; padding: 0; }
.sidebar .widget { padding: 20px 22px; margin-bottom: 24px; }
.entry-content { line-height: 1.95; }
.entry-content a:not(.btn), .sidebar a { color: var(--ss-blue); }
.entry-content a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:not(.btn):hover { color: var(--ss-teal); }
::selection { background: #cfe1ff; }

/* ---------- ヘッダー ---------- */
#header-container { background: #fff; box-shadow: 0 2px 14px rgba(15, 39, 71, .07); }
#header-container .header { background: #fff; }
#header .tagline { color: var(--ss-muted); font-size: 12px; }
#header .site-name-text {
  color: var(--ss-navy);
  font-weight: 800;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .45em;
}
#header .site-name-text::before {
  content: "";
  width: 1.05em; height: 1.05em;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ss-blue), var(--ss-teal));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35);
  flex: none;
}
#navi .navi-in > ul > li > a {
  color: var(--ss-navy);
  font-weight: 600;
  position: relative;
}
#navi .navi-in > ul > li > a::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: 8px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ss-blue), var(--ss-teal));
  transition: left .2s, right .2s;
}
#navi .navi-in > ul > li > a:hover { background: transparent; color: var(--ss-blue); }
#navi .navi-in > ul > li > a:hover::after { left: 18%; right: 18%; }

/* ---------- 記事タイトル・PR表記 ---------- */
.entry-title, .article h1 {
  color: var(--ss-navy);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .01em;
}
.ss-pr {
  display: inline-block;
  background: #f1f3f7;
  color: var(--ss-muted);
  border-radius: 6px;
  padding: .35em .9em;
  line-height: 1.6;
}
.ss-pr small { font-size: 12px; }

/* ---------- 見出し ---------- */
.article h2 {
  background: linear-gradient(120deg, var(--ss-navy) 0%, var(--ss-navy-2) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .85em 1.1em .85em 1.4em;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  position: relative;
  margin-top: 2.6em;
  overflow: hidden;
}
.article h2::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ss-teal), #4dd8c8);
}
.article h3 {
  background: var(--ss-blue-soft);
  color: var(--ss-navy);
  border: none;
  border-left: 6px solid var(--ss-blue);
  border-radius: 0 10px 10px 0;
  padding: .7em 1em;
  font-size: 19px;
  font-weight: 700;
}
.article h4 {
  color: var(--ss-navy);
  border: none;
  border-bottom: 2px dashed var(--ss-line);
  padding: 0 0 .4em 1.4em;
  position: relative;
}
.article h4::before {
  content: "";
  position: absolute; left: .2em; top: .55em;
  width: .6em; height: .6em; border-radius: 50%;
  background: var(--ss-teal);
}

/* ---------- 結論ボックス（.blank-box.bb-blue）と箇条書き ---------- */
.article .blank-box.bb-blue {
  border: 2px solid var(--ss-teal);
  background: linear-gradient(180deg, var(--ss-teal-soft), #fff 70%);
  border-radius: var(--ss-radius);
  padding: 1.4em 1.6em .6em;
  box-shadow: 0 4px 18px rgba(16, 169, 154, .10);
}
.article .blank-box.bb-blue ul { list-style: none; padding-left: 0; }
.article .blank-box.bb-blue ul li {
  position: relative;
  padding-left: 1.9em;
  margin-bottom: .7em;
}
.article .blank-box.bb-blue ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute; left: 0; top: .15em;
  width: 1.35em; height: 1.35em; line-height: 1.35em;
  font-size: .8em;
  text-align: center;
  color: #fff;
  background: var(--ss-teal);
  border-radius: 50%;
}
.entry-content > ul li::marker, .entry-content > ol li::marker { color: var(--ss-teal); font-weight: 700; }

/* ---------- CTAボタン ---------- */
.ss-cta .btn, .ss-btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--ss-cta-from), var(--ss-cta-to));
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 1.05em 3.2em 1.05em 2.6em;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(255, 79, 90, .32), inset 0 -3px 0 rgba(0, 0, 0, .12);
  position: relative;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  max-width: 100%;
  white-space: normal;
}
.ss-cta .btn::after, .ss-btn-cta::after {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute; right: 1.2em; top: 50%;
  transform: translateY(-50%);
  font-size: .8em;
}
.ss-cta .btn::before, .ss-btn-cta::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: ss-shine 3.6s ease-in-out infinite;
}
.ss-cta .btn:hover, .ss-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 79, 90, .38), inset 0 -3px 0 rgba(0, 0, 0, .12);
  opacity: 1;
}
@keyframes ss-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .ss-cta .btn::before, .ss-btn-cta::before { animation: none; }
}

/* ---------- 表 ---------- */
.article .scrollable-table { border-radius: 12px; box-shadow: 0 0 0 1px var(--ss-line); margin: 1.6em 0; }
.article table { border-collapse: separate; border-spacing: 0; border: none; margin: 0; width: 100%; }
.article table th, .article table td { border: none; border-bottom: 1px solid var(--ss-line); padding: .8em 1em; }
.article table thead th {
  background: var(--ss-navy);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
/* Cocoon の「1列目を固定」が見出しの1列目を淡色にするので揃える */
.article table thead th:first-child { background: var(--ss-navy); color: #fff; }
.article table tbody tr:nth-child(even) td { background: #f7f9fc; }
.article table tbody tr:last-child td { border-bottom: none; }
.article table tbody td:first-child { font-weight: 700; color: var(--ss-navy); background: #f0f4fa; }
.article table tbody tr:hover td { background: #fff8ef; }
/* Cocoon の .scrollable-table はセルを折り返さず（nowrap）横スクロールさせる。横に動かさないと読めないのは見にくいので折り返す
   （ユーザー指示2026-10-17）。ホスト名・レコード値など長い英数字（code）も途中で折る。1列目は項目名なので最低幅だけ確保 */
.article .scrollable-table table th, .article .scrollable-table table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.article .scrollable-table table code { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
.article .scrollable-table table tbody td:first-child { min-width: 7.5em; }
@media (max-width: 480px) {
  .article table th, .article table td { padding: .6em .7em; }
}

/* ---------- 画面キャプチャ ---------- */
.article figure.ss-screen { margin: 2em 0; }
.article figure.ss-screen img {
  border-radius: 10px;
  border: 1px solid var(--ss-line);
  box-shadow: 0 10px 28px rgba(15, 39, 71, .12);
}
.article figure.ss-screen figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--ss-muted);
  margin-top: .8em;
}
.article figure.ss-screen figcaption::before { content: "\25B2  "; color: var(--ss-teal); font-size: .8em; }

/* ---------- 目次 ---------- */
.toc {
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  background: #fbfcfe;
  padding: 1.2em 1.6em;
  box-shadow: 0 2px 10px rgba(15, 39, 71, .04);
}
.toc-title { color: var(--ss-navy); font-weight: 800; }
.toc-content a { color: var(--ss-text); text-decoration: none; }
.toc-content a:hover { color: var(--ss-blue); }

/* ---------- サイドバー ---------- */
.sidebar h3 {
  background: none;
  color: var(--ss-navy);
  border: none;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--ss-blue), var(--ss-teal)) 1;
  padding: 0 0 .5em;
  font-weight: 800;
}
.sidebar .widget ul li a { border-radius: 8px; transition: background .15s; }
.sidebar .widget ul li a:hover { background: var(--ss-blue-soft); }
.search-box .search-edit { border-radius: 999px; border-color: var(--ss-line); }

/* ---------- 記事一覧カード ---------- */
.entry-card-wrap, .related-entry-card-wrap {
  background: #fff;
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}
.entry-card-wrap:hover, .related-entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--ss-shadow);
  background: #fff;
}
.cat-label { background: var(--ss-teal); border: none; border-radius: 4px; }

/* ---------- フッター ---------- */
#footer { background: var(--ss-navy); color: #c9d4e5; margin-top: 48px; }
#footer a, #footer .navi-footer-in a { color: #e6edf7; }
#footer a:hover { color: #fff; }
#footer .site-name-text { color: #fff; }
.go-to-top-button { background: var(--ss-navy-2); color: #fff; border-radius: 50%; }

/* ---------- トップページ ---------- */
.front-top-page .entry-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.front-top-page .date-tags, .front-top-page .sns-share, .front-top-page .sns-follow { display: none; }
.ss-hero {
  position: relative;
  margin: 0 -44px 2.4em;
  padding: 3em 44px 2.6em;
  background:
    radial-gradient(circle at 88% 12%, rgba(77, 216, 200, .35), transparent 38%),
    radial-gradient(circle at 8% 100%, rgba(36, 89, 212, .45), transparent 45%),
    linear-gradient(135deg, #0b1f3a 0%, #133566 60%, #165a86 100%);
  color: #fff;
  overflow: hidden;
}
.ss-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.ss-hero > * { position: relative; z-index: 1; }
/* Cocoon の .article p / ul の下余白（1.8em）を打ち消す */
.article .ss-hero p, .article .ss-hero ul, .article .ss-tool p, .article .ss-tool ul { margin-top: 0; padding-left: 0; }
.article .ss-hero-title { margin-bottom: .5em; }
.article .ss-hero-lead { margin-bottom: 1.2em; }
.article .ss-hero-points { margin-bottom: 1.8em; }
.article .ss-tool-tag { margin-bottom: .2em; }
.article .ss-tool-name { margin-bottom: .6em; }
.article .ss-tool ul { margin-bottom: 1.2em; }
.article .ss-hero-note { margin: 1.2em 0 0; }
.article .ss-section-title { margin-bottom: 1em; }
.ss-hero-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: #9ff0e5;
  border: 1px solid rgba(159, 240, 229, .5);
  border-radius: 999px;
  padding: .3em 1em;
  margin: 0 0 1em;
}
.ss-hero-title { font-size: 34px; font-weight: 800; line-height: 1.45; margin: 0 0 .6em; color: #fff; }
.ss-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #6ee7d8, #9cc2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ss-hero-lead { color: #d7e3f5; font-size: 15px; line-height: 1.9; margin: 0 0 1.4em; max-width: 46em; }
.ss-hero-points { display: flex; flex-wrap: wrap; gap: .6em; margin: 0 0 2em; padding: 0; list-style: none; }
.ss-hero-points li {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: .35em .9em;
  font-size: 13px;
  margin: 0;
}
.ss-hero-points li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: #6ee7d8; margin-right: .5em; }
.ss-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ss-tool {
  background: #fff;
  color: var(--ss-text);
  border-radius: var(--ss-radius);
  padding: 1.4em 1.5em 1.5em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  border-top: 5px solid var(--ss-blue);
  display: flex; flex-direction: column;
}
.ss-tool.is-myasp { border-top-color: var(--ss-teal); }
.ss-tool-tag { font-size: 12px; font-weight: 700; color: var(--ss-blue); margin: 0 0 .2em; }
.ss-tool.is-myasp .ss-tool-tag { color: var(--ss-teal); }
.ss-tool-name { font-size: 24px; font-weight: 800; color: var(--ss-navy); margin: 0 0 .5em; line-height: 1.3; }
.ss-tool-name small { font-size: 13px; color: var(--ss-muted); font-weight: 600; margin-left: .4em; }
.ss-tool ul { list-style: none; padding: 0; margin: 0 0 1.2em; font-size: 14px; line-height: 1.75; flex: 1; }
.ss-tool ul li { padding-left: 1.5em; position: relative; margin-bottom: .3em; }
.ss-tool ul li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; color: var(--ss-blue); font-size: .85em; top: .15em; }
.ss-tool.is-myasp ul li::before { color: var(--ss-teal); }
.ss-tool-actions { display: flex; flex-direction: column; gap: .6em; }
.entry-content .ss-tool-actions a { text-decoration: none; text-align: center; }
.ss-btn-cta { padding: .85em 2.6em .85em 1.6em; font-size: 15px; }
.ss-btn-sub {
  display: block;
  border: 2px solid var(--ss-navy);
  color: var(--ss-navy) !important;
  border-radius: 999px;
  padding: .6em 1em;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.ss-btn-sub:hover { background: var(--ss-navy); color: #fff !important; }
/* 紹介リンクのボタン下の「PR」（記事の CTA_PR_HTML と同じ扱い。社長指示2026-10-08） */
.ss-hero-pr { display: block; text-align: center; font-size: 11px; color: #9aa6b8; margin-top: -.3em; }
.ss-hero-note { font-size: 12px; color: #a9bad3; margin: 1.2em 0 0; }

.ss-section-title {
  font-size: 20px; font-weight: 800; color: var(--ss-navy);
  margin: 0 0 1em; display: flex; align-items: center; gap: .5em;
}
.ss-section-title::before {
  content: ""; width: 8px; height: 1.2em; border-radius: 4px;
  background: linear-gradient(180deg, var(--ss-blue), var(--ss-teal));
}
.ss-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 2.8em; }
.entry-content a.ss-path {
  display: block;
  background: #fff;
  border: 1px solid var(--ss-line);
  border-radius: 12px;
  padding: 1.1em 1.2em;
  text-decoration: none;
  color: var(--ss-text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.entry-content a.ss-path:hover { transform: translateY(-3px); box-shadow: var(--ss-shadow); border-color: var(--ss-blue); color: var(--ss-text); }
.ss-path-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3em; height: 2.3em; border-radius: 10px;
  background: var(--ss-blue-soft); color: var(--ss-blue);
  margin-bottom: .6em; font-size: 16px;
}
.ss-path:nth-child(even) .ss-path-icon { background: var(--ss-teal-soft); color: var(--ss-teal); }
.ss-path-title { display: block; font-weight: 800; color: var(--ss-navy); font-size: 15px; line-height: 1.5; }
.ss-path-desc { display: block; font-size: 12.5px; color: var(--ss-muted); line-height: 1.6; margin-top: .3em; }

.ss-latest { margin: 3em 0 0; }
.ss-latest-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 0; }
.ss-latest-list li { margin: 0; }
.entry-content .ss-latest-list a {
  display: flex; flex-direction: column; gap: .2em;
  height: 100%;
  background: #f8fafd;
  border: 1px solid var(--ss-line);
  border-radius: 10px;
  padding: .9em 1.1em;
  text-decoration: none;
  color: var(--ss-navy);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.6;
  transition: background .15s, border-color .15s;
}
.entry-content .ss-latest-list a:hover { background: #fff; border-color: var(--ss-teal); }
.ss-latest-list time { font-size: 12px; color: var(--ss-muted); font-weight: 400; }

/* ---------- サイドバーなしのページは本文幅を絞る（社長指摘2026-10-07「広すぎる」） ---------- */
@media screen and (min-width: 835px) {
  /* Cocoon 側の margin:0 に勝つよう body.class から書く */
  body.no-sidebar .content-in .main { max-width: 860px; margin-left: auto; margin-right: auto; float: none; }
  body.no-sidebar.front-top-page .content-in .main { max-width: 980px; }
}

/* ---------- お問い合わせの公式サイト案内 ---------- */
.ss-official {
  background: var(--ss-blue-soft);
  border-radius: var(--ss-radius);
  padding: 1.3em 1.5em;
  margin: 1.5em 0 2em;
}
.article .ss-official-title { font-weight: 800; color: var(--ss-navy); margin: 0 0 .9em; }
.ss-official-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry-content .ss-official-links a { text-align: center; text-decoration: none; background: #fff; }
.entry-content .ss-official-links a:hover { background: var(--ss-navy); }

/* ---------- スマホ ---------- */
@media screen and (max-width: 834px) {
  .main { padding: 22px 16px; border-radius: 0; }
  .content { margin-top: 0; }
  .article h2 { font-size: 19px; border-radius: 8px; }
  .article h3 { font-size: 17px; }
  .ss-hero { margin: -22px -16px 2em; padding: 2.2em 18px 2em; }
  .ss-hero-title { font-size: 25px; }
  .ss-tools, .ss-latest-list, .ss-official-links { grid-template-columns: 1fr; }
  .ss-paths { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ss-cta .btn { padding: 1em 2.6em 1em 1.8em; font-size: 15.5px; }
}
@media screen and (max-width: 480px) {
  .ss-paths { grid-template-columns: 1fr; }
}
