:root {
  --color-primary: #2a9d8f;
  --color-primary-dark: #1f7a6f;
  --color-brand-dark: #10302d;
  --color-brand-deep-accent: #17403c;
  --color-accent: #e76f51;
  --color-text-head: #10302d;
  --color-text-body: #333333;
  --color-gray-light: #f4f4f4;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --container-width: 1200px;
  --header-height: 60px;
  --font-main: 'Inter', 'Noto Sans JP', sans-serif;
}

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

html.blog-line-auto-response-root {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.blog-line-auto-response-body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-text-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  width: 100%;
  padding-top: var(--header-height);
}

.blog-line-auto-response {
  width: 100%;
}

.blog-line-auto-response a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-line-auto-response img {
  max-width: 100%;
  height: auto;
  display: block;
}

.blog-line-auto-response h1,
.blog-line-auto-response h2,
.blog-line-auto-response h3,
.blog-line-auto-response h4 {
  font-weight: 800;
  color: var(--color-text-head);
  line-height: 1.4;
}

.blog-line-auto-response p {
  margin-bottom: 2rem;
  text-align: justify;
}

.blog-line-auto-response strong {
  color: var(--color-brand-dark);
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(42, 157, 143, 0.2) 60%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  z-index: 1100;
  backdrop-filter: blur(8px);
}

.header-container {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

.logo img {
  width: 120px;
  height: 24px;
  display: block;
}

.site-header nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav ul li a {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  padding: 5px 0;
  transition: color 0.3s ease;
}

.site-header nav ul li a:hover {
  color: var(--color-primary);
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.login-button,
.cta-button,
.mobile-login-text {
  font-size: 0.87rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  border: 1px solid transparent;
}

.login-button {
  border-color: transparent;
  color: var(--color-brand-dark);
}

.cta-button {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(42, 157, 143, 0.25);
}

.cta-button:hover {
  opacity: 0.9;
}

.mobile-login-text {
  display: none;
  color: var(--color-primary);
  padding: 0;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 1300;
}

.mobile-menu-toggle:hover {
  background: rgba(42, 157, 143, 0.08);
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--color-brand-dark);
  border-radius: 1px;
  display: inline-block;
  transition: background 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-brand-dark);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.mobile-menu-toggle.active .menu-icon {
  background: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1200;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(42, 157, 143, 0.1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 1300;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

body.blog-line-auto-response-body.menu-open {
  overflow: hidden;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: var(--header-height);
  border-bottom: 1px solid rgba(42, 157, 143, 0.1);
  padding: 0 20px;
}

.mobile-menu-login-text {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.mobile-menu-logo img {
  width: 120px;
  height: 24px;
}

.mobile-menu-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(42, 157, 143, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.mobile-menu-close:hover {
  transform: translateY(-50%) rotate(90deg);
  background: rgba(42, 157, 143, 0.2);
}

.mobile-menu-close-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.mobile-menu-close-icon::before,
.mobile-menu-close-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  top: 50%;
  left: 0;
}

.mobile-menu-close-icon::before {
  transform: rotate(45deg);
}

.mobile-menu-close-icon::after {
  transform: rotate(-45deg);
}

.mobile-menu ul {
  flex: 1 1 auto;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu ul::after {
  content: '';
  display: block;
  height: 1px;
  background: #e0e0e0;
  margin-top: 10px;
}

.mobile-menu ul li {
  margin-bottom: 20px;
}

.mobile-menu ul li a {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brand-dark);
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.mobile-menu-buttons {
  padding: 30px 40px calc(40px + env(safe-area-inset-bottom));
}

.mobile-cta-button {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 12px 24px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  transition: opacity 0.3s ease;
}

.mobile-cta-button:hover {
  opacity: 0.9;
}

.hero {
  background-image: linear-gradient(rgba(16, 48, 45, 0.7), rgba(16, 48, 45, 0.85)), url('https://assets.pecochat.co.jp/static/img/blog/line_auto_response/hero.avif?v=1764813403');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0 110px;
  color: var(--color-white);
  position: relative;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 5px solid var(--color-primary);
  color: #ffffff;
}

.hero-title-group {
  margin-bottom: 2.5rem;
}

.hero-title-main {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #e0f2f1;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1.25rem;
  color: #e5e5e5;
  max-width: 700px;
  margin-bottom: 4rem;
  font-weight: 400;
  line-height: 1.8;
}

.meta-grid {
  display: flex;
  gap: 4rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 2.5rem;
}

.meta-item label {
  display: block;
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.meta-item span {
  font-weight: 600;
  font-size: 1rem;
  color: white;
}

.content-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
}

.article-main {
  padding: 100px 0;
  border-right: 1px solid var(--color-border);
  padding-right: 80px;
  min-width: 0;
}

.insight-box {
  background: var(--color-brand-dark);
  color: white;
  padding: 4rem;
  margin-bottom: 6rem;
  position: relative;
  border-radius: 0;
  background-image: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--color-brand-deep-accent) 100%);
}

.insight-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-primary);
}

.insight-label {
  font-size: 0.8rem;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-bottom: 2rem;
  display: block;
}

.insight-quote {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2rem;
  display: block;
  color: #ffffff;
}

.insight-box p {
  color: #e0f2f1;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 0;
}

.insight-box strong {
  color: white;
  background: none;
  border-bottom: 1px solid var(--color-primary);
}

.blog-line-auto-response h2 {
  font-size: 2.2rem;
  margin: 6rem 0 3rem;
  color: var(--color-brand-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  scroll-margin-top: 120px;
}

.blog-line-auto-response h2::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  margin-right: 0.5rem;
  transform: translateY(2px);
}

.blog-line-auto-response h3 {
  font-size: 1.6rem;
  margin: 4rem 0 2rem;
  color: var(--color-brand-dark);
  border-bottom: 2px solid var(--color-brand-dark);
  padding-bottom: 1rem;
  display: inline-block;
  scroll-margin-top: 120px;
}

.feature-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--color-brand-dark);
  margin: 4rem 0;
  border: 2px solid var(--color-brand-dark);
}

.feature-cell {
  background: white;
  padding: 2.5rem 2rem 2rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-cell:hover {
  background: #ffffff;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: var(--color-brand-dark);
}

.feature-cell h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-brand-dark);
  font-weight: 800;
  min-height: 3rem;
}

.feature-cell p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: left;
  color: #555;
}

.feature-cell svg {
  color: var(--color-primary);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-cost {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cost-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  font-weight: 700;
}

.cost-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand-dark);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  letter-spacing: -0.02em;
}

.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 3rem 0 5rem;
}

.step-card {
  border: 1px solid var(--color-border);
  background: #fff;
  position: relative;
}

.step-header {
  background: var(--color-brand-dark);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.step-badge {
  background: var(--color-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  letter-spacing: 0.05em;
}

.step-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
  border-bottom: none;
  padding-bottom: 0;
  display: inline-block;
}

.step-body {
  padding: 2.5rem;
}

.step-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.step-list li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
}

.step-list li::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.note {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}

.step-image {
  margin-top: 2rem;
  border: 1px solid var(--color-border);
  padding: 0;
  background: #fafafa;
}

.step-image img {
  display: block;
  width: 100%;
  height: auto;
}

.result-image-wrapper {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  padding: 2rem;
  margin: 3rem 0;
  text-align: left;
}

.result-image-wrapper img {
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  display: block;
}

.result-image-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-brand-dark);
}

.result-image-text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #444;
}

.section-subheading {
  margin-top: 2rem;
}

.pro-tip-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  padding: 2.5rem;
  margin: 3rem 0;
}

.pro-tip-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-brand-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pro-tip-title svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.pro-tip-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.pro-tip-content p:last-child {
  margin-bottom: 0;
}

.comparison-container {
  width: 100%;
  overflow-x: auto;
  margin: 3rem 0;
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 700px;
}

.comparison-table th, .comparison-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.comparison-table th {
  background-color: var(--color-brand-dark);
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: 0.05em;
  width: 20%;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.comparison-table th:first-child {
  z-index: 2;
  box-shadow: 6px 0 15px rgba(0, 0, 0, 0.08);
}

.comparison-table td:first-child {
  background: #fff;
  font-weight: 700;
  box-shadow: 6px 0 15px rgba(0, 0, 0, 0.05);
}

.col-standard {
  background-color: #fcfcfc;
  color: #666;
  width: 30%;
}

.col-line-ai {
  background-color: #f4f8fb;
  color: #333;
  width: 30%;
  font-weight: 600;
}

.col-peco {
  background-color: #ffffff;
  width: 40%;
  border-left: 4px solid var(--color-primary);
  border-right: 4px solid var(--color-primary);
  font-weight: 700;
  color: var(--color-brand-dark);
  position: relative;
}

.col-peco::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--color-accent);
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  font-weight: 800;
  border-radius: 4px;
  display: none;
}

.comparison-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

.icon-check {
  color: var(--color-primary);
}

.icon-cross {
  color: #e76f51;
}

.icon-dash {
  color: #ccc;
}

.template-section {
  background: #ffffff;
  border-top: 6px solid var(--color-brand-dark);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 0;
  margin: 5rem 0;
  width: 100%;
}

.tab-nav {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
}

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

.tab-btn {
  background: transparent;
  border: none;
  padding: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.tab-btn:hover {
  color: var(--color-brand-dark);
}

.tab-btn.active {
  color: var(--color-brand-dark);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.template-card {
  background: #f8fafc;
  border-left: 6px solid var(--color-brand-dark);
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.template-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-brand-dark);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.template-tag {
  font-size: 0.75rem;
  background: var(--color-brand-dark);
  color: white;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
}

.template-body {
  background: #ffffff;
  padding: 2rem;
  font-size: 0.95rem;
  font-family: 'Consolas', 'Monaco', monospace;
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap;
  border: 1px solid var(--color-border);
  word-break: break-all;
}

.copy-btn {
  background: transparent;
  border: 2px solid var(--color-brand-dark);
  color: var(--color-brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  letter-spacing: 0.1em;
}

.copy-btn:hover {
  background: var(--color-brand-dark);
  color: white;
}

.copy-btn.copied {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.template-warning {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 2rem;
}

.template-warning svg {
  flex-shrink: 0;
  color: var(--color-accent);
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }

}

.comparison-image-wrapper {
  margin: 4rem 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.promo-banner {
  display: block;
  margin: 4rem 0;
  transition: opacity 0.3s;
}

.promo-banner:hover {
  opacity: 0.9;
}

.promo-banner img {
  border: 1px solid var(--color-border);
}

.chat-simulator-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 4rem auto 2.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  gap: 2rem;
}

.chat-container {
  width: 100%;
  max-width: 414px;
  height: 600px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(16, 48, 45, 0.15);
}

.chat-simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background-color: #8ab4f8;
  color: #000;
  border-bottom: 1px solid #efefef;
  min-height: 60px;
}

.back-button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 16px;
  display: inline-flex;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #8ab4f8;
}

.message {
  display: flex;
  margin-bottom: 16px;
  position: relative;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.message.visible {
  opacity: 1;
  transform: translateY(0);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.avatar img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.message-content {
  max-width: 70%;
  padding: 10px 14px;
  font-size: 0.94rem;
  line-height: 1.4;
  word-break: break-word;
}

.bot-message .message-content {
  background-color: #fff;
  color: #000;
  border-radius: 20px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.url-text {
  color: #0366d6;
  text-decoration: underline;
  cursor: default;
  font-weight: 500;
  pointer-events: none;
}

.user-message {
  justify-content: flex-end;
  margin-left: 80px;
}

.link-preview-message {
  margin-left: 48px;
}

.user-message .message-content {
  background-color: #6ed96e;
  color: #000;
  border-radius: 20px;
  border-top-right-radius: 0;
}

.message-time {
  font-size: 0.7rem;
  color: #fff;
  display: block;
  margin: 12px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.message-time.visible {
  opacity: 1;
  transform: translateY(0);
}

.message-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 6px;
  font-size: 0.7rem;
  color: #fff;
  text-align: right;
  min-width: 40px;
}

.status-text {
  margin-bottom: 2px;
}

.time-text {
  margin-top: 1px;
}

.chat-input-container {
  background-color: #fff;
  border-top: 1px solid #efefef;
  padding: 10px 0;
}

.chat-input {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.input-actions {
  display: flex;
  align-items: center;
  width: 100%;
}

.left-buttons,
.right-buttons {
  display: flex;
  align-items: center;
}

.action-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-field-container {
  flex: 1;
  margin: 0 10px;
  position: relative;
}

.input-field {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 18px;
  background-color: #f5f5f5;
  padding: 8px 15px;
  font-size: 0.9rem;
  color: #333;
  height: 36px;
  cursor: default;
  user-select: none;
}

.input-field-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ogp-link-preview {
  width: 80%;
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  background-color: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  display: block;
  pointer-events: none;
}

.ogp-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #f5f5f5;
}

.ogp-content {
  padding: 6px 14px;
  background-color: #fff;
}

.ogp-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.ogp-description {
  font-size: 0.75rem;
  color: #757575;
}

.ogp-domain {
  display: none;
}

.data-viz-container {
  margin: 5rem 0;
  padding: 3rem;
  background: #f8fafc;
  border-left: 6px solid var(--color-brand-dark);
}

.data-viz-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--color-brand-dark);
}

.bar-chart {
  display: flex;
  width: 100%;
  height: 60px;
  margin-top: 2rem;
}

.bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.bar-ai {
  width: 70%;
  background: var(--color-primary);
}

.bar-human {
  width: 30%;
  background: var(--color-brand-dark);
}

.data-legend {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.legend-label {
  background: none;
  font-weight: 800;
}

.legend-label-ai {
  color: var(--color-primary);
}

.legend-label-human {
  color: var(--color-brand-dark);
}

.data-viz-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.data-viz-note-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-brand-dark);
}

.data-viz-note-text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.data-viz-note-text:last-child {
  margin-bottom: 0;
}

.summary-block {
  border: 5px solid var(--color-brand-dark);
  padding: 4rem;
  margin: 6rem 0;
  background: #fff;
}

.summary-title {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--color-brand-dark);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  font-weight: 900;
  color: var(--color-brand-dark);
}

.summary-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.summary-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 0.8;
}

.trial-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2.5rem 0 3.5rem;
  padding: 2.4rem 2.8rem;
  border: 1px solid rgba(16, 48, 45, 0.12);
  background: linear-gradient(135deg, rgba(16, 48, 45, 0.06) 0%, rgba(42, 157, 143, 0.08) 100%);
  position: relative;
  overflow: hidden;
}

.trial-cta::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: var(--color-primary);
  opacity: 0.12;
  transform: rotate(25deg);
}

.trial-cta-text {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.trial-cta-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--color-brand-dark);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.trial-cta-copy {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  line-height: 1.7;
  margin: 0;
}

.trial-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.95rem 2.8rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.trial-cta-btn:hover {
  opacity: 0.9;
}

.chat-cta {
  text-align: center;
  margin: 2.5rem 0 4rem;
}

.chat-cta .cta-btn {
  margin-top: 0;
}

.cta-section {
  background: var(--color-brand-dark);
  color: white;
  padding: 8rem 4rem;
  margin: 8rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--color-brand-deep-accent) 100%);
}

.cta-section h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  max-width: 800px;
  line-height: 1.2;
  border-bottom: 2px solid white;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  opacity: 0.15;
  transform: rotate(45deg);
}

.cta-description {
  opacity: 0.9;
  margin-bottom: 2rem;
  color: #e0f2f1;
  max-width: 800px;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 1.4rem 4rem;
  font-weight: 800;
  margin-top: 4rem;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  align-self: center;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.cta-btn:hover {
  opacity: 0.9;
}

.sidebar {
  padding-top: 120px;
}

.sidebar nav {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height) + 40px);
  padding-bottom: 120px;
}

.toc-label-en {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #aaa;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.toc-title {
  display: none;
}

.toc-list {
  list-style: none;
  margin-top: 1rem;
}

.toc-list li {
  position: relative;
  margin-bottom: 0.5rem;
}

.toc-list li a {
  display: block;
  padding: 0.8rem 1rem 0.8rem 1.5rem;
  font-size: 0.85rem;
  color: #888;
  border-left: 2px solid #eee;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  font-weight: 500;
  line-height: 1.4;
}

.toc-list li a:hover {
  color: var(--color-brand-dark);
  border-left-color: #ccc;
}

.toc-list li a.active {
  color: var(--color-primary-dark);
  font-weight: 800;
  border-left: 5px solid var(--color-primary);
  background: rgba(42, 157, 143, 0.08);
  padding-left: 1.8rem;
  transform: translateX(4px);
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 80px 0 0;
  margin-top: 0;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.footer-logo a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.footer-logo a:hover {
  opacity: 0.8;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
  font-weight: 500;
  max-width: 260px;
}

.footer-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-head);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-info-text,
.footer-info-link {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 500;
}

.footer-info-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
  text-align: center;
}

.footer-copyright {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-align: center;
}

@media (max-width: 992px) {
  .chat-simulator-wrapper {
      flex-direction: column;
      align-items: center;
  }

  .chat-container {
      max-width: 100%;
      height: 520px;
      max-height: 80vh;
  }

}

@media (max-width: 1024px) {
  .site-header .header-container {
      padding: 0 2rem;
      justify-content: center;
  }

  .site-header nav {
      display: none;
  }

  .header-buttons .login-button,
  .header-buttons .cta-button {
      display: none;
  }

  .mobile-login-text {
      display: inline-block;
      position: absolute;
      left: 24px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 14px;
      font-weight: 700;
  }

  .mobile-menu-toggle {
      display: flex;
      position: absolute;
      right: 24px;
      top: 50%;
      transform: translateY(-50%);
  }

  .content-wrapper {
      grid-template-columns: 1fr;
      gap: 0;
      padding: 0 2rem;
      border: none;
  }

  .article-main {
      border-right: none;
      padding-right: 0;
      padding-top: 60px;
  }

  .sidebar {
      display: none;
  }

}

@media (max-width: 768px) {
  .header-container {
      padding: 0 1.5rem;
  }

  .hero {
      padding: 80px 0 110px;
  }

  .content-wrapper {
      padding: 0 1.5rem;
  }

  .article-main {
      padding: 60px 0;
  }

  .meta-grid {
      flex-wrap: wrap;
      gap: 2rem;
  }

  .insight-box {
      padding: 2.5rem;
      margin-bottom: 4rem;
  }

  .insight-quote {
      font-size: 1.4rem;
  }

  .feature-matrix {
      grid-template-columns: 1fr;
  }

  .feature-cell {
      padding: 2rem;
  }

  .step-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
  }

  .step-body {
      padding: 1.5rem;
  }

  .template-section {
      padding: 2rem 0;
      margin: 3rem 0;
  }

  .template-card {
      padding: 2rem;
  }

  .template-header {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
  }

  .copy-btn {
      width: 100%;
      justify-content: center;
      position: static;
      margin-top: 0;
  }

  .data-legend {
      grid-template-columns: 1fr;
  }

  .data-viz-container {
      padding: 1rem;
  }

  .mode-grid {
      grid-template-columns: 1fr;
  }

  .summary-block {
      padding: 2.5rem;
  }

  .summary-item {
      grid-template-columns: 1fr;
      gap: 0.5rem;
  }

  .summary-num {
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
  }

  .trial-cta {
      flex-direction: column;
      align-items: flex-start;
  }

  .trial-cta-btn {
      width: 100%;
  }

  .cta-section {
      padding: 4rem 2rem;
      align-items: center;
      text-align: center;
  }

  .cta-btn {
      width: 100%;
      padding: 1.2rem;
      margin-top: 3rem;
  }

  .cta-heading {
      font-size: 2rem;
  }

  .footer-container {
      padding: 0 1.5rem;
      gap: 40px;
  }

  .footer-grid {
      grid-template-columns: 1fr;
  }

  .comparison-table {
      min-width: 800px;
  }

}

@media (max-width: 480px) {
  .logo img {
      width: 130px;
  }

  .hero-title-main {
      font-size: 2.2rem;
  }

  .hero-title-sub {
      font-size: 1.6rem;
  }

  h2 {
      font-size: 1.8rem;
  }

  .footer-container {
      padding: 0 1.25rem;
  }

  .cta-heading {
      font-size: 1.7rem;
  }

  .data-viz-container {
      padding: 1rem;
  }

}
