:root {
  --bg-primary: #fcfbfa;
  --bg-surface: #ffffff;
  --bg-muted: #f4f2ee;
  --bg-dark: #17181c;
  --text-main: #17181c;
  --text-muted: #5e626e;
  --text-light: #f4f2ee;
  --accent: #b85d38;
  --accent-hover: #9c4a2a;
  --accent-soft: #fbeee8;
  --border-color: #e6e3dd;
  --border-subtle: #f0ede6;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(23, 24, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(23, 24, 28, 0.06);
  --shadow-lg: 0 16px 40px rgba(23, 24, 28, 0.08);
  --container-max: 1200px;
  --transition: 0.2s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  line-height: 1.7;
  letter-spacing: 0.015em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(252, 251, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-logo:hover {
  color: var(--text-main);
}
.brand-icon {
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-muted);
  color: var(--text-main);
}
.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}
.btn-block {
  display: flex;
  width: 100%;
}

/* Badges & Tags */
.badge-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Hero Section */
.hero-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--border-color);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}
.hero-desc {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.specs-bar {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.spec-item {
  display: flex;
  flex-direction: column;
}
.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}
.hero-media {
  display: flex;
  justify-content: center;
}
.media-card {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.hero-illustration {
  width: 100%;
  height: auto;
}

/* Sections Common */
.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Grids */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Features */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.feature-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Pricing */
.pricing-section {
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.pricing-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.pricing-card.featured-pricing {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 0.25rem;
}
.price-val {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.price-unit {
  font-size: 1rem;
  color: var(--text-muted);
}
.plan-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
}
.plan-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}
.plan-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  margin-right: 10px;
}
.addon-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.addon-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.addon-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.addon-meta {
  display: flex;
  flex-direction: column;
  padding-right: 1rem;
}
.addon-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.addon-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.addon-price {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.addon-footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Workflow */
.workflow-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
}
.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Details/Summary */
.faq-container {
  max-width: 800px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}
.faq-item[open] {
  border-color: var(--accent);
}
.faq-question {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.faq-item[open] .faq-question::after {
  content: "−";
}
.faq-answer {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* CTA Banner */
.cta-banner {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-content {
  max-width: 620px;
}
.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.cta-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page Header for subpages */
.page-header-section {
  padding: 3.5rem 0 2.5rem;
  background-color: var(--bg-muted);
  border-bottom: 1px solid var(--border-color);
}
.breadcrumb-nav {
  margin-bottom: 1rem;
}
.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb-list li+li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-color);
}
.page-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Content blocks */
.content-container {
  max-width: 860px;
}
.content-block {
  margin-bottom: 3.5rem;
}
.content-block h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.content-block p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.table-responsive {
  overflow-x: auto;
}
.table-specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.table-specs th, .table-specs td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
}
.table-specs th {
  background-color: var(--bg-muted);
  font-weight: 700;
}
.table-specs td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

/* Services Detail */
.services-list-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.service-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.service-detail-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.service-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #ffffff;
  padding: 3px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.service-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tag-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}
.tag-unit {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.service-price-tag.small .tag-price {
  font-size: 1.5rem;
  color: var(--accent);
}
.service-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.check-list {
  list-style: none;
  margin-bottom: 2rem;
}
.check-list li {
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  margin-right: 10px;
}
.check-list.compact li {
  padding: 4px 0;
  font-size: 0.9rem;
}

/* Contact Page Layout */
.contact-layout {
  align-items: start;
}
.contact-info-panel {
  padding-right: 1.5rem;
}
.info-group {
  margin-bottom: 1.75rem;
}
.info-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.info-value {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2.25rem; }
.mail-template-preview {
  background: var(--bg-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.mail-template-preview ul {
  padding-left: 1.25rem;
}

/* Legal text */
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}
.legal-content p, .legal-content ul {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.legal-content ul {
  padding-left: 1.5rem;
}
.legal-address-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  font-style: normal;
}

/* 404 */
.status-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  margin-top: auto;
  padding-top: 4.5rem;
  border-top: 1px solid #2a2b30;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer-brand-col .brand-logo {
  color: #ffffff;
  margin-bottom: 1rem;
}
.footer-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-address a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin: 0 auto;
  background: #17181c;
  color: #ffffff;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .pricing-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }
  .nav-menu.is-open {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.25rem;
  }
  .nav-link {
    font-size: 1.15rem;
  }
  .nav-cta {
    width: 100%;
  }
  .nav-cta .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}