/* =========================================
   千葉リフォーム工房 - スタイルシート
   ========================================= */

/* リセット & ベース */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --main: #e85d04;
  --main-dark: #c94d00;
  --sub: #f8f4f0;
  --accent: #1a1a1a;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --border: #e0dada;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================================
   ユーティリティ
   ========================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title span {
  color: var(--main);
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

.section-divider {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--main);
  margin: 16px auto 12px;
  border-radius: 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--main);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--main-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 34px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--main);
}

/* =========================================
   ヘッダー
   ========================================= */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo {
  display: flex;
  flex-direction: column;
}

.header-logo .company-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--main);
  letter-spacing: 0.02em;
}

.header-logo .company-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-tel .tel-label {
  font-size: 0.68rem;
  color: var(--text-light);
}

.header-tel .tel-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.header-tel .tel-number::before {
  content: "📞 ";
  font-size: 1rem;
}

.header-cta {
  font-size: 0.9rem;
  padding: 10px 22px;
}

/* =========================================
   ヒーロー
   ========================================= */
#hero {
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?w=1600&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.03);
  transition: transform 8s ease;
}

#hero:hover .hero-bg-image {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(15,15,15,0.82) 0%,
    rgba(26,26,26,0.70) 50%,
    rgba(58,32,16,0.80) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--main);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.hero-catch {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-catch .highlight {
  color: var(--main);
}

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

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

.hero-cta-group .btn-primary {
  font-size: 1.1rem;
  padding: 16px 44px;
}

/* =========================================
   実績数字バー
   ========================================= */
#stats {
  background: var(--main);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  divide: horizontal;
}

.stat-item {
  text-align: center;
  padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-num .stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* =========================================
   お悩みセクション
   ========================================= */
#troubles {
  padding: 80px 0;
  background: var(--sub);
}

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

.trouble-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trouble-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(232,93,4,0.15);
}

.trouble-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--main);
}

.trouble-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.5;
}

/* =========================================
   サービス画像ストリップ
   ========================================= */
#service-strip {
  overflow: hidden;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 260px;
}

.strip-item {
  position: relative;
  overflow: hidden;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.75);
}

.strip-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.6);
}

.strip-label {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.strip-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}

/* =========================================
   施工実績
   ========================================= */
#works {
  padding: 80px 0;
  background: var(--white);
}

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

.work-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}

.work-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.work-category {
  background: var(--main);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 20px;
  letter-spacing: 0.05em;
}

.work-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.work-image-box {
  position: relative;
  aspect-ratio: 4/3;
  background: #e8e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
}

.work-image-box svg {
  width: 36px;
  height: 36px;
  color: #b0a090;
}

/* 画像付きBefore/After */
.work-image-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.work-image-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-image-photo:first-child img {
  filter: sepia(40%) saturate(60%) brightness(85%);
}

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

.work-image-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.55);
  padding: 3px 10px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.work-image-label.after {
  background: rgba(232,93,4,0.85);
}

.work-desc {
  padding: 16px 20px;
  background: var(--sub);
  font-size: 0.9rem;
  color: var(--text-light);
}

/* =========================================
   選ばれる理由
   ========================================= */
#reasons {
  padding: 80px 0;
  background: var(--accent);
  color: var(--white);
}

#reasons .section-title {
  color: var(--white);
}

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

.reason-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  transition: background 0.2s;
}

.reason-card:hover {
  background: rgba(232,93,4,0.2);
}

.reason-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--main);
  line-height: 1;
  margin-bottom: 12px;
}

.reason-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.reason-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

/* =========================================
   料金の目安
   ========================================= */
#pricing {
  padding: 80px 0;
  background: var(--sub);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.2s;
}

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

.price-header {
  background: var(--main);
  color: var(--white);
  padding: 20px 16px;
}

.price-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
}

.price-category {
  font-weight: 700;
  font-size: 1rem;
}

.price-body {
  padding: 24px 16px;
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--main);
  line-height: 1;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.price-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.6;
}

.price-caution {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 24px;
}

/* =========================================
   代表紹介
   ========================================= */
#about {
  padding: 80px 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  text-align: center;
}

.photo-placeholder {
  width: 220px;
  height: 280px;
  background: linear-gradient(135deg, #e8e0d8, #d0c8c0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto 16px;
  color: #b0a090;
}

.photo-placeholder svg {
  width: 52px;
  height: 52px;
}

/* 代表写真（実画像） */
.photo-img-wrap {
  width: 220px;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 4px solid var(--white);
  outline: 2px solid var(--main);
}

.photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.photo-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.photo-title {
  font-size: 0.82rem;
  color: var(--text-light);
}

.about-content .eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.about-content h2 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-content p {
  color: var(--text);
  line-height: 2;
  font-size: 0.95rem;
}

/* =========================================
   お客様の声
   ========================================= */
#voices {
  padding: 80px 0;
  background: var(--sub);
}

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

.voice-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: relative;
}

.voice-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  color: var(--main);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.voice-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 10px;
}

.voice-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
}

.voice-meta {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0d5cc, #c8bdb4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a09080;
  flex-shrink: 0;
}

.voice-avatar svg {
  width: 22px;
  height: 22px;
}

.voice-info .name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.voice-info .detail {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* =========================================
   施工の流れ
   ========================================= */
#flow {
  padding: 80px 0;
  background: var(--white);
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.flow-row::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.flow-step {
  text-align: center;
  padding: 0 16px 0;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--main);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(232,93,4,0.3);
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =========================================
   アクセス・営業時間
   ========================================= */
#access {
  padding: 80px 0;
  background: var(--sub);
}

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

.access-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--main);
}

.info-table {
  width: 100%;
}

.info-table tr {
  border-bottom: 1px solid var(--border);
}

.info-table th {
  width: 100px;
  padding: 12px 0;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
  vertical-align: top;
}

.info-table td {
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.map-placeholder {
  background: linear-gradient(135deg, #d8e4dc, #c0d4c8);
  border-radius: 8px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #7a9e8a;
}

.map-placeholder svg {
  width: 40px;
  height: 40px;
}

.map-placeholder p {
  font-size: 0.85rem;
  font-weight: 700;
}

/* =========================================
   CTAセクション
   ========================================= */
#cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
  text-align: center;
  color: var(--white);
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  color: var(--main);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 44px;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-note {
  margin-top: 20px;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* =========================================
   フッター
   ========================================= */
#footer {
  background: #0f0f0f;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo .company-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--main);
  margin-bottom: 8px;
}

.footer-logo p {
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--main);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 900px) {
  .troubles-grid,
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .access-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,0.25);
  }

  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.25);
  }

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

@media (max-width: 680px) {
  .header-tel {
    display: none;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

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

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

  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .flow-steps::before {
    display: none;
  }

  .flow-step:nth-child(n+3) {
    margin-top: 32px;
  }

  .flow-step:nth-child(n+4) {
    margin-top: 32px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
    height: 320px;
  }

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

  #hero {
    padding: 80px 0 70px;
    min-height: 480px;
  }
}

@media (max-width: 420px) {
  .troubles-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }
}
