/* ==========================================================================
   Page Feature - 特徴ページ
   Figma node 40:3465, 1440x7805px
   ========================================================================== */

/* --------------------------------------------------------------------------
   FV: Title + Intro (横並び)
   Figma: Frame 56 (left, x:132) + Frame 55 (right, x:647)
   -------------------------------------------------------------------------- */
.feature-fv {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 0 0;
}

.feature-fv__watermark {
  position: absolute;
  top: 60px;
  left: 0;
  font-family: 'Marcellus', serif;
  font-size: 240px;
  font-weight: 400;
  color: #F7F6F6;
  line-height: 1.25;
  letter-spacing: -0.0004em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.feature-fv__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: content-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.feature-fv__left {
  flex-shrink: 0;
}

.feature-fv__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin: 0 0 8px;
}

.feature-fv__subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
  margin: 0;
}

.feature-fv__right {
  max-width: 675px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-fv__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

.feature-fv__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.feature-fv__divider {
  border: none;
  border-top: 1px solid #E3E3E3;
  width: 100%;
  margin: 48px 0 0;
}

@media (max-width: 768px) {
  .feature-section__text br {
    display: none;
  }

  .feature-fv__inner {
    flex-direction: column;
    padding: 0 24px;
  }
  .feature-fv__watermark {
    font-size: 80px;
  }
  .feature-fv__title {
    font-size: 28px;
  }
  .feature-fv__buttons {
    flex-direction: column;
    width: 100%;
  }
  .feature-fv__buttons .btn-outline-black,
  .feature-fv__buttons .btn-filled-red {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

/* --------------------------------------------------------------------------
   Section Layout
   -------------------------------------------------------------------------- */
.feature-section {
  padding: 80px 0;
}

.feature-section--gray {
  background: #F8F8F8;
}

.feature-section--cta {
  background: #FFFFFF;
  padding: 80px 0;
}

.feature-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: content-box;
}

/* --------------------------------------------------------------------------
   Section Headings & Text
   -------------------------------------------------------------------------- */
.feature-section__heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 33px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  margin: 0 0 24px;
}

.feature-section__heading--center {
  text-align: center;
}

.feature-section__subheading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  margin: 0 0 16px;
  text-align: center;
}

.feature-section__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  margin: 0 0 40px;
}

.feature-section__text--center {
  text-align: center;
}

.feature-section__text--large {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Section 2: Definition (マーケティングイネーブルメントとは) - Diagram
   -------------------------------------------------------------------------- */
.feature-definition__diagram {
  margin-top: 40px;
}

.feature-definition__diagram img {
  width: 100%;
  height: auto;
  display: block;
}

/* Marketing Enablement Diagram */
.me-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 16px;
}

.me-diagram__input {
  width: 384px;
  height: 281px;
  flex-shrink: 0;
  border: 1px solid #E3E3E3;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.me-diagram__input-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #E51F1F;
  margin: 0 0 8px;
  text-align: center;
}

.me-diagram__input-number {
  font-family: 'Barlow', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: #000;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.me-diagram__input-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0;
  text-align: center;
}

.me-diagram__bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 54px;
  min-width: 0;
}

.me-diagram__bar {
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 0;
  position: relative;
}

.me-diagram__bar--red {
  background: #E51F1F;
}

.me-diagram__bar--gray {
  background: #9F9A9A;
}

.me-diagram__bar--light {
  background: #BABABA;
}

.me-diagram__bar-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.me-diagram__bar-arrow {
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
}

.me-diagram__bar--red .me-diagram__bar-arrow {
  border-left: 10px solid #E51F1F;
}

.me-diagram__bar--gray .me-diagram__bar-arrow {
  border-left: 10px solid #9F9A9A;
}

.me-diagram__bar--light .me-diagram__bar-arrow {
  border-left: 10px solid #BABABA;
}

.me-diagram__results {
  width: 384px;
  flex-shrink: 0;
  padding-left: 24px;
  box-sizing: border-box;
}

.me-diagram__results-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin: 0 0 6px;
  text-align: center;
}

.me-diagram__results-charts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.me-diagram__results-charts img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  object-position: left top;
  display: block;
}

/* --------------------------------------------------------------------------
   Section 3: Challenge (課題)
   -------------------------------------------------------------------------- */
.feature-challenge {
  display: flex;
  align-items: center;
  gap: 33px;
}

.feature-challenge__diagram {
  flex-shrink: 0;
  width: 587px;
}

.feature-challenge__diagram-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #313131;
  margin: 0 0 30px;
  text-align: center;
}

.feature-challenge__diagram-image {
  border-radius: 16px;
  overflow: hidden;
}

.feature-challenge__diagram-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-challenge__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.feature-challenge__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-challenge__card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.feature-challenge__card-icon img {
  width: 40px;
  height: 40px;
  display: block;
}

.feature-challenge__card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-challenge__card-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.feature-challenge__card-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
  margin: 0;
}

.feature-challenge__card-number {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #E51F1F;
  line-height: 1.2;
  letter-spacing: -0.00625em;
}

/* --------------------------------------------------------------------------
   Section 4: Quantitative (定量効果)
   -------------------------------------------------------------------------- */
.feature-quant__chart {
  margin-bottom: 48px;
}

.feature-quant__chart img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-quant__investment {
  margin-bottom: 0;
}

.feature-quant__investment img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Section 5: Qualitative (定性効果)
   -------------------------------------------------------------------------- */
.feature-qualitative__diagram {
  max-width: 898px;
  margin: 0 auto;
}

.feature-qualitative__diagram img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Section 6: Phase (進め方)
   -------------------------------------------------------------------------- */
.feature-phase__diagram {
  margin-bottom: 48px;
}

.feature-phase__diagram img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-phase__cta-cards {
  display: flex;
  gap: 48px;
  background: #FFFFFF;
  padding: 48px;
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.16);
}

.feature-phase__cta-card {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #E51F1F;
  border-radius: 4px;
  padding: 16px 24px 16px 40px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}

.feature-phase__cta-card:hover {
  opacity: 0.85;
  color: #fff;
}

.feature-phase__cta-card-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: #fff;
}

.feature-phase__cta-card-text-sm {
  font-size: 13px;
  line-height: 1.4;
}

.feature-phase__cta-card-text-lg {
  font-size: 23px;
  line-height: 1.4;
}

.feature-phase__cta-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 16px;
}

.feature-phase__cta-card-arrow::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #E51F1F;
  border-right: 2px solid #E51F1F;
  transform: rotate(45deg);
  margin-left: -2px;
}

/* --------------------------------------------------------------------------
   Section 7: Comparison (ROICHの特徴) - 3 Points cards
   -------------------------------------------------------------------------- */
.feature-comparison__table {
  margin-bottom: 32px;
}

.feature-comparison__table img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-comparison__points {
  display: flex;
  gap: 8px;
}

.feature-comparison__point {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E3E3E3;
  border-radius: 16px;
  padding: 16px;
}

.feature-comparison__point-number {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #E51F1F;
  text-align: left;
  margin: 0 0 8px;
}

.feature-comparison__point-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #000;
  margin: 0 0 8px;
}

.feature-comparison__point-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #000;
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Section 8: Cases (支援会社様の実績)
   -------------------------------------------------------------------------- */
.feature-cases {
  display: flex;
  gap: 24px;
}

.feature-cases__card {
  flex: 1;
}

.feature-cases__card-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin: 0 0 8px;
}

.feature-cases__card-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin: 0 0 16px;
}

.feature-cases__card-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.feature-cases__stat-row {
  display: flex;
  align-items: center;
  background: #F8F8F8;
  padding: 4px;
}

.feature-cases__stat-label {
  width: 123px;
  flex-shrink: 0;
  text-align: center;
  padding: 12px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.2;
  box-sizing: border-box;
}

.feature-cases__stat-value {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
}

.feature-cases__stat-value-bold {
  font-weight: 700;
}

.feature-cases__stat-value-sub {
  font-weight: 400;
}

.feature-cases__card-chart img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bar Chart (CSS implementation) */
.feature-cases__chart {
  position: relative;
  padding-top: 32px;
}

.feature-cases__chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 60px;
  margin-bottom: 8px;
}

.feature-cases__chart-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #000;
  background: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}

.feature-cases__chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 260px;
  padding: 0 24px;
  border-left: 1px solid #E3E3E3;
  border-bottom: 1px solid #E3E3E3;
  background: repeating-linear-gradient(
    to top,
    transparent,
    transparent 64px,
    #F0F0F0 64px,
    #F0F0F0 65px
  );
}

.feature-cases__chart-bar {
  width: 39px;
  border-radius: 2px 2px 0 0;
  min-height: 8px;
}

.feature-cases__chart-bar--gray {
  background-color: #A5A5A5;
}

.feature-cases__chart-bar--red {
  background-color: #E51F1F;
}

.feature-cases__chart-axis {
  display: flex;
  justify-content: space-around;
  padding: 8px 24px 0;
}

.feature-cases__chart-axis span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: #000;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Section 9: Results (支援実績)
   -------------------------------------------------------------------------- */
.feature-results__badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.feature-results__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 232px;
  height: 102px;
  background: #313131;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.feature-results__badge-line1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #AAA;
  letter-spacing: -0.1px;
}

.feature-results__badge-line2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.1px;
}

.feature-results__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-results__logo {
  background: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  overflow: hidden;
}

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

.feature-results__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.feature-results__cta .btn-outline-black {
  background: #000;
  color: #FFF;
  border-color: #000;
}

.feature-results__cta .btn-outline-black:hover {
  opacity: 0.8;
}

.feature-results__download-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-decoration: underline;
  display: block;
  text-align: center;
}

.feature-results__download-link:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Section 10: Bottom CTA
   -------------------------------------------------------------------------- */
.feature-bottom-cta {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.feature-bottom-cta__image {
  flex-shrink: 0;
  width: 537px;
}

.feature-bottom-cta__image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-bottom-cta__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.feature-bottom-cta__heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  margin: 0;
}

.feature-bottom-cta__list {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  list-style: disc;
  margin: 0;
  padding-left: 24px;
}

.feature-bottom-cta__list li {
  margin-bottom: 0;
}

/* Bottom CTA Button - Figma: 全幅赤ボタン + 丸矢印 */
.feature-bottom-cta__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px 16px 40px;
  background: #E51F1F;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.feature-bottom-cta__btn:hover {
  opacity: 0.85;
  color: #fff;
}

.feature-bottom-cta__btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-bottom-cta__btn-arrow::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #E51F1F;
  border-right: 2px solid #E51F1F;
  transform: rotate(45deg);
  margin-left: -2px;
}

/* ==========================================================================
   Responsive - Tablet (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1248px) {
  .feature-fv__inner,
  .feature-section__inner {
    box-sizing: border-box;
    max-width: 100%;
  }
}

@media (max-width: 1024px) {

  .feature-section {
    padding: 60px 0;
  }

  .feature-challenge {
    flex-direction: column;
  }

  .feature-challenge__diagram {
    width: 100%;
  }

  .feature-phase__cta-cards {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .feature-comparison__points {
    flex-direction: column;
  }

  .feature-cases {
    flex-direction: column;
  }

  .feature-results__badges {
    flex-wrap: wrap;
  }

  .feature-results__logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-bottom-cta {
    flex-direction: column;
    padding: 32px;
  }

  .feature-bottom-cta__image {
    width: 100%;
  }
}

/* ==========================================================================
   Responsive - Mobile (max-width: 600px)
   ========================================================================== */
@media (max-width: 600px) {
  .feature-section__inner {
    padding: 0 20px;
  }

  .feature-section {
    padding: 48px 0;
  }

  .feature-section__heading {
    font-size: 24px;
  }

  .feature-section__subheading {
    font-size: 22px;
  }

  .feature-challenge__card-title {
    font-size: 16px;
  }

  .feature-phase__cta-card {
    padding: 16px 20px 16px 24px;
  }

  .feature-phase__cta-card-text-lg {
    font-size: 18px;
  }

  .feature-cases__card {
    padding: 24px 20px;
  }

  .feature-cases__stat-value {
    font-size: 14px;
  }

  .feature-results__badges {
    flex-direction: column;
  }

  .feature-results__logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-bottom-cta {
    padding: 24px 20px;
  }

  .feature-bottom-cta__heading {
    font-size: 22px;
  }

  /* Section 2: マーケティングイネーブルメントとは - ダイアグラムを縦積み */
  .me-diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .me-diagram__input {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .me-diagram__input-number {
    font-size: 48px;
  }

  .me-diagram__bars {
    gap: 24px;
    padding: 16px 0;
  }

  .me-diagram__results {
    width: 100%;
    padding-left: 0;
  }

  /* Section 6: 進め方 - 画像横スクロール + テキストサイズ縮小 */
  .feature-phase__diagram {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature-phase__diagram img {
    width: auto;
    height: 300px;
  }

  .feature-phase__cta-card-text-sm {
    font-size: 11px;
  }

  .feature-phase__cta-card-text-lg {
    font-size: 16px;
  }

  /* Section 7: ROICHの特徴 - 画像横スクロール */
  .feature-comparison__table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature-comparison__table img {
    width: auto;
    height: 350px;
  }

  /* Section 8: 支援会社様の実績 */
  .feature-cases__card {
    padding: 20px;
  }

  .feature-cases__card-title {
    font-size: 20px;
  }

  .feature-cases__card-subtitle {
    font-size: 13px;
  }

  .feature-cases__stat-label {
    font-size: 13px;
    width: 80px;
    padding: 8px 8px;
  }

  .feature-cases__stat-value {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Section 9: 支援実績 - バッジセンタリング + ロゴcontain */
  .feature-results__badges {
    align-items: center;
  }

  .feature-results__badge {
    width: 100%;
  }

  .feature-results__logo img {
    object-fit: contain;
    padding: 8px;
  }
}
