/* ============================================
   くらしのつむぎ — 共通スタイルシート
   ============================================ */

:root {
  --brown: #8B6F4E;
  --brown-deep: #6B5238;
  --brown-soft: #A88A6A;
  --green: #9CAF88;
  --green-deep: #7A9068;
  --green-soft: #C4D2B4;
  --orange: #E89B5B;
  --orange-deep: #D07E3E;
  --orange-soft: #F5C89A;
  --white: #FFFFFF;
  --ivory: #FBF7F0;
  --beige: #F3ECE0;
  --beige-deep: #E8DDC8;
  --text: #3D3227;
  --text-soft: #6B5D50;
  --text-mute: #9A8E80;
  --line: #E8DDC8;
  --line-soft: #F0E7D5;
  --shadow-sm: 0 2px 8px rgba(139, 111, 78, 0.06);
  --shadow-md: 0 6px 24px rgba(139, 111, 78, 0.08);
  --shadow-lg: 0 12px 40px rgba(139, 111, 78, 0.12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

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

h1, h2, h3, h4, h5 {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: 0.04em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; transition: opacity .3s var(--ease); }
a:hover { opacity: 0.75; }

/* ========== Layout ========== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all .4s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(139, 111, 78, 0.06);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo img {
  height: 78px;
  transition: height .4s var(--ease);
}
.site-header.scrolled .site-logo img { height: 60px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--orange);
  transition: all .35s var(--ease);
  transform: translateX(-50%);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { width: 100%; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(232, 155, 91, 0.28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.header-cta:hover {
  transform: translateY(-2px);
  opacity: 1 !important;
  box-shadow: 0 8px 20px rgba(232, 155, 91, 0.38);
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all .3s var(--ease);
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 340px;
    height: 100vh;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 20px;
    transition: right .4s var(--ease);
    box-shadow: -10px 0 40px rgba(139,111,78,.1);
  }
  .site-nav.open { right: 0; }
  .nav-toggle { display: block; z-index: 200; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { padding: 10px 16px; font-size: 13px; }
  .site-logo img { height: 63px; }
  .site-header.scrolled .site-logo img { height: 54px; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  font-family: inherit;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 155, 91, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  opacity: 1;
  box-shadow: 0 14px 30px rgba(232, 155, 91, 0.4);
  background: var(--orange-deep);
}
.btn-outline {
  background: #fff;
  color: var(--brown-deep);
  border: 1.5px solid var(--brown-soft);
}
.btn-outline:hover {
  transform: translateY(-3px);
  opacity: 1;
  background: var(--ivory);
  border-color: var(--brown);
}
.btn-green {
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 8px 22px rgba(122, 144, 104, 0.28);
}
.btn-green:hover {
  transform: translateY(-3px);
  opacity: 1;
  box-shadow: 0 14px 30px rgba(122, 144, 104, 0.4);
}
.btn-large { padding: 22px 44px; font-size: 17px; }
.btn-sm { padding: 12px 22px; font-size: 14px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ========== Section commons ========== */
section { padding: 100px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}
.section-lead {
  font-size: 17px;
  line-height: 2;
  color: var(--text-soft);
  max-width: 720px;
}
.section-lead.center { margin: 0 auto; text-align: center; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ========== Cards ========== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  border: 1px solid var(--line-soft);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 120px 0 20px;
  background: var(--ivory);
}
.breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  font-size: 13px;
  color: var(--text-mute);
}
.breadcrumb-inner a { color: var(--text-mute); }
.breadcrumb-inner a:hover { color: var(--brown); opacity: 1; }
.breadcrumb-inner .sep { margin: 0 10px; opacity: 0.6; }

/* ========== Page hero ========== */
.page-hero {
  background: var(--ivory);
  padding: 40px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin-bottom: 24px;
  line-height: 1.5;
}
.page-hero .lead {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 2;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 20px;
}
.page-hero-deco {
  position: absolute;
  opacity: 0.35;
  pointer-events: none;
}
.page-hero-deco.left { left: -60px; top: 40px; width: 200px; }
.page-hero-deco.right { right: -60px; bottom: 20px; width: 200px; transform: scaleX(-1); }

/* ========== Footer ========== */
.site-footer {
  background: #4E3E2F;
  color: #EFE5D3;
  padding: 72px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand img {
  height: 84px;
  filter: brightness(0) invert(1) opacity(0.92);
  margin-bottom: 20px;
}
.footer-brand .company {
  font-size: 14px;
  line-height: 1.9;
  color: #D9CDB6;
}
.footer-col h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: #D9CDB6; }
.footer-col a:hover { color: #fff; opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #A89880;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-sns { display: flex; gap: 14px; }
.footer-sns a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #D9CDB6;
}
.footer-sns a:hover { background: var(--orange); color: #fff; opacity: 1; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========== Fade-up animation ========== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.fade-up.d1 { transition-delay: .08s; }
.fade-up.d2 { transition-delay: .16s; }
.fade-up.d3 { transition-delay: .24s; }
.fade-up.d4 { transition-delay: .32s; }
.fade-up.d5 { transition-delay: .40s; }
.fade-up.in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ========== FAQ Accordion ========== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease);
}
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-q {
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}
.faq-q .q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.faq-q .q-text { flex: 1; line-height: 1.7; }
.faq-q .q-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .q-toggle { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.faq-a-inner {
  padding: 0 28px 24px 76px;
  color: var(--text-soft);
  line-height: 2;
  font-size: 15px;
}
.faq-item.open .faq-a { max-height: 400px; }
@media (max-width: 640px) {
  .faq-q { padding: 20px; font-size: 15px; }
  .faq-a-inner { padding: 0 20px 20px 20px; }
}

/* ========== Form ========== */
.form-field { margin-bottom: 28px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.form-field label .required {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 500;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 155, 91, 0.14);
}
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  margin-bottom: 0;
  transition: all .3s var(--ease);
  font-size: 15px;
}
.checkbox-grid label:hover { border-color: var(--orange-soft); background: var(--ivory); }
.checkbox-grid input[type="checkbox"] { accent-color: var(--orange); width: 18px; height: 18px; }
@media (max-width: 640px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Contact CTA block (shared) */
.contact-cta { padding: 120px 0; background: linear-gradient(135deg, #F9E4CB 0%, #FBF7F0 60%, #F5E8D0 100%); position: relative; overflow: hidden; text-align: center; }
.contact-cta::before, .contact-cta::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.contact-cta::before { left: 5%; top: 20%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(232,155,91,0.15), transparent 70%); }
.contact-cta::after { right: 5%; bottom: 20%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(156,175,136,0.15), transparent 70%); }
.contact-cta-inner { position: relative; z-index: 2; }
.contact-cta h2 { font-size: clamp(28px, 4.5vw, 44px); color: var(--brown-deep); margin-bottom: 20px; }
.contact-cta .cta-sub { font-size: 17px; color: var(--text-soft); margin-bottom: 48px; }
.contact-cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.tel-btn { display: inline-flex; flex-direction: column; align-items: center; padding: 20px 40px; background: #fff; border-radius: 999px; border: 1.5px solid var(--brown-soft); color: var(--brown-deep); transition: all .3s var(--ease); min-width: 220px; text-decoration: none; }
.tel-btn:hover { transform: translateY(-3px); opacity: 1; box-shadow: 0 12px 28px rgba(139,111,78,0.15); }
.tel-btn .tel-label { font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }
.tel-btn .tel-num { font-family: 'Zen Maru Gothic', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 0.06em; color: var(--brown-deep); }
.tel-btn .tel-hours { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* Flow steps (shared) */
.flow-sec { background: #fff; padding: 120px 0; }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; position: relative; }
.flow-step { background: var(--ivory); border-radius: 24px; padding: 32px 24px; text-align: center; position: relative; transition: all .4s var(--ease); }
.flow-step:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-md); }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; font-family: 'Zen Maru Gothic', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(232,155,91,0.28); }
.flow-step h4 { font-size: 17px; color: var(--brown-deep); margin-bottom: 10px; }
.flow-step p { font-size: 13px; color: var(--text-soft); line-height: 1.7; }
.flow-arrow { position: absolute; right: -18px; top: 40%; color: var(--orange-soft); opacity: 0.7; }
@media (max-width: 900px) { .flow-steps { grid-template-columns: 1fr 1fr; } .flow-arrow { display: none; } }
@media (max-width: 500px) { .flow-steps { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; } }
.flow-note { text-align: center; margin-top: 40px; font-family: 'Zen Maru Gothic', sans-serif; color: var(--brown-deep); font-size: 17px; letter-spacing: 0.06em; }

/* Divider with vine */
.divider-vine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 72px 0;
  color: var(--brown-soft);
}
.divider-vine::before,
.divider-vine::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brown-soft), transparent);
}
.divider-vine .vine-icon {
  width: 40px;
  height: 40px;
  opacity: 0.7;
}
