/* Read More Fade - default styles. Feel free to override in your theme. */
.rmf-wrapper {
    width: 100%;
}

.rmf-content {
    position: relative;
    overflow: hidden;
}

/* 200px fade overlay: top transparent -> bottom opaque white (#fff) */
.rmf-content .rmf-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
    pointer-events: none; /* let clicks pass through to the button below */
    z-index: 1;
    display: block;
}

.rmf-toggle {
  display: block;          /* 中央寄せ */
  margin: 12px auto 0;     /* 上12px・左右autoで水平中央 */
  padding: 10px 14px;
  border: 1px solid #299247;
  background: #299247;     /* 背景色 */
  color: #ffffff;          /* 文字色 */
  border-radius: 6px;
  cursor: pointer;
}

.rmf-toggle:hover,
.rmf-toggle:active {
  border-color: #4CB069;
  background: #4CB069;
  color: #ffffff;
  opacity: 1;
}

.rmf-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Expanded state (set by JS) */
.rmf-expanded .rmf-content {
    max-height: none !important;
    overflow: visible;
}
.rmf-expanded .rmf-content .rmf-fade,
.rmf-expanded .rmf-toggle {
    display: none !important;
}
