/* ============================================
   ことのは内装工房 — 内装・リフォームのデモサイト
   配色: ウォームベージュ + ウッドブラウン + セージグリーン
   タイポ: 明朝＋丸ゴシック
   ============================================ */

:root {
  --cream: #FAF7F1;
  --cream-dark: #F0E9DC;
  --beige: #E8DFCB;
  --wood: #8B6F47;
  --wood-dark: #5D4A2E;
  --wood-light: #B8975F;
  --sage: #9CAF88;
  --sage-dark: #6E8463;
  --sage-pale: #D8E0CE;
  --text: #3A332B;
  --text-soft: #6B6359;
  --border: #DDD3BE;
  --shadow-sm: 0 2px 8px rgba(93, 74, 46, 0.08);
  --shadow-md: 0 10px 30px rgba(93, 74, 46, 0.12);
  --font-sans: 'Zen Maru Gothic', 'Noto Sans JP', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood-dark); text-decoration: none; transition: color .25s; }
a:hover { color: var(--sage-dark); }

/* === Demo banner === */
.demo-banner {
  background: var(--wood-dark);
  color: var(--cream);
  text-align: center;
  font-size: 12px;
  padding: 6px 12px;
  letter-spacing: 0.05em;
}
.demo-banner a { color: var(--cream); text-decoration: underline; }

/* === Header === */
.site-header {
  background: rgba(250, 247, 241, 0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--sage-dark);
  font-weight: 500;
  font-style: italic;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--wood-dark);
  letter-spacing: 0.08em;
}
.brand-name em { color: var(--sage-dark); font-style: normal; }
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}
.nav a { color: var(--text); position: relative; }
.nav a:hover, .nav a.active { color: var(--sage-dark); }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--sage);
}
.nav .cta {
  background: var(--sage);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
}
.nav .cta::after { display: none; }
.nav .cta:hover { background: var(--sage-dark); color: #fff; }

/* === Hero === */
.hero {
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.92) 0%, rgba(240, 233, 220, 0.90) 100%),
    url("https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1600&q=80&auto=format&fit=crop") center/cover no-repeat,
    var(--cream);
  padding: 110px 24px 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 5%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(184, 151, 95, 0.18), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 40px;
  right: 8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(156, 175, 136, 0.20), transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--sage-dark);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  color: var(--wood-dark);
}
.hero h1 em {
  color: var(--sage-dark);
  font-style: normal;
}
.hero p.lead {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 2.2;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 14px;
  transition: all .3s;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--wood-dark); border: 1px solid var(--wood); }
.btn-outline:hover { background: var(--wood); color: #fff; }

/* === Section base === */
.section { padding: 100px 24px; }
.section-alt { background: var(--cream-dark); }
.section-wood { background: var(--wood-dark); color: var(--cream); }
.container { max-width: 1120px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--sage-dark);
  margin-bottom: 14px;
  display: inline-block;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--wood-dark);
}
.section-head p.sub {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-wood .section-head h2 { color: var(--cream); }
.section-wood .section-head .tag { color: var(--sage-pale); }

/* === Concept cards === */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.concept {
  text-align: center;
  padding: 0 16px;
}
.concept-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-pale);
  border-radius: 50%;
}
.concept-icon svg { width: 28px; height: 28px; color: var(--sage-dark); }
.concept h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--wood-dark);
}
.concept p {
  font-size: 14px;
  color: var(--text-soft);
}

/* === Services list === */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px;
  transition: transform .25s, box-shadow .25s;
}
.section-alt .service-card { background: #fff; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: var(--wood-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.service-card h3::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--sage);
}
.service-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.95;
}
.service-card .price {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wood);
}

/* === Works gallery === */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.work {
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s;
}
.work:hover { transform: translateY(-4px); }
.work-image {
  aspect-ratio: 4/3;
  background-color: var(--beige);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: rgba(0,0,0,0);
  font-size: 13px;
  letter-spacing: 0.3em;
  position: relative;
}
.work-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(93,74,46,0.30) 100%);
}
.work-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(250, 247, 241, 0.95);
  color: var(--wood-dark);
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.work-body { padding: 20px 24px 24px; }
.work-body h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.work-meta {
  font-size: 12px;
  color: var(--text-soft);
}

/* === Voice (testimonial) === */
.voice {
  background: var(--cream);
  border-radius: 8px;
  padding: 32px 28px;
  position: relative;
}
.voice::before {
  content: "\201D";
  position: absolute;
  top: 4px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 56px;
  color: var(--sage-pale);
  line-height: 1;
}
.voice p {
  padding-top: 28px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.95;
}
.voice-from {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
}

/* === CTA === */
.cta-strip {
  background:
    linear-gradient(rgba(93, 74, 46, 0.92), rgba(93, 74, 46, 0.92)),
    radial-gradient(circle at 20% 50%, var(--wood-light), transparent 50%);
  background-color: var(--wood-dark);
  color: var(--cream);
  padding: 70px 24px;
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.cta-strip p { margin-bottom: 32px; font-size: 14px; opacity: 0.9; }
.cta-strip .btn-primary { background: var(--cream); color: var(--wood-dark); }
.cta-strip .btn-primary:hover { background: #fff; color: var(--wood-dark); }

/* === Table === */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table th {
  width: 200px;
  font-family: var(--font-serif);
  color: var(--wood-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* === Form === */
.form-wrap { max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}
.field label .req {
  background: var(--sage);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--sage);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-submit { text-align: center; margin-top: 36px; }

/* === Footer === */
.site-footer {
  background: var(--wood-dark);
  color: var(--cream);
  padding: 64px 24px 24px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-mark { color: var(--sage-pale); }
.footer-brand p { font-size: 13px; margin-top: 14px; opacity: 0.85; }
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--sage-pale);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; font-size: 13px; line-height: 2.2; }
.footer-col a { color: rgba(250, 247, 241, 0.85); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 11px;
  text-align: center;
  opacity: 0.5;
}

/* === Page header === */
.page-hero {
  background:
    radial-gradient(circle at 50% 50%, var(--sage-pale), transparent 60%),
    var(--cream-dark);
  padding: 80px 24px 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--wood-dark);
  margin-bottom: 6px;
}
.page-hero .en {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage-dark);
  font-size: 13px;
  letter-spacing: 0.3em;
}

/* === Mobile === */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero { padding: 80px 20px 100px; }
  .section { padding: 70px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .spec-table th { width: 110px; font-size: 13px; }
}
