/* Any Gold Trust 公式サイト 共通スタイル
   ベース: tenant-page-renewal-final.html (2026-05-10) */

:root {
    --bg: #F7F4EE;
    --bg-card: #FFFFFF;
    --ink: #1F1F1F;
    --ink-soft: #5A5A5A;
    --ink-muted: #8B8B8B;
    --gold: #A88B5C;
    --gold-soft: #D4BC8A;
    --navy: #1B2B3F;
    --emergency: #C04A3E;
    --emergency-bg: #FBEDEB;
    --line: #E5DFD3;
    --line-soft: #EFEAE0;
    --shadow: 0 2px 20px rgba(31, 31, 31, 0.04);
    --shadow-hover: 0 8px 40px rgba(31, 31, 31, 0.08);
  }

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

  body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  .serif { font-family: 'Shippori Mincho', serif; }

  /* ===== Emergency Banner（クリック可能・判断ガイドへ誘導） ===== */
  .emergency-bar {
    background: var(--emergency);
    color: white;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    text-decoration: none;
    /* スクロールしても常に画面上部に固定 */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: background 0.15s ease;
  }
  .emergency-bar:hover { background: #a83a30; }
  .emergency-bar .label {
    background: white;
    color: var(--emergency);
    padding: 3px 10px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
  }
  .emergency-bar .emergency-msg {
    color: white;
    font-size: 14px;
  }
  .emergency-bar .emergency-cta {
    color: white;
    font-weight: 700;
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 13px;
  }

  /* ===== Header ===== */
  header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    font-family: 'Shippori Mincho', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }
  .logo span { color: var(--gold); }
  nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
    font-size: 14px;
  }
  nav a {
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
  }
  nav a.active { border-bottom-color: var(--gold); }
  nav a:hover { border-bottom-color: var(--gold-soft); }

  .menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--ink);
    padding: 8px 16px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    border-radius: 2px;
  }

  /* ===== Hero ===== */
  .hero {
    padding: 80px 48px 60px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .breadcrumb {
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    margin-bottom: 32px;
  }
  .breadcrumb a { color: var(--ink-muted); text-decoration: none; }
  .hero-label {
    font-family: 'Shippori Mincho', serif;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.3em;
    margin-bottom: 12px;
  }
  .hero h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  .hero h1 .accent {
    border-bottom: 3px solid var(--gold);
    padding-bottom: 4px;
  }
  .hero p {
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 680px;
  }

  /* ===== Three Paths ===== */
  .paths {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .path-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 4px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .path-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .path-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
  }
  .path-card:hover::before { transform: scaleX(1); }
  .path-num {
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.3em;
    margin-bottom: 16px;
  }
  .path-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 22px;
    margin-bottom: 12px;
  }
  .path-desc {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 24px;
    line-height: 1.7;
  }
  .path-arrow {
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* ===== Section Header ===== */
  .section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px;
  }
  .section-head {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .section-num {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 0.3em;
  }
  .section-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 32px;
    font-weight: 500;
  }
  .section-en {
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.3em;
    margin-left: auto;
  }

  /* ===== Q&A Grid ===== */
  .qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .qa-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 32px 28px;
    transition: all 0.3s;
    cursor: pointer;
  }
  .qa-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
  }
  .qa-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
  }
  .qa-cat {
    font-family: 'Shippori Mincho', serif;
    font-size: 20px;
    margin-bottom: 6px;
  }
  .qa-cat-en {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
  }
  .qa-list {
    list-style: none;
    margin-bottom: 24px;
  }
  .qa-list li {
    font-size: 13px;
    color: var(--ink-soft);
    padding: 10px 0;
    border-top: 1px dashed var(--line-soft);
    padding-left: 18px;
    position: relative;
  }
  .qa-list li::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 11px;
  }
  .qa-link {
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    letter-spacing: 0.05em;
  }

  /* ===== Scenarios ===== */
  .scenario-bg {
    background: linear-gradient(180deg, var(--bg) 0%, #EDE7DA 100%);
    margin: 0 -48px;
    padding: 80px 48px;
  }
  .scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1104px;
    margin: 0 auto;
  }
  .scenario-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
  }
  .scenario-stage {
    font-family: 'Shippori Mincho', serif;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
  }
  .scenario-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 22px;
    margin-bottom: 16px;
    line-height: 1.5;
  }
  .scenario-desc {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 24px;
    line-height: 1.8;
  }
  .scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .scenario-tags span {
    font-size: 11px;
    background: var(--bg);
    color: var(--ink-soft);
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.05em;
  }

  /* ===== Procedures ===== */
  .procedures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .proc-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
  }
  .proc-item:hover {
    border-color: var(--gold);
    background: #FCFAF5;
  }
  .proc-name {
    font-size: 15px;
    font-weight: 500;
  }
  .proc-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
  }
  .proc-time {
    font-size: 11px;
    color: var(--ink-muted);
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 2px;
    white-space: nowrap;
  }
  .proc-arrow {
    color: var(--gold);
    font-size: 14px;
  }

  /* ===== Contact ===== */
  .contact-bg {
    background: var(--navy);
    color: white;
    margin: 0 -48px;
    padding: 80px 48px;
  }
  .contact-inner {
    max-width: 1104px;
    margin: 0 auto;
  }
  .contact-bg .section-head {
    border-bottom-color: rgba(255,255,255,0.15);
  }
  .contact-bg .section-num,
  .contact-bg .section-en { color: var(--gold-soft); }
  .contact-bg .section-title { color: white; }
  .contact-intro {
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    font-size: 15px;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
  .contact-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 28px 24px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
  }
  .contact-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--gold-soft);
  }
  .contact-icon {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .contact-method {
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    margin-bottom: 6px;
  }
  .contact-best-for {
    font-size: 12px;
    color: var(--gold-soft);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
  }
  .contact-detail {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
  }
  .hours {
    background: rgba(255,255,255,0.05);
    padding: 20px 28px;
    border-radius: 4px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
    border-left: 3px solid var(--gold-soft);
  }
  .hours-label {
    font-size: 12px;
    color: var(--gold-soft);
    letter-spacing: 0.2em;
  }
  .hours-value {
    font-size: 15px;
    color: white;
  }

  /* ===== Footer ===== */
  footer {
    background: #14202E;
    color: rgba(255,255,255,0.6);
    padding: 48px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  /* ===== Note Box ===== */
  .mockup-note strong { color: #8B6F1A; }

  /* ===========================================
     レスポンシブ対応
     =========================================== */
  
  /* タブレット (1024px以下) */
  @media (max-width: 1024px) {
    header { padding: 18px 32px; }
    nav ul { gap: 24px; }
    .hero { padding: 60px 32px 50px; }
    .hero h1 { font-size: 36px; }
    .paths {
      padding: 0 32px 60px;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    .path-card { padding: 32px 24px; }
    .section { padding: 60px 32px; }
    .section-title { font-size: 28px; }
    .qa-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
    .scenario-bg { margin: 0 -32px; padding: 60px 32px; }
    .scenarios { gap: 20px; }
    .scenario-card { padding: 32px 24px; }
    .scenario-title { font-size: 20px; }
    .contact-bg { margin: 0 -32px; padding: 60px 32px; }
    .contact-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* スマートフォン (768px以下) */
  @media (max-width: 768px) {
    .emergency-bar {
      padding: 10px 16px;
      font-size: 13px;
      gap: 8px;
    }
    .emergency-bar .emergency-msg { font-size: 13px; }

    header { padding: 16px 20px; }
    .logo { font-size: 18px; }
    nav { display: none; }
    nav.open {
      display: block;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow);
      z-index: 50;
    }
    nav.open ul {
      flex-direction: column;
      padding: 16px 20px;
      gap: 0;
    }
    nav.open ul li {
      border-bottom: 1px solid var(--line-soft);
    }
    nav.open ul li:last-child { border-bottom: none; }
    nav.open a {
      display: block;
      padding: 14px 0;
      border-bottom: none;
    }
    .menu-toggle { display: block; }
    header { position: relative; }

    .hero {
      padding: 40px 20px 30px;
    }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }
    .hero-label {
      font-size: 11px;
      letter-spacing: 0.2em;
    }
    .breadcrumb { margin-bottom: 20px; }

    .paths {
      padding: 0 20px 40px;
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .path-card { padding: 28px 22px; }
    .path-title { font-size: 19px; }

    .section { padding: 40px 20px; }
    .section-head {
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 32px;
    }
    .section-title { font-size: 22px; }
    .section-en {
      width: 100%;
      margin-left: 0;
      font-size: 11px;
    }

    .qa-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .qa-card { padding: 24px 20px; }
    .qa-cat { font-size: 18px; }

    .scenario-bg { margin: 0 -20px; padding: 40px 20px; }
    .scenarios {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .scenario-card { padding: 28px 22px; }
    .scenario-title { font-size: 18px; }

    .procedures {
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .proc-item {
      padding: 18px 20px;
      flex-wrap: wrap;
    }
    .proc-name { font-size: 14px; }

    .contact-bg { margin: 0 -20px; padding: 40px 20px; }
    .contact-intro { font-size: 14px; }
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .contact-card { padding: 22px 20px; }
    .hours {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      padding: 18px 22px;
    }

    footer { padding: 32px 20px; font-size: 11px; }
  }

  /* 極小スマートフォン (480px以下) */
  @media (max-width: 480px) {
    .hero h1 { font-size: 22px; }
    .section-title { font-size: 20px; }
    .emergency-bar {
      flex-direction: column;
      gap: 6px;
      text-align: center;
    }
  }

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: white;
  padding: 48px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand .logo { color: white; font-size: 20px; }
.footer-brand .logo span { color: var(--gold-soft); }
.footer-meta { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }

/* ===== Category Page ===== */
.category-hero h1 { font-size: 38px; font-family: 'Shippori Mincho', serif; }
.category-nav {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.category-pill:hover { border-color: var(--gold-soft); color: var(--ink); }
.category-pill.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.qa-detail-list {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.qa-detail {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.qa-detail-q {
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  background: var(--line-soft);
  border-bottom: 1px solid var(--line);
}
.qa-detail-q::before {
  content: 'Q';
  font-family: 'Shippori Mincho', serif;
  color: var(--gold);
  font-size: 22px;
  flex-shrink: 0;
}
.qa-detail-a {
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.qa-detail-a::before {
  content: 'A';
  font-family: 'Shippori Mincho', serif;
  color: var(--ink);
  font-size: 22px;
  flex-shrink: 0;
}
.qa-detail-a > div { flex: 1; }
.qa-detail-a p { margin-bottom: 1em; }
.qa-detail-a p:last-child { margin-bottom: 0; }
.qa-detail-meta {
  padding: 12px 28px;
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}
.qa-detail-meta a { color: var(--gold); text-decoration: none; }
.qa-detail-meta a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .category-nav { padding: 0 24px; }
  .category-hero h1 { font-size: 28px; }
  .qa-detail-q, .qa-detail-a { padding: 18px 20px; }
  .qa-detail-q { font-size: 15px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Anchor wrapping reset (cards/path-cards/proc-items) ===== */
a.emergency-bar,
a.path-card,
a.qa-card,
a.proc-item,
a.contact-card,
a.business-main-card,
a.scenario-card {
  color: inherit;
  text-decoration: none;
  display: block;
}
a.emergency-bar *,
a.path-card *,
a.qa-card *,
a.proc-item *,
a.contact-card *,
a.business-main-card *,
a.scenario-card * { color: inherit; }
a.qa-card .qa-cat-en,
a.qa-card .qa-link { color: var(--ink-muted); }
a.qa-card .qa-cat { color: var(--ink); }
a.qa-card .qa-list li { color: var(--ink-soft); }
a.qa-card:hover .qa-link { color: var(--gold); }
a.path-card .path-num,
a.path-card .path-arrow { color: var(--gold); }

/* ===== Related contact link (qa-detail-meta) ===== */
.qa-detail-meta .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin-left: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s;
}
.qa-detail-meta .contact-link:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}
.qa-detail-meta .contact-link.is-static {
  cursor: default;
  pointer-events: none;
}

/* ===== Category page: TOC (目次) ===== */
.qa-toolbar {
  max-width: 920px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.qa-search {
  position: relative;
  margin-bottom: 24px;
}
.qa-search input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.qa-search input:focus {
  outline: none;
  border-color: var(--gold);
}
.qa-search::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}
.qa-search-count {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  min-height: 1em;
}
.qa-search-count.is-empty {
  color: var(--emergency);
  font-weight: 700;
}

.qa-toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 28px;
}
.qa-toc-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qa-toc-title::before { content: '📑'; }
.qa-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 24px;
}
.qa-toc li {
  counter-increment: toc;
  padding-left: 30px;
  position: relative;
  line-height: 1.5;
}
.qa-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Shippori Mincho', serif;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
}
.qa-toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.qa-toc a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold-soft);
}

/* スクロール対象用のオフセット（緊急バナー＋ヘッダー分） */
.qa-detail { scroll-margin-top: 120px; }

@media (max-width: 768px) {
  .qa-toolbar { padding: 0 20px; }
  .qa-toc { padding: 18px 20px; }
  .qa-toc ol { grid-template-columns: 1fr; }
}

/* ===== Logo / footer-nav anchor reset ===== */
a.logo {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
a.logo span { color: var(--gold); }
a.logo:hover span { color: var(--gold-soft); }

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--gold-soft); }
.footer-brand a.logo { color: white; }
.footer-brand a.logo span { color: var(--gold-soft); }

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
  border: none;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 0.9;
  pointer-events: auto;
}
.back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 20px;
  }
}

/* ===== Emergency Guide Section (tenantページ) ===== */
.emergency-guide {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 24px;
  scroll-margin-top: 120px;
}
.emergency-guide h2 {
  font-size: 24px;
  font-family: 'Shippori Mincho', serif;
  color: var(--ink);
  margin: 0 0 6px;
}
.emergency-guide .guide-intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

/* 個別ブロック共通 */
.emergency-guide .guide-block {
  background: white;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 16px;
  border-left: 5px solid var(--gold);
  box-shadow: 0 2px 8px rgba(31,31,31,0.04);
}
.emergency-guide .guide-block--service { border-left-color: var(--emergency); }
.emergency-guide .guide-block--gas { border-left-color: #d97706; }
.emergency-guide .guide-block--power { border-left-color: #2563eb; }
.emergency-guide .guide-block--mgmt { border-left-color: var(--gold); }

.emergency-guide .guide-block-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.emergency-guide .guide-badge {
  display: inline-block;
  background: var(--emergency);
  color: white;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.emergency-guide .guide-badge--gas { background: #d97706; }
.emergency-guide .guide-badge--power { background: #2563eb; }
.emergency-guide .guide-badge--mgmt { background: var(--gold); }
.emergency-guide .guide-block-target {
  font-size: 13px;
  color: var(--ink-muted);
}

/* グリッド（駆けつけサービス3カード） */
.emergency-guide .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 4px 0 12px;
}
.emergency-guide .guide-item {
  background: #fdfaf5;
  border-radius: 4px;
  padding: 12px 14px;
}
.emergency-guide .guide-item .head {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--ink);
}
.emergency-guide .guide-item .body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* シンプルリスト（ガス・電力・管理） */
.emergency-guide .guide-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
}
.emergency-guide .guide-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
}
.emergency-guide .guide-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--gold);
}

/* CTA */
.emergency-guide .guide-cta {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
}
.emergency-guide .guide-cta a {
  color: var(--emergency);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.emergency-guide .guide-cta--mgmt a {
  color: var(--gold);
  font-size: 15px;
}
.emergency-guide .guide-cta-sep {
  color: var(--ink-muted);
  margin: 0 10px;
  font-weight: 400;
}
.emergency-guide .guide-note-small {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 4px 0 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .emergency-guide { padding: 0 16px; }
  .emergency-guide .guide-block { padding: 16px 18px; }
  .emergency-guide .guide-cta { font-size: 15px; }
  .emergency-guide .guide-cta-sep { display: block; height: 4px; margin: 4px 0; }
}

/* ===== Global Q&A search (tenantトップに表示) ===== */
.global-search-hero {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 48px;
}
.global-search-wrapper {
  position: relative;
}
.global-search-wrapper input {
  width: 100%;
  padding: 20px 24px 20px 60px;
  font-size: 17px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 4px;
  font-family: inherit;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.global-search-wrapper input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}
.global-search-wrapper::before {
  content: '🔍';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}
.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-hover);
  max-height: 480px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}
.global-search-results.is-open { display: block; }
.gs-result {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.gs-result:hover { background: var(--bg); }
.gs-result:last-child { border-bottom: none; }
.gs-result-cat {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-weight: 700;
}
.gs-result-q {
  font-size: 15px;
  margin-top: 4px;
  line-height: 1.5;
}
.gs-result-snippet {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.4;
}
.gs-empty {
  padding: 24px;
  color: var(--ink-muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .global-search-hero { padding: 0 24px; margin-bottom: 40px; }
  .global-search-wrapper input { font-size: 15px; padding: 16px 20px 16px 50px; }
  .global-search-wrapper::before { left: 18px; }
}

/* ===== Common page hero ===== */
.page-hero {
  padding: 80px 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero .hero-label { letter-spacing: 0.15em; }
.page-hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 44px;
  letter-spacing: 0.04em;
  margin-top: 12px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.page-hero .lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
  max-width: 720px;
}
.page-hero .tagline-en {
  letter-spacing: 0.3em;
  font-size: 14px;
  color: var(--gold);
  margin-top: 8px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .page-hero .tagline-en {
    font-size: 11px;
    letter-spacing: 0.2em;
  }
}

/* ===== Home ===== */
.home-hero {
  padding: 100px 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.home-hero .brand-jp {
  font-family: 'Shippori Mincho', serif;
  font-size: 56px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 20px;
}
.home-hero .brand-en {
  letter-spacing: 0.3em;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 32px;
}
.home-hero .lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.9;
}
.home-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 48px;
}
.home-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.home-section-head h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}
.home-section-head .en {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.business-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.business-card:hover {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.business-card .biz-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.business-card .biz-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.4;
}
.business-card .biz-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}
.business-card .biz-arrow {
  margin-top: 16px;
  color: var(--gold);
  font-size: 13px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.news-item:last-child { border-bottom: none; }
.news-date {
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.news-title {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Company / Privacy / Recruit (text-heavy) ===== */
.text-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 48px;
}
.philosophy {
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
  margin: 40px 0;
  font-family: 'Shippori Mincho', serif;
  line-height: 2;
  color: var(--ink);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.info-table th {
  text-align: left;
  vertical-align: top;
  width: 180px;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 14px;
}
.info-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.7;
}
.info-table td a { color: var(--gold); }

.text-section {
  margin: 48px 0;
}
.text-section h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.text-section h3 {
  font-size: 16px;
  margin: 24px 0 12px;
  color: var(--ink);
}
.text-section p {
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 1em;
}
.text-section ol, .text-section ul {
  color: var(--ink-soft);
  line-height: 1.9;
  margin-left: 1.5em;
  margin-bottom: 1em;
}
.text-section li { margin-bottom: 0.4em; }

/* ===== Strengths (management) ===== */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.strength-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
}
.strength-card .num {
  font-family: 'Shippori Mincho', serif;
  font-size: 36px;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 16px;
}
.strength-card h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.strength-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.steps {
  counter-reset: step;
  margin: 32px 0;
}
.step {
  position: relative;
  padding: 24px 24px 24px 80px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 24px;
  font-family: 'Shippori Mincho', serif;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.step p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== Contact page ===== */
.contact-purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.contact-purpose-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.contact-purpose-card .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.contact-purpose-card h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  margin-bottom: 12px;
}
.contact-purpose-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
  flex: 1;
  margin-bottom: 16px;
}
.contact-purpose-card .btn {
  text-align: center;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.contact-purpose-card .btn:hover {
  background: var(--gold);
}

/* ===== Mobile responsive ===== */
@media (max-width: 768px) {
  .home-hero { padding: 60px 24px 40px; }
  .home-hero .brand-jp { font-size: 36px; }
  .home-section { padding: 0 24px; margin: 40px auto; }
  .text-page { padding: 0 24px; }
  .page-hero { padding: 60px 24px 32px; }
  .page-hero h1 { font-size: 28px; }
  .info-table th { width: 110px; padding-right: 12px; font-size: 13px; }
  .news-item { grid-template-columns: 100px 1fr; gap: 12px; }
  .step { padding: 56px 20px 20px; }
  .step::before { top: 20px; left: 20px; }
}

/* ===== Brand colors (logo-derived accents) ===== */
:root {
  --brand-red: #C64B4B;
  --brand-gold: #D9A042;
  --brand-blue: #4A8FB8;
}

/* ===== Logo (image + 3-color text) ===== */
a.logo,
.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.footer-brand .logo-img { height: 36px; }
.logo-text {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}
.logo-text .brand-r { color: var(--brand-red); }
.logo-text .brand-g { color: var(--brand-gold); }
.logo-text .brand-b { color: var(--brand-blue); }

.footer-brand .logo-text { font-size: 18px; }
/* フッターは白背景でないので各色を少し明るく */
.footer-brand .logo-text .brand-r { color: #E07474; }
.footer-brand .logo-text .brand-g { color: #E8B85E; }
.footer-brand .logo-text .brand-b { color: #6BA8CC; }

@media (max-width: 768px) {
  .logo-img { height: 36px; }
  .logo-text { font-size: 17px; }
}

/* ===== Home: 会社サマリーストリップ ===== */
.home-summary {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 48px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.summary-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}
.summary-item:last-child { border-right: none; }
.summary-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}
.summary-num .summary-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-left: 4px;
}
.summary-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ===== Home: 事業案内メインカード（管理運営） ===== */
.business-main-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 48px 40px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.business-main-card:hover {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.business-main-card .biz-main-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
  background: var(--bg);
}
.business-main-card .biz-num {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 16px;
}
.business-main-card .biz-main-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--ink);
}
.business-main-card .biz-main-tagline {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.business-main-card .biz-main-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
  max-width: 720px;
  margin: 0 auto 24px;
}
.business-main-card .biz-arrow {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .business-main-card { padding: 36px 24px; }
  .business-main-card .biz-main-title { font-size: 26px; }
  .business-main-card .biz-main-tagline { font-size: 14px; }
  .business-main-card .biz-main-desc { font-size: 14px; line-height: 1.9; }
  .business-main-card .biz-main-desc br { display: none; }
}

@media (max-width: 768px) {
  .home-summary { padding: 0 24px; margin-bottom: 40px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-item {
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 22px 14px;
  }
  .summary-item:nth-child(2n) { border-right: none; }
  .summary-item:nth-last-child(-n+2) { border-bottom: none; }
  .summary-num { font-size: 24px; }
  .summary-num .summary-unit { font-size: 12px; }
}
