/* こう の作例集。スマホの幅（320px）を基本に書き、720px / 1024px で列を増やす。 */
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/zenkaku-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --paper: #f6f4ef; --surface: #fffdf9; --ink: #1d1f24; --ink-2: #4d525d; --ink-3: #6b707b;
  --line: #e2ddd3; --accent: #b4521a; --accent-soft: #f7e8dc; --navy: #1e2a47; --focus: #2b5bd7;
  --radius: 14px; --shadow: 0 10px 30px rgba(29, 31, 36, .07);
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
  --font-head: "Zen Kaku Gothic New", var(--font-sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.85; letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; } img { height: auto; } picture { display: block; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; text-wrap: pretty; } p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.4; color: var(--ink); word-break: auto-phrase; text-wrap: balance; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 200; padding: 8px 16px; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); } .skip:focus { top: 8px; }
.container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 820px); margin-inline: auto; }
@media (min-width: 720px) { .container, .container--narrow { width: min(100% - 48px, 1120px); } .container--narrow { max-width: 820px; } }

/* 注意書きの帯 */
.notice-bar { margin: 0; padding: 8px 16px; background: var(--navy); color: #e5e9f3; font-size: .8125rem; line-height: 1.6; text-align: center; }
@media (max-width: 719px) { .notice-bar { font-size: .75rem; text-align: left; } }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246, 244, 239, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-size: 1.125rem; }
.brand__mark { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); align-self: center; }
.brand small { font-family: var(--font-sans); font-weight: 400; font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 479px) { .brand small { display: none; } .header-top { padding: 6px 10px; font-size: .8125rem; } }
.cat-nav { display: none; }
.cat-nav ul { display: flex; flex-wrap: wrap; gap: 2px; }
.cat-nav a { display: inline-block; padding: 8px 10px; border-radius: 8px; font-size: .875rem; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.cat-nav a:hover { background: var(--surface); color: var(--ink); }
@media (min-width: 1024px) { .cat-nav { display: block; } }
.header-top { font-size: .875rem; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }

/* トップの表題 */
.hero { padding: 44px 0 36px; }
.hero__eyebrow { font-family: var(--font-head); font-size: .875rem; letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.75rem, 1.3rem + 2.4vw, 3rem); line-height: 1.25; }
.hero__tagline { margin-top: 12px; font-size: 1.0625rem; color: var(--ink-2); max-width: 36em; }
.hero__intro { margin-top: 16px; font-size: .9375rem; color: var(--ink-2); max-width: 44em; }
.hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero__cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .875rem; font-weight: 700; color: var(--ink); }
.hero__cats a:hover { border-color: var(--accent); }
.hero__cats span { font-family: var(--font-head); font-size: .75rem; color: var(--ink-3); }
@media (min-width: 1024px) { .hero { padding: 72px 0 56px; } }

/* 分野 */
.cat { padding: 36px 0 12px; }
.cat__head { display: grid; gap: 4px; margin-bottom: 18px; }
.cat__head .label { font-family: var(--font-head); font-size: .8125rem; letter-spacing: .12em; color: var(--accent); }
.cat__head h2 { font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem); }
.cat__head p { color: var(--ink-2); font-size: .9375rem; }
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(29, 31, 36, .12); }
.card__img { aspect-ratio: 8 / 5; background: #e9e5dc; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--contain { background: #efebe3; }
.card__img--contain img { object-fit: contain; }
.card__img--video { position: relative; }
.card__badge { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(29, 31, 36, .78); color: #fff; font-size: .75rem; font-weight: 700; }
.card__body { padding: 14px 16px 18px; display: grid; gap: 6px; }
.card__meta { font-size: .75rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 10px; }
.card h3 { font-size: 1.0625rem; }
.card p { font-size: .875rem; color: var(--ink-2); }
.card .more { margin-top: 4px; font-size: .875rem; font-weight: 700; color: var(--accent); }

/* 作例のページ */
.work-head { padding: 28px 0 24px; }
.crumbs { font-size: .8125rem; color: var(--ink-3); margin-bottom: 14px; } .crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; } .crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.work-head .label { font-family: var(--font-head); font-size: .8125rem; letter-spacing: .12em; color: var(--accent); }
.work-head h1 { margin-top: 6px; font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.375rem); line-height: 1.3; }
.work-head .one { margin-top: 12px; color: var(--ink-2); max-width: 44em; font-size: 1.0625rem; }
.work-head .client { margin-top: 10px; font-size: .875rem; color: var(--ink-3); }
.work-head .status { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.hero-img img { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--navy); color: #fff; } .btn--primary:hover { background: #16203a; }
.btn--ghost { background: var(--surface); color: var(--navy); border-color: var(--navy); } .btn--ghost:hover { background: #eef1f7; }
.btn svg { width: 16px; height: 16px; }
.sec { padding: 28px 0; }
.sec h2 { font-size: 1.25rem; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.facts { display: grid; gap: 14px; }
.fact { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.fact h3 { font-size: .9375rem; color: var(--accent); margin-bottom: 6px; }
.fact p, .fact li { font-size: .9375rem; color: var(--ink); }
.fact ul li { position: relative; padding-left: 18px; margin-bottom: 6px; } .fact ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fact--wide { grid-column: 1 / -1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; } .tags li { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: #7a3a10; font-size: .8125rem; font-weight: 700; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
.shots { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot__img { background: #ece8df; height: 300px; overflow: hidden; }
.shot__img picture { height: 100%; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot--tall .shot__img img { object-position: top center; }
@media (min-width: 720px) { .shot__img { height: 380px; } }
.shot figcaption { padding: 10px 14px 12px; font-size: .8125rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.shot figcaption a { color: var(--accent); font-weight: 700; white-space: nowrap; }
.videos { display: grid; gap: 18px; grid-template-columns: 1fr; }
.videos + .videos { margin-top: 18px; }
@media (min-width: 720px) { .videos--wide { grid-template-columns: repeat(2, 1fr); } }
.videos--tall { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .videos--tall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .videos--tall { grid-template-columns: repeat(4, 1fr); } }
.video { position: relative; margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #1b1d22; display: flex; align-items: center; justify-content: center; }
.video__frame video, .video__frame img { width: 100%; height: 100%; display: block; object-fit: contain; background: #1b1d22; }
.video__frame picture { width: 100%; height: 100%; }
.video__frame picture img { opacity: .85; }
.video__overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.video__overlay span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 253, 249, .95); color: var(--ink); font-weight: 700; font-size: .9375rem; box-shadow: var(--shadow); }
.video__overlay svg { width: 18px; height: 18px; }
.video figcaption { padding: 10px 14px 12px; font-size: .875rem; color: var(--ink-2); display: grid; gap: 2px; }
.video__meta { font-size: .75rem; color: var(--ink-3); }
.video__note { margin-top: 14px; font-size: .8125rem; color: var(--ink-3); }
.files { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .files { grid-template-columns: repeat(3, 1fr); } }
.file { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.file img { width: 96px; height: 120px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.file strong { display: block; font-size: .9375rem; } .file span { font-size: .8125rem; color: var(--ink-3); }
.scores-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scores { min-width: 560px; font-size: .9375rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.scores th, .scores td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.scores th[scope=row] { text-align: left; white-space: nowrap; font-weight: 700; }
.scores thead th { font-size: .8125rem; color: var(--ink-3); font-weight: 700; }
.scores tbody tr:last-child td, .scores tbody tr:last-child th { border-bottom: 0; }
.scores .n { font-family: var(--font-head); }
.note { padding: 14px 18px; border-radius: var(--radius); background: var(--accent-soft); color: #5a2d0c; font-size: .9rem; }
.pager { display: flex; justify-content: space-between; gap: 12px; padding: 28px 0 8px; font-size: .9375rem; font-weight: 700; }
.pager a { color: var(--navy); text-decoration: none; display: block; max-width: 48%; }
.pager a:hover { text-decoration: underline; }
.pager a span { display: block; font-weight: 400; color: var(--ink-3); font-size: .8125rem; margin-bottom: 2px; }
.pager a:last-child { text-align: right; }

/* フッター */
.site-footer { margin-top: 48px; padding: 36px 0 28px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; }
.site-footer p { margin-bottom: 8px; }
.site-footer .brand { font-size: 1rem; margin-bottom: 10px; }
@media print { .site-header, .notice-bar, .actions { display: none !important; } }
