@charset "UTF-8";
/*
  patterns.css — パターンカタログ（/patterns/）
  2026.11.30 new
  2026.12.1 mod: 使われている用途（.pt-uses）・用途ページの節（.ptu-*）
  2026.12.1 mod: 構造の図（.pt-diagram）
  2026.12.1 mod: 文字を全体に小さく（本文 15px・H1 36px・副題 19px・トップの H1 48px）
  2026.12.1 mod: 別名の行（.pt-hero-alias）
  2026.12.1 mod: H1 を名前（48px）と何をするか（24px）の2段に
  ・pattern_block.jsp（パターンのページ）・patterns_top.jsp（トップ）から読む
  ・フォントはサイトのものをそのまま使う（2026.11.30 mod: BIZ UDPゴシックをやめた）
  ・すべて .pt-page の中だけに効かせる。色は writeWired のパレット（茶 #5E5140・オレンジ #FF9D01/#EB9202）
*/
.pt-page { color: #2A231C; background: #FBF8F4; padding-bottom: 48px; }
.pt-page a { color: #5E5140; }
.pt-page a:hover { color: #2A231C; }
.pt-page h1, .pt-page h2, .pt-page h3 { font-family: inherit; color: inherit; }
.pt-wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.pt-btn { display: inline-block; padding: 12px 18px; background: #5E5140; color: #FFFFFF !important; text-decoration: none !important; font-size: 14px; font-weight: 700; }
.pt-btn:hover { background: #2A231C; }
.pt-h2 { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .15em; color: #8A5A00 !important; }

/* ===== ヒーロー ===== */
.pt-hero { background: #5E5140; color: #FFFFFF; border-bottom: 8px solid #FF9D01; }
.pt-hero-in { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.pt-tile-big { flex: 0 0 auto; background: #FF9D01; color: #2A231C; width: 104px; height: 104px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; box-sizing: border-box; }
.pt-tile-big-cate { font-size: 12px; font-weight: 700; line-height: 1.4; }
.pt-tile-big-no { font-size: 44px; font-weight: 700; line-height: 1; }
.pt-hero-body { flex: 999 1 560px; min-width: 0; }
.pt-hero-cate { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: #FFC766; }
.pt-hero-cate a { color: #FFC766 !important; }
.pt-hero-h1 { margin: 0; font-size: 36px; line-height: 1.2; font-weight: 700; color: #FFFFFF !important; }
.pt-hero-h1-name { display: block; }
.pt-hero-h1-sub { display: block; margin-top: 10px; font-size: 19px; line-height: 1.5; font-weight: 700; color: #FFC766; }
.pt-hero-intent { margin: 20px 0 0; font-size: 16px; line-height: 1.85; max-width: 760px; color: #F3EDE6; }
.pt-hero-alias { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: #F3EDE6; }
.pt-hero-alias-label { display: inline-block; margin-right: 12px; padding: 0 8px; border: 1px solid #FFC766; color: #FFC766; font-size: 12px; font-weight: 700; }
.pt-hero-top .pt-hero-in { padding-top: 56px; padding-bottom: 64px; align-items: flex-end; gap: 48px; }
.pt-hero-h1-top { font-size: 48px; line-height: 1.15; letter-spacing: .02em; }
.pt-hero-top .pt-hero-intent { font-size: 16px; line-height: 1.9; max-width: 640px; }
.pt-figs { flex: 1 1 280px; display: flex; gap: 32px; flex-wrap: wrap; }
.pt-fig { font-size: 56px; font-weight: 700; line-height: 1; color: #FF9D01; }
.pt-fig-label { margin-top: 8px; font-size: 14px; color: #F3EDE6; }

/* ===== パターンのページ：本文と横 ===== */
.pt-cols { padding-top: 48px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 48px; }
.pt-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.pt-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pt-md p { margin: 0 0 14px; font-size: 15px; line-height: 1.9; }
.pt-md p:last-child { margin-bottom: 0; }
.pt-md ul, .pt-md ol { font-size: 15px; line-height: 1.9; }

.pt-conds { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pt-conds li { font-size: 15px; line-height: 1.8; padding-left: 20px; border-left: 4px solid #FF9D01; }
.pt-results { margin: 0; padding: 0; list-style: none; background: #FFFFFF; border: 1px solid #D9CFC3; }
.pt-results li { font-size: 15px; line-height: 1.8; padding: 12px 18px; border-bottom: 1px solid #E7DFD5; }
.pt-results li:last-child { border-bottom: none; }

/* 構造：箱と例の表 */
.pt-boxes { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; margin-bottom: 20px; }
.pt-box { flex: 1 1 220px; background: #FFFFFF; border: 2px solid #5E5140; padding: 20px; box-sizing: border-box; }
.pt-box-label { font-size: 15px; font-weight: 700; color: #5E5140; }
.pt-md .pt-box-text { margin: 8px 0 0; font-size: 14px; line-height: 1.7; }
.pt-box-dark { background: #5E5140; color: #FFFFFF; border-color: #5E5140; }
.pt-box-dark .pt-box-label { color: #FFC766; }
.pt-box-dark .pt-box-text { color: #F3EDE6; }
.pt-exs { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.pt-ex { flex: 1 1 300px; min-width: 0; }
.pt-md .pt-ex-cap { margin: 0 0 8px; font-size: 13px; font-weight: 700; line-height: 1.5; color: #5E5140; }
.pt-tbl { overflow-x: auto; margin-bottom: 20px; }
.pt-ex .pt-tbl { margin-bottom: 0; }
.pt-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; background: #FFFFFF; }
.pt-tbl th { text-align: left; padding: 10px; border: 1px solid #D9CFC3; background: #F3EDE6; font-weight: 700; }
.pt-tbl td { padding: 10px; border: 1px solid #D9CFC3; vertical-align: top; }

/* 実例・関連 */
.pt-demo { background: #FFFFFF; border: 1px solid #D9CFC3; border-top: 4px solid #FF9D01; padding: 24px; }
.pt-demo-item + .pt-demo-item { margin-top: 20px; padding-top: 20px; border-top: 1px solid #E7DFD5; }
.pt-demo-name { font-size: 16px; font-weight: 700; line-height: 1.5; }
.pt-demo-note { margin: 8px 0 0; font-size: 14px; line-height: 1.8; }
.pt-demo .pt-btn { margin-top: 16px; }
.pt-demo-kaibou { display: block; margin-top: 12px; font-size: 14px; }
.pt-rels { display: flex; flex-direction: column; gap: 10px; }
.pt-rels .pt-h2 { margin-bottom: 2px; }
.pt-rel { display: flex; gap: 14px; align-items: flex-start; background: #FFFFFF; border: 1px solid #D9CFC3; padding: 14px; text-decoration: none !important; color: #2A231C !important; }
.pt-rel:hover { border-color: #EB9202; }
.pt-rel-no { flex: 0 0 44px; height: 44px; background: #F3EDE6; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.pt-rel-name { display: block; font-size: 15px; font-weight: 700; }
.pt-rel-note { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: #5E5140; }

/* 前後 */
.pt-pager { padding-top: 32px; padding-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.pt-pager a, .pt-pager-empty { display: block; flex: 1 1 280px; box-sizing: border-box; }
.pt-pager a { background: #FFFFFF; border: 1px solid #D9CFC3; padding: 18px 20px; text-decoration: none !important; color: #2A231C !important; }
.pt-pager a:hover { border-color: #EB9202; }
.pt-pager-next { text-align: right; }
.pt-pager-no { display: block; font-size: 12px; color: #5E5140; }
.pt-pager-name { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; }
.pt-back { margin-top: 8px; font-size: 14px; }

/* ===== トップ ===== */
.pt-block { padding-top: 56px; padding-bottom: 24px; }
.pt-block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.pt-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .15em; color: #8A5A00; }
.pt-block-h2 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 700; }
.pt-block-note { margin: 0; font-size: 14px; color: #5E5140; }

.pt-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.pt-col { flex: 1 1 112px; min-width: 112px; display: flex; flex-direction: column; gap: 8px; }
.pt-col-head { background: #5E5140; color: #FFFFFF; padding: 12px 10px; min-height: 104px; box-sizing: border-box; border-top: 4px solid #FF9D01; }
.pt-col-name { font-size: 15px; font-weight: 700; line-height: 1.4; }
.pt-col-q { margin-top: 6px; font-size: 11px; line-height: 1.5; color: #F3EDE6; }
.pt-tile { display: block; text-align: left; color: #2A231C !important; text-decoration: none !important; padding: 10px; min-height: 76px; box-sizing: border-box; border: 1px solid #D9CFC3; background: #FFFFFF; transition: background .12s, border-color .12s; }
.pt-tile:hover { border-color: #EB9202; }
.pt-tile:focus-visible { outline: 3px solid #EB9202; outline-offset: 2px; }
.pt-tile.is-on { background: #FF9D01; border-color: #EB9202; }
.pt-tile-no { display: block; font-size: 11px; font-weight: 700; color: #8A5A00; }
.pt-tile.is-on .pt-tile-no { color: #2A231C; }
.pt-tile-name { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 1.4; }

.pt-card { margin-top: 28px; background: #FFFFFF; border: 1px solid #D9CFC3; border-left: none; display: flex; flex-wrap: wrap; }
.pt-card-no { flex: 0 0 auto; background: #FF9D01; color: #2A231C; padding: 24px; display: flex; align-items: center; min-width: 104px; box-sizing: border-box; font-size: 40px; font-weight: 700; line-height: 1; }
.pt-card-body { flex: 999 1 480px; min-width: 0; padding: 28px 32px; }
.pt-card-cate { font-size: 13px; font-weight: 700; color: #5E5140; letter-spacing: .05em; }
.pt-card-name { display: inline-block; margin-top: 6px; font-size: 22px; font-weight: 700; line-height: 1.35; color: #2A231C !important; }
.pt-card-intent { margin: 12px 0 0; font-size: 15px; line-height: 1.9; max-width: 820px; }
.pt-card-demo { margin: 14px 0 0; font-size: 13px; color: #5E5140; }

.pt-concept { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.pt-concept-box { flex: 1 1 300px; background: #FFFFFF; border: 1px solid #D9CFC3; padding: 28px; box-sizing: border-box; }
.pt-concept-box p { margin: 12px 0 0; font-size: 15px; line-height: 1.8; }
.pt-concept-kicker { font-size: 13px; font-weight: 700; color: #8A5A00; letter-spacing: .1em; }
.pt-concept-title { margin-top: 10px; font-size: 19px; font-weight: 700; }
.pt-concept-dark { background: #5E5140; color: #FFFFFF; border-color: #5E5140; }
.pt-concept-dark .pt-concept-kicker { color: #FFC766; }
.pt-concept-dark p { color: #F3EDE6; }
.pt-combo { margin-top: 16px; background: #FFFFFF; border: 1px solid #D9CFC3; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pt-combo-head { font-size: 15px; font-weight: 700; margin-right: 8px; }
.pt-chip { background: #F3EDE6; padding: 8px 14px; font-size: 14px; color: #2A231C !important; text-decoration: none !important; }
a.pt-chip:hover { background: #FF9D01; }
.pt-combo-plus { font-weight: 700; }

.pt-reading { margin-top: 48px; background: #FFFFFF; border-top: 1px solid #D9CFC3; border-bottom: 1px solid #D9CFC3; }
.pt-reading .pt-block { padding-bottom: 72px; }
.pt-reading-in { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 40px; }
.pt-sample { flex: 1 1 380px; min-width: 0; border: 2px solid #5E5140; padding: 32px; box-sizing: border-box; }
.pt-sample-name { font-size: 26px; font-weight: 700; line-height: 1.3; }
.pt-sample-cate { margin-top: 6px; font-size: 13px; font-weight: 700; color: #5E5140; }
.pt-sample-intent { margin: 14px 0 0; font-size: 15px; line-height: 1.9; }
.pt-sample-note { margin: 20px 0 16px; border-top: 1px solid #D9CFC3; padding-top: 16px; font-size: 13px; line-height: 1.8; color: #5E5140; }
.pt-sections { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.pt-sections li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid #E7DFD5; }
.pt-sections li:last-child { border-bottom: none; }
.pt-sections-name { flex: 0 0 140px; font-weight: 700; }
.pt-sections-text { font-size: 15px; line-height: 1.7; }
.pt-foot-note { margin-top: 32px; font-size: 13px; color: #5E5140; }

/* 構造の図（STRUCTURE_FIG・2026.12.1 add）：この図＝濃い枠、比較の図＝点線の枠。狭い画面では横に流す */
.pt-diagram { margin: 0 0 16px; background: #FFFFFF; border: 2px solid #5E5140; padding: 16px; }
.pt-diagram-cmp { background: #F7F4EF; border: 1px dashed #B5A999; }
.pt-diagram-scroll { overflow-x: auto; }
.pt-diagram-scroll svg { min-width: 460px; height: auto; }
.pt-diagram figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: #2A231C; }
.pt-diagram-cmp figcaption { color: #5E5140; }

/* 使われている用途（パターンのページの横の欄・2026.12.1 add） */
.pt-uses { display: flex; flex-direction: column; gap: 8px; }
.pt-uses .pt-h2 { margin-bottom: 2px; }
.pt-use { display: block; background: #FFFFFF; border: 1px solid #D9CFC3; padding: 10px 14px; font-size: 14px; font-weight: 700; color: #2A231C !important; text-decoration: none !important; }
.pt-use:hover { border-color: #EB9202; }

/* 用途ページの節「このサイトを支えるデータの持ち方」（forms/patterns_for_use.jsp・2026.12.1 add）。.pt-page の外なので .ptu で閉じる */
.ptu { margin: 50px 0 30px; }
.ptu .ptu-lead { font-size: 14px; line-height: 1.7; color: #444; margin: -10px 0 16px; }
.ptu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }	/* 幅をそろえ、端数の行は左に寄せる */
.ptu-item { display: flex; gap: 14px; align-items: flex-start; background: #FFFFFF; border: 1px solid #D9CFC3; padding: 14px; text-decoration: none !important; color: #2A231C !important; }
.ptu-item:hover { border-color: #EB9202; }
.ptu-no { flex: 0 0 44px; height: 44px; background: #FF9D01; color: #2A231C; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.ptu-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }
.ptu-sub { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: #5E5140; }
.ptu-foot { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ptu-demos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ptu-demos-label { font-size: 13px; font-weight: 700; color: #5E5140; margin-right: 4px; }
.ptu-demo { display: inline-block; padding: 8px 14px; background: #5E5140; color: #FFFFFF !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.ptu-demo:hover { background: #2A231C; }
.ptu-all { font-size: 14px; color: #5E5140 !important; }

/* ===== 狭い画面 ===== */
@media (max-width: 767px) {
	.pt-wrap { padding-left: 16px; padding-right: 16px; }
	.pt-hero-in { padding-top: 32px; padding-bottom: 40px; gap: 20px; }
	.pt-tile-big { width: 88px; height: 88px; padding: 10px; }
	.pt-tile-big-no { font-size: 36px; }
	.pt-hero-h1 { font-size: 28px; }
	.pt-hero-h1-sub { font-size: 16px; margin-top: 8px; }
	.pt-hero-h1-top { font-size: 34px; }
	.pt-hero-intent { font-size: 15px; }
	.pt-fig { font-size: 40px; }
	.pt-block { padding-top: 48px; }
	.pt-block-h2 { font-size: 22px; }
	.pt-col { flex: 1 1 140px; }
	.pt-card-no { font-size: 32px; padding: 16px; min-width: 72px; }
	.pt-card-body { padding: 20px; }
	.pt-card-name { font-size: 22px; }
	.pt-sections-name { flex-basis: 110px; }
	.pt-diagram { padding: 10px; }
}

/* 開発の考え方（/case/ref/design/）。2026.12.1 add */
/* 考え方のページの節：本文の列の中なので上の余白を詰め、カードは2列まで */
.ptu.ptu-design { margin: 40px 0 20px; }
.ptu.ptu-design .ptu-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* 一覧（case_ref_top.jsp）のパターン表への入口 */
.ptd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 32px; padding: 16px 20px; background: #FFFFFF; border: 1px solid #D9CFC3; border-left: 4px solid #FF9D01; text-decoration: none !important; color: #2A231C !important; }
.ptd-top:hover { border-color: #EB9202; }
.ptd-top-label { font-size: 15px; font-weight: 700; }
.ptd-top-text { flex: 1 1 320px; font-size: 14px; line-height: 1.7; color: #5E5140; }
.ptd-top-go { font-size: 14px; font-weight: 700; color: #5E5140; }
.ptd-top-go::after { content: " →"; }
