/* ============================================
   Nukumori Koumuten - Warm & Gentle Design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --beige: #F5EDE0;
  --beige-light: #FAF7F2;
  --terracotta: #C17F59;
  --terracotta-light: #D4996F;
  --terracotta-dark: #A86B48;
  --brown: #4A3428;
  --brown-light: #6B5548;
  --rose: #E8967D;
  --rose-light: #F0B5A3;
  --cream: #FFF9F3;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(74, 52, 40, 0.06);
  --shadow-md: 0 4px 20px rgba(74, 52, 40, 0.08);
  --shadow-lg: 0 8px 40px rgba(74, 52, 40, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--brown);
  background-color: var(--beige-light);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

.sp-only { display: none; }

/* --- Sample Banner --- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--brown);
  color: var(--beige);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.sample-banner a {
  color: var(--rose-light);
  text-decoration: underline;
  font-weight: 700;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(193, 127, 89, 0.1);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.05em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-light);
  position: relative;
  padding: 4px 0;
}

.nav-desktop a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-desktop a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-desktop a:not(.nav-cta):hover {
  color: var(--brown);
}

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px !important;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--cream);
  z-index: 950;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -4px 0 30px rgba(74, 52, 40, 0.15);
  padding-top: 120px;
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

.nav-mobile-link {
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  border-bottom: 1px solid rgba(193, 127, 89, 0.15);
}

.nav-mobile-link:last-child {
  border-bottom: none;
}

.nav-mobile-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  text-align: center;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  padding: 14px 0 !important;
  font-weight: 600;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 104px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 52, 40, 0.65) 0%,
    rgba(74, 52, 40, 0.35) 50%,
    rgba(193, 127, 89, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 700px;
}

.hero-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--rose-light);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 127, 89, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* --- Stats --- */
.stats {
  background: var(--terracotta);
  padding: 48px 0;
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(193, 127, 89, 0.1));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.stat-unit {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 2px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* --- Section Common --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.section-desc {
  font-size: 15px;
  color: var(--brown-light);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto;
}

/* --- About --- */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.about-icon-area {
  text-align: center;
}

.about-icon-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  background: var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.about-founder-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 4px;
}

.about-founder-title {
  font-size: 13px;
  color: var(--brown-light);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 2;
  color: var(--brown);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--terracotta);
  font-weight: 600;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid rgba(193, 127, 89, 0.12);
}

.about-value {
  text-align: center;
  padding: 24px 16px;
}

.about-value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.about-value h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 10px;
}

.about-value p {
  font-size: 13px;
  color: var(--brown-light);
  line-height: 1.8;
}

/* --- Barrier Free --- */
.barrier-free {
  padding: 100px 0;
  background: var(--beige-light);
}

.bf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bf-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(193, 127, 89, 0.08);
}

.bf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bf-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bf-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 12px;
  line-height: 1.5;
}

.bf-desc {
  font-size: 14px;
  color: var(--brown-light);
  line-height: 1.8;
}

/* --- Thermal Design --- */
.thermal {
  padding: 100px 0;
  background: var(--cream);
}

.thermal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.thermal-diagram {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(193, 127, 89, 0.08);
}

.thermal-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.thermal-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.thermal-feature-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--terracotta);
  opacity: 0.7;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.thermal-feature h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
}

.thermal-feature p {
  font-size: 14px;
  color: var(--brown-light);
  line-height: 1.8;
}

/* --- Works --- */
.works {
  padding: 100px 0;
  background: var(--beige-light);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(193, 127, 89, 0.06);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-img img {
  transform: scale(1.05);
}

.work-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.work-body {
  padding: 24px;
}

.work-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
}

.work-spec {
  font-size: 12px;
  color: var(--brown-light);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.work-desc {
  font-size: 14px;
  color: var(--brown-light);
  line-height: 1.8;
}

/* --- Voices --- */
.voices {
  padding: 100px 0;
  background: var(--cream);
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.voice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(193, 127, 89, 0.08);
  transition: all var(--transition);
  position: relative;
}

.voice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.voice-quote {
  margin-bottom: 16px;
}

.voice-text {
  font-size: 14px;
  color: var(--brown);
  line-height: 2;
  margin-bottom: 20px;
}

.voice-info {
  border-top: 1px solid rgba(193, 127, 89, 0.12);
  padding-top: 16px;
}

.voice-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--brown);
  margin-bottom: 2px;
}

.voice-detail {
  font-size: 12px;
  color: var(--brown-light);
}

/* --- Flow --- */
.flow {
  padding: 100px 0;
  background: var(--beige-light);
}

.flow-steps {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--terracotta), rgba(193, 127, 89, 0.2));
}

.flow-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}

.flow-step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--terracotta);
  position: relative;
  z-index: 1;
}

.flow-step-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
  padding-top: 4px;
}

.flow-step-content p {
  font-size: 14px;
  color: var(--brown-light);
  line-height: 1.9;
}

/* --- Promise --- */
.promise {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
}

.promise-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.promise-icon {
  margin-bottom: 24px;
}

.promise-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.6;
  margin-bottom: 20px;
}

.promise-text {
  font-size: 15px;
  color: var(--brown-light);
  line-height: 2;
  margin-bottom: 32px;
}

/* --- Company --- */
.company {
  padding: 100px 0;
  background: var(--beige-light);
}

.company-table {
  max-width: 750px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(193, 127, 89, 0.08);
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(193, 127, 89, 0.08);
  line-height: 1.7;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  background: var(--beige);
  color: var(--brown);
  font-weight: 600;
  width: 160px;
  white-space: nowrap;
}

.company-table td {
  color: var(--brown-light);
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-tel {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 28px;
}

.contact-tel-label {
  font-size: 14px;
  color: var(--brown-light);
  margin-bottom: 8px;
}

.contact-tel-number {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 8px;
}

.contact-tel-hours {
  font-size: 13px;
  color: var(--brown-light);
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--brown);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(193, 127, 89, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 6px;
}

.required {
  font-size: 11px;
  color: var(--rose);
  font-weight: 500;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--brown);
  background: var(--beige-light);
  border: 1.5px solid rgba(193, 127, 89, 0.15);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.12);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A3428' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Footer --- */
.footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  padding-left: 46px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.footer-credit a:hover {
  color: var(--white);
}

/* --- Animations --- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .bf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .thermal-content {
    grid-template-columns: 1fr;
  }

  .thermal-diagram {
    order: -1;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .voices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sp-only { display: inline; }

  .sample-banner {
    font-size: 11px;
    padding: 6px 12px;
  }

  .header { top: 30px; }
  .header-inner { height: 60px; }

  .hero { min-height: 100svh; padding-top: 90px; }
  .hero-title { letter-spacing: 0.03em; }
  .hero-desc { font-size: 14px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about, .barrier-free, .thermal, .works, .voices, .flow, .company, .contact {
    padding: 72px 0;
  }

  .promise { padding: 60px 0; }

  .flow-steps::before { left: 27px; }

  .section-header { margin-bottom: 40px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-icon-area { order: -1; }

  .about-values {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
  }

  .bf-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bf-card {
    padding: 28px 24px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .voices-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 24px;
  }

  .company-table th {
    width: 100px;
    font-size: 13px;
    padding: 14px 16px;
  }

  .company-table td {
    font-size: 13px;
    padding: 14px 16px;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-nav {
    gap: 16px;
  }

  .footer-tagline {
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }

  .container { padding: 0 16px; }

  .hero-content { padding: 32px 16px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { padding: 14px 24px; font-size: 14px; }

  .stat-number { font-size: 32px; }

  .thermal-diagram { padding: 16px; }

  .contact-tel-number { font-size: 24px; }
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 52, 40, 0.4);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Print --- */
@media print {
  .sample-banner,
  .header,
  .nav-mobile,
  .hero-scroll,
  .contact-form { display: none; }

  .hero { min-height: auto; padding: 40px 0; }
  .animate-on-scroll { opacity: 1; transform: none; }
}