/* ====================================================
   京都家財整理ガイド - Clean Professional Design System
   ==================================================== */
:root {
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-primary-light: #e0f2fe;
  --color-secondary: #0f172a;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-line: #06c755;
  --color-line-hover: #05b04c;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;
  --color-card-border: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
}

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

body {
  font-family: var(--font-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  padding-bottom: 76px; /* space for mobile fixed bar */
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo-area {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-title span.badge {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-tel-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.header-tel-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}

.btn-header-line {
  background: var(--color-line);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(6,199,85,0.3);
}

.btn-header-line:hover {
  background: var(--color-line-hover);
  color: #fff;
}

/* Global Nav */
.global-nav {
  background: #f1f5f9;
  border-bottom: 1px solid var(--color-border);
}

.nav-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  border-bottom: 2px solid transparent;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
  background: #fff;
}

/* Breadcrumbs */
.breadcrumb-area {
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumb-list li+li::before {
  content: ">";
  margin-right: 8px;
  color: #94a3b8;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  padding: 44px 0 36px;
  border-radius: 0 0 24px 24px;
  margin-bottom: 32px;
}

.hero-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
}

.hero p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 760px;
}

/* Operator Disclosure Box (Trust / Legal E-E-A-T) */
.operator-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #475569;
  margin: 24px 0;
  line-height: 1.7;
}

.operator-box strong {
  color: var(--color-secondary);
}

/* Content Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  margin-bottom: 48px;
}

@media (max-width: 860px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

.main-content {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cards & Sections */
.content-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 32px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .content-card {
    padding: 24px 18px;
  }
}

.content-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-secondary);
  border-left: 5px solid var(--color-primary);
  padding-left: 12px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.content-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.content-card p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.85;
}

.content-card ul, .content-card ol {
  margin: 16px 0 20px 24px;
  color: #334155;
}

.content-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  background: #fff;
  min-width: 600px;
}

.compare-table th, .compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--color-secondary);
}

.compare-table tr.highlight {
  background: #f0fdf4;
}

.compare-table tr.highlight td {
  font-weight: 600;
  color: #166534;
}

.badge-ok {
  color: #16a34a;
  font-weight: bold;
}
.badge-caution {
  color: #ea580c;
  font-weight: bold;
}
.badge-ng {
  color: #dc2626;
  font-weight: bold;
}

/* Price Box Grid */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.price-card {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.price-card .madori {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.price-card .amount {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.price-card .amount small {
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--color-text-muted);
}

.price-card .detail {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* In-Content Highlight Callout */
.callout {
  border-radius: 8px;
  padding: 18px 20px;
  margin: 22px 0;
  border-left: 4px solid;
}

.callout-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e3a8a;
}

.callout-warn {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.callout-success {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #14532d;
}

/* Kyoto Local Feature Box */
.kyoto-feature-box {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.kyoto-feature-box h4 {
  font-size: 1.05rem;
  color: #78350f;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Simulator Widget */
.simulator-widget {
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin: 36px 0;
}

.simulator-header {
  text-align: center;
  margin-bottom: 24px;
}

.simulator-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-secondary);
  border: none;
  padding: 0;
  margin-bottom: 8px;
}

.simulator-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.sim-group {
  margin-bottom: 20px;
}

.sim-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
  display: block;
}

.sim-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.sim-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.sim-option-label:hover {
  border-color: var(--color-primary);
  background: #f0f9ff;
}

.sim-option-label input[type="radio"] {
  margin-right: 6px;
}

.sim-result-box {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}

.sim-result-title {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.sim-result-price {
  font-size: 2.1rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.2;
}

.sim-result-price small {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: normal;
}

.sim-breakdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
}

.sim-breakdown-item span {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
}

.sim-breakdown-item strong {
  color: #f1f5f9;
  font-size: 1.05rem;
}

.btn-sim-line {
  display: inline-block;
  background: var(--color-line);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 8px;
  margin-top: 18px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 15px rgba(6,199,85,0.4);
  transition: transform 0.2s;
}

.btn-sim-line:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* In-Page Consultation CTA Card */
.consult-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 28px 24px;
  margin: 32px 0;
  text-align: center;
}

.consult-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  border: none;
  padding: 0;
  margin-bottom: 8px;
}

.consult-card p {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 20px;
}

.consult-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-tel {
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-tel:hover {
  background: #1e293b;
  color: #fff;
}

.btn-cta-line {
  background: var(--color-line);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-line:hover {
  background: var(--color-line-hover);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--color-secondary);
  color: #94a3b8;
  padding: 48px 0 32px;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-about h4,
.footer-nav-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #cbd5e1;
}

.footer-links-list a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
}

/* Floating Bottom Bar for Mobile */
.floating-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  z-index: 999;
}

.f-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.f-btn-tel {
  background: #0f172a;
  color: #ffffff;
}

.f-btn-line {
  background: var(--color-line);
  color: #ffffff;
}

.f-btn-sim {
  background: var(--color-primary);
  color: #ffffff;
}

.f-btn span.icon {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

@media (min-width: 861px) {
  .floating-bottom-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}