/* =========================================================
   handson.ope-education.link の見た目を FEATURE デザインにそろえる上書き用の CSS
   FEATURE は 04_教材/_共通/FEATUREデザイン/ のひな形（v1）。決まりは FEATUREデザイン.md
   各ページの <style> はそのまま残し、</head> の直前でこのファイルを読み込んで上から塗り替える（本文の HTML は変えない）
   やめるときは、各ページの「feature.css」の <link> を消せば元の見た目に戻る
   色：黒・白、オレンジ（--f-accent）は章の題・手順の番号・注意の囲みだけ、黄（--f-yellow）は大事な設定
   各ページの --accent は黒にする。ページごとに付いていた色（緑・青など）は、小さい文字や細い線にも使われていたため
   ========================================================= */

:root{
  --f-accent:#E8620C;
  --f-yellow:#FFD84D;
  --f-font:"IBM Plex Sans JP","Yu Gothic UI","Meiryo UI","Hiragino Sans",sans-serif;
  --f-display:"Archivo Black","Arial Black","IBM Plex Sans JP",sans-serif;
  --f-narrow:"Archivo Narrow","IBM Plex Sans JP",sans-serif;
  --mono:"IBM Plex Mono",Consolas,"BIZ UDGothic",monospace;
  --ink:#000; --ink-soft:#000; --ink-faint:#000;
  --paper:#fff; --card:#fff; --line:#000; --rule:#000;
  --accent:#000; --accent-deep:#000; --accent-tint:#fff; --accent-soft:#fff;
  --hero-bg:#fff; --hero-tint:#000; --hero-green:#000;
  --warn:#000; --warn-tint:#fff; --good-tint:#fff; --bad-tint:#fff;
  --lvl1:#000; --lvl2:#000; --lvl3:#000; --lvl4:#000; --lvl5:#000;
  --lvl1-green:#000; --lvl2-blue:#000; --lvl3-amber:#000; --lvl4-purple:#000; --lvl5-pink:#000;
}

/* 角は丸めず、影とぼかしは付けない。動きも止める */
*,*::before,*::after{border-radius:0!important;box-shadow:none!important;text-shadow:none!important;transition:none!important}
.radio,.radio::after,.opt-card .radio,.opt-card .radio::after{border-radius:50%!important}

body{background:#fff;color:#000;font-family:var(--f-font);font-size:17px;line-height:1.9;letter-spacing:.02em;-webkit-font-smoothing:auto}
h1,h2,h3,.kicker,.lvl-badge{font-feature-settings:"palt"}
a{color:#000;text-decoration-thickness:1.5px;text-underline-offset:3px}
.muted{color:#000}
code.inline{background:#fff;color:#000;border:1px solid #000;font-family:var(--mono);font-size:.86em;padding:0 5px}

/* ---------- 表紙 ---------- */
.hero{background:#fff;color:#000;border-top:14px solid #000;border-bottom:6px solid #000;padding:16px 0 36px}
.back-link{color:#000;font-size:14px;font-weight:700}
.back-link:hover{color:#000;text-decoration:underline}
.kicker{display:table;font-family:var(--f-narrow);font-size:15px;font-weight:700;letter-spacing:.1em;color:#000;background:var(--f-accent);padding:2px 10px;margin:26px 0 0}
.hero h1{color:#000;font-size:clamp(34px,6.4vw,64px);line-height:1.15;font-weight:700;margin:22px 0 24px;max-width:none}
.hero .lead{color:#000;font-size:18px;line-height:1.85;max-width:40em;margin:0;padding-top:18px;border-top:2px solid #000}
.meta-row{margin-top:24px;gap:10px 14px;font-size:15px;font-weight:700}
.lvl-badge,.guide-badge{background:#000!important;color:#fff;font-family:var(--f-narrow);font-weight:700;letter-spacing:.06em;padding:2px 10px}
.meta-row .m{color:#000}
.meta-row .dot{width:6px;height:6px;background:#000}

/* ---------- 目次（左の列） ---------- */
nav.toc .toc-title{font-family:var(--f-narrow);font-size:15px;font-weight:700;letter-spacing:.12em;color:#000;margin-bottom:6px;padding-top:10px;border-top:4px solid #000}
nav.toc ol{border-bottom:4px solid #000}
nav.toc li + li{border-top:1px solid #000}
nav.toc a{color:#000;font-weight:500;margin-left:0;padding:7px 4px;border-left:0}
nav.toc a .n{font-family:var(--f-display);font-size:13px;color:#000}
nav.toc a:hover{background:var(--f-yellow)}
nav.toc a.active{color:#000;font-weight:700;background:var(--f-yellow)}
nav.toc a.active .n{color:#000}

/* ---------- 章 ---------- */
section.block{padding-top:72px}
.sec-head{margin-bottom:26px;padding-top:12px;border-top:8px solid #000}
.sec-head .sec-num{font-family:var(--f-narrow);font-size:15px;font-weight:700;letter-spacing:.06em;color:#000;margin-bottom:6px}
.sec-head h2{color:var(--f-accent);font-size:clamp(24px,3.6vw,32px);font-weight:700;line-height:1.3;letter-spacing:0}
.sec-head h2::after{display:none}

/* 箱はどれも白地に黒い枠 */
.prereq,.scenario,.net-diagram,a.doc-link,.console-mock,table.kv,
.flow3,.pipe,.lcp,.vtl,.dash,.cmp-card,.ba-card{background:#fff;border:2px solid #000}

/* はじめる前に */
.prereq{padding:6px 22px 18px}
.prereq li{font-size:16px;border-bottom:1px solid #000}
.prereq li::before{width:8px;height:8px;background:#000}
.prereq li .tag-need{background:var(--f-accent);color:#000;font-size:12.5px;padding:1px 10px}
.prereq li .tag-opt{background:#fff;color:#000;border:1px solid #000;font-size:12.5px;padding:0 9px}
.note-line,.docs-note{color:#000;font-size:14.5px}

/* 公式ドキュメント */
.docs{gap:0;border-top:2px solid #000}
a.doc-link{border-width:0 0 1px;padding:12px 4px}
a.doc-link:hover{transform:none;background:var(--f-yellow)}
a.doc-link .dt{color:#000;font-size:16px}
a.doc-link .arr{color:#000;font-family:var(--mono)}
a.doc-link .dd{color:#000;font-size:15px}
a.doc-link .du{color:#000;font-size:12.5px}

/* 背景・ゴール */
.scenario{padding:22px 24px}
.scenario p{font-size:16.5px}
.qa-item{background:#fff;border:1px solid #000}
.qa .q{color:#000;font-size:16px}
.qa .q::before{background:#000;color:#fff}
.qa .a{color:#000;font-size:15.5px}
.goal{background:#fff;border:2px solid #000;padding:18px 22px;gap:14px}
.goal .mark{font-family:var(--f-narrow);font-size:14px;line-height:1.6;color:#fff;background:#000;padding:2px 10px;margin-top:2px}
.goal .mark::before{content:none}
.goal p{color:#000;font-size:16.5px;font-weight:700}

/* 構成の図 */
.net-diagram{padding:24px 20px}
.flow-note{color:#000;border-top:1px solid #000;font-size:14px}

/* 要件の表 */
table.req thead th{background:#000;color:#fff;font-family:var(--f-narrow);font-size:14px;padding:6px 10px;border-bottom:0}
table.req{border-bottom:2px solid #000}
table.req td{border-bottom:1px solid #000;font-size:16px;padding:12px 10px}
table.req td.no{font-family:var(--f-display);font-weight:400;color:#000;font-size:16px}

/* 手順 */
ol.steps::before{background:#000;width:2px}
ol.steps > li::before{background:var(--f-accent);color:#000;font-family:var(--f-display);font-weight:400;font-size:15px;box-shadow:none!important;outline:5px solid #fff}
ol.steps h3{font-size:19px;color:#000}
ol.steps p{color:#000;font-size:16px}
table.kv{border:2px solid #000;background:#fff}
table.kv th,table.kv td{border-top:1px solid #000;font-size:15px}
table.kv th{background:#fff;font-weight:700;border-right:1px solid #000}
.step-note{background:#fff;border:2px solid #000;padding:12px 16px}
.step-note .label{display:inline-block;font-family:var(--f-narrow);font-size:13px;letter-spacing:.06em;color:#fff;background:#000;padding:1px 10px}
.step-note .label::before{content:none}
.step-note p{color:#000;font-size:15px}

/* 画面のイメージ */
.console-mock .cm-bar{background:#000;border-bottom:0}
.console-mock .cm-bar .dot{display:none}
.console-mock .cm-bar .cm-title{margin-left:0;color:#fff;font-size:13px;font-weight:700}
.console-mock .cm-label{color:#000;font-size:14.5px}
.opt-card{border:2px solid #000}
.opt-card .od{color:#000;font-size:13.5px}
.opt-card.is-target{background:var(--f-yellow);border-color:#000}
.opt-card .radio{border-color:#000}
.opt-card.is-target .radio{border-color:#000}
.opt-card.is-target .radio::after{background:#000}
.point-tag,.point-tag .arrow{color:#000}

/* ターミナル */
.term{background:#111!important;border:0!important}
.term-bar{background:#000!important;border-color:#000!important}
.term-bar .d{display:none}
.term-bar .ttl{margin-left:0;color:#fff;font-size:12.5px;font-weight:700}
.term pre{color:#fff!important;font-size:14px}
.term pre .cmt{color:#b9c2c9}
.term pre .pmt{color:var(--f-yellow)}

/* つまずきポイント（注意の囲み） */
.pitfall{background:#fff;border:2px solid var(--f-accent);padding:16px 18px}
.pitfall .label{display:inline-block;font-family:var(--f-narrow);font-size:13px;letter-spacing:.06em;color:#000;background:var(--f-accent);padding:1px 10px}
.pitfall .label::before{content:none}
.pitfall h3{color:#000;font-size:17px}
.pitfall p{color:#000;font-size:15.5px}

/* 完了チェック・考えてみよう */
ul.check{border-top:2px solid #000}
ul.check li{border-bottom:1px solid #000;font-size:16px}
ul.check li::before{border:2px solid #000}
ul.check .ev{color:#000;font-size:14.5px}
ol.qs{border-top:2px solid #000}
ol.qs li{border-bottom:1px solid #000;font-size:16.5px;padding-left:52px}
ol.qs li::before{font-family:var(--f-narrow);font-size:14px;line-height:1.6;color:#fff;background:#000;padding:1px 8px;top:18px}
ol.qs summary{color:#000;font-size:14.5px}
ol.qs .hint-body{background:#fff;color:#000;border-left:4px solid var(--f-accent);font-size:15px}

/* 後片づけ・料金 */
ol.plain li{color:#000;font-size:16px}
ol.plain li::marker{color:#000}
.cost{color:#000;font-size:15px;border-top:2px solid #000}

/* ---------- 一覧ページ ---------- */
.section-nav{background:#fff;border-bottom:2px solid #000}
.section-nav a{color:#000;background:#fff;border:1px solid #000;font-size:13.5px;font-weight:700}
.section-nav a:hover{background:var(--f-yellow);border-color:#000;color:#000}
.filter-bar{border-bottom:2px solid #000}
.filter-bar .filter-label,.filter-group .group-label{color:#000;font-family:var(--f-font);font-size:14px;font-weight:700}
.filter-chip{color:#000;background:#fff;border:1px solid #000;font-weight:700}
.filter-chip:hover{background:var(--f-yellow);border-color:#000;color:#000}
.filter-chip.active,.filter-chip.all.active{background:#000;border-color:#000;color:#fff}
.filter-details summary::before{color:#000}
.filter-details .filter-count{background:var(--f-yellow);color:#000;border:1px solid #000}
.filter-groups{border-top:1px solid #000}
.list-head{display:flex;align-items:baseline;border-bottom:0;border-top:8px solid #000;padding:12px 0 0;margin:72px 0 24px}
.list-head h2{color:var(--f-accent);font-size:clamp(24px,3.6vw,32px);font-weight:700;letter-spacing:0}
.list-head .count{font-family:var(--f-narrow);font-size:15px;color:#000;font-weight:700}
a.card{background:#fff;border:2px solid #000!important;padding:20px 22px 18px}
a.card:hover{transform:none;background:var(--f-yellow)}
.card h3{color:#000;font-size:19.5px;font-weight:700}
.card p.desc{color:#000;font-size:15px}
.time-label{color:#000;font-family:var(--f-narrow);font-size:14px;font-weight:700;border-left:1px solid #000}
.tag{color:#000;background:#fff;border:1px solid #000;font-size:12.5px;font-weight:700}
.card .go{color:#000;font-size:14px}
footer.foot{color:#000;border-top:2px solid #000;font-size:14px}

@media (max-width:720px){
  body{font-size:16px}
  .hero .lead{font-size:16.5px}
  section.block{padding-top:56px}
  /* 狭い画面で横にはみ出さないよう、長い値は折り返し、2列の比べは縦に並べる */
  main{overflow-wrap:anywhere}
  code.inline{white-space:normal;word-break:break-all}
  table.req td{padding:12px 6px}
  table.req thead th{padding:6px}
  .ba-grid,.routes{grid-template-columns:minmax(0,1fr)}
  .bucket,.route-path .node{white-space:normal;word-break:break-all}
}

/* フェーズの区切り（lv5 など）。オレンジの帯に黒い文字。lv5 の本文は「オレンジの帯の見出し」と書いている */
ol.steps > li.phase-divider .phase-tag{background:var(--f-accent)!important;color:#000!important;font-size:16px;font-weight:700}

/* =========================================================
   構成図（2026-10-21）。AWS 公式アイコンを使う SVG の図。書き方は handson.ope-education.link_log.md の「構成図の書き方」
   figure.arch > div.arch-body > svg.dg と figcaption。アイコンは <svg data-icon="ec2" x y width height></svg> と書き、feature.js が差し替える
   旧ページの CSS とぶつからないよう、クラスはすべて figure.arch の中だけで効かせる
   枠の線の色は AWS の構成図の決まりに合わせる（VPC は紫、パブリックサブネットは緑、AZ は青の破線など）
   ========================================================= */
:root{
  --aws-cloud:#232F3E; --aws-region:#00A4A6; --aws-account:#E7157B; --aws-vpc:#8C4FFF;
  --aws-public:#7AA116; --aws-private:#00A4A6; --aws-az:#147EBA; --aws-sg:#DD344C; --aws-asg:#ED7100;
}
figure.arch{margin:16px 0 28px}
figure.arch .arch-body{background:#fff;border:2px solid #000;padding:18px;overflow-x:auto}
figure.arch svg.dg{display:block;width:100%;height:auto;max-width:var(--zw,760px);margin:0 auto}
figure.arch.zoomed svg.dg{width:var(--zw,760px)!important;max-width:none!important}
figure.arch figcaption{font-size:15px;font-weight:700;line-height:1.7;margin:10px 0 0;padding-left:14px;border-left:4px solid var(--f-accent);color:#000}
figure.arch .arch-hint{display:none;font-size:13px;font-weight:700;margin:6px 0 0}
/* 文字：.t（名前）・.ts（小さめの名前）・.tn（補足）・.tg（枠の名前、左そろえ）・.tm（値。等幅） */
.dg text{font-family:var(--f-font);fill:#000}
.dg .t{font-size:15px;font-weight:700;text-anchor:middle}
.dg .ts{font-size:13.5px;font-weight:700;text-anchor:middle}
.dg .tn{font-size:12.5px;text-anchor:middle}
.dg .tg{font-size:13px;font-weight:700}
.dg .tm{font-family:var(--mono)}
.dg .tl{text-anchor:start}
/* 線：.ln（つながり・流れ）・.ln-d（点線。設定上の関係や、届かない道）。矢印は marker-end="url(#arch-ah)" */
.dg .ln{fill:none;stroke:#000;stroke-width:2.5}
.dg .ln-d{fill:none;stroke:#000;stroke-width:2;stroke-dasharray:6 5}
.dg .ln-ng{fill:none;stroke:var(--aws-sg);stroke-width:2.5;stroke-dasharray:6 5}
/* 枠：rect に付ける。左上の角に枠のアイコン（g:vpc など、28px）を置き、その右に名前（.tg）を書く */
.dg .g-cloud{fill:#fff;stroke:var(--aws-cloud);stroke-width:2}
.dg .g-region{fill:#fff;stroke:var(--aws-region);stroke-width:2;stroke-dasharray:6 4}
.dg .g-account{fill:#fff;stroke:var(--aws-account);stroke-width:2}
.dg .g-vpc{fill:#fff;stroke:var(--aws-vpc);stroke-width:2}
.dg .g-public{fill:#fff;stroke:var(--aws-public);stroke-width:2}
.dg .g-private{fill:#fff;stroke:var(--aws-private);stroke-width:2}
.dg .g-az{fill:none;stroke:var(--aws-az);stroke-width:2;stroke-dasharray:8 5}
.dg .g-sg{fill:none;stroke:var(--aws-sg);stroke-width:2}
.dg .g-asg{fill:none;stroke:var(--aws-asg);stroke-width:2;stroke-dasharray:8 5}
.dg .g-plain{fill:#fff;stroke:#000;stroke-width:2}
/* アイコンの下地（線の上にアイコンを重ねるとき） */
.dg .bg{fill:#fff}
/* 本文の①②と対応させる番号 */
.dg .bd circle{fill:#000}
.dg .bd text{fill:#fff;font-size:13px;font-weight:700;text-anchor:middle}
/* 今回作るもの・大事な設定を示す黄色の下地 */
.dg .key{fill:var(--f-yellow)}
@media (max-width:720px){
  figure.arch .arch-body{padding:12px}
  figure.arch .arch-hint{display:block}
}

/* =========================================================
   色（2026-10-21）。モノクロに寄りすぎていたので、意味のある色を足す
   ・カテゴリの色：AWS 公式アイコンのカテゴリの色（ネットワークは紫、コンピュートはオレンジ、ストレージは緑…）
     記事は <body data-cat="…">、一覧ページはカテゴリの見出し・カードの並び・上の案内に data-cat を付けてある
     使うところ：表紙の上の帯・カテゴリの札・章の上の線・要件の表の見出し・一覧の見出しとカードの上の帯
   ・意味の色：ヒント（補足）は青、ゴールと完了チェックは緑、注意はオレンジ（--f-accent）
   ・淡い色の塗りは使わない。色は線・帯・札だけに使い、色の上の文字は白か黒（--cat-ink）
   ========================================================= */
:root{--cat:#000;--cat-ink:#fff;--f-info:#147EBA;--f-ok:#1D8102}
[data-cat="network"],[data-cat="cloudfront"],[data-cat="analytics"]{--cat:#8C4FFF;--cat-ink:#fff}
[data-cat="compute"],[data-cat="lambda"],[data-cat="docker"]{--cat:#ED7100;--cat-ink:#000}
[data-cat="s3"],[data-cat="cost"]{--cat:#7AA116;--cat-ink:#000}
[data-cat="cloudwatch"],[data-cat="messaging"]{--cat:#E7157B;--cat-ink:#fff}
[data-cat="iam"],[data-cat="security"]{--cat:#DD344C;--cat-ink:#fff}
[data-cat="ml"]{--cat:#01A88D;--cat-ink:#000}
[data-cat="dynamodb"],[data-cat="rds"],[data-cat="cicd"]{--cat:#C925D1;--cat-ink:#fff}
[data-cat="capstone"]{--cat:#E8620C;--cat-ink:#000}

/* 記事 */
body[data-cat] .hero{border-top-color:var(--cat)}
.hero-ic{display:block;width:56px;height:56px;margin:26px 0 0}
.hero-ic + .kicker{margin-top:14px}
body[data-cat] .kicker{background:var(--cat);color:var(--cat-ink)}
body[data-cat] .sec-head{border-top-color:var(--cat)}
body[data-cat] nav.toc .toc-title{border-top-color:var(--cat)}
body[data-cat] nav.toc ol{border-bottom-color:var(--cat)}
body[data-cat] table.req thead th{background:var(--cat);color:var(--cat-ink)}
body[data-cat] .prereq li::before{background:var(--cat)}
body[data-cat] .cost{border-top-color:var(--cat)}
.step-note .label{background:var(--f-info);color:#fff}
.step-note{border-left:6px solid var(--f-info)}
ol.qs li::before{background:var(--f-info)}
ol.qs .hint-body{border-left-color:var(--f-info)}
.goal{border-left:8px solid var(--f-ok)}
.goal .mark{background:var(--f-ok);color:#fff}
ul.check li::before{border-color:var(--f-ok);background:#fff;box-shadow:inset 0 0 0 3px #fff}
ul.check li::after{content:"";position:absolute;left:9px;top:21px;width:6px;height:11px;border:solid var(--f-ok);border-width:0 3px 3px 0;transform:rotate(45deg)}
.pitfall{border-left-width:8px}

/* 一覧ページ */
.list-head[data-cat]{border-top-color:var(--cat)}
.list-head[data-cat] h2{color:#000}
.list-head[data-cat] h2::before{content:"";display:inline-block;width:.7em;height:.7em;background:var(--cat);margin-right:.35em;vertical-align:.02em}
.grid[data-cat] a.card{border-top:8px solid var(--cat)!important}
.card-top{align-items:center}
.card-ic{width:40px;height:40px;margin-left:auto;flex:none}
.section-nav a[data-cat]{border-left:6px solid var(--cat)}
body:not([data-cat]) .hero{border-top-color:var(--f-accent)}

/* 使う VPC を用意する（2026-10-21）。VPC の中にリソースを作る回の「はじめる前に」に置く
   作成済みの handson-vpc があれば使い、なければこの囲みの手順で作る。書き方は handson.ope-education.link_log.md の 2026-10-21「使う VPC」 */
.vpc-prep{border:2px solid #000;border-left:8px solid var(--cat);padding:14px 20px 12px;margin:18px 0 0;background:#fff}
.vpc-prep .vpc-prep-t{display:inline-block;margin:0 0 8px;font-weight:700;font-size:14px;line-height:1.6;background:var(--cat);color:var(--cat-ink);padding:1px 10px}
.vpc-prep p{font-size:15.5px;margin:0 0 10px}
.vpc-prep ol{margin:0 0 10px;padding-left:1.4em;font-size:15.5px}
.vpc-prep li{margin:4px 0}
.vpc-prep > :last-child{margin-bottom:0}
@media (min-width:721px){.vpc-prep code.inline{white-space:nowrap}}
