/* =========================================================
   FRENZ テンプレート
   配色は下の [data-theme] で切り替え（inc/config.php の THEME）
   ========================================================= */

:root,
[data-theme="teal-amber"]    { --accent: #1B7F95; --accent-dark: #125B6B; --pop: #FFA552; }
[data-theme="cerulean-aqua"] { --accent: #0077A8; --accent-dark: #005A80; --pop: #8EEBEC; }
[data-theme="petrol-coral"]  { --accent: #0B5563; --accent-dark: #073B45; --pop: #FF8A70; }
[data-theme="marine-cyan"]   { --accent: #0A4D68; --accent-dark: #06364A; --pop: #5CE1E6; }
[data-theme="blue-yellow"]   { --accent: #0B3FA8; --accent-dark: #072C78; --pop: #FFD84D; }

:root {
  --ink: #0E1A2B;
  --text: #3B4658;
  --muted: #4A5568;
  --line: #D9DEE6;
  --soft: #F2F5FA;
  --white: #FFFFFF;
  --radius: 24px;
  --font-head: 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.8; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 900; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- 方眼（青焼き） ---------- */
.blueprint {
  background-color: var(--accent);
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.bg-mark { position: absolute; color: #fff; opacity: .14; pointer-events: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 0 32px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 14px; }
.btn-pop { background: var(--pop); color: var(--ink); }
.btn-pop:hover { color: var(--ink); }
.btn-pop.shadow { box-shadow: 0 6px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { color: var(--white); }
.btn-outline-white { border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { color: var(--white); background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { color: var(--ink); }

/* ---------- ラベル ---------- */
.label { display: inline-block; align-self: flex-start; padding: 4px 14px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; background: var(--ink); color: var(--white); }
.label.pop { background: var(--pop); color: var(--ink); font-weight: 600; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag-pop { background: var(--pop); color: var(--ink); }
.tag-line { border: 1px solid rgba(255,255,255,.6); }
.tag-soft { background: var(--soft); }
.marker { background: linear-gradient(transparent 62%, var(--pop) 62%); }

/* ---------- ヘッダー ---------- */
.site-header { position: relative; z-index: 5; }
.site-header.light { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header.on-accent { position: absolute; top: 0; left: 0; right: 0; color: var(--white); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--accent); }
.on-accent .brand, .on-accent .brand:hover { color: var(--white); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 26px; letter-spacing: .04em; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.on-accent .brand-sub { color: var(--white); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; font-weight: 700; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.on-accent .main-nav a:not(.btn) { color: var(--white); }
.main-nav a.is-current { color: var(--accent); }

/* ---------- ヒーロー ---------- */
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 160px; padding-bottom: 120px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; }
.hero-badge b { padding: 2px 10px; background: var(--pop); color: var(--ink); border-radius: 999px; font-weight: 600; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.15; letter-spacing: -.01em; }
.hero-ai { display: inline-block; padding: 0 16px; margin: 0 4px 0 -4px; background: var(--pop); color: var(--ink); transform: rotate(-2deg); border-radius: 10px; }
.hero-lead { font-size: 19px; max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { flex: 1 1 420px; min-width: 0; position: relative; }
.sheet { background: var(--white); color: var(--ink); border-radius: 20px; padding: 16px; transform: rotate(2.5deg); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.sheet-frame { border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.sheet-plan { padding: 18px; aspect-ratio: 4 / 3; }
.sheet-plan svg { width: 100%; height: 100%; display: block; }
.title-block { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1.5px solid var(--ink); font-size: 11px; line-height: 1.4; }
.title-block > div { padding: 8px 10px; border-right: 1px solid var(--ink); }
.title-block > div:last-child { border-right: 0; }
.title-block small { display: block; font-family: var(--font-mono); color: var(--muted); font-size: 10px; }
.title-block strong { font-weight: 700; }
.sticker { position: absolute; padding: 10px 18px; border-radius: 14px; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.sticker-ink { left: -28px; top: -24px; background: var(--ink); color: var(--white); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; transform: rotate(-4deg); display: flex; align-items: center; gap: 8px; }
.sticker-ink i { width: 8px; height: 8px; border-radius: 50%; background: var(--pop); }
.sticker-pop { right: -12px; bottom: -52px; background: var(--pop); color: var(--ink); font-family: var(--font-head); font-weight: 900; font-size: 18px; transform: rotate(-3deg); }

/* ---------- ソフト帯 ---------- */
.software-band { background: var(--pop); color: var(--ink); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.software-band .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 18px; padding-bottom: 18px; font-family: var(--font-head); font-weight: 900; font-size: 22px; }

/* ---------- セクション共通 ---------- */
.section { padding: 120px 0 104px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 56px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.25; }
.section-head p { max-width: 440px; color: var(--text); }

/* ---------- カード ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 320px; min-width: 0; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; background: var(--soft); }
.card.is-accent { background: var(--accent); color: var(--white); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; }
.card-num { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 900; font-size: 22px; background: var(--ink); color: var(--white); }
.card.is-accent .card-num { background: var(--pop); color: var(--ink); }
.card h3 { font-size: 30px; line-height: 1.35; }
.card p { font-size: 15px; color: var(--text); }
.card.is-accent p { color: var(--white); }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card .tag { background: var(--white); }
.card.is-accent .tag { background: transparent; border: 1px solid rgba(255,255,255,.6); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 事例 ---------- */
.case-inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.case-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.case-copy h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.3; }
.case-copy h2 em { font-style: normal; color: var(--pop); }
.case-copy p { color: #C5CEDB; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; }
.steps b { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pop); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); }
.case-media { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.case-media .wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.case-media > * { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { background: #1B2A42; border: 1px dashed #5D6E8A; display: flex; align-items: center; justify-content: center; color: #C5CEDB; font-size: 14px; }
.case-subject { background: var(--accent); padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.case-subject span { font-family: var(--font-mono); font-size: 12px; }
.case-subject strong { font-family: var(--font-head); font-weight: 900; font-size: 24px; line-height: 1.4; }

/* ---------- ツールカード ---------- */
.tool-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.tool-card { flex: 1 1 240px; min-width: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 20px; padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; box-shadow: 6px 6px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.tool-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.tool-card.is-members { background: var(--accent); color: var(--white); }
.tool-card .tag { align-self: flex-start; }
.tool-card.is-members .tag { background: var(--white); color: var(--ink); }
.tool-card strong { font-family: var(--font-head); font-weight: 900; font-size: 21px; line-height: 1.4; }
.tool-card span.desc { font-size: 14px; color: var(--text); }
.tool-card.is-members span.desc { color: var(--white); }

/* ---------- 料金 ---------- */
.price-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.price { flex: 1 1 240px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.price.is-accent { background: var(--accent); color: var(--white); }
.price .name { font-weight: 700; font-size: 18px; }
.price .unit { font-size: 14px; color: var(--muted); }
.price.is-accent .unit { color: var(--white); }
.price .amount { margin-top: 12px; font-family: var(--font-head); font-weight: 900; font-size: 44px; line-height: 1; }
.price .ribbon { position: absolute; top: -14px; right: 20px; padding: 4px 14px; background: var(--pop); color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; transform: rotate(3deg); }

/* ---------- 講師 ---------- */
.about-inner { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: center; }
.about-photo { flex: 0 1 380px; min-width: 240px; position: relative; }
.about-photo .photo { aspect-ratio: 4 / 5; background: #E8EDF4; border-radius: 28px; display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; }
.about-photo .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .sticker-pop { left: -20px; right: auto; bottom: 28px; }
.about-copy { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 640px) { .about-photo { flex-basis: 100%; } }
.about-copy h2 { font-size: clamp(34px, 4vw, 52px); }
.about-copy p { color: var(--text); }
.about-copy .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-copy .tag { padding: 6px 14px; font-size: 13px; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0 24px 96px; }
.cta { max-width: 1240px; margin: 0 auto; background: var(--pop); border: 3px solid var(--ink); border-radius: 32px; position: relative; overflow: hidden; }
.cta .bg-mark { color: var(--ink); opacity: .16; right: -60px; top: -70px; }
.cta-inner { position: relative; padding: 72px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.25; }
.cta p { font-size: 17px; margin-top: 12px; }

/* ---------- 下層ページの見出し ---------- */
.page-hero .container { position: relative; padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.2; }
.page-hero p { max-width: 640px; }
.page-hero .bg-mark { right: -100px; top: -120px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--white); }
.page-hero .tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- ツールページ ---------- */
.tool-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 96px; }
.tool-frame { flex: 999 1 640px; min-width: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 14px; box-shadow: 8px 8px 0 var(--ink); margin-top: -40px; position: relative; }
.tool-frame-bar { display: flex; justify-content: space-between; padding: 4px 8px 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); gap: 12px; }
.tool-frame iframe { width: 100%; min-height: 640px; border: 0; border-radius: 14px; display: block; background: #F7F9FC; }
.tool-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 32px; }
.side-box { background: var(--soft); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.side-box h2 { font-size: 18px; font-weight: 700; }
.side-box ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; counter-reset: s; }
.side-box ol li { display: flex; gap: 12px; counter-increment: s; }
.side-box ol li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-weight: 600; color: var(--accent); }
.side-box small { font-size: 12px; color: var(--muted); }
.side-cta { background: var(--pop); border: 2px solid var(--ink); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.side-cta strong { font-family: var(--font-head); font-size: 18px; line-height: 1.5; }
.side-cta .btn { justify-content: center; min-height: 48px; font-size: 15px; }
.other-tools { display: flex; flex-direction: column; }
.other-tools a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #C5CEDB; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { color: var(--white); }
.site-footer a { color: #C5CEDB; text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-start; }
.copyright { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid #24324A; font-size: 12px; color: #AEB9C9; }

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
  .hero-inner { padding-top: 200px; gap: 56px; }
  .sticker-ink { left: 0; }
  .card, .price { padding: 28px; }
  .cta-inner { padding: 48px 28px; }
  .section { padding: 80px 0 72px; }
  .tool-frame { margin-top: -24px; }
}

/* ---------- お問い合わせフォーム ---------- */
.form-wrap { max-width: 860px; }
.form { display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 280px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 28px; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field em { font-style: normal; font-size: 11px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--pop); color: var(--ink); vertical-align: middle; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 52px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 14px; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); font-weight: 700; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.form-note { font-size: 13px; color: var(--muted); }
.form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.form-errors { background: #FFF1EE; border: 2px solid #C2410C; border-radius: 16px; padding: 16px 20px; margin-bottom: 28px; color: #9A3412; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.form-done h2 { font-size: 40px; }
.form > .field { flex: none; }

/* =========================================================
   CMSブロック
   ========================================================= */
.flow > * + * { margin-top: 40px; }
.flow .section-head { margin-bottom: 8px; }
.bg-soft { background: var(--soft); }
.bg-dark { background: var(--ink); color: var(--white); }
.bg-accent { background-color: var(--accent); color: var(--white); }
.bg-dark .label, .bg-accent .label { background: var(--pop); color: var(--ink); font-weight: 600; }
.bg-dark .section-head p, .bg-accent .section-head p { color: #D5DCE6; }
.bg-dark .marker, .bg-accent .marker { background: none; color: var(--pop); }

.prose { font-size: 17px; line-height: 1.95; color: var(--text); max-width: 780px; }
.bg-dark .prose, .bg-accent .prose { color: #D5DCE6; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose mark { background: linear-gradient(transparent 60%, var(--pop) 60%); color: inherit; }
.blk-h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.35; }
.blk-h3 { font-size: 24px; line-height: 1.4; font-weight: 700; }
.prose-list { margin: 0; padding-left: 1.4em; font-size: 17px; line-height: 1.9; color: var(--text); max-width: 780px; display: flex; flex-direction: column; gap: 6px; }
.bg-dark .prose-list { color: #D5DCE6; }
.prose-list li::marker { color: var(--accent); font-weight: 700; }
.bg-white .steps li, .bg-soft .steps li { background: var(--white); border: 1px solid var(--line); }
.bg-white .steps li { background: var(--soft); border: 0; }

.blk-image { margin: 0; }
.blk-image img { width: 100%; border-radius: 20px; }
.blk-image.w-normal { max-width: 780px; }
.blk-image.w-full { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.blk-image.w-full img { border-radius: 0; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.bg-dark figcaption { color: #AEB9C9; }
.img-empty, .photo-empty { min-height: 160px; border: 2px dashed #9AA6B8; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; background: rgba(255,255,255,.4); }
.photo-empty { min-height: 100%; height: 100%; border-radius: 28px; }
.about-inner.is-right { flex-direction: row-reverse; }
.about-copy p { font-size: 17px; line-height: 1.9; }
.blk-button.center { text-align: center; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { color: var(--ink); }
.blk-table { max-width: 900px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.blk-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.7; color: var(--text); }
.blk-table th, .blk-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.blk-table tr:last-child td { border-bottom: 0; }
.blk-table th { background: var(--soft, #F3F5F8); font-weight: 700; font-size: 14px; white-space: nowrap; }
.blk-table td:first-child { font-weight: 700; white-space: nowrap; }
.blk-table a { color: var(--accent-ink, inherit); text-decoration: underline; }
@media (max-width: 640px) { .blk-table td:first-child { white-space: normal; } .blk-table th, .blk-table td { padding: 10px 12px; } }
.blk-hr { border: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); margin-top: 56px; margin-bottom: 16px; }

.blk-video { margin: 0; max-width: 960px; }
.yt-lite, .blk-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: #000; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt-lite:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.blk-video.is-short { max-width: 360px; }
.blk-video.is-short .yt-lite, .blk-video.is-short iframe { aspect-ratio: 9 / 16; }

.blk-pdf { margin: 0; border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--white); max-width: 960px; color: var(--ink); }
.pdf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pdf-name { flex: 1 1 200px; font-weight: 700; }
.pdf-view { max-height: 78vh; overflow: auto; -webkit-overflow-scrolling: touch; background: #E9EDF3; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.pdf-page { position: relative; background: var(--white); box-shadow: 0 2px 10px rgba(14,26,43,.12); }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-num { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(14,26,43,.75); color: #fff; font-family: var(--font-mono); font-size: 11px; }
.pdf-loading { margin: 24px; color: var(--muted); }
.sheet-photo { padding: 10px; }
.sheet-photo img { border-radius: 12px; width: 100%; }

.preview-bar { position: sticky; top: 0; z-index: 50; background: var(--pop); color: var(--ink); text-align: center; font-weight: 700; font-size: 13px; padding: 6px; }
.is-editing { outline: 3px solid var(--pop); outline-offset: 6px; border-radius: 8px; }
.tool-grid + .blk-button { margin-top: 28px; }

/* ---------- ブログ ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.post-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--accent); color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.post-body time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.post-body strong { font-family: var(--font-head); font-weight: 900; font-size: 19px; line-height: 1.45; }
.post-body .desc { font-size: 14px; color: var(--text); }
.post-head { padding-bottom: 24px; }
.post-container, .post-body-wrap .container { max-width: 860px; }
.post-crumb { font-family: var(--font-mono); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.post-crumb a { color: var(--muted); }
.post-date { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-weight: 600; }
.post-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.35; margin-top: 8px; }
.is-post main > .section:not(.post-head):not(.bg-soft) { padding-top: 8px; }
.is-post main > .section:not(.post-head):not(.bg-soft) > .container { max-width: 860px; }

.section.post-head { padding: 56px 0 8px; }
.section.post-foot { padding: 64px 0; }
@media (max-width: 720px) { .section.post-head { padding-top: 32px; } }
