@charset "UTF-8";

/* =========================================================
   Wrapper Reset & Container
========================================================= */
#fs-teiki-category-wrapper {
  width: 100%;
  margin: 0 auto;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 16px !important;
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
}

#fs-teiki-category-wrapper * {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* 1199px以上の際は750px表示、1199px以下の際は100%表示 */
@media (min-width: 1199px) {
  #fs-teiki-category-wrapper {
    width: 750px;
  }
}


/* =========================================================
   Typography & Headers
========================================================= */
#fs-teiki-category-wrapper .teiki-category-header {
  text-align: center;
  margin: 40px 0 24px;
}

#fs-teiki-category-wrapper .teiki-category-header h2 {
  display: inline-block;
  font-size: 24px;
  color: #e65100;
  border-bottom: 3px solid #e65100;
  padding-bottom: 8px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* =========================================================
   Features Grid (嬉しいポイント)
========================================================= */
#fs-teiki-category-wrapper .teiki-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 16px;
}

#fs-teiki-category-wrapper .feature-card {
  background: #fff;
  border: 2px solid #ffccbc;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

#fs-teiki-category-wrapper .feature-card:hover {
  transform: translateY(-5px);
  border-color: #e65100;
}

#fs-teiki-category-wrapper .feature-card h3 {
  color: #e65100;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

#fs-teiki-category-wrapper .feature-card h3::before {
  content: "✔";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e65100;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

#fs-teiki-category-wrapper .feature-card p {
  font-size: 15px;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.7;
}

#fs-teiki-category-wrapper .feature-card p.note {
  font-size: 13px;
  color: #d32f2f;
  margin-top: 12px;
  margin-bottom: 0;
  font-weight: bold;
}

@media (max-width: 600px) {
  #fs-teiki-category-wrapper .teiki-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =========================================================
   Links Grid (申込可能な定期便一覧)
========================================================= */
#fs-teiki-category-wrapper .teiki-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 16px 48px;
}

#fs-teiki-category-wrapper .teiki-link-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  border: 1px solid #eaeaea;
  background: #fff;
}

#fs-teiki-category-wrapper .teiki-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(230, 81, 0, 0.15);
  opacity: 0.9;
}

#fs-teiki-category-wrapper .teiki-link-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

#fs-teiki-category-wrapper .teiki-link-desc {
  padding: 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 600px) {
  #fs-teiki-category-wrapper .teiki-link-desc {
    padding: 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #fs-teiki-category-wrapper .teiki-links-grid {
    gap: 12px;
  }
}

/* =========================================================
   Link Comments Overlay
========================================================= */
#fs-teiki-category-wrapper .teiki-link-card {
  position: relative;
}

#fs-teiki-category-wrapper .teiki-link-comment {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #e65100;
  font-weight: bold;
  font-size: 16px;
  padding: 6px 8px;
  border-radius: 4px;
  width: 90%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  line-height: 1.3;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 600px) {
  #fs-teiki-category-wrapper .teiki-link-comment {
    font-size: 10px;
    padding: 4px;
    top: 4px;
    width: 95%;
  }
}

/* =========================================================
   Fixed CTA
========================================================= */
#fs-teiki-category-wrapper .fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e65100;
  padding: 16px 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  backdrop-filter: blur(5px);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

#fs-teiki-category-wrapper .fixed-cta.visible {
  transform: translateY(0);
}

@media (max-width: 600px) {
  #fs-teiki-category-wrapper .fixed-cta {
    padding: 16px 60px;
    bottom: 43px;
  }
}

/* Adjust main content padding to prevent CTA overlap */
#fs-teiki-category-wrapper {
  padding-bottom: 120px;
}