@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* 親テーマ Cocoon 2.9 の初期化で、全部の要素の折り返しが break-word から anywhere に変わった
   （本番は 2026-10-21・dev は 10-22 に自動で 2.9.6 へ更新された。2.8.7 までは * { overflow-wrap: break-word; }）。
   anywhere は「どこで折り返してもよい」ので、中身に合わせて縮む箱（幅の決まっていない吹き出し・札）が1文字の幅まで縮む。
   動画（video.js）の再生バーに乗せたときの時刻の札は幅 1px の箱の中にあり、「2:11」が1文字ずつ縦に並んだ（2026-10-23 ユーザー指摘）。
   サイトは break-word のころに作って確かめてきたので、2.8.7 と同じに戻す（親の * と同じ強さで、子テーマは親の後に読まれる）。
   はみ出しそうな長い英数字で折り返すことは break-word でも変わらない（縮む箱の幅の決め方だけが違う） */
* {
  overflow-wrap: break-word;
}

/* Safari(WebKit)のルビ描画差の補正。
   WebKitはルビ(rt)を漢字のemボックス上端のさらに上に置くため、Chromeより
   「ルビと漢字の間」が約0.25em(基底文字基準)空き、ルビ行の行高も膨らむ。
   rtの負のmargin-bottomは WebKitでは注釈ボックスを基底側へ引き寄せて
   隙間と行高膨張の両方を縮める（Chromeでは挙動が異なり崩れるのでWebKit限定）。
   ガードの -webkit-named-image はWebKit系(iPad/iPhone全ブラウザ+macOS Safari)のみ
   trueになる@supports判定。position:relative/topはWebKitのrtには効かない点に注意 */
@supports (background: -webkit-named-image(i)) {
  rt {
    margin-bottom: -0.5em;
  }

  /* .nakamaMonster はruby自体をinline-flexで独自配置しており、
     ネイティブルビ描画のエンジン差が発生しない＝補正すると逆に詰まりすぎるため除外 */
  .nakamaMonster rt {
    margin-bottom: 0;
  }
}

.fade-custom-enter-active, .fade-custom-leave-active {
  transition: opacity 0.8s ease-in-out;
}
.fade-custom-enter-from, .fade-custom-leave-to {
  opacity: 0;
}
.fade-custom-enter-to, .fade-custom-leave-from {
  opacity: 1;
}

/* ヒーロー会員登録誘導モーダル */
.modalLp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.wrapLp {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.trial-message {
  margin-bottom: 20px;
}

.trial-message h2 {
  color: #ff6b6b;
  font-size: 24px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* お試し版ポップアップ専用: タイトル両脇にモンスター画像
   (.trial-message は学校用/サブアカ用モーダルと共用のためクラスで限定) */
.trial-message h2.trialTitleRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.trialTitleRow .trialMonster {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.trial-message p {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-registration-button {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.hero-registration-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.close-button {
  background-color: #f0f0f0;
  color: #666;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.close-button:hover {
  background-color: #e0e0e0;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .wrapLp {
    padding: 20px;
    max-width: 90%;
  }
  
  .trial-message h2 {
    font-size: 20px;
  }

  .trialTitleRow .trialMonster {
    height: 44px;
  }
  
  .trial-message p {
    font-size: 14px;
  }
  
  .hero-registration-button {
    padding: 12px 24px;
    font-size: 16px;
  }
}


.topHeaderImg{
  text-align: center;
  margin: auto;
  background-size: cover;
  background-position: center;
  width:100%;
  height:100vh;
  height:100dvh;
  position: relative;
  overflow: hidden;
}

#app{
    width: 100%;
    margin: auto;
    height: 100vh;
    height: 100dvh;
  }

.gameBk{
  background-color:black;
  height: 100dvh;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh; /* 必要な高さに合わせて調整 */
  }
  
  /* walker が左右に移動し、途中で左右反転（scaleX）する */
  .walker {
    position: relative;
    width: 100px;  /* 画像の幅に合わせて調整 */
    height: auto;
    animation: walkCycle 4s infinite;
  }
  
  /* 画像を重ねて配置 */
  .frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }
  
  /* frame1 と frame2 の opacity を交互に切り替えるアニメーション */
  .frame1 {
    animation: frameSwap 0.5s steps(1) infinite;
  }
  .frame2 {
    animation: frameSwap2 0.5s steps(1) infinite;
  }
  
  /* frame1 は前半で表示、後半で非表示 */
  @keyframes frameSwap {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
  }
  
  /* frame2 は前半で非表示、後半で表示 */
  @keyframes frameSwap2 {
    0%, 50% { opacity: 0; }
    50.01%, 100% { opacity: 1; }
  }
  
  /* walkCycle: 左から右へ移動し、途中から右から左へ戻ると同時に反転 */
  @keyframes walkCycle {
    0% {
      transform: translateX(0) scaleX(1);
    }
    49.99% {
      transform: translateX(-100px) scaleX(1);
    }
    50% {
      transform: translateX(-100px) scaleX(-1);
    }
    100% {
      transform: translateX(0) scaleX(-1);
    }
  }
  
  .loading-text {
    margin-top: -50px;
    font-size: 2.2em;
    color: #FFF;
    text-shadow    : 
    2px  2px 1px #000000,
   -2px  2px 1px #000000,
    2px -2px 1px #000000,
   -2px -2px 1px #000000,
    2px  0px 1px #000000,
    0px  2px 1px #000000,
   -2px  0px 1px #000000,
    0px -2px 1px #000000; 
  }
  
  .modal-body .loading-animation{
    height: 250px;
  }

.modal-body .loading-text {
    margin-top: -69px;
    color:#000;
}


#scroll-wrap {
    height: 100vh;
    height: 100dvh;
    scroll-snap-type: y mandatory;
    overflow-y: auto; /* スクロールが必要なときのみスクロールバーを表示 */
    scrollbar-width: none; /* Firefox用：スクロールバーを非表示 */
    -ms-overflow-style: none; /* IE/Edge用：スクロールバーを非表示 */
}

/* WebKit系（Chrome、Safari、Edge）のスクロールバーを非表示 */
#scroll-wrap::-webkit-scrollbar {
    display: none;
}

/* ホーム/コース一覧以外のSPAページ（100dvh固定のゲーム画面）では
   App.vue がbodyへこのクラスを付与してページスクロールを封鎖する。
   フッターは全ルートで #scroll-wrap 内に描画されるため、封鎖しないと
   ゲーム画面でもフッターぶんスクロールできモーダルの表示が崩れる。

   overflow は clip（スクロールできない箱）にする。hidden だとホイール・タッチは止まるが、
   画面をクリックしたあとのスペース・PageDown・End・↓ で Chrome がフッターまで動かし、
   hidden なのでホイールでは戻れなくなる（2026-11-21 ステージ一覧・課題一覧）。
   - 先の overflow-y: hidden は clip を知らない古いブラウザ（Safari 15 以前など）向けの控え
   - display: flow-root は hidden のときと同じく中の余白を外へ抜けさせない区切り（clip はこれを作らない）
   - html を前に付けるのは、デイリーボーナスの overflow-y: hidden（Vue 側・同じ強さで後から読まれる）に負けないため
   - clip の箱は scrollTop を変えられないので、位置を0に戻すのはこのクラスを付ける前（App.vue） */
html body.sm-lock-page-scroll #scroll-wrap {
    overflow-y: hidden;
    overflow: clip;
    display: flow-root;
}

.scroll-section {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    align-items: center;
    justify-content: center;
}

.headerLetter{
    margin: 31px auto 0;
    -webkit-text-fill-color: #f9d25d;
    font-size: 2rem;
    font-weight: 100;
    line-height: 0;
    font-family: 'M PLUS Rounded 1c';
    text-shadow: 2px 2px 1px #000000, -2px 2px 1px #000000, 2px -2px 1px #000000, -2px -2px 1px #000000, 2px 0px 1px #000000, 0px 2px 1px #000000, -2px 0px 1px #000000, 0px -2px 1px #000000;
}


.start a{
    -webkit-text-fill-color: #e2b628;
    -webkit-text-stroke: 2px black;  
}

.topHeaderImg h1 img {

}

.topHeaderImg .headerLetter a{
  text-decoration: none;
  color: #f9d25d;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all  0.5s ease;
  width: fit-content;
  display: block;
  margin: 40px auto 0;
}

.topHeaderImg .headerLetter a img{
    width: 130px;
}

.start:hover{
    filter: brightness(1.5);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}


.topHeaderImg .headerLetter .start img.enterFinger{
    width: 45px;
    margin-top: 75px;
    margin-left: -63px;
    animation: blink 2s infinite;
    -webkit-animation: blink 2s infinite; /* Safari 用 */
    filter:none;
}

.topHeaderImg .headerLetter a img:hover{
    filter: drop-shadow(0px 0px 12px #fff);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.headerLetter .start img:first-child:hover + .enterFinger, .topHeaderImg .headerLetter .start .enterFinger:hover{
  animation: none;
  -webkit-animation: none;
}

/*
.topHeaderImg h1 a:hover img:nth-of-type(2) {
  opacity: 0;
}*/

.headerLetter a{
    position:relative;
    z-index:1;
}

.triangle_arrow {
  position: relative;
  padding-left: 30px;
}
 
.triangle_arrow::before { /* 三角形の表示設定 */
    content: "";
    margin: auto;
    position: absolute;
    top: 33px;
    bottom: 0;
    left: -2px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 23px solid #ffffff;
    animation-name: fade;
    animation-duration: 0.7s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}


.content-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
  max-width:1300px;
  margin:auto;
}

.StageTemp .content-grid {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
}


.arrow {
    width: 73px;
    height: auto;
    margin: auto 5px;
}

.StageTemp .content-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.StageTemp .stagebox{
  position: relative;
}

.StageTemp .content-item img{
  display:block;
}

.coursePage .content-item img.stageMonster{
    position:absolute;
    max-height: 109px;
    max-width: 109px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    opacity:0.6;
    filter: brightness(0);
}

.coursePage .content-item.brightImg img.stageMonster{
    filter: brightness(1);   
}

.StageTemp .content-grid{
  margin:initial;
}

.content-item img {
  max-width: 175px; /* 画像のサイズを適切に調整 */
  height: auto;
}

.swipe {
  color: blue;
  text-decoration: underline;
  position: relative;
  right: 10px;
  width: 100%;
  margin: 0px auto 0px;
  max-width: 1200px;
  height:115px;
}

.nextStageWrap{
    position: relative;
    display: flex;
    justify-content: flex-end;
    height: 100%;
    align-items: center;
}

.nextstage{
    font-family: 'Dela Gothic One';
    font-size: 1.7rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    white-space: nowrap;
    width: 380px;
    cursor:pointer;
}

.stageAKButton{
    font-family: 'Dela Gothic One';
    font-size: 1.9rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    z-index: 1;
    white-space: nowrap;
    padding: 0px 19px;
    background-color: #38c6ca;
    border: solid 5px;
    box-shadow: 0 0 0 6px white;
    border-radius: 6px;
    display:block;
}

.nextstageImg{
  max-width:380px;
}

.coursePage1, .coursePage2, .coursePage3, .coursePage4, .coursePage5 {
  display: none;
  max-width: 1200px;
  margin: 16px auto;
  position:relative;
}

.coursePage1.active, .coursePage2.active, .coursePage3.active, .coursePage4.active, .coursePage5.active {
  display: block;
}

.flexWrapper{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  /*padding: 20px;*/ /* 余白を追加して重ならないようにする */
  box-sizing: border-box;
  overflow-y:auto;
  scrollbar-width: none;
}

/* 全体のスクロールバーのスタイルを設定 */
.flexWrapper::-webkit-scrollbar,.requireInput::-webkit-scrollbar {
  width: 14px; /* スクロールバーの幅 */
  height: 12px; /* 水平スクロールバーの高さ */
}

/* スクロールバーのトラック（部分）のスタイルを設定 */
.flexWrapper::-webkit-scrollbar-track,.requireInput::-webkit-scrollbar-track {
  background: #ffffff00; /* トラックの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
}

/* スクロールバーのハンドル（つまみ）のスタイルを設定 */
.flexWrapper::-webkit-scrollbar-thumb,.requireInput::-webkit-scrollbar-thumb {
  background: #00d2ff; /* ハンドルの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
  border: 3px solid #ffffff00; /* トラックと同じ色のボーダーを追加 */
}

/* ハンドルがホバーされた時のスタイル */
.flexWrapper::-webkit-scrollbar-thumb:hover,.requireInput::-webkit-scrollbar-thumb:hover {
  background: #94ecff; /* ホバー時の背景色 */
}

.flexWrapper.smallRow{
  gap:10%;
}

.slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 1; /* 要素が縮小するように設定 */
  overflow-y: auto;
  overflow-x: hidden;
}

/* 全体のスクロールバーのスタイルを設定 */
.slider-container::-webkit-scrollbar,.requireInput::-webkit-scrollbar {
  width: 14px; /* スクロールバーの幅 */
  height: 12px; /* 水平スクロールバーの高さ */
}

/* スクロールバーのトラック（部分）のスタイルを設定 */
.slider-container::-webkit-scrollbar-track,.requireInput::-webkit-scrollbar-track {
  background: #ffffff00; /* トラックの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
}

/* スクロールバーのハンドル（つまみ）のスタイルを設定 */
.slider-container::-webkit-scrollbar-thumb,.requireInput::-webkit-scrollbar-thumb {
  background: #00d2ff; /* ハンドルの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
  border: 3px solid #ffffff00; /* トラックと同じ色のボーダーを追加 */
}

/* ハンドルがホバーされた時のスタイル */
.slider-container::-webkit-scrollbar-thumb:hover,.requireInput::-webkit-scrollbar-thumb:hover {
  background: #94ecff; /* ホバー時の背景色 */
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.coursePage {
  min-width: 100%;
  box-sizing: border-box;
}

.flexWrapper h1 {
  margin-bottom: 20px;
  flex-shrink: 1; /* 要素が縮小するように設定 */
}

.stageSpan{
    font-family: 'Dela Gothic One';
    font-size: 2.3rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
    padding: 5px;
}

.courseTemp .stageSpan{
    margin-top: 51px;
}

.content-item{
  position:relative;
}

.content-item a{
  text-decoration:none;
}

.coursePage. content-item a{
  cursor:pointer;
}

.CourseHeaderImg{
  max-width:480px;
}

.marginLeft45{
  margin-left:45px;
}

.footerCharsWraper{
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin-top:15px;
}

.footerChars{
    display: flex;
    width: 100%;
    gap:14px;
}

.hiro,.hina{
    background-color: #ffffffba;
    border-radius: 100px;
    border: solid 2px;
    width: 110px;
    height: 110px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 1px #FF0000, 0 0 0 3px #FF7F00, 0 0 0 4px #FFFF00, 0 0 0 5px #00FF00, 0 0 0 6px #0000FF;
    cursor:pointer;
    margin: 0 10px 6px;
}

.hiro img,.hina img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hiro img{
    max-width: 80px;
}

.certificate-btn {
    cursor: pointer;
    margin: 0 10px 6px;
    transition: transform 0.2s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    align-self: center;
}

.certificate-btn:hover {
    transform: scale(1.05);
}

.certificate-btn-img {
    width: 110px;
    height: auto;
}

.hina img{
    max-width: 140px;
}

@keyframes monsterEntry {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.monsterBoxFlex.getcard {
    animation: monsterEntry 1.2s ease-out forwards;
    position:absolute;
    z-index:10;
    left:0;
    right:0;
}

.getcard .monsterDesName{
  margin: -40px auto 0px;
}

.getmonster{
  cursor:pointer;
}

.courseFooter{
    position: absolute;
    bottom: 0px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    right: 0;
    left: 0;
    pointer-events: none;
}

.courseListWrap .courseFooter{
  bottom:20px;
}

.courseFooter .hiro{
    pointer-events:auto;
}

/* SO君リンク（ゴールドクリア後に表示・コース画像右側） */
.courseListWrap {
    position: relative;
}

.so-teacher-link {
    position: absolute;
    right: calc(50% + 230px);
    top: 62%;
    transform: translateY(-50%) scaleX(-1);
    z-index: 1;
    text-decoration: none;
}

.so-teacher-link img {
    width: 230px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.stageAnswer{
    margin-left: auto;
    position: relative;
    display: flex;
    align-self: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.stageHeaderWrapper{
    width: 100%;
    max-width: 1400px;
    position: relative;
}

.stageAKButton.answer{
    background-color:#ff3737;
    cursor:default;
}

.stageAKButton.answer a{
    color:black;
    text-decoration:none;
}

.returnWrapper.pairsWrapper{
  display: flex;
  top: 50%;
  transform: translateY(-50%);
  gap: 30px;
  right: 37px;
}

.returnWrapper{
  position: absolute;
  top: 10px;
  right: 10%;
}

.return{
  position: relative;
  display: inline-block;
}

.return a{
  text-decoration:none;
}

.return img{
  max-width: 92px;
  display:block;
}

.prepage a .toCourseList{
    margin-top: -38px;
}

.pairsWrapper .return img{
  max-width: 74px;
  position:initial;
  margin: auto;
}

.toCourseList{
    font-family: 'Dela Gothic One';
    font-size: 1.9rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -100%);
    white-space: nowrap;
    display: block;
    line-height:1;
}

.pairsWrapper .toCourseList,
.pairsWrapper .prepage a .toCourseList{
  font-size:1.5rem;
  transform:initial;
  position:initial;
  margin-top: -27px;
}

.nextpage .stageSpan{
  font-size: 1.6rem!important;;
}

.nextpage .contentImgLetterWrap img{
    max-width: 88px;
    opacity: 0.8;
}

#videoModal iframe {
    width: 80vw;
    height: 100%;
}

.bottomHina{
    line-height:0;
    cursor:pointer;
    width: 153px;
    position: relative;
}

.videoBottom{
    display:flex;
    align-items:center;
    gap: 29px;
    height: 100px;
    margin-bottom: -13px;
}

.bottomScratch{
    width:153px;
}

.bottomScratch a{
    line-height:0;
    display:flex;
    flex-flow: column;
    text-decoration: none;
}

.bottomScratch span{
    font-family: 'Dela Gothic One';
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    font-size: 1.2rem;
    line-height: 1.1;
}

.skip{
    cursor:pointer;
    position: relative;
    width: 110px;
}

.skip img{
    position: absolute;
    display: block;
    top: 50%;
    transform: translateY(-50%);
}

.skip p{
    position: absolute;
    width: 100%;
    text-align: center;
    color: #000000;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Dela Gothic One';
    font-size: 1.2rem;
    line-height: 1.2;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    white-space: nowrap;
    padding-right: 10px;
}

.bottomHina img{
    max-width: 153px;
    position: absolute;
    display: block;
    top: 50%;
    transform: translateY(-50%);
}

.bottomHina p{
    position: absolute;
    width: 100%;
    text-align: center;
    color: #000000;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Dela Gothic One';
    font-size: 1.1rem;
    line-height: 1.2;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    white-space: nowrap;
    margin-top: 31px;
}

/* Guidebook Button Styles - same style as bottomHina */
.bottomGuidebook{
    line-height:0;
    cursor:pointer;
    width: 153px;
    position: relative;
}

.bottomGuidebook img{
    max-width: 110px;
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bottomGuidebook p{
    position: absolute;
    width: 100%;
    text-align: center;
    color: #000000;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    letter-spacing: -0.05em;
    white-space: nowrap;
    margin-top: 31px;
    font-family: 'Dela Gothic One';
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    font-size: 1.2rem;
    line-height: 1.1;
}

.bottomHint{
    line-height:0;
    cursor:pointer;
    width: 153px;
    position: relative;
}

.bottomHint img{
    max-width: 110px;
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bottomHint p{
    position: absolute;
    width: 100%;
    text-align: center;
    color: #000000;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    letter-spacing: -0.05em;
    white-space: nowrap;
    margin-top: 31px;
    font-family: 'Dela Gothic One';
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    font-size: 1rem;
    line-height: 1.1;
}

.modal,.hiroModal {
    display: flex; /* デフォルトでは非表示 */
    align-items: center;
    justify-content: center;
    position: fixed; /* 画面に固定 */
    z-index: 3; /* コンテンツの上に表示 */
    left: 0;
    top: 0;
    width: 100%; /* 全幅 */
    height: 100%; /* 全高 */
    /*overflow: auto; /* 必要に応じてスクロール */
    background-color: rgb(0,0,0); /* 背景色 */
    background-color: rgba(0,0,0,0.8); /* 半透明の黒 */
}

.courseTemp .modal{
    background-color:initial;
}

.modal-content {
    height: 100%;
    max-height:550px;
    /*height: calc(100vh - 140px);*/
    aspect-ratio: 16 / 9;
    margin: 20px 0 5px;
    position:relative;
}

.modal.forWarmup{
    background-color: rgba(0,0,0,0.6); /* 半透明の黒 */   
}

.vjs-tech{
    cursor:pointer;
}

#videoModal{
    flex-direction: column;
    gap: 12px;
    padding: 13px 0px;
    max-height: 100%;
    overflow-y: auto;
}

#videoModal .modal-content {
    height: auto;
    width: 100%;
    max-width: min(978px, calc((100vh - 178px) * 16 / 9));
    min-height: 0;
    flex-shrink: 1;
    align-self: center;
}

.vjs-button>.vjs-icon-placeholder:before{
    font-size: 2.8em;
    line-height: 1.1;
}

.vjs-quality-selector .vjs-button>.vjs-icon-placeholder{
    font-size: 12px;
    margin-bottom: -2px;
}

.vjs-button.vjs-play-control>.vjs-icon-placeholder:before{
    font-size: 3.2em;
    line-height: 1;
}

.video-js .vjs-play-progress,.video-js .vjs-volume-level{
    border-radius: 27px;
    background-color:#74d0fc;
}

.js-focus-visible .vjs-menu li.vjs-selected:hover, .vjs-menu li.vjs-selected, .vjs-menu li.vjs-selected:focus, .vjs-menu li.vjs-selected:hover{
    background-color:#74d0fc;
}

.video-js .vjs-load-progress div,.video-js .vjs-load-progress{
    border-radius: 27px;
}

.video-js .vjs-progress-holder{
    height: .4em;
}

.video-js .vjs-play-progress:before{
    line-height: .45em;
}

.vjs-playback-rate .vjs-playback-rate-value{
    font-size: 1.3em;
    line-height: 2.3;
}

/* 全体のスクロールバーのスタイルを設定 */
.video-js ul::-webkit-scrollbar,.requireInput::-webkit-scrollbar {
  width: 8px; /* スクロールバーの幅 */
  height: 8px; /* 水平スクロールバーの高さ */
}

/* スクロールバーのトラック（部分）のスタイルを設定 */
.video-js ul::-webkit-scrollbar-track,.requireInput::-webkit-scrollbar-track {
  background: transparent; /* トラックの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
}

/* スクロールバーのハンドル（つまみ）のスタイルを設定 */
.video-js ul::-webkit-scrollbar-thumb,.requireInput::-webkit-scrollbar-thumb {
  background: #232323; /* ハンドルの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
  /*border: 3px solid #74d0fc; /* トラックと同じ色のボーダーを追加 */
}

/* ハンドルがホバーされた時のスタイル */
.video-js ul::-webkit-scrollbar-thumb:hover,.requireInput::-webkit-scrollbar-thumb:hover {
  background: #000; /* ホバー時の背景色 */
}

.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{
    height:9em;
}

.video-js .vjs-volume-vertical{
    bottom:9em;
}

#videoModal .video-js {
    width: 100% !important;
    height: 100% !important;
}

.vjs-volume-bar.vjs-slider-vertical{
    height:6em;
}

.hiroStatusWrapper{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap:50px;
}

.hiroImgWrapper{
  position:relative;
}

.scrachLV{
    font-family: 'Dela Gothic One';
    font-size: 2.4rem;
    color: #ffdd00;
    text-decoration: none !important;
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 3px 3px 2px #000000, -3px 3px 2px #000000, 3px -3px 2px #000000, -3px -3px 2px #000000, 3px 0px 2px #000000, 0px 3px 2px #000000, -3px 0px 2px #000000, 0px -3px 2px #000000;
}

.scrachLV .lvLetter{
  font-size: 4.2rem;
  text-shadow: 5px 5px 1px #000000, -5px 5px 1px #000000, 5px -5px 1px #000000, -5px -5px 1px #000000, 5px 0px 1px #000000, 0px 5px 1px #000000, -5px 0px 1px #000000, 0px -5px 1px #000000;
}

.hiroStatusImg{
  height: 70vh;
  height: 70dvh;
}

.monsterBoxWrapper{
  position:relative;
  cursor:pointer;
}

.monsterBoxWrapper img{
  height:35vh;
  height:35dvh;
}

.monsterBoxLetter{
  white-space: nowrap;
  font-size: 1.7rem;
  top: 78%;
  left: 50%;
  transform: translate(-50%, -78%);
  font-family: 'Dela Gothic One';
  color: #000;
  text-decoration: none !important;
  text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
  position: absolute;

}

.monsterBoxBk{
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: url("images/background/monsterbox.jpg");
    background-size: cover;
    background-position: center;
}

.monsterDesRight{
  width:69%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.monsterDesLetter{
    font-family: 'M PLUS Rounded 1c';
    font-size: 1.6rem;
    font-weight: bold;
    padding: 10px 24px;
    margin-top: 75px;
    line-height: 1.6;
    text-align: left;
}

.monsterDesLetter--small{
    font-size: 1.45rem;
    margin-top: 70px;
}

.close {
    position: absolute;
    top: 26px;
    right: 30px;
    cursor: pointer;
    z-index:1;
}

.modal-content .close{
    top: -21px;
    /*
     * ふだんは動画の右上の角から外へ31pxはみ出す丸。ただし画面の左右の余白が狭いと
     * 画面の外へ切れる（iPad 横 1024×768 で右端8pxが欠けていた。2026-09-25 実測）。
     * 余白が狭いときだけ「画面の右端から8px内側」まで寄せる（100% は .modal-content の幅、
     * 動画は画面の中央にあるので (100% - 100vw) / 2 が右の余白のマイナス）。
     * ⚠️ これ以上内側へは寄せないこと。動画の内側の右上には端末別動画の切り替え
     *    （VideoDeviceSwitch.vue、right:44px）があり、1024px 幅でも3pxしか空かない。
     */
    right: max(-31px, calc((100% - 100vw) / 2 + 8px));
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.descClose{
    margin-top: -59px;
    margin-right: -60px;
    z-index:1;
}

.monster-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
    width: 1140px;
    margin: 0 auto;
    justify-items: center;
}

.monster-grid-item {
    height: 181px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 163px;
    border: solid 7px #000;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 6px;
}

.monster-grid-item img{
  height:135px;
}

.boxMonsterName{
    font-family: 'Dela Gothic One';
    font-size: 1.3rem;
    line-height: 1.2;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    white-space: nowrap;
}

/* 8文字以上の長い名前（例: ５９ゴッドバロン、ロート（赤ちゃん））はカード幅に収まるよう縮小 */
.boxMonsterName--long{
    font-size: 1rem;
}

.nakamaMonster span{
    margin: auto;
    background: #ffec00;
    font-family: 'Dela Gothic One';
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    border: solid 9px #000;
    font-size: 2.5rem;
    border-radius: 15px;
    padding: 16px 27px 6px;
}

.monster-grid-item img.questionImg{
  max-width:166px;
  height:auto;
}

.nakamaMonster rt {
    width: 80%;
    text-align: center;
    font-size: 0.4em;
    line-height: 1;
}

.nakamaMonster ruby {
    line-height: 1;
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    vertical-align: top;
}

.stagebox{
  cursor:pointer;
}

.stagebox.unselectable{
      filter: brightness(55%);
      cursor:initial;
}

.stagebox.unselectable.clear{/*レバルアップ済の場合はこれ*/
      /*filter: initial;*/ 
      cursor:initial;
}

.stagebox.clear .stageSpan{
      /*color:red;*/
}

.stagebox > img{
    filter: drop-shadow(0px 0px 2px black);
}

.coursePage .unselectable{
      cursor:initial; 
}

.coursePage .unselectable img,.coursePage .unselectable .stageSpan{
      filter: brightness(55%);    
}

.monsterWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.monsterBoxFlex{
    max-width: 1200px;
    display: flex;
    margin: auto;
    height: 100vh;
    height: 100dvh;
    justify-content: space-around;
    align-items: center;
}

.monsterBoxFlex2{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    gap: 10px;
    max-height: 700px;
    height: 100vh;
    height: 100dvh;
}

.nakamaMonster{
  margin-top:20px;
}

/*モンスターボックスキャラの背景色*/

/*淡いオレンジ　キュン、ドラコ、ラパン、リオン*/
.bkcolor1{
  background-image: linear-gradient(to right, #ffde59, #ff914d);
}
/*黒→青　シェル、オルト*/
.bkcolor2{
  background-image: linear-gradient(to right, #000000, #3533cd);
}
/*黒→灰色　ユーカリアス、パン*/
.bkcolor3{
  background-image: linear-gradient(to right, #000000, #737373);
}
/*赤→オレンジ　ロート*/
.bkcolor4{
  background-image: linear-gradient(to right, #ff2500, #ff883a);
}
/*黒→土色　ビートル*/
.bkcolor5{
  background-image: linear-gradient(to right, #000000, #c6863b);
}
/*水色→青　ビル*/
.bkcolor6{
  background-image: linear-gradient(to right, #44d2e4, #23319a);
}
/*薄い水色→薄い青　プテ、ゼーブル*/
.bkcolor7{
    background-image: linear-gradient(to right, #cdffd8, #94b9ff);
}
/*薄いピンク　フィオーレ　イスキイロ*/
.bkcolor8{
    background-image: linear-gradient(to right, #fff7ad, #ffa9f9);
}
/*黒→茶色　ポム*/
.bkcolor9{
    background-image: linear-gradient(to right, #000000, #c89116);
}
/*水色→薄緑　グラース*/
.bkcolor10{
    background-image: linear-gradient(to right, #0cc0df, #ffde59);
}
/*紫→水色　マリーナ*/
.bkcolor11{
    background-image: linear-gradient(to right, #8c52ff, #5ce1e6);
}
/*水色→緑　ゴヒ*/
.bkcolor12{
    background-image: linear-gradient(to right, #0097b2, #7ed957);
}
/*青→紫　ルカヌス*/
.bkcolor13{
    background-image: linear-gradient(to right, #004aad, #cb6ce6);
}


.monsterContent {
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 20px;
    border: solid 8px #000;
    position: relative;
    animation: expandAndMove 1s ease-in-out forwards; /* アニメーション適用 */
}

@keyframes expandAndMove {
    0% {
        transform: scale(0) rotate(0deg) translate(50vw, 50vh);
        animation-timing-function: ease-out; /* 開始時は急速にスタート */
    }
    20% {
        transform: scale(0.5) rotate(90deg) translate(60vw, 40vh);
        animation-timing-function: ease-in-out; /* この段階ではスムーズに遷移 */
    }
    50% {
        transform: scale(0.7) rotate(180deg) translate(30vw, 40vh);
        animation-timing-function: ease-in-out;
    }
    80% {
        transform: scale(0.9) rotate(270deg) translate(40vw, 50vh);
        animation-timing-function: ease-in-out;
    }
    100% {
        transform: scale(1) rotate(360deg) translate(50vw, 50vh);
        animation-timing-function: ease-in; /* 最後はゆっくりと停止 */
    }
}


@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.topHeaderImg .headerLetter a:hover{
    text-shadow: 0px 0px 15px #ffffff;
    color: #fff;
}

.sfwd-courses-template-default .article-footer,.sfwd-courses-template-default .under-entry-content,.sfwd-courses-template-default .date-tags{
  display: none;
}

.site-name-text{
  font-size: initial;
}

.logo-image{
  padding: 10px 0 0 0;
  line-height: 0.8;
}

.course_img{
  width: 600px;
  margin: 50px auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.course_img img:nth-child(2){
  cursor: pointer;
  position: absolute;
  top: 73px;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 1s;
}
.course_img img:hover:nth-child(2){
  opacity: 0;
  transition: opacity 1s;
}

.container{
  background-size: 659px;
  background-image: url("../../uploads/2023/01/vecteezy_colorful-abstract-geometric-seamless-pattern-background_15598127.jpg");
  background-color: rgba(255,255,255,0.7);
  background-blend-mode: lighten;
}

.page-template-stage-php .learndash-wrapper .ld-progress{
  margin: 0;
}

.page-template-stage-php .learndash-wrapper .ld-progress.ld-progress-inline{
  flex-direction: column;
}

.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-price{
  font-size: 21px!important;
}

.sfwd-courses-template-default h1.entry-title{
  max-width: 500px;
  margin: 0 auto;
  margin-top: -75px;
  padding: 0;
}

.sfwd-courses-template-default .content-in{
  margin-top: 55px;
}

.sfwd-courses-template-default h1.entry-title:before{
  content: none;
}

.sfwd-courses-template-default h1.entry-title:after{
  content: none; 
}

.page-template-stage .main,.page-template-stage .sidebar,.sfwd-courses-template-default .main,.sfwd-courses-template-default .sidebar{
  border: 8px double #555;
  background-color: #ffffffc7;
}

.course_msg{
  position: absolute;
  top: -24px;
  right: 6px;
}

.course_msg img{
  max-width: 100px;
}

.course_msg_fukidasi{
  float: left;
  position: relative;
  padding: 13px 18px;
  background-color: #d9d1ff;
  border: 2px solid #6b6b6b;
  border-radius: 27px;
  margin-top: 36px;
  margin-right: 11px;
}

.course_msg_fukidasi::before{
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  right: -15px;
  top: 24px;
  border-left: 15px solid #6b6b6b;
  border-top: 8px solid transparent;
  border-bottom: 9px solid transparent;
}

.course_msg_fukidasi::after{
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  right: -12px;
  top: 24px;
  border-left: 15px solid #d9d1ff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.customize-support .ld-section-heading h2{
  display: none;
}

body.public-page, .content .main, .navi{
  background-color:initial;
}

.topExplain{
    background-color: #fff;
    border-radius: 12px;
    border: solid 7px;
    margin: -69px auto 0px;
    padding: 70px 24px 0px;
    font-size: 23px;
    font-weight: 900;
    font-family: 'M PLUS Rounded 1c';
    width: 80%;
}

.topExplainWrap h2{
  text-align:center;
}

.topExplainWrap h2 img{
  max-width:500px;
}



.topExplainWrap{
    font-size: 22px;
    margin: auto;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.rasuboWaku{
  text-align:right;
  margin-top: -59px;
  margin-right: 35px;
}

.rasuboWaku img{
  width: 260px;
}

.forCenter{
  margin-top:-73px;
}

.courseImages {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* 親要素の高さを設定 */
  height: 100dvh; /* 親要素の高さを設定 */
}

.courseImages img {
  margin: 10px 0; /* 各画像の間にマージンを追加 */
  max-width: 400px; /* 画像の最大幅を設定 */
  height: auto; /* 画像の高さを自動調整 */
}

.story{
  font-size:2.2rem;
}

.contentImgLetterWrap.story img,.contentImgLetterWrap.lvupAndMons img{
  max-width:61px;
  opacity:0.7;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contentImgLetterWrap.story.celebrate img{
    max-width:100px;
}

/* ストーリー扱いだがキャラ画像を通常課題と同じ大きさで見せる場合
   （例: ゴールド⑩「４(1)」＝storyだが画像はヒロ） */
.contentImgLetterWrap.story.normalImg img{
    max-width:134px;
    opacity:0.6;
    top:auto;
}

.contentImgLetterWrap.lvupAndMons  img{
    max-width:108px;
}

.contentImgLetterWrap.story .stageSpan,.contentImgLetterWrap.lvupAndMons .stageSpan{
    margin-top:32px;
}

.contentImgLetterWrap img{
    max-height: 110px;
    max-width: 134px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stageSpan img{
    max-width:95px;
    filter: brightness(0.6);
    opacity: 0.6;
}

.contentImgLetterWrap{
    line-height: 1.5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contentImgLetterWrap .stageSpan{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    line-height:1.2;
    margin-top: 16px;
}

.getmonster .contentImgLetterWrap img, .getMonsterbox.contentImgLetterWrap img, .videoFirstEvo .contentImgLetterWrap img, .videoEvo .contentImgLetterWrap img{
  max-width: 100px;
  filter: brightness(1.5);
  opacity: 0.6;
}

/* 未所持のモンスターはシルエット。getmonster は「仲間にする」演出の完了（capturedMonsters 追加）まで .unget が付く */
.unselectable.getmonster .contentImgLetterWrap img, .unselectable .getMonsterbox.contentImgLetterWrap img, .unget.getmonster .contentImgLetterWrap img, .unget.videoFirstEvo .contentImgLetterWrap img, .unget.videoEvo .contentImgLetterWrap img{
  filter: brightness(0);
}

.stageSpan.stageEnd{
  font-size: 2rem;
  line-height: 1.2;
}

.monsterDesWrap{
    background-color: #fff;
    height: 440px;
    width: 750px;
    border-radius: 13px;
    border: solid 8px #000;
    display: flex;
    position: relative;
}

.getcard .monsterDesWrap{
    max-width: 940px;
    margin: auto;
    width: auto; 
    padding: 10px 7px;
    height:480px;
}

.getcard .monsterDesName{
      margin-top: -42px;
}

.monsterDesNameIn.newmonsterName{
  background-image: linear-gradient(to right, #c5c5c5, #ffffff);
  padding: 8px 20px 0px;
  font-size: 2.5rem;
}

.monsterDesNameIn.newmonsterName rt{
    font-size: 1.2rem;
}

.newmonsterLeft{
    position: relative;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 7px #000;
    border-radius: 15px;
    overflow: hidden;
    width: auto;
    max-width: 320px;
    margin: 44px 10px 20px;
    height: 87%;
}

.arrow-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.arrow-container img{
  max-width:130px;
  cursor:pointer;
}


@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }
}

.downloadMonster{
    line-height: 1.1;
    border-radius: 53px;
}

.wrapDownloadMonster{
  display:flex;
  justify-content: center;
}

.newmonsterLeft div{
    font-family: 'Dela Gothic One';
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    z-index: 1;
    white-space: nowrap;
    padding: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.4rem;
    line-height: 1.2;
    bottom: 0;
}

.monsterLeftWrap{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hiroModal .monsterLeftWrap{
    width: 39%;
    height: 100%;
}
.hiroModal .monsterLeftWrap .monsterDesImg{
    width: 100%;
    height: 100%;
}
.hiroModal .monster-shop-link{
    margin-bottom: 25px;
}
.monster-shop-link{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 3px 10px 3px 7px;
    background: linear-gradient(135deg, #ff9f43, #f7971e);
    border: 2px solid #e67e22;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.monster-shop-link:hover{
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(246,121,0,0.35);
}
.monster-shop-icon{
    width: 24px;
    height: auto;
}
.monster-shop-text{
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.0rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.monsterDesName{
    position: absolute;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.monsterDesNameIn{
    font-family: 'Dela Gothic One';
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    font-size: 2.7rem;
    border: solid 7px #000;
    border-radius: 15px;
    width: 380px;
    margin: -58px auto 0px;
    white-space: nowrap;
}

.monsterDesImg{
    width: 39%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.pointer{
  cursor:pointer;
}

.downloadMonster{
    margin: 0px 10px 15px 0;
    align-self: flex-end;
    background-color: #ff3f3f;
    font-family: 'Dela Gothic One';
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    font-size: 1.6rem;
    padding: 7px 11px;
    border: solid 6px #000;
    border-radius: 36px;
    cursor:pointer;
}

.hiroModal .downloadMonster{
    font-size: 1.4rem;
    padding: 7px 9px;
}

.background-image {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
}
.overlay-image {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 190px;
}
.narration {
    position: absolute;
    bottom: 10px;
    width: 507px;
    font-size: 1.4rem;
    color: black;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    font-family: "M PLUS Rounded 1c";
    background-color: #ffffff82;
    font-weight: bold;
    border: solid 3px #000;
    border-radius: 7px;
}

.courseListWrap .narration{
    padding: 38px 12px;
    font-size: 1.6rem;
    background-color: #ffffffc7;
}

.courseListWrap .animation-container{
    background-color: rgba(0, 0, 0, 0.6);
}

.animation-container{
    position: fixed; /* absoluteだと#scroll-wrapのスクロールで画面外に流れるためビューポート固定 */
    top: 0;
    left: 0;
    z-index: 3;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0,0,0,0.8); /* 半透明の黒 */
}

.anime-background{
    position: absolute;
    width: 800px;
    height: 500px;
    background-size: cover;
    background-position: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    outline: none; /* フォーカス時のアウトラインを非表示にする */
    cursor: pointer;
    height: fit-content;
}

.courseTemp .anime-background{
    background-color: #fff;    
}

#lvmovieLetter{
    font-size: 5rem;
    margin-top:26px;
}

#lvmovieJpLetter{
    font-size:2rem;
}

#lvmovieLetter2{
    font-size: 3.7rem;
}

#lvmovieJpLetter2{
    font-size:2rem;    
}

.lvmovieUpper{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    margin-top: 54px;
}

.lvmovieDown{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 148px;
    margin-top: 91px;   
}

.lvml{
    font-family: "Alfa Slab One", serif;
    color: #ffd72a;
    text-shadow: 4px 4px 2px #6600ff, -4px 4px 2px #6600ff, 4px -4px 2px #6600ff, -4px -4px 2px #6600ff, 4px 0px 2px #6600ff, 0px 4px 2px #6600ff, -4px 0px 2px #6600ff, 0px -4px 2px #6600ff;
    line-height:1;
}

.lvjpml{
    font-family: 'Dela Gothic One';
    color:#000;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    line-height:1;
}

.serifuWrap{
    display: flex;
    gap: 13px;
    margin: 19px 0px;
    justify-content: center;
}

.serifuWhiteWrap{
    width: 84%;
    background: #fff;
    height: auto;
    border-radius: 32px;
    text-align: left;
    padding: 5px 17px;
}

.hiroSerifuWrap{
    position: relative;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.userNickname{
    position: relative;
    z-index: 1;
    margin-top: -24px;
    width: 100%;
    line-height: 1.1;
    font-family: 'Dela Gothic One';
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    text-align: center;
}

.serifuWrap .hiro,.serifuWrap .hina{
    width: 72px;
    height: 72px;
    cursor: initial;
}

.serifuWrap .hiro img{
    max-width: 91px;
}

.serifuWrap .hina img{
    max-width: 95px;
}

.wrapInputForm{
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.dots {
  display:flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3498db;
  margin: 0 5px;
  opacity: 0;
  animation: fadeInOut 2s infinite;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.5s;
}

.dot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 1; }
  75% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes appearAndFloat {
  0% {
    transform: translateY(-7px);
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
  100% {
    transform: translateY(-7px);
    opacity: 1;  /* アニメーション終了時にも完全に見える状態を保持 */
  }
}

.character {
  display: inline-block;
  opacity: 0;
  animation: appearAndFloat 0.5s ease-in-out;
  animation-fill-mode: forwards;
  margin-right: 3px;
}

.words{
    font-size: 3.5rem;
    color: #fff;
    font-family: "M PLUS Rounded 1c";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

#particles-js{ 
    position:fixed;/*描画固定*/
    z-index:-1;/*描画を一番下に*/
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    /*background-color:#f3f3f3;/*背景色*/
}

#particle-wrapper{
    position: relative;/*描画を#particles-jsよりも上にするためposition:relative;を指定*/
    z-index: 1;/*z-indexの数字を大きくすることで描画を#particles-jsよりも上に*/
    width:100%;
    height: 100%;
}

.ai-container{
            position: fixed; /* absoluteだと#scroll-wrapのスクロールで画面外に流れるためビューポート固定 */
            top: 0;
            left: 0;
            z-index: 4;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background-color: rgba(0,0,0,0.8); /* 半透明の黒 */
            font-family: 'M PLUS Rounded 1c';
}

.aiWrapper{
    height: 87vh;
    height: 87dvh;
    /*max-height: 700px;*/
    width: 68%;
    background-color: #e3e3e3;
    border-radius: 21px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 18px;
}

.ai-title{
    font-size: 1.4rem;
    font-weight: bold;
    width: 411px;
    position: relative;
    height: 89px;
    margin: -56px auto 23px;

}

.ai-title div,.ai-title2 div{
    position: absolute;
    margin-top: 9px;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 298px;
    margin-left: -9px;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.ai-title2{
    font-size: 1.4rem;
    margin: 3px 0px 17px;
    font-weight: bold;
    border-radius: 18px;
    width: 421px;
    margin: -56px auto 0;
    height: 89px;
    position: relative;
}

.kadai-wrap{
            display: flex;
            justify-content: space-around;
}

.kadaiButton{
    border-radius: 10px;
    font-family: 'M PLUS Rounded 1c';
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    width: 148px;
    position: relative;
    height: 51px;
}

.kadaiButton img{
    width: 100%;
    z-index: -1;
    position: absolute;
    display: block;
}

.kadaiButton div{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    margin-left: -9px;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.kadaiButton.selected img{
    filter: brightness(1.3) drop-shadow(0px 0px 10px #FFFF99);
    transition: filter 0.3s ease-in-out;
}

.textForm{
    margin: 20px 15px;
    padding: 5px 10px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap:10px;
    height: calc(100% - 129px);
    overflow-y: hidden;
}

.requireInput {
    box-sizing: border-box;
    width: 100%;
    padding: 1px 8px 0px;
    font-size: 1.1rem;
    background-color: #fff;
    line-height: 1.2;
    resize: none;
    border: solid 3px;
    min-height: 48px;
    max-height: 164px;
    overflow-y: hidden;
}

.textFromBottom{
  display: flex;
  position: relative;
  margin-bottom: -58px;
  transition: margin-bottom 0.3s ease-in-out;
}

.textFromBottom-active {
  margin-bottom: 0;
}

.textFromBottom input{
    width: 100%;
    border: solid 3px #000;
    border-radius: 6px;
    background-color: #c6a4fb;
    padding: 0px 10px;
}

.textFromBottomInput::placeholder{
    color:#e8d4ff;
}

.requireButton{
    background-color: #f66;
    padding: 3px 5px;
    font-weight: bold;
    border: solid 3px #000;
    color:#000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 114px;
    height: 48px;
}

.requireButton:disabled{
    background-color:#9a6363;
    cursor:default;
}

.popup{
    position: absolute;
    background-color: #ffcbcb;
    border: 1px solid #d3d3d3;
    padding: 7px;
    border-radius: 10px;
    top: -5px;
    left: 52px;
    font-size: 16px;
    color: red;
}

.error-popup.popup{
    top: -120px;
}

.popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 44px;
    margin-left: 19px;
    border-width: 13px;
    border-style: solid;
    border-color: #ffcbcb transparent transparent transparent;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity 0.4s;
}
.fade-enter-from, .fade-leave-to {
  opacity: 0;
}
.fade-enter-to, .fade-leave-from {
  opacity: 1;
}

textarea.requireInput:focus-visible {
    outline: none;
}

textarea.requireInput::placeholder {
  font-size: 1.1rem;   /* フォントサイズ */
  top:50%;
  margin-top:110px;
  vertical-align:middle;
}

.QA-page .requireInput:disabled{
    background-color: #d4d4d4;
}

.first-ai{
    height:100%;
}

.QA-page{
    height:inherit;
}

.QA-page .textForm{
    height: calc(100% - 54px);
    gap:14px;
}

.warmup .first-ai .textForm{
    height: calc(100% - 78px);
}

.serifuAllWrap{
    height:100%;
    overflow-y: auto;
}

.QA-page .requireInput{
    height:48px;
    background-color: #fff;
    border-radius: 7px;
    resize: none;
    max-height: 164px;
}

.wrapCat{
    background-color: #8d46ff;
    border: solid 3px;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 3px;
    height: 48px;
}

.wrapCat img{
    width: 40px;
    display: block;
}

/* 全体のスクロールバーのスタイルを設定 */
.serifuAllWrap::-webkit-scrollbar,.requireInput::-webkit-scrollbar {
  width: 12px; /* スクロールバーの幅 */
  height: 12px; /* 水平スクロールバーの高さ */
}

/* スクロールバーのトラック（部分）のスタイルを設定 */
.serifuAllWrap::-webkit-scrollbar-track,.requireInput::-webkit-scrollbar-track {
  background: #f0f0f0; /* トラックの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
}

/* スクロールバーのハンドル（つまみ）のスタイルを設定 */
.serifuAllWrap::-webkit-scrollbar-thumb,.requireInput::-webkit-scrollbar-thumb {
  background: #c0c0c0; /* ハンドルの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
  border: 3px solid #f0f0f0; /* トラックと同じ色のボーダーを追加 */
}

/* ハンドルがホバーされた時のスタイル */
.serifuAllWrap::-webkit-scrollbar-thumb:hover,.requireInput::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0; /* ホバー時の背景色 */
}

.ai-container .close{
    top: -21px;
    right: -28px;
}

.clear-icon{
    cursor: pointer;
    margin-left: -37px;
    font-size: 35px;
    line-height: 1;
}

.page-template-playScrachMonster #content-in.wrap{
    width:100%;
}

.page-template-playScrachMonster #content.content{
    margin:0;
}

.page-template-playScrachMonster .main{
    border:none;
}

.topTitle{
    padding-top: 15px;
    line-height: 0;
}

.topTitle .title{
    line-height: 1;
    color: #fff;
    font-family: "Alfa Slab One";
    font-size: 7rem;
    font-weight: 100;
    text-shadow: 6px  6px 2px #000000,-6px  6px 2px #000000,6px -6px 2px #000000,-6px -6px 2px #000000,6px  0px 2px #000000,0px  6px 2px #000000,-6px  0px 2px #000000,0px -6px 2px #000000;
}

.topTitle .jpTitle{
    font-size: 3rem;
    font-family: 'Dela Gothic One';
    color: #000;
    line-height: 1;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    letter-spacing: 3px;
    font-weight: 100;
}

.stageAnswer .nextstage{
    display: block;
    margin-top:-11px;
}

.readyButton{
    line-height:0;
}

.warmupLink, .openingMvLink{
    pointer-events: auto;
    position: relative;
    width: 135px;
    height: 77px;
    border: solid 3px #000;
    border-radius: 3px;
    overflow: hidden;
}

/* タイルのラッパー。吹き出しの包含ブロックをoverflow:hiddenの外に持つための箱。
   align-self指定が無いと .footerChars のstretchで箱が伸び、吹き出し位置がずれる */
.openingMvWrap{
    position: relative;
    margin-left: auto;
    align-self: flex-start;
}

.openingMvLink{
    cursor:pointer;
}

.warmupLink img, .openingMvLink img{
    position: absolute;
    left: -50%;
    transform: translateX(50%);
    height: 77px;
}

.warmupLink div ,.openingMvLink div{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Dela Gothic One';
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    color: #000;
    width: 100%;
    line-height: 1.2;
}

.openingMvLink div{
    font-size: 1.3rem;    
}

.warmupLink div{
    font-size: 1.9rem;    
}

.bothDownloadWrap, .openingMesWrap, .warmupLightWrap{
    position: absolute;
    width: 446px;
    margin-top: -132px;
    margin-left: -493px;
}

/* ===========================================
   課題ボタンのホバーで出る「ミッションカード」（クリア済み課題のみ）
   中身の見た目は my-vue-app/src/components/KadaiDescribeCard.vue。
   ここは表示切替と位置決めだけ（幅は --kd-width が正。StageTemp.adjustDescribePosition が
   同じ変数を読んで、flexWrapper からはみ出さないよう margin-left を補正する）
   =========================================== */
.kadaiDescribeWrap {
    --kd-width: 360px;
    display: none;
    position: absolute;
    z-index: 2;
    width: var(--kd-width);
    /* ボタン幅180px前提の中央寄せ。実際の値は adjustDescribePosition が上書きする */
    margin-left: -90px;
    /* カード上部46pxは相棒が顔を出す透明な余白。ボタンの下端に食い込ませて、ホバーが途切れないようにする */
    margin-top: -34px;
    color: #000;
}

/* 下に収まらないとき（2行目の課題など）は StageTemp.adjustDescribePosition が is-above を付けてボタンの上側に出す */
.kadaiDescribeWrap.is-above {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: -12px;
}

.stagebox:hover + .kadaiDescribeWrap, .kadaiDescribeWrap:hover{
  display: block;
  animation: kdWrapPopIn .22s cubic-bezier(.2, 1.2, .4, 1) both;
}

@keyframes kdWrapPopIn {
  from { opacity: 0; transform: translateY(-8px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

.openingMesWrap{
    margin-top: -171px;
    margin-left: 0;
    left: 50%;
    transform: translateX(60px);
}

.openingMes img{
    width: 236px;
}

.warmupLightWrap{
    margin-top: -203px;
    right: -102px;
    z-index: 5;
}

.warmupLightWrap img{
    width:243px;
    pointer-events: none;
}

.bothDownload, .openingMes, .warmupLight{
    position: relative;
}

.bothDownload img, .openingMes img, .warmupLight img{
    position: absolute;
    left:0;
}

.bothDownload p, .openingMes p, .warmupLight p{
    position: absolute;
    padding: 20px 41px;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: left;
    font-weight: bold;
}

.openingMes p{
    -webkit-text-fill-color: #000;
    text-shadow: initial;
    padding: 37px 41px;
    font-size: 1.2rem;
}

.warmupLight p{
    color: #1b1b1b;
    padding: 55px 48px;
}

.warmup .marginLeft45{
    margin-left: 74px;
    margin-top: -47px;
}

.warmup .content-item img{
    max-width: 220px;
}

.bottomTitle{
    margin-top:53px;
}

.stageNo{
    margin-top: -68px;
    font-size: 2.6rem;
}

.clickStartFukidashi, .goalFukidashi{
    position:absolute;
    z-index: 1;
    width: 190px;
}

.clickStartFukidashi{
    margin-top: -89px;
    margin-left: -91px;
}

.goalFukidashi{
    right: -130px;
    top: 13px;
}

.clickStartFukidashi img, .goalFukidashi img{
    position: absolute;
    width: 190px;
}

.warmup .goalFukidashi img{
    transform: scale(-1, 1);
    max-height: 101px;
    max-width: 182px;
}

.clickStartFukidashi div, .goalFukidashi div{
    position: absolute;
    width: 190px;
    font-family: 'Dela Gothic One';
    color: #000;
    font-size: 1.4rem;
    line-height: 1.2;
    margin-top: 32px;
}

.goalFukidashi div{
    font-size: 1.8rem;
}

/* プロジェクターモード: ストーリー無効化 */
.stagebox.story-disabled {
    cursor: default;
}

.storyDisabledFukidashi {
    position: absolute;
    z-index: 2;
    width: 190px;
    margin-top: -72px;
    margin-left: -70px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.content-item:hover .storyDisabledFukidashi {
    opacity: 1;
}

.storyDisabledFukidashi img {
    position: absolute;
    width: 190px;
}

.storyDisabledFukidashi div {
    position: absolute;
    width: 190px;
    font-family: 'Dela Gothic One';
    color: #000;
    font-size: 1.2rem;
    line-height: 1.2;
    margin-top: 37px;
    margin-left: -8px;
    text-align: center;
}

.warmup .storyDisabledFukidashi {
    width: 140px;
    margin-top: -55px;
    margin-left: -50px;
}

.warmup .storyDisabledFukidashi img {
    width: 140px;
}

.warmup .storyDisabledFukidashi div {
    width: 140px;
    font-size: 1rem;
    margin-top: 30px;
    margin-left: 0;
}

/* プロジェクターモード: /courses/ オープニングムービー無効化（サブアカウント） */
.openingMvLink.projector-disabled {
    cursor: default;
}

.openingMvWrap:hover .storyDisabledFukidashi {
    opacity: 1;
}

/* タイルの左上へ明示配置。基底 .storyDisabledFukidashi のマージンハックは打ち消す */
.openingMvWrap .storyDisabledFukidashi {
    width: 140px;
    top: -70px;
    left: -60px;
    margin-top: 0;
    margin-left: 0;
}

.openingMvWrap .storyDisabledFukidashi img {
    width: 140px;
    /* left/top未指定だとstatic position自動解決が祖先のtext-align:centerの影響で
       +幅50%（インライン置換要素のみ）にずれるため明示アンカー必須 */
    top: 0;
    left: 0;
}

.openingMvWrap .storyDisabledFukidashi div {
    width: 140px;
    font-size: 1rem;
    top: 0;
    left: 0;
    margin-top: 30px;
    margin-left: 0;
    /* 白フチは .openingMvLink div から漏れ当たりしていたもの。移設で外れるため明示 */
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.footer{
    border-bottom:none;
    margin-top: 0;
    position:relative;
    height: auto !important;
    scroll-snap-align: end !important;
}

.biginner{
    height: 67px;
    position: relative;
    width: 130px;
    text-align: center;
    cursor:pointer;
}

.biginner img{
    height: 69px;
    position: absolute;
    max-height: 101px;
    max-width: 182px;
    display: block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.aiGuidance{
    position: relative;
    text-align: center;
    cursor: pointer;
}

.aiGuidance img{
    position: absolute;
    max-height: 101px;
    max-width: 182px;
    display: block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.stageAnswer .warmupLightWrap.aiGuidanceFukidashi .warmupLight{
        margin-left: -436px;
        left: 0;
}

.aiGuidanceFukidashi{
    right:initial;
    left:initial;
    margin-left: 32px;
}

.biginner div{
    position: absolute;
    width: 130px;
    font-family: 'Dela Gothic One';
    color: #000;
    font-size: 1.4rem;
    line-height: 1.2;
    margin-top: 22px;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.titleMaru{
    font-family: 'M PLUS Rounded 1c';
    font-weight: bold;
}

.stageAnswer .warmupLightWrap{
    margin-top: -214px;
    right: 128px;
}

.stageAnswer .warmupLight img{
    /*height:127px;*/
}

.stageAnswer .warmupLight p{
    padding: 46px 14px;
}

.stageAnswer a:hover{
    color:initial;
}

.stageAKButtonContainer {
  position: relative;
  display: inline-block;
}

.hover-links {
    position: absolute;
    bottom: 100%; /* 親要素の上に表示 */
    left: 0;
    opacity:0;
    flex-direction: column;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    width: 117px;
    visibility: hidden;
    transition: opacity 0.5s;
}

.stageAKButtonContainer:hover .hover-links {
  display: flex; /* ホバー時に表示 */
  opacity:1;
  visibility: visible; /* ホバー時に表示 */
  transition: opacity 0.5s;
  z-index:1;
}

.hover-links a {
    background-color: #ff6f6f9e;
    padding: 5px 13px;
    text-decoration: none;
    color: #000;
    font-family: 'Dela Gothic One';
    font-size: 1.8rem;
}

.kadaiWrap .hover-links a{
    background-color: #6fdeff9e;
}

.hover-links a:hover {
  background-color: #ffbf00ad;
}

.hover-links a:nth-child(1) {
    border-radius: 6px 6px 0px 0px;
}

.answerWrap .hover-links a:not(:last-child) {
  border-bottom: 1px solid #cccccc87;
}

.answerWrap .stageAKButton:a{
    background-color:red;
}

/* 全体のスクロールバーのスタイルを設定 */
.requireInput::-webkit-scrollbar {
  width: 12px; /* スクロールバーの幅 */
  height: 12px; /* 水平スクロールバーの高さ */
}

/* スクロールバーのトラック（部分）のスタイルを設定 */
.requireInput::-webkit-scrollbar-track {
  background: #ffffff00; /* トラックの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
}

/* スクロールバーのハンドル（つまみ）のスタイルを設定 */
.requireInput::-webkit-scrollbar-thumb {
  background: #00d2ff; /* ハンドルの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
  border: 3px solid #ffffff00; /* トラックと同じ色のボーダーを追加 */
}

/* ハンドルがホバーされた時のスタイル */
.requireInput::-webkit-scrollbar-thumb:hover {
  background: #94ecff; /* ホバー時の背景色 */
}

.title1line .stageSpan,.title1line{
    font-size: 1.8rem;
}

.title1line img{
    opacity: 0.6;
}

.title1line .stageSpan{
    margin-top: 32px;;
}

.title2line .stageSpan,.title2line{
    font-size:1.5rem;
    line-height:1.3;
}

.title3line .stageSpan,.title3line{
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
    margin-top: 0px !important;
}

.title1line.widenImg {
    margin-top: 54px;
}

#header-container{
    position: absolute;
    z-index: 1;
    width: 100%;
    background-color: initial;
}

.navi-in>ul>li{
    background-color:initial;
    margin: 0px 8px;
    height: 40px;
    line-height: 38px;
    color: #f9d25d;
    font-family: 'M PLUS Rounded 1c';
    font-weight: bold;
    -webkit-text-fill-color: #f9d25d;
    text-shadow: 2px 2px 1px #000000, -2px 2px 1px #000000, 2px -2px 1px #000000, -2px -2px 1px #000000, 2px 0px 1px #000000, 0px 2px 1px #000000, -2px 0px 1px #000000, 0px -2px 1px #000000;
}

.navi-in>ul li.current_page_item a, .navi-in>ul li.current-menu-item a{
    color: #f9d25d;    
}

.navi-in>ul li.current_page_item, .navi-in>ul li.current-menu-item{
    background-color: initial;
    margin: initial;
}

.navi-in a {
    color: #f9d25d;
    font-size: 20px;
}

.navi-in>ul li a:hover{
    background-color: initial;
    color:#fff;
}

.navi-in>ul li.current_page_item a:hover, .navi-in>ul li.current-menu-item a:hover{
    color:#fff;   
}

#nickname-window {
    margin: auto;
    padding: 6px;
    background-color: #0000007d;
    border-radius: 4px;
    color: #fff;
    position: relative;
    z-index: 1;
}

#nickname-window h2 {
    margin-top: 0;
    border: solid 1px;
    margin-bottom: 5px;
    font-weight:100;
}

.commentWrap{
    position: absolute;
}

.commentInnner{
    position:relative;
    z-index: 2;
    width: 341px;
    right: 438px;
    margin-top: -9px;
}

.commentInnner img{
    position: absolute;
    top: 50%;
    left: 50%;
}

.nicknameComment{
    position: absolute;
    color: #000;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -7px;
}

#input-area {
    border-left: 1px solid #fff;
    padding: 10px;
    border-right: 1px solid #fff;
    border-top: solid 1px #fff;
    border-radius: 2px;
}

#nickname-display {
  font-size: 1.6em;
  letter-spacing: 0.2em;
}

.char-button.kanamoji{
    font-size: 1rem;
}

.char-button.deleteLetter{
    font-size: 1rem;
    grid-column: 10 / 12;
    line-height: 2;
}

.noEvent{
    pointer-events: none;
}

#keyboard {
    display: grid;
    gap: 6px 17px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 31px 1fr 1fr 1fr 1fr 1fr;
}

.keyboardWrap{
    display: flex;
    justify-content: center;
    border: solid 1px;
    gap: 50px;
    padding: 13px 34px;
}

.char-button {
    font-size: 1.5em;
    background-color: initial;
    color: #fff;
    cursor: pointer;
    line-height: 1.1;
    border: solid 1px transparent;
}

.char-button:hover {
    border: solid 1px #ffffffc2;
    text-shadow: 0 0 20px #ffffff;
    box-shadow: 0 0 2px #fff;
    background-color: #ffffff0d;
}

#controls {
    position: absolute;
    margin-right: -803px;
    margin-top: 411px;
}

#kana-toggle, #confirm-button {
  padding: 10px 30px;
  background-color: red;
  cursor: pointer;
  font-family: 'Dela Gothic One';
  color: #000;
  font-size: 2rem;
  line-height: 1.2;
  text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
  border-radius: 36px;
  border: solid 5px;
}

#back-link {
  color: #fff;
  text-decoration: none;
}

.courseLetter{
    position: absolute;
    z-index: 1;
    margin-top: -87px;
    width: 100%;
    font-family: 'Dela Gothic One';
    color: #000;
    font-size: 2rem;
    line-height: 0.9;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.courseLetter span{
    font-size:1.3rem;
}

.courseImages a{
    position: relative;
    cursor: pointer;
}

.topHeaderImg #navi{
    position: absolute;
    margin: 0 auto;
    right: 0;
    left: 0;
    z-index:1;
}

.navfade-enter-active, .navfade-leave-active {
  transition: opacity 0.5s ease;
}
.navfade-enter-from, .navfade-leave-to {
  opacity: 0;
}

/* ボタンの基本スタイル */
button.nav-button {
    border: none;
    cursor: pointer;
    position: fixed; /* was absolute: #scroll-wrap(非ルートのスクロールコンテナ)内でabsoluteだと本体と一緒に流れて消える。fixedでビューポート固定 */
    top: 0; /* margin-top:7px と合わせて上端から7px。fixed化に伴い基準位置を明示 */
    left: 8px;
    z-index: 2;
    margin-top: 7px;
    padding: 8px 3px 0px;
    border-radius: 8px;
    background-color: #ffffffba;
    z-index:6;
}

/* ボタンが開いているときのスタイル */
.nav-button.open {
  /*background-color: #dc3545;*/
}

.line-wrapper {
  position: relative;
  width: 100%;
  height: 24px;
}

.nav-button span {
    position: absolute;
    display: block;
    width: 79%;
    height: 4px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 8px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* 各横棒の位置 */
.nav-button span:nth-child(1) {
  top: 0;
}

.nav-button span:nth-child(2) {
  top: 16px;
}

/* メニューのテキスト */
.menu-text {
    text-align: center;
    font-size: 10px;
    color: #333;
    font-family: 'M PLUS Rounded 1c';
    font-weight: bold;
}

/* 開いているときのスタイル */
.nav-button.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-button.open span:nth-child(2) {
  transform: translateY(-8px) rotate(-45deg);
}

.aiRightSide{
    position: absolute;
    right: -134px;
    top: 50%;
    transform: translateY(-50%);
}

.histImg{
    width: 100px;
    cursor:pointer;
}

.histImgInside{
    height: 95vh;
    height: 95dvh;
    max-height: 600px;
    display: block;
    width: auto;
    max-width: 800px;
}

.histListWrapWrap{
    position: absolute;
    top: 0;
    width: 100%;
    height:100%;
}

.histListWrap{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    z-index: 1;
    scroll-snap-type: y mandatory;
    overflow-y: auto; /* スクロールが必要なときのみスクロールバーを表示 */
    width:95%;
    height: calc(70% - 54px);
}

/* 全体のスクロールバーのスタイルを設定 */
.histListWrap::-webkit-scrollbar,.requireInput::-webkit-scrollbar {
  width: 12px; /* スクロールバーの幅 */
  height: 12px; /* 水平スクロールバーの高さ */
}

/* スクロールバーのトラック（部分）のスタイルを設定 */
.histListWrap::-webkit-scrollbar-track,.requireInput::-webkit-scrollbar-track {
  background: #ffffff00; /* トラックの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
}

/* スクロールバーのハンドル（つまみ）のスタイルを設定 */
.histListWrap::-webkit-scrollbar-thumb,.requireInput::-webkit-scrollbar-thumb {
  background: #3c1a07; /* ハンドルの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
  border: 3px solid #ffffff00; /* トラックと同じ色のボーダーを追加 */
}

/* ハンドルがホバーされた時のスタイル */
.histListWrap::-webkit-scrollbar-thumb:hover,.requireInput::-webkit-scrollbar-thumb:hover {
  background: #ad7d63; /* ホバー時の背景色 */
}

.histLists{
    font-size: 1.3rem;
    font-weight: bold;
}

.histTitle{
    position: relative;
    z-index: 1;
    margin-top: 40px;
    font-family: 'Dela Gothic One';
    font-size: 2.9rem;
    color: #000;
    text-decoration: none !important;
    line-height: 0.9;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.histTitle span{
    font-size: 1.7rem;
}

.eachHistList{
    margin:8px 0;
}

.eachHistListSpan{
    cursor:pointer;
}

.eachHistListSpan:hover{
    text-shadow: 0 0 4px #ffd000;
}

.deleteHist{
    cursor:pointer;
    margin-left: 22px;
    font-size: 1.6rem;
}

.deleteHist:hover{
    color:red;
}

.QABookLetter{
    pointer-events: none;
    position: absolute;
    margin-top: -111px;
    font-size: 1.4rem;
    font-family: 'Dela Gothic One';
    white-space: nowrap;
    color: #000;
    line-height: 1.2;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.histWrap{
    display: inline-block;
    position: relative;
    width: auto;
    top: 50%;
    transform: translateY(-50%);
}

.closeHistButton{
    position: absolute;
    z-index: 1;
    right: 34px;
    bottom: 38px;
    border: solid 6px;
    border-radius: 12px;
    padding: 10px 18px;
    width: initial;
    height: initial;
    font-size: 1.3rem;
}

.dimmed {
  filter: brightness(0.5);
}

.histWrapWrap{
    height: 95vh;
    height: 95dvh;
    max-height: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.qaCourseAndStage{
    margin-top: 2px;
    display: flex;
    position: absolute;
    font-size: 1rem;
    justify-content: flex-start;
    left: 11px;
    text-shadow: initial;
    font-weight: bold;
    top: 5px;
    gap: 7px;
}

.qaCourseAndStageTag{
    border: solid 3px #3a3a3a;
    border-radius: 100px;
    position: relative;
    background-color: #cdfffe;
    width: auto;
    padding: 0 11px;
    text-shadow: initial;
}

.qaCourseAndStageTag.warmup{
    background-color:#95d57c;
}

.qaCourseAndStageTag.entry{
    background-color:#69e9ff;
}

.qaCourseAndStageTag.bronze{
    background-color:#c96f3f;
}

.qaCourseAndStageTag.silver{
    background-color:#9b9b9b;
}

.qaCourseAndStageTag.gold{
    background-color:#ffcb44;
}

/* ===== Footer Redesign ===== */
.footer-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-logo-link {
    display: inline-block;
}
.footer-logo-img {
    height: 76px;
    display: block;
}
.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin: 0;
    letter-spacing: 0.03em;
}
.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-nav-heading {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    line-height: 1.6;
}
.footer-nav-links a:hover {
    color: #00d2ff;
}
.footer-service-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.footer-service-icon-img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: contain;
}
.footer-bottom-bar {
    margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
/* ファインプリント: 中央揃え1カラム・トーン2段階（識別=0.5 / 法的文言=0.28）に統一 */
.footer-fine-print {
    max-width: 820px;
    margin: 0 auto;
    padding: 22px 24px 26px;
    text-align: center;
}
.footer-fine-print .copyright {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.footer-fine-print .legal-line {
    color: rgba(255,255,255,0.28);
    font-size: 10px;
    line-height: 1.9;
    margin: 0 0 2px;
}
.footer-fine-print .legal-line a {
    color: rgba(255,255,255,0.4);
    text-decoration: underline;
}
.footer-fine-print .legal-line a:hover {
    color: rgba(255,255,255,0.65);
}
/* Yahoo!ルビ振りAPI クレジット（掲載必須）。周囲のファインプリントと同格の控えめなトーン
   （#footer a のIDセレクタに勝つため #footer 込みで指定） */
.footer-fine-print .yahoo-credit {
    font-size: 12px;
}
#footer .yahoo-credit a {
    color: rgba(255,255,255,0.4);
    text-decoration: underline;
}
#footer .yahoo-credit a:hover {
    color: rgba(255,255,255,0.65);
}
/* ===== Footer Redesign End ===== */

.result-screen {
  text-align: center;
  height: 100vh;
  height: 100dvh;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  scrollbar-width: none;
}

.quizOverview,.quizDetail{
    height:100vh;
    height:100dvh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.preResultPage{
    margin-top: -90px;
}

.question-detail {

}
.header {
  display: flex;
  justify-content: space-between;
}
.close-button {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

.option {
  padding: 10px;
  margin: 5px 0;
  width: 80%;
}

.wrong {
  background-color: #f8d7da;
}

.start-screen {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    height: 132px;
}

.startButton{
    position: relative;
    height: 132px;
    cursor:pointer;
}

.startButton span{
    font-family: 'Dela Gothic One';
    font-size: 2.4rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
    padding: 5px;
}

.quiz-header {

}

.quiz-question-wrap{
    position: relative;
    height: 147px;
}

.quiz-question-wrap span{
    font-family: 'M PLUS Rounded 1c';
    font-size: 1.1rem;
    font-weight:bold;
    color: #000;
    text-decoration: none !important;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 424px;
    padding: 5px;
    line-height: 1.2;
    text-align: left;
}

.quiz-container{
    overflow-y:auto;
    scrollbar-width: none;
}

.quiz-question {
  font-size: 1.2em;
  margin: 20px 0;
}
.quiz-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 750px;
}

.quiz-screen > .image {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.quiz-screen > .image .image-container {
  max-height: 100%;
}

.quiz-container .image img, .quiz-container .image video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.options {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width:77%;
    margin: 0 auto;
}
.option {
    padding: 10px 20px;
    margin: 0;
    cursor: pointer;
    width: 80%;
    flex-basis: 50%;
}

.quiz-option-button{
    width: 225px;
    position: relative;
    height: 80px;
    margin: 0 auto;
}

.quiz-option-button img{
    width:225px;
}

.quiz-option-button span{
    font-family: 'M PLUS Rounded 1c';
    font-size: 1.1rem;
    font-weight:bold;
    color: #000;
    text-decoration: none !important;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
    margin-left:-10px;
}

.quiz-option-button span img{
    vertical-align:middle;
    width: 144px;
    margin-left: -18px;
    max-width: none;
}

.option.selected img {
    filter: brightness(1.5);
}

.option.selected span img {
    filter: none;
}

.quiz-container .answer {
  margin: 6px 0;
}
.correct,.incorrect {
    color: red;
    font-size: 10rem;
    font-family: 'M PLUS Rounded 1c';
    font-weight: bold;
    line-height: 1;
    border-radius: 8px;
}

.incorrect{
    color: blue;
    line-height: 0.8;
    margin-top: -46px;
    font-size: 16rem;
}

.quiz-option-button span span.maru-batu-option,
.quiz-question-wrap span span.maru-batu-option {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    padding: 0 !important;
    z-index: auto !important;
    white-space: normal !important;
    margin-left: 0 !important;
    display: inline !important;
    line-height: 1;
}
.quiz-option-button span span.maru-option,
.quiz-question-wrap span span.maru-option {
    color: red !important;
    font-size: 1.3em;
    vertical-align: -0.05em;
}
.quiz-question-wrap span span.maru-option {
    margin: 0 0.15em;
}
.quiz-option-button span span.batu-option,
.quiz-question-wrap span span.batu-option {
    color: blue !important;
    font-size: 1.5em;
    vertical-align: -0.1em;
}
.quiz-question-wrap span span.batu-option {
    margin: 0 0.15em;
}

.explanation {
  margin-top: 10px;
  text-align:left;
  font-family: 'M PLUS Rounded 1c';
  font-weight: bold;
}

.explanation img{
    height:32px;
    vertical-align:middle;
}

.quiz-option-button img.bigOptionImg{
        max-width: 225px;
}

.scroll-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.quiz-container{
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0,0,0,0.8); /* 半透明の黒 */
}

.quiz-container:not(:has(.start-screen)) {
    background-image: url("images/background/quizBackground.jpg");
    background-size: cover;
    background-position: center;    
}

.quiz-background{
    position: absolute;
    width: 800px;
    height: inherit;
    background-size: cover;
    background-position: center;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;
    outline: none; /* フォーカス時のアウトラインを非表示にする */
}

.quiz-num-wrap{
    height: 120px;
    position: absolute;
    right: -126px;
}

.quiz-num-wrap img{
    height:120px;
}

.quiz-num-wrap span{
    font-family: 'Dela Gothic One';
    font-size: 2rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
    padding: 5px;
}

.quizKetteiWrapWrap{
    position: absolute;
    right: -52px;
    margin-top: 60px;
    background-color: transparent;
    border: none;
    cursor:pointer;
}

.quizKetteiWrapWrap.quizNext{
    right: -172px;
    margin-top: -59px;
}

.quizKetteiWrapWrap.quizRestart{
    margin-top: calc(-100vh - 100px);
    margin-top: calc(-100dvh - 100px);
    right:-145px;
}

.quizKetteiWrapWrap.quizEnd{
    margin-top: calc(-100vh - 42px);
    margin-top: calc(-100dvh - 42px);
    right:-145px;
}

.quizKetteiWrap{
    position: relative;
    height: 43px;
    width: 123px;
}

.quizKetteiWrap span{
    font-family: 'Dela Gothic One';
    font-size: 1.4rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
    padding: 5px;
}

.result-table .quizKetteiWrap img{
    margin-top:-9px;    
}

.kaitouWrap{
    display: flex;
    background-color: white;
    border-radius: 8px;
    border: solid 3px;
    padding: 0px 5px;
    gap: 10px;
    font-size: 1.2rem;
}

.red{
    color:red;
}

.quizResultHeader{
    position:relative;
}

.quizResultHeader img{
    width:400px;
}

.quizResultHeader span{
    font-family: 'Dela Gothic One';
    font-size: 2.4rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
}

.resultScoreWrap{
    font-family: 'Dela Gothic One';
    font-size: 2.4rem;
    line-height: 1.4;
    color: #000;
    margin-top:-34px;
}

.resultScore img{
    height:200px;
}

.resultScore{
    background-color: #fff;
    border-radius: 8px;
    margin-bottom:20px;
    padding-top:51px;
}

.nextResultPage img,.preResultPage img{
    width: 90px;
    cursor:pointer;
}

.nextResultPage.goukaku img{
    transform: rotate(90deg);
}

.preResultPage.goukaku img{
    transform: rotate(270deg);
}

.preResultPage.fugoukaku img{
    transform: rotate(180deg);
}

.resultTen{
    font-size:3.2rem;
}

.resultComment{
    font-size:3.4rem;
}

.result-table{
    border:none;
    font-family: 'Dela Gothic One';
    font-size: 1.9rem;
    margin-top:15px;
}

.result-table td,.result-table th{
    border:none;
    padding: 0px 10px;
    font-weight:100;
}

.details-screen{
    position:absolute;
    margin-top:-100vh;
    margin-top:-100dvh;
    width:100%;
}

.dark{
    filter:brightness(0.5);
}

.dark2{
    filter:brightness(0.2);
}

.result-table .quizKetteiWrap{
    height: 55px;
    width: 153px;
    margin: 0 auto;
}

.result-table .quizKetteiWrap span{
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

tbody .quizKetteiWrap{
    cursor:pointer;
}

tbody .resultCorrect{
    color:red;
}

tbody .resultIncorrect{
    font-size: 2.9rem;
    color: blue;
    line-height: 1;
}

.question-detail .quizKetteiWrap{
    height: 56px;
    width: 158px;
}

.result-table-wrap{
    border-radius: 10px;
    background-color: #fff;
    padding: 5px 5px 1px;
    margin-top:15px;
}

.result-table-wrap table tr:nth-of-type(2n+1){
    background-color:initial;
}

.result-table-wrap table:not(.has-border-color) :where(th, td){
    background-color:initial;
}

.result-table-wrap table th{
    background-color:initial;
}

.result-table .quizResultQ img{
    max-height: 47px;
    vertical-align: middle;
}

.quiz-option-button.bigfont span{
    font-size:1.8rem;
}

.hint-detail {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width:100%;
  top:0;
  z-index: 4;
}

.hint-wrapper {
  background-size: cover;
  padding: 20px;
  width: 80%;
}

.hint-header {
  display: flex;
  align-items: center;
  font-size: 2.3rem;
}

.hint-header span + span {
  margin-left: 10px;
}

.hint-comment {
  margin-top: 20px;
  font-size: 1.2rem;
  text-align:left;
  background-color: #ffffffa8;
  text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.hint-images {
  margin-top: auto;
  margin-left:auto;
  width: 535px;
}

.hint-images.multi-image{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /*width: 50%;*/    
  max-width: 500px;
}

.hint-image img {
  width: 100%;
  max-height: 250px;
  max-width: 500px;
  object-fit: contain;
}

.hint-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
}

.hint-footer span {
  margin-right: 10px;
  cursor: pointer;
}

.hint-footer img {
  cursor: pointer;
}

.hintBk{

}

.hintFlex{
    max-width: 1200px;
    display: flex;
    margin: auto;
    height: 100vh;
    height: 100dvh;
    justify-content: space-around;
    gap:21px;
}

.hintDesWrap{
    height: 498px;
    width: 885px;
    margin: auto;
    position: relative;
}

.hintDesWrap .close{
    top: -9px;
    z-index: 1;
    right: -12px;
}

.hintbk{
    height: 498px;
    width: 885px;
    position: absolute;
    left: 0;
}

.hintInsideWrap{
    display: flex;
    flex-direction: column;
    position:absolute;
    padding: 35px 55px;
    font-family: 'M PLUS Rounded 1c';
    font-weight:bold;
    height: 100%;
    width: 100%;
}

.arrow-container.disabled {
    opacity:0;
    cursor:auto;
}

/* ===== ヒントモーダル: タブレット幅の流動レイアウト（〜1199px） =====
   1200px以上は既存の885x498固定レイアウトを維持。
   カード幅はflexの縮小計算でなく100vwベースの明示式で決める（実機Safariの
   縮小系挙動でも歪まない）。aspect-ratioで高さが幅に追従するため
   .hintbk は絶対に歪まない。 */
@media screen and (max-width: 1199px) {
  .hintFlex {
    --hint-arrow-w: clamp(72px, 11vw, 130px);
    /* 第3項: 高さ不足環境（横向きスマホ等）でカードが縦にはみ出さないよう
       ビューポート高さからも上限を取る */
    --hint-card-w: min(885px,
                       calc(100vw - (var(--hint-arrow-w) * 2) - 58px),
                       calc((100vh - 56px) * 885 / 498));
  }

  .hintFlex .arrow-container {
    flex-shrink: 0;
  }

  .hintFlex .arrow-container img {
    width: var(--hint-arrow-w);
    max-width: var(--hint-arrow-w);
  }

  .hintDesWrap {
    width: var(--hint-card-w);
    height: auto;
    aspect-ratio: 885 / 498;
    flex-shrink: 0;
  }

  .hintbk {
    width: 100%;
    height: 100%;
    top: 0;
  }

  .hintInsideWrap {
    padding: clamp(20px, 3.5vw, 35px) clamp(24px, 5vw, 55px);
    /* 保険: 中身が縮小後のカード高に収まらない場合はカード内スクロール（収まる場合は無変化） */
    overflow-y: auto;
  }

  /* 中身（文字・余白・画像）もカード縮小率に合わせて縮め、デスクトップと同じ収まり方を保つ */
  .hint-header {
    font-size: clamp(1.75rem, 3.05vw, 2.3rem);
  }

  .hint-comment {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    margin-top: clamp(12px, 1.67vw, 20px);
  }

  .hint-images {
    /* 535px = デスクトップのカード内容幅775pxの69%。カードと同率で縮める */
    width: min(535px, 69%);
  }

  .hint-images.multi-image {
    gap: clamp(12px, 1.67vw, 20px);
  }

  .hint-image img {
    max-height: calc(var(--hint-card-w) * 250 / 885);
  }

  /* SafariはブラウザUI表示中に100vh>実表示領域となるため、
     dvh対応環境では高さ上限をdvh基準に差し替える（100vh版はfallback） */
  @supports (height: 100dvh) {
    .hintFlex {
      --hint-card-w: min(885px,
                         calc(100vw - (var(--hint-arrow-w) * 2) - 58px),
                         calc((100dvh - 56px) * 885 / 498));
    }
  }
}

.challengeBottom .stageAKButtonContainer{
    width: 118px;
    cursor:pointer;
}

.challengeBottom .stageAKButtonContainer .wrapScratchMessage{
    cursor: default;
}

.challengeBottom .stageAKButtonContainer a{
    padding:0;
}

.stageAKButtonContainer.hintWrap  a{
    background-color:yellow;
}

.videoBottom .answerWrap a{
    background-color:red;
}

.finishWrap a{
    background-color:#ff74b4;
}

.videoBottom.challengeBottom{
    gap: 52px;
}

.challengeBottom a:hover{
    color:initial;
}

.hintArrow{
    position: absolute;
    margin: 0 auto;
    font-family: 'M PLUS Rounded 1c';
    font-weight: bold;
    pointer-events: none;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    font-size: 1.3rem;
    margin-right: 6px;
}

.previousArrow{
    margin-right: 0;
    margin-left: 6px;
}

.stageHeader{
    position: relative;
    display: inline-block;
}

.stageHeader span{
    font-family: 'Dela Gothic One';
    font-size: 1.4rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    position: absolute;
    /* top: 50%; */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    white-space: nowrap;
    top: 57px;
    font-weight: 100;
}

.stageHeader span.stageH1{
    top: 9px;
    font-size: 2.2rem;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
}

.stageHeader.no-subtitle span.stageH1{
    top: 30px;
}

.quiz-container .return{
    position: absolute;
    left: 31px;
    bottom: 76px;
    cursor:pointer;
}

.quiz-container .toCourseList{
    font-size: 1.3rem;
    margin-top: 15px;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.image-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.image-container .quizImg {
  cursor: zoom-in;
  max-height: 280px;
  object-fit: contain;
}

.image-container .quizImg:not(:only-child) {
  max-width: calc(50% - 5px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* 背景を半透明の黒に設定 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.quiz-modal-content {
  position: relative;
  height:auto;
}

.quiz-container .image .quiz-modal-content .quizBigImg {
    height: auto;
    max-height: 460px;
    max-width: 900px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.quiz-container .image img.close{
    height: auto;
    top: -19px;
    right: -4px;
}

.beta{
    position: absolute;
    color: #ff0000;
    filter: brightness(100%);
    left: 8px;
    top: 39px;
    font-weight: bold;
    font-size: 1.3rem;
    width: 100%;
    z-index: 1;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
}

.quiz-question img{
    height: 30px;
    vertical-align: middle;
    margin: 0 5px;
}

.smallFont{
    font-size:0.8rem;
}

#enterWrap{
    position: absolute;
    right: 27px;
    bottom: 14px;
}

.enterKey{
    width:51px;
}

.enterFinger {
    width: 41px;
    position: absolute;
    margin-left: -36px;
    margin-top: 30px;
    animation: blink 1.2s infinite;
    -webkit-animation: blink 1.2s infinite; /* Safari 用 */
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@-webkit-keyframes blink {
    /* Safari 用の定義 */
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/*.zerokara img{
    max-height: 132px;
    max-width: 132px;
    opacity: 0.7;
}*/

.content-item img.gate.stageMonster{
    filter: brightness(1);
    max-width: 174px;
    max-height: 177px;
    margin-top: 4px;
}


.slide-left-enter-active, .slide-left-leave-active {
  transition: transform 0.3s ease;
}
.slide-left-enter-from {
  transform: translateX(-100%);
}
.slide-left-enter-to {
  transform: translateX(0%);
}
.slide-left-leave-from {
  transform: translateX(0%);
}
.slide-left-leave-to {
  transform: translateX(-100%);
}


.side-navi {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #ffffffe8;
  z-index:5;
  box-shadow: 0px 0px 3px #bbbbbbde;
  overflow-y: auto;
}

.side-navi a {
    cursor: pointer;*/
}

.side-navi-in {
  text-align: left;
  padding:58px 12px 20px 12px; /* 左右を詰めて「本サービスについて」等の折り返しを防ぐ */
}

.side-menu-top {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-top li {
  border-bottom: 1px solid #eee;
}

.side-menu-top li:first-child { /* ユーザー情報の上線 */
    border-top: 1px solid #eee;
}
.side-menu-top li:last-child {
   border-bottom: none;
}

/* セクション見出し（おうちの方 / 教育関係者の方 / 管理者の方） */
.side-menu-top li.menu-section-heading {
    border-top: 2px dotted #333;
    border-bottom: none;
    margin-top: 12px;
    padding: 12px 8px 4px 8px;
    font-weight: bold;
    font-size: 0.95em;
    color: #333;
    cursor: default;
}

/* リンク付きセクション見出し（教育関係者の方 → /for-educators/） */
.side-menu-top li.menu-section-heading.menu-section-linked {
    padding: 0;
    cursor: pointer;
}
.side-menu-top li.menu-section-heading.menu-section-linked .item-label {
    font-weight: bold;
}

.side-menu-top li a {
   display: block;
   text-decoration: none;
   color: inherit;
   transition: background-color 0.2s ease;
}
.side-menu-top li a:hover {
   background-color: #f0f0f0; /* Vue側と合わせるか確認 */
}

.side-menu-top li a ,.side-menu-top #wp-settings-menu-item .caption-wrap{
  display: block;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

.side-menu-top li a:hover ,.side-menu-top #wp-settings-menu-item .caption-wrap:hover{
  background-color: #ffde95;
}


/* サイドナビが表示される状態 */
.side-navi.side-navi-visible {
    left: 0; /* 画面に表示 */
}

/* アイコンとラベルのレイアウト (Vue側からコピー) */
.side-navi .caption-wrap {
    display: flex;
    align-items: center;
    padding: 15px 6px; /* 上下左右のパディング調整 */
  }
  
  .side-navi .caption-wrap i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
    font-size: 1.1em;
    color: #555;
  }
  
  .side-navi .item-label {
    color: #333;
    flex-grow: 1; /* ラベルが残りの幅を埋めるように */
  }

.userinfo{
    background: #aff1ff;
    font-family: 'M PLUS Rounded 1c';
    font-weight: bold;
    border-radius: 5px;
    -webkit-text-fill-color: #f9d25d;
    text-shadow: 1px 1px 1px #000000, -1px 1px 1px #000000, 1px -1px 1px #000000, -1px -1px 1px #000000, 1px 0px 1px #000000, 0px 1px 1px #000000, -1px 0px 1px #000000, 0px -1px 1px #000000;
    box-shadow: 1px 2px 8px #d8d8d8;
    padding: 15px 5px 10px 5px; /* 上下左右のパディング調整 */
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
    background-color: #f9f9f9;
}


 .userinfo .caption-wrap.user-info-wrap {
    align-items: flex-start;
    padding: 0;
}

.userinfo .user-icon {
    font-size: 1.6em;
    margin-top: 2px;
    color: #777;
}

.homeMidashi{
    font-family: 'Dela Gothic One';
    position: absolute;
    right: 0;
    left: 0;
    margin: 0 auto;
    margin-top: -85px;
    font-size: 1.9rem;
    font-weight: 100;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.homeMidashi.tokutyou{
    font-size:2.5rem;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    margin-top:-97px;
}

.maruNam{
    font-family:"M PLUS Rounded 1c";
    font-weight:bold;
}

.twoImg{
    display: flex;
    justify-content: space-evenly;
    gap:2%;
}

.tokutyouImg.twoImg img {
    width: 45%;
    height: auto;
    object-fit: cover; /* 必要に応じて追加 */
}

.tokutyouImg{
    padding: 13px 0px;
    text-align:center;
}

.tokutyouImg img{
    width:52%;
}

.page-id-262 h1.entry-title,.post-262 h2.wp-block-heading{
    text-align: center;
    background-color: #e6ccb4;
    border-radius: 15px;
    padding: 40px 54px;
    width: fit-content;
    margin: 0 auto;
    font-size: 2.5rem;
    letter-spacing: initial;
    font-weight: 100;
    border:none;
}

.page-id-262 h2.wp-block-heading{
    margin-bottom: 59px;
    margin-top: 52px;
}

.page-id-262 .article h2:before{
    content:"";
}

.page-id-262 #main{
    font-family:"M PLUS Rounded 1c";
}

.article p.prName{
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 11px;
}

.article p.prHist {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0;
}

.jikoshoukaiWrap{
    display: flex;
    gap: 17px;
    justify-content: center;
}

.prPicWrap{
    width: 45%;
    text-align: center;
}

.prPicWrap img{
    max-width:245px;
}

.page-id-262 .article h3{
    background-color: #e6ccb4;
    border-left: none;
    border-radius: 5px;
    padding: 3px 10px;
}

.article h3{
    border-left: none;
    padding: 4px 0px;
}

.page-id-262 .article.article{
    padding: 0px 88px 20px;
}

.allPrWrap{
    background-color: #e6ccb4;
    border-radius: 30px;
    padding: 65px 50px;
}

.forUserWrap{
    margin-bottom:70px;
}

.forUserWrap h3{
    font-weight: bold;
    font-size: 2rem;
    margin: 15px 0 10px 0;
}

.forUserWrap p{
    font-size:1.3rem;
}

.page-id-262 #content-in{
    width:1024px;
}

/* ヒーロー右上「教育関係者の方へ」丸バッジ（ネオン缶バッジ・2026-10-28 黄色から変更）
   色はロゴ（code-braver-logo.png）に合わせ、紺の中身＋青〜紫に光るふち。
   大人向けの入口だと絵で分かるよう角帽のアイコンを上に置き、子ども向けの赤いスタートボタンと色でぶつけない。
   ふちは transparent の border の下に conic-gradient を敷いて出す（border-box / padding-box の2枚重ね）。
   文字は M PLUS Rounded 1c の 800（header.php は 400 だけなので HomeView.vue が 700/800 を足す）。
   直径は「教育関係者」5文字が円内に収まる幅から逆算している。 */
.forAdults{
    /* ふちの光の色（RGB）。管理画面へ版は .forAdults--admin で緑に差し替える */
    --badge-glow: 70, 200, 255;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 136px;
    height: 136px;
    padding-top: 2px;
    border-radius: 50%;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.02em;
    color: #fff;
    border: 3px solid transparent;
    background:
        radial-gradient(circle at 32% 26%, #3a4fae 0%, #1e2b78 50%, #0f1747 100%) padding-box,
        conic-gradient(from 210deg, #36e2ff, #7a7cff, #e05cff, #ff7ad9, #36e2ff) border-box;
    box-shadow: 0 0 14px rgba(var(--badge-glow), 0.6), 0 3px 9px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* 缶バッジの膨らみ: 内側の細い白リングと左上からのハイライト */
.forAdults::before{
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%);
    pointer-events: none;
}

.forAdults span{
    display: block;
}

/* em 指定でバッジ縮小時(レスポンシブ)も比率を保つ */
.forAdults i{
    font-size: 1.35em;
    line-height: 1;
    color: #7cefff;
    margin-bottom: 0.16em;
}

.forAdults__main{
    font-size: 0.92em;
    line-height: 1.2;
}

.forAdults__sub{
    font-size: 0.78em;
    line-height: 1.25;
    color: #d4e2ff;
}

.topHeaderImg a.wrapForAdults{
    width: fit-content;
    display: block;
    position: absolute;
    right: 43px;
    top: 19px;
    text-decoration: none;
}

.topHeaderImg a.wrapForAdults:hover .forAdults{
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(var(--badge-glow), 0.85), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.topHeaderImg a.wrapForAdults:active .forAdults{
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(var(--badge-glow), 0.55), 0 1px 5px rgba(0, 0, 0, 0.3);
}

.topHeaderImg a.wrapForAdults:focus-visible .forAdults{
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* 管理画面へバッジ（団体・学校の管理者ログイン時）
   缶バッジの作り（円・光るふち・アイコン＋白文字）は共通のまま、中身を深緑・ふちをミント〜水色にして
   「教育関係者の方へ」（紺＋青〜紫）と別物だと分かるようにする。
   メニュー内にしか導線が無く気づかれにくいため、表示直後に数回だけ波紋で注意を引く。 */
.forAdults--admin{
    --badge-glow: 60, 230, 160;
    background:
        radial-gradient(circle at 32% 26%, #178a6f 0%, #0d5a4b 50%, #06342c 100%) padding-box,
        conic-gradient(from 210deg, #6dffc4, #1fd39a, #9dfbe0, #2ce6ff, #6dffc4) border-box;
}

.forAdults--admin i{
    color: #9dfbd8;
}

/* 波紋（注意喚起）: 3回だけ再生して静止する */
.forAdults--admin::after{
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    pointer-events: none;
    animation: smAdminBadgePulse 2.2s ease-out 3 both;
}

@keyframes smAdminBadgePulse{
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.8); }
    70%  { box-shadow: 0 0 0 18px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@media (prefers-reduced-motion: reduce){
    .forAdults{
        transition: none;
    }
    .topHeaderImg a.wrapForAdults:hover .forAdults,
    .topHeaderImg a.wrapForAdults:active .forAdults{
        transform: none;
    }
    .forAdults--admin::after{
        animation: none;
    }
}

.nameAndHistWrap{
    width:55%;
}

.nameAndHistWrap a{
    color:#000;
}

.scratchMessageLetter{
    position: absolute;
    color: #000;
    width: 161px;
    left: 0;
    right: 0;
    margin: 43px 10px 0px 13px;
    font-family: "M PLUS Rounded 1c";
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
}

.wrapScratchMessage{
    position:absolute;
}

.scratchMessage{
    position: relative;
    color: #fff;
    margin-top: -125px;
    width: 219px;
    margin-left: -217px;
}

.stageAKButtonContainer .scratchMessage{
    margin-left: -220px;
    margin-top: -128px;
}

.scratchMessage img{
    position: absolute;
    width: auto;
    left: 0;
}

.scratchMessage{
    display:none;
}

.scratchMessage.noMessage, .scratchMessage.top{
    display:none!important;   
}

.bottomScratch:hover .scratchMessage, .displayScratchMes, .stageAKButtonContainer.kadaiWrap:hover .scratchMessage{
  display: block;
}

/* リミックス手順（3ステップ）用の吹き出しカード。
   雲画像（mowafukidashi.png）だと文章量が入らないため、この文言のときだけ
   画像なしのCSSカードで描画する（StageTemp側で scratchMessage--card を付与）。
   上端は雲版（margin-top:-125px / kadaiWrap:-128px）と同じ位置を保ち、
   動画への被りを増やさない。広げるのは横方向のみで、右端も雲版の位置に揃える
   （雲版: width219+margin-left-217 → 右端+2px。カード: width240+margin-left-238） */
.scratchMessage.scratchMessage--card{
    width: 232px;
    margin-left: -230px;
    /* 雲画像は絵の上端がボックスより下から始まる（上が丸い）ため、実効の上端は
       -125pxより低かった。カードも上端を下げて動画の再生ボタンにぎり被らない程度にする */
    margin-top: -108px;
    background: #fffdf5;
    border: 3px solid #ffb43c;
    border-radius: 22px;
    box-sizing: border-box;
    padding: 10px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    /* 案内表示のみ。狭い幅でボタンに重なってもクリックを奪わない
       （tryItBubble と同じ作法）。×ボタンだけ auto に戻す */
    pointer-events: none;
}

.stageAKButtonContainer .scratchMessage.scratchMessage--card{
    margin-left: -233px;
    margin-top: -111px;
}

/* Scratchボタンを指すしっぽ。カードと同じクリーム地＋オレンジ縁の菱形。
   ワイド幅ではカードがボタンの左隣に並ぶため右向きに出す */
.scratchMessage.scratchMessage--card::after{
    content: "";
    position: absolute;
    right: -11px;
    bottom: 18px;
    width: 16px;
    height: 16px;
    background: #fffdf5;
    border-top: 3px solid #ffb43c;
    border-right: 3px solid #ffb43c;
    transform: rotate(45deg);
}

.scratchMessage.scratchMessage--card .scratchMessageLetter{
    position: static;
    width: auto;
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    /* 手順は左揃え。中央揃えだと最長行（②）だけ左右に広がり、
       狭い幅で②の頭から切れる */
    text-align: left;
}

/* カード左上の×（閉じる）。カード本体は pointer-events:none なので×だけ戻す */
.scratchMessage.scratchMessage--card .scratchMessageClose{
    position: absolute;
    top: -12px;
    left: -12px;
    width: 26px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
}

/* 画面幅が狭いとボタンの左に240px分の余白が無く、カードが画面左へ切れる
   （1024px=回転案内が誘導するiPad横向きで実際に発生）。狭い幅ではカードを
   ボタンの真上へ寄せ、しっぽもボタンを指すよう左基準に切り替える */
@media screen and (max-width: 1200px){
    .scratchMessage.scratchMessage--card,
    .stageAKButtonContainer .scratchMessage.scratchMessage--card{
        margin-left: -60px;
        /* ボタンの真上に寄せる分、下端がボタンに被らないよう上げ＋縮小。
           表示はホバー時と動画終了後のみなので再生中の動画は隠さない */
        margin-top: -145px;
    }
    .scratchMessage.scratchMessage--card{
        padding: 8px 14px;
    }
    .scratchMessage.scratchMessage--card .scratchMessageLetter{
        font-size: 0.9rem;
        line-height: 1.6;
    }
    /* カードがボタンの真上になるため、しっぽは下向きに切り替え */
    .scratchMessage.scratchMessage--card::after{
        right: auto;
        left: 124px;
        bottom: -11px;
        border-top: none;
        border-right: 3px solid #ffb43c;
        border-bottom: 3px solid #ffb43c;
    }
}

/* スマホ横向き（667px等）ではさらに余白が無いのでボタン左端に揃える。
   旧雲版はこの幅で完全に画面外＝そもそも見えていなかった */
@media screen and (max-width: 820px){
    .scratchMessage.scratchMessage--card,
    .stageAKButtonContainer .scratchMessage.scratchMessage--card{
        margin-left: 0;
    }
    .scratchMessage.scratchMessage--card::after{
        left: 68px;
    }
    /* カード左端が画面際に来るため、×は外へはみ出させず内側に寄せる */
    .scratchMessage.scratchMessage--card .scratchMessageClose{
        left: 0;
        top: -10px;
    }
}

/* 「やってみよう！」吹き出し */
.tryItBubble{
    position: absolute;
    margin-top: -125px;
    margin-left: -217px;
    width: 219px;
    z-index: 5;
    pointer-events: none;
}

.tryItBubble img{
    position: absolute;
    width: auto;
    left: 0;
}

.tryItBubble p{
    position: absolute;
    width: 161px;
    left: 0;
    right: 0;
    margin: 52px 10px 0px 13px;
    font-family: "M PLUS Rounded 1c";
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
    white-space: nowrap;
}

/* 点滅アニメーション */
@keyframes slowBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* letsGoクラスに適用 */
.letsGo {
    animation: slowBlink 1.5s infinite; /* 2秒間隔で繰り返す */
    position: absolute;
    top: -96px;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    z-index: 3;
}

.letsGo.silver {
    top: -155px;
}

.letsGo.stopped {
  animation: none; /* アニメーションを停止 */
  opacity: 1; /* 最後に完全表示 */
}

.spStop{
    display:none;
}


.greenLine{
    background: linear-gradient(transparent 70%, #21ff00 70%);
}

/* きらっと光るCSS */
/*
.stagebox .shining-effect {
    overflow: visible;
    position: relative;
    cursor: pointer;
    display: inline-block;
    border-radius: 100px;
    width: 162px;
    height: 164px;
}

.stagebox .shining-effect::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    width: 14px;
    height: 100%;
    pointer-events: none;
}

.stagebox .shining-effect.shine::before {
    animation: shining-effect 0.5s linear 2;
    background-color: #ffffff;
}

.stagebox .shining-effect img {
    display: block;
    margin-left: -7px;
    margin-top: -8px;
}

@keyframes shining-effect {
    0% {
        transform: scale(2) rotate(50deg);
        opacity: 0;
    }
    25% {
        transform: scale(20) rotate(50deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(30) rotate(50deg);
        opacity: 0.4;
    }
    75% {
        transform: scale(45) rotate(50deg);
        opacity: 0.2;
    }
    100% {
        transform: scale(50) rotate(50deg);
        opacity: 0;
    }
}*/


/* ===== 準備運動クリア時：「修行（エントリー）へ！」ボタンをキランと光らせる ===== */
/* .goal-shine      = 準備運動クリア直後（キラン×3回 → そのまま光り続ける）      */
/* .goal-shine-idle = エントリー未着手で再訪した時（最初から静かに光り続ける）    */
/* 付与ロジックは StageTemp.vue の goalButtonEffect / triggerGoalButtonGlow      */

/* 光の粒（ボタン右上でキラッ） */
.readyButton.goal-shine .nextstage::after,
.readyButton.goal-shine-idle .nextstage::after{
    content: "✨";
    position: absolute;
    top: -20px;
    right: 14px;
    font-size: 24px;
    pointer-events: none;
}

.readyButton.goal-shine .nextstageImg{
    animation: goalShineFlash 1s ease-out 3,
               goalShineIdle 2.4s ease-in-out 3s infinite;
    transform-origin: center center;
}

.readyButton.goal-shine .nextstage{
    animation: goalShineText 1s ease-out 3,
               goalShineTextIdle 2.4s ease-in-out 3s infinite;
}

.readyButton.goal-shine .nextstage::after{
    animation: goalShineSparkle 1s ease-out 3,
               goalShineSparkleIdle 2.4s ease-in-out 3s infinite;
}

.readyButton.goal-shine-idle .nextstageImg{
    animation: goalShineIdle 2.4s ease-in-out infinite;
    transform-origin: center center;
}

.readyButton.goal-shine-idle .nextstage{
    animation: goalShineTextIdle 2.4s ease-in-out infinite;
}

.readyButton.goal-shine-idle .nextstage::after{
    animation: goalShineSparkleIdle 2.4s ease-in-out infinite;
}

@keyframes goalShineFlash {
    0% {
        transform: scale(1);
        filter: brightness(1) contrast(1) drop-shadow(0 0 0 rgba(255, 236, 130, 0));
    }
    25% {
        transform: scale(1.04);
        filter: brightness(1.35) contrast(1.1)
                drop-shadow(0 0 10px rgba(255, 236, 130, 0.95))
                drop-shadow(0 0 20px rgba(255, 200, 40, 0.6));
    }
    55% {
        transform: scale(1.02);
        filter: brightness(1.15) contrast(1.05)
                drop-shadow(0 0 6px rgba(255, 236, 130, 0.5));
    }
    100% {
        transform: scale(1);
        filter: brightness(1) contrast(1) drop-shadow(0 0 0 rgba(255, 236, 130, 0));
    }
}

@keyframes goalShineText {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 236, 130, 0));
    }
    25% {
        filter: drop-shadow(0 0 8px rgba(255, 236, 130, 0.95));
    }
    100% {
        filter: drop-shadow(0 0 0 rgba(255, 236, 130, 0));
    }
}

@keyframes goalShineSparkle {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: scale(1.15) rotate(15deg);
    }
    70% {
        opacity: 0.9;
        transform: scale(1) rotate(-10deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) rotate(0deg);
    }
}

/* 点灯し続ける待機状態（ゆっくり明滅） */
@keyframes goalShineIdle {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1.05)
                drop-shadow(0 0 6px rgba(255, 236, 130, 0.45));
    }
    50% {
        transform: scale(1.015);
        filter: brightness(1.2)
                drop-shadow(0 0 14px rgba(255, 236, 130, 0.85))
                drop-shadow(0 0 24px rgba(255, 200, 40, 0.5));
    }
}

@keyframes goalShineTextIdle {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(255, 236, 130, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 9px rgba(255, 236, 130, 0.9));
    }
}

@keyframes goalShineSparkleIdle {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.85) rotate(-6deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(8deg);
    }
}

/* アニメーション苦手なユーザーへの配慮（動きは止めるが、光ったままにする） */
@media (prefers-reduced-motion: reduce) {
    .readyButton.goal-shine .nextstageImg,
    .readyButton.goal-shine-idle .nextstageImg {
        animation: none;
        filter: brightness(1.15)
                drop-shadow(0 0 12px rgba(255, 236, 130, 0.8));
    }

    .readyButton.goal-shine .nextstage,
    .readyButton.goal-shine-idle .nextstage {
        animation: none;
        filter: drop-shadow(0 0 6px rgba(255, 236, 130, 0.7));
    }

    .readyButton.goal-shine .nextstage::after,
    .readyButton.goal-shine-idle .nextstage::after {
        animation: none;
        opacity: 1;
    }
}

/* 疑似要素の光ラインエフェクトを削除し、星エフェクトのみ残す */
.StageTemp .stagebox.unlock-effect::after {
    content: "✨";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    animation: sparkleFloat 2s ease-out forwards;
    pointer-events: none;
    z-index: 4;
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* 全コース共通：解放エフェクト設定 */
.StageTemp .stagebox.unlock-effect {
    position: relative;
    overflow: visible;
    animation: stageboxPulse 1.5s ease-out 0.3s forwards;
}

/* 最後の手段：画像エフェクトなし、背景の強い光のみ */
.StageTemp .stagebox.unlock-effect.background-only img:first-of-type {
    animation: none !important;
    filter: none !important;
    clip-path: none !important;
}

/* 既存の背景エフェクトに星エフェクトを統合 */
.StageTemp .stagebox.unlock-effect::before {
    content: "✨";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle at center, 
                rgba(255, 215, 0, 0.8) 0%, 
                rgba(255, 215, 0, 0.4) 40%, 
                rgba(255, 215, 0, 0.1) 70%,
                transparent 100%);
    border-radius: 50%;
    animation: unlockGlow 2s ease-out forwards;
    pointer-events: none;
    z-index: -1;
    
    /* 星の位置とスタイル */
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 25px;
    font-size: 24px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 画像の光スイープエフェクト - ベース画像（stageIcon）のみに円形クリップを適用 */
.StageTemp .stagebox.unlock-effect > img:first-of-type {
    filter: brightness(1);
    animation: imageGlowAndSlash 1.5s ease-out 0.4s forwards;
    /* 円形にクリップして四角い部分を完全に除去 */
    clip-path: circle(48% at center);
    -webkit-clip-path: circle(48% at center);
}

/* contentImgLetterWrap内の上乗せ画像は円形クリップを適用しない */
.StageTemp .stagebox.unlock-effect .contentImgLetterWrap img {
    filter: brightness(1);
    animation: imageGlowAndSlash 1.5s ease-out 0.4s forwards;
    /* 円形クリップなし - 四角い画像のまま */
    clip-path: none;
    -webkit-clip-path: none;
}

/* 進化課題・仲間にする課題のunlock-effect時はシルエットを維持しつつ光るエフェクト（モンスター未取得時） */
.StageTemp .stagebox.unlock-effect.unget.getmonster .contentImgLetterWrap img,
.StageTemp .stagebox.unlock-effect.unget.videoFirstEvo .contentImgLetterWrap img,
.StageTemp .stagebox.unlock-effect.unget.videoEvo .contentImgLetterWrap img {
    filter: brightness(0);
    animation: silhouetteGlow 1.5s ease-out 0.4s both;
}

/* シルエット用の光るアニメーション（brightness(0)を維持） */
@keyframes silhouetteGlow {
    0% {
        filter: brightness(0)
                drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    25% {
        filter: brightness(0)
                drop-shadow(0 0 8px rgba(255, 255, 255, 0.7))
                drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: brightness(0)
                drop-shadow(0 0 15px rgba(255, 255, 255, 0.9))
                drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
    75% {
        filter: brightness(0)
                drop-shadow(0 0 8px rgba(255, 255, 255, 0.5))
                drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
    }
    100% {
        filter: brightness(0)
                drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
}

/* 代替案：シンプルな明度変化のみ（光の広がりなし） */
.StageTemp .stagebox.unlock-effect.simple-glow img:first-of-type {
    animation: simpleImageFlash 1.5s ease-out 0.4s forwards;
}

/* レイアウトに影響しない光エフェクト */
@keyframes unlockGlow {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) rotate(360deg);
    }
}

/* 光のラインが左上から右下にキランと走るアニメーション */
@keyframes lightLineSlash {
    0% {
        transform: translateX(-150%) translateY(-150%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(50%) translateY(50%);
        opacity: 0;
    }
}

/* 小さめの光ラインアニメーション（warmup用） */
@keyframes lightLineSlashSmall {
    0% {
        transform: translate(-50%, -50%) translateX(-100%) translateY(-100%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateX(100%) translateY(100%);
        opacity: 0;
    }
}

/* 画像の明度変化エフェクト（透明部分には影響しない） */
@keyframes imageGlowEffect {
    0% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.4) contrast(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
    100% {
        filter: brightness(1) contrast(1);
    }
}

/* 画像に光のスラッシュエフェクトを追加（blur値を最小限に） */
@keyframes imageGlowAndSlash {
    0% {
        filter: brightness(1) contrast(1) 
                drop-shadow(-3px -3px 2px rgba(255, 255, 255, 0));
    }
    25% {
        filter: brightness(1.2) contrast(1.1) 
                drop-shadow(-2px -2px 1px rgba(255, 255, 255, 0.7))
                drop-shadow(-1px -1px 1px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: brightness(1.4) contrast(1.2) 
                drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.9))
                drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.6));
    }
    75% {
        filter: brightness(1.2) contrast(1.1) 
                drop-shadow(2px 2px 1px rgba(255, 255, 255, 0.5))
                drop-shadow(1px 1px 1px rgba(255, 255, 255, 0.7));
    }
    100% {
        filter: brightness(1) contrast(1) 
                drop-shadow(3px 3px 2px rgba(255, 255, 255, 0));
    }
}

/* シンプルな明度変化のみ（光の広がりなし、形状完全尊重） */
@keyframes simpleImageFlash {
    0% {
        filter: brightness(1) contrast(1) saturate(1);
    }
    25% {
        filter: brightness(1.3) contrast(1.2) saturate(1.1);
    }
    50% {
        filter: brightness(1.6) contrast(1.4) saturate(1.2);
    }
    75% {
        filter: brightness(1.3) contrast(1.2) saturate(1.1);
    }
    100% {
        filter: brightness(1) contrast(1) saturate(1);
    }
}

/* ステージボックス全体の微妙なパルスエフェクト */
@keyframes stageboxPulse {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes unlockBounce {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.15) rotate(-3deg);
    }
    30% {
        transform: scale(1.1) rotate(2deg);
    }
    45% {
        transform: scale(1.05) rotate(-1deg);
    }
    60% {
        transform: scale(1.02) rotate(0.5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    40% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
    60% {
        transform: scale(1.1) rotate(540deg);
        opacity: 0.8;
    }
    80% {
        transform: scale(0.8) rotate(720deg);
        opacity: 0.4;
    }
    100% {
        transform: scale(0) rotate(900deg);
        opacity: 0;
    }
}

.pass-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pass-modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.pass-error {
  color: red;
  margin-top: 1rem;
}

.stagebox .stageSpan{
    cursor: default;
    pointer-events: none;

}

/* オルカ演出: 3層構造
   z-index 0: orcaOverlay（暗いオーバーレイ）
   z-index 1: slider-container（ステージ - 明るく表示）
   z-index 3: wrapOruka（オルカ画像+モーダル - 最前面）
*/
.orcaOverlay{
    background-color: #000000ad;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.wrapOruka{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 3;
    display: flex;
    pointer-events: none;
}

/* 画像全体(500x500)ではなく中央50%(250x250)のホットスポットだけクリック可能。
   周辺は背後のステージボタンへクリックを透過させる */
.wrapOruka > .orukaImgWrap{
    margin:auto;
    position: relative;
    pointer-events: none;
}

.wrapOruka > .orukaImgWrap > img{
    display: block;
    pointer-events: none;
}

.orukaHotspot{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
}

/* モーダル・アニメ等の子要素はクリック可能 */
.wrapOruka > div{
    pointer-events: auto;
}

.courseTemp .slider-container{
    z-index: 1;
}

/* オルカオーバーレイ(z-index:1)の上に表示してクリック可能にする */
.courseTemp .returnWrapper{
    z-index: 2;
}
.courseTemp .courseFooter{
    z-index: 2;
}

.modalLp{
    background-color: #000000ad;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 4;
    display: flex;
}

.animeLight{
    opacity:0;
    height: 450px;
    width: 800px;
    background-color: #fff;
    position: relative;
    transition: opacity 1.8s ease;
    z-index:1;
}

.animeLight.faded {
  opacity: 1;
}

.becomeHero{
    font-family: 'Dela Gothic One';
    border-radius: 100px;
    width: fit-content;
    font-size: 1.7rem;
    font-weight: 100;
    border: solid 8px #000;
    line-height: 1.6;
    padding: 3px 11px;
    right: 0;
    left: 0;
    margin: auto;
    cursor:pointer;
    background-color:#fff;
}

.wrapLp{
    color:white;
}

.wrapOruka .animation-container{
    background-color:initial;
}

.animeBkVideo{
    margin-bottom:-11px;
    position: absolute;
    top: 0;
    left: 0;
}

.torialModalWrap{
    overflow-y:auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* 背景を半透明の黒に設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* 全体のスクロールバーのスタイルを設定 */
.torialModalWrap::-webkit-scrollbar,.requireInput::-webkit-scrollbar {
  width: 14px; /* スクロールバーの幅 */
  height: 12px; /* 水平スクロールバーの高さ */
}

/* スクロールバーのトラック（部分）のスタイルを設定 */
.torialModalWrap::-webkit-scrollbar-track,.requireInput::-webkit-scrollbar-track {
  background: #ffffff00; /* トラックの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
}

/* スクロールバーのハンドル（つまみ）のスタイルを設定 */
.torialModalWrap::-webkit-scrollbar-thumb,.requireInput::-webkit-scrollbar-thumb {
  background: #00d2ff; /* ハンドルの背景色 */
  border-radius: 10px; /* 丸みを帯びた角 */
  border: 3px solid #ffffff00; /* トラックと同じ色のボーダーを追加 */
}

/* ハンドルがホバーされた時のスタイル */
.torialModalWrap::-webkit-scrollbar-thumb:hover,.requireInput::-webkit-scrollbar-thumb:hover {
  background: #94ecff; /* ホバー時の背景色 */
}

.trialContent{
    background-color: #fff;
    padding: 55px 49px 10px;
    border: solid 9px #000;
    width: 620px;
    border-radius: 8px;
    margin: 0 auto;
    margin-top: -39px;
    position:relative;
}

.lastTrialExam .trialContent{/*最終課題用　結局全部一緒にしちゃったけど*/
    padding: 55px 12px 10px;
    width: 767px;
}

.materialCol{
    display: flex;
    margin-top:15px;
}

.materialCol > div{
    flex:1;
    cursor:pointer;
}

.materialLetter{
    font-family: 'Dela Gothic One';
    font-size: 1.7rem;
    line-height: 1;
}

.materialCol a{
    color:initial;
    text-decoration:none;
}

.finishTrialButton{
    background-color: red;
    font-family: 'Dela Gothic One';
    font-size: 1.9rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    z-index: 1;
    white-space: nowrap;
    padding: 0px 19px;
    border: solid 5px;
    box-shadow: 0 0 0 6px white;
    border-radius: 16px;
    display: block;
    width: fit-content;
    margin: auto;
    line-height: 1.5;
    margin-top: 36px;
    cursor:pointer;
}

.trialAnswerWrap .finishTrialButton{
    margin-top: 60px;
}

.wrapMaterialImg{
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapMaterialImg img{
    max-height: 100%;
}

.trialContentWrap{
    position:relative;
    color:#000;
}

.trialContentWrap .close{
    top: 0;
    right: 0;
    margin-top: -27px;
    margin-right: -23px;
}

.trialTitle{
    position:relative;
    z-index:1;
}

.trialTitle div{
    font-family: 'Dela Gothic One';
    position: absolute;
    right: 0;
    left: 0;
    margin: 0 auto;
    font-size: 2.3rem;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    margin-top: -80px;
    font-weight: 100;
}

.lastTrialExam .trialTitle div{
    font-size: 1.9rem;
    margin-top: -67px;
}

.trialTitle img{
    max-width:420px;
}

.lastTrialExam .trialTitle img{
    max-width: 364px;
}

.trialAnswerImg{
    max-width:310px;
}

.trialAnswerLetter{
    font-family: 'Dela Gothic One';
    font-size: 3.2rem;
    line-height: 1;
}

.trialAnswerLetter rt{
    margin-bottom:-10px;
}

.gotoMaterial{
    margin-right: -23px;
    margin-bottom: -10px;
    margin-top: -77px;
    width: fit-content;
    cursor: pointer;
}

.lastTrialExam .gotoMaterial{
    margin-right: -6px;    
}

.trialMaterialImg{
    width: 65px;
}

.trialMaterialLetter{
    font-family: 'Dela Gothic One';
    font-size: 1.2rem;
    color: #000;
    text-decoration: none !important;
    text-shadow: 2px 2px 1px #ffffff, -2px 2px 1px #ffffff, 2px -2px 1px #ffffff, -2px -2px 1px #ffffff, 2px 0px 1px #ffffff, 0px 2px 1px #ffffff, -2px 0px 1px #ffffff, 0px -2px 1px #ffffff;
    margin-top: -15px;
}

.flexReturnButton{
    display:flex;
    justify-content:flex-end;
}

.page-id-380 #app{
    background-color:#000000c4;
}

.page-id-380 .gameBk{
    background-color:initial;
}

.page-id-380 .modal-content{
    height: calc(100vh - 94px);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 94px;
    left: 0;
    margin: auto;
    max-height: 500px;
}

.page-id-380 #footer{
    position: fixed;
    bottom: 0;
    width: 100%;
}

.page-id-380 .vueWrap{
    height:100%;
}

.page-id-380 .close{
    top:-12px;
    right:-15px;
}

.trialAnswerWrap a{
    display:block;
    color:initial;
    text-decoration:none;
}

.includeTimerButton{
    display:flex;
    gap: 8px;
    align-items: center;
    margin-top: 52px;
    margin-left:22px;
}

.timerButton{
    width: 120px;
    position: relative;
    height: 57px;
    cursor: pointer;
}

.timerButton img{
    width: 120px;
    position: absolute;
    left: 0;
    top: 0;
}

.timerButton div{
    position: absolute;
    right: 0;
    left: 0;
    margin: auto;
    font-family: 'Dela Gothic One';
    font-size: 1.3rem;
    color: #000;
    line-height: 2.7;
    text-decoration: none !important;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

.includeTimerButton .finishTrialButton{
    margin-right: 0;
    margin-top: 0;
    border-radius: 8px;
}

.wrapLastHina{
    position:relative;
}

.wrapLastHina .materialLetter{
    position: absolute;
    margin: auto;
    margin-top: -65px;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
    right: 0;
    left: 0;
    width: fit-content;
    line-height: 1;
}

.wrapLastHina .materialLetter rt{
    font-size: 0.7rem;
}

.lastTrialExam .trialTitle rt{
    font-size: 0.7rem;   
}

.wrapLastHina .wrapMaterialImg{
    height:140px;
    width: 196px;
}

.wrapMaterialImg img{
    margin-top: -14px;
}

.timerWrap{
    background-color: #000;
    border-radius: 16px;
}

.degitalTimer{
    font-family: "Mochiy Pop One", serif;
    font-size:6.5rem;
}

.trialContentWrap .bottomHina{
    position: absolute;
    right: 0;
    bottom: 0;
    margin-right: -149px;
    margin-bottom: 66px;
}

.bottomHina.rightHina{/*--ゼロカラ、アレンジで動画横にヒナ*/
    position: absolute;
    right: 0;
    bottom: 0;
    margin-right: -149px;
    margin-bottom: 54px;
}

/*-- 動画モーダルのフィードバック導線 --------------------------------------
   置き場所は「動画の右の余白」だけ。動画の上には絶対に重ねない。
   動画は視聴中の画面で、何を乗せても邪魔になる。

   実測(2026-08)で分かっている制約:
     - 右に使える余白は (100vw - 動画幅) / 2 しかなく、動画は max-width:978px 固定。
       文言つきのボタン(幅153px)では viewport 1036px で40px見切れた。
     - 動画の「下」に流すと、スキップ等が入る .videoBottom（高さ100px）に23px重なり、
       子どもがスキップを狙って誤タップする状態になった。
     - 動画の中に置くと視聴の邪魔になる。

   そのため幅を詰めた縦長の小ボタン(56px)にし、必要な余白を
   56 + 間隔8 = 64px まで下げた。(100vw - 978) / 2 >= 64 となるのは約1106px以上。
   余裕を見て 1110px を閾値とし、それ未満では表示しない。
   その場合の導線は設定メニュー（全画面幅で到達可能）が担う。

   ※ 閾値は最悪ケース（動画が最大幅978pxのとき）基準なので保守的。
      ウィンドウが低いと動画も細くなり余白は増えるが、
      CSSのメディアクエリでは幅と高さの関係を正確に表現できないため、
      はみ出す側ではなく取りこぼす側に倒している。 */
.videoFeedbackBtn{
    /* 既定は非表示。余白が確保できる画面幅でだけ出す。 */
    display: none;
}

@media (min-width: 1110px) and (min-aspect-ratio: 1/1){
    .videoFeedbackBtn{
        position: absolute;
        /* 縦位置は top 基準。rightHina（「ヒナに質問する」）は bottom 基準かつ
           高さ可変なので、上下で棲み分けて重なりを構造的に避ける。
           閉じるボタン（.modal-content .close は top:-21px）の下に逃がす。 */
        top: 76px;
        right: 0;
        /* ボタン幅56px + 動画との間隔8px ぶん外側へ */
        margin-right: -64px;
        width: 56px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 7px 2px 6px;
        background: rgba(255,255,255,0.92);
        border: 2px solid #2b9e6e;
        border-radius: 12px;
        color: #2b9e6e;
        cursor: pointer;
        transition: transform .15s ease, background .15s ease;
    }
    .videoFeedbackBtn:hover{
        transform: scale(1.08);
        background: #fff;
    }
    .videoFeedbackBtn:focus-visible{
        outline: 3px solid #2b9e6e;
        outline-offset: 2px;
    }
    .videoFeedbackBtn i{
        font-size: 1.15rem;
        line-height: 1;
    }
    /* ルビ付きラベル。ルビは行間を押し広げるので、行の高さを明示して詰める。 */
    .videoFeedbackBtnLabel{
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
    }
    .videoFeedbackBtnLabel rt{
        font-size: 0.5em;
    }
}

/*-- SO完成動画ボタン（動画下、質問するの左隣） --*/
.bottomSoVideo{
    cursor: pointer;
    width: 110px;
    flex-shrink: 0;
}
.bottomSoVideo img{
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.bottomSoVideo:hover img{
    transform: scale(1.1);
    filter: brightness(1.15);
}

/*-- SOツールボタン（動画右側、縦並び）※廃止 --*/
.so-tools-container{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: -130px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
.so-tools-container.so-tools-fade-in{
    animation: soToolsFadeIn 1.5s ease-in-out forwards;
}
@keyframes soToolsFadeIn{
    0%{ opacity:0; transform: translateY(-50%) scale(0.8); }
    50%{ opacity:0.5; transform: translateY(-50%) scale(1.05); }
    100%{ opacity:1; transform: translateY(-50%) scale(1); }
}
.so-tool-button{
    width: 110px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.so-tool-button:hover{
    transform: scale(1.1);
    filter: brightness(1.15);
}
.so-tool-button img{
    width: 100%;
    height: auto;
    display: block;
}

/*-- rightHina レスポンシブ（動画横→動画上） --*/
@media (max-width: 767px), (max-aspect-ratio: 1/1){
    .bottomHina.rightHina{
        position: static;
        margin-right: 0;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: auto;
        padding: 6px 0;
    }
    .bottomHina.rightHina img{
        position: static;
        transform: none;
        max-width: 60px;
    }
    .bottomHina.rightHina p{
        position: static;
        transform: none;
        margin-top: 0;
        font-size: 0.75rem;
    }
}

/*-- SOツールボタン レスポンシブ --*/
@media (max-width: 767px), (max-aspect-ratio: 1/1){
    .so-tools-container{
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-right: 0;
        margin-top: 8px;
        transform: none;
        top: auto;
        right: auto;
    }
    .so-tools-container.so-tools-fade-in{
        animation: soToolsFadeInMobile 1.5s ease-in-out forwards;
    }
    @keyframes soToolsFadeInMobile{
        0%{ opacity:0; transform: scale(0.8); }
        50%{ opacity:0.5; transform: scale(1.05); }
        100%{ opacity:1; transform: scale(1); }
    }
    .so-tool-button{
        width: 80px;
    }
}

.ai-container ~ .torialModalWrap, .modal ~ .torialModalWrap, .ai-container ~ .modal,#videoModal ~ .animation-container{
    background-color:initial;
}

.courseListWrap .disabled {
  filter: brightness(57%);
  pointer-events: none; /* クリック操作無効 */
}

/* ページング時のスライドアニメーション用 */
.slide-monster-left-enter-active,
.slide-monster-left-leave-active,
.slide-monster-right-enter-active,
.slide-monster-right-leave-active {
  transition: transform 0.3s ease;
  position: relative;
  /* スライド時に要素が重ならないようにする場合は position: absolute; 等も検討 */
  display: block;
}

/* 次へ押下時に左に消えて、右から入る */
.slide-monster-left-enter {
  transform: translateX(100%);
}
.slide-monster-left-leave-to {
  transform: translateX(-100%);
}

/* 前へ押下時に右に消えて、左から入る */
.slide-monster-right-enter {
  transform: translateX(-100%);
}
.slide-monster-right-leave-to {
  transform: translateX(100%);
}

/* ボタン類は自由にデザインしてください */
.pagingButtons {
  display: flex;
  justify-content: flex-end;
}

.pageButton {
  background: #fff;
  border: 2px solid #333;
  padding: 0.5em 1.5em;
  margin: 0 0.5em;
  cursor: pointer;
}
.pageButton:hover {
  background: #eee;
}

.monsterBoxFlex2{
    overflow: hidden;
}

/* ページ外形幅をスライダー幅(100%)に一致させる（translateX(-n×100%)の歩幅とズレるとスライド毎に位置が狂う） */
.monster-grid-page{
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 30px;
}

.videoTitle {
    position: absolute;
    top: 3px;
    left: 3px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.voice-spinner {
  margin-top: -10px; 
  /* 適宜位置を調整 */
}
.voice-spinner .loader {
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top: 3px solid #00aaff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    position: absolute;
    margin-top: -36px;
    left: 0;
    margin-left: 90px;
    background-color: #fff;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.volumeCanvas,.bigMic{
    position: absolute;
    pointer-events: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.micButton{
    cursor:pointer;
    width:65px;
}

.micButton.disabled {
  pointer-events: none;
  opacity: 0.5; /* 状態を視覚的に表現するため */
}

.wrapMicFukidashi{
    display:none;
    position: absolute;
    width: 169px;
    z-index: 1;
    right: 165px;
    bottom: 165px;
}

.micFukidashi{
    position: absolute;
    transform: scale(-1, 1);
    top: 0;
    right: 0px;
    bottom: 0;
    left: 0px;
    margin: auto;
}

.wrapMicFukidashi div{
    position: absolute;
    height: 81px;
    font-weight: bold;
    line-height: 1.5;
    top: 0;
    right: 0px;
    bottom: 0;
    left: 0px;
    margin: auto;
}

.micButton:not(.disable):hover + .wrapMicFukidashi, .wrapMicFukidashi:hover{
    display:block;   
}

.wrapMicFukidashi2{
    position: absolute;
    width: 169px;
    top: -149px;
    right: 0;
    bottom: 0;
    left: -479px;
    margin: auto;
    z-index: 1;
}

.micFukidashi2{
    position: absolute;
    transform: scale(-1, 1);
    top: 0;
    right: 0px;
    bottom: 0;
    left: 0px;
    margin: auto;
}

.wrapMicFukidashi2 div{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    height: 88px;
    font-weight: bold;
    line-height: 1.5;
}

.bigMic{
    width:75px;
}

.volumeCanvas{
    background-color: #fff;
    border-radius: 151px;
}

.wrapRecordOKC{
    position:absolute;
    top: 0;
    right: 0px;
    bottom: -178px;
    left: 539px;
    margin: auto;
    height: 100px;
}

.recordOK{
    width: 100px;
    height: 100px;
    margin-right: 18px;
    cursor:pointer;
}

.recordCancel{
    width: 100px;
    height: 100px;
    cursor:pointer;
}

.normal-border {
    border: 2px solid #3f70e8;
    color: #3f70e8;
    background: #fff;
    margin: 16px auto;
    padding: 6px 10px;
    border-radius: 30px;
    cursor: pointer;
    width: 300px;
    text-align: center;
}

.normal-border:hover {
  /*background: #fffed8;*/
}

.normal-border#start-hero-subscription{
    margin-left: 0;
}

.parents_password_enter{
    width:400px;
}

#reset-message{
    margin-top: 20px;
    color: #333;
    padding: 14px 21px;
    font-size: 15px;
    /*background-color: #e8fffc;*/
    border-radius: 12px;
}

.currentProhibit{
    margin-top:12px;
}

.prohibitButton{
    border: solid 3px #393939;
    border-radius: 100px;
    width: 186px;
    padding: 3px 13px;
    background-color: #6787e2;
    color: white;
    margin: 21px 0px;
    cursor: pointer;
    text-align: center;
}

.prohibitExplainTitle{
    text-align: center;
    margin: 0 auto -18px;
    background-color: white;
    z-index: 1;
    position: relative;
    width: fit-content;
    font-weight: bold;
    font-size: 1rem;
}

.prohibitExplain{
    border: dotted 3px #5a5a5a;
    padding: 16px 10px 10px;
    border-radius: 6px;
    font-size: 1rem;
}

label{
    cursor:auto;
}

 /* === ボタンを表示するエリア ============================== */
.switchArea {
    line-height: 34px;
    letter-spacing: 0;
    text-align: center;
    font-size: 18px;
    position: relative;
    width: 83px;
    background: #fff;
    border-radius: 30px;
}

 /* === チェックボックス ==================================== */
.switchArea input[type="checkbox"] {
  display        : none;            /* チェックボックス非表示 */
}

 /* === チェックボックスのラベル（標準） ==================== */
.switchArea label {
    display: block;
    box-sizing: border-box;
    height: 35px;
    border: 2px solid #999999;
    border-radius: 30px;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

 /* === チェックボックスのラベル（ONのとき） ================ */
.switchArea input[type="checkbox"]:checked +label {
  border-color   : #78bd78;             /* 選択タブの枠線     */
}

 /* === 表示する文字（標準） ================================ */
.switchArea label span:after{
  content        : "OFF";               /* 表示する文字       */
  padding        : 0 0 0 24px;          /* 表示する位置       */
  color          : #999999;             /* 文字色             */
}

 /* === 表示する文字（ONのとき） ============================ */
.switchArea  input[type="checkbox"]:checked + label span:after{
  content        : "ON";                /* 表示する文字       */
  padding        : 0 24px 0 0;          /* 表示する位置       */
  color          : #78bd78;             /* 文字色             */
}

 /* === 丸部分のSTYLE（標準） =============================== */
.switchArea #swImg {
    position: absolute;
    width: 27px;
    height: 27px;
    background: #999999;
    top: 4px;
    left: 4px;
    border-radius: 26px;
    transition: .2s;
}

 /* === 丸部分のSTYLE（ONのとき） =========================== */
.switchArea input[type="checkbox"]:checked ~ #swImg {
  transform      : translateX(48px);    /* 丸も右へ移動       */
  background     : #78bd78;             /* カーソルタブの背景 */
}

.parents-warning-message{
    background-color: #ffd6d6;
    font-size: 1rem;
    padding: 5px 10px;
    color: red;
    margin: 0;
}

.spinner-container {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.spinner {
  border: 4px solid #f3f3f3; /* 薄いグレー */
  border-top: 4px solid #3498db; /* 青 */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

/* スピナーの回転アニメーション */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-container {
    padding: 20px;
  }
  .gauges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .gauge-wrapper {
    text-align: center;
    margin: 0 20px;
  }

  .gauge {
    display: inline-block;
    margin: 10px;
  }
  .gauge__background {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
  }
  .gauge__progress {
    fill: none;
    stroke: #3e98c7;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
  }
  .gauge__text {
    font-size: 0.5em;
    text-anchor: middle;
    fill: #333;
  }

.modal-body h2{
    border:none;
    margin-bottom: 20px;
}

.um-postmessage{
    font-size:1.2rem;
}

.msgWrap{
    padding: 10px;
    background-color: #dff0d8;
    border: 1px solid #3c763d;
    color: #3c763d;
    margin-bottom: 44px;
}

[id^="migration-token-field"]{
    display:none!important;
}

.server-errors{
    color: red;
    background-color: #ffeaea;
    padding: 10px;
    border: solid;
    margin: 70px 20px 0;
}

.headerMsgWrap{
    margin: 70px 20px 0;
}

/* ========================================
   サブアカウント追加フォーム — クラフト・エディトリアル
   modern-form-container は display_subaccount_form() でのみ使用
   ======================================== */
.modern-form-container {
    max-width: 620px;
    margin: 28px auto;
    background: #ffffff;
    padding: 8px 30px 24px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0ea5e9;
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 18px 36px -18px rgba(15, 23, 42, 0.18);
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
    color: #0f172a;
    position: relative;
}
.form-header {
    font-family: "Outfit", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    padding: 0 0 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 22px;
    color: #0f172a;
    position: relative;
}
.form-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: #0ea5e9;
}
.modern-form-container .form-group {
    margin-bottom: 18px;
    position: relative;
}
.modern-form-container label {
    display: block;
    font-family: "Outfit", "Yu Mincho", serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    color: #0f172a;
}
.modern-form-container input,
.modern-form-container textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: "Noto Sans JP", system-ui, sans-serif;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.modern-form-container input::placeholder,
.modern-form-container textarea::placeholder {
    color: #94a3b8;
}
.modern-form-container input:focus,
.modern-form-container textarea:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 3px #e0f2fe;
}
.modern-form-container .error-bubble {
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-left: 3px solid #ef4444;
    border-radius: 4px;
    padding: 6px 12px;
    position: absolute;
    top: calc(100% + -85px);
    right: -6px;
    z-index: 10;
    font-size: 12.5px;
    line-height: 1.5;
    color: #991b1b;
    box-shadow: 0 6px 14px -8px rgba(239, 68, 68, 0.4);
}
.modern-form-container .error-bubble::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 19px;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: #ef4444 transparent transparent transparent;
}
.modern-form-container .error-bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 20px;
    border-width: 8px 8px 0 0;
    border-style: solid;
    border-color: #fee2e2 transparent transparent transparent;
}
.modern-form-container .submit-btn {
    background: #0ea5e9;
    color: #fff;
    border: 1px solid #0284c7;
    padding: 12px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Noto Sans JP", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    width: 100%;
    transition: all 0.18s ease;
}
.modern-form-container .submit-btn:hover {
    background: #0284c7;
    box-shadow: 0 6px 16px -8px rgba(2, 132, 199, 0.55);
}

/* 必須マーク（赤）— 朱に揃える */
.modern-form-container label span[style*="color:red"],
.modern-form-container label span[style*="color: red"] {
    color: #ef4444 !important;
}

/* フォーム内の back-link を kraft 化（global .back-link を上書き） */
.modern-form-container .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Noto Sans JP", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    margin: 0 0 14px;
    padding: 4px 0;
    background: transparent;
    border-radius: 0;
    transition: color 0.18s ease;
}
.modern-form-container .back-link:hover {
    color: #0ea5e9;
    background: transparent;
}
.modern-form-container .back-link .back-icon {
    width: 22px;
    height: 22px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}
.modern-form-container .back-link .back-icon svg {
    width: 14px;
    height: 14px;
    fill: #475569;
    transition: fill 0.18s ease;
}
.modern-form-container .back-link:hover .back-icon svg {
    fill: #0ea5e9;
}

.content {
    margin-top:0px;
}

#container>.content{
    min-height: calc(100vh - 149px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    margin-left: -21px;
    margin-bottom: -4px;
  }
  
  .back-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
  }
  
  .back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 8px;
  }
  
  .back-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }
  
  .caption-wrap svg:first-child {
    width: 38px;
    margin-left: -6px;
  }


/*-----記事一覧3列横並び-----*/

.widget-entry-cards.card-large-image .a-wrap {
    width:32%;  /*PCで3列*/
    display: inline-flex;
    text-align: left; /*タイトルを左寄せ*/
    justify-content: center;
}
    
.article h2.rote:before{
    content: "";
    position: absolute;
    width: 1.3em;  /* 画像の幅（必要に応じて調整） */
    height: 1.3em; /* 画像の高さ（必要に応じて調整） */
    left: .25em;
    top: .5em;
    background: url("https://codebraver.com/api/monster-image.php?name=%E3%83%AD%E3%83%BC%E3%83%881.png") no-repeat center center;
    background-size: contain; /* 画像が枠内に収まるようにする */
    transform: scaleX(-1); /* 水平方向に反転 */
    animation: switchImages 2s infinite;
}

/************************************
** ショートコードカテゴリ一覧
************************************/
.custom-entry-card-wrap.a-wrap {
    text-decoration: none;
    display: block;
    color: #333;
    padding: 1.5%;
    margin-bottom: 3%;
    transition: all 0.3s ease-in-out;
  }
  .custom-entry-card-wrap h2 {
    color: #333;
    font-size: 18px;
    margin: 0 0 5px 0;
    padding: 0;
    line-height: 1.6;
    font-weight: bold;
    background: none;
  }
  .custom-entry-card-wrap .entry-card-content {
    margin-left: 216px;
  }
  .custom-entry-card-wrap .entry-card-thumb {
    width: 216px;
  }
  .custom-entry-card-wrap .card-thumb img {
    display: block;
    width: 216px;
    height: 100%;
    max-height: 140px;
    object-fit: cover;
  }
  
  .pagination.cumstom_pagination .border-partition a,
  .pagination-next.cumstom_pagination .border-partition a,
  .pagination-next.cumstom_pagination .border-partition a:first-of-type {
    border-top: solid;
    border-left: solid;
    border-right: solid;
    border-bottom: solid;
  }
  
  .wrapLoginForm{
    background: white;
    padding: 22px 30px;
    width: fit-content;
    margin: 0 auto;
    border-radius: 10px;
  }
  
  @media screen and (max-width: 480px) {
    .custom-entry-card-wrap h2 {
      font-size: 16px;
      line-height: 1.3;
    }
    .custom-entry-card-wrap .entry-card-content {
      margin-left: 38%;
    }
    .custom-entry-card-wrap .entry-card-thumb {
      width: 38%;
    }
    .custom-entry-card-wrap .card-thumb img {
      width: 100%;
      height: 18vw;
      max-height: 180px;
    }
  }

@keyframes switchImages {
    0%, 49.9% {
        background: url("https://codebraver.com/api/monster-image.php?name=%E3%83%AD%E3%83%BC%E3%83%881.png") no-repeat center center;
        background-size: contain;
    }
    50%, 100% {
        background: url("https://codebraver.com/api/monster-image.php?name=%E3%83%AD%E3%83%BC%E3%83%882.png") no-repeat center center;
        background-size: contain;
    }
}

.page  .author-info{
    display:none;
}

.page .date-tags{
    display:none;
}

#payment-error-message {
  background-color: #fff0f0; /* 薄い赤背景 */
  color: #c00;             /* 暗めの赤文字 */
  border: 1px solid #ffaaaa; /* 赤系のボーダー */
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
  text-align: center; /* メッセージを中央寄せにする場合 */
}

#payment-error-message p { /* エラーメッセージ内にpタグがある場合のマージン調整など */
  margin-bottom: 0;
}

/* ========================================
   団体管理ページ ─ Quiet Conservatory（自然 × 明るい近未来）
   refined editorial minimalism — 純白、ヘアライン、
   エメラルドの一点。装飾は引き、間で語る。
   group-management のみ適用。parents-management は別の warm-* 系を温存。
   ======================================== */
/* フォント（Outfit / Noto Sans JP / JetBrains Mono）は includes/spa-asset-trim.php の
   sm_enqueue_group_management_fonts() で団体管理テンプレートだけに読み込む。
   @import はセレクタでスコープできず全ページが取得してしまうため、ここには書かない。 */

/* 団体管理: 純白のシート、エディトリアルなヘアライン、
   ほのかな影だけで紙の存在を示す */
.page-template-group-management article {
    background: #ffffff;
    border: 1px solid #e6e9e7;
    border-radius: 8px;
    box-shadow:
        0 1px 0 rgba(15, 31, 27, 0.02),
        0 1px 3px rgba(15, 31, 27, 0.04);
    margin-top: 64px;
}
@media (max-width: 768px) {
    .page-template-group-management article {
        margin-top: 56px;
        border-radius: 6px;
    }
}

.page-template-group-management article.article {
    padding: 0;
}

/* h1 — エメラルドの細い縦線 1 本だけ。色は控えめ（emerald-700）。
   グロー・ドロップレット・グラデーションは全廃。 */
.page-template-group-management h1.entry-title {
    display: block;
    margin: 0;
    padding: 10px 24px 10px 24px;
    color: #0f1f1b;
    font-family: "Outfit", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    font-size: 1.55em;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-align: left;
    position: relative;
}
.page-template-group-management h1.entry-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: #047857;
    border-radius: 0;
}

.page-template-group-management .entry-content {
    padding: 0 28px 32px;
    margin-top: 0;
    background-color: transparent;
}

/* article-header: フラットな白、ヘアラインで下端を区切る。
   見出し下のアクセントは 1 本の細い線、エメラルドで先頭だけ着色。 */
.page-template-group-management .article-header {
    text-align: left;
    margin-top: 0;
    padding: 22px 28px 20px;
    border-radius: 8px 8px 0 0;
    background: #ffffff;
    border-bottom: 1px solid #e6e9e7;
    position: relative;
}
.page-template-group-management .article-header::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: -1px;
    width: 28px;
    height: 1px;
    background: #047857;
}
@media (max-width: 768px) {
    .page-template-group-management .article-header {
        border-radius: 6px 6px 0 0;
        padding: 18px 20px 16px;
    }
    .page-template-group-management .entry-content {
        padding: 0 20px 24px;
    }
    .page-template-group-management .article-header::after {
        left: 20px;
    }
}

/* ========================================
   Cocoon親テーマのカスケード打ち消し
   group-management ページに限定して適用
   ======================================== */
.page-template-group-management .subaccount-table-container .desktop-table tr:nth-of-type(2n+1) {
    background-color: transparent;
}
.page-template-group-management .subaccount-table-container .desktop-table tbody tr:nth-child(even) {
    background-color: rgba(226, 232, 240, 0.08);
}
.page-template-group-management .subaccount-table-container .desktop-table th,
.page-template-group-management .subaccount-table-container .desktop-table td {
    border: none;
    padding: 11px 14px;
}
.page-template-group-management .subaccount-table-container .desktop-table tbody tr:hover {
    background-color: #f7f8f7;
}
.page-template-group-management .subaccount-table-container .desktop-table tbody tr.restricted-row,
.page-template-group-management .subaccount-table-container .desktop-table tbody tr.restricted-row:nth-of-type(2n+1) {
    background-color: rgba(226, 232, 240, 0.12);
}
/* CSVプレビューテーブルもCocoonの罫線をリセット */
.page-template-group-management .csv-preview-table tr:nth-of-type(2n+1) {
    background-color: transparent;
}
.page-template-group-management .csv-preview-table th,
.page-template-group-management .csv-preview-table td {
    border: none;
}
.page-template-group-management .csv-preview-table th {
    background-color: #f7f8f7;
}

/* フィルター入力 — Cocoonの input[type=text]{width:100%} を上書き */
.page-template-group-management .filter-container input[type="text"],
.page-template-group-management .filter-container input[type="search"],
.page-template-group-management .filter-container input {
    width: auto;
    flex: 1 1 150px;
    padding: 7px 12px;
}
@media (max-width: 768px) {
    .page-template-group-management .filter-container input[type="text"],
    .page-template-group-management .filter-container input[type="search"],
    .page-template-group-management .filter-container input {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* table の下マージンが邪魔になる場合の調整 */
.page-template-group-management .subaccount-table-container .desktop-table,
.page-template-group-management .csv-preview-table {
    margin-bottom: 0;
}

/* select も Cocoon の影響を打ち消す（学校設定タブ） */
.page-template-group-management .school-settings-panel select,
.page-template-group-management .quality-setting select,
.page-template-group-management .setting-item select {
    width: auto;
    padding: 8px 12px;
}

/* ========================================
   Cocoon親テーマの h2/h3 バッジ装飾を打ち消す
   .article h2 { padding:25px; background-color:var(--cocoon-xx-thin-color); ... }
   .article h3 { border-left:7px ...; border:1px ...; padding:12px 20px; ... }
   団体管理ページ内では自前のクラフト見出しに揃える
   ======================================== */
.page-template-group-management .article h2,
.page-template-group-management .article h3,
.page-template-group-management .article h4,
.page-template-group-management .article h5,
.page-template-group-management .article h6 {
    background: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    line-height: 1.4;
    font-weight: inherit;
}
/* Cocoon親テーマの h2/h3 :before / :after バッジを抑止 */
.page-template-group-management .article h2:before,
.page-template-group-management .article h2:after,
.page-template-group-management .article h2::before,
.page-template-group-management .article h2::after,
.page-template-group-management .article h3:before,
.page-template-group-management .article h3:after,
.page-template-group-management .article h3::before,
.page-template-group-management .article h3::after {
    content: none !important;
    display: none !important;
}
/* ただし、自前で付けた .modern-heading::before/::after（左罫＋下罫）は復活 */
.page-template-group-management .article h2.modern-heading::before,
.page-template-group-management .article h2.modern-heading::after {
    content: "" !important;
    display: revert !important;
}

/* h2.modern-heading（学校設定タブ）に kraft 装飾を再付与 */
.page-template-group-management .article h2.modern-heading {
    position: relative;
    font-family: "Outfit", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #0f172a;
    padding: 4px 0 10px 18px;
    margin: 0 0 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* OrganizationBilling .billing-card .card-header h3 / NetworkDiagnostics h3 */
.page-template-group-management .billing-card .card-header h3 {
    font-family: "Outfit", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #0f172a;
}
.page-template-group-management .network-diagnostics h3 {
    font-family: "Outfit", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #0f172a;
    margin: 0 0 8px;
}

/* edit-subaccount / make-subaccount-form の h2/h3 も同様に打ち消し */
.page-template-edit-subaccount .article h2,
.page-template-edit-subaccount .article h3,
.page-template-make-subaccount-form .article h2,
.page-template-make-subaccount-form .article h3 {
    background: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-weight: inherit;
}
.page-template-edit-subaccount .form-container h2 {
    margin: 4px 0 18px;
    font-family: "Outfit", "Yu Mincho", serif;
    font-size: 1.25em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #0f172a;
    padding: 0 0 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* ========================================
   SweetAlert2 ─ 団体管理ページのみ kraft 化
   他ページのダイアログ表示は影響を受けない
   ======================================== */
body.page-template-group-management .swal2-container {
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
    color: #0f172a;
}
body.page-template-group-management .swal2-popup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.45);
    padding: 24px;
}
body.page-template-group-management .swal2-title {
    font-family: "Outfit", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    font-size: 1.25em;
    letter-spacing: 0.02em;
    color: #0f172a;
    padding: 0 0 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    text-align: left;
}
body.page-template-group-management .swal2-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: #0ea5e9;
}
body.page-template-group-management .swal2-html-container,
body.page-template-group-management .swal2-content {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    text-align: left;
    padding: 8px 0;
}
body.page-template-group-management .swal2-html-container strong,
body.page-template-group-management .swal2-content strong {
    color: #0f172a;
    font-family: "Outfit", serif;
}

/* アイコン色を kraft パレットに */
body.page-template-group-management .swal2-icon.swal2-warning {
    border-color: #f59e0b;
    color: #f59e0b;
}
body.page-template-group-management .swal2-icon.swal2-error {
    border-color: #ef4444;
}
body.page-template-group-management .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #ef4444;
}
body.page-template-group-management .swal2-icon.swal2-success {
    border-color: #10b981;
    color: #10b981;
}
body.page-template-group-management .swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #10b981;
}
body.page-template-group-management .swal2-icon.swal2-success .swal2-success-ring {
    border-color: #10b981;
}
body.page-template-group-management .swal2-icon.swal2-info,
body.page-template-group-management .swal2-icon.swal2-question {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

/* アクション（ボタン行） */
body.page-template-group-management .swal2-actions {
    gap: 8px;
    margin-top: 18px;
}

/* confirm/cancel/deny — solid emerald, refined */
body.page-template-group-management .swal2-confirm.swal2-styled {
    background: #047857 !important;
    border: 1px solid #047857 !important;
    border-radius: 6px !important;
    padding: 9px 22px !important;
    font-family: "Noto Sans JP", system-ui, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: #fff !important;
    box-shadow: none !important;
    transition: background 0.18s ease, border-color 0.18s ease !important;
}
body.page-template-group-management .swal2-confirm.swal2-styled:hover {
    background: #065f46 !important;
    border-color: #065f46 !important;
    box-shadow: none !important;
}
body.page-template-group-management .swal2-cancel.swal2-styled {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 9px 18px !important;
    font-family: "Noto Sans JP", system-ui, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    box-shadow: none !important;
    transition: all 0.18s ease !important;
}
body.page-template-group-management .swal2-cancel.swal2-styled:hover {
    background: #f8fafc !important;
    border-color: #0f172a !important;
    color: #0f172a !important;
}
body.page-template-group-management .swal2-deny.swal2-styled {
    background: #ef4444 !important;
    border: 1px solid #b91c1c !important;
    border-radius: 4px !important;
    padding: 9px 22px !important;
    color: #fff !important;
    font-family: "Noto Sans JP", system-ui, sans-serif !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
body.page-template-group-management .swal2-deny.swal2-styled:hover {
    background: #b91c1c !important;
}

/* 入力欄 */
body.page-template-group-management .swal2-input,
body.page-template-group-management .swal2-textarea,
body.page-template-group-management .swal2-select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    font-family: "Noto Sans JP", system-ui, sans-serif !important;
}
body.page-template-group-management .swal2-input:focus,
body.page-template-group-management .swal2-textarea:focus,
body.page-template-group-management .swal2-select:focus {
    border-color: #047857 !important;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.10) !important;
}

/* オーバーレイ */
body.page-template-group-management .swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.55);
}

/* ========================================
   vue-toastification ─ 団体管理ページのみ kraft 化
   ======================================== */
body.page-template-group-management .Vue-Toastification__toast {
    font-family: "Noto Sans JP", system-ui, sans-serif;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.3);
    padding: 14px 18px;
    color: #0f172a;
}
body.page-template-group-management .Vue-Toastification__toast--default {
    background: #ffffff;
}
body.page-template-group-management .Vue-Toastification__toast--success {
    background: #d1fae5;
    border-left: 3px solid #10b981;
    color: #065f46;
}
body.page-template-group-management .Vue-Toastification__toast--error {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
}
body.page-template-group-management .Vue-Toastification__toast--warning {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    color: #075985;
}
body.page-template-group-management .Vue-Toastification__toast--info {
    background: #e0f2fe;
    border-left: 3px solid #0ea5e9;
    color: #0284c7;
}
body.page-template-group-management .Vue-Toastification__toast-body {
    font-size: 13.5px;
    line-height: 1.6;
}
body.page-template-group-management .Vue-Toastification__close-button {
    color: inherit;
    opacity: 0.6;
}
body.page-template-group-management .Vue-Toastification__close-button:hover {
    opacity: 1;
}

/* parents-management（保護者用ページ）— 従来デザインを温存 */
.page-template-page-parents-management article {
    box-shadow: 3px 3px 10px 0px #949494;
    border-radius: 6px;
}
.page-template-page-parents-management article.article {
    padding: 0;
}
.page-template-page-parents-management h1.entry-title {
    font-weight: 100;
    font-size: 1.5em;
    display: inline;
    color: #ffffff;
    padding: 0.1em;
    padding-top: 24px;
    margin-bottom: 0.3em;
    position: relative;
    font-family: "Dela Gothic One";
}
.page-template-page-parents-management .entry-content {
    margin-top: 0;
}
.page-template-page-parents-management .article-header {
    text-align: center;
    margin-top: 12px;
    padding-top: 4px;
    border-radius: 6px 6px 0 0;
    background-image: linear-gradient(90deg, rgb(16 91 158), rgb(57 131 135));
}

.chart-wrapper{
    margin-bottom:35px;
}

.page-template-change-tier .card-body{
    background-color: #fff;
}

/* 決済ページ共通の通知スタイル */
.payment-notice {
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
}
.payment-notice p {
  margin: 0;
  font-size: 1.1em;
}
.notice-login {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.notice-restricted {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

/* フォームコンテナ */
.payment-form-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 3px 22px 22px 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.form-section-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

/* フォームグループ */
.modern-form .form-group {
  margin-bottom: 20px;
}

/* ラベル */
.modern-form .form-label {
  display: block;
  font-size: 1em;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

/* セレクトボックスラッパー（矢印カスタマイズ用） */
.select-wrapper {
  position: relative;
  display: block;
}

.modern-form .form-select {
  display: block;
  width: 100%;
  padding: 12px 15px;
  font-size: 1em;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none; /* 標準の矢印を消す (Chrome, Safari) */
  -moz-appearance: none;    /* 標準の矢印を消す (Firefox) */
  appearance: none;         /* 標準の矢印を消す */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20fill%3D%22%236c757d%22%20d%3D%22M5.70710678%2C8.29289322%20C5.31658249%2C7.90236893%204.68341751%2C7.90236893%204.29289322%2C8.29289322%20C3.90236893%2C8.68341751%203.90236893%2C9.31658249%204.29289322%2C9.70710678%20L9.29289322%2C14.7071068%20C9.68341751%2C15.0976311%2010.3165825%2C15.0976311%2010.7071068%2C14.7071068%20L15.7071068%2C9.70710678%20C16.0976311%2C9.31658249%2016.0976311%2C8.68341751%2015.7071068%2C8.29289322%20C15.3165825%2C7.90236893%2014.6834175%2C7.90236893%2014.2928932%2C8.29289322%20L10%2C12.5857864%20L5.70710678%2C8.29289322%20Z%22/%3E%3C/svg%3E"); /* カスタム矢印 (SVG) */
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px 16px; /* SVGのサイズ調整 */
  padding-right: 40px; /* 矢印スペース確保 */
}

.modern-form .form-select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 料金表示 */
.price-display {
  margin: 20px 0;
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  text-align: center;
}
.price-display .price-amount {
  color: #007bff; /* 主要なテーマカラーに合わせる */
  font-size: 1.3em;
}

/* ボタン */
.btn.btn-primary {
  display: inline-flex; /* 中央揃えのため */
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  background-color: #007bff; /* 主要なテーマカラー */
  border: 1px solid #007bff;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  position: relative; /* スピナーの位置基準 */
}

.btn.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.btn.btn-primary:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
}

/* ボタン内スピナー */
.btn .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
  margin-left: 10px; /* テキストがある場合は調整 */
}
.btn .btn-text + .spinner { /* テキストとスピナーが両方表示されるとき */
    margin-left: 10px;
}
.btn .spinner:only-child { /* スピナーのみ表示されるとき */
    margin-left: 0;
}


@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

/* フォームメッセージ */
.form-message {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 0.95em;
  text-align: center;
}
.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.form-message:not(.error) { /* 成功メッセージや情報メッセージ用 (現状はエラーのみ) */
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* 説明文セクションのスタイル */
.membership-benefits-container {
  max-width: 600px; /* フォームコンテナと幅を合わせる */
  margin: 20px auto;
  padding: 25px 30px;
  background-color: #f0f8ff; /* 明るい青系の背景色、またはテーマに合わせた色 */
  border-radius: 8px;
  border: 1px solid #b0e0e6; /* 少し濃いめの枠線 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefits-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #2c3e50; /* 濃いめのグレー、またはテーマカラー */
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.benefits-intro {
  font-size: 1.1em;
  color: #34495e;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.benefits-list li {
  font-size: 1em;
  color: #34495e;
  margin-bottom: 12px;
  line-height: 1.7;
  display: flex; /* アイコンとテキストを横並びにする */
  align-items: flex-start; /* テキストが複数行になった場合、上揃え */
}

.benefits-list li .benefit-icon {
  color: #27ae60; /* 緑系のアイコンカラー */
  margin-right: 10px;
  font-size: 1.2em; /* アイコンのサイズ調整 */
  line-height: 1.5; /* テキストとの垂直位置調整 */
}

.benefits-list li strong {
  color: #007bff; /* 強調部分のテキストカラー (フォームのボタンなどと合わせる) */
  font-weight: 600;
}

.benefits-note {
  font-size: 0.95em;
  color: #7f8c8d;
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #c8d6e5;
}

/* 既に登録済みなどの情報メッセージ */
.payment-notice.notice-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* 外部決済サイトへの注意書き */
.payment-gateway-note {
  font-size: 0.9em;
  color: #555;
  text-align: center;
  margin-top: 15px;
}

/* クレジットカード情報の安全性について（hero-lp.php / hero-payment.php と同一デザイン） */
.payment-form-container .security-info {
  margin-top: 2rem;
}

.payment-form-container .security-info-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.payment-form-container .security-info-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.payment-form-container .security-info-title:before {
  content: "🔒";
  font-size: 1.2rem;
}

.payment-form-container .security-info p {
  margin-top: 1rem;
  padding-left: 1.8rem;
  color: #4b5563;
  line-height: 1.6;
}

.payment-form-container .stripe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: #6b7280;
  font-size: 0.85rem;
}

/* 現在のプラン情報セクション */
.current-plan-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.current-plan-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.current-plan-detail {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 8px;
}

.current-plan-detail strong {
  color: #007bff; /* テーマカラーに合わせる */
}

/* プラン変更の注意書き */
.proration-note {
  font-size: 0.9em;
  color: #6c757d; /* やや薄めのグレー */
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  line-height: 1.6;
}

/* 警告メッセージ (Stripe API連携プラグインにもあるかも) */
.payment-notice.notice-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
.payment-notice.notice-warning a {
  color: #856404;
  font-weight: bold;
  text-decoration: underline;
}
.payment-notice.notice-warning a:hover {
  color: #533f03;
}

/* 情報メッセージ (Stripe API連携プラグインにもあるかも) */
.payment-notice.notice-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* 支払いページ共通の通知スタイルがまだなければ */
.payment-notice {
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: left; /* こちらは左寄せに */
}
.payment-notice p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.6;
}
.payment-notice.notice-login { /* 既にあれば不要 */
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
  text-align: center;
}

/* フォームメッセージ (エラー時) */
.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px 15px;
  border-radius: 4px;
  margin-top: 15px;
  text-align: center;
}
/* フォームメッセージ (成功時など) */
.form-message:not(.error) {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px 15px;
  border-radius: 4px;
  margin-top: 15px;
  text-align: center;
}

.page-template-change-tier .article,
.page-template-page-parents-email .article,
.page-template-hero-payment .article,
.page-template-page-stripe-success .article,
.page-template-page-stripe-cancel .article
{
    background-color: initial;
}

.page-template-page-stripe-success .article h2:before,
.page-template-page-stripe-cancel .article h2:before
{
    content:"";
}

/* ================================================== */
/* 保護者ページ群 温かみテーマ「縁側のお茶時間」          */
/* 対象: parents-management / parents-email / parents-email-confirmation */
/* ================================================== */
@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Zen+Maru+Gothic:wght@500;700;900&display=swap");

:root {
    --warm-bg: #fbf6ee;
    --warm-bg-2: #f5ecd9;
    --warm-surface: #ffffff;
    --warm-surface-soft: #fdf7ec;
    --warm-honey: #e8a652;
    --warm-honey-deep: #c47e2a;
    --warm-honey-tint: #fae3bf;
    --warm-terracotta: #d97757;
    --warm-terracotta-tint: #fae0d4;
    --warm-rose: #c85a5a;
    --warm-rose-tint: #fde8e8;
    --warm-sage: #7ba37b;
    --warm-sage-tint: #e8f1e1;
    --warm-amber: #b88a3d;
    --warm-amber-tint: #fdf3dc;
    --warm-sky: #84a8c4;
    --warm-sky-tint: #e6f0f6;
    --warm-text: #4a3a2c;
    --warm-text-mute: #7d6855;
    --warm-text-faint: #a89478;
    --warm-line: #ebe0cf;
    --warm-line-strong: #d8c5a4;
    --warm-radius-sm: 10px;
    --warm-radius: 18px;
    --warm-radius-lg: 26px;
    --warm-shadow-sm: 0 3px 10px rgba(120, 80, 40, 0.06);
    --warm-shadow: 0 8px 24px rgba(120, 80, 40, 0.10);
    --warm-shadow-lg: 0 18px 48px rgba(120, 80, 40, 0.14);
    --warm-font-display: 'Zen Maru Gothic', 'Outfit', 'Hiragino Maru Gothic ProN', 'M PLUS Rounded 1c', sans-serif;
    --warm-font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

/* --- ページ全体の温かい背景 --- */
body.page-template-page-parents-management,
body.page-template-page-parents-email,
body.page-template-page-parents-email-confirmation {
    background:
        radial-gradient(ellipse 60% 40% at 12% 8%, var(--warm-honey-tint) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 92% 78%, var(--warm-terracotta-tint) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 105%, var(--warm-sage-tint) 0%, transparent 55%),
        var(--warm-bg);
    background-attachment: fixed;
    font-family: var(--warm-font-body);
    color: var(--warm-text);
}

body.page-template-page-parents-management::before,
body.page-template-page-parents-email::before,
body.page-template-page-parents-email-confirmation::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(120, 80, 40, 0.05) 0.6px, transparent 0.7px);
    background-size: 4px 4px;
    opacity: 0.55;
}

body.page-template-page-parents-management .article,
body.page-template-page-parents-email .article,
body.page-template-page-parents-email-confirmation .article {
    background: transparent !important;
    box-shadow: none !important;
}

body.page-template-page-parents-management .entry-title,
body.page-template-page-parents-email .entry-title,
body.page-template-page-parents-email-confirmation .entry-title {
    font-family: var(--warm-font-display);
    font-weight: 700;
    color: var(--warm-text);
    text-align: center;
    position: relative;
    padding-bottom: 0.7rem;
    letter-spacing: 0.04em;
}
body.page-template-page-parents-management .entry-title::after,
body.page-template-page-parents-email .entry-title::after,
body.page-template-page-parents-email-confirmation .entry-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 6px;
    margin: 0.7rem auto 0;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--warm-honey) 0%, var(--warm-terracotta) 100%);
    opacity: 0.85;
}

/* --- カード共通 --- */
.parent-admin-page {
    background: var(--warm-surface);
    border-radius: var(--warm-radius-lg);
    box-shadow: var(--warm-shadow);
    padding: 2rem 2.25rem;
    border: 1px solid var(--warm-line);
    position: relative;
    z-index: 1;
}

.modern-card--center {
    max-width: 540px;
    margin: 2.5rem auto;
    padding: 2.5rem 2.25rem 2.25rem;
    background: var(--warm-surface);
    border-radius: var(--warm-radius);
    box-shadow: var(--warm-shadow);
    text-align: center;
    border: 1px solid var(--warm-line);
    font-family: var(--warm-font-body);
    color: var(--warm-text);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modern-card--center::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--warm-honey) 0%, var(--warm-terracotta) 50%, var(--warm-sage) 100%);
}

.modern-card--center h2,
.form-header h2 {
    font-family: var(--warm-font-display);
    color: var(--warm-text);
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0.4rem 0 1rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.modern-card--center > p {
    color: var(--warm-text-mute);
    line-height: 1.75;
}

.modern-card--center .login-prompt {
    color: var(--warm-text);
    font-size: 1.05rem;
    line-height: 1.7;
    background: var(--warm-honey-tint);
    padding: 1rem 1.25rem;
    border-radius: var(--warm-radius-sm);
    margin-bottom: 1.5rem;
}

/* --- フォーム共通 --- */
.modern-form .form-group,
.modal-form-grid .form-group {
    margin-bottom: 1.4rem;
    text-align: left;
}

.modern-form label,
.modal-form-grid label {
    display: block;
    font-family: var(--warm-font-body);
    font-weight: 600;
    color: var(--warm-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.modern-form input[type="password"],
.modern-form input[type="email"],
.modern-form input[type="text"],
.modal-form-grid input[type="password"],
.modal-form-grid input[type="email"],
.modal-form-grid input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--warm-line);
    background: var(--warm-surface);
    border-radius: var(--warm-radius-sm);
    font-size: 1rem;
    font-family: var(--warm-font-body);
    color: var(--warm-text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.modern-form input:focus,
.modal-form-grid input:focus {
    border-color: var(--warm-honey);
    background: var(--warm-surface);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(232, 166, 82, 0.18);
}

/* --- ボタン --- */
.modern-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--warm-honey) 0%, var(--warm-honey-deep) 100%);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--warm-font-display);
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s;
    width: 100%;
    max-width: 320px;
    margin: 1rem auto 0;
    box-shadow: 0 6px 16px rgba(196, 126, 42, 0.28);
    letter-spacing: 0.06em;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(196, 126, 42, 0.36);
    color: #fff;
    filter: brightness(1.05);
}

.modern-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(196, 126, 42, 0.22);
}

/* ローディング状態: クリック直後の即時フィードバック + 連打防止 */
.modern-button.is-loading,
.modern-button[aria-busy="true"] {
    pointer-events: none;
    opacity: 0.78;
    cursor: wait;
    transform: none !important;
    filter: none !important;
}
.modern-button.is-loading::after,
.modern-button[aria-busy="true"]::after {
    content: "";
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-left: 0.55em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -0.15em;
    animation: smBtnSpin 0.75s linear infinite;
}
@keyframes smBtnSpin {
    to { transform: rotate(360deg); }
}

/* 通知スイッチのローディング状態 */
.switchArea.is-loading {
    pointer-events: none;
    opacity: 0.6;
    cursor: wait;
}

/* アイコンタイル（カスタマーポータル等）のローディング状態 */
.icon-item.is-loading {
    pointer-events: none;
    opacity: 0.7;
    cursor: wait;
}

.modern-button.danger {
    background: linear-gradient(135deg, var(--warm-rose) 0%, #a83e3e 100%);
    box-shadow: 0 6px 16px rgba(168, 62, 62, 0.26);
}
.modern-button.danger:hover {
    background: linear-gradient(135deg, #d16c6c 0%, #963535 100%);
    box-shadow: 0 10px 24px rgba(168, 62, 62, 0.34);
}
.modern-button.primary-action {
    background: linear-gradient(135deg, var(--warm-sage) 0%, #5e8862 100%);
    box-shadow: 0 6px 16px rgba(94, 136, 98, 0.26);
}
.modern-button.primary-action:hover {
    background: linear-gradient(135deg, #8eb592 0%, #4d7551 100%);
}

a.modern-button {
    box-sizing: border-box;
}

.forgot-password-link {
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: var(--warm-text-mute);
}
.forgot-password-link a {
    color: var(--warm-honey-deep);
    text-decoration: none;
    border-bottom: 1px dashed var(--warm-honey);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}
.forgot-password-link a:hover {
    color: var(--warm-terracotta);
    border-bottom-color: var(--warm-terracotta);
}

/* --- メッセージ --- */
.form-message {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--warm-radius-sm);
    border: 1px solid transparent;
    font-family: var(--warm-font-body);
    line-height: 1.65;
    font-size: 0.95rem;
}
.form-message.success { background-color: var(--warm-sage-tint); color: #345537; border-color: #c5d8b9; }
.form-message.error   { background-color: var(--warm-rose-tint);  color: #803030; border-color: #f1c2c2; }
.form-message.info    { background-color: var(--warm-sky-tint);   color: #3d5a72; border-color: #c3d8e6; }
.form-message.warning { background-color: var(--warm-amber-tint); color: #6d521b; border-color: #ecd9a0; }


/* --- アイコングリッド（管理ページ） --- */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.4rem;
    padding: 0.5rem 0;
    background: transparent;
}

.icon-item {
    background: var(--warm-surface);
    border-radius: var(--warm-radius);
    text-align: center;
    box-shadow: var(--warm-shadow-sm);
    border: 1.5px solid var(--warm-line);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease, border-color 0.25s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    animation: warmFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.icon-item:nth-child(1) { animation-delay: 0.05s; }
.icon-item:nth-child(2) { animation-delay: 0.10s; }
.icon-item:nth-child(3) { animation-delay: 0.15s; }
.icon-item:nth-child(4) { animation-delay: 0.20s; }
.icon-item:nth-child(5) { animation-delay: 0.25s; }
.icon-item:nth-child(6) { animation-delay: 0.30s; }
.icon-item:nth-child(7) { animation-delay: 0.35s; }
.icon-item:nth-child(8) { animation-delay: 0.40s; }

@keyframes warmFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.icon-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--warm-shadow);
    border-color: var(--warm-honey);
}

.icon-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--warm-radius);
    background: radial-gradient(circle at 50% 0%, rgba(232, 166, 82, 0.10) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.icon-item:hover::after {
    opacity: 1;
}

.icon-content {
    padding: 1.5rem 1rem 1.3rem;
    position: relative;
    z-index: 1;
}

.icon-wrapper {
    width: 78px;
    height: 78px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm-honey-tint) 0%, var(--warm-terracotta-tint) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.7), 0 4px 10px rgba(196, 126, 42, 0.12);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-item:hover .icon-wrapper {
    transform: scale(1.06) rotate(-3deg);
}
.icon-wrapper img {
    max-width: 60%;
    height: auto;
}

.icon-desc {
    font-family: var(--warm-font-display);
    font-weight: 700;
    color: var(--warm-text);
    font-size: 0.98rem;
    margin: 0;
    letter-spacing: 0.02em;
}

/* --- モーダル --- */
.parents-modal {
    animation: fadeIn 0.3s ease;
}
.parents-modal,
body.page-template-page-parents-management .parents-modal {
    background-color: rgba(74, 58, 44, 0.45) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.parents-modal-content {
    background: var(--warm-surface);
    border-radius: var(--warm-radius);
    box-shadow: var(--warm-shadow-lg);
    animation: warmModalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 2.25rem;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--warm-line);
    position: relative;
}
.parents-modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--warm-honey), var(--warm-terracotta));
}

@keyframes warmModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.parents-modal .modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--warm-surface-soft);
    color: var(--warm-text-mute);
    font-size: 22px;
    font-weight: 400;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    top: 14px;
    right: 14px;
}
.parents-modal .modal-close:hover {
    background: var(--warm-honey-tint);
    color: var(--warm-text);
    transform: rotate(90deg);
}

.parents-modal-title {
    font-family: var(--warm-font-display);
    font-size: 1.55rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--warm-text);
    letter-spacing: 0.03em;
}

.parents-modal-center-title {
    font-family: var(--warm-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--warm-text);
    background-color: var(--warm-honey-tint);
    width: fit-content;
    padding: 0.32rem 1rem;
    margin: 0 auto 1.3rem;
    border-radius: 100px;
    border: none;
}

.wrap-modal-partial {
    background-color: var(--warm-surface-soft);
    border: 1px solid var(--warm-line);
    border-radius: var(--warm-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(120, 80, 40, 0.04);
}
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.modal-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* --- メール設定 --- */
.wrap-mail-notification {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--warm-honey-tint);
    border-radius: var(--warm-radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: var(--warm-font-display);
    color: var(--warm-text);
}
.current-email {
    font-size: 0.92rem;
    color: var(--warm-text-mute);
    margin-bottom: 1.2rem;
    padding: 0.6rem 0.8rem;
    background: var(--warm-bg-2);
    border-radius: var(--warm-radius-sm);
    border-left: 3px solid var(--warm-honey);
}

/* --- AI設定 --- */
.currentProhibit, .currentProhibitTeacher {
    font-weight: 600;
    margin: 1rem 0;
    font-family: var(--warm-font-body);
    color: var(--warm-text);
}
.status-allowed { color: var(--warm-sage); font-weight: 700; }
.status-prohibited { color: var(--warm-rose); font-weight: 700; }

.prohibitExplain {
    border: 1px solid var(--warm-line);
    margin-top: 1.5rem;
    border-radius: var(--warm-radius-sm);
    overflow: hidden;
}
.prohibitExplainTitle {
    background-color: var(--warm-surface-soft);
    padding: 0.7rem 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--warm-line);
    font-family: var(--warm-font-display);
    color: var(--warm-text);
}
.prohibitExplain-content {
    padding: 1rem;
    font-size: 0.92rem;
    line-height: 1.7;
    background: var(--warm-surface);
    color: var(--warm-text);
}
.prohibitExplain-content small {
    color: var(--warm-text-faint);
}

/* --- メンバーシップ --- */
.membership-info { line-height: 1.8; }
.membership-info p { margin-bottom: 1rem; }
.membership-info .next-payment-info, .service-list {
    background: var(--warm-surface-soft);
    padding: 1rem 1.25rem;
    border-radius: var(--warm-radius-sm);
    margin: 1.5rem 0;
    border-left: 3px solid var(--warm-honey);
}

/* --- パスワードルール表示 --- */
body.page-template-page-parents-management .password-rules-notice,
body.page-template-page-parents-email .password-rules-notice,
body.page-template-page-parents-email-confirmation .password-rules-notice {
    background: var(--warm-honey-tint) !important;
    border: none !important;
    border-left: 3px solid var(--warm-honey) !important;
    border-radius: var(--warm-radius-sm) !important;
    color: var(--warm-text) !important;
}
body.page-template-page-parents-management .password-rules-notice p,
body.page-template-page-parents-email .password-rules-notice p,
body.page-template-page-parents-email-confirmation .password-rules-notice p {
    color: var(--warm-text) !important;
    font-family: var(--warm-font-display);
}
body.page-template-page-parents-management .password-rules-notice ul,
body.page-template-page-parents-email .password-rules-notice ul,
body.page-template-page-parents-email-confirmation .password-rules-notice ul {
    color: var(--warm-text-mute) !important;
}

/* --- 親テーマ(Cocoon) / Ultimate Member の上書き（保護者ページ限定） --- */

/* article ラッパー / .article-header / .entry-title の Cocoon装飾を解除 */
body.page-template-page-parents-management .article,
body.page-template-page-parents-email .article,
body.page-template-page-parents-email-confirmation .article {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
}

body.page-template-page-parents-management .article-header,
body.page-template-page-parents-email .article-header,
body.page-template-page-parents-email-confirmation .article-header,
body.page-template-page-parents-management .entry-header,
body.page-template-page-parents-email .entry-header,
body.page-template-page-parents-email-confirmation .entry-header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1.5rem 0 0.5rem !important;
    margin: 0 !important;
}

/* h1（entry-title）— 親テーマの h1/h2 装飾を強制解除 */
body.page-template-page-parents-management .article .entry-title,
body.page-template-page-parents-email .article .entry-title,
body.page-template-page-parents-email-confirmation .article .entry-title,
body.page-template-page-parents-management h1.entry-title,
body.page-template-page-parents-email h1.entry-title,
body.page-template-page-parents-email-confirmation h1.entry-title {
    font-family: var(--warm-font-display) !important;
    font-size: clamp(1.5rem, 4.5vw, 2rem) !important;
    color: var(--warm-text) !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 0.7rem !important;
    margin: 1.5rem auto 1rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.04em !important;
    font-weight: 700 !important;
    position: relative !important;
}
body.page-template-page-parents-management .article .entry-title::before,
body.page-template-page-parents-email .article .entry-title::before,
body.page-template-page-parents-email-confirmation .article .entry-title::before {
    display: none !important;
    content: none !important;
}
body.page-template-page-parents-management .article .entry-title::after,
body.page-template-page-parents-email .article .entry-title::after,
body.page-template-page-parents-email-confirmation .article .entry-title::after {
    content: "" !important;
    display: block !important;
    width: 60px !important;
    height: 6px !important;
    margin: 0.7rem auto 0 !important;
    border-radius: 100px !important;
    background: linear-gradient(90deg, var(--warm-honey) 0%, var(--warm-terracotta) 100%) !important;
    opacity: 0.85 !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* main/content の余計な背景 */
body.page-template-page-parents-management .main,
body.page-template-page-parents-email .main,
body.page-template-page-parents-email-confirmation .main,
body.page-template-page-parents-management #main,
body.page-template-page-parents-email #main,
body.page-template-page-parents-email-confirmation #main,
body.page-template-page-parents-management .content,
body.page-template-page-parents-email .content,
body.page-template-page-parents-email-confirmation .content {
    background: transparent !important;
    box-shadow: none !important;
}

/* 記事内 h2/h3/h4 の Cocoon skin装飾（黒丸/縦バー擬似要素）を保護者ページで抑制 */
body.page-template-page-parents-management .article h2,
body.page-template-page-parents-management .article h3,
body.page-template-page-parents-management .article h4,
body.page-template-page-parents-email .article h2,
body.page-template-page-parents-email .article h3,
body.page-template-page-parents-email .article h4,
body.page-template-page-parents-email-confirmation .article h2,
body.page-template-page-parents-email-confirmation .article h3,
body.page-template-page-parents-email-confirmation .article h4 {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    position: relative;
}
body.page-template-page-parents-management .article h2:before,
body.page-template-page-parents-management .article h3:before,
body.page-template-page-parents-management .article h4:before,
body.page-template-page-parents-email .article h2:before,
body.page-template-page-parents-email .article h3:before,
body.page-template-page-parents-email .article h4:before,
body.page-template-page-parents-email-confirmation .article h2:before,
body.page-template-page-parents-email-confirmation .article h3:before,
body.page-template-page-parents-email-confirmation .article h4:before,
body.page-template-page-parents-management .article h2::before,
body.page-template-page-parents-management .article h3::before,
body.page-template-page-parents-management .article h4::before,
body.page-template-page-parents-email .article h2::before,
body.page-template-page-parents-email .article h3::before,
body.page-template-page-parents-email .article h4::before,
body.page-template-page-parents-email-confirmation .article h2::before,
body.page-template-page-parents-email-confirmation .article h3::before,
body.page-template-page-parents-email-confirmation .article h4::before {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}
body.page-template-page-parents-management .article .parents-modal-title,
body.page-template-page-parents-management .article .parents-modal-center-title {
    background-color: transparent;
    border: none;
    padding-top: 0;
    padding-bottom: 0;
}
body.page-template-page-parents-management .article .parents-modal-center-title {
    background-color: var(--warm-honey-tint) !important;
    padding: 0.32rem 1rem !important;
}

/* modern-form の中央寄せ（label/input が左に寄りすぎる問題を修正） */
body.page-template-page-parents-management .modern-card--center .modern-form,
body.page-template-page-parents-email .modern-card--center .modern-form,
body.page-template-page-parents-email-confirmation .modern-card--center .modern-form {
    max-width: 380px;
    margin: 0 auto;
}

/* 管理ページのアイコングリッドを 4列固定に復元 */
body.page-template-page-parents-management .icon-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.4rem !important;
}
@media screen and (max-width: 1024px) {
    body.page-template-page-parents-management .icon-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media screen and (max-width: 768px) {
    body.page-template-page-parents-management .icon-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* アイコン画像（青系）を温かみテーマに馴染ませるカラー補正 */
body.page-template-page-parents-management .icon-wrapper img {
    filter: hue-rotate(160deg) saturate(0.85) brightness(1.02);
    transition: filter 0.3s;
}
body.page-template-page-parents-management .icon-item:hover .icon-wrapper img {
    filter: hue-rotate(160deg) saturate(1.0) brightness(1.05);
}

/* モーダルの横幅拡大とオーバーフロー対応 */
body.page-template-page-parents-management .parents-modal-content {
    max-width: 880px !important;
    width: 92% !important;
    padding: 2rem 2.25rem !important;
}
body.page-template-page-parents-management .modal-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    min-width: 0;
}
body.page-template-page-parents-management .modal-form-grid > * {
    min-width: 0;
}
body.page-template-page-parents-management .current-email,
body.page-template-page-parents-management .modal-form-grid .current-email {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
    line-height: 1.5;
}
@media screen and (max-width: 760px) {
    body.page-template-page-parents-management .modal-form-grid {
        grid-template-columns: 1fr;
    }
}

/* メール通知 on/off スイッチ — 元レイアウト復元 */
body.page-template-page-parents-management .wrap-mail-notification {
    flex-wrap: wrap;
    gap: 1rem;
}
body.page-template-page-parents-management .wrap-mail-notification .switchArea {
    flex-shrink: 0;
}

/* Ultimate Member ボタン（.um-button）の上書き */
body.page-template-page-parents-management .um-button,
body.page-template-page-parents-email .um-button,
body.page-template-page-parents-email-confirmation .um-button,
body.page-template-page-parents-management input.um-button,
body.page-template-page-parents-email input.um-button,
body.page-template-page-parents-email-confirmation input.um-button,
body.page-template-page-parents-management a.um-button,
body.page-template-page-parents-email a.um-button,
body.page-template-page-parents-email-confirmation a.um-button {
    background: linear-gradient(135deg, var(--warm-honey) 0%, var(--warm-honey-deep) 100%) !important;
    background-color: var(--warm-honey) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100px !important;
    font-family: var(--warm-font-display) !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(196, 126, 42, 0.28) !important;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.25s !important;
    letter-spacing: 0.06em !important;
    text-shadow: none !important;
}
body.page-template-page-parents-management .um-button:hover,
body.page-template-page-parents-email .um-button:hover,
body.page-template-page-parents-email-confirmation .um-button:hover {
    filter: brightness(1.06) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(196, 126, 42, 0.36) !important;
    color: #fff !important;
}

/* UMセカンダリボタン（登録など） */
body.page-template-page-parents-management .um-button.um-alt,
body.page-template-page-parents-email .um-button.um-alt,
body.page-template-page-parents-email-confirmation .um-button.um-alt {
    background: linear-gradient(135deg, var(--warm-sage) 0%, #5e8862 100%) !important;
    background-color: var(--warm-sage) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(94, 136, 98, 0.26) !important;
}
body.page-template-page-parents-management a.um-button.um-alt,
body.page-template-page-parents-email a.um-button.um-alt,
body.page-template-page-parents-email-confirmation a.um-button.um-alt {
    color: #fff !important;
}

/* UMフォーム入力 */
body.page-template-page-parents-management .um input[type="text"],
body.page-template-page-parents-email .um input[type="text"],
body.page-template-page-parents-email-confirmation .um input[type="text"],
body.page-template-page-parents-management .um input[type="email"],
body.page-template-page-parents-email .um input[type="email"],
body.page-template-page-parents-email-confirmation .um input[type="email"],
body.page-template-page-parents-management .um input[type="password"],
body.page-template-page-parents-email .um input[type="password"],
body.page-template-page-parents-email-confirmation .um input[type="password"] {
    border: 1.5px solid var(--warm-line) !important;
    border-radius: var(--warm-radius-sm) !important;
    background: var(--warm-surface) !important;
    color: var(--warm-text) !important;
    font-family: var(--warm-font-body) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
body.page-template-page-parents-management .um input[type="text"]:focus,
body.page-template-page-parents-email .um input[type="text"]:focus,
body.page-template-page-parents-email-confirmation .um input[type="text"]:focus,
body.page-template-page-parents-management .um input[type="email"]:focus,
body.page-template-page-parents-email .um input[type="email"]:focus,
body.page-template-page-parents-email-confirmation .um input[type="email"]:focus,
body.page-template-page-parents-management .um input[type="password"]:focus,
body.page-template-page-parents-email .um input[type="password"]:focus,
body.page-template-page-parents-email-confirmation .um input[type="password"]:focus {
    border-color: var(--warm-honey) !important;
    box-shadow: 0 0 0 4px rgba(232, 166, 82, 0.18) !important;
    outline: none !important;
}

/* UMラベル */
body.page-template-page-parents-management .um-field-label label,
body.page-template-page-parents-email .um-field-label label,
body.page-template-page-parents-email-confirmation .um-field-label label {
    color: var(--warm-text) !important;
    font-family: var(--warm-font-body) !important;
    font-weight: 600 !important;
}

/* UMリンク */
body.page-template-page-parents-management .um a,
body.page-template-page-parents-email .um a,
body.page-template-page-parents-email-confirmation .um a {
    color: var(--warm-honey-deep) !important;
}
body.page-template-page-parents-management .um a:hover,
body.page-template-page-parents-email .um a:hover,
body.page-template-page-parents-email-confirmation .um a:hover {
    color: var(--warm-terracotta) !important;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .icon-content {
        padding: 1.1rem 0.6rem 1rem;
    }
    .icon-wrapper {
        width: 64px;
        height: 64px;
    }
    .icon-desc {
        font-size: 0.88rem;
    }

    .parents-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    #parents-password-form, #parents-email-change-form {
        margin-top: 1.25rem;
    }
    .parents-modal-title {
        font-size: 1.35rem;
    }
    .parent-admin-page {
        padding: 1.4rem 1rem;
        border-radius: var(--warm-radius);
    }
}

/* --- 既存エイリアス --- */
.normal-border {
    display: inline-block;
    background: linear-gradient(135deg, var(--warm-honey), var(--warm-honey-deep));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    text-align: center;
    transition: filter 0.3s, transform 0.2s;
    font-family: var(--warm-font-display);
    font-weight: 700;
}
.normal-border:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1200px以下*/
@media screen and (max-width: 1200px){
    .arrow{
        width:51px;
    }

    .warmup .content-item img {
        max-width: 204px;
    }

    .clickStartFukidashi{
        margin-top: -58px;
        margin-left: 99px;
    }

    .warmup .clickStartFukidashi img{
        transform: scale(-1, 1);
    }

    .modal-content {
        height: initial;
        width:90%;
        aspect-ratio: 16 / 9;
    }

    .monsterBoxFlex2{
        width: 100%;
    }

    .monster-grid-container{
        grid-template-columns: repeat(auto-fill, minmax(134px, 1fr));
        width: 100%;
    }

    .monster-grid-item img{
        height: 114px;
    }

    .monster-grid-item{
        height: 167px;
        width: 134px;
    }

    .boxMonsterName{
        font-size:1rem;
    }

    .boxMonsterName--long{
        font-size:.8rem;
    }
}

/*1023px以下*/
@media screen and (max-width: 1024px){
    .warmup .content-item img{
            max-width: 131px;
    }

    .stageSpan.stageNo{
        margin-top: -36px;
        font-size: 1.6rem;
    }

    .warmup .marginLeft45 {
        margin-top:0;
    }

    .StageTemp .content-item img.arrow, .arrow{
        max-width: 38px;
    }

    .CourseHeaderImg{
        width: 338px;
    }

    .return img {
        max-width: 62px;
    }

    .toCourseList {
        font-size: 1.1rem;
        margin-top: 4px;
    }

    .clickStartFukidashi{
        /*display:none;*/
    }

    .goalFukidashi div {
        font-size: 1.3rem;
        width: 131px;
        margin-top: 28px;
    }

    .goalFukidashi{
        right: -167px;
        top: -9px;
    }

    .nextstageImg{
        max-width: 262px;
    }

    .stageAnswer .nextstage{
        width: 262px;
        margin-top: -5px;
        font-size: 1.1rem;
    }

    .bottomTitle {
        margin-top: 32px;
    }

    .hiro,.hina{
        width: 83px;
        height: 83px;
        box-shadow: 0 0 0 1px #FF7F00, 0 0 0 2px #FFFF00, 0 0 0 3px #00FF00, 0 0 0 4px #0000FF;
        border: solid 1px;
    }

    .hiro img{
        max-width:61px;
    }

    .hina img{
        max-width: 105px;
    }

    .footerChars{
        margin:0 10px;
    }

    .so-teacher-link {
        right: calc(50% + 200px);
    }

    .so-teacher-link img {
        width: 150px;
    }

    .content-item img{
        max-width: 154px;
    }

    .stageSpan{
        font-size:2rem;
    }

    .content-item img.stageMonster{
        max-height: 96px;
        max-width: 96px;
    }

    .nextstage {
        width: 262px;
        font-size: 1.1rem;
    }

    .title2line .stageSpan, .title2line{
        font-size: 1.1rem;
    }

    .courseFooter{
        width:100%;
    }

    .clickStartFukidashi {
        margin-top: -43px;
        margin-left: 82px;
    }

    .clickStartFukidashi div{
        width: 131px;
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .histImg{
        width: 73px;
    }

    .aiRightSide{
        right: -88px;
    }

    .QABookLetter{
        margin-top: -84px;
        font-size: 1.2rem;
        margin-left: -7px;
    }

    .ai-title{
        font-size: 1.3rem;
        width: 356px;
        margin: -54px auto 23px;
    }

    .ai-title2{
        font-size: 1.2rem;
        width:390px;
    }

    .ai-title div, .ai-title2 div{
        margin-top:4px;
    }

    .QA-page .textForm{
        margin: 44px 15px 20px;
        height: calc(100% - 72px);
    }

    .qaCourseAndStage{
        margin-top: 48px;
    }

    .histTitle{
        margin-top: 30px;
        font-size: 2.3rem;
    }

    .histTitle span {
        font-size: 1.5rem;
    }

    .closeHistButton{
        padding: 7px 15px;
        font-size: 1.2rem;
    }

    .requireButton{
        font-size:1rem;
    }

    /* 原寸(hirobody 978px)のままだと横向き（低い画面高）で縦にはみ出すため、画面高さで上限を掛ける */
    .hiroStatusImg{
        height: auto;
        max-height: 70vh;
        max-height: 70dvh;
    }

    .monsterBoxWrapper img{
        height: auto;
        max-height: 35vh;
        max-height: 35dvh;
    }

    .hiroStatusWrapper{
        margin: 0 49px;
    }

    .monster-grid-container{
        /*width: 100%;*/
    }

    .monsterBoxFlex2{
        width: 100%;
    }

    .stageHeader span.stageH1{
        font-size: 1.7rem;
    }

    .stageHeader span{
        font-size: 1.1rem;
        top: 40px;
    }

    .page-id-380 .modal-content{
        height:100vh;
        bottom:0;
    }

    .page-id-380 #footer{
        display:none;
    }
}
/*1023px以下 end*/

/*834px以下*/
@media screen and (max-width: 834px){
    .widget-entry-cards.card-large-image .a-wrap {
        width:49%;  /*タブレットで2列*/
        display: inline-flex;
    }
    
    .contentImgLetterWrap img{
        max-height: 58px;
    }

    main.main, div.sidebar{
        padding:0;
    }

    .topTitle .title {
        font-size: 6rem;
        text-shadow: 3px 3px 2px #000000, -3px 3px 2px #000000, 3px -3px 2px #000000, -3px -3px 2px #000000, 3px 0px 2px #000000, 0px 3px 2px #000000, -3px 0px 2px #000000, 0px -3px 2px #000000;
        margin-top: 160px;
    }

    .topTitle .jpTitle {
        font-size: 2.2rem;
    }

    .forAdults{
        width: 116px;
        height: 116px;
        font-size: 1.05rem;
    }


    .headerLetter{
        font-size: 1.7rem;
    }

    .start{
        margin-top: 30px;
    }

    .mobile-footer-menu-buttons{
        display:none;
    }

    .topHeaderImg a.wrapForAdults{
        top: 8px;
        right: 8px;
    }

    .forCenter{
        margin-top: 0px;
    }

    .topExplainWrap h2 {
        position: absolute;
        left: 0;
        right: 0;
    }

    .topExplainWrap h2 img{
        max-width: 377px;
    }

    .homeMidashi {
        font-size: 1.4rem;
        margin-top: -62px;
    }

    .topExplain{
        width: 97%;
        border: solid;
        margin: 49px auto 0px;
        padding: 61px 29px 0px;
        font-size: 1.2rem;
    }

    .rasuboWaku{
        margin-top: -28px;
        margin-right: 10px;
    }

    .rasuboWaku img{
        width: 197px;
    }

    /* ルビと漢字の間隔詰め。無スコープのrt指定は全ページに漏れて行重なりを起こすため、
       詰めたい面だけ明示スコープで指定する（.tokutyou rtの-9pxは後方で上書き） */
    .topExplainWrap rt,
    .qa-page rt{
        margin-bottom:-5px;
    }

    .homeMidashi.tokutyou{
        font-size: 1.8rem;
        margin-top: -69px;
    }

    .topExplain p{
        word-break: break-all;
    }

    .tokutyouImg img{
        width:100%;
    }

    .tokutyouImg.twoImg img {
        width: 49%;
    }

    .twoImg{
        gap: 1%;
    }

    .tokutyou rt{
        margin-bottom: -9px;
    }

    /* ランクカードが縦積みになりセクションが1画面を超えるため、
       mandatoryスナップだと勢いで内容を飛び越えフッターまで滑る。
       スマホ/タブレット縦は自然スクロールに切り替え、100dvh固定も解除する */
    #scroll-wrap{
        scroll-snap-type: none;
    }

    #scroll-wrap .scroll-section{
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* フッター自体も.scroll-sectionのため上のmin-heightで1画面に
       引き伸ばされてしまう。フッターは内容ぶんの高さに戻す */
    #scroll-wrap footer.footer.scroll-section{
        min-height: 0;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-logo-img {
        height: 60px;
    }
    #videoModal iframe{
        width:100vw;
    }

    .close{
        top: 72px;
        right: 8px;
        width: 41px;
    }

    .anime-background{
        width:100%;
    }

    .courseListWrap .narration{
        width: 96%;
        font-size: 1rem;
        padding: 24px 17px;
    }

    #enterWrap{
        z-index:1;
    }

    .enterKey{
        opacity:0;
    }

    #keyboard{
        gap: 6px 12px;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 9px 1fr 1fr 1fr 1fr 1fr;
    }

    .char-button{
        font-size:1.2rem;
    }

    .commentInnner{
        right: 0px;
        margin-top: -47px;
    }

    .commentInnner img{
        width: 131px;
        left: 0;
    }

    .keyboardWrap{
        padding: 13px 9px;
    }

    .char-button.kanamoji{
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .char-button.deleteLetter{
        font-size: 0.9rem;
        white-space: nowrap;
    }

    #controls{
        z-index: 1;
        margin-right: 0;
        margin-top: 0;
        bottom: 20px;
        border: 0;
    }

    .courseListWrap .modal.forWarmup{
        align-items: initial;
    }

    #kana-toggle, #confirm-button{
        font-size: 1.6rem;
        padding: 5px 24px;
    }

    #confirm-button rt{
        margin-bottom:-8px;
    }

    .page-id-262 .article.article{
        padding: 38px 33px 20px;
    }

    #breadcrumb{
        display:none;
    }

    .page-id-262 h1.entry-title, .post-262 h2.wp-block-heading{
        padding: 19px 28px;
        font-size: 1.7rem;
    }

    .page-id-262 #content-in{
        width:100%;
    }

    .allPrWrap{
        padding: 37px 12px;
    }

    .article p.prName{
        font-size: 1.2rem;
    }

    .article p.prHist{
        font-size: 1.1rem;
    }

    .nameAndHistWrap p{
        line-height: 1.5;
    }

    .prPicWrap img{
        max-width: initial;
        width: 100%;
        border: solid 1px #494949;
        border-radius: 88px;
        object-fit: cover;
        object-position: 0% 29%;
        aspect-ratio: 1;
    }

    .jikoshoukaiWrap{
        gap: 7px;
        justify-content: space-between;
    }

    .prPicWrap {
        width: 32%;
    }

    .forUserWrap h3{
        font-size:1.4rem;
        margin: 15px 0 0 0;
    }

    .forUserWrap p {
        font-size: 1.1rem;
    }

    .page-id-262 h2.wp-block-heading {
        margin-bottom: 26px;
    }

    .nameAndHistWrap{
        width:62%;
    }

    .prName rt{
        margin-bottom:-5px;
    }

    .entry-content h3{
        line-height:1.3;
    }

    .side-navi-in{
        padding: 86px 12px 20px 12px;
    }

    .warmupLightWrap img{
        width: 168px;
    }

    .warmupLightWrap{
        margin-top: -150px;
        right: -164px;
    }

    .StageTemp .content-grid{
            max-width: 100%;
    }

    .row{
        gap:4px;
    }

    .content-item img{
        max-width: 106px;
    }

    .content-item img.stageMonster{
        max-width: 68px;
    }

    .courseTemp .stageSpan{
        margin-top: 28px;
        font-size: 1.2rem;
    }

    .beta{
        font-size: 0.7rem;
        left: 0px;
    }

    .returnWrapper{
        right:7%;
    }

    .flexWrapper h1{
        margin-bottom: 7px;
    }

    .content-item img.gate.stageMonster{
        max-width: 103px;
        max-height: 102px;
    }
    
    textarea {
        min-height: initial;
    }

    .wrapCat{
        padding: 4px 4px;
    }

    .histImgInside{
        max-width: 688px;
    }

}
/*834px以下 end*/

/*700px以下*/
@media screen and (max-width: 700px){
    .StageTemp .content-item img.arrow, .arrow{
        display:none;
    }
}

/*580px以下*/
@media screen and (max-width: 580px){
    .topTitle .title {
        font-size: 3rem;
        text-shadow: 3px 3px 2px #000000, -3px 3px 2px #000000, 3px -3px 2px #000000, -3px -3px 2px #000000, 3px 0px 2px #000000, 0px 3px 2px #000000, -3px 0px 2px #000000, 0px -3px 2px #000000;
        margin-top: 78px;
    }

    .topTitle .jpTitle {
        font-size: 1.6rem;
    }

    .headerLetter{
        font-size: 1.4rem;
    }

    .start{
        margin-top: 24px;
    }

    /* アイコン＋2行が入るぶん 0.8rem では「の方へ」が 10px を下回るため、少し大きくする */
    .forAdults{
        width: 92px;
        height: 92px;
        font-size: 0.86rem;
        border-width: 2.5px;
    }

    .topExplainWrap h2 img{
        max-width: 286px;
    }

    .topExplain{
        margin: 32px auto 0px;
        font-size: 1rem;
        padding: 42px 15px 0px;
    }

    .homeMidashi{
        font-size: 1.1rem;
        margin-top: -49px;
    }

    .rasuboWaku img{
        width: 141px;
    }

    .homeMidashi.tokutyou{
        font-size: 1.5rem;
        margin-top: -55px;
    }

    .page-id-262 h1.entry-title, .post-262 h2.wp-block-heading{
        padding: 13px 23px;
        font-size: 1.2rem;
    }

    .page-id-262 .article.article{
        padding: 38px 8px 20px;
    }

    .courseImages img{
        max-width:318px;
    }

    .courseLetter{
        font-size:1.4rem;
        margin-top: -72px;
        width: 318px;
        line-height: 0.8;
    }

    .courseLetter span {
        font-size: 1rem;
    }

    .courseLetter span rt{
        margin-bottom:-7px;
    }

    .warmupLink, .openingMvLink{
        width: 108px;
        height: 62px;
    }

    .openingMvLink div {
        font-size: 1rem;
    }

    .openingMvWrap .storyDisabledFukidashi {
        top: -70px;
        left: -45px;
    }

    .warmupLink div {
        font-size: 1.5rem;
    }

    .hiro,.hina{
        width: 58px;
        height: 58px;
        box-shadow: 0 0 0 1px #FF7F00, 0 0 0 2px #FFFF00, 0 0 0 3px #00FF00, 0 0 0 4px #0000FF;
        border: solid 1px;
    }

    .hiro img{
        max-width:45px;
    }

    .hina img{
        max-width: 68px;
    }

    .title2line .stageSpan, .title2line{
        font-size: 0.8rem;
    }

    .warmup .content-item img{
            max-width: 89px;
    }

    .CourseHeaderImg{
        width:225px;
    }

    .stageHeader span.stageH1{
        font-size: 1.15rem;
        top: 5px;
    }

    .stageHeader span{
        font-size: 0.75rem;
        top: 27px;
    }

    .stageHeader.no-subtitle span.stageH1{
        top: 18px;
    }

    .return img{
        max-width: 40px;
    }


    .toCourseList{
        font-size: 0.8rem;
    }

    .goalFukidashi div{
        font-size: 1rem;
        width: 89px;
        margin-top: 17px;
    }

    .bottomTitle {
        margin-top: 27px;
    }

    .nextstageImg{
        max-width: 204px;
    }

    .stageAnswer .nextstage{
        width: 204px;
        font-size: 0.8rem;
    }

    .content-grid{
        grid-template-columns: repeat(3, 1fr);
    }

    .nextstage{
        width:216px;
        font-size: 0.9rem;
    }

    .clickStartFukidashi {
        margin-top: -25px;
        margin-left: 49px;
    }

    .warmup .content-item .clickStartFukidashi img{
        max-width: 78px;
    }

    .clickStartFukidashi div {
        width: 77px;
        font-size: 0.7rem;
        margin-top: 11px;
    }

    .ai-title{
        font-size: 1.1rem;
        width: 311px;
        margin: -43px auto 23px;
    }

    .ai-title2{
        font-size: 1rem;
        width: 285px;
    }

    .ai-title div, .ai-title2 div{
        margin-top: -7px;
    }

    .aiWrapper{
        width: 96%;
    }

    .ai-container .close{
        top: -16px;
        right: -11px;
    }

    .aiRightSide{
        right: initial;
        left: 50%;
        top: initial;
        bottom: 0;
        margin-bottom: -95px;
    }

    .QABookLetter{
        margin-top: -50px;
        font-size: 0.9rem;
        margin-left: -18px;
    }

    .histImg {
        width: 36px;
    }

    .requireButton{
        font-size: 0.9rem;
        white-space: nowrap;
        padding: 0px 5px;
    }

    .wrapCat{
        height: 38px;
    }

    .wrapInputForm .requireInput{
        min-height:38px;
        padding: 6px;
        font-size: 1rem;
    }

    .wrapInputForm .requireButton{
        height:38px;
    }

    .qaCourseAndStage{
        margin-top: 20px;
    }

    .QA-page .textForm{
        margin: 24px 0px 20px;
        height: calc(100% - 52px);
    }

    .serifuWrap .hiro img{
        max-width: 58px;
    }

    .serifuWrap .hina img {
        max-width: 64px;
    }

    .serifuWrap .hiro, .serifuWrap .hina{
        width: 46px;
        height: 46px;
    }

    .qaCourseAndStage{
        font-size:0.8rem;
    }

    .serifuWhiteWrap{
        width:77%;
    }

    .scrachLV{
        font-size: 1.4rem;
    }

    .scrachLV .lvLetter{
        font-size: 2.2rem;
    }

    .monsterBoxLetter{
        font-size: 1rem;
    }

    .monster-grid-container{
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .monster-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .monster-grid-item{
        height: 114px;
        width: 108px;
    }

    .monster-grid-item img{
        height: 73px;
    }

    img.questionImg{
        height: 117px;
    }

    .nakamaMonster ruby{
        line-height: 1.4;
    }

    .nakamaMonster span{
        font-size: 1.5rem;
        padding: 11px 27px 6px;
    }

    .monsterBoxFlex2{
        gap: 17px;
        justify-content: flex-start;
    }

    .close {
        top: 41px;
        right: 4px;
        width: 41px;
    }

    .modal-content .close{
        top: -18px;
        right: -17px;
    }

    .nextStageWrap{
        height:initial;
        align-items: flex-start;
    }

    .spStop.stageSpan{
        position: absolute;
        border: solid;
        border-radius: 10px;
        background-color: #ffffffd4;
        width: 107px;
        display: block;
        white-space: break-spaces;
        font-size: 1rem;
        line-height: 1.5;
        margin-top: 0px;
    }

    .histImgInside{
        max-width: 100vw;
        height: 384px;
    }

    .histTitle{
        margin-top: 16px;
        font-size: 1.7rem;
    }

    .histTitle span {
        font-size: 1.3rem;
    }

    .histLists{
        font-size: 1.1rem;
    }

    .eachHistList{
        margin: 4px 0;
    }

    .closeHistButton{
        bottom: 26px;
    }

    .monster-grid-item img.questionImg{
        max-width: 100px;
    }

    .requireInput {
        min-height: 38px;
    }

    .widget-entry-cards.card-large-image .a-wrap {
        width:100%;  /*スマホで1列*/
    }
}

/* Ultimate Member パスワードリセットボタンを非表示にする */
/* Password reset form specific - hides the submit button */
.um-password-reset #um-submit-btn,
.um-password-reset .um-button[value="Reset password"],
.um-password-reset .um-button[value="パスワードをリセット"] {
    display: none \!important;
}

/* Alternative selector in case the form has different class structure */
form[action*="password-reset"] #um-submit-btn,
form[action*="password-reset"] .um-button[type="submit"] {
    display: none \!important;
}

/* Hide the entire button container if needed */
.um-password-reset .um-col-alt-b {
    display: none \!important;
}

/* Guidebook Display Styles */
.stageAKButtonContainer.guidebookWrap a{
    background-color:#4CAF50;
}

.guidebookWrap a{
    background-color:#4CAF50;
}

/* ===========================================
   シルバーコース（W型レイアウト）用スタイル
   =========================================== */

/* silverコース用スタイル */
.layout-W .content-item img {
    max-width: 193px;
}

.layout-W .content-item img.stageMonster {
    margin-top: 30px;
}

/* コースページ全体を上に寄せる */
.courseTemp .flexWrapper {
    justify-content: flex-start;
    padding-top: 20px;
}

/* ===========================================
   縦幅レスポンシブ（ヒーローセクション）
   =========================================== */

/* 580px以下: 中程度の圧縮 */
@media screen and (max-height: 580px) {
    .topTitle {
        padding-top: 5px;
    }
    .topTitle .title {
        font-size: 4.5rem;
        text-shadow: 4px 4px 2px #000000,-4px 4px 2px #000000,4px -4px 2px #000000,-4px -4px 2px #000000,4px 0px 2px #000000,0px 4px 2px #000000,-4px 0px 2px #000000,0px -4px 2px #000000;
    }
    .topTitle .jpTitle {
        font-size: 2rem;
    }
    .headerLetter {
        margin-top: 12px;
        font-size: 1.5rem;
    }
    .topHeaderImg .headerLetter a {
        margin-top: 16px;
    }
    .topHeaderImg .headerLetter a img {
        width: 90px;
    }
    .topHeaderImg .headerLetter .start img.enterFinger {
        margin-top: 40px;
        width: 30px;
        margin-left: -45px;
    }
}

/* 420px以下: 強めの圧縮 */
@media screen and (max-height: 420px) {
    .topTitle {
        padding-top: 0;
    }
    .topTitle .title {
        font-size: 3rem;
        text-shadow: 3px 3px 2px #000000,-3px 3px 2px #000000,3px -3px 2px #000000,-3px -3px 2px #000000,3px 0px 2px #000000,0px 3px 2px #000000,-3px 0px 2px #000000,0px -3px 2px #000000;
    }
    .topTitle .jpTitle {
        font-size: 1.4rem;
    }
    .headerLetter {
        margin-top: 6px;
        font-size: 1.2rem;
    }
    .topHeaderImg .headerLetter a {
        margin-top: 8px;
    }
    .topHeaderImg .headerLetter a img {
        width: 65px;
    }
    .topHeaderImg .headerLetter .start img.enterFinger {
        display: none;
    }
    .forAdults {
        width: 88px;
        height: 88px;
        font-size: 0.78rem;
    }
}

/* ===========================================
   縦幅レスポンシブ（クイズ画面）
   =========================================== */

/* 700px以下: 軽度圧縮 */
@media screen and (max-height: 700px) {
    .quiz-option-button {
        height: 65px;
    }
    .quiz-option-button img {
        width: 200px;
    }
}

/* 580px以下: 中程度圧縮 */
@media screen and (max-height: 580px) {
    .quiz-option-button {
        height: 55px;
    }
    .quiz-option-button img {
        width: 180px;
    }
}

/* 420px以下: 強圧縮 */
@media screen and (max-height: 420px) {
    .quiz-option-button {
        height: 45px;
    }
    .quiz-option-button img {
        width: 160px;
    }
}

/* フッター関連サービスリンク（モンスター + WordPress LP共用） */
.footer-services {
  margin: 10px 0;
  text-align: center;
}
.footer-services a {
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-services a:hover {
  color: #4285f4;
}
.footer-divider-service,
.footer-service-divider {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 12px;
}

/* Footer - small mobile (480px以下) */
@media screen and (max-width: 480px) {
  /* 1カラム縦積みだとフッターが縦に長くなりすぎるため、ナビ列は2列に畳む */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .footer-main {
    padding: 24px 16px 0;
  }
  .footer-nav-heading {
    font-size: 11px;
  }
  .footer-logo-img {
    height: 48px;
  }
}

/* ========================================
   トップページ「選べる3つのランク」セクション
   ======================================== */
.smRankWrap{
  /* コンテンツが100vhを超える環境（モバイル等）ではクリップされないよう高さ可変にする */
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 10px 0 20px;
}

.smRankWrap .forCenter{
  margin-top: 0;
}

/* 1画面に収めるためバナーは他セクションより小さめ（デスクトップのみ。モバイルは既存縮小指定に任せる） */
@media screen and (min-width: 835px){
  .smRankWrap h2 img{
    max-width: 420px;
  }

  .smRankWrap .homeMidashi{
    margin-top: -72px;
  }
}

.smRankInner{
  width: 86%;
  max-width: 1200px;
  margin: 12px auto 0;
  font-family: 'M PLUS Rounded 1c';
  font-weight: 900;
}

.smRankCards{
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3%;
}

.smRankCard{
  position: relative;
  flex: 1 1 0;
  max-width: 360px;
  background-color: #fff;
  border: solid 5px #000;
  border-radius: 16px;
  margin-top: 48px;
  padding: 58px 18px 14px;
  color: #000;
}

.smRankBadge{
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  max-width: 260px;
}

/* ランクバッジ共通（.smRankBadge / .rankmodal-badge の中身）:
   フレーム画像の上にモンスター画像＋テキストを重ねる */
.rankbadge-frame{
  display: block;
  width: 100%;
}

.rankbadge-label{
  position: absolute;
  /* フレームPNG(516x198)は下13%が透明余白、さらにプレート下部は影・グラス表現。
     見本(mihon)準拠でテキストはプレート上寄りに収める（ルビの分だけ上下に余裕を持たせる） */
  inset: 13% 0 28% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  text-shadow: 2px 2px 1px #000000, -2px 2px 1px #000000, 2px -2px 1px #000000, -2px -2px 1px #000000, 2px 0px 1px #000000, 0px 2px 1px #000000, -2px 0px 1px #000000, 0px -2px 1px #000000;
  pointer-events: none;
}

/* ランク名テキスト自体をバッジ中央に置き、モンスターはフロー外でテキスト左に添える */
.rankbadge-name{
  position: relative;
}

/* ふりがなは小さいため縁取りを1pxに細める（2pxだと潰れて読めない） */
.rankbadge-label rt{
  text-shadow: 1px 1px 1px #000000, -1px 1px 1px #000000, 1px -1px 1px #000000, -1px -1px 1px #000000, 1px 0px 1px #000000, 0px 1px 1px #000000, -1px 0px 1px #000000, 0px -1px 1px #000000;
}

.rankbadge-monster{
  position: absolute;
  right: 100%;
  margin-right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  width: auto;
}

/* ヒーローのモンスターは大きめ（見本準拠）。フロー外なのでテキスト行の高さには影響しない。
   バッジが小さい画面でも上端がフレームを超えないよう2px下げる */
.rankbadge-hero .rankbadge-monster{
  height: 44px;
  transform: translateY(calc(-50% + 2px));
}

@media screen and (max-width: 580px){
  .rankbadge-monster{
    height: 26px;
  }

  .rankbadge-hero .rankbadge-monster{
    height: 43px;
  }
}

.smRankList{
  list-style: none;
  margin: 0;
  padding: 0;
}

.smRankList li{
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}

.smRankCheck{
  width: 28px;
  flex-shrink: 0;
  margin-top: 3px;
}

.smRankNote{
  font-size: 14px;
  text-align: center;
  margin: 0 0 12px;
}

/* セクション（=スナップ時の画面）右下に固定。基準は .topExplainWrap(position:relative) */
.smRankArrow{
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 68px;
}

.smRankCta{
  text-align: center;
  margin-top: 26px;
}

.smRankCta img{
  width: 330px;
  max-width: 90%;
}

@media screen and (max-width: 834px){
  .smRankInner{
    width: 95%;
    margin-top: 80px;
  }

  .smRankCards{
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .smRankCard{
    width: 100%;
    max-width: 420px;
    margin-top: 60px;
    padding: 60px 16px 16px;
  }

  .smRankBadge{
    top: -45px;
  }

  .smRankList li{
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  .smRankCheck{
    width: 28px;
    margin-top: 3px;
  }

  .smRankNote{
    font-size: 0.9rem;
  }

  .smRankArrow{
    display: none;
  }

  .smRankCta{
    margin-top: 36px;
  }
}

@media screen and (max-width: 580px){
  .smRankInner{
    margin-top: 60px;
  }

  .smRankCard{
    margin-top: 50px;
    padding: 52px 12px 14px;
  }

  .smRankBadge{
    top: -38px;
    max-width: 240px;
  }

  .smRankList li{
    font-size: 1rem;
  }

  .smRankCta img{
    width: 320px;
  }
}

/* 特徴②のQAmihon画像は縦長のため、1画面(100vhスナップ)に収まるよう高さ上限を設ける */
.tokutyouImg img.qamihonImg{
  width: auto;
  max-width: 52%;
  max-height: 44vh;
}

@media screen and (max-width: 834px){
  .tokutyouImg img.qamihonImg{
    width: auto;
    max-width: 100%;
    max-height: 48vh;
  }
}

/* ============================================================
   サイドメニューのランク表示（Vue globalNav / WP side-navigation 共通）
   非会員=ルーキー / 無料会員=エース / ヒーロー会員=ヒーロー
   sm-rank- 接頭辞はCocoon親テーマとのクラス衝突回避のため
   ============================================================ */
/* ランクチップ表示時は「浮きカード」を外し、立体チップを主役にする
   （チップ自体が影・縁取りを持つため、下地カードと二重に重ならないように） */
.userinfo.userinfo--rank{
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  -webkit-text-fill-color: initial;
  text-shadow: none;
  padding: 12px 6px 16px;
  border-bottom: 2px dotted #d3d3d3;
}

.userinfo .sm-rank-wrap{
  display: block;
}

/* カードを外したぶん、ユーザー名は素の濃色で読ませる */
.userinfo--rank .sm-rank-user{
  color: #555;
  -webkit-text-fill-color: #555;
  text-shadow: none;
  font-size: 0.95em;
}

.sm-rank-summary{
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 2px 0 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: center;
}

/* Vue側はbutton（クリックでランクモーダル）。WP側はdiv（表示のみ） */
button.sm-rank-summary{
  cursor: pointer;
}
button.sm-rank-summary:hover .sm-rank-chip{
  transform: scale(1.04);
}
button.sm-rank-summary:hover .sm-rank-chip::after{
  animation: smRankShine 0.7s ease;
}

.sm-rank-user{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 7px;
  word-break: break-all;
}

/* ランクチップ（キャンディ調カプセル。配色はモーダルのプレートと同系統） */
.sm-rank-chip{
  --smr-c1: #a6d95c;
  --smr-c2: #69b13a;
  --smr-deep: #41821f;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 92%;
  max-width: 200px;
  margin: 0 auto;
  padding: 9px 12px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--smr-c1) 0%, var(--smr-c2) 58%, var(--smr-deep) 100%);
  border: 2px solid #ffdf8e;
  box-shadow:
    0 3px 0 var(--smr-deep),
    0 6px 12px rgba(0, 0, 0, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: transform 0.15s ease;
}

/* 上部のキャンディハイライト */
.sm-rank-chip::before{
  content: '';
  position: absolute;
  top: 2px;
  left: 7%;
  right: 7%;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* ホバー時に走るシャイン */
.sm-rank-chip::after{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

@keyframes smRankShine{
  from{ left: -70%; }
  to{ left: 130%; }
}

.sm-rank-chip-icon{
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 1.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sm-rank-chip-label{
  font-family: 'Dela Gothic One';
  font-weight: 100;
  font-size: 1.2em;
  letter-spacing: 1px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow:
    1px 1px 0 var(--smr-deep), -1px 1px 0 var(--smr-deep),
    1px -1px 0 var(--smr-deep), -1px -1px 0 var(--smr-deep),
    0 2px 3px rgba(0, 0, 0, 0.25);
}

/* ランク別配色（ルーキー=緑 / エース=ティール / ヒーロー=赤） */
.sm-rank--rookie .sm-rank-chip{
  --smr-c1: #a6d95c;
  --smr-c2: #69b13a;
  --smr-deep: #41821f;
}
.sm-rank--ace .sm-rank-chip{
  --smr-c1: #5cd9d3;
  --smr-c2: #23a7a5;
  --smr-deep: #0e767a;
}
.sm-rank--hero .sm-rank-chip{
  --smr-c1: #ff8168;
  --smr-c2: #e04431;
  --smr-deep: #a3231b;
}

/* 契約状態（有効/キャンセル等）。チップの立体シャドウ（下6px）に被らないよう
   十分な余白をとり、控えめなサブラベルとして見せる */
.sm-rank-status{
  margin-top: 12px;
  font-size: 0.76em;
  font-weight: bold;
  color: #8a8a8a;
  -webkit-text-fill-color: #8a8a8a;
  letter-spacing: 0.5px;
}

/* ============================================================
   「キミのランク」モーダル（Vue RankModal.vue / WP side-navigation.php 共通）
   Vueページとwp固定ページは同一DOMに共存しないため、クラス衝突なくグローバル化。
   WP側の静的モーダルは #smRankModal で開閉制御する。
   ============================================================ */
.rankmodal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 35, 0.72);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* WP静的モーダルは既定で非表示。.is-open で表示 */
#smRankModal { display: none; }
#smRankModal.is-open { display: flex; }

.rankmodal-modal {
  position: relative;
  width: 100%;
  max-width: 1240px;
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 28px;
  font-family: 'M PLUS Rounded 1c';
  font-weight: 900;
  animation: rankmodalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  scrollbar-width: thin;
}

@keyframes rankmodalPopIn {
  0% { transform: scale(0.85) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* 閉じるボタン */
.rankmodal-close-btn {
  position: sticky;
  top: 0;
  margin-left: calc(100% - 40px);
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 20;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
.rankmodal-close-btn:hover { transform: scale(1.12); }

/* タイトル（shoukaiWaku + テキスト重ね） */
.rankmodal-title {
  position: relative;
  text-align: center;
  margin: -20px auto 10px;
  max-width: 480px;
}
.rankmodal-title img { width: 100%; display: block; }
.rankmodal-title-text {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-58%);
  font-family: 'Dela Gothic One';
  font-weight: 100;
  font-size: 2rem;
  color: #000;
  text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff, 1px 0px 1px #ffffff, 0px 1px 1px #ffffff, -1px 0px 1px #ffffff, 0px -1px 1px #ffffff;
}

/* カード3枚 + 矢印 */
.rankmodal-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  margin-top: 108px;
}

.rankmodal-card {
  position: relative;
  flex: 1 1 0;
  max-width: 360px;
  background-color: #fff;
  border: solid 5px #000;
  border-radius: 16px;
  padding: 58px 18px 18px;
  color: #000;
  display: flex;
  flex-direction: column;
}

.rankmodal-badge {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  max-width: 260px;
}

/* 「今ココ！」キュン + 吹き出し（現在ランクのプレート上） */
.rankmodal-nowhere {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 300px;
  pointer-events: none;
  z-index: 5;
}
.rankmodal-kyun {
  position: absolute;
  bottom: -6px;
  left: 32%;
  width: 31%;
}
.rankmodal-bubble {
  position: absolute;
  bottom: -24px;
  left: 76%;
  width: 52%;
}

/* ヒーロー（最終カード）が現在ランクのとき。
   吹き出し画像はしっぽ（雲）が左下に伸びるため、必ずキュンの「右上」に置く必要がある
   （左右反転するとしっぽがキュンと反対を指してしまう）。
   よって配置関係はルーキーと同じまま、グループ全体を左へ平行移動して右端の見切れを防ぐ。 */
.rankmodal-card:last-child .rankmodal-kyun {
  left: 33px;
}
.rankmodal-card:last-child .rankmodal-bubble {
  left: 44%;
  right: auto;
}

.rankmodal-list { list-style: none; margin: 0; padding: 0; }
.rankmodal-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.rankmodal-check { width: 26px; flex-shrink: 0; margin-top: 3px; }

.rankmodal-note { font-size: 13px; text-align: center; margin: 0 0 12px; }

/* ランクアップボタン（ブランク画像背景 + テキスト重ね） */
.rankmodal-rankup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto auto 4px;
  margin-top: auto;
  width: 100%;
  max-width: 256px;
  aspect-ratio: 488 / 110;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.rankmodal-rankup-btn:hover { transform: scale(1.05); filter: brightness(1.15); }

/* ネオン矢印 */
.rankmodal-arrow {
  align-self: center;
  width: 76px;
  flex-shrink: 0;
  margin-top: 40px;
}

/* Vueトランジション */
.rankmodal-fade-enter-active { transition: opacity 0.3s ease; }
.rankmodal-fade-leave-active { transition: opacity 0.2s ease; }
.rankmodal-fade-enter-from,
.rankmodal-fade-leave-to { opacity: 0; }

/* レスポンシブ: 縦積み */
@media screen and (max-width: 834px) {
  .rankmodal-title-text { font-size: 1.5rem; }

  .rankmodal-cards {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 60px;
  }

  .rankmodal-card {
    width: 100%;
    max-width: 420px;
    margin-top: 56px;
  }
  .rankmodal-card:first-child { margin-top: 0; }
  /* 現在ランクが先頭カードの場合はキュン+吹き出しの高さ分の余白を確保 */
  .rankmodal-card:first-child.is-current { margin-top: 130px; }

  /* モバイルは1カラムでカード幅=モーダル幅に近いため、キュン+吹き出しを
     カード内に収まる中央寄りに（左右どちらにもはみ出させない） */
  .rankmodal-kyun,
  .rankmodal-card:last-child .rankmodal-kyun {
    left: 19%;
    right: auto;
    width: 30%;
  }
  .rankmodal-bubble,
  .rankmodal-card:last-child .rankmodal-bubble {
    left: 49%;
    right: auto;
    width: 46%;
    bottom: -18px;
  }

  .rankmodal-arrow {
    width: 60px;
    transform: rotate(90deg);
    margin: 26px 0 10px;
  }

  .rankmodal-list li { font-size: 15px; }
}

@media screen and (max-width: 580px) {
  .rankmodal-modal { padding: 8px 4px 22px; }
  .rankmodal-title-text { font-size: 1.25rem; }
  .rankmodal-badge { top: -38px; max-width: 240px; }
  .rankmodal-card { padding: 52px 12px 16px; }
}

/* ==========================================================================
   固定ページの背景レイヤー整理
   --------------------------------------------------------------------------
   #container（幾何パターン背景）の上に Cocoon の .article（不透明な白）が乗り、
   さらにその上にテンプレート側のカード背景が重なる３層構造になっていた。
   .article は padding-top:0 のため子要素のmarginが相殺され、白とカードの上端が
   一致し、下だけ白がはみ出す不格好な見た目になっていた。

   対象は「テンプレート側が自前の面（背景）を持つページ」のみ。
   .article を透明化して２層（パターン → カード）に整理する。
   ※ 自前の背景を持たないページに追加すると本文が直接パターンの上に乗るため、
     追加する際は必ずそのテンプレートの最上位ラッパーに background があるか確認すること。
   ========================================================================== */
body.page-template-membership-selection .article,
body.page-template-educator-plans .article,
body.page-template-organization-lp .article {
  background: transparent;
  box-shadow: none;
  /* 左右のpaddingは残す。カードが余白ぶん内側に入り、
     上下左右ほぼ均等にパターンが覗く「浮いたカード」の見た目になる。
     padding-bottomは0にしてカード下marginを上と同様に相殺させ、上下の余白を揃える */
  padding-bottom: 0;
}

/* ==========================================================================
   SEO用フッター（tmp/seo-footer.php）
   --------------------------------------------------------------------------
   Vue.js SPA を載せたページ（/ と /courses/ 配下）は本文がクライアントサイド
   描画のため、サーバーHTMLに見出しも内部リンクも無かった。SPA側のグローバル
   ナビも v-if でクリックするまでDOMに出ないため、クローラーからリンクが辿れない。

   そのため #scroll-wrap（height:100vh のスクロールコンテナ）の外側に、
   サーバー出力の紹介文と内部リンクを置いている。
   SPAの表示領域より下に来るので、通常の閲覧では最初の画面に干渉しない。
   ========================================================================== */
.sm-seo-footer {
  background: #1b1b2f;
  color: #e8e8f0;
  padding: 48px 20px 56px;
  font-size: 15px;
  line-height: 1.9;
}

.sm-seo-footer-in {
  max-width: 900px;
  margin: 0 auto;
}

.sm-seo-footer-title {
  font-size: 20px;
  margin: 0 0 16px;
  padding: 0;
  color: #fff;
  background: none;
  border: none;
}

.sm-seo-footer-lead {
  margin: 0 0 12px;
}

.sm-seo-footer-nav ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.sm-seo-footer-nav li {
  margin: 0;
  padding: 0;
}

.sm-seo-footer-nav a {
  color: #9ecbff;
  text-decoration: none;
}

.sm-seo-footer-nav a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .sm-seo-footer {
    padding: 24px 16px 32px;
    font-size: 14px;
  }

  .sm-seo-footer-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .sm-seo-footer-nav ul {
    margin-top: 14px;
    gap: 6px 16px;
  }
}

/* ==========================================================================
   モンスターDLの詰まり対策
   （2枚組を両方DLしないと次の課題が解放されないことに気づけず離脱していた）
   ========================================================================== */

/* wrapDownloadMonster に案内吹き出しを1行目として置くため折り返しを許可する */
.wrapDownloadMonster{
  flex-wrap: wrap;
}

/* 「両方ダウンロードしてね」案内（モンスターカード／モンスターボックス共通・常時表示）
   吹き出しPNGは高さが固定でルビが枠外にはみ出し、さらに94px占有して
   説明文の長いモンスターでカード下端からボタンが溢れたため、CSS描画の1行吹き出しにした */
.dlAllHint{
    flex: 0 0 100%;
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 4px;
    padding: 0 10px;
    box-sizing: border-box;
    pointer-events: none;
}

.dlAllHint p{
    position: relative;
    /* ルビ「りょうほう」で「両方」の占有幅が広がるので、1行に収まるだけの幅を確保する
       （.monsterDesRight 590px − .dlAllHint の左右padding 20px = 570px が上限） */
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 14px;
    background-color: #fff;
    border: solid 4px #000;
    border-radius: 16px;
    color: #000;
    font-size: 1.25rem;
    font-weight: bold;
    /* ルビ（両方＝りょうほう）が枠線にかからないよう行送りに余裕を持たせる */
    line-height: 1.9;
    text-align: center;
}

/* しっぽ（下向き・枠線ぶんを2枚重ねで表現） */
.dlAllHint p::before,
.dlAllHint p::after{
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border-style: solid;
}

.dlAllHint p::before{
    margin-left: -12px;
    border-width: 16px 12px 0 12px;
    border-color: #000 transparent transparent transparent;
}

.dlAllHint p::after{
    margin-top: -6px;
    margin-left: -8px;
    border-width: 12px 8px 0 8px;
    border-color: #fff transparent transparent transparent;
}

/* 案内吹き出しが縦を使うぶん、説明文の上余白を詰めてカードから溢れないようにする */
.monsterDesRight.hasDlHint .monsterDesLetter{
    margin-top: 35px;
}

/* DL済みボタン */
.downloadMonster.downloaded{
    background-color: #b9b9b9;
    border-color: #5a5a5a;
    color: #3c3c3c;
    cursor: pointer;
}

.downloadMonster .dlCheck{
    color: #1f8a3b;
    font-size: 1.8rem;
    margin-right: 4px;
    text-shadow: 1px 1px 1px #ffffff, -1px 1px 1px #ffffff, 1px -1px 1px #ffffff, -1px -1px 1px #ffffff;
}

/* 課題一覧: モンスターDL待ちの吹き出し
   既存の吹き出しPNGは中身が透明で、暗いステージ背景の上だと文字が読めないため
   CSSで白背景の吹き出しを描く（.content-item img の max-width:175px にも縛られない） */
.monsterDlFukidashi{
    position: absolute;
    /* モーダル（.monsterBoxBk / .monsterWrapper）が z-index:2 なので、
       それを超えると ヒロ・モンスターボックスの上に突き抜ける。
       既存の .clickStartFukidashi と同じ 1 に揃える（課題ボックスより手前・モーダルより奥） */
    z-index: 1;
    width: 250px;
    margin-top: -100px;
    margin-left: -38px;
    pointer-events: none;
    animation: monsterDlFukidashiFloat 2.4s ease-in-out infinite;
}

.monsterDlFukidashi div{
    position: relative;
    background-color: #fff;
    border: solid 4px #000;
    border-radius: 18px;
    padding: 10px 12px;
    font-family: 'Dela Gothic One';
    color: #000;
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: center;
}

/* しっぽ（下向き・枠線ぶんを2枚重ねで表現） */
.monsterDlFukidashi div::before,
.monsterDlFukidashi div::after{
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border-style: solid;
}

.monsterDlFukidashi div::before{
    margin-left: -14px;
    border-width: 20px 14px 0 14px;
    border-color: #000 transparent transparent transparent;
}

.monsterDlFukidashi div::after{
    margin-top: -6px;
    margin-left: -9px;
    border-width: 15px 9px 0 9px;
    border-color: #fff transparent transparent transparent;
}

@keyframes monsterDlFukidashiFloat{
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

