/* ▼ 全体の囲い */

.event-report {
  position: relative;
}


.text-wrapper {
  position: relative;
  width: 80%;
  margin: 0 auto;
  margin-top: 2em;
  padding: 1.5em 2em;
  background-color: rgba(255, 255, 255, 0.8);
  color: #003b84;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 0.5em;
  box-sizing: border-box;
}

/* ▼ 2カラム構成 */
.text-wrapper.two-column {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  gap: 2rem;
  align-items: center;
  margin-top: 0;
}

.column-left {
  flex: 0 0 38%;
  max-width: 38%;
  box-sizing: border-box;
}

.column-right {
  flex: 0 0 58%;
  max-width: 58%;
  box-sizing: border-box;
  background-color: #fff;
}

/* ▼ YouTube 埋め込み */
.youtube-embed-inline-ratio {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  overflow: hidden;
}

.youtube-embed-inline-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  vertical-align: bottom;
  background-color: #fff;
}

/* ▼ 開閉対象部分（2カラムのみ） */
.js-lead-eventreport-content {
  position: relative;
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  background-color: #fff;
  margin: 0 auto;
  padding: 0;
}

/* ▼ グラデーションマスク */
.js-lead-eventreport-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  box-shadow: 0 40px 0 #fff;
  pointer-events: none;
  z-index: 1;
}

/* ▼ 下地の白レイヤー（段差防止） */
.js-lead-eventreport-content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: #fff;
  z-index: 0;
}

/* ▼ 開いたときの状態 */
.js-lead-eventreport-content.is-open {
  max-height: 8000px;
}
.js-lead-eventreport-content.is-open::after {
  opacity: 0;
}

/* ▼ ボタンオーバーレイ（グラデ内中央下に配置） */
.js-lead-eventreport-btn-overlay {
  position: absolute;
  bottom: clamp(24px, 2vw, 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: bottom 0.3s ease;
  opacity: 0.8;
}

.js-lead-eventreport-btn-overlay span {
  font-size: 1.7rem;
}

.js-lead-eventreport-btn-overlay.is-open {
  bottom: -0.04vw;  /* 下にずらす：必要に応じて調整 */
}

.js-lead-eventreport-btn-overlay button {
  min-width: 18em;
  text-align: center;
  background: linear-gradient(to bottom, #b3d4f7 0%, #2b66c0 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.6em 1.8em;
  border: none;
  border-radius: 0.5em;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.2);
  transition: background 0.6s ease;
}

.js-lead-eventreport-btn-overlay button:hover {
  background: linear-gradient(to bottom, #a1c4ec 0%, #1f4ea1 100%);
}



/* ▼ 表示切り替えテキスト制御 */
.js-lead-eventreport-btn-overlay span:last-child {
  display: none;
}

.js-lead-eventreport-content.is-open .js-lead-eventreport-btn-overlay span:first-child {
  display: none;
}

.js-lead-eventreport-content.is-open .js-lead-eventreport-btn-overlay span:last-child {
  display: inline-block;
}



.floating-contact {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* 最初は非表示 */
  z-index: 1000;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.floating-contact.custom-arrow {
  pointer-events: auto;
  position: fixed;
  bottom: 1rem;
  left: 30%;
  max-width: calc(100% - 2rem);
  z-index: 1000;
  background: rgba(148, 174, 222, 0.85);
  color: #1a1a1a;
  padding: 1rem 5rem 1rem 1rem;  /* 右の余白は小さめに */
  font-size: 2.2rem;
  font-weight: bold;
  white-space: nowrap;
  display: none;

  clip-path: polygon(
    0 0,
    92% 0,
    100% 50%,
    92% 100%,
    0 100%
  );

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: visible; /* ← これでトンガリ部分を隠さない */
}

.floating-contact.custom-arrow a {
  text-decoration: underline;
}

.floating-contact.custom-arrow.none {
  opacity: 0;
  z-index: -1;
}

@media screen and (max-width: 767px) {
  .floating-contact.custom-arrow {
    display: none !important;
  }
}


