.elementor-56987 .elementor-element.elementor-element-b9498e9{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-56987 .elementor-element.elementor-element-0f15e5a{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 20px) 0px;}.elementor-56987 .elementor-element.elementor-element-e0c0a4f.elementor-element{--flex-grow:1;--flex-shrink:1;}.elementor-56987 .elementor-element.elementor-element-e3f7cea{--spacer-size:39px;}.elementor-56987 .elementor-element.elementor-element-305971b{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-56987 .elementor-element.elementor-element-bcd809c{margin:-10px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}/* Start custom CSS *//* =========================
   入賞リザルト CSS（20th以上前提）
   ========================= */

/* 共通（PC含む） */
.result-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.result-item {
  margin-bottom: 0;
}

/* 順位＋名前 */
.result-rank {
  font-size: 20px;
  font-weight: 400;
  margin-right: 10px;
  display: inline-block;
}

.result-name {
  font-size: 20px;
  font-weight: 700;
  display: inline-block;
}

/* 写真 */
.result-image {
  max-width: 400px;
  height: auto;
  display: block;
  margin-top: 0;
  margin-bottom: 30px;
}

/* =========================
   スマホレイアウト（20th以上前提）
   ========================= */

@media (max-width: 768px) {

  /* 全体を3列グリッド化 */
  .result-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  /* 各順位ブロックを縦構造に固定 */
  .result-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* -------------------------
     1st〜9th：縦表示（3列分使う）
     ------------------------- */
  .result-item:nth-child(-n+9) {
    grid-column: 1 / -1;
  }

  /* -------------------------
     10th〜20th以降：3列
     ------------------------- */
  .result-item:nth-child(n+10) {
    grid-column: auto;
  }

  /* 下位順位は少しコンパクト */
  .result-item:nth-child(n+10) .result-rank,
  .result-item:nth-child(n+10) .result-name {
    font-size: 14px;
  }

  .result-item:nth-child(n+10) .result-image {
    max-width: 100%;
    margin-bottom: 16px;
  }
}
/* Flickr埋め込み画像の下に余白を追加 */
.result-image-wrapper {
  margin-bottom: 20px; /* ← 写真下の余白。30〜50で好み調整 */
}

/* Flickr内のimgにも保険で効かせる */
.result-image-wrapper img {
  display: block;
}
@media (max-width: 768px) {
  .result-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }
}/* End custom CSS */