/* 実績ページ共通（トップページの配色・余白に合わせる） */
:root {
  --red: #c8261d;
  --red-dark: #a01d16;
  --navy: #1d2b3a;
  --text: #222;
  --muted: #5b6672;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --line: #e2e5ea;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.9; padding-bottom: 72px;
}
a { color: inherit; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
header .wrap { max-width: 1040px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: .05em; }
.logo span { color: var(--red); }
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 700; text-decoration: none; text-align: center; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05a647; }

.crumb { font-size: .85rem; color: var(--muted); padding: 16px 0 0; }
.crumb a { color: var(--muted); }

article { padding: 24px 0 56px; }
.post-head { border-left: 5px solid var(--red); padding: 4px 0 4px 16px; margin-bottom: 28px; }
.post-head .meta { color: var(--red); font-weight: 700; font-size: .9rem; }
.post-head h1 { color: var(--navy); font-size: clamp(1.35rem, 3.6vw, 1.8rem); line-height: 1.5; }
article h2 { color: var(--navy); font-size: 1.15rem; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
article p { margin-bottom: 14px; }
article ul.list { margin: 0 0 14px 1.4em; }

.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 20px; }
.photos figure { margin: 0; min-width: 0; }
.photos img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; background: var(--bg-soft); }
.photos figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 4px; }

.works-list { display: grid; gap: 12px; margin: 20px 0; }
.works-list li { list-style: none; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.works-list .meta { font-size: .85rem; color: var(--red); font-weight: 700; }
.works-list h3 { color: var(--navy); font-size: 1.05rem; margin: 2px 0 4px; }
.works-list h3 a { text-decoration: none; }
.works-list p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.works-list .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.works-list .more { display: inline-block; margin-top: 8px; font-size: .9rem; font-weight: 700; color: var(--red); text-decoration: none; }
@media (max-width: 760px) { .works-list .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cta-box { background: var(--bg-soft); border-radius: 12px; padding: 24px; margin-top: 36px; text-align: center; }
.cta-box p { margin-bottom: 12px; }
.cta-box .tel { font-size: 1.8rem; font-weight: 800; color: var(--red); text-decoration: none; display: block; margin-bottom: 12px; }

.back { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

footer { background: var(--navy); color: #c9d1da; text-align: center; padding: 24px 0; font-size: .85rem; }

.sp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; gap: 8px;
  padding: 8px 16px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
}
.sp-bar a { flex: 1; padding: 12px 0; }
.header-tel { display: inline-block; padding: 8px 14px; font-size: .9rem; }
@media (max-width: 760px) { .sp-bar { display: flex; } .header-tel { display: none; } }
@media (min-width: 761px) { body { padding-bottom: 0; } }
