/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: relative;
  overflow: hidden;
  background: white;
  padding: 4rem 0;
  min-height: 600px;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #2563eb, #1e40af);
  clip-path: polygon(0% 0%, 75% 0%, 65% 100%, 0% 100%);
  display: none;
}

.header-bg-mobile {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #2563eb, #1e40af);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.header-text {
  color: white;
  flex: 1;
  text-align: center;
}

.badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.adoption-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, #10b981, #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 2px solid #86efac;
}

.adoption-badge i {
  width: 1.25rem;
  height: 1.25rem;
  color: #fef3c7;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-mobile {
  display: block;
  text-align: center;
  line-height: 1.2;
}

.badge-desktop {
  display: none;
}

.company-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.company-name i {
  width: 2.5rem;
  height: 2.5rem;
}

.company-name h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.main-title {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.subtitle {
  display: block;
  font-size: 1.25rem;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.title-main {
  display: block;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.75rem;
}

.title-sub {
  display: block;
  font-size: 1.5rem;
  color: white;
}

.description {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-button-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.cta-button {
  margin-top: 1rem;
  background: #f4a261;
  color: #264653;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 2rem 4rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.cta-button:hover {
  background: #e76f51;
}

.cta-button i {
  width: 1.25rem;
  height: 1.25rem;
}

.header-image {
  flex: 1;
  max-width: 28rem;
}

.header-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.decoration-1 {
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 8rem;
  height: 8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(3rem);
}

.decoration-2 {
  position: absolute;
  bottom: 5rem;
  left: 5rem;
  width: 6rem;
  height: 6rem;
  background: rgba(76, 214, 204, 0.2);
  border-radius: 50%;
  filter: blur(1.5rem);
}

/* Problem Section */
.problem-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.problem-card {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #d1fae5;
  transition: box-shadow 0.3s;
}

.problem-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.problem-card i {
  width: 2.5rem;
  height: 2.5rem;
  color: #ef4444;
  margin: 0 auto 1rem;
  display: block;
}

.problem-card p {
  color: #374151;
}

.solution-message {
  text-align: center;
  background: #dbeafe;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.solution-message p {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.6;
}

.solution-message strong {
  color: #2563eb;
}

.desktop-br {
  display: none;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #d1fae5;
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
  background: linear-gradient(to bottom right, #dbeafe, #dbeafe);
  padding: 0.75rem;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon i {
  width: 2.5rem;
  height: 2.5rem;
  color: #2563eb;
}

.service-card h3 {
  font-size: 1.25rem;
  color: #264653;
  margin-bottom: 1rem;
}

.service-card p {
  color: #6b7280;
}

/* About Subsidy Section */
.about-subsidy-section {
  padding: 4rem 0;
  background: white;
}

.subsidy-overview {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.overview-card {
  max-width: 64rem;
  width: 100%;
  padding: 2rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
}

.overview-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
  text-align: center;
}

.overview-content {
  color: #374151;
  text-align: center;
}

.overview-content p {
  margin-bottom: 0.75rem;
}

.subsidy-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.detail-card {
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #d1fae5;
  border-radius: 0.5rem;
}

.detail-icon {
  background: #d1fae5;
  padding: 0.75rem;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.detail-icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: #0d9488;
}

.detail-card h4 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #264653;
}

.detail-card p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
  background: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.pricing-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border-color: #bbf7d0;
}

.pricing-icon {
  background: #dbeafe;
  padding: 0.75rem;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.pricing-icon i {
  width: 2rem;
  height: 2rem;
  color: #2563eb;
}

.featured .pricing-icon {
  background: #bbf7d0;
}

.featured .pricing-icon i {
  color: #059669;
}

.pricing-card.orange {
  border-color: #fed7aa;
}

.orange .pricing-icon {
  background: #fed7aa;
}

.orange .pricing-icon i {
  color: #ea580c;
}

.orange .price {
  color: #ea580c;
}

.pricing-card h3 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #264653;
}

.price-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.featured .price {
  color: #059669;
}

.price-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.price-description {
  color: #6b7280;
  font-size: 0.875rem;
}

.payment-info {
  background: #dbeafe;
  padding: 2rem;
  border-radius: 0.5rem;
}

.payment-info h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #264653;
  text-align: center;
}

.payment-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.payment-item h4 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #2563eb;
}

.payment-item p {
  color: #374151;
}

.payment-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: white;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  space-y: 1rem;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 0.5rem;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-question span {
  font-weight: 500;
  color: #264653;
  text-align: left;
}

.faq-question i {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: #6b7280;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: linear-gradient(to right, #2563eb, #1e40af);
  color: white;
}

.contact-section .section-header h2 {
  color: white;
}

.contact-section .section-header p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form-container {
  max-width: 32rem;
  margin: 0 auto;
}

.contact-card {
  padding: 2rem;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: white;
  color: #1f2937;
  border-radius: 0.5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header i {
  width: 3rem;
  height: 3rem;
  color: #2563eb;
  margin: 0 auto 1rem;
  display: block;
}

.contact-header h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.contact-header p {
  font-size: 0.875rem;
  color: #6b7280;
}

.contact-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.contact-form textarea {
  height: 6rem;
  resize: vertical;
}

.submit-button {
  width: 100%;
  background: #f4a261;
  color: #264653;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background: #e76f51;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.submit-result.success {
  background: #d1fae5;
  color: #065f46;
}

.submit-result.error {
  background: #fee2e2;
  color: #991b1b;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.footer-left {
  text-align: center;
}

.footer-company {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-company i {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-company h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-description {
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-certification {
  color: #d1d5db;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.875rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #d1d5db;
}

.footer-contact i {
  width: 1rem;
  height: 1rem;
}

.footer-right {
  text-align: center;
}

.footer-right h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Responsive Design */
@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    text-align: left;
  }

  .header-text {
    text-align: left;
  }

  .badge-container {
    justify-content: flex-start;
  }

  .company-name {
    justify-content: flex-start;
  }

  .cta-button-container {
    flex-direction: row;
    justify-content: flex-start;
  }

  .cta-button {
    margin-left: 3rem;
  }

  .badge-mobile {
    display: none;
  }

  .badge-desktop {
    display: inline;
  }

  .desktop-br {
    display: inline;
  }

  .solution-message {
    text-align: center;
  }

  .footer-left {
    text-align: left;
  }

  .footer-company {
    justify-content: flex-start;
  }

  .footer-contact {
    justify-content: flex-start;
  }

  .footer-right {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .header-bg {
    display: block;
  }

  .header-bg-mobile {
    display: none;
  }

  .title-main {
    font-size: 3rem;
  }

  .title-sub {
    font-size: 1.875rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }
}

/* IT導入補助金2025活用セクション */
.subsidy-2025-section {
  padding: 4rem 0;
  background: linear-gradient(to right, #ecfdf5, #dbeafe);
}

.subsidy-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.subsidy-features {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-item i {
  width: 2rem;
  height: 2rem;
  color: #0d9488;
  flex-shrink: 0;
}

.feature-content h3 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #264653;
}

.feature-content p {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

.feature-content small {
  font-size: 1rem;
  color: #9ca3af;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .feature-content p {
    text-align: center;
  }
}

/* ご利用の流れ Section */
.flow-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.flow-tabs {
  max-width: 96rem;
  margin: 0 auto;
}

.tab-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.tab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s;
  background: white;
  color: #6b7280;
  padding: 0.5rem 0.75rem;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
}

.tab-button:hover {
  background: #dbeafe;
}

.tab-button.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 申請サポートタブがアクティブな時は緑色 */
.tab-button.active[data-tab="application"] {
  background: #059669;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-button[data-tab="application"]:hover {
  background: #10b981;
}

.tab-mobile {
  display: block;
  text-align: center;
  line-height: 1.2;
}

.tab-desktop {
  display: none;
}

.tab-content {
  display: none;
}

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

.tab-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tab-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #264653;
  margin-bottom: 0.5rem;
}

.tab-header p {
  color: #6b7280;
}

.flow-steps {
  space-y: 1.5rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.step-number {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-number.green {
  background: #059669;
}

.step-card {
  flex: 1;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.step-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-content {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-icon {
  padding: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-icon i {
  width: 2rem;
  height: 2rem;
  color: #2563eb;
}

.step-icon.green i {
  color: #059669;
}

.step-text h4 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.step-text p {
  color: #6b7280;
  line-height: 1.6;
}

.step-arrow {
  flex-shrink: 0;
  display: none;
}

.step-arrow i {
  width: 1.5rem;
  height: 1.5rem;
  color: #9ca3af;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .tab-button {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .tab-mobile {
    display: none;
  }

  .tab-desktop {
    display: block;
  }

  .step-arrow {
    display: block;
  }

  .flow-step:last-child .step-arrow {
    display: none;
  }

  .step-content {
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .tab-header h3 {
    font-size: 2rem;
  }
}
