/*エディター記事共通*/
::root
{
  --control-color:  #285a50;
  --accent-color: #285a50;
}
.article-genre
{
    position: absolute;
    top:0;
    right: 0;
    display:flex;    
}
.contents-date
{
    padding:0 10px;
    background-color: #46966e;
    color:#fff;
}
.article-genre-name
{
    padding:0 10px;
    background-color: var(--control-color);
    color:#fff;
    text-align: center;
    
}
.article-wrap
{
    width: 100%;
    position: relative;
    background-color: #f6f4ed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 0 50px;
    border-radius: 0 0 50px 0;
    box-sizing: border-box;
    
    z-index:5;
}
.article-wrap article
{
    width:90%;
    max-width: 1000px;
    background-color: #fff;
    padding: 50px 5% 150px;
    box-sizing: border-box;
    border-radius: 50px 0 50px 0 ;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 5;
}
.article-wrap article img
{
    height:auto !important;
}

/* ======================================
   公開画面で使うボタンデザイン
   ====================================== */
*
{
    margin: 0;
}
.editor-content
{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cms-button {
  display: inline-block;
  background: #018f68;
  color: #fff !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.cms-button:hover {
  opacity: 0.8;
}
.cms-button:active {
  transform: scale(0.98);
}
/* ボタン群を横並びで下配置（ハンドルは右側） */
.block-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
}

/* ドラッグハンドル */
.block-drag-handle {
  margin-left: auto;
  cursor: grab;
  user-select: none;
  padding: 4px 8px;
  border: 1px dashed #aaa;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
}

/* 設定UI */
.block-settings {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

/* 公開スタイル用の最低限 */
.cms-img.img-round { 
/*    border-radius: 12px;*/
    border-radius: 25px 0 25px 0; /*植樹祭仕様*/
}
.cms-doc a {
  color: #285a50;
}
.cms-text-default {
  color: #333;
}
.cms-text-accent { color: #285a50; }

/* 強制公開スタイル */
.editor-content h2,
.eve-contact h2
{
    width:100%;
    background-color: var(--yellow);
    padding: 0 15px;
    box-sizing: border-box;
    color: var(--control-color);
    border-radius: 20px 0 20px 0;
    font-size: calc( 1.2rem * var(--font-scale));
}
.cms-doc a
{
    position: relative;
    text-decoration: none;
/*    color: var(--control-color);*/
}
.cms-doc a:after
{
    content:"";
    width:0.8rem;
    aspect-ratio: 1/1;
    position: absolute;
    right:calc( -0.8em - 5px);
    top:55%;
    transform: translateY(-50%);
    background-image: url(../images/common/dl-icon.webp);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}


/* PCの左右並び用ユーティリティ */
.cms-row { display: flex; gap: 10px; }
.cms-col { flex: 1; }
.cms-stack img { display:block; margin-bottom:8px; }

/* YouTube 埋め込み用レイアウト（16:9固定） */
.cms-youtube {
  position: relative;
  width: 80%;
  max-width: 960px;
  margin: 20px auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 5px solid #018f68;
  box-sizing: border-box;
}

.cms-youtube iframe {
  
  width: 100%;
  height: 100%;
  border: none;
  display: inline-block;
}

@media screen and (min-width:767px)
{
    .cms-doc a:hover
    {
        opacity: 0.7;
    }
    
}
@media screen and (max-width:768px){
  .cms-row
  {
      flex-direction: column;
  }
  .cms-youtube {
    width: 100%;
    min-width: 0;
    min-width: 0;
  }
  .editor-content h2,
  .eve-contact h2
    {
        border-radius: 10px 0 10px 0;
    }
    .gmaps
    {
        width:100% !important;
    }
    .slick-prev
    {
        left:5px;
        z-index: 10;
    }
    .slick-next
    {
        right:5px;
        z-index: 10;
    }
    article>h2
    {
            font-size: calc(1.5rem * var(--font-scale)) !important;
            line-height: 1.5;
    }
    
}
.block-drag-handle {
  opacity: 0;
  pointer-events: none;
  display:none;
}