/* ========================================
   田中塗装 - サンプルLP
   外壁塗装・屋根塗装専門
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #d35400;
  --primary-hover: #b84700;
  --primary-light: #fef5ed;
  --text: #222;
  --text-muted: #666;
  --bg: #fff;
  --bg-beige: #faf7f2;
  --border: #e5e0d8;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 560px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 18px 40px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.25s ease;
}

.btn-cta {
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(211, 84, 0, 0.3);
}
.btn-cta:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(211, 84, 0, 0.35);
}

.btn-tel {
  background: #16a34a;
  color: #fff;
  font-size: 1.1rem;
}
.btn-tel:hover {
  background: #15803d;
  color: #fff;
  transform: translateY(-2px);
}

.btn-tel-large {
  background: #16a34a;
  color: #fff;
  font-size: 1.6rem;
  padding: 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.btn-tel-large span {
  font-size: 0.8rem;
  opacity: 0.85;
}
.btn-tel-large:hover {
  background: #15803d;
  color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* --- Header --- */
.header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  padding: 12px 20px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: flex; flex-direction: column; }
.logo-main { font-size: 1.4rem; font-weight: 900; color: var(--text); }
.logo-sub { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }

.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
}
.tel-label { font-size: 0.7rem; color: var(--text-muted); }
.tel-number { font-size: 1.4rem; font-weight: 900; color: #16a34a; letter-spacing: 0.02em; }
.tel-hours { font-size: 0.65rem; color: var(--text-muted); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "サンプル画像";
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 16px;
}

.marker {
  background: linear-gradient(transparent 60%, rgba(211, 84, 0, 0.5) 60%);
  padding: 0 4px;
}

.hero-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 10px 20px;
  color: #fff;
  text-align: center;
}
.trust-item strong { font-size: 0.7rem; opacity: 0.8; }
.trust-item span { font-size: 1.1rem; font-weight: 900; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-beige { background: var(--bg-beige); }

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 40px;
  line-height: 1.5;
}

.text-accent { color: var(--primary); }

/* --- Problems --- */
.problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.problem {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s ease;
}
.problem:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(211,84,0,0.08);
}

.problem-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #ef4444;
  font-weight: 900;
}
.problem p { font-size: 0.9rem; font-weight: 600; line-height: 1.6; }

.problem-answer {
  text-align: center;
}
.problem-answer p {
  display: inline-block;
  background: var(--primary-light);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
}
.problem-answer strong { color: var(--primary); }

/* --- Reasons --- */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.reason {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.reason:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.reason-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: 8px;
}

.reason h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.5;
}

.reason p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Before/After --- */
.ba-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ba-images {
  display: flex;
  align-items: center;
}

.ba-image {
  flex: 1;
  position: relative;
}
.ba-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ba-image::after {
  content: "サンプル画像";
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 1;
}

.ba-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  color: #fff;
  z-index: 1;
}
.ba-before { background: #6b7280; }
.ba-after { background: var(--primary); }

.ba-arrow {
  width: 40px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  background: var(--bg-beige);
}

.ba-info { padding: 24px 28px; }
.ba-info h3 { font-size: 1rem; font-weight: 900; margin-bottom: 8px; }
.ba-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.ba-detail { display: flex; gap: 20px; }
.ba-detail span {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-beige);
  padding: 4px 12px;
  border-radius: 4px;
}

/* --- Pricing --- */
.price-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  margin-top: -20px;
}

.price-table {
  max-width: 640px;
  margin: 0 auto 32px;
}

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

.price-table th, .price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.price-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.price-table th:first-child { border-radius: 8px 0 0 0; }
.price-table th:last-child { border-radius: 0 8px 0 0; }

.price-table td { background: #fff; }

.price-cell {
  font-weight: 900;
  color: var(--primary);
  font-size: 1.05rem;
}

.price-cta {
  text-align: center;
}
.price-cta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* --- Voices --- */
.voices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.voice {
  background: var(--bg-beige);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.25s ease;
}
.voice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

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

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

.voice-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Area --- */
.area-content {
  max-width: 640px;
  margin: 0 auto;
}

.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.area-group h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--primary);
}

.area-group p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.area-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- CTA Section --- */
.section-cta {
  background: var(--primary);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.section-cta h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-cta p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.8;
}

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

.section-cta .btn-cta {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.section-cta .btn-cta:hover {
  background: #f9f9f9;
  color: var(--primary-hover);
}

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.required {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Footer --- */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 32px 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.footer-logo { font-size: 1.1rem; font-weight: 900; color: #fff; }
.footer-address { font-size: 0.75rem; color: #777; margin-top: 4px; }
.footer-copy { font-size: 0.75rem; color: #666; }

.footer-credit {
  text-align: center;
  font-size: 0.7rem;
  color: #555;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #333;
}
.footer-credit a { color: #888; }
.footer-credit a:hover { color: #ccc; }

/* --- Mobile --- */
@media (max-width: 768px) {
  .header-tel { display: none; }
  .hero-title { font-size: 1.8rem; }
  .hero-trust { gap: 12px; }
  .trust-item { padding: 8px 14px; }
  .trust-item span { font-size: 0.9rem; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.3rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .ba-images { flex-direction: column; }
  .ba-arrow { width: 100%; padding: 8px; transform: rotate(90deg); }
  .area-list { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
