/* halfpixel.jp の見た目。いまのサイト（2026-10）の寸法を測って、自分たちの名前で組み直したもの */

:root {
  --text: #000;
  --bg: #fff;
  --line: #808080;
  --panel: #f6f6f6;              /* 薄いグレーの座布団（トップの About の段と同じ色） */
  --content: 650px;              /* 本文の幅 */
  --wide: 1200px;                /* ヘッダ・一覧・記事の情報の幅 */
  --pad: clamp(1.5rem, 5vw, 2.5rem);   /* 画面の左右の余白 */
  --gap: 1.8rem;                 /* かたまりの間 */
  --space-s: clamp(1.5rem, 5vw, 2rem);
  --space-m: clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem);
  --space-l: clamp(2.5rem, 8vw, 4.5rem);
  --space-xl: clamp(5rem, 5.25rem + ((1vw - 0.48rem) * 9.096), 8rem);
  --size-s: clamp(0.875rem, 0.875rem + ((1vw - 0.48rem) * 0.24), 1rem);
  --size-l: clamp(1.75rem, 1.75rem + ((1vw - 0.48rem) * 0.24), 1.875rem);
  --size-xl: 2.25rem;
  --font: "Noto Sans JP", sans-serif;
  --font-latin: Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  padding-top: var(--gap);
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* 幅の箱 */
.content, .wide {
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.content { max-width: calc(var(--content) + var(--pad) * 2); }
.wide { max-width: calc(var(--wide) + var(--pad) * 2); }

/* ヘッダ */
.site-header__inner {
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  padding-bottom: var(--space-m);
}
.site-logo { display: block; line-height: 0; }
.site-logo img { width: 170px; height: auto; }
.site-nav {
  display: flex;
  gap: 1.5em;
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 600;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.site-main { margin-top: var(--space-l); }

/* 記事 */
.post__title {
  margin: 0 auto var(--space-m);
  font-size: var(--size-l);
  font-weight: 600;
  line-height: 1.2;
}
.post__body {
  font-size: var(--size-s);
  line-height: 2;
}
.post__body > * { margin-top: 0; margin-bottom: 0; }
.post__body > * + * { margin-top: var(--gap); }
.post__body img { display: block; margin-left: auto; margin-right: auto; }
.post__body h3, .post__body h4, .post__body h5 { line-height: 1.4; }
.post__body ul, .post__body ol { padding-left: 2.5em; }
.post__body blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 1.5em;
  border-left: 1px solid var(--line);
}
.note {
  display: block;
  font-size: 0.9em;
}

/* 場所の箱: 薄いグレーの座布団に、名前・地図の絵・リンク・行き方をまとめる */
.place {
  padding: 40px;
  background: var(--panel);
}
.place__name {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
}
.place__map {
  aspect-ratio: 16 / 9;
  background: #eee;
}
.place__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;   /* 絵としての地図。動かすのはGoogleマップで */
}
.place__link {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin: 0.5rem 0 0;
}
.place__credit { font-size: 0.8em; opacity: 0.7; }
.place__access { margin: 1rem 0 0; padding-left: 2.5em; }

/* 記事の情報 */
.post__meta {
  margin-top: var(--space-xl);
  font-size: var(--size-s);
  line-height: 1.6;
}
.post__meta hr {
  margin: 0;
  border: 0;
  border-top: 2px solid var(--line);
  opacity: 0.4;
}
.post__meta-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: var(--space-s);
}
.post__meta p { margin: 0 0 0.25em; }

/* 記事が並ぶページ */
.list__title {
  margin: 0 0 var(--space-l);
  font-size: var(--size-xl);
  font-weight: 700;
  line-height: 1.2;
}
.list__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card { padding: var(--space-s); }
.card__image { display: block; line-height: 0; }
.card__image img { width: 100%; height: 200px; object-fit: cover; }
.card__title {
  margin: 1.2em 0 0.6em;
  font-size: clamp(0.975rem, 0.975rem + ((1vw - 0.48rem) * 0.625), 1.3rem);
  font-weight: 600;
  line-height: 1.4;
}
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__excerpt { margin: 0; font-size: var(--size-s); line-height: 1.8; }
.card__date { margin: 0.8em 0 0; font-size: var(--size-s); }

/* フッタ */
.site-footer .wide {
  padding-top: var(--space-m);
  padding-bottom: var(--space-m);
}
.site-footer p {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 0.8rem;
}

@media (max-width: 781px) {
  .place { padding: 24px; }
  .place__map { aspect-ratio: 5 / 4; }   /* スマホでは地図の中の帰属表示がかぶるので、縦を足す */
  .post__meta-cols { grid-template-columns: 1fr; }
  .list__cards { grid-template-columns: 1fr; }
}

/* ---------- トップ ---------- */
.is-top .site-main { margin-top: calc(var(--space-l) + var(--space-s)); }
.section-head { margin: 0 0 var(--gap); line-height: 1.2; }
.section-head__title { font-family: "DM Sans", sans-serif; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); font-weight: 700; }
.section-head__sub { font-size: var(--size-l); font-weight: 700; margin-left: 0.25em; }

/* 主文句 */
.hero__visual {
  display: grid;
  grid-template-columns: minmax(0, 664px) minmax(0, 443px);
  justify-content: space-between;
  gap: 60px;
  align-items: center;
}
.hero__copy { margin: 0; line-height: 0; }
.hero__copy img, .hero__illust { width: 100%; height: auto; display: block; }
.hero__lead {
  max-width: 768px;
  margin: 60px auto 0;
  font-size: var(--size-s);
  line-height: 1.6;
}
.hero__lead p { margin: 0 0 var(--gap); }

/* ワークフロー */
.workflow { margin-top: calc(var(--space-xl) + 1.5rem); }
.workflow__lead { margin: 0 0 var(--space-l); font-size: var(--size-s); line-height: 1.6; }
.workflow__steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 260fr 623fr 260fr;
  gap: 28px;
  margin-bottom: 72px;
}
.step__no { margin: 0; font-family: "DM Sans", sans-serif; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); font-weight: 700; line-height: 1.6; }
.step__name { margin: var(--gap) 0 0; font-size: var(--size-l); font-weight: 700; line-height: 1.4; }
.step__image { width: 100%; height: auto; display: block; }
.step__body { align-self: end; font-size: var(--size-s); line-height: 1.6; }
.step__body p { margin: 0; }
.step__tools-label { margin: var(--gap) 0 0.5rem; font-size: 1.08rem; font-weight: 700; }
.step__tools { display: flex; list-style: none; margin: 0; padding: 0; }
.step__tools img { display: block; width: 60px; height: 60px; }

/* 実績 */
.work {
  margin-top: calc(var(--space-xl) + 72px);
  min-height: 590px;
  display: flex;
  align-items: flex-start;
  color: #fff;
  background: #000 url("our-work-bg.jpg") center / cover no-repeat;
}
.work .wide { width: 100%; padding-top: 93px; padding-bottom: var(--space-l); }
.work__items { margin: 0; padding-left: 40px; line-height: 1.6; }

/* 私たちについて */
.about {
  background: var(--panel);
  padding: var(--space-l) 0 calc(var(--space-xl) * 2);
}
.about__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 92px;
  padding: var(--space-m) 32px 0;
  font-size: var(--size-s);
}
.about h3 { margin: 0 0 1.75rem; font-size: 1.08rem; font-weight: 700; }
.about p { margin: 0 0 1.75rem; }
.about ul { margin: 0; padding-left: 40px; }
.is-top .site-footer { margin-top: 0; }

@media (max-width: 781px) {
  .hero__visual { grid-template-columns: 1fr; gap: var(--gap); }
  .step { grid-template-columns: 1fr; gap: var(--gap); }
  .about__cols { grid-template-columns: 1fr; gap: var(--gap); padding-left: 0; padding-right: 0; }
}
