
/* =========================
   wordpress上で書いたCSS
========================= */
/* コンテンツ画面調整 */
.entry-meta {
    display: none;
}

.elementor-widget-container h5 {
    font-size: 0.6em;
    margin: 0;
    font-weight: normal;
}

/* 公開画面の初期状態で非表示 */
#content-j,
#content-e {
    display: none; /* 初期状態で非表示 */
    opacity: 1; /* 表示アニメーション用 */
    transition: opacity 0.5s ease-in-out;
}

/* 編集画面で表示 */
.elementor-editor-active #content-j,
.elementor-editor-active #content-e {
    display: block !important; /* 編集時に強制表示 */
    opacity: 1; /* アニメーション適用 */
}
#content-j, #content-e {
    position: relative;
    z-index: 10; /* 他の要素より前面に表示 */
}

video {
    pointer-events: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* 検索ボックス */
/* 親コンテナ：検索エリア全体 */
.search-area {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  font-family: sans-serif;
}

/* 検索窓 */
#searchBox {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 2px solid #D32685;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
}

/* 検索結果リスト*/
.dropdown-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #D32685;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 個々の候補リスト項目 */
.dropdown-list li {
  padding: 10px 14px;
  border-bottom: 1px solid #f1c5dd;
  cursor: pointer;
}

/* 最終項目のボーダー除去 */
.dropdown-list li:last-child {
  border-bottom: none;
}

/* リンクスタイル */
.dropdown-list li a {
  text-decoration: none;
  color: #D32685;
  font-weight: bold;
  display: block;
}

/* ホバー時の視覚効果 */
.dropdown-list li:hover {
  background-color: #fce4f1;
}

/* スクロールバーのスタイル */
.dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background-color: #D32685;
  border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-track {
  background: #fff;
}

.dropdown-list {
  border-top: none !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 0 !important;
  padding-top: 0;
  top: 100%; 
}

#searchBox::placeholder {
  font-size: 14px;
  color: #999;
  opacity: 1;
}

/* =========================
   静的HTMLでの修正、font系の仕分け
========================= */
@media screen and (max-width: 480px) {
  #searchBox::placeholder {
    font-size: 12px;
  }

  #searchBox {
    font-size: 14px;
    padding: 8px 10px;
  }
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* =========================
   画像系（表示・装飾）
========================= */
#episodeImage img,
.elementor-image-box-img img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 25px;
  transition: transform 0.5s ease;
}

.elementor-image-box-wrapper:hover img {
  transform: scale(1.05);
}


/* =========================
   レイアウトコンテナ
========================= */
.episodeRow {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}

/* =========================
   コンテンツ構造
========================= */
.elementor-image-box-wrapper {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
}

.elementor-image-box-content {
  margin-top: 20px;
}

.elementor-image-box-wrapper.dummy {
  visibility: hidden;
}

body.home .entry-content h2.tocHeading {
  font-size: 10px;
}

/* =========================
   スマホ・タブレット用表示
========================= */
@media screen and (max-width: 1024px) {
  /* レイアウト調整：スマホ・タブレット共通 */
  .episodeRow {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .elementor-image-box-wrapper {
    flex: 1 1 100%;
  }
  
  /* フォントサイズ調整 */
  body {
    font-size: 22px !important;
  }

  h1, h2, h3 {
    font-size: 26px !important;
  }

  p, li, .elementor-widget-text-editor,
  html body .elementor-widget-text-editor {
    font-size: 20px !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .episodeRow {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .elementor-image-box-wrapper {
    width: 100% !important;
    box-sizing: border-box;
  }
}

@media (max-width: 1024px) {
  .elementor-element-9b0943c,
  .elementor-element-9b0943c .e-con-inner {
    width: 95% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  .elementor-element-9b0943c {
    margin-top: 40px !important; 
  }
}

/* =========================
   INDEXページ
========================= */
.custom-heading {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.5em 1em;
  border-left: 4px solid #666;
  background-color: #f9f9f9;
  margin: 2em 0 1em;
}

.language-columns {
  display: flex;
  gap: 2em;
  justify-content: space-between;
  margin: 3em 0 2em 0;
  overflow: hidden;
  margin-top: 3em;
  flex-wrap: wrap;
}

.column-heading {
  font-size: 20px;
  font-weight: bold;
  border-bottom: 2px solid #aaa;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
  color: #333;
}

.searchWrapper {
  max-width: 500px;
  margin: 0 auto;
}

.contentWrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1em;
}

.language-column {
  flex: 1 1 45%;
  min-width: 280px;
  box-sizing: border-box;
}



