/* tixpil - Production Stylesheet */
:root {
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --text: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --success: #15803d;
  --error: #b91c1c;
  --radius: 6px;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background-color: var(--bg);
}

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

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

a:hover, a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

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

.brand-link {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-desktop a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta-btn {
  padding: 8px 18px;
  background-color: var(--primary);
  color: #ffffff !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background-color 0.15s ease;
}

.nav-cta-btn:hover {
  background-color: var(--primary-hover) !important;
}

/* Hero Section (Fits comfortably in 640px mobile fold) */
.hero-section {
  padding: 48px 0 56px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--accent-light);
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 1.95rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

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

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--accent-light);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-visual {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  aspect-ratio: 16 / 11;
  background-color: #f1f5f9;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Common Section */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px auto;
}

.section-tag {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.85rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Services Section */
.services-section {
  background-color: var(--bg);
}

.services-editorial-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.service-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.service-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.service-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.service-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.services-media {
  position: sticky;
  top: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: var(--bg-alt);
}

.editorial-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-caption {
  padding: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  background-color: var(--bg);
  border-top: 1px solid var(--border-light);
}

/* Workflow Section */
.workflow-section {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.workflow-card {
  background-color: var(--bg);
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.workflow-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.workflow-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.workflow-callout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  background-color: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 30px;
  align-items: center;
}

.callout-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.callout-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.callout-image {
  border-radius: 8px;
  overflow: hidden;
}

.callout-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Specs Section */
.specs-section {
  background-color: var(--bg);
}

.specs-table-container {
  overflow-x: auto;
  margin-bottom: 48px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs-table th, .specs-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.specs-table th {
  background-color: var(--bg-alt);
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background-color: var(--bg-alt);
  padding: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.specs-feature-img {
  border-radius: 8px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.specs-feature-text h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.specs-feature-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.specs-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.specs-checklist li::before {
  content: "✔";
  color: var(--success);
  margin-right: 8px;
  font-weight: bold;
}

/* Philosophy Section */
.philosophy-section {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.philosophy-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.philosophy-portrait {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.philosophy-text-col p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.philosophy-operator-box {
  background-color: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin-top: 24px;
}

.philosophy-operator-box h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.philosophy-operator-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* Pricing Section */
.pricing-section {
  background-color: var(--bg);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.pricing-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured-card {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
}

.pricing-header h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.price span {
  font-size: 1.1rem;
  margin-left: 4px;
}

.price-custom {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-features li::before {
  content: "✔";
  color: var(--accent);
  margin-right: 8px;
}

.pricing-guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.guarantee-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.guarantee-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background-color: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Contact Section */
.contact-section {
  background-color: var(--bg);
}

.contact-container {
  max-width: 680px;
}

.contact-form-wrapper {
  background-color: var(--bg-alt);
  padding: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

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

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

.form-group .req {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-privacy-notice {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-subtle);
  background-color: var(--bg);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.6;
}

.form-status {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  border-radius: var(--radius);
  display: none;
}

.form-status.success {
  display: block;
  background-color: #f0fdf4;
  color: #166534;
  padding: 16px;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  padding: 16px;
  border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 60px 0 24px 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
  height: 34px;
  width: auto;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-info h4, .footer-legal h4 {
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-operator-list, .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-operator-list li strong {
  color: #cbd5e1;
}

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

.footer-operator-list a:hover, .footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background-color: #1a1e24;
  color: #f1f3f5;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  display: none;
  padding: 1rem 1.5rem;
}

.cookie-banner.is-active {
  display: block !important;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0;
  flex: 1 1 300px;
}

.cookie-text a {
  color: #63b3ed;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-reject,
.btn-cookie-accept {
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-cookie-reject {
  background: transparent;
  border: 1px solid #718096;
  color: #cbd5e0;
}
.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-cookie-accept {
  background-color: #2b6cb0;
  border: 1px solid #2b6cb0;
  color: #ffffff;
}
.btn-cookie-accept:hover {
  background-color: #2c5282;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-grid,
  .services-editorial-layout,
  .workflow-callout,
  .specs-feature-row,
  .philosophy-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-desktop {
    display: none; /* simple lean layout for mobile */
  }

  .services-media {
    position: static;
  }

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