@charset "UTF-8";
/* e-manabiya green tablet design: visual layer only, legacy behavior untouched */
*,*::before,*::after{box-sizing:border-box}
html{min-width:0;-webkit-text-size-adjust:100%}
body.em-green{width:auto;min-height:100vh;height:auto;margin:0;background:#f5faf5;color:#2c4235;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:16px;line-height:1.65}
.em-green p{line-height:1.7}
.em-green a{color:#167b3a;text-underline-offset:3px}
.em-green a:hover{color:#0c5929}
.em-green .small_title{font-size:clamp(20px,2.6vw,26px);color:#176a36;line-height:1.4}
.em-green .big_title{font-size:clamp(24px,3vw,32px);color:#176a36;line-height:1.4}
.em-green .play_header_bar,.em-green .adm_header_bar{background:#158534;color:white;border:0}
.em-green .play_header_bar a,.em-green .adm_header_bar a{color:white}
.em-green .play_header_bar>tbody>tr>td,.em-green .adm_header_bar>tbody>tr>td{padding-top:7px;padding-bottom:7px}
.em-green .play_header_bar img,.em-green .adm_header_bar img{max-width:100%;height:auto}
.em-green .play_th_color01,.em-green tr.play_th_color01,.em-green th{background:#dff1e3;color:#195c32;font-weight:700}
.em-green .play_td_color01{background:#f0f8f1}
.em-green .play_td_color02{background:#fff}
.em-green table{max-width:100%;border-collapse:separate;border-spacing:0;line-height:1.6}
.em-green table[bgcolor="#FFFFFF"]{border-radius:12px}
.em-green td,.em-green th{overflow-wrap:anywhere}
.em-green input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]),.em-green select,.em-green textarea{max-width:100%;min-height:44px;border:1px solid #bcd8c4;border-radius:10px;padding:7px 10px;background:#fff;color:#244532;font:inherit}
.em-green input:focus-visible,.em-green select:focus-visible,.em-green textarea:focus-visible,.em-green a:focus-visible{outline:3px solid #8bdaa0;outline-offset:2px}
.em-green input[type="submit"],.em-green input[type="button"],.em-green button{background:#158534!important;color:#fff!important;border:0!important;border-radius:12px!important;padding:10px 18px!important;font-weight:700!important;cursor:pointer;min-height:44px}
.em-green input[type="submit"]:hover,.em-green button:hover{background:#0d6a2a!important}
.em-green .font_small{font-size:clamp(12px,1.4vw,14px)}
.em-green .qdtl{font-size:clamp(20px,2.4vw,24px)}
.em-green .qst_info{color:#65796a}
.em-green .footer_bar{color:#6a8572}
/* Keep original desktop structure while softening panels */
@media(min-width:1025px){.em-green div[style*="margin:30px"],.em-green div[style*="margin:25px"]{background:#fff;border:1px solid #e0eee2;border-radius:18px;padding:20px;box-shadow:0 6px 24px #1e63300a}}
/* Tablet: legacy width attributes and inline margins must not force viewport overflow */
@media(max-width:1024px){
 .em-green div[style*="margin:30px"],.em-green div[style*="margin:25px"]{margin:14px!important;padding:16px;background:#fff;border:1px solid #e1eee3;border-radius:16px;box-shadow:0 4px 20px #1e63300b;overflow-x:auto}
 .em-green table[width="940"],.em-green table[width="640"],.em-green table[width="470"]{width:100%!important;max-width:100%!important}
 .em-green table[width="940"]>tbody>tr>td{min-width:0}
 .em-green .play_header_bar{height:auto}
 .em-green .play_header_bar img[width="215"]{width:min(215px,27vw)}
 .em-green .adm_header_bar{font-size:16px}
 .em-green input,.em-green select,.em-green textarea{font-size:16px}
}
@media(max-width:700px){
 .em-green div[style*="margin:30px"],.em-green div[style*="margin:25px"]{margin:8px!important;padding:12px}
 .em-green table[width="940"]>tbody>tr>td{display:block;width:100%!important}
 .em-green table[width="470"]{width:100%!important}
 .em-green .play_header_bar img[width="215"]{width:min(160px,30vw)}
 .em-green .play_header_bar img[width="72"]{width:min(72px,12vw)}
 .em-green .play_header_bar img[width="36"]{width:32px}
 .em-green .font_large,.em-green .font_important{font-size:24px}
}
@media print{body.em-green{background:white;color:black}.em-green div[style*="margin:30px"],.em-green div[style*="margin:25px"]{box-shadow:none;border:0}}


/* EM-SELECTION-REFRESH-20261113 */

/* 白背景 */
body.em-green {
  background: #ffffff !important;
  color: #304b39;
}

/* 選択画面の余白 */
.em-unit-menu,
.em-set-menu,
.em-record-menu {
  background: #ffffff !important;
}

/* 単元・問題一覧 */
.em-unit-menu table[width="470"],
.em-set-menu table[width="470"] {
  background: #ffffff !important;
  border-spacing: 0 9px !important;
  border-collapse: separate !important;
  border-radius: 18px;
}

.em-unit-menu table[width="470"] tr.play_td_color01,
.em-unit-menu table[width="470"] tr.play_td_color02,
.em-set-menu table[width="470"] tr.play_td_color01,
.em-set-menu table[width="470"] tr.play_td_color02 {
  background: #eff9f0 !important;
}

.em-unit-menu table[width="470"] tr > td,
.em-set-menu table[width="470"] tr > td {
  padding: 12px 14px !important;
  vertical-align: middle;
}

.em-unit-menu table[width="470"] tr > td:first-child,
.em-set-menu table[width="470"] tr > td:first-child {
  border-radius: 14px 0 0 14px;
}

.em-unit-menu table[width="470"] tr > td:last-child,
.em-set-menu table[width="470"] tr > td:last-child {
  border-radius: 0 14px 14px 0;
}

.em-unit-menu table[width="470"] a,
.em-set-menu table[width="470"] a {
  color: #176c39;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 5px 0;
}

.em-unit-menu table[width="470"] a:hover,
.em-set-menu table[width="470"] a:hover {
  color: #0b4c26;
  text-decoration: underline;
}

/* 選択一覧の点数列だけ非表示 */
.em-unit-menu table[width="470"] tr > :nth-child(2),
.em-set-menu table[width="470"] tr > :nth-child(2) {
  display: none !important;
}

/* 学習記録 */
.em-record-menu table {
  border-radius: 12px;
}

.em-record-menu tr.play_th_color01 > td {
  background: #dff1e3;
  color: #195c32;
  font-weight: 700;
}

.em-record-menu tr.play_td_color01 > td {
  background: #f3faf4;
}

.em-record-menu tr.play_td_color02 > td {
  background: #ffffff;
}

.em-record-menu td {
  padding: 9px 11px;
}

/* タブレット */
@media (max-width: 1024px) {
  .em-unit-menu table[width="940"],
  .em-set-menu table[width="940"] {
    width: 100% !important;
  }

  .em-unit-menu table[width="470"],
  .em-set-menu table[width="470"] {
    width: 100% !important;
  }

  .em-record-menu table {
    max-width: 100%;
  }
}


/* EM-UNIT-LAYOUT-FIX-20261113 */

/* 単元一覧全体を画面幅に合わせる */
.em-unit-menu table[width="940"] {
  width: 100% !important;
  max-width: 1180px !important;
  table-layout: fixed;
}

/* 左右2列の間隔 */
.em-unit-menu table[width="940"] > tbody > tr > td {
  width: 50% !important;
  padding-right: 14px !important;
  vertical-align: top;
}

.em-unit-menu table[width="940"] > tbody > tr > td:last-child {
  padding-right: 0 !important;
  padding-left: 14px !important;
}

/* 各列のカードを横幅いっぱいに */
.em-unit-menu table[width="470"] {
  width: 100% !important;
  table-layout: auto !important;
}

/* 教科名の折り返しを禁止 */
.em-unit-menu table[width="470"] tr > td:last-child {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  width: 74px !important;
  min-width: 74px !important;
  text-align: center;
}

/* 単元名の表示領域 */
.em-unit-menu table[width="470"] tr > td:first-child {
  width: auto !important;
  min-width: 0;
}

/* カードの角丸を整える */
.em-unit-menu table[width="470"] tr > td:first-child {
  border-radius: 14px 0 0 14px !important;
}

.em-unit-menu table[width="470"] tr > td:last-child {
  border-radius: 0 14px 14px 0 !important;
}

/* 狭い画面では縦並び */
@media (max-width: 700px) {
  .em-unit-menu table[width="940"] > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }
}


/* EM-FINAL-THREE-SCREENS-20261113 */

/* 共通：白背景 */
body.em-green {
  background: #fff !important;
}

/* 単元選択：見出しを明確にする */
.em-unit-menu table[width="470"] tr.play_th_color01 > td {
  background: #d4ebda !important;
  color: #165d31 !important;
  font-weight: 700;
}

/* 問題選択：2列の間隔 */
.em-set-menu table[width="940"] {
  width: 100% !important;
  max-width: 1180px !important;
  table-layout: fixed;
}

.em-set-menu table[width="940"] > tbody > tr > td {
  width: 50% !important;
  padding-right: 14px !important;
  vertical-align: top;
}

.em-set-menu table[width="940"] > tbody > tr > td:last-child {
  padding-right: 0 !important;
  padding-left: 14px !important;
}

.em-set-menu table[width="470"] {
  width: 100% !important;
}

/* 問題選択：見出し */
.em-set-menu table[width="470"] tr.play_th_color01 > td {
  background: #d4ebda !important;
  color: #165d31 !important;
  font-weight: 700;
}

/* 学習記録：表の見やすさ */
.em-record-menu table[bgcolor="#FFFFFF"] {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px;
}

.em-record-menu tr.play_th_color01 > td {
  background: #dcefe1 !important;
  color: #175e33 !important;
  padding: 12px 10px !important;
  vertical-align: top;
}

.em-record-menu tr.play_td_color01 > td,
.em-record-menu tr.play_td_color02 > td {
  padding: 11px 10px !important;
  border-bottom: 1px solid #e4eee6;
}

/* フィルターの操作性 */
.em-record-menu select {
  min-height: 42px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.em-record-menu input[type="button"] {
  margin: 5px 0;
}

/* 表が画面幅を超える場合は横スクロール */
.em-record-menu {
  overflow-x: auto;
}

/* タブレット・スマートフォン */
@media (max-width: 700px) {
  .em-set-menu table[width="940"] > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .em-set-menu table[width="470"] {
    width: 100% !important;
  }

  .em-record-menu {
    overflow-x: auto;
  }
}


/* EM-SET-CORNER-FIX */
.em-set-menu table[width="470"] tr > td:first-child {
  border-radius: 14px !important;
}


/* EM-SET-SINGLE-HEADING */

/* 右列の見出し文字だけ非表示 */
.em-set-menu table[width="940"] > tbody > tr > td:last-child
table[width="470"] tr.play_th_color01 {
  visibility: hidden !important;
}

/* 見出しの高さを左右で維持 */
.em-set-menu table[width="940"] > tbody > tr > td:last-child
table[width="470"] tr.play_th_color01 > td {
  height: auto;
}


/* EM-SET-HEADING-CLEAN-FIX */
.em-set-menu .em-set-heading {
  display: block;
  width: 100%;
  max-width: 1180px;
  background: #d4ebda;
  color: #165d31;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 20px;
  margin-bottom: 12px;
}


/* EM-RECORD-SAFE-LAYOUT-20261113 */

/* 学習記録の表示領域 */
.em-record-menu > form > div[style*="margin:25px"] {
  max-width: 1280px;
  width: calc(100% - 40px);
  margin: 20px auto !important;
  padding: 24px !important;
}

/* 内側の表を画面幅に合わせる */
.em-record-menu > form > div[style*="margin:25px"] > table {
  width: 100%;
}

.em-record-menu > form > div[style*="margin:25px"] > table > tbody > tr > td {
  width: 100%;
}

/* 成績・弱点問題・ログインの表 */
.em-record-menu table[bgcolor="#FFFFFF"] {
  border-radius: 14px;
}

.em-record-menu table[bgcolor="#FFFFFF"] tr.play_th_color01 > td {
  background: #dcefe1 !important;
}

/* セレクトボックス */
.em-record-menu select {
  border-radius: 10px;
  background: #fff;
  min-height: 42px;
}

/* 表が横に広い場合の対応 */
@media (max-width: 900px) {
  .em-record-menu > form > div[style*="margin:25px"] {
    width: calc(100% - 20px);
    padding: 12px !important;
    overflow-x: auto;
  }
}


/* EM-RECORD-THREE-CARDS-FINAL */

/* 成績・弱点問題・ログインの3カード */
.em-record-menu .em-results-card,
.em-record-menu .em-weak-card,
.em-record-menu .em-login-card {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid #dcebdd;
  border-radius: 18px;
  padding: 22px;
  margin: 20px 0 26px;
  box-shadow: 0 4px 16px rgba(20,100,45,.05);
  overflow-x: auto;
}

/* カードの見出し */
.em-record-menu .em-results-card,
.em-record-menu .em-weak-card,
.em-record-menu .em-login-card {
  color: #176a36;
  font-weight: 700;
}

/* カード内の表 */
.em-record-menu .em-results-card table,
.em-record-menu .em-weak-card table,
.em-record-menu .em-login-card table {
  width: 100%;
  margin-top: 16px;
  color: #304b39;
  font-weight: 400;
}

/* フィルター */
.em-record-menu .em-results-card select,
.em-record-menu .em-weak-card select,
.em-record-menu .em-login-card select {
  margin: 4px 8px;
}

/* タブレット */
@media (max-width: 900px) {
  .em-record-menu .em-results-card,
  .em-record-menu .em-weak-card,
  .em-record-menu .em-login-card {
    padding: 14px;
    margin: 14px 0;
  }
}

/* EM-RECORD-HEADING-SPAN-20261114 */
.em-record-menu .em-card-heading {
    display: block;
    margin-bottom: 18px;
    color: #176b38;
    font-size: 20px;
    font-weight: 700;
}
