/* ==========================================================================
   polaris (ポラリス) Modern Responsive Design System
   Pure Static Performance / Emdash Jamstack Compatible
   ========================================================================== */

:root {
  --color-primary: #111827;
  --color-secondary: #4b5563;
  --color-accent: #0209D9;
  --color-accent-light: #e0e7ff;
  --color-gold: #f59e0b;
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-border-subtle: #f3f4f6;
  --color-text-main: #1f2937;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-ambient: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --container-max: 1140px;
}

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

html {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* ==========================================================================
   Header & Global Navigation (Zero-Break Responsive Architecture)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-subcopy {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

/* PC Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-secondary);
  padding: 8px 6px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-cta-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: var(--color-primary);
  transition: background 0.2s ease;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile Drawer Menu */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 24px 20px;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
}

.mobile-drawer.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
}

.mobile-nav-cta {
  margin-top: 16px;
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Media Query: Intermediate Resolution Defense (1040px) */
@media screen and (max-width: 1040px) {
  .brand-subcopy {
    display: none;
  }
  .site-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
}

@media screen and (max-width: 420px) {
  .header-container {
    padding: 0 16px;
  }
  .brand-name {
    font-size: 1.0rem;
  }
  .header-logo {
    height: 32px;
  }
}

/* ==========================================================================
   Hero Slider Section
   ========================================================================== */

.hero-slider-section {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.hero-slide-container {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.0s ease, visibility 1.0s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: #ffffff;
}

.hero-title .highlight {
  color: #FFF70A;
}

.hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* Hero Points Navigation Bar */
.hero-points-nav {
  position: relative;
  z-index: 10;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.points-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.point-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.point-item:last-child {
  border-right: none;
}

.point-item.active,
.point-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.point-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}

.point-text {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: #e5e7eb;
}

@media screen and (max-width: 768px) {
  .points-grid {
    grid-template-columns: 1fr;
  }
  .point-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
  }
  .point-item:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Features 3BOX Section
   ========================================================================== */

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.three-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.three-box-card {
  padding: 36px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.three-box-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(0,0,0,0.45);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  flex-grow: 1;
}

.card-cta {
  margin-top: 24px;
}

.card-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #111827;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.card-cta-btn:hover {
  background: #ffffff;
  transform: translateX(2px);
}

@media screen and (max-width: 860px) {
  .three-box-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==========================================================================
   Message / Story Banner
   ========================================================================== */

.message-banner {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin: 32px 0;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.message-banner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
  line-height: 1.4;
}

.message-banner p {
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.message-banner p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   3秒Web適性・想い明確化診断 (Micro-Conversion Island UI)
   ========================================================================== */

.diagnosis-island {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin: 48px 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.diagnosis-island::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, transparent 70%);
}

.island-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.island-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: #c7d2fe;
}

.island-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.35;
}

.island-desc {
  font-size: 0.95rem;
  color: #c7d2fe;
  line-height: 1.6;
}

.island-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.step-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.step-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fde047;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.options-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.diag-option-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diag-option-btn:hover,
.diag-option-btn.selected {
  background: #ffffff;
  color: #1e1b4b;
  border-color: #ffffff;
  font-weight: 700;
  transform: translateY(-1px);
}

.diag-result-card {
  display: none;
  background: #ffffff;
  color: #111827;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 10px;
  box-shadow: var(--shadow-ambient);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.diag-result-card.active {
  display: block;
}

.result-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 8px;
}

.result-desc {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 16px;
}

.result-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1b4b;
  color: #fff;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   Works & Blog Cards Grid
   ========================================================================== */

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.content-card:hover .card-thumb-img {
  transform: scale(1.05);
}

.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.card-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.45;
  margin-bottom: 10px;
  flex-grow: 1;
}

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

.card-excerpt {
  font-size: 0.88rem;
  color: var(--color-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media screen and (max-width: 900px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Article Detail & Page Content Typography
   ========================================================================== */

.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.breadcrumb-nav {
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.breadcrumb-nav li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--color-text-light);
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.article-eyecatch {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2b3543;
}

.entry-content p {
  margin-bottom: 1.6em;
}

.entry-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 2.2em 0 1em;
  padding: 10px 18px;
  background: #f3f4f6;
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.4;
}

.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.8em 0 0.8em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-border);
}

.entry-content ul,
.entry-content ol {
  margin: 1.2em 0 1.6em 1.5em;
  padding-left: 0.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  background: #f8fafc;
  border-left: 4px solid #cbd5e1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-secondary);
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background: #f8fafc;
  font-weight: 700;
}

/* ==========================================================================
   Answer Capsule (GEO / LLMO AI-Engine Optimization)
   ========================================================================== */

.answer-capsule {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}

.capsule-badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.capsule-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 10px;
}

.capsule-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #166534;
  margin-bottom: 16px;
}

/* ==========================================================================
   CLS-Zero AdSlot Component (Better Ads Standards)
   ========================================================================== */

.adslot-container {
  min-height: 280px;
  background: #f9fafb;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 36px 0;
  padding: 16px;
  position: relative;
}

.adslot-label {
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ==========================================================================
   Contact Form (Zero-Trust & Frictionless)
   ========================================================================== */

.contact-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  margin: 32px 0;
}

.form-group {
  margin-bottom: 24px;
}

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

.form-badge-optional {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.form-badge-required {
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--color-primary);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.form-help {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 28px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-submit-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.form-success-banner {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  text-align: center;
}

/* ==========================================================================
   Footer & Legal Disclaimer (Two-Tier Salvage Compliance)
   ========================================================================== */

.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: auto;
  border-top: 1px solid #1f2937;
  font-size: 0.9rem;
}

.footer-top {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #9ca3af;
  line-height: 1.7;
  font-size: 0.88rem;
  max-width: 440px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

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

.footer-nav a {
  color: #9ca3af;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* Legal Disclaimer Box (消費者契約法第8条対応 サルベージ二段構え条項) */
.footer-legal-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px 32px;
}

.footer-disclaimer-box {
  background: #1f2937;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.7;
  border: 1px solid #374151;
}

.footer-disclaimer-box h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.footer-bottom-bar {
  border-top: 1px solid #1f2937;
  padding: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
}

@media screen and (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
  }
}
