/* Prevent horizontal scroll on all viewports */
html, body { overflow-x: hidden; }

/* =========================================================================
   design-c-merge / common.css
   清掃会社HP マージ型（Pattern C 詳細化・7 ページ共通）
   ========================================================================= */

:root {
  /* ================================================================
     Variant α: 和モダン (Japanese Minimal) — Cool-Hard-Clear 象限
     アイボリー + 濃紺 + 深緑 · Zen Kaku Gothic New + Zen Old Mincho
     ================================================================ */

  /* --- backgrounds (アイボリー系) --- */
  --c-bg:        #FBF8F1;
  --c-bg-tint:   #F3EEE1;
  --c-bg-tint-2: #ECE5D3;

  /* --- brand: 濃紺 --- */
  --c-brand:      #1A2B3F;
  --c-brand-deep: #0F1A29;
  --c-brand-soft: #DDE2E8;

  /* --- accent: 深緑 --- */
  --c-accent:      #2C5F4F;
  --c-accent-deep: #1F4438;

  /* --- inks --- */
  --c-ink:   #1F1F1F;
  --c-ink-2: #4A4A4A;
  --c-ink-3: #6A6A6A;

  /* --- lines --- */
  --c-line:   #D4D0C4;
  --c-line-2: #C4BFAF;

  /* --- 電話 CTA 帯 / 拠点マップ (濃紺トーン統一) --- */
  --c-phone-band:   #1A2B3F;
  --c-phone-band-2: #0F1A29;
  --c-teal:         #2C5F4F;
  --c-price-red:    #A63B2F;

  /* --- semantic --- */
  --c-ok:   #4A7C5F;
  --c-warn: #C45D3E;

  /* --- radii (和モダンは角丸控えめ) --- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* --- shadows (硬めで控えめ) --- */
  --shadow-sm: 0 1px 2px rgba(26,43,63,.05);
  --shadow-md: 0 4px 12px rgba(26,43,63,.08);
  --shadow-lg: 0 12px 32px rgba(26,43,63,.12);

  /* --- layout --- */
  --maxw: 1120px;
  --font-base: 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;
  --font-mincho: 'Zen Old Mincho', 'Noto Serif JP', serif;
}

/* --- reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-base);
  font-size: 16px; line-height: 28px; font-weight: 400;
  color: var(--c-ink); background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* --- container --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- images inside decorated wrappers --- */
.fv-card .person img,
.svc3-img img,
.svc-detail-img img,
.ba-img img,
.a-img img,
.ceo-photo img,
.staff-avatar img,
.voice-avatar img,
.fv-cv-mail img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================================
   Header (sticky・全ページ共通)
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.logo { display: flex; align-items: center; }
.logo-mark {
  height: 44px; width: auto; border-radius: 0;
  display: block;
}
.logo-mark img { height: 100%; width: auto; object-fit: contain; display: block; }
/* Footer 内は背景暗いので、白いパディング付きで視認性確保 */
.site-footer .logo-mark {
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
}
.logo-text { font-size: 18px; font-weight: 900; color: var(--c-ink); line-height: 1.2; }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--c-ink-3); margin-top: 2px; }

.header-right { display: flex; align-items: center; gap: 20px; }
.header-nav {
  display: flex; gap: 24px;
}
.header-nav a {
  font-size: 14px; font-weight: 700; color: var(--c-ink-2);
  transition: color 0.15s;
}
.header-nav a:hover, .header-nav a.current { color: var(--c-brand); }

.header-tel { display: flex; align-items: center; gap: 8px; }
.header-tel .icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand-soft);
  display: flex; align-items: center; justify-content: center; color: var(--c-brand-deep);
  font-size: 18px;
}
.header-tel .num {
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 900; color: var(--c-ink); line-height: 1.1;
  letter-spacing: 0.5px;
}
.header-tel .hours { font-size: 11px; color: var(--c-ink-3); }

.btn-primary {
  background: var(--c-accent); color: white;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--c-accent-deep); }

/* =========================================================================
   Breadcrumb (サブページ共通)
   ========================================================================= */
.breadcrumb {
  background: var(--c-bg-tint);
  padding: 12px 24px;
  border-bottom: 1px solid var(--c-line);
}
.breadcrumb-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--c-ink-3);
}
.breadcrumb-inner a { color: var(--c-brand); font-weight: 700; }
.breadcrumb-inner .sep { opacity: 0.5; }

/* =========================================================================
   Page Hero (サブページ共通)
   ========================================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--c-bg-tint), var(--c-bg-tint-2));
  padding: 60px 24px 40px;
  text-align: center;
}
.page-hero .tag {
  display: inline-block;
  background: white; padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--c-brand-deep);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.page-hero h1 {
  font-size: 44px; font-weight: 900; line-height: 1.3;
  color: var(--c-ink); letter-spacing: -0.5px;
  max-width: 900px; margin: 0 auto 16px;
}
.page-hero .lead {
  font-size: 16px; color: var(--c-ink-2);
  max-width: 700px; margin: 0 auto; line-height: 1.9;
}

/* =========================================================================
   Section common
   ========================================================================= */
section.block { padding: 96px 24px; }
/* Variant α: kicker を「── 番号 日本語 ──」型に変更 */
.block-title-small {
  font-family: var(--font-mincho);
  font-size: 14px; font-weight: 500; letter-spacing: 6px;
  color: var(--c-accent-deep); text-align: center; margin-bottom: 16px;
  text-transform: none;
  display: inline-block; position: relative;
  padding: 0 32px;
}
.block-title-small::before,
.block-title-small::after {
  content: ""; position: absolute; top: 50%;
  width: 24px; height: 1px; background: var(--c-accent-deep);
}
.block-title-small::before { left: 0; }
.block-title-small::after { right: 0; }
/* kicker を中央寄せ */
.block-title-small + .block-title { margin-top: 0; }
section > .block-title-small,
.block > .block-title-small { display: block; text-align: center; }
section > .block-title-small,
.block > .block-title-small { text-align: center; }
.area-subtitle { text-align: center; font-size: 14px; color: var(--c-ink-3); margin-top: -18px; margin-bottom: 32px; font-weight: 500; font-family: var(--font-mincho); }
.block-title {
  font-family: var(--font-mincho);
  font-size: 40px; font-weight: 500; text-align: center;
  color: var(--c-ink); line-height: 1.6;
  max-width: 900px; margin: 0 auto 56px;
  letter-spacing: 2px;
}
.block-title.on-dark { color: white; }
.block-title.on-brand { color: white; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn-lg {
  padding: 18px 40px; border-radius: 999px; font-size: 17px;
  background: var(--c-accent); color: white; font-weight: 700;
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s, background 0.2s;
}
.btn-lg:hover { transform: translateY(-2px); background: var(--c-accent-deep); }

.btn-outline {
  padding: 16px 32px; border-radius: 999px; font-size: 15px;
  background: transparent; border: 2px solid var(--c-brand);
  color: var(--c-brand); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--c-brand); color: white; }

.btn-outline-white {
  padding: 14px 32px; border-radius: 999px; font-size: 15px;
  background: transparent; border: 2px solid rgba(255,255,255,0.6);
  color: white; font-weight: 700;
}

/* =========================================================================
   Cards
   ========================================================================= */
.card {
  background: white; border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--shadow-md);
}
.card-hover {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* =========================================================================
   Phone CTA Band (中間・全ページ)
   ========================================================================= */
.phone-band {
  background: linear-gradient(135deg, var(--c-phone-band), var(--c-phone-band-2));
  color: white; padding: 64px 24px; text-align: center;
}
.phone-band h3 {
  font-size: 30px; font-weight: 900; line-height: 1.4; margin-bottom: 32px;
  color: white;
}
.phone-band .cta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 800px; margin: 0 auto; align-items: center;
}
.phone-band .tel-side {
  text-align: right; padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.2);
}
.phone-band .tel-side .label { font-size: 12px; opacity: 0.8; margin-bottom: 8px; }
.phone-band .tel-side .num {
  font-family: 'Inter', sans-serif;
  font-size: 48px; font-weight: 900; color: white; line-height: 1;
  letter-spacing: 1px;
}
.phone-band .tel-side .hours { font-size: 12px; opacity: 0.8; margin-top: 8px; }
.phone-band .mail-side {
  text-align: left; padding-left: 24px;
}
.phone-band .mail-side .label { font-size: 12px; opacity: 0.8; margin-bottom: 8px; }

/* =========================================================================
   Footer (全ページ共通)
   ========================================================================= */
.site-footer {
  background: var(--c-ink); color: white; padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-inner h5 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-inner ul li { padding: 4px 0; font-size: 13px; opacity: 0.7; }
.footer-inner ul li a { color: white; }
.footer-inner ul li a:hover { opacity: 1; text-decoration: underline; }
.copyright { text-align: center; margin-top: 24px; font-size: 12px; opacity: 0.6; }
.footer-tel {
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 900; letter-spacing: 0.5px;
}

/* =========================================================================
   Form 共通
   ========================================================================= */
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.form-row label .req {
  background: var(--c-warn); color: white; padding: 2px 8px;
  font-size: 10px; border-radius: 4px; margin-left: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--c-line-2); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; color: var(--c-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(42,125,184,0.15);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-submit {
  width: 100%; padding: 18px; background: var(--c-accent);
  color: white; border: none; border-radius: 999px;
  font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s;
}
.form-submit:hover { background: var(--c-accent-deep); }
.privacy-check {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0; font-size: 13px; color: var(--c-ink-3);
}

/* =========================================================================
   Grids
   ========================================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: var(--maxw); margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--maxw); margin: 0 auto; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--maxw); margin: 0 auto; }

/* =========================================================================
   Utility
   ========================================================================= */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* セクション本体にも視覚 marker */

/* --- フローティング凡例パネル --- */

/* =========================================================================
   Hamburger button (mobile only)
   ========================================================================= */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: none;
  padding: 10px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
  align-items: center; z-index: 200;
}
.hamburger span {
  display: block; width: 24px; height: 3px;
  background: var(--c-ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
body.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Mobile menu overlay
   ========================================================================= */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,40,80,0.85); backdrop-filter: blur(8px);
  z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  overflow: hidden;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu-inner {
  position: absolute; top: 70px; right: 0;
  width: min(320px, 85vw); height: calc(100vh - 70px);
  background: white; padding: 32px 24px;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
body.menu-open .mobile-menu-inner { transform: translateX(0); }
.mobile-menu-inner nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.mobile-menu-inner nav a {
  display: block; padding: 16px 12px;
  font-size: 16px; font-weight: 700; color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.mobile-menu-inner nav a:hover { color: var(--c-brand); background: var(--c-bg-tint); }
.mm-tel {
  background: linear-gradient(135deg, var(--c-phone-band), var(--c-phone-band-2));
  color: white; padding: 20px; border-radius: var(--r-md);
  text-align: center; margin-bottom: 12px;
}
.mm-tel .label { font-size: 12px; opacity: 0.85; margin-bottom: 4px; }
.mm-tel .num { font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 900; letter-spacing: 0.5px; }
.mm-tel .hours { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.mm-cta {
  display: block; text-align: center;
  background: var(--c-accent); color: white;
  padding: 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-md);
}

/* =========================================================================
   Fixed bottom CTA bar (mobile only)
   ========================================================================= */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-line);
  padding: 8px; gap: 8px; z-index: 90;
  box-shadow: 0 -4px 20px rgba(20,40,80,0.08);
}
.mcb-tel {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--c-brand-soft); color: var(--c-brand-deep);
  padding: 10px 12px; border-radius: var(--r-md);
  text-decoration: none;
}
.mcb-tel .ic { font-size: 18px; }
.mcb-tel .txt { line-height: 1.2; }
.mcb-tel .txt small { display: block; font-size: 10px; opacity: 0.85; }
.mcb-tel .txt strong { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 900; letter-spacing: 0.3px; }
.mcb-mail {
  flex: 1.2;
  background: var(--c-accent); color: white;
  padding: 14px 12px; border-radius: var(--r-md);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  box-shadow: var(--shadow-sm);
}

/* =========================================================================
   RESPONSIVE - 960px (tablet / small PC)
   ========================================================================= */
@media (max-width: 960px) {
  section.block { padding: 72px 20px; }
  .block-title { font-size: 30px; line-height: 42px; margin-bottom: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Header: nav hides */
  .header-nav { display: none; }
  .header-right { gap: 12px; }
  .header-tel .num { font-size: 18px; }

  /* Phone band */
  .phone-band { padding: 48px 20px; }
  .phone-band h3 { font-size: 24px; }
  .phone-band .cta-row { grid-template-columns: 1fr; gap: 20px; }
  .phone-band .tel-side { text-align: center; padding-right: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; }
  .phone-band .tel-side .num { font-size: 40px; }
  .phone-band .mail-side { text-align: center; padding-left: 0; }

  /* Page hero */
  .page-hero h1 { font-size: 36px; line-height: 1.35; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Form */
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================================
   RESPONSIVE - 720px (mobile)
   ========================================================================= */
@media (max-width: 720px) {
  body {
    padding-bottom: 72px; /* fixed CTA bar 分の余白 */
  }
  section.block { padding: 60px 16px; }
  .block-title { font-size: 24px; line-height: 34px; margin-bottom: 28px; }
  .block-title-small { font-size: 11px; }
  .container { padding: 0 16px; }

  /* Header: hamburger 出現、CTA と電話は隠す（固定 CTA バーで代替）*/
  .header-inner { padding: 12px 16px; }
  .logo-mark { width: auto; height: 40px; padding: 6px 10px; font-size: 16px; }
  .logo-text { font-size: 15px; }
  .logo-text small { font-size: 10px; }
  .header-tel { display: none; }
  .header-right .btn-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Breadcrumb */
  .breadcrumb { padding: 8px 16px; }
  .breadcrumb-inner { font-size: 11px; }

  /* Page hero */
  .page-hero { padding: 40px 16px 32px; }
  .page-hero h1 { font-size: 28px; line-height: 1.4; }
  .page-hero .lead { font-size: 14px; line-height: 1.8; }

  /* Grids collapse */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }

  /* Cards */
  .card { padding: 24px; }

  /* Phone band */
  .phone-band { padding: 40px 16px; }
  .phone-band h3 { font-size: 20px; line-height: 1.5; margin-bottom: 24px; }
  .phone-band .tel-side .num { font-size: 32px; }

  /* Buttons */
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .btn-outline { padding: 12px 20px; font-size: 14px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-inner h5 { padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
  /* Footer logo: SP でも読める大きさに (header 36px 正方形は継続、footer だけ拡大) */
  .site-footer .logo-mark { width: auto; height: 44px; padding: 8px 14px; }

  /* Fixed CTA bar 出現 */
  .mobile-cta-bar { display: flex; }
}

/* =========================================================================
   RESPONSIVE - 480px (small mobile)
   ========================================================================= */
@media (max-width: 480px) {
  section.block { padding: 48px 16px; }
  .block-title { font-size: 22px; line-height: 32px; }
  .page-hero h1 { font-size: 24px; }
  .phone-band h3 { font-size: 18px; }
  .phone-band .tel-side .num { font-size: 28px; }
}
