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

:root {
  --brown:       #6b4f3a;
  --brown-light: #9e7c6a;
  --brown-pale:  #e8d5c4;
  --cream:       #fdf8f3;
  --beige:       #f5ede3;
  --text:        #3a2e27;
  --text-muted:  #7a6a5f;
  --white:       #ffffff;
  --green:       #3d8b5e;
  --line-green:  #06C755;
  --max:         1000px;
  --radius:      14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--brown); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-line  { background: var(--line-green); color: #fff; }
.btn-brown { background: var(--brown); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--brown); color: var(--brown); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.btn-white { background: var(--white); color: var(--brown); }

/* ===== ナビ ===== */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253,248,243,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brown-pale);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand . cta"
    "nav nav nav";
  row-gap: 10px;
  align-items: center;
}
.nav-brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--brown); letter-spacing: 0.04em; }
.nav-brand .brand-icon { display: inline-flex; align-items: center; color: var(--brown); }
.nav-brand .brand-icon svg { width: 28px; height: 28px; }
.nav-brand .brand-text { display: inline-flex; gap: 0.3em; }
nav { grid-area: nav; }
.nav-links { display: flex; gap: 22px; flex-wrap: nowrap; justify-content: center; }
.nav-links a { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--brown); }
.nav-cta { grid-area: cta; display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 8px 18px; font-size: 0.85rem; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brown); transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center 65% / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(30,15,5,0.72) 0%, rgba(30,15,5,0.35) 55%, rgba(30,15,5,0.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 540px;
  padding: 48px 48px 48px 24px;
  text-align: right;
}
.hero-badge {
  display: inline-block;
  background: var(--brown-pale);
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-title em { font-style: normal; color: #f9d59b; }
.hero-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  opacity: 0.92;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ===== セクション共通 ===== */
section { padding: 80px 0; }
.section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 52px;
  line-height: 1.9;
}

/* ===== 3つの安心 ===== */
.features { background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.feature-icon {
  color: var(--brown);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brown-pale);
}
.feature-icon svg { width: 1.6em; height: 1.6em; }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ===== こんなときに ===== */
.pain { background: var(--beige); }
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 40px;
}
.pain-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.7;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.pain-item .icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; color: var(--brown); display: inline-flex; align-items: center; }
.pain-item .icon svg { width: 1.4em; height: 1.4em; }
.pain-cta { text-align: center; }

/* ===== サービス ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,0.12); }
.service-card img { width: 100%; height: 195px; object-fit: cover; }
.service-card-body { padding: 22px; }
.service-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--beige);
}
.service-card li {
  font-size: 0.88rem;
  padding: 5px 0;
  color: var(--text);
  display: flex;
  gap: 6px;
}
.service-card li::before {
  content: '';
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  margin-top: 0.3em;
  background-color: var(--brown-light);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.service-note {
  margin-top: 32px;
  background: var(--beige);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== Aboutセクション ===== */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.about-img img { width: 100%; height: 340px; object-fit: cover; }
.about-text .section-label,
.about-text .section-title { text-align: left; }
.about-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}
.about-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 20px;
}
.about-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: var(--beige);
  color: var(--brown);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
}

/* ===== エリア ===== */
.area { background: var(--beige); }
.area-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}
.area-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.area-img img { width: 100%; height: 300px; object-fit: cover; }
.area-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 12px;
}
.area-list { margin-bottom: 20px; }
.area-list li {
  font-size: 0.95rem;
  padding: 6px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--brown-pale);
}
.area-list li:last-child { border-bottom: none; }
.area-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background-color: var(--brown);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/><circle cx='12' cy='10' r='3'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/><circle cx='12' cy='10' r='3'/></svg>") center/contain no-repeat;
}
.area-note { font-size: 0.85rem; color: var(--text-muted); }

/* ===== CTA バナー ===== */
.cta-banner {
  background: var(--brown);
  padding: 64px 24px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 32px;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.contact-card .icon { font-size: 2rem; margin-bottom: 12px; color: var(--brown); display: inline-flex; align-items: center; justify-content: center; }
.contact-card .icon svg { width: 1.8em; height: 1.8em; }

/* ===== 汎用：SVGアイコン共通 ===== */
.qual-icon, .m-icon, .p-icon, .card-icon, .notice-icon, .badge-icon {
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn svg, .tag svg, .service-card-title svg, h2 svg, .brand svg { vertical-align: -0.15em; }
.contact-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.06em; }
.contact-card a, .contact-card p { font-size: 1rem; font-weight: 700; color: var(--brown); line-height: 1.6; }
.contact-card .hours { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; font-weight: 400; }
.contact-card .btn { margin: 12px auto 0; }

/* ===== フッター ===== */
footer {
  background: #2e1f14;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.5); margin: 0 8px; white-space: nowrap; }
footer a:hover { color: rgba(255,255,255,0.9); }
.footer-links { margin-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }

/* ===== フォーカス ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

/* ===== モバイル固定CTA ===== */
.mobile-cta-bar {
  display: none;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .nav-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand cta toggle";
    row-gap: 0;
    padding: 10px 20px;
  }
  .nav-brand { font-size: 1.05rem; gap: 8px; }
  .nav-brand .brand-icon svg { width: 22px; height: 22px; }
  nav { grid-area: nav; }
  .nav-links, .nav-cta { display: none; }
  .nav-cta { grid-area: cta; }
  .nav-toggle { grid-area: toggle; }
  .nav-links.open {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--brown-pale);
    gap: 16px;
    z-index: 200;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open a {
    font-size: 0.95rem;
    padding: 6px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta .btn { padding: 6px 14px; font-size: 0.8rem; }
  .nav-toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

  .hero { min-height: 480px; justify-content: flex-start; }
  .hero-bg { background-position: left 65%; }
  .hero-content { padding: 40px 20px; max-width: 100%; text-align: left; }
  .hero-btns { justify-content: flex-start; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(30,15,5,0.6), rgba(30,15,5,0.5)); }

  section { padding: 56px 0; }

  .feature-grid,
  .services-grid,
  .contact-grid { grid-template-columns: 1fr; }

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

  .about-inner,
  .area-inner { grid-template-columns: 1fr; }
  .about-inner { gap: 32px; }
  .area-inner { gap: 28px; }
  .about-text .section-label,
  .about-text .section-title { text-align: center; }
  .about-title { text-align: center; }
  .about-tags { justify-content: center; }

  /* モバイル固定CTAバー */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--white);
    border-top: 1px solid var(--brown-pale);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 8px 12px;
    gap: 8px;
  }
  .mobile-cta-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    min-height: 48px;
  }
  .mobile-cta-bar .mcta-line {
    background: var(--line-green);
    color: #fff;
  }
  .mobile-cta-bar .mcta-tel {
    background: var(--brown);
    color: #fff;
  }

  /* 固定CTAバー分のフッター余白 */
  footer { padding-bottom: 80px; }
}
