/* デザインオフィス・クール 全ページ共通のスタイル
   色・書体・余白は、デザイン案(2026-11-24 のキャンバス)から読み取った値。色は、ロゴのタイルの色
   色は小さな四角の目印としてだけ使い、文字の色には使わない */

:root {
  --color-pink: #e858a0;
  --color-orange: #f09800;
  --color-blue: #2890d0;
  --color-teal: #00a8b0;
  --color-green: #90c008;
  --color-purple: #605088;
  --color-rose: #b05058;
  --color-ink: #333;
  --color-sub: #767676;
  --color-body-sub: #555;
  --color-text-soft: #444;
  --color-bg-soft: #f6f6f4;
  --color-photo-bg: #f2f2f0;
  --color-line: #e6e6e6;
  --color-line-soft: #ededed;
  --color-line-box: #e3e3e3;
  --color-line-pill: #d6d6d6;
  --font-ja: "Kosugi", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-en: "Jost", sans-serif;
  --gap-section: 96px;
  --side-width: 220px;
  --main-width: 884px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { text-spacing-trim: trim-start; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-ink);
  background: #fff;
  line-break: strict;
  overflow-wrap: anywhere;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--color-ink); }

a:hover { color: #2068a0; }

h1,
h2,
h3 { font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: balance; }

p,
li,
dd { text-wrap: pretty; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 全体の並び(上にロゴ、左にサイドバー、右に本文、下にフッター) ---------- */
body {
  display: grid;
  grid-template-columns: 20px var(--side-width) 36px minmax(0, var(--main-width)) minmax(20px, 1fr);
  align-items: start;
}

.masthead { grid-column: 1 / -1; display: flex; justify-content: center; padding: 56px 20px 48px; }

.masthead__logo { display: block; line-height: 0; }

.masthead__logo img { display: block; width: 72px; height: auto; }

.side { grid-column: 2; display: flex; flex-direction: column; gap: 28px; padding: 4px 0; }

main { grid-column: 4; min-width: 0; display: flex; flex-direction: column; gap: var(--gap-section); }

.foot { grid-column: 1 / -1; margin-top: 104px; }

@media (min-width: 768px) and (min-height: 760px) {
  .side { position: sticky; top: 24px; }
}

/* ---------- サイドバー ---------- */
.side p { margin: 0; }

.side__name { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; }

.side__name a { color: var(--color-ink); text-decoration: none; }

.side__intro { display: flex; flex-direction: column; gap: 10px; }

.side__catch { font-size: 15px; line-height: 1.7; letter-spacing: 0.04em; }

.side__lead { font-size: 12.5px; line-height: 1.9; color: var(--color-body-sub); }

.side__toggle { display: none; }

.nav__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line-soft); }

.nav__list li { border-bottom: 1px solid var(--color-line-soft); }

.nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: var(--color-ink);
  text-decoration: none;
}

/* ナビの左の小さな四角。いまいるページは塗り、ほかは枠だけ */
.nav__link::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--nav-color, var(--color-ink));
}

.nav__link--works { --nav-color: var(--color-pink); }
.nav__link--about { --nav-color: var(--color-orange); }
.nav__link--service { --nav-color: var(--color-teal); }
.nav__link--kamon { --nav-color: var(--color-rose); }
.nav__link--news { --nav-color: var(--color-blue); }
.nav__link--contact { --nav-color: var(--color-green); }

.nav__en { font-family: var(--font-en); font-size: 15px; font-weight: 300; letter-spacing: 0.08em; }

.nav__ja { margin-left: auto; font-size: 11px; color: var(--color-sub); }

.page-works .nav__link--works::before,
.page-about .nav__link--about::before,
.page-service .nav__link--service::before,
.page-kamon .nav__link--kamon::before,
.page-news .nav__link--news::before,
.page-contact .nav__link--contact::before { background: var(--nav-color); }

.page-works .nav__link--works .nav__en,
.page-about .nav__link--about .nav__en,
.page-service .nav__link--service .nav__en,
.page-kamon .nav__link--kamon .nav__en,
.page-news .nav__link--news .nav__en,
.page-contact .nav__link--contact .nav__en { font-weight: 500; }

/* メニューと SNS の入れ物(スマートフォンでは、右上のボタンで開く、画面いっぱいのメニューになる) */
.side__menu { display: flex; flex-direction: column; gap: 28px; }

.sns { display: flex; gap: 4px; margin: 0 0 0 -10px; padding: 0; list-style: none; }

.sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-ink);
}

.sns svg { width: 24px; height: 24px; }

/* ---------- 見出しのかたまり ---------- */
.page-title { display: flex; flex-direction: column; gap: 4px; }

.page-title__row { display: flex; align-items: center; gap: 16px; }

.page-title__row::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--mark, var(--color-ink)); }

.page-title h1 {
  margin: 0;
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.page-title__ja { margin: 0 0 0 30px; font-size: 13px; color: var(--color-sub); }

.page-lead { margin: 20px 0 0; max-width: 36em; font-size: 16px; line-height: 1.9; }

.sec { display: flex; flex-direction: column; gap: 24px; }

.sec > p,
.sec > h2,
.sec > h3 { margin: 0; }

.sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

.sec-head::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--mark, var(--color-ink)); }

.sec-head h2 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.5; letter-spacing: 0.06em; }

.sec-head--en h2 { font-family: var(--font-en); font-size: 26px; line-height: 1.3; letter-spacing: 0.1em; }

.sec-head__ja { font-size: 12px; color: var(--color-sub); }

.mark-pink { --mark: var(--color-pink); }
.mark-orange { --mark: var(--color-orange); }
.mark-blue { --mark: var(--color-blue); }
.mark-teal { --mark: var(--color-teal); }
.mark-green { --mark: var(--color-green); }
.mark-purple { --mark: var(--color-purple); }
.mark-rose { --mark: var(--color-rose); }

.text-soft { color: var(--color-text-soft); }

.note { margin: 0; font-size: 12px; color: var(--color-sub); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 52px;
  padding: 0 28px;
  font-size: 15px;
  color: var(--color-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-ink);
  cursor: pointer;
}

.btn:hover { color: var(--color-ink); background: var(--color-bg-soft); }

.btn--primary { color: #fff; background: var(--color-ink); }

.btn--primary:hover { color: #fff; background: #111; }

.btn--en { min-width: 200px; min-height: 48px; font-family: var(--font-en); font-size: 14px; letter-spacing: 0.16em; }

.btn--small { min-height: 48px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.more-link {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
}

/* 矢印(線2本で描く) */
.more-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- カテゴリーの絞り込み ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; }

.filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-line-pill);
  border-radius: 999px;
  cursor: pointer;
}

.filter__btn::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--filter-color, var(--color-ink)); }

.filter__btn:hover { color: var(--color-ink); border-color: var(--color-ink); }

.filter__btn[aria-pressed="true"] { color: #fff; background: var(--color-ink); border-color: var(--color-ink); }

.filter__btn--all[aria-pressed="true"]::before { background: #fff; }

.filter__btn--flyer { --filter-color: var(--color-pink); }
.filter__btn--book { --filter-color: var(--color-blue); }
.filter__btn--logo { --filter-color: var(--color-orange); }
.filter__btn--map { --filter-color: var(--color-green); }
.filter__btn--goods { --filter-color: var(--color-purple); }
.filter__btn--kamon { --filter-color: var(--color-rose); }

/* ---------- 作品の一覧 ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 36px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work { position: relative; }

.work.is-filtered,
.work.is-paged { display: none; }

.work__fig { display: flex; flex-direction: column; gap: 10px; margin: 0; }

.work__photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-photo-bg); }

.work__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 写真を押して大きく見るためのボタン(site.js が足す) */
.work__zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.work__new {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.14em;
  background: #fff;
  pointer-events: none;
}

.work__new::before { content: ""; width: 7px; height: 7px; background: var(--color-pink); }

.work__cap { display: flex; flex-direction: column; }

.work__heading { font-size: 11px; color: var(--color-sub); letter-spacing: 0.06em; }

.work__title { font-size: 13px; line-height: 1.6; }

.work__spec,
.work__credit { font-size: 11px; line-height: 1.7; color: var(--color-sub); }

/* カテゴリーと追加した日は、絞り込みと NEW の表示に使う。画面には出さない */
.work__cat,
.work__date { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.work__more p { margin: 2px 0 0; font-size: 12px; line-height: 1.7; }

/* 詳しいページのある作品は、かたまりの全体をリンクにする */
.work__more a::after { content: ""; position: absolute; inset: 0; }

.works-foot { display: flex; justify-content: center; }

.works-foot.is-done { display: none; }

.works-empty { margin: 0; color: var(--color-sub); }

/* ---------- お知らせ ---------- */
.news { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line); }

.news__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}

.news__date { width: 92px; font-family: var(--font-en); font-size: 14px; color: #666; letter-spacing: 0.06em; }

.news__tag {
  padding: 2px 10px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-body-sub);
  border: 1px solid #cfcfcf;
  border-radius: 999px;
}

.news__title { flex: 1 1 300px; }

.news__more { flex: 0 0 auto; }

.news__more p { margin: 0; font-size: 12px; }

.news__more a::after { content: ""; position: absolute; inset: 0; }

.news__empty { padding: 18px 0; color: var(--color-sub); border-bottom: 1px solid var(--color-line); }

/* ---------- Instagram ---------- */
.insta-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }

.insta-head p { margin: 0; max-width: 34em; }

.insta-account {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.insta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insta__photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.center { align-self: center; }

/* ---------- お問い合わせへの誘導 ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 32px;
  text-align: center;
  background: var(--color-bg-soft);
}

.cta h2 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.6; letter-spacing: 0.04em; }

.cta p { margin: 0; color: var(--color-body-sub); }

.cta .btn-row { margin-top: 6px; }

.cta--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; gap: 20px; padding: 44px 32px; }

.cta--row h2 { font-size: 18px; }

.tiles { display: flex; gap: 6px; }

.tiles span { width: 12px; height: 12px; }

.tiles span:nth-child(1) { background: var(--color-pink); }
.tiles span:nth-child(2) { background: var(--color-orange); }
.tiles span:nth-child(3) { background: var(--color-teal); }
.tiles span:nth-child(4) { background: var(--color-green); }
.tiles span:nth-child(5) { background: var(--color-blue); }

/* ---------- プロフィール ---------- */
.intro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }

.intro__photo {
  flex: 0 1 300px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  color: var(--color-sub);
  background: var(--color-photo-bg);
}

.intro__body { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.intro__body p { margin: 0; }

.lead-title { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.6; letter-spacing: 0.04em; }

.sign { font-size: 18px; letter-spacing: 0.08em; }

.sign__en { margin-left: 12px; font-family: var(--font-en); font-size: 13px; color: var(--color-sub); letter-spacing: 0.1em; }

.namebox { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; padding: 40px; background: var(--color-bg-soft); }

.namebox__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.namebox__body h2 { margin: 0; font-size: 17px; font-weight: 400; letter-spacing: 0.06em; }

.namebox__body p { margin: 0; }

/* ロゴと同じ、ハートのかたちに並べた色のタイル */
.heart { flex: none; display: grid; grid-template-columns: repeat(5, 16px); grid-auto-rows: 16px; gap: 5px; }

.heart span:nth-child(1) { background: #e858a0; }
.heart span:nth-child(2) { background: #f09800; }
.heart span:nth-child(4) { background: #2890d0; }
.heart span:nth-child(5) { background: #7878a8; }
.heart span:nth-child(6) { background: #982000; }
.heart span:nth-child(7) { background: #f8c800; }
.heart span:nth-child(8) { background: #00a8b0; }
.heart span:nth-child(9) { background: #7890c8; }
.heart span:nth-child(10) { background: #b06888; }
.heart span:nth-child(11) { background: #b05058; }
.heart span:nth-child(12) { background: #f0a070; }
.heart span:nth-child(13) { background: #90c008; }
.heart span:nth-child(14) { background: #68c8f0; }
.heart span:nth-child(15) { background: #605088; }
.heart span:nth-child(17) { background: #f07800; }
.heart span:nth-child(18) { background: #68a890; }
.heart span:nth-child(19) { background: #60a8d0; }
.heart span:nth-child(23) { background: #989830; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px 28px; }

.card { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--color-ink); }

.card__num { font-family: var(--font-en); font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: 0.06em; }

.card h3 { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.6; }

.card p { margin: 0; font-size: 13.5px; color: var(--color-text-soft); }

.dot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}

.dot-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-line); }

.dot-list li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--color-ink); }

.dot-list li:nth-child(6n + 1)::before { background: var(--color-green); }
.dot-list li:nth-child(6n + 2)::before { background: var(--color-blue); }
.dot-list li:nth-child(6n + 3)::before { background: var(--color-orange); }
.dot-list li:nth-child(6n + 4)::before { background: var(--color-rose); }
.dot-list li:nth-child(6n + 5)::before { background: var(--color-pink); }
.dot-list li:nth-child(6n)::before { background: var(--color-purple); }

.def { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--color-line); }

.def--strong { border-top-color: var(--color-ink); font-size: 13.5px; }

.def dt,
.def dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--color-line); }

.def dt { color: var(--color-sub); }

.def--year dt { font-family: var(--font-en), var(--font-ja); }

/* ---------- サービス・料金 ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 44px 26px; }

.service { display: flex; flex-direction: column; gap: 14px; }

.service img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.service h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 400; line-height: 1.6; }

.service h3::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--mark, var(--color-ink)); }

.service p { margin: 0; font-size: 13.5px; color: var(--color-text-soft); }

/* ホームページ・商品企画の、写真の代わりの絵(画面のかたち) */
.service__mock { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--color-bg-soft); }

.service__screen { width: 62%; aspect-ratio: 4 / 3; display: flex; flex-direction: column; background: #fff; border: 1px solid #ddd; }

.service__bar { display: flex; align-items: center; gap: 4px; height: 14px; padding: 0 6px; border-bottom: 1px solid var(--color-line); }

.service__bar span { width: 5px; height: 5px; }

.service__bar span:nth-child(1) { background: var(--color-pink); }
.service__bar span:nth-child(2) { background: var(--color-orange); }
.service__bar span:nth-child(3) { background: var(--color-teal); }

.service__tiles { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; }

.service__tiles span:nth-child(1) { background: #f8c800; }
.service__tiles span:nth-child(2) { background: #68c8f0; }
.service__tiles span:nth-child(3) { background: #f0a070; }
.service__tiles span:nth-child(4) { background: #90c008; }
.service__tiles span:nth-child(5) { background: #b06888; }
.service__tiles span:nth-child(6) { background: #7890c8; }

.table-wrap { overflow-x: auto; }

.price { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14px; }

.price th { padding: 10px 0; font-size: 12px; font-weight: 400; color: var(--color-sub); text-align: left; border-bottom: 1px solid var(--color-ink); }

.price th:last-child,
.price td:last-child { text-align: right; }

.price td { padding: 16px 0; border-bottom: 1px solid var(--color-line); }

.price__num { font-family: var(--font-en); font-size: 18px; letter-spacing: 0.04em; }

.plain-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--color-body-sub); }

.plain-list li::before { content: "・"; }

.flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }

.flow li { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--color-bg-soft); counter-increment: step; }

.flow__step { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); font-size: 13px; color: var(--color-body-sub); letter-spacing: 0.14em; }

.flow__step::before { content: ""; width: 10px; height: 10px; background: var(--color-ink); }

.flow li:nth-child(1) .flow__step::before { background: var(--color-pink); }
.flow li:nth-child(2) .flow__step::before { background: var(--color-orange); }
.flow li:nth-child(3) .flow__step::before { background: var(--color-teal); }
.flow li:nth-child(4) .flow__step::before { background: var(--color-green); }
.flow li:nth-child(5) .flow__step::before { background: var(--color-blue); }
.flow li:nth-child(6) .flow__step::before { background: var(--color-purple); }

.flow h3 { margin: 0; font-size: 16px; font-weight: 400; }

.flow p { margin: 0; font-size: 13px; color: var(--color-text-soft); }

.faq { border-top: 1px solid var(--color-line); }

.faq details { border-bottom: 1px solid var(--color-line); }

.faq summary { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; cursor: pointer; list-style: none; }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before { content: "Q"; flex: none; font-family: var(--font-en); font-size: 18px; color: var(--color-sub); }

/* 開閉のしるし(線2本で描く) */
.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0 4px 4px auto;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
}

.faq details[open] summary::after { margin-bottom: -4px; transform: rotate(225deg); }

.faq__q { flex: 1; }

.faq__a { display: flex; gap: 14px; margin: 0; padding: 0 0 20px; color: var(--color-text-soft); }

.faq__a::before { content: "A"; flex: none; font-family: var(--font-en); font-size: 18px; line-height: 1.5; color: var(--color-sub); }

/* ---------- 色重ね家紋 ---------- */
.kamon-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }

.kamon-intro__photo { flex: 1 1 360px; min-width: 0; max-width: 440px; margin: 0; }

.kamon-intro__photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.kamon-intro__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.kamon-intro__body p { margin: 0; }

.kamon-intro__lead { font-size: 15px; }

.kamon-intro__text { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--color-line); }

.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }

.box { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--color-line-box); }

.box::before { content: ""; width: 27px; height: 27px; }

/* 色の四角を2×2に並べた目印 */
.box:nth-child(1)::before { background: conic-gradient(#f8c800 0 25%, #605088 0 50%, #00a8b0 0 75%, #b05058 0); }
.box:nth-child(2)::before { background: conic-gradient(#f0a070 0 25%, #90c008 0 50%, #982000 0 75%, #2890d0 0); }
.box:nth-child(3)::before { background: conic-gradient(#68a890 0 25%, #f07800 0 50%, #7890c8 0 75%, #e858a0 0); }

.box h3 { margin: 0; font-size: 16px; font-weight: 400; }

.box p { margin: 0; font-size: 13.5px; color: var(--color-text-soft); }

/* ---------- 実績の詳しい紹介 ---------- */
.work-head { display: flex; flex-direction: column; gap: 18px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--color-sub); }

.crumbs li + li::before { content: "／"; margin-right: 10px; }

.crumbs a { font-family: var(--font-en); color: var(--color-body-sub); letter-spacing: 0.08em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.tags li { display: inline-flex; align-items: center; gap: 8px; padding: 2px 12px; font-size: 12px; border: 1px solid var(--color-line-pill); border-radius: 999px; }

.tags li::before { content: ""; width: 7px; height: 7px; background: var(--mark, var(--color-ink)); }

.work-head h1 { margin: 0; font-size: 38px; font-weight: 400; line-height: 1.4; letter-spacing: 0.06em; }

.work-head__sub { margin: 0; font-size: 15px; color: var(--color-body-sub); }

.work-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }

.work-photos img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.story { display: flex; flex-direction: column; gap: 10px; max-width: 40em; }

.story h2 { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 18px; font-weight: 400; }

.story__en { font-family: var(--font-en); font-size: 12px; color: var(--color-sub); letter-spacing: 0.16em; }

.story p { margin: 0; }

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  font-size: 13px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.pager a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }

.pager__all { font-family: var(--font-en); letter-spacing: 0.12em; }

.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 26px; }

.other { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.6; text-decoration: none; }

.other img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- お問い合わせのフォーム ---------- */
.form { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }

/* 仕組みが作る欄の入れ物(data-gen-form)。入れ物そのものは並びに数えず、中の欄を、フォームの並びにそのまま並べる */
.form__fields { display: contents; }

.form__group { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; }

.form__label,
.form__group legend { padding: 0; font-size: 13px; }

.form__req { margin-left: 8px; font-size: 11px; color: var(--color-sub); }

.form__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid #b8b8b8;
  border-radius: 0;
}

textarea.form__input { min-height: 160px; resize: vertical; }

.form__check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }

.form__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-ink); }

.form__note { margin: 0; font-size: 12px; color: var(--color-sub); }

/* 当社の受け口が「合わない」と返した項目(共通の部品が aria-invalid を付ける) */
.form__input[aria-invalid="true"] { border-color: var(--color-rose); box-shadow: inset 0 0 0 1px var(--color-rose); }

.form__check input[aria-invalid="true"] { outline: 2px solid var(--color-rose); outline-offset: 2px; }

/* ロボットよけ(Cloudflare Turnstile)の部品を出す場所。出るまでの間も、高さを取っておく(下のボタンが動かないように) */
.form__robot { min-height: 65px; }

/* 送信を押したあとの知らせ(共通の部品が、結果に合う1つだけを出す) */
.form__message { display: none; margin: 0; padding: 14px 16px; background: var(--color-bg-soft); border-left: 3px solid var(--color-line-pill); }

.form__message.is-shown { display: block; }

.form__message--ok { border-left-color: var(--color-green); }

.form__message--error { border-left-color: var(--color-rose); }

/* 送信完了の窓(うまく送れたときに、共通の部品が画面の中央に出す。OK か Esc キーで閉じると、トップページへ戻る) */
.form-done {
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 44px 32px 32px;
  overflow: auto;
  color: var(--color-ink);
  text-align: center;
  background: #fff;
  border: 0;
  border-top: 4px solid var(--color-green);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.form-done::backdrop { background: rgba(34, 34, 34, 0.62); }

/* 丸の中のチェック(線で描く。色は、ロゴのタイルの緑) */
.form-done__mark {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 2px solid var(--color-green);
  border-radius: 50%;
}

.form-done__mark::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  width: 12px;
  height: 22px;
  border: solid var(--color-green);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.form-done__title { margin: 0 0 12px; font-size: 22px; font-weight: 400; letter-spacing: 0.12em; line-height: 1.5; }

.form-done__text { margin: 0 0 28px; font-size: 14px; color: var(--color-text-soft); }

.form-done__ok { min-width: 200px; font-family: var(--font-en); letter-spacing: 0.16em; cursor: pointer; }

.form-done__ok:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }

.form-done__note { margin: 16px 0 0; font-size: 12px; color: var(--color-sub); }

/* 窓が開くときの動き(押した結果が出たことが分かるように、短く。動きを減らす設定の人には出さない) */
@media (prefers-reduced-motion: no-preference) {
  .form-done[open] { animation: form-done-in 0.22s ease-out; }
  .form-done[open]::backdrop { animation: form-done-fade 0.22s ease-out; }
}

@keyframes form-done-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes form-done-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- プライバシーポリシー ---------- */
.policy { display: flex; flex-direction: column; gap: 18px; max-width: 40em; }

.policy p { margin: 0; }

.policy ol { display: flex; flex-direction: column; gap: 14px; margin: 0; padding-left: 1.6em; }

.policy__term { display: block; }

/* ---------- フッター ---------- */
.foot { font-size: 13px; line-height: 1.8; }

.foot p { margin: 0; }

/* ロゴの18色を並べた細い帯 */
.foot__band { display: flex; height: 6px; }

.foot__band span { flex: 1; }

.foot__band span:nth-child(1) { background: #e858a0; }
.foot__band span:nth-child(2) { background: #f09800; }
.foot__band span:nth-child(3) { background: #2890d0; }
.foot__band span:nth-child(4) { background: #7070a8; }
.foot__band span:nth-child(5) { background: #982000; }
.foot__band span:nth-child(6) { background: #f8c800; }
.foot__band span:nth-child(7) { background: #00a8b0; }
.foot__band span:nth-child(8) { background: #7890c8; }
.foot__band span:nth-child(9) { background: #b06888; }
.foot__band span:nth-child(10) { background: #b05058; }
.foot__band span:nth-child(11) { background: #f0a070; }
.foot__band span:nth-child(12) { background: #90c008; }
.foot__band span:nth-child(13) { background: #68c8f0; }
.foot__band span:nth-child(14) { background: #605088; }
.foot__band span:nth-child(15) { background: #f07800; }
.foot__band span:nth-child(16) { background: #68a890; }
.foot__band span:nth-child(17) { background: #60a8d0; }
.foot__band span:nth-child(18) { background: #989830; }

.foot__inner { display: flex; flex-wrap: wrap; gap: 40px 64px; max-width: 1180px; margin: 0 auto; padding: 56px 20px 40px; }

.foot__brand { flex: 1 1 260px; display: flex; align-items: flex-start; gap: 20px; }

.foot__brand img { flex: none; display: block; width: 44px; height: auto; }

.foot__brand-text { display: flex; flex-direction: column; gap: 2px; }

.foot__name { font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }

.foot__en { font-family: var(--font-en); font-size: 13px; color: #666; letter-spacing: 0.12em; }

.foot__person { padding-top: 8px; }

.foot__info { flex: 1 1 300px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; }

.foot__info dt { color: var(--color-sub); }

.foot__info dd { margin: 0; }

.foot__nav { flex: 1 1 260px; }

.foot__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }

.foot__nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; }

.foot__nav a::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--nav-color, var(--color-ink)); }

.foot__bottom { max-width: 1180px; margin: 0 auto; padding: 0 20px 36px; }

.foot__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 16px;
  font-size: 12px;
  color: var(--color-sub);
  border-top: 1px solid #ececec;
}

.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }

.foot__links > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-body-sub); }

.foot__links .sns { margin: 0; gap: 2px; }

.foot__links .sns a { color: var(--color-body-sub); }

.foot__links .sns svg { width: 20px; height: 20px; }

.foot__copy { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.08em; }

/* ---------- 作品を大きく見る表示(site.js が作る) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; color: rgba(237, 237, 237, 0.9); background: rgba(0, 0, 0, 0.82); user-select: none; animation: fade-in 0.3s both; }

.lightbox.is-closing { animation: fade-out 0.3s both; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

@keyframes zoom-in { from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } }

@keyframes spin { to { transform: rotate(360deg); } }

.lightbox__stage { position: absolute; inset: 0; overflow: hidden; animation: zoom-in 0.3s both; touch-action: pan-y pinch-zoom; }

.lightbox__track { position: absolute; inset: 0; cursor: grab; will-change: transform; }

.lightbox__track.is-dragging { cursor: grabbing; }

.lightbox__track.is-sliding { transition: transform 0.3s ease-out; }

.lightbox__slide { position: absolute; top: 0; left: 0; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; padding: 70px 70px 96px; }

.lightbox__slide img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; -webkit-user-drag: none; }

.lightbox__slide.is-zoomed img { cursor: move; }

.lightbox__slide.is-panning img { transition: none; }

.lightbox__spinner { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 4px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }

.lightbox__slide.is-ready .lightbox__spinner { display: none; }

.lightbox__bar { position: absolute; top: 0; right: 0; left: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px 0 20px; }

.lightbox__count { margin-right: auto; font-family: var(--font-en); font-size: 15px; letter-spacing: 0.06em; }

.lightbox__tool,
.lightbox__nav { display: flex; justify-content: center; align-items: center; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }

.lightbox__tool { width: 44px; height: 44px; }

.lightbox__tool svg { width: 20px; height: 20px; }

.lightbox__tool:hover,
.lightbox__nav:hover { color: #fff; }

.lightbox :focus-visible { outline-color: #fff; }

.lightbox__nav { position: absolute; top: 60px; bottom: 96px; z-index: 5; width: 15%; }

.lightbox__nav svg { width: 25px; height: 25px; }

.lightbox__nav--prev { left: 0; }

.lightbox__nav--next { right: 0; }

.lightbox__nav.is-off { display: none; }

.lightbox__foot { position: absolute; right: 0; bottom: 0; left: 0; z-index: 10; padding: 15px 20px 18px; text-align: center; pointer-events: none; }

.lightbox__title { font-size: 15px; line-height: 1.6; }

.lightbox__desc { font-size: 12px; line-height: 1.6; }

/* ---------- スマートフォン ---------- */
@media (max-width: 767px) {
  body { grid-template-columns: 20px minmax(0, 1fr) 20px; }

  .masthead { padding: 28px 20px 20px; }

  .masthead__logo img { width: 40px; }

  .side { grid-column: 2; gap: 16px; margin-bottom: 40px; }

  main { grid-column: 2; gap: 72px; }

  .side__name { font-size: 18px; text-align: center; }

  .side__name br { display: none; }

  .side__intro { text-align: center; }

  /* 動きのプログラムが使えるときは、メニューを、右上の丸いボタン(三本線)で開け閉めする。使えないときは、いつも開いている */
  .js .side__toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-line-box);
    border-radius: 50%;
    cursor: pointer;
  }

  .side__bars { position: relative; display: block; width: 20px; height: 14px; }

  .side__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }

  .side__bars span:nth-child(1) { top: 0; }
  .side__bars span:nth-child(2) { top: 6px; }
  .side__bars span:nth-child(3) { top: 12px; }

  /* 開いているあいだは、三本線を「×」にする */
  .side.is-open .side__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .side.is-open .side__bars span:nth-child(2) { opacity: 0; }
  .side.is-open .side__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .side__name { order: 1; }
  .side__intro { order: 2; }
  .side__menu { order: 3; }

  .side .sns { margin-left: 0; justify-content: center; }

  /* 画面いっぱいのメニュー。閉じているあいだは、見えず、触れず、読み上げもされない */
  .js .side__menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    justify-content: center;
    gap: 32px;
    padding: 84px 32px 40px;
    overflow-y: auto;
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .js .side.is-open .side__menu { visibility: visible; opacity: 1; }

  .js .side__menu .nav__link { min-height: 60px; }

  .js .side__menu .nav__en { font-size: 19px; }

  .js .side__menu .nav__ja { font-size: 12px; }

  /* メニューを開いているあいだ、うしろのページを動かさない */
  .is-menu-open,
  .is-menu-open body { overflow: hidden; }

  .price { min-width: 0; }

  .page-title h1 { font-size: 34px; }

  .works { gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .namebox { padding: 28px 20px; }

  .cta { padding: 40px 20px; }

  .btn { min-width: min(100%, 220px); }

  .def { grid-template-columns: 96px minmax(0, 1fr); }

  .work-head h1 { font-size: 30px; }

  .foot { margin-top: 72px; }

  .foot__inner { padding-top: 40px; }

  .lightbox__slide { padding: 64px 12px 104px; }

  .lightbox__nav { width: 18%; }
}

/* ---------- 動きを減らす設定の人には、動きを出さない ---------- */
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox.is-closing,
  .lightbox__stage { animation-duration: 0.01s; }

  .lightbox__track.is-sliding,
  .lightbox__slide img { transition: none; }

  html { scroll-behavior: auto; }

  .side__bars span,
  .js .side__menu { transition: none; }
}
