/* メディリンクス studio 下層・共通 */
:root {
  --plum: #321D3E;
  --paper: #F7F6F2;
  --teal: #35BABA;
  --rose: #E7C7D4;
  --copper: #A5634F;
  --copper-ink: #7C493B;
  --muted: rgba(247, 246, 242, .7);
  --ink-muted: rgba(50, 29, 62, .72);
  --line: rgba(247, 246, 242, .22);
  --ink-line: rgba(50, 29, 62, .2);
  --header-h: 64px;
  --gutter: clamp(24px, 6vw, 80px);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--plum);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.keep-phrase { display: inline-block; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--teal); color: var(--plum); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  background: var(--paper); color: var(--plum);
  border-bottom: 1px solid var(--plum);
}
.site-brand { display: block; flex: none; }
.site-brand img { width: 168px; height: auto; }
.site-category {
  font-size: 13px; letter-spacing: .12em; color: var(--ink-muted);
  padding-left: 20px; border-left: 1px solid var(--ink-line); line-height: 1.2;
}
.site-location { display: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); }
.site-nav a {
  font-size: 15px; font-weight: 600; text-decoration: none; position: relative; padding: 4px 0; white-space: nowrap;
}
.site-nav a:not(.nav-contact)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:not(.nav-contact):hover::after,
.site-nav a:is([aria-current="page"], [aria-current="location"])::after { transform: scaleX(1); }
.site-nav .nav-contact {
  background: var(--plum); color: var(--paper); padding: 10px 20px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.site-nav .nav-contact:hover { background: var(--teal); color: var(--plum); }
.menu-toggle {
  display: none; margin-left: auto;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--plum);
  background: none; border: 1px solid var(--plum); padding: 6px 14px; cursor: pointer;
}

@media (min-width: 861px) {
  .site-nav { flex-shrink: 0; }
}
@media (min-width: 861px) and (max-width: 1279px) {
  .site-header { padding-inline: clamp(24px, 4vw, 56px); }
  .site-category { display: none; }
}

@media (max-width: 860px) {
  .site-category { display: none; }
  .menu-ready .site-header { gap: clamp(8px, 2.8vw, 16px); padding-inline: clamp(12px, 4vw, 28px); }
  .site-brand img { width: clamp(98px, 31vw, 140px); }
  .menu-ready .site-location {
    display: block;
    min-width: 0;
    border-inline-start: 1px solid var(--ink-line);
    padding-inline-start: clamp(7px, 2vw, 11px);
    color: var(--plum);
    font-size: clamp(11px, 2.9vw, 13px);
    font-weight: 740;
    line-height: 1.35;
    letter-spacing: 0;
  }
  .menu-ready .menu-toggle { display: block; flex: none; min-height: 44px; padding-inline: clamp(8px, 2.7vw, 14px); }
  .menu-ready .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--plum);
    padding: 8px var(--gutter) 24px;
    display: none;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-ready .site-nav.is-open { display: flex; }
  .menu-ready .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 17px; }
  .menu-ready .site-nav a::after { display: none; }
  .menu-ready .site-nav a[aria-current] {
    border-inline-start: 3px solid var(--teal);
    padding-inline-start: 12px;
    font-weight: 800;
  }
  .menu-ready .site-nav .nav-contact { margin-top: 16px; text-align: center; border: 0; }
  /* メニューの準備前もナビを横スクロールで読める */
  html:not(.menu-ready) .site-header { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 10px; }
  html:not(.menu-ready) .site-nav { margin-left: 0; width: 100%; overflow-x: auto; }
  html:not(.menu-ready) main { padding-top: 120px; }
}

main { padding-top: var(--header-h); display: block; }

/* レイアウト */
.shell { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 160px); scroll-margin-top: var(--header-h); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.paper-section { background: var(--paper); color: var(--plum); }
.rose-section { background: var(--rose); color: var(--plum); }
.paper-section + .section, .rose-section + .section, .section + .paper-section, .section + .rose-section { border-top: 0; }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--teal); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.paper-section .kicker, .rose-section .kicker { color: var(--copper-ink); }
.section-title {
  font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; line-height: 1.35; letter-spacing: .01em;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 2; max-width: 38em; }
.muted { color: var(--muted); }
.paper-section .muted, .rose-section .muted { color: var(--ink-muted); }
.note { font-size: 14px; line-height: 1.8; color: var(--muted); }
.paper-section .note, .rose-section .note { color: var(--ink-muted); }

/* ボタン */
.button {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 32px;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-decoration: none;
  background: var(--teal); color: var(--plum); border: 2px solid var(--teal); border-radius: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background .2s, color .2s, border-color .2s;
}
.button::after { content: "→"; transition: transform .2s; }
.button:hover { background: var(--paper); border-color: var(--paper); }
.button:hover::after { transform: translateX(4px); }
.paper-section .button:hover, .rose-section .button:hover { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.button--light { background: var(--paper); border-color: var(--paper); color: var(--plum); }
.button--light:hover { background: var(--teal); border-color: var(--teal); }
.button--line { background: transparent; color: inherit; border-color: currentColor; clip-path: none; }
.button--line:hover { background: var(--paper); color: var(--plum); border-color: var(--paper); }
.paper-section .button--line:hover, .rose-section .button--line:hover { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.button--line:hover > span, .button--line:hover::after { color: var(--plum); }
.paper-section .button--line:hover > span, .paper-section .button--line:hover::after { color: var(--paper); }
.button--back::after { content: none; }
.button--back::before { content: "←"; }
.button:focus-visible { outline: 3px solid var(--plum); outline-offset: -6px; }
.button--line:focus-visible { outline-color: var(--paper); outline-offset: 3px; }
.paper-section .button--line:focus-visible, .rose-section .button--line:focus-visible, .top-intro .button--line:focus-visible { outline-color: var(--plum); }
.contact-band .button:focus-visible, .site-nav .nav-contact:focus-visible { outline-color: var(--paper); outline-offset: -6px; }
.text-link {
  display: inline-flex; gap: 10px; align-items: center; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--teal); padding-bottom: 2px;
}
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ページ見出し：大きな番号と斜めのアート断片 */
.page-head {
  position: relative; overflow: hidden;
  min-height: clamp(440px, 62vh, 640px);
  display: flex; align-items: flex-end;
  padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--paper);
}
.page-head .shell { position: relative; z-index: 2; }
.page-head__index {
  font-size: 13px; letter-spacing: .24em; font-weight: 700; color: var(--teal);
  display: flex; gap: 16px; align-items: baseline; margin-bottom: 28px;
}
.page-head__index b { font-size: clamp(56px, 8vw, 104px); line-height: .8; font-weight: 300; letter-spacing: -.02em; color: var(--paper); }
.page-head h1 { font-size: clamp(36px, 6vw, 76px); font-weight: 600; line-height: 1.25; max-width: 12em; }
.page-head h1, .article-head h1 { text-wrap: balance; }
.page-head .lead { margin-top: 28px; color: var(--muted); max-width: 32em; }
.page-head__art {
  position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: min(54%, 720px);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--rose);
  pointer-events: none;
}
.page-head__art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-head__art--teal { background: var(--teal); }
.page-head__art--paper { background: var(--paper); }
.page-head__art--copper { background: var(--copper); }
.page-head__slash {
  position: absolute; z-index: 1; left: 44%; top: -10%; width: 2px; height: 130%;
  background: var(--teal); transform: rotate(18deg); transform-origin: top;
}
@media (max-width: 860px) {
  .page-head { min-height: 0; padding-top: 48vw; }
  .page-head__art { width: 100%; height: 44vw; bottom: auto; clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); }
  .page-head__slash { display: none; }
  .page-head--brief { padding-block: calc(min(30vw, 160px) + 20px) 36px; }
  .page-head--brief .page-head__art { height: min(30vw, 160px); }
  .page-head--brief .page-head__index { margin-bottom: 18px; }
  .page-head--brief .lead { margin-top: 18px; }
  .contact-section.section { padding-top: 36px; }
  .case-study.section { padding-block: 48px; }
  .case-study .art-cut { display: none; }
}

/* 斜めのアート断片（本文内） */
.art-cut {
  position: relative; overflow: hidden; background: var(--rose);
  aspect-ratio: 4 / 5;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}
.art-cut img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-cut--teal { background: var(--teal); }
.art-cut--plum { background: var(--plum); outline: 1px solid var(--line); }
.art-cut--wide { aspect-ratio: 16 / 7; clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 86%); }

/* 番号付きの章（サービス・事例） */
.chapter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.chapter__num {
  font-size: clamp(120px, 18vw, 240px); font-weight: 200; line-height: .78; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--teal); display: block; margin-bottom: 24px;
}
.chapter__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.4; margin-bottom: 28px; }
.chapter__body p + p { margin-top: 1.2em; }
.chapter--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter--reverse > :first-child { order: 0; }
  .chapter .art-cut { aspect-ratio: 16 / 10; }
}

/* 罫線リスト */
.rule-list { border-top: 1px solid currentColor; }
.rule-list > li {
  display: grid; grid-template-columns: 4.5em 1fr; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.paper-section .rule-list > li, .rose-section .rule-list > li { border-bottom-color: var(--ink-line); }
.rule-list__no { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--teal); padding-top: .3em; }
.paper-section .rule-list__no, .rose-section .rule-list__no { color: var(--copper-ink); }

/* ステップ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid currentColor; margin-top: 56px; }
.steps li { padding: 32px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.steps b { display: block; font-size: 64px; font-weight: 200; line-height: 1; margin-bottom: 20px; color: var(--copper); }
.steps h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--ink-line); }
}

/* 二段組の見出し＋本文 */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 2px solid currentColor; }
.faq__item { border-bottom: 1px solid var(--ink-line); }
.faq__q {
  width: 100%; display: grid; grid-template-columns: 3em 1fr 28px; align-items: center; gap: 12px;
  padding: 26px 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
  font: inherit; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; line-height: 1.6;
}
.faq__q::before { content: "Q"; font-size: 28px; font-weight: 300; color: var(--copper); }
.faq__q::after {
  content: ""; width: 18px; height: 18px; justify-self: end;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .25s;
}
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 28px calc(3em + 12px); max-width: 52em; color: var(--ink-muted); }
.faq__a[hidden] { display: none; }

/* 数字（事例） */
.figure-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em .3em; line-height: 1; font-weight: 200; letter-spacing: -.03em; }
.figure-num__val { font-size: clamp(88px, 15vw, 200px); }
.figure-num__unit { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: 0; }
.figure-num__arrow { font-size: clamp(40px, 6vw, 80px); color: var(--teal); padding-inline: .1em; }
.figure-num--comparison { flex-wrap: nowrap; gap: clamp(8px,1.2vw,18px); }
.figure-num__group { display: inline-flex; align-items: baseline; gap: 4px; }
.figure-num--comparison .figure-num__val { font-size: clamp(56px,8vw,112px); }
.figure-num--comparison .figure-num__unit { font-size: clamp(18px,2vw,26px); }
.figure-num--comparison .figure-num__arrow { font-size: clamp(28px,3.5vw,48px); padding: 0; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; letter-spacing: .1em; margin-bottom: 28px; }
.case-meta span { border-top: 2px solid currentColor; padding-top: 6px; }
.case-study__summary { margin-top: 24px; max-width: 34em; }
.guarantee-note {
  margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--copper); font-size: 15px; line-height: 1.8;
}

/* 記事一覧 */
.blog-tools {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between;
  padding-bottom: 32px; border-bottom: 2px solid currentColor; margin-bottom: 8px;
}
.search { display: grid; gap: 8px; min-width: min(100%, 360px); }
.search label { font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.search input {
  font: inherit; font-size: 17px; padding: 12px 0; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid currentColor; border-radius: 0; outline: none;
}
.search input:focus { border-bottom-color: var(--teal); box-shadow: 0 2px 0 var(--teal); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.filters legend { font-size: 13px; font-weight: 700; letter-spacing: .14em; margin-bottom: 8px; width: 100%; }
.filter {
  font: inherit; font-size: 15px; font-weight: 700; padding: 8px 18px; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 0;
}
.filter[aria-pressed="true"] { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.blog-status { font-size: 14px; color: var(--ink-muted); margin: 16px 0 0; min-height: 1.8em; }
.article-list > li { border-bottom: 1px solid var(--ink-line); }
.article-list a {
  display: grid; grid-template-columns: 7em 6em 1fr 32px; gap: 16px 28px; align-items: baseline;
  padding: 32px 0; text-decoration: none; transition: padding .25s, background .25s;
}
.article-list a:hover { padding-left: 16px; }
.article-list a::after { content: "→"; justify-self: end; font-size: 20px; }
.article-list time { font-size: 14px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.article-list .tag { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--copper-ink); }
.article-list h2, .article-list h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; line-height: 1.55; }
.article-list > li[hidden] { display: none; }
.empty-state { padding: 48px 0; font-size: 17px; }
.empty-state[hidden] { display: none; }
@media (max-width: 760px) {
  .article-list a { grid-template-columns: auto 1fr; }
  .article-list h2, .article-list h3 { grid-column: 1 / -1; }
  .article-list a::after { display: none; }
}

/* 記事詳細 */
.article-head { padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.article-head .shell { position: relative; z-index: 2; }
.article-head__meta { display: flex; gap: 20px; font-size: 14px; letter-spacing: .12em; margin-bottom: 24px; color: var(--muted); }
.article-head__meta .tag { color: var(--teal); font-weight: 700; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; line-height: 1.45; max-width: 18em; }
.article-head__art { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 34%; clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); background: var(--rose); opacity: .95; }
.article-head__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .article-head__art { display: none; } }
.prose { max-width: 40em; font-size: 17px; line-height: 2.05; }
.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.5;
  margin: 72px 0 20px; padding-top: 20px; border-top: 2px solid var(--plum);
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline;
}
.prose h2 span { font-size: 14px; color: var(--copper-ink); letter-spacing: .14em; }
.prose h2:first-of-type { margin-top: 48px; }
.prose p + p { margin-top: 1.2em; }
.prose .note { margin-bottom: 8px; padding: 12px 0; border-block: 1px solid var(--ink-line); }
.article-foot { margin-top: 80px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--ink-line); }

/* 会社 */
.company-table { border-top: 2px solid currentColor; }
.company-table div { display: grid; grid-template-columns: 9em 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--ink-line); }
.company-table dt { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--copper-ink); }
.company-table a { text-decoration-color: var(--teal); text-underline-offset: 4px; }
@media (max-width: 600px) { .company-table div { grid-template-columns: 1fr; gap: 4px; } }
.statement { font-size: clamp(26px, 3.6vw, 46px); font-weight: 600; line-height: 1.6; max-width: 20em; }
.statement em { font-style: normal; background: linear-gradient(transparent 62%, var(--teal) 62%); }

/* フォーム */
.form-steps { display: flex; gap: 0; margin-bottom: 56px; border-top: 2px solid currentColor; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.form-steps li { flex: 1; padding: 14px 0; color: var(--ink-muted); border-top: 4px solid transparent; margin-top: -3px; }
.form-steps li[aria-current="step"] { color: var(--plum); border-top-color: var(--teal); }
.form-steps b { font-size: 22px; font-weight: 300; margin-right: 8px; }
.field { display: grid; grid-template-columns: 13em 1fr; gap: 12px 32px; padding: 24px 0; border-bottom: 1px solid var(--ink-line); }
.field:first-of-type { border-top: 1px solid var(--ink-line); }
.field label, .field .field__label { font-weight: 700; padding-top: 12px; }
.req, .opt { display: inline-block; font-size: 12px; margin-left: 10px; padding: 1px 8px; letter-spacing: .1em; vertical-align: 2px; }
.req { background: var(--plum); color: var(--paper); }
.opt { border: 1px solid var(--ink-line); color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--plum);
  background: #fff; border: 1px solid rgba(50, 29, 62, .4); border-radius: 0; padding: 12px 14px;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--plum); }
.field [aria-invalid="true"] { border-color: var(--copper); box-shadow: inset 4px 0 0 var(--copper); }
.field__error { grid-column: 2; font-size: 14px; color: var(--copper-ink); font-weight: 700; min-height: 0; }
.field__error:empty { display: none; }
.consent { padding: 32px 0; display: grid; gap: 12px; }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 6px; accent-color: var(--plum); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.form-summary { border: 2px solid var(--copper); padding: 16px 20px; margin-bottom: 32px; font-weight: 700; }
.form-summary[hidden] { display: none; }
.confirm-list div { display: grid; grid-template-columns: 13em 1fr; gap: 12px 32px; padding: 20px 0; border-bottom: 1px solid var(--ink-line); }
.confirm-list div:first-child { border-top: 1px solid var(--ink-line); }
.confirm-list dt { font-weight: 700; }
.confirm-list dd { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 760px) {
  .field, .confirm-list div { grid-template-columns: 1fr; gap: 8px; }
  .field label, .field .field__label { padding-top: 0; }
  .field__error { grid-column: 1; }
}
.form-panel[hidden] { display: none; }
.done { padding: 40px 0; }
.done__mark { font-size: clamp(80px, 12vw, 160px); font-weight: 200; line-height: 1; color: var(--teal); -webkit-text-stroke: 1px var(--plum); }

/* 相談の帯 */
.contact-band { position: relative; overflow: hidden; background: var(--teal); color: var(--plum); padding-block: clamp(72px, 9vw, 128px); }
.contact-band .shell { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact-band__zero { font-size: clamp(120px, 20vw, 260px); font-weight: 200; line-height: .8; letter-spacing: -.05em; }
.contact-band__zero small { font-size: .2em; font-weight: 700; letter-spacing: 0; margin-left: .1em; }
.contact-band h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 600; line-height: 1.5; margin-bottom: 16px; }
.contact-band p { margin-bottom: 32px; max-width: 32em; }
.contact-band .button { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.contact-band .button:hover { background: var(--paper); color: var(--plum); border-color: var(--paper); }
.contact-band::before {
  content: ""; position: absolute; z-index: 1; right: -6%; top: 0; bottom: 0; width: 36%;
  background: var(--plum); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); opacity: .08;
}
@media (max-width: 760px) { .contact-band .shell { grid-template-columns: 1fr; } }

/* フッター */
.site-footer {
  --footer-rule: #c8d5d9;
  --footer-muted: #48595f;
  --footer-accent: #175c60;
  background: #f0f4f4;
  color: #1c3036;
  border-top: 1px solid var(--footer-rule);
  padding-block: clamp(28px, 5vw, 58px) 22px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
}
.site-footer__logo img { width: 178px; }
.site-footer address { font-style: normal; font-size: .9rem; line-height: 1.8; color: var(--footer-muted); }
.site-footer address strong { display: block; color: inherit; }
.site-footer nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(12px, 3vw, 38px); }
.site-footer nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--footer-rule);
  font-size: .9rem;
  line-height: 1.4;
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--footer-accent); text-decoration: underline; text-underline-offset: .3em; }
.site-footer a:focus-visible { outline-color: var(--footer-accent); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(22px, 4vw, 42px);
  padding-top: 14px;
  border-top: 1px solid var(--footer-rule);
  font-size: .81rem;
  color: var(--footer-muted);
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 文章に代えて、順序と比較の基準を見せる図。 */
.diagram-figure, .diagram-bars { margin-block: 18px; }
.diagram-figure figcaption, .diagram-bars figcaption { margin-bottom: 8px; font-size: .87rem; font-weight: 720; }
ol.diagram-flow, .depth-section ol.diagram-flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: clamp(16px, 3vw, 35px);
  margin: 12px 0;
  padding: 0;
  border-bottom: 1px solid var(--depth-rule, #d9d4d8);
  list-style: none;
}
ol.diagram-flow > li {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding-block: 16px 21px;
  border-top: 1px solid var(--depth-rule, #d9d4d8);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.depth-section ol.diagram-flow > li + li { margin-top: 0; }
.diagram-flow > li > svg { order: -1; display: block; width: 69px; height: 48px; }
.diagram-flow > li > strong { font-size: clamp(.99rem, 1.45vw, 1.12rem); }
.diagram-flow > li > span { color: var(--depth-muted, var(--ink-muted)); font-size: .9rem; }
.diagram-bars {
  padding: 12px clamp(11px, 2vw, 22px);
  border: 1px solid #a9c3b8;
  background: #edf3ed;
  color: #223c3b;
  font-variant-numeric: tabular-nums;
}
.diagram-bars__row {
  display: grid;
  grid-template-columns: minmax(4em, 7em) minmax(0, 1fr) minmax(4.5em, auto);
  align-items: center;
  gap: 8px;
  margin-block: 7px;
  font-size: .9rem;
  line-height: 1.35;
}
.diagram-bars__row > strong { text-align: right; }
.diagram-bars__track { height: 12px; background: #d9e4dd; }
.diagram-bars__track > span { display: block; width: clamp(0%, var(--bar, 0%), 100%); height: 100%; background: #277e74; }
.diagram-bars__row:nth-of-type(even) .diagram-bars__track > span { background: #925646; }
@media (max-width: 760px) {
  ol.diagram-flow, .depth-section ol.diagram-flow { grid-auto-flow: row; }
  ol.diagram-flow > li { padding-block: 18px 22px; }
  ol.diagram-flow > li:has(> svg) { min-height: 81px; padding-inline-start: 79px; }
  .diagram-flow > li > svg { position: absolute; top: 16px; left: 0; }
}

/* 出現 */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 下層の絵を出してもコピーを白衣の上へ流さない。 */
@media(min-width:861px) {
  .page-head__art { width: min(42%,620px); }
  .page-head h1 { font-size: clamp(36px,4.2vw,64px); max-width:10.8em; }
}

/* 記事を全文で読むための組版。元の色・固定幅・CMS装飾は持ち込まない。 */
.article-content { overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content h2 { display: block; }
.article-content h3 { font-size: clamp(19px,2vw,23px); line-height: 1.6; margin: 40px 0 16px; }
.article-content h4 { font-size: 18px; line-height: 1.6; margin: 28px 0 12px; }
.article-content p { margin-block: 1.2em; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-block: 1.3em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li + li { margin-top: .5em; }
.article-content a { text-decoration-thickness: 1px; text-underline-offset: .22em; }
.article-content blockquote { margin: 2em 0; padding: .5em 1.3em; border-left: 3px solid var(--copper); }
.article-content figure { max-width: 100%; margin-block: 2em; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin-block: 2em; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.article-content th, .article-content td { padding: 12px 16px; border: 1px solid var(--ink-line); vertical-align: top; min-width: 7em; }
.article-content th { background: var(--rose); text-align: left; }
.article-content pre { white-space: pre-wrap; font-size: .9em; }
.article-toc { padding: 24px; border: 1px solid var(--ink-line); margin-bottom: 48px; }
.article-toc ol { padding-left: 1.4em; list-style: decimal; }
.article-toc li { margin-top: 8px; }
.article-history-note { font-size: 14px; line-height: 1.9; color: var(--ink-muted); padding-block: 20px; border-block: 1px solid var(--ink-line); margin-bottom: 40px; }
.archive-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-block: 24px; font-size: 15px; }
.archive-nav a { text-underline-offset: .3em; }
.archive-nav#archive-filters { display: grid; grid-template-columns: 1fr 2fr; align-items: start; gap: 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--ink-line); }
.archive-nav > div > p { font-weight: 700; margin-bottom: 12px; }
.archive-nav > div > ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.archive-nav a { display: inline-block; padding-block: 6px; }
.archive-nav[aria-label="前後の記事"] { display: grid; grid-template-columns: 1fr; gap: 12px; margin-block: 48px 0; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.archive-summary { font-size: 15px; color: var(--ink-muted); margin-bottom: 24px; }
.pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink-line); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--plum); color: var(--paper); }
.pagination a:hover { background: var(--rose); }
.paper-section :focus-visible, .rose-section :focus-visible, .site-header :focus-visible, .contact-band :focus-visible { outline-color: var(--plum); }
@media(max-width:480px) {
  .prose { font-size: 16px; }
  .article-toc { padding: 20px; }
  .faq__q { grid-template-columns: 1.4em 1fr 20px; gap: 8px; }
  .faq__a { padding-left: 0; }
  .archive-nav#archive-filters { grid-template-columns: 1fr; gap: 28px; }
}

.top-work__more { margin-top: clamp(14px, 2vw, 27px); }
