/* ==============================
   つみたて投資LP専用スタイル
   SPメイン（最大幅 768px）
   ============================== */

/* --- Base --- */
body.tsumitate-lp202609 {
  background: #f0ede5
    url("//s3-ap-northeast-1.amazonaws.com/s3.peraichi.com/template_root/v2/s3bucket/images/default/bg_abstract_paper.jpg")
    center repeat;
}

.un_tsumitate_wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

/* --- Hero --- */
.un_tsumitate_hero {
  padding: 0;
}

.un_tsumitate_hero_img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Container --- */
.un_tsumitate_container {
  padding: 0 20px;
}

.un_tsumitate_container_sm {
  padding: 0 20px;
}

/* --- Section --- */
.un_tsumitate_section {
  padding: 40px 0;
}

/* --- Card (見出しバー付きボックス) --- */
.un_tsumitate_card {
  border: 1px solid #a69c6e;
  border-radius: 16px;
  overflow: hidden;
}

.un_tsumitate_card_heading {
  background: #a69c6e;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  padding: 16px 20px;
}

.un_tsumitate_card_body {
  background: #f4f2e6;
  padding: 24px 20px;
}

/* --- Heading --- */
.un_tsumitate_heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* --- Text utilities --- */
.un_tsumitate_text_center {
  text-align: center;
}

.un_tsumitate_text_left {
  text-align: left;
}

.un_tsumitate_text_title {
  font-weight: 700;
  margin-bottom: 0.5em;
}

.un_tsumitate_text_block {
  margin-top: 20px;
}

.un_tsumitate_text_block p {
  font-size: 15px;
  line-height: 1.8;
}

.un_tsumitate_text_block p + p {
  margin-top: 1em;
}

.un_tsumitate_lead {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: #7f764f;
  margin-bottom: 12px;
}

/* --- Overview (dl) --- */
.un_tsumitate_overview {
  margin: 0;
}

.un_tsumitate_overview > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(166, 156, 110, 0.35);
  font-size: 15px;
}

.un_tsumitate_overview > div:first-child {
  border-top: 1px solid rgba(166, 156, 110, 0.35);
}

.un_tsumitate_overview dt {
  font-weight: 700;
  color: #3e3a39;
}

.un_tsumitate_overview dd {
  margin: 0;
  color: #3e3a39;
  line-height: 1.8;
}

.un_tsumitate_note {
  font-size: 14px;
  line-height: 1.8;
  color: #656161;
  margin-top: 20px;
}

/* --- Fund cards --- */
.un_tsumitate_fund_grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.un_tsumitate_fund_card {
  text-align: left;
}

.un_tsumitate_fund_card + .un_tsumitate_fund_card {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(166, 156, 110, 0.35);
}

.un_tsumitate_fund_head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.un_tsumitate_fund_icon {
  display: block;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.un_tsumitate_fund_head_text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.un_tsumitate_fund_name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.un_tsumitate_fund_label {
  display: inline-block;
  width: fit-content;
  background: #a69c6e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.un_tsumitate_fund_desc {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.un_tsumitate_fund_footnote {
  font-size: 13px;
  line-height: 1.7;
  color: #8b8988;
  margin-top: 24px;
}

.un_tsumitate_fund_card .un_tsumitate_cta_btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* --- CTA --- */
.un_tsumitate_cta_lead {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 12px;
}

.un_tsumitate_cta_desc {
  font-size: 15px;
  line-height: 1.8;
  color: #656161;
  margin-bottom: 4px;
}

.un_tsumitate_cta_btn_wrapper {
  margin-top: 20px;
}

a.un_tsumitate_cta_btn {
  display: inline-block;
  padding: 14px 24px;
  background: #a69c6e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  transition: opacity 0.3s;
}

a.un_tsumitate_cta_btn:hover {
  opacity: 0.8;
}

a.un_tsumitate_cta_btn__outline {
  background: #fff;
  color: #a69c6e;
  border: 1px solid #a69c6e;
}

a.un_tsumitate_cta_btn__line {
  background: #06c755 !important;
}

/* --- LINE Section (枠付き) --- */
.un_tsumitate_line_section {
  border: 2px solid #06c755;
  margin: 0 20px;
  border-radius: 8px;
}

/* --- Disclaimer --- */
.un_tsumitate_disclaimer {
  font-size: 15px;
  line-height: 1.8;
  color: #656161;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* --- General typography for sections --- */
.un_tsumitate_section p {
  line-height: 1.8;
}

.un_tsumitate_section a {
  color: #a69c6e;
  text-decoration: underline;
}

.un_tsumitate_section a:hover {
  text-decoration: none;
}

.un_tsumitate_section a.un_tsumitate_cta_btn {
  color: #fff;
  text-decoration: none;
}

.un_tsumitate_section a.un_tsumitate_cta_btn__outline {
  color: #a69c6e;
}

/* --- Footer padding for floating CTA --- */
.un_tsumitate_section:last-of-type {
  padding-bottom: 96px;
}

/* --- Floating CTA --- */
.un_tsumitate_float_cta {
  bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  left: 50%;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  z-index: 1000;
  border-radius: 100px;
}

.un_tsumitate_float_cta.is_ready {
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.un_tsumitate_float_cta.is_hidden {
  opacity: 0;
  visibility: hidden;
}

.un_tsumitate_float_cta_inner {
  position: relative;
}

a.un_tsumitate_float_cta_btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
}

.un_tsumitate_float_cta_close {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  height: 24px;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: -4px;
  top: -4px;
  width: 24px;
}

.un_tsumitate_float_cta_close:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* ==============================
   PC対応（768px以上）
   ============================== */
@media (min-width: 768px) {
  .un_tsumitate_br_sp {
    display: none;
  }

  .un_tsumitate_container,
  .un_tsumitate_container_sm {
    padding: 0 32px;
  }

  .un_tsumitate_section {
    padding: 56px 0;
  }

  .un_tsumitate_heading {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .un_tsumitate_card_heading {
    font-size: 22px;
    padding: 20px 32px;
  }

  .un_tsumitate_card_body {
    padding: 40px 32px;
  }

  .un_tsumitate_overview > div {
    flex-direction: row;
    gap: 24px;
  }

  .un_tsumitate_overview dt {
    width: 160px;
    flex-shrink: 0;
  }

  .un_tsumitate_fund_grid {
    flex-direction: row;
    gap: 32px;
  }

  .un_tsumitate_fund_card {
    flex: 1;
  }

  .un_tsumitate_fund_card + .un_tsumitate_fund_card {
    margin-top: 0;
    padding-top: 0;
    padding-left: 32px;
    border-top: none;
    border-left: 1px solid rgba(166, 156, 110, 0.35);
  }

  .un_tsumitate_line_section {
    margin: 0 32px;
  }

  .un_tsumitate_float_cta {
    bottom: 24px;
    box-shadow: none;
    width: 320px;
  }

  a.un_tsumitate_float_cta_btn {
    border: 2px solid #06c755;
  }
}
