/* 上総工務店 サンプルLP — 和風モダン（漆喰＋朱赤＋墨） */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --shikkui: #f5ede0;        /* 漆喰クリーム（背景） */
  --shikkui-deep: #ece1cf;   /* 漆喰やや濃いめ */
  --sumi: #2b231d;           /* 墨（メイン文字） */
  --sumi-soft: #4a3f37;      /* 墨やや薄め */
  --shu: #a8332f;            /* 朱赤（アクセント） */
  --shu-deep: #8b2826;       /* 朱赤濃いめ（hover） */
  --kogecha: #5b3f2a;        /* 焦茶 */
  --line: #d6c9b0;           /* 罫線 */
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 16px;
  line-height: 1.95;
  color: var(--sumi);
  background: var(--shikkui);
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  background: var(--shikkui);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sumi);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--shu);
  color: var(--shikkui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
}
.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-suffix {
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
  color: var(--sumi-soft);
}
.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  color: var(--sumi);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--shu); }
.site-nav .nav-cta {
  background: var(--shu);
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.site-nav .nav-cta:hover { background: var(--shu-deep); color: #fff; }

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(180deg, rgba(245,237,224,0.20) 0%, rgba(43,35,29,0.85) 60%, rgba(43,35,29,0.96) 100%),
    image-set(url("assets/hero-machinami.webp") type("image/webp"), url("assets/hero-machinami.jpg") type("image/jpeg")) center/cover no-repeat;
  color: var(--shikkui);
  padding: 140px 0 100px;
  text-align: left;
  position: relative;
  border-bottom: 8px solid var(--shu);
}
.hero .container {
  max-width: 920px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--shikkui);
  margin-bottom: 24px;
  padding: 6px 14px;
  background: var(--shu);
  font-weight: 700;
}
.hero-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.45;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-accent {
  color: var(--shu);
  position: relative;
}
.hero-lead {
  font-size: 16px;
  color: rgba(245,237,224,0.92);
  margin-bottom: 48px;
  line-height: 2.0;
  max-width: 640px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 720px;
  margin: 0 0 48px;
  background: rgba(245,237,224,0.95);
  border-left: 6px solid var(--shu);
}
.stat {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: "Noto Serif JP", serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--shu);
  letter-spacing: 0.02em;
  line-height: 1;
}
.stat-unit {
  font-size: 14px;
  font-weight: 400;
  margin-left: 4px;
  color: var(--sumi);
}
.stat-label {
  font-size: 12px;
  color: var(--sumi-soft);
  margin-top: 8px;
  letter-spacing: 0.05em;
}
.hero-cta { margin-top: 8px; }
.btn-primary {
  display: inline-block;
  background: var(--shu);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 48px;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  border: 2px solid var(--shu);
}
.btn-primary:hover {
  background: transparent;
  color: var(--shu);
  border-color: var(--shu);
}

@media (max-width: 720px) {
  .hero { padding: 100px 0 80px; text-align: center; }
  .hero-title { font-size: 28px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

/* ===== Common section ===== */
.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--shu);
  text-align: center;
  margin-bottom: 12px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}
.section-title {
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--sumi);
  margin-bottom: 56px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--shu);
  margin: 20px auto 0;
}

/* ===== Strengths ===== */
.strengths {
  padding: 96px 0;
  background: var(--shikkui-deep);
}
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.strength-card {
  background: var(--shikkui);
  padding: 36px 28px;
  border-top: 4px solid var(--shu);
  position: relative;
  box-shadow: 0 2px 10px rgba(91,63,42,0.08);
}
.strength-num {
  display: inline-block;
  font-family: "Noto Serif JP", serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--shu);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  line-height: 1;
}
.strength-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--sumi);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.strength-card p {
  font-size: 14.5px;
  color: var(--sumi-soft);
  line-height: 2;
}
@media (max-width: 720px) {
  .strength-grid { grid-template-columns: 1fr; }
}

/* ===== Services ===== */
.services {
  padding: 96px 0;
  background: var(--shikkui);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--sumi);
  border-left: 2px solid var(--sumi);
}
.service-item {
  background: var(--shikkui);
  padding: 32px 28px;
  border-right: 2px solid var(--sumi);
  border-bottom: 2px solid var(--sumi);
}
.service-num {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--shu);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.service-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--sumi);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.service-desc {
  font-size: 14.5px;
  color: var(--sumi-soft);
  line-height: 1.95;
}
@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ===== Works ===== */
.works {
  padding: 96px 0;
  background: var(--shikkui-deep);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--shikkui);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(91,63,42,0.08);
}
.work-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--kogecha);
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-body { padding: 22px 22px 24px; }
.work-tag {
  display: inline-block;
  font-size: 11px;
  background: var(--sumi);
  color: var(--shikkui);
  padding: 4px 12px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 700;
}
.work-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sumi);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.work-desc {
  font-size: 14px;
  color: var(--sumi-soft);
  line-height: 1.95;
  margin-bottom: 12px;
}
.work-meta {
  font-size: 12px;
  color: var(--sumi-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ===== Process ===== */
.process {
  padding: 96px 0;
  background: var(--shikkui);
}
.process-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
}
.process-list li {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: none; }
.process-step {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--shu);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  font-family: "Noto Serif JP", serif;
}
.process-list h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--sumi);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.process-list p {
  font-size: 14.5px;
  color: var(--sumi-soft);
  line-height: 1.95;
}

/* ===== Contact ===== */
.contact {
  background: var(--sumi);
  color: var(--shikkui);
  padding: 96px 0;
  border-top: 8px solid var(--shu);
}
.contact-inner { text-align: center; }
.contact-title { color: var(--shikkui); }
.contact-title::after { background: var(--shu); }
.contact-lead {
  color: rgba(245,237,224,0.85);
  margin-bottom: 48px;
  font-size: 15px;
  line-height: 2;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(245,237,224,0.06);
  border: 1px solid rgba(245,237,224,0.15);
  padding: 28px 22px;
  text-align: left;
}
.contact-label {
  font-size: 11px;
  color: var(--shu);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}
.contact-value {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  word-break: break-all;
  letter-spacing: 0.03em;
}
.contact-note {
  font-size: 12px;
  color: rgba(245,237,224,0.65);
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer {
  background: #1c1612;
  color: rgba(245,237,224,0.75);
  padding: 36px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.footer-meta { font-size: 12px; line-height: 1.85; }
.footer-copy { font-size: 12px; color: rgba(245,237,224,0.5); }
