:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface-2: #f2eeea;
  --text: #202623;
  --text-strong: #0f1412;
  --muted: #65645f;
  --accent: #b57f3b;
  --accent-dark: #3c433f;
  --line: rgba(32, 38, 34, 0.14);
  --border: var(--line);
  --shadow: rgba(25, 32, 28, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-bottom: 72px;
  overflow-x: hidden;
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
}
body.home-page {
  padding-bottom: 0;
  background: #f4f0e8;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.home-page .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  color: #fff;
  backdrop-filter: none;
}
.brand-wrap {
  display: flex;
  flex-direction: column;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: 'Raleway', 'Noto Sans JP', sans-serif;
}
.home-page .site-brand {
  color: #fff;
}
.site-brand::before {
  content: none;
  width: 12px;
  height: 28px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}
.brand-tag {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.home-page .brand-tag {
  display: none;
}
.site-nav {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  position: relative;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-page .site-nav a {
  color: #fff;
  font-size: 0.74rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav a:last-child {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
}
.site-nav a:last-child::after {
  display: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 999px;
}
.nav-toggle span {
  display: block;
  width: 21px;
  height: 1px;
  background: currentColor;
}
.home-page .nav-toggle {
  display: inline-grid;
  border-color: rgba(255, 255, 255, 0.86);
  color: #fff;
}
.section {
  position: relative;
  padding: clamp(70px, 8vw, 112px) clamp(20px, 4vw, 64px);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.limiter {
  max-width: 1120px;
  margin: 0 auto;
}
.section-title {
  max-width: 780px;
  margin: 0 0 28px;
  color: var(--text-strong);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.2;
}
.section-subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.section-headline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--accent);
  font-family: 'Raleway', 'Noto Sans JP', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-headline::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.grid {
  display: grid;
  gap: 20px;
}
.card,
.faq-item,
.features-list li,
.flow-list li,
.area-list li,
.case-card,
.contact-cta {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}
.card {
  box-shadow: 0 16px 36px var(--shadow);
}
.card-inner {
  padding: 28px;
}
.card-title,
.card h3,
.service-card h3,
.case-card-inner h3 {
  margin: 0 0 16px;
}
.card-text,
.case-card-inner p,
.service-card p,
.faq-answer,
.section-subtitle {
  margin: 0;
  color: var(--muted);
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(181, 127, 59, 0.2);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}
.text-highlight {
  color: var(--accent);
  font-weight: 700;
}
.features-list,
.area-list,
.flow-list,
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.features-list,
.area-list {
  display: grid;
  gap: 16px;
}
.features-list li,
.area-list li,
.faq-item,
.flow-list li {
  padding: 24px;
}
.features-list p {
  color: var(--muted);
}
.faq-item {
  padding: 24px;
}
.faq-question {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-weight: 700;
}
.faq-question::before {
  content: 'Q.';
  margin-right: 10px;
  color: var(--accent);
  font-family: 'Raleway', sans-serif;
}
.faq-answer {
  margin: 0;
  color: var(--muted);
}
label {
  display: grid;
  gap: 8px;
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  background: #fff;
  padding: 14px 16px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 127, 59, 0.14);
}
.fixed-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  top: auto;
  transform: none;
  z-index: 80;
  display: flex;
  gap: 0;
  box-shadow: 0 16px 36px rgba(13, 29, 25, 0.16);
}
.cta-item {
  min-width: 138px;
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 12px 18px;
  background: #fff;
  color: var(--text-strong);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.cta-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.cta-line {
  background: #3d4a43;
  color: #fff;
}
.cta-estimate {
  background: linear-gradient(135deg, #d1a76d, #b88947);
  color: #fff;
  border-color: transparent;
}
.cta-phone {
  background: #171717;
  color: #fff;
  border-color: transparent;
}
.site-footer {
  margin-top: auto;
  padding: 44px clamp(20px, 4vw, 64px) 84px;
  background: var(--accent-dark);
  color: rgba(255, 255, 255, 0.72);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.site-footer p {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.site-footer small {
  display: block;
  margin-top: 12px;
}
.visible-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.visible-on-scroll.visible {
  opacity: 1;
  transform: none;
}
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@media (max-width: 980px) {
  .brand-tag {
    display: none;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 18px;
    box-shadow: 0 18px 30px var(--shadow);
  }
  .home-page .site-nav {
    background: rgba(12, 13, 13, 0.94);
    border-color: rgba(255, 255, 255, 0.16);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 0;
  }
  .site-nav a:last-child {
    background: transparent;
    color: var(--accent);
    padding: 12px 0;
  }
  .home-page .site-nav a:last-child {
    color: #fff;
  }
  .nav-toggle {
    display: inline-flex;
    gap: 4px;
  }
}
@media (max-width: 640px) {
  body {
    padding-bottom: 60px;
  }
  .section {
    padding: 54px 18px;
  }
  .section-title {
    margin-bottom: 22px;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
  .hero-grid,
  .services-grid,
  .case-grid,
  .contact-cta {
    grid-template-columns: 1fr;
  }
  .hero-actions,
  .contact-cta-actions {
    gap: 14px;
  }
  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }
  .fixed-cta {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: auto;
    transform: none;
    display: flex;
    gap: 0;
  }
  .cta-item {
    min-width: 108px;
    min-height: 50px;
    padding: 10px 12px;
    font-size: 0.76rem;
  }
}
