/* ========================================
COMPONENTS
共通UIパーツ
======================================== */

/* ========================================
Buttons
======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  background: #2c7a7b;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(44, 122, 123, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.btn-secondary {
  border: 2px solid #2c7a7b;
  background: #ffffff;
  color: #2c7a7b;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  opacity: 1;
  background: #f8fcfb;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border: 2px solid #2c7a7b;
  border-radius: 999px;
  background-color: #ffffff;
  color: #2c7a7b;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(44, 122, 123, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background-color: #f7fcfb;
  box-shadow: 0 16px 32px rgba(44, 122, 123, 0.12);
  color: #2c7a7b;
  opacity: 1;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2c7a7b;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    color 0.3s ease;
}

.btn-text::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
}

.btn-text:hover {
  opacity: 0.75;
  color: #2c7a7b;
}

.btn-primary-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2c7a7b 0%, #4fa8a2 100%);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(44, 122, 123, 0.18);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.btn-primary-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(44, 122, 123, 0.22);
  opacity: 1;
}

/* ========================================
Cards
======================================== */

.card {
  height: 100%;
  padding: 28px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card-title {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.5;
  color: #1f2d2a;
}

.card-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555555;
}

/* ========================================
Link Cards
======================================== */

.link-card {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.link-card-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.link-card-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555555;
}

/* ========================================
FAQ
======================================== */

.faq-item {
  border-bottom: 1px solid #e6e6e6;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  line-height: 1.7;
}

.faq-item p {
  padding-bottom: 18px;
  color: #555555;
  line-height: 1.9;
}

/* ========================================
Contact Box
======================================== */

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  background: #f4fbfa;
  border-radius: 18px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========================================
Section Link
======================================== */

.section-link {
  margin-top: 28px;
  text-align: center;
}

.section-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid #2c7a7b;
  background-color: #ffffff;
  color: #2c7a7b;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(44, 122, 123, 0.08);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.section-link a:hover {
  transform: translateY(-2px);
  background-color: #f8fcfb;
  box-shadow: 0 12px 24px rgba(44, 122, 123, 0.1);
  opacity: 1;
}

/* ========================================
CTA
======================================== */

.cta {
  padding: 80px 20px;
  background: #f7faf9;
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text {
  flex: 1;
}

.cta-title {
  margin: 0 0 20px;
  color: #2c2c2c;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
}

.cta-desc {
  margin: 0 0 30px;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}

.cta .btn {
  width: auto;
  white-space: nowrap;
}

.cta .btn-primary {
  padding: 14px 36px;
  background: #2e8b7f;
  color: #fff;
}

.cta .btn-outline {
  padding: 14px 32px;
  border: 2px solid #2e8b7f;
  background: #fff;
  color: #2e8b7f;
}

.cta .btn:hover {
  transform: translateY(-2px);
}

.cta .btn-outline:hover {
  background: #2e8b7f;
  color: #fff;
}

.cta-image {
  flex: 1;
}

.cta-image img {
  width: 100%;
  max-width: 520px;
  display: block;
}

@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta .btn {
    width: auto;
  }
}

/* ========================================
Responsive
======================================== */

@media (max-width: 768px) {
  .contact-box .btn,
  .contact-box .btn-outline,
  .btn-primary-soft {
    width: 100%;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-text {
    justify-content: center;
    width: 100%;
  }
}

/* ========================================
CTA restore fix
戻したい見た目に強制で戻す
======================================== */

.cta {
  padding: 80px 20px !important;
  background: #f7faf9 !important;
}

.cta-inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 40px !important;
}

.cta-text {
  flex: 1 1 0 !important;
}

.cta-title {
  margin: 0 0 20px !important;
  color: #2c2c2c !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.cta-desc {
  margin: 0 0 30px !important;
  color: #555 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

.cta-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
}

.cta .btn,
.cta .btn-primary,
.cta .btn-outline {
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

.cta .btn-primary {
  padding: 16px 56px !important;
  background: #2e8b7f !important;
  color: #fff !important;
}

.cta .btn-outline {
  padding: 14px 32px !important;
  border: 2px solid #2e8b7f !important;
  background: #fff !important;
  color: #2e8b7f !important;
}

.cta .btn-outline:hover {
  background: #2e8b7f !important;
  color: #fff !important;
}

.cta-image {
  flex: 1 1 0 !important;
}

.cta-image img {
  width: 100% !important;
  max-width: 520px !important;
  display: block !important;
}

@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column !important;
    text-align: center !important;
  }

  .cta-buttons {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .cta .btn,
  .cta .btn-primary,
  .cta .btn-outline {
    width: auto !important;
  }
}

/* CTAボタン幅統一 */
.cta .btn-primary,
.cta .btn-outline {
  min-width: 220px !important;
  padding: 14px 32px !important;
  text-align: center !important;
}
