@import url("nudstep.css");

/* ===========================================================
   町‐Machi‐(Web制作事業部)固有スタイル
   自分の街を大切にする、あたたかい町並みのイメージ
   =========================================================== */

:root {
  --machi-clay: #C97B4A;
  --machi-clay-dark: #A8613A;
  --machi-cream: #FBF3EA;
  --machi-green: #6B8C5A;
  --machi-navy: #26344B;
}

/* ---------- ページヒーロー(町並みシルエット) ---------- */
.machi-hero {
  position: relative;
  background: linear-gradient(180deg, var(--machi-cream) 0%, #F3E4D3 100%);
  padding: var(--sp-8) 0 var(--sp-6);
  overflow: hidden;
}

.machi-hero .skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  display: flex;
  align-items: flex-end;
  opacity: 0.5;
}

.machi-hero .skyline span {
  display: block;
  background: var(--machi-clay);
  margin-right: 4px;
}

.machi-hero .container {
  position: relative;
  z-index: 1;
}

.machi-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--machi-clay-dark);
  background: rgba(201, 123, 74, 0.12);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: var(--sp-2);
}

.machi-hero h1 {
  font-size: 34px;
  color: var(--machi-navy);
}

@media (min-width: 600px) {
  .machi-hero h1 { font-size: 44px; }
}

.machi-hero .lead {
  font-size: 16px;
  color: var(--nud-charcoal);
  max-width: 560px;
  margin-top: var(--sp-2);
}

.btn-machi {
  display: inline-block;
  background: var(--machi-clay);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: var(--sp-4);
  transition: background 150ms ease;
}

.btn-machi:hover { background: var(--machi-clay-dark); }

/* ---------- サービスカード ---------- */
.machi-service {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--nud-border);
}

.machi-service:last-of-type { border-bottom: none; }

@media (min-width: 900px) {
  .machi-service {
    flex-direction: row;
    align-items: center;
  }
  .machi-service.is-reverse { flex-direction: row-reverse; }
}

.machi-service .visual {
  flex: 1;
  min-height: 180px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 123, 74, 0.14), rgba(107, 140, 90, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
}

.machi-service .content { flex: 1.2; }

.machi-service .tagline {
  color: var(--machi-clay-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---------- 制作実績プレビュー ---------- */
.machi-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 760px) {
  .machi-portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.machi-portfolio-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(38, 52, 75, 0.08);
  transition: transform 200ms ease;
}

.machi-portfolio-card:hover { transform: translateY(-4px); }

.machi-portfolio-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.machi-portfolio-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machi-portfolio-card .body { padding: var(--sp-3); }

.machi-portfolio-card h3 { font-size: 16px; margin-bottom: 4px; }

.machi-portfolio-card p {
  font-size: 13px;
  color: var(--nud-charcoal-light);
  margin: 0;
}

/* ---------- 帯セクション ---------- */
.machi-band {
  background: var(--machi-navy);
  color: #fff;
  text-align: center;
  padding: var(--sp-6) 0;
}

.machi-band h2 { color: #fff; }
