/* 株式会社ソウヒロ / Joint — www.souhiro.com
   Palette: paper white, chestnut ink (leather), antique brass (#AG), antique silver (#AS), indigo (Kyoto ai) */
:root {
  --paper: #ffffff;
  --ink: #2e2520;
  --ink-soft: #5d524b;
  --brass: #94743a;
  --brass-light: #c9ae7a;
  --silver: #eceef0;
  --silver-deep: #d6dade;
  --indigo: #1e3a5f;
  --indigo-dark: #142a46;
  --line: #dcd8d1;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; color: var(--ink); letter-spacing: .04em; margin: 0; }
h1 { font-size: clamp(1.85rem, 1.1rem + 2vw, 2.4rem); line-height: 1.5; }
.ph { display: inline-block; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); line-height: 1.5; }
h3 { font-size: 1.15rem; line-height: 1.6; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 780px; }
.narrow > .contact-ways, .narrow > .order-ways { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sub { color: var(--ink-soft); font-size: .9rem; }
.note { color: var(--ink-soft); font-size: .92rem; margin-top: 32px; }

/* ---------- header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1.2; margin-right: auto; padding-block: 8px; }
.wm-logo { height: 58px; width: auto; }
.wm-text { display: flex; flex-direction: column; white-space: nowrap; }
.wm-co { font-family: var(--mincho); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; }
.wm-sub { font-size: .72rem; letter-spacing: .12em; color: var(--ink-soft); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brass-light); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav-contact a { color: var(--indigo); font-weight: 600; }
.header-tel a { font-family: var(--mincho); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: .05em; white-space: nowrap; }
.menu-btn { display: none; }

.header-tel { display: none; }
.site-nav ul { gap: 20px; }
@media (max-width: 1080px) {
  .header-inner { min-height: 64px; }
  .wm-logo { height: 46px; }
  .menu-btn {
    display: inline-block; font: inherit; font-size: .9rem; color: var(--ink);
    background: none; border: 1px solid var(--ink); border-radius: 4px; padding: 6px 14px; cursor: pointer;
  }
  .js .site-nav { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
  }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .header-tel { display: block; margin-top: 16px; }
  .header-tel a { font-size: 1.3rem; }
}

/* ---------- breadcrumbs / page head */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--ink-soft); padding-top: 18px; }
.crumbs li + li::before { content: "／"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-soft); }
.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.page-lead { margin-top: 16px; max-width: 40em; color: var(--ink-soft); }
.page-head .btn { margin-top: 20px; }

/* ---------- buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; letter-spacing: .05em;
  padding: 13px 24px; border-radius: 4px; border: 1.5px solid var(--indigo); line-height: 1.4;
}
.btn-fill { background: var(--indigo); color: #fff; }
.btn-fill:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); color: #fff; }
.btn-line { background: transparent; color: var(--indigo); }
.btn-line:hover { background: var(--indigo); color: #fff; }

/* ---------- hero */
.hero { padding-block: clamp(36px, 6vw, 80px) var(--sec); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-brand { font-size: .88rem; color: var(--brass); letter-spacing: .1em; margin-bottom: 18px; font-weight: 600; }
.lead { margin-top: 24px; max-width: 34em; color: var(--ink); }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .78rem; color: var(--ink-soft); letter-spacing: .1em; }
.facts dd { margin: 2px 0 0; font-family: var(--mincho); font-weight: 700; font-size: 1.12rem; }
.facts dd small { display: block; margin-top: 2px; font-family: inherit; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* parts tray — the signature element */
.tray {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  background: var(--silver); padding: 10px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--silver-deep);
}
.slot { position: relative; background: var(--paper); border-radius: 3px; padding: 10px; box-shadow: inset 0 0 0 1px var(--silver-deep); display: flex; flex-direction: column; gap: 8px; }
.slot img { width: 100%; aspect-ratio: 1; object-fit: contain; flex: none; }
.slot .tag { margin-top: auto; }
.tag {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  padding: 5px 8px 5px 22px; border: 1px solid var(--line); border-radius: 3px 10px 10px 3px; background: #fff;
  font-size: .68rem; line-height: 1.35;
}
.tag::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; border: 1px solid var(--brass); background: var(--silver);
}
.tag-code { color: var(--brass); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tag-name { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .slot { animation: settle .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
  @keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-tray { order: -1; }
  .tray { max-width: 520px; }
}
@media (max-width: 480px) {
  .tray { gap: 6px; padding: 6px; }
  .slot { padding: 6px; gap: 6px; }
  .tag { padding: 3px 5px 3px 16px; font-size: .6rem; }
  .tag::before { left: 5px; width: 6px; height: 6px; margin-top: -3px; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }
}

/* ---------- section scaffolding */
.ways, .cats, .flow-sec, .works-teaser, .news-sec { padding-block: var(--sec); }
.ways { background: var(--silver); }
.flow-sec { background: var(--silver); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.ways h2, .flow-sec h2 { margin-bottom: 40px; }
.more { margin-top: 14px; }

/* ways: three columns divided by brass rules, not cards */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.way { padding: 4px 28px 0; border-left: 1px solid var(--brass-light); }
.way:first-child { border-left: none; padding-left: 0; }
.way h3 { font-size: 1.3rem; margin-bottom: 12px; }
.way p { font-size: .95rem; }
@media (max-width: 820px) {
  .ways-grid { grid-template-columns: 1fr; gap: 28px; }
  .way, .way:first-child { border-left: none; border-top: 1px solid var(--brass-light); padding: 22px 0 0; }
}

/* categories */
.cat-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.cat-img { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.cat-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.cat h3 { margin-top: 14px; font-size: 1.08rem; }
.cat-desc { font-size: .9rem; margin-top: 6px; }
.code { white-space: nowrap; }
.cat-codes { font-size: .78rem; color: var(--brass); margin-top: 6px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cat-link { margin-top: 8px; font-size: .88rem; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* flow (real sequences only) */
.flow { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.flow > li { counter-increment: step; position: relative; padding-top: 58px; }
.flow > li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--mincho); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--brass);
}
.flow > li::after { content: ""; position: absolute; top: 20px; left: 44px; right: -14px; height: 1px; background: var(--brass-light); }
.flow > li:last-child::after { display: none; }
.flow h3 { margin-bottom: 8px; }
.flow p { font-size: .93rem; }
.flow-v { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
.flow-v > li { padding: 4px 0 28px 64px; }
.flow-v > li::after { top: 48px; bottom: 6px; left: 15px; right: auto; width: 1px; height: auto; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow > li { padding: 4px 0 28px 64px; }
  .flow > li::after { top: 48px; bottom: 6px; left: 15px; right: auto; width: 1px; height: auto; display: block; }
  .flow > li:last-child::after { display: none; }
}

/* works */
.works-row { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.works-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
@media (max-width: 860px) { .works-row { grid-template-columns: repeat(3, 1fr); } }
.works-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.works-grid figure { margin: 0; }
.works-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.works-grid figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.7; display: flex; flex-direction: column; }
.w-by { color: var(--ink-soft); font-size: .8rem; }
@media (max-width: 960px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; } }

/* news */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item.has-thumb { grid-template-columns: 160px 1fr; }
.news-item time { font-size: .85rem; color: var(--brass); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.news-item h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .03em; }
.news-body { font-size: .93rem; margin-top: 6px; }
.news-thumb img { border: 1px solid var(--line); border-radius: 3px; }
.news-sec .news-item > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: baseline; }
@media (max-width: 560px) {
  .news-item.has-thumb { grid-template-columns: 96px 1fr; gap: 14px; }
  .news-sec .news-item > div { grid-template-columns: 1fr; gap: 2px; }
}

/* contact band */
.contact-band { background: var(--indigo); color: #fff; padding-block: clamp(48px, 7vw, 80px); }
.cb-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-band h2 { color: #fff; }
.cb-text p { margin-top: 12px; color: #dfe6ef; max-width: 30em; }
.cb-label { display: block; font-size: .82rem; letter-spacing: .12em; color: var(--brass-light); }
.cb-tel a { font-family: var(--mincho); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); color: #fff; text-decoration: none; letter-spacing: .04em; line-height: 1.3; }
.cb-tel a:hover { text-decoration: underline; }
.cb-sub { color: #c7d2e0; font-size: .9rem; }
.cb-actions .btn-line { color: #fff; border-color: #fff; margin-top: 18px; }
.cb-actions .btn-line:hover { background: #fff; color: var(--indigo); }
@media (max-width: 820px) { .cb-inner { grid-template-columns: 1fr; gap: 24px; } }

/* footer */
.site-footer { background: var(--ink); color: #e9e3dc; padding-top: 56px; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.f-wordmark { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.f-wordmark .wm-logo { height: 52px; }
.f-wordmark .wm-co { color: #fff; }
.site-footer address { font-style: normal; line-height: 2; }
.f-nav ul, .f-shops ul { list-style: none; }
.f-nav li { padding: 3px 0; }
.f-nav a, .f-shops a { text-decoration: none; }
.f-nav a:hover, .f-shops a:hover { text-decoration: underline; }
.f-shops li { display: flex; flex-direction: column; padding: 3px 0 8px; }
.f-shops li span { font-size: .8rem; color: #cbbfb3; }
.f-head { font-size: .8rem; letter-spacing: .12em; color: var(--brass-light); margin: 0 0 6px; }
.f-head + ul + .f-head { margin-top: 18px; }
.copyright { padding-block: 32px 28px; color: #b5a99d; border-top: 1px solid #4a3d35; margin-top: 48px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* inner pages */
.narrow h2 { margin: 56px 0 20px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
.narrow > h2:first-child { margin-top: 0; }
.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); margin-bottom: var(--sec); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 9.5em; font-weight: 600; color: var(--ink-soft); font-size: .92rem; padding-right: 16px; }
.plain { list-style: none; }
.clients { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; margin-bottom: 6px; }
@media (max-width: 560px) { .clients { grid-template-columns: 1fr; } }
.plain li { padding-left: 1em; text-indent: -1em; }
.plain li::before { content: "・"; }
@media (max-width: 560px) {
  .spec th, .spec td { display: block; width: auto; padding: 0; border: none; }
  .spec th { padding-top: 16px; }
  .spec td { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
}
.facts-lg { grid-template-columns: 1fr; }
.facts-lg div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; align-items: baseline; padding: 16px 0; }
.facts-lg dt { font-size: .9rem; }
.facts-lg dd { font-family: var(--sans); font-weight: 400; font-size: 1rem; }
@media (max-width: 560px) { .facts-lg div { grid-template-columns: 1fr; gap: 2px; } }
.order-ways, .contact-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-ways { grid-template-columns: 1fr 1fr; margin-bottom: 8px; }
.order-ways > div, .contact-ways > div { padding: 24px 24px 24px 0; }
.order-ways > div + div, .contact-ways > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.order-ways h3 { margin-bottom: 8px; }
.order-ways p { font-size: .93rem; }
.contact-ways h2 { margin: 0 0 10px !important; font-size: 1.2rem !important; }
.contact-ways .btn { margin: 8px 0 10px; }
.big-tel { font-family: var(--mincho); font-weight: 700; font-size: 1.7rem !important; margin-top: 10px; letter-spacing: .04em; }
.big-tel a { color: var(--ink); text-decoration: none; }
.big-tel a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .order-ways, .contact-ways { grid-template-columns: 1fr; }
  .order-ways > div + div, .contact-ways > div + div { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
}
.checklist { list-style: none; border-top: 1px solid var(--line); }
.checklist li { padding: 12px 0 12px 1.6em; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 9px; height: 9px; border: 1.5px solid var(--brass); border-radius: 2px; }
.prose p + p { margin-top: 12px; }
.catalog { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.catalog-dl { margin: 0; }
.catalog-title { font-weight: 600; margin-bottom: 12px; }
.cat-dl-list { list-style: none; display: grid; gap: 10px; margin-bottom: 12px; }
.cat-dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); background: #fff; }
.cat-dl:hover { border-color: var(--indigo); color: var(--ink); }
.cat-dl-name { font-weight: 600; color: var(--indigo); }
.cat-dl-meta { grid-row: 1 / span 2; grid-column: 2; font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.cat-dl-desc { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 480px) { .cat-dl { grid-template-columns: 1fr; } .cat-dl-meta { grid-row: auto; grid-column: auto; } }
.prose h2 { margin-top: 40px !important; }
section.wrap:last-child { padding-bottom: var(--sec); }
main > section.wrap.narrow, main > section.wrap { padding-bottom: var(--sec); }

@media print {
  .site-header nav, .menu-btn, .contact-band { display: none; }
}

/* ================= v10: brighter theme (cream, royal blue, pastel cards — in step with Joint Sewing) */
:root {
  --cream: #fbf5ea;
  --cream-deep: #f3e9d8;
  --indigo: #0f4c9c;
  --indigo-dark: #0a3878;
  --navy: #14305a;
  --sky: #e4f0fb;
  --rose: #fde8e6;
  --leaf: #e7f3df;
  --honey: #fdefc9;
  --line: #e6dccb;
}
h1, h2, h3 { color: var(--navy); }
.topbar { background: var(--indigo); color: #fff; font-size: .82rem; letter-spacing: .08em; text-align: center; padding: 6px 0; }
.topbar .wrap { display: block; }
.site-header { background: #fff; border-bottom: none; box-shadow: 0 1px 0 var(--line); }
.nav-contact a { background: var(--indigo); color: #fff !important; padding: 9px 18px !important; border-radius: 999px; border-bottom: none !important; }
.nav-contact a:hover { background: var(--indigo-dark); }
.btn { border-radius: 999px; padding: 14px 28px; }

.hero { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding-bottom: clamp(48px, 6vw, 80px); }
.hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.1vw, 2.5rem); }
.hero-sub { margin-top: 14px; font-size: .95rem; font-weight: 600; letter-spacing: .08em; color: var(--indigo); }
.facts { border-top: none; gap: 12px; margin-top: 30px; }
.facts div, .facts div:nth-child(odd) { border-bottom: none; border-radius: 14px; padding: 14px 18px; }
.facts div:nth-child(1) { background: var(--sky); }
.facts div:nth-child(2) { background: var(--rose); }
.facts div:nth-child(3) { background: var(--leaf); }
.facts div:nth-child(4) { background: var(--honey); }
.facts dt { color: var(--navy); font-weight: 600; }
.facts dd { color: var(--navy); }
.facts-lg { gap: 0; border-top: 1px solid var(--line); }
.facts-lg div, .facts-lg div:nth-child(odd), .facts-lg div:nth-child(n) { background: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
.facts-lg dd { color: var(--ink); }
.tray { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(20, 48, 90, .35); }
.slot { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.slot:nth-child(1), .slot:nth-child(5) { background: var(--sky); }
.slot:nth-child(2), .slot:nth-child(6) { background: var(--rose); }
.slot:nth-child(3) { background: var(--honey); }
.slot:nth-child(4) { background: var(--leaf); }
.slot img { border-radius: 8px; background: #fff; }
.tag { border-radius: 999px; border-color: transparent; padding-left: 24px; }
.tag::before { left: 9px; background: var(--indigo); border-color: var(--indigo); }
.tag-code { color: var(--indigo); }

.works-teaser { padding-block: clamp(40px, 6vw, 72px); }
.works-row img, .works-grid img { border-radius: 14px; }
.ways, .flow-sec { background: var(--cream); }
.ways-grid { gap: 20px; }
.way, .way:first-child { border: none; background: #fff; border-radius: 18px; padding: 26px 26px 24px; box-shadow: 0 10px 28px -20px rgba(20, 48, 90, .4); border-top: 6px solid var(--sky); }
.way:nth-child(1) { border-top-color: #8fc0ee; }
.way:nth-child(2) { border-top-color: #f2a7a0; }
.way:nth-child(3) { border-top-color: #a9cf8e; }
.cat-img { border-radius: 14px; border-color: var(--line); }
.cat-codes, .news-item time { color: var(--indigo); }
.flow > li::before { width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 1.3rem; display: grid; place-items: center; }
.flow > li::after { top: 22px; left: 54px; background: #b9cfe9; }
.flow-v > li::after, .flow-v > li:last-child::after { left: 21px; top: 52px; }
@media (max-width: 860px) { .flow > li::after { left: 21px; top: 52px; } }
.news-thumb img { border-radius: 10px; }

.page-head { background: var(--cream); max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); margin-bottom: clamp(32px, 5vw, 56px); }
.crumbs { background: var(--cream); }
.crumbs ol { padding-bottom: 0; }
.cat-dl { border-radius: 14px; background: var(--sky); border-color: transparent; }
.cat-dl:hover { border-color: var(--indigo); }
.order-ways, .contact-ways { border: none; gap: 16px; }
.order-ways > div, .contact-ways > div, .order-ways > div + div, .contact-ways > div + div { border: none; border-radius: 16px; padding: 22px; background: var(--sky); }
.order-ways > div:nth-child(2), .contact-ways > div:nth-child(2) { background: var(--leaf); }
.order-ways > div:nth-child(3) { background: var(--honey); }
.big-tel a { color: var(--navy); }

.contact-band { background: linear-gradient(120deg, #0f4c9c 0%, #2a74c9 100%); }
.cb-label { color: #ffe9a8; }
.cb-actions .btn-line { background: #fff; color: var(--indigo); border-color: #fff; }
.cb-actions .btn-line:hover { background: var(--honey); color: var(--indigo-dark); border-color: var(--honey); }
.site-footer { background: var(--cream); color: var(--ink); }
.site-footer a { color: var(--indigo); }
.f-wordmark .wm-co { color: var(--navy); }
.f-shops li span { color: var(--ink-soft); }
.f-head { color: var(--brass); font-weight: 600; }
.copyright { color: var(--ink-soft); border-top-color: var(--line); }
@media (max-width: 1080px) { .nav-contact a { background: none; color: var(--indigo) !important; padding: 14px 0 !important; border-radius: 0; border-bottom: 1px solid var(--line) !important; } }
@media (max-width: 480px) { .topbar { font-size: .72rem; letter-spacing: .02em; } .facts { gap: 8px; } }
.crumbs { background: none; }
.site-footer { font-weight: 600; font-size: .95rem; }
.site-footer address, .f-nav a, .f-shops a { font-weight: 600; }
.f-wordmark .wm-co { font-size: 1.15rem; }
.f-head { font-weight: 700; font-size: .85rem; }
.f-shops li span { font-weight: 500; color: var(--ink); }

/* v14: larger body text everywhere; page titles and footer keep their size */
html { font-size: 112.5%; }
body { font-size: 1rem; }
h1 { font-size: clamp(1.64rem, .98rem + 2vw, 2.13rem); }
.hero h1 { font-size: clamp(1.69rem, .98rem + 2.1vw, 2.22rem); }
.page-head h1 { font-size: clamp(1.6rem, 1.07rem + 2vw, 2.31rem); }
h2 { font-size: clamp(1.29rem, .98rem + 1.2vw, 1.78rem); }
.narrow h2 { font-size: clamp(1.16rem, .98rem + .8vw, 1.42rem); }
.wm-co { font-size: .91rem; }
.wm-sub { font-size: .64rem; }
.site-nav a { font-size: .84rem; }
.cb-tel a { font-size: clamp(1.78rem, 1.16rem + 2.6vw, 2.76rem); }
.site-footer { font-size: .85rem; }
.f-wordmark .wm-co { font-size: 1.02rem; }
.f-head { font-size: .76rem; }
.f-shops li span { font-size: .71rem; }
@media (max-width: 1080px) { .site-nav li a { font-size: 1rem; } }
.facts dd { font-size: 1rem; }
.facts div, .facts div:nth-child(odd) { padding: 14px 14px; }
.hero-cta .btn { font-size: .9rem; padding: 13px 20px; }
.tag { font-size: .6rem; }
@media (max-width: 480px) { .tag { font-size: .54rem; } }

/* v15: category photo swaps to a sample project on hover / focus / tap */
.cat-img { position: relative; }
.cat-img.has-work { cursor: pointer; }
.cat-work { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto !important; object-fit: cover !important; opacity: 0; transition: opacity .35s ease; }
.cat-img.has-work:hover .cat-work, .cat-img.has-work:focus-visible .cat-work, .cat-img.has-work.show .cat-work { opacity: 1; }
.cat-badge { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--indigo); font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.cat-img.has-work:hover .cat-badge, .cat-img.has-work:focus-visible .cat-badge, .cat-img.has-work.show .cat-badge { background: var(--indigo); color: #fff; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .cat-work { transition: none; } }

/* v16: contact form */
.cform { display: grid; gap: 18px; margin: 8px 0 clamp(40px, 6vw, 64px); padding: clamp(20px, 3vw, 32px); background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 14px 36px -24px rgba(20, 48, 90, .35); }
.cf-row { display: grid; gap: 6px; }
.cf-row label { font-weight: 700; color: var(--navy); }
.req, .opt { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; vertical-align: 2px; }
.req { background: var(--rose); color: #b2433a; }
.opt { background: var(--cream-deep); color: var(--ink-soft); }
.cform input[type="text"], .cform input[type="email"], .cform input[type="tel"], .cform select, .cform textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #d9cdb8; border-radius: 10px; padding: 12px 14px; }
.cform textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid rgba(15, 76, 156, .25); border-color: var(--indigo); }
.cform input[aria-invalid="true"], .cform select[aria-invalid="true"], .cform textarea[aria-invalid="true"] { border-color: #c6463b; background: #fff8f7; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-agree label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.cf-agree input { width: 20px; height: 20px; accent-color: var(--indigo); }
.cf-msg { margin: 0; min-height: 1.2em; color: #b2433a; font-weight: 600; }
.cf-msg.ok { color: var(--indigo); }
.cf-submit { justify-self: start; min-width: 200px; border: none; cursor: pointer; font: inherit; font-weight: 700; }
.cf-submit[disabled] { opacity: .6; cursor: wait; }
.cf-done { margin: 8px 0 clamp(40px, 6vw, 64px); padding: clamp(22px, 3vw, 34px); background: var(--sky); border-radius: 18px; }
.cf-done h3 { margin-top: 0; }
.cf-other { margin-top: 0; }
@media (max-width: 480px) { .cf-submit { justify-self: stretch; } .cf-agree label { font-size: .92rem; } }
