/* LLMO COMPASS - メインスタイル */
/* メインカラー: #0072b9 / 白背景コーポレートデザイン */

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

:root {
  --primary: #0072b9;
  --primary-dark: #005a93;
  --primary-light: #e8f4fb;
  --primary-mid: #0088d1;
  --accent: #00b4d8;
  --text: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg: #ffffff;
  --bg-gray: #f7f9fc;
  --border: #e2e8f0;
  --success: #2ea44f;
  --warning: #f39c12;
  --danger: #e74c3c;
  --shadow: 0 2px 12px rgba(0,114,185,0.08);
  --shadow-lg: 0 8px 32px rgba(0,114,185,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #00274d 0%, #0072b9 50%, #005a93 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.hero-left { color: #fff; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #fff;
}

.hero-headline .highlight {
  color: #90e0f3;
}

.hero-description {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}

.hero-features li .fa-check-circle {
  color: #90e0f3;
  font-size: 16px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,114,185,0.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--primary-light); }

/* ===== SAMPLE SCORE CARD ===== */
.sample-score-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
}

.sample-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.score-grade-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.score-ring-container {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.score-unit {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.score-grade-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.grade-s { background: linear-gradient(135deg, #f5a623, #f9d423); color: #7d4e00; }
.grade-a { background: linear-gradient(135deg, #2ea44f, #48d968); color: #fff; }
.grade-b { background: linear-gradient(135deg, #0072b9, #00b4d8); color: #fff; }
.grade-c { background: linear-gradient(135deg, #f39c12, #f5a623); color: #fff; }
.grade-d { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; }

.score-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.score-sub-card {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px;
}

.sub-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.sub-value {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.sub-max { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 400; }

.sub-bar-bg {
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
}

.sub-bar {
  height: 100%;
  background: linear-gradient(90deg, #90e0f3, #caf0f8);
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.score-before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 14px;
}

.ba-item { text-align: center; }
.ba-label { font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.ba-value { font-size: 28px; font-weight: 700; color: #fff; font-family: 'Inter', sans-serif; }
.ba-after .ba-value { color: #90e0f3; }
.ba-arrow { font-size: 20px; color: rgba(255,255,255,0.5); margin-top: 18px; }

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* ===== DIAGNOSIS SECTION ===== */
.diagnosis-section {
  background: var(--bg-gray);
  padding: 72px 0;
}

/* NEWS バナー */
.news-banner {
  background: var(--primary-dark);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #fff;
}

.news-badge-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.news-tag {
  background: #fff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

.news-date {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  white-space: nowrap;
}

/* NEWS本文は太字にしない */
.news-text {
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  font-weight: 400;
}

.news-text a {
  color: #90e0f3;
  text-decoration: underline;
  font-size: 13px;
}

.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-badge-white {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title { font-size: clamp(22px,3vw,32px); font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.section-title-dark { font-size: clamp(22px,3vw,32px); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.section-title-white { font-size: clamp(22px,3vw,32px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.section-desc { font-size: 15px; color: var(--text-secondary); }
.section-desc-dark { font-size: 15px; color: var(--text-secondary); }
.beta-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
}

/* ===== DIAGNOSIS CARD ===== */
.diagnosis-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto 32px;
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label .fa-globe, .form-label .fa-flag { color: var(--primary); margin-right: 4px; }
.required { background: var(--danger); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; margin-left: 6px; font-weight: 600; }
.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,114,185,0.12); }
.form-input::placeholder { color: #aab; }

.competitor-toggle { margin-bottom: 20px; }
.btn-toggle {
  background: none;
  border: 1.5px dashed var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-toggle:hover { background: var(--primary-light); }

.btn-diagnose {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  margin-top: 8px;
  font-family: inherit;
}
.btn-diagnose:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,114,185,0.35); }

.notice-box {
  background: #fff8e6;
  border: 1.5px solid #f39c12;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.notice-title {
  font-size: 14px;
  font-weight: 700;
  color: #b8660a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 13px;
  color: #7a5200;
  line-height: 1.7;
}
.notice-list li + li { margin-top: 4px; }

.info-box {
  background: var(--primary-light);
  border: 1.5px solid rgba(0,114,185,0.2);
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 760px;
  margin: 0 auto;
}
.info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-box p { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }

/* ===== LLMO SECTION ===== */
.llmo-section { padding: 80px 0; background: #fff; }

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

.stat-card {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.stat-number { font-size: 36px; font-weight: 700; color: #fff; font-family: 'Inter', sans-serif; line-height: 1.2; margin-bottom: 12px; }
.stat-desc { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; }

/* ===== COMPARE SECTION ===== */
.compare-section { padding: 80px 0; background: var(--bg-gray); }

.compare-table-wrap { overflow-x: auto; margin-bottom: 40px; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table thead tr { background: var(--primary); }
.compare-table th {
  padding: 14px 20px;
  font-weight: 600;
  text-align: left;
  color: #fff;
  font-size: 14px;
}
.compare-table .highlight-col { background: var(--primary-dark); }
.compare-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); color: var(--text); }
.compare-table tbody tr:hover { background: var(--primary-light); }

.why-both {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.why-card-main {
  background: var(--primary);
  border-color: var(--primary);
}
.why-icon { font-size: 28px; color: var(--primary); margin-bottom: 12px; }
.why-card-main .why-icon { color: rgba(255,255,255,0.85); }
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.why-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
/* 上記より後に指定（カスケードで白を確実に） */
.why-card-main h3,
.why-card-main p { color: #fff; }

/* ===== MERITS ===== */
.merits-section { padding: 80px 0; background: var(--primary); }
.merits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.merit-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 28px 24px;
  color: #fff;
}
.merit-number {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.merit-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.merit-card ul { list-style: none; }
.merit-card ul li { font-size: 13px; color: rgba(255,255,255,0.88); line-height: 1.65; padding-left: 16px; position: relative; }
.merit-card ul li::before { content: '・'; position: absolute; left: 0; }
.merit-card ul li + li { margin-top: 6px; }

/* ===== SERVICE SECTION ===== */
.service-section { padding: 80px 0; background: #fff; }
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phase-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  background: var(--bg-gray);
}
.phase-card-main {
  background: var(--primary);
  border-color: var(--primary);
}
.phase-num { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.phase-card-main .phase-num { color: rgba(255,255,255,0.75); }
.phase-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.phase-card-main h3 { color: #fff; }
.phase-card ul { list-style: none; }
.phase-card ul li { font-size: 13px; color: var(--text-secondary); padding-left: 16px; position: relative; line-height: 1.65; }
.phase-card-main ul li { color: rgba(255,255,255,0.88); }
.phase-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.phase-card-main ul li::before { color: rgba(255,255,255,0.7); }
.phase-card ul li + li { margin-top: 6px; }

/* ===== FAQ ===== */
.faq-section { padding: 72px 0; background: var(--bg-gray); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 24px 18px; font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

/* ===== LLMO ABOUT ===== */
.llmo-about-section { padding: 64px 0; background: #fff; }
.llmo-about-content { max-width: 760px; margin: 0 auto; }
.llmo-about-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.85; }
.llmo-about-content p + p { margin-top: 16px; }

/* ===== CONTACT ===== */
.contact-section { padding: 80px 0; background: var(--primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { color: #fff; }
.contact-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #fff; }
.contact-info ul { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-info ul li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,0.9); }
.contact-info ul li .fa-check { color: #90e0f3; }
.contact-detail { background: rgba(255,255,255,0.12); border-radius: 12px; padding: 20px; }
.detail-item { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(255,255,255,0.85); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.detail-item:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: #fff; }
.free-badge { background: rgba(255,255,255,0.25); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.4); }
.contact-form { background: #fff; border-radius: 16px; padding: 32px; }
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.contact-form-embed .contact-form-wrapper {
  width: 100%;
  margin-top: 4px;
}
.contact-form-embed .formmailer-embed {
  width: 100%;
  min-height: 420px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0d1b2a;
  padding: 40px 0 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; text-align: center; }
.footer-logo { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-logo-llmo { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-company p { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ===== RESULT PAGE ===== */
.result-page { background: var(--bg-gray); }

.result-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.result-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.header-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.btn-back { font-size: 14px; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.btn-back:hover { color: var(--primary-dark); }

.result-main { padding: 48px 0; }
.result-container { max-width: 960px; margin: 0 auto; padding: 0 40px; }

/* ローディング */
.loading-overlay {
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.loading-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.loading-progress { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.loading-steps { text-align: left; max-width: 400px; margin: 0 auto; }
.loading-step { font-size: 13px; color: var(--success); padding: 4px 0; }

/* エラー */
.error-section { padding: 60px; text-align: center; }
.error-card { background: #fff; border-radius: 16px; padding: 48px; display: inline-block; box-shadow: var(--shadow); }
.error-card .fa-exclamation-circle { font-size: 48px; color: var(--danger); margin-bottom: 20px; }
.error-card h2 { margin-bottom: 12px; font-size: 22px; }
.error-card p { color: var(--text-secondary); margin-bottom: 24px; }

/* 結果ページタイトル */
.result-page-title { text-align: center; margin-bottom: 32px; }
.result-page-title h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; }
.result-url { font-size: 14px; color: var(--primary); font-weight: 500; word-break: break-all; margin-bottom: 8px; }
.partial-badge { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #7a5200; background: #fff8e6; border: 1px solid #f39c12; border-radius: 20px; padding: 5px 16px; display: none; width: fit-content; margin: 0 auto; }

/* 総合30点以下の注意 */
.low-score-notice {
  background: #fff8e6;
  border: 2px solid var(--warning);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.low-score-icon { font-size: 24px; color: var(--warning); flex-shrink: 0; }
.low-score-content { font-size: 14px; color: #7a5200; line-height: 1.75; }
.low-score-content strong { color: #5c3d00; }
.low-score-lead { margin: 0 0 12px; }
.low-score-link {
  display: inline-block;
  margin-top: 0;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
}
.low-score-link:hover { background: var(--primary-dark); }

/* 結果カード */
.result-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.result-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 14px;
}
.result-card-title i { color: var(--primary); }

/* 総合スコアレイアウト */
.total-score-layout { display: flex; gap: 40px; align-items: flex-start; }
.total-score-left { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.total-ring-wrap { position: relative; width: 180px; height: 180px; }
.total-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.total-score-num { font-size: 52px; font-weight: 700; font-family: 'Inter', sans-serif; color: var(--text); line-height: 1; }
.total-score-unit { font-size: 14px; color: var(--text-muted); }
.total-grade { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; font-family: 'Inter', sans-serif; }
.total-score-right { flex: 1; display: flex; flex-direction: column; gap: 16px; }

.sub-score-card {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid var(--border);
}
.sub-score-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sub-score-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.aio-cat { background: var(--primary-light); color: var(--primary); }
.geo-cat { background: #e0f7ee; color: #0d6e45; }
.sub-score-value { font-size: 22px; font-weight: 700; font-family: 'Inter', sans-serif; color: var(--text); }
.sub-score-bar-bg { height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; }
.sub-score-bar { height: 100%; border-radius: 10px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.aio-bar { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.geo-bar { background: linear-gradient(90deg, #0d6e45, #2ea44f); }
.sub-score-desc { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.check-summary { display: flex; gap: 16px; flex-wrap: wrap; }
.check-ok { color: var(--success); font-size: 14px; }
.check-warn { color: var(--warning); font-size: 14px; }
.check-bad { color: var(--danger); font-size: 14px; }

/* 改善提案カード */
.improvement-card {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
}
.imp-rank {
  width: 36px;
  height: 36px;
  background: var(--warning);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.imp-body { flex: 1; }
.imp-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.imp-name { font-size: 16px; font-weight: 700; color: var(--text); }
.imp-gain { font-size: 13px; background: var(--primary-light); color: var(--primary); font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.imp-label { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.imp-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.imp-why, .imp-how { background: #fff; border-radius: 8px; padding: 14px; font-size: 13px; line-height: 1.7; border: 1px solid var(--border); }
.imp-why strong, .imp-how strong { color: var(--primary); display: block; margin-bottom: 6px; }
.imp-code {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 12px;
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg-gray);
  border-radius: 6px;
  padding: 8px;
  margin-top: 6px;
  color: var(--text);
  line-height: 1.6;
}

/* チェック項目グリッド */
.check-items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check-item-card {
  border-radius: 10px;
  padding: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: box-shadow 0.15s;
}
.check-item-card:hover { box-shadow: var(--shadow-lg); }
.check-ok.check-item-card { border-left-color: var(--success); border-left-width: 3px; }
.check-warn.check-item-card { border-left-color: var(--warning); border-left-width: 3px; }
.check-bad.check-item-card { border-left-color: var(--danger); border-left-width: 3px; }
.check-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.check-item-name { font-size: 13px; font-weight: 700; color: var(--text); }
.check-item-score { font-size: 18px; font-weight: 700; color: var(--text); font-family: 'Inter', sans-serif; margin-bottom: 4px; }
.check-item-bar-bg { height: 4px; background: var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.check-item-bar { height: 100%; border-radius: 10px; transition: width 0.8s ease; }
.check-item-label { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.check-item-detail { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }

/* 抽出情報テーブル */
.extracted-table-wrap { overflow-x: auto; }
.extracted-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.extracted-table thead tr { background: var(--primary); }
.extracted-table th { padding: 10px 16px; text-align: left; color: #fff; font-weight: 600; }
.extracted-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.extracted-table td:first-child { font-weight: 600; color: var(--text-secondary); white-space: nowrap; width: 140px; }
.extracted-table tbody tr:hover { background: var(--primary-light); }
.not-found { color: #bbb; font-style: italic; }

/* 競合比較 */
.comp-summary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.comp-summary-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: var(--bg-gray);
  text-align: center;
}
.comp-main { border-color: var(--primary); background: var(--primary-light); }
.comp-site-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.comp-site-url { font-size: 13px; color: var(--primary); margin-bottom: 12px; word-break: break-all; }
.comp-total-score { font-size: 40px; font-weight: 700; color: var(--text); font-family: 'Inter', sans-serif; }
.comp-total-score span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.comp-grade { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 8px auto; }
.comp-sub { font-size: 13px; color: var(--text-muted); }
.comp-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.comp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.comp-table thead tr { background: var(--primary); }
.comp-table th { padding: 10px 16px; text-align: left; color: #fff; font-weight: 600; }
.comp-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text); background: #fff; }
.comp-cell { text-align: center; white-space: nowrap; }
.comp-table tbody tr:hover td { background: var(--primary-light); }
.comp-report-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.comp-report-title i { color: var(--danger); }
.comp-report-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.comp-priority-card {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--danger);
}
.comp-priority-rank { width: 32px; height: 32px; background: var(--danger); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.comp-priority-body { flex: 1; }
.comp-priority-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.comp-priority-name { font-size: 15px; font-weight: 700; color: var(--text); }
.comp-priority-diff { font-size: 12px; color: var(--danger); background: #fdecea; padding: 2px 10px; border-radius: 20px; }

.result-footer-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; padding-bottom: 20px; }
.no-improvements { font-size: 14px; color: var(--text-muted); text-align: center; padding: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .stats-row, .merits-grid, .phase-grid, .why-both { grid-template-columns: 1fr; }
  .compare-section .why-both { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .total-score-layout { flex-direction: column; align-items: center; }
  .check-items-grid { grid-template-columns: repeat(2, 1fr); }
  .imp-section { grid-template-columns: 1fr; }
  .comp-summary-row { grid-template-columns: 1fr; }
}

/* ヘッダー：llmo-compass.jp トップのスマホナビ（.navbar .navbar-brand / ロゴ）と同じバランス */
@media (max-width: 768px) {
  .result-header {
    padding: 0;
  }
  .result-header-inner {
    padding: 0 15px;
    justify-content: flex-start;
  }
  .header-logo {
    margin: 0 !important;
    padding: 15px 0 !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
  }
  /* トップのナビ内ロゴと同等の最大高さ（sticky 時 .logo-scrolled の scale(0.66) と同程度の見え方） */
  .header-logo-img {
    height: auto;
    width: auto;
    max-height: 40px;
    display: block;
    object-fit: contain;
  }
  .btn-back {
    font-size: 12px;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .container, .footer-inner, .result-container { padding: 0 20px; }
  .hero-container { padding: 0 20px; }
  .diagnosis-card { padding: 24px; }
  .check-items-grid { grid-template-columns: 1fr; }
  .result-card { padding: 20px; }
}
