/* Root variables */
:root {
  /* Primary colour scheme set to warm yellow */
  --color-primary: #bd8100;
  --color-primary-dark: #a06a00;
  --color-secondary: #f5f5f5;
  --color-text: #222;
  --color-muted: #666;
  --color-border: #e5e5e5;
  --max-width: 1200px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
}

/* Generic container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* Header */
.site-header {
  background-color: #ffffff;
  color: var(--color-primary);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.lang {
  display: flex;
  align-items: center;
}
.logo span {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* logo image */
.logo-img {
  height: 70px;
  margin-right: 0.5rem;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.main-nav li {
  margin: 0 0.8rem;
}
.main-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}
.main-nav a:hover {
  opacity: 0.7;
}
.header-cta {
  display: flex;
  gap: 0.5rem;
}

/* Language switcher */
.language-switch ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 20px;
}
.language-switch li a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}
.language-switch li a:hover {
  opacity: 0.7;
}
.language-switch li a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.btn.primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.btn.secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn.secondary:hover {
  background-color: rgba(189,129,0,0.1);
}
.btn.large {
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
}

.hero {
  background-color: rgba(189, 129, 0, 0.05);
  padding: 3rem 0;
}
.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.hero-content {
  flex: 1 1 450px;
  margin-right: 2rem;
}
.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.hero-content .subhead {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--color-muted);
}
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.benefit-list li {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: bold;
}
.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.hero-visual {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-placeholder {
  width: 300px;
  height: 200px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6eef5 0%, #ccd9e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a96b0;
  font-size: 0.9rem;
}

/* Key visual image */
.keyvisual {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Problems Section */
.problems {
  background-color: #fdfdfd;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}
.problems h2 {
  margin-bottom: 1rem;
}
.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.problem-list li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.5rem;
}
.problem-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
}
.problem-text {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Problem illustration */
.problem-visual {
  text-align: center;
  margin-bottom: 1rem;
}
.problem-illustration {
  max-width: 70%;
  height: auto;
}

/* About Section */
.about h2 {
  margin-bottom: 1rem;
}
.about p {
  margin-bottom: 1rem;
}
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.comparison-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 0.85rem;
}
.comparison-table th {
  background-color: rgba(189, 129, 0, 0.10);
  font-weight: bold;
}
.about-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}
.citation {
  color: var(--color-primary);
  font-size: 0.8rem;
}

/* Features Section */
.features {
  background-color: rgba(189, 129, 0, 0.05);
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.features h2 {
  margin-bottom: 0.5rem;
}
.features p {
  margin-bottom: 1.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.feature-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.feature-item h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--color-primary);
}
.feature-item p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Benefits Section */
.benefits {
  padding: 2.5rem 0;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.benefit-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.benefit-item h3 {
  color: var(--color-primary);
  margin-top: 0;
}
.benefit-item p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Use Cases Section */
.use-cases {
  background-color: #fdfdfd;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.use-case-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.use-case-item h3 {
  color: var(--color-primary);
  margin-top: 0;
}
.use-case-item p {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Flow Section */
.flow {
  padding: 2.5rem 0;
}
.flow-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.flow-list li {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 3rem;
}
.flow-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.flow-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

/* Pricing Section */
.pricing {
  background-color: rgba(189, 129, 0, 0.05);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}
.pricing h2 {
  margin-bottom: 1rem;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.pricing-table th,
.pricing-table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  text-align: left;
}
.pricing-table th {
  background-color: rgba(189, 129, 0, 0.10);
}
.pricing-cta {
  margin-top: 1.5rem;
  text-align: center;
}

/* Case Studies */
.cases {
  padding: 2.5rem 0;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.case-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.case-item h3 {
  color: var(--color-primary);
  margin-top: 0;
}
.case-item p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.coming-soon {
  text-align: center;
  font-style: italic;
  color: var(--color-muted);
}

.case-grid-width{
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  justify-content: center;
}


/* FAQ */
.faq {
  background-color: #fdfdfd;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}
.faq h2 {
  margin-bottom: 1rem;
}
.faq details {
  margin-bottom: 1rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.8rem 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--color-primary);
}
.faq p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Contact Section */
.contact-section {
  padding: 2.5rem 0;
}
.contact-section h2 {
  margin-bottom: 0.5rem;
}
.contact-section p {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}
.contact-form {
  background-color: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
}
.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-row.full {
  flex-direction: column;
}
.form-row label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}
.checkbox-group label {
  font-weight: normal;
  font-size: 0.85rem;
  color: var(--color-text);
}
.form-row textarea {
  resize: vertical;
}
.form-row.consent {
  font-size: 0.85rem;
}
.form-row.consent a {
  color: var(--color-primary);
  text-decoration: underline;
}
.submit-row {
  text-align: center;
}
.submit-row button {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-row button:hover {
  background-color: var(--color-primary-dark);
}
.required {
  color: #c00;
  margin-left: 0.2rem;
}

/* Footer */
.site-footer {
  background-color: #bd8100;
  color: #ffffff;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
}

.header-title {
  line-height: 1;
}

  .br-sp {
    display: none;
}

@media (max-width: 768px) {
    .br-sp {
        display: block;
    }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
  }
  .hero-content {
    margin-right: 0;
    margin-bottom: 2rem;
  }
  .header-cta {
    display: none;
  }
  .main-nav {
    display: none;
  }
  .logo-img {
    height: 50px;
  }
  .logo span {
    font-size: 1.1rem;
  }
  .header-title-sp {
    font-size: 7px;
  }
}