@charset "UTF-8";
[v-cloak] {
  display: none;
}
body {
  background-color:#F7F7F7;
  min-width: 360px;
}
/*ラッパー調整*/
div.wrapper {
  overflow: hidden;
  min-width: 320px;
}
/*共通ナビ*/
header.header {
  border-top: 5px solid #fff;
  background-color: #19448e;
  position: relative;
}
/*改行*/
.br::before {
	content: "\A" ;
	white-space: pre ;
}
header.header::before {
  content: "";
  display: block;
  line-height: 0;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: -5px;
  width: 30%;
  border-top: 5px solid #fff;
}
/* header.header::after {
  content: "";
  display: block;
  line-height: 0;
  overflow: hidden;
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 70%;
  border-bottom: 3px solid #870101;
} */
/*ナビゲーションバー*/
p.header_logo {
  margin-bottom: 0px;
}
/*文字デザイン*/
ul.nav li > a,p.header_logo a {
  color:#ffffff;
}
ul.nav li.show a.dropdown-toggle {
  color :#19448e;
  background-color:#ffffff;
}
h2 {
  font-size:1.25rem;
}
.text-center {
  text-align: center;
}
button.style {
  width: 15rem;
  margin: 1rem 0;
}
button.sample-style {
  width:100%;
  margin: 0.5rem 0;
}
button.settle-style {
  width:25rem;
}
button.apply-style {
  width:18rem;
}
button.login-style {
  width:17rem;
}
.settlement {
  width: 30rem;
  margin: auto;
  margin-top: 3rem;
}
.apply-button-wrapper {
  width: 18rem;
}
.back-button {
  width: 15rem;
}
button.free::after {
  font-family: "Font Awesome 5 Free";
  content: '\f06b';
  font-weight: 900;
  color: #ffffff;
  position: relative;
  left: 0.3rem;
}
button.pay::after {
  font-family: "Font Awesome 5 Free";
  content: '\f07a';
  font-weight: 900;
  color: #ffffff;
  position: relative;
  left: 0.3rem;
}
a.back-button {
  display: inline-block;
}
/*メインコンテンツ*/
span#qnum::before {
  content:"/";
  padding-right: 15px;
}
div.main_lead_bg {
  background: #18448e12;
  /* background-color:rgba(189,0,34,0.1); */
  /* background:#f5e5e6; */
}
div.main_lead_bg.top {
  background-image: url('../image/top_main.webp');
  background-repeat: no-repeat;
  background-size: cover;
}
div.main_lead_bg.contents {
  background-image: url('../image/content_main.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}
div.container.lead {
  width: auto !important;
}
div.container.main {
  max-width: 720px;
}
div.container.main.top-common {
  display: flex;
  justify-content: center;
}
div.container.error {
  display: flex;
  flex-direction: column;
  align-items: center;
}
p#sub_lead {
  margin-top: 0.5rem;
}
#question-num {
  margin-bottom:1rem;
}
div.content_bg {
  padding-top:0.5rem;
}
p.lead_copy {
  padding:0px 0px;
}
p.index-num {
  margin-top:0.5rem;
  font-size:1.25rem;
}
section.top_sec,.agree_sec {
  margin:2rem 0 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
h1 {
  text-align: center;
}
h1.top {
  color: #19448e;
  text-shadow: 2px 1px 0px #fff;
}
h1.method {
  text-align: left;
}
h1.contents,section.contents {
  position: relative;
  color:#ffffff;
}
h2.section_title {
  margin-top:0.5rem;
  font-size:1.25rem;
}
h2.top {
  margin:3.5rem 0 2.5rem 0;
  font-size:2.3rem;
}
h2.agree {
  margin: 1.5rem 0;
  font-size: 1.3rem;
}
p.top_text {
  font-size:1.3rem;
}
h2.section_title.purpose_title {
  position: relative;
  top: 1rem;
  margin: 0 0 3rem 0;
}
h2.section_title.purpose_title::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  border-bottom: 2px solid #19448e;
}
h2.apply-lead {
  font-size:1.5rem;
  width: 50%;
  margin: 1.5rem auto;
}
h3.cat-title {
  font-size: 18px;
}
/* 自動採番＋装飾だけをCSSで付与（HTMLに「1.」「2.」を書かない） */
.steps { list-style: none; counter-reset: steps; margin: 0; padding: 0; }
.step { counter-increment: steps; margin: 1.25rem 0; }
.step__title { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.step__title::before { content: counter(steps) "."; font-weight: 700; margin-right: .4em; }
/*chapter1の過去問引用箇所*/
.exam-section{margin:1.25rem 0}
.spec-table{width:100%; border-collapse:collapse; table-layout:fixed}
.spec-table th,
.spec-table td{border:2px solid #000; padding:.6rem; vertical-align:middle}
.spec-table thead th{background:#f7f7f7; font-weight:700}
.spec-table th{width:28%; text-align:left}
.spec-table th,
.spec-table td{
  word-break: break-word;       /* 古いブラウザ向けの保険 */
  overflow-wrap: anywhere;      /* 現行ブラウザでの最優先 */
  white-space: normal;          /* nowrap 等を無効化 */
}
.note{margin:.5rem 0 0; line-height:1.7}
.note code{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace}
.note-ref{font-weight:700}

/*プライバシーポリシーstart*/
div.p-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
div.lead-title {
  margin-bottom: 3rem;
}
div.privacy-check {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0.5rem 0 0 0;
}
input.privacy {
  height: 1.5rem;
  width: 1.5rem;
  display: inline-block;
  margin:
  0 1rem 0 0;
}
li.list-title {
  margin: 1rem 0 1rem 0;
  font-size: 1.5rem;
}
li.list-detail,li.p-history {
  list-style: disc;
}
/*プライバシーポリシーend*/
/*footer start*/
footer {
  background-color: #19448e;
  padding: 2rem;
}
section.inner-top {
  display: flex;
  justify-content: space-between;
}
section.inner-top.middle {
  display: flex;
  justify-content: flex-start;
  margin: 1rem 0 0 0;
}
section.inner-bottom {
  border-top: 1px #999999 solid;
  padding: 1rem 0 0 0;
}
ul.footer-list li {
  padding: 1rem 0 0 0;
}
ul.footer-list li a {
  color: #fff;
  display: inline-block;
  width: 100%;
  height: auto;
  cursor: pointer;
}
div.bottomo-rules ul {
  display: flex;
  justify-content: space-around;
}
li.copyright {
  margin: 1rem auto;
  text-align: center;
  color: #999999;
}
ul.footer-list li.list-heading {
  font-size: 1.1rem;
  color: #fff;
  border-bottom: 3px solid #fff;
  padding: 0 0 0.5rem 0;
}
ul.footer-list li.list-heading h3 {
  font-size: 1rem;
}
div.footer-logo {
  display: flex;
  justify-content: center;
}
div.footer-logo a {
  text-align: center;
  display: contents;
}
img.logo-data {
  width: 130px;
  height: 120px;
}
/*footer end*/
/*ぱんくず start*/
.bread_crumb_wrap {
  background-color: #19448e;
  color:#fff;
}
.bread_crumb_wrap ul {
  margin:0;
  list-style: none;
  display: flex;
}
.bread_crumb_wrap ul li a {
  color:#fff;
}
.bread_crumb_wrap li:after {/* ▶を表示*/
  font-family: "Font Awesome 5 Free";
  content: '\f0da';
  padding: 0 0.2em;
  color: #fff;
  font-weight: 900;
}
.bread_crumb_wrap li:last-child:after {
  content: '';
}
/*ぱんくず end*/
.lower-roman {
  list-style-type: lower-roman
}
.none {
  list-style-type: none;
}
div.section_figure {
  max-width: 720px;
  width: 100%;
  height: auto;
  margin-top: 2rem;
}
div.section_figure svg,div.img_wrap.map img {
  max-width: 720px;
  width: 100%;
  height: auto;
}
span.purpose_text_deco {
  font-weight: bold;
}
.svg-common {
  height: 30rem;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 45rem;
}
/*indexのfigare内レイアウト調整*/
.fig_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 768px;
}
div.svg_pass-rate5 {
  background-image: url("../image/svg_pass-rate5.svg");
  background-size: 100% auto;
}
div.svg_pass-rate10 {
  background-image: url("../image/svg_pass-rate10.svg");
  background-size: 100% auto;
}
.video_style {
  width: 298px;
}
div.img {
  background-repeat: no-repeat;
  background-size: cover;
  height: 35rem;
}
div.img1 {
  background-image: url("../image/freetime.webp");
}
div.img2 {
  background-image: url("../image/shiken.jpg");
}
div.img9 {
  background-image: url("../image/step.jpg");
}
div.img10 {
  background-image: url("../image/tech.jpg");
}
div.img11 {
  background-image: url("../image/confidence.webp");
}
div.img_bg {
  background-color: rgba(25, 68, 142, .1);
  padding: 2rem 0 2rem;
  display: flex;
  justify-content: center;
}
div.img_bg > div {
  max-width: 300px;
  display: flex;
  flex-direction: column;
}
div._img_bg {
  padding: 2rem 0 2rem;
  display: flex;
}
div.__img_bg {
  display: flex;
}
div.img_common {
  height: 38rem;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 19rem;
}
div.img3 {
  background-image: url("../image/capture1.jpg");
  height: 35rem;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 19rem;
}
div.img4 {
  background-image: url("../image/capture2.jpg");
  height: 35rem;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 19rem;
}
div._img3 {
  background-image: url("../image/capture1.jpg");
}
div._img4 {
  background-image: url("../image/capture2.jpg");
}
div.img_bg2 {
  padding: 2rem 0 2rem;
}
div._img_bg2 {
  padding: 2rem 0 2rem;
  display: flex;
}
div.img6 {
  background-image: url("../image/capture3.jpg");
  height: 35rem;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 19rem;
}
div.img7 {
  background-image: url("../image/capture4.jpg");
  height: 35rem;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 19rem;
}
div._img6 {
  background-image: url("../image/capture3.jpg");
}
div._img7 {
  background-image: url("../image/capture4.jpg");
}
div.img8 {
  background-image: url("../image/category.svg");
  background-size: 100% auto;
}
div._img_chap2_1_m {
  background-image: url("../image/animation_chap2_1.gif");
}
div._img_chap3_1_m {
  background-image: url("../image/animation_chap3_1.gif");
}
div._img_common {
  height: 38rem;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 19rem;
}
/*問題のコードスタイル*/
.code_wrap {
  margin: 0;
  padding: 0;
}
.code_block {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.code-highlight {
  color: #007bff;
  font-weight: bold;
}
/*解答ページ解答テーブル*/
tbody.ans_color {
  background-color: #fff;
}
#nav-drawer {
  position: relative;
}
table.contents_a,.contents_q {
  table-layout: fixed;
  width: 100%;
}
table.contents_a th,.contents_q th,table.contents_a td,.contents_q td{
  word-wrap: break-word;
  white-space: normal;
}
table.contents_a th,table.contents_a td {
  width:calc(100% / 3);
}
table.contents_q th,table.contents_q td {
  width:calc(100% / 4);
}
table.contents_q._col5 th,table.contents_q._col5 td {
  width:calc(100% / 5);
}
table.contents_q._col7 th,table.contents_q._col7 td {
  width:calc(100% / 7);
}
table.contents_q_3 th,table.contents_q_3 td {
  width:calc(100% / 3);
}
table.contents_q_6 th,table.contents_q_6 td {
  width:calc(100% / 6);
}
table.contents_l th,table.contents_l td {
  width:calc(100% / 2);
}
table.contents_q th {
  vertical-align: middle;
}
th {
  text-align: center;
}
p.table-caption::before {
  content:"※";
}
span.accuracy_rate {
  margin-left:3.5rem;
}
span.accuracy_detail {
  margin-left:1rem;
}
/*解答ページボタン*/
.alert-success,.alert-danger {
  display: flex;
}
/*正解サークルボタン位置調整*/
.fa-check-circle:before,.fa-times-circle:before {
  position: relative;
  top: 4px;
}
/*解答詳細ページモーダルトリガー詳細ボタン*/
button.p-modal-btn {
  display: inline-block;
  background-color: #19448e;/*背景色*/
  color: #FFF;/*文字色*/
  font-size: 1em;/*文字サイズ*/
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.05rem;/*字間*/
  padding: 0.3rem 1rem;/*ボタン内の余白*/
  border-radius: 3px;/*角の丸み*/
  cursor: pointer;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);/*影*/
  -webkit-tap-highlight-color: transparent;
  transition: .3s ease-out;/*変化を緩やかに*/
}
/*成績モーダルのtd*/
div.p-modal.is-open > div.p-modal-table > table > tbody > tr > td {
  text-align: left;
  vertical-align: top;
}
/* 最初と最後のtdだけ中央寄せにする */
div.p-modal.is-open > div.p-modal-table > table > tbody > tr > td:first-child,
div.p-modal.is-open > div.p-modal-table > table > tbody > tr > td:last-child {
  text-align: center;
}
/*解説モーダル*/
.detail-modal {
  padding: 0px 16px;
  line-height: 1.5;
}
button.p-modal-btn.button_b {
  background-color: #721c24;/*背景色*/
}
button.p-modal-btn:hover{
    box-shadow: 0 3px 3px 0 rgba(0,0,0,0.14), 0 1px 7px 0 rgba(0,0,0,0.12), 0 3px 1px -1px rgba(0,0,0,0.2);/*浮き上がるように*/
}
/*解答詳細ページモーダル*/
.p-modal {
  /*visibility: hidden;(当初、visibilityプロパティを使っていたが、スマホの横スクロール問題があり使用停止)*/
  display: none
}
.p-modal.is-open {
  position: fixed;
  top: 5px;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /*visibility: visible;(当初、visibilityプロパティを使っていたが、スマホの横スクロール問題があり使用停止)*/
  display: block;
  background-color: #fff;
  z-index: 15000;
  width: 80%;
  min-width:288px;
  margin: 0 auto;
  height: 90%;
  opacity:1;
}
div.overlay_modal {
  position: fixed;
  z-index: 10000;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .5;
  transition: .3s ease-in-out;
}
div.p-modal-report-wrapper {
  position:relative;
}
div.p-modal-report-wrapper::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    display: inline-block;
    width: 98%;
    height: 2px;
    background-color: #19448e;
    border-radius: 2px;
}
td.result {
  text-align: center !important;
}
/* まずは互換性重視の既定（改行＋連続スペースを保持しつつ折り返し） */
.txt_format {
  white-space: pre-wrap !important;        /* \nを改行、連続スペース保持、適度に折り返し */
  overflow-wrap: anywhere !important;      /* 長い英数字やURLも適宜で改行 */
  line-height: 1.8;             /* 読みやすさUP（任意） */
  text-align: left !important;
  padding: 0px 16px 16px 16px;
}
.fas.fa-times {
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  color:#19448e;
}
h2.p-modal-lead {
  display: inline-block;
  margin:0.5rem;
  color: #19448e;
}
h2.p-modal-lead::before {
  font-family: "Font Awesome 5 Free";
  content: '\f044';
  font-weight: 900;
  color: #19448e;
  margin-right: 0.5rem;
}
p.p-modal-label {
  position: relative;
  left: 2rem;
  font-size: 1.6rem;
  color: #BD0022;
}
p.p-modal-label::after {
  content: '\f005\f005';
  font-family: "Font Awesome 5 Free";
  color: #ffc107;
  font-weight: 900;
  position: relative;
  left: 1rem;
}
p.p-modal-label-high {
  color: #155724;
}
p.p-modal-label-high::after {
  content: '\f005\f005\f005';
  font-family: "Font Awesome 5 Free";
  color: #ffc107;
  font-weight: 900;
  position: relative;
  left: 1rem;
}
p.p-modal-label-row {
  color: #721c24;
}
p.p-modal-label-row::after {
  content: '\f005';
  font-family: "Font Awesome 5 Free";
  color: #ffc107;
  font-weight: 900;
  position: relative;
  left: 1rem;
}
div.p-modal-table {
  width: 90%;
  position:relative;
  left:2rem;
  max-height: calc(100vh - 220px);
  overflow: auto;
}
/* ヘッダーを固定 */
.p-modal-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #19448e;
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,.15);
  background-clip: padding-box;
  box-shadow: 0 2px 0 rgba(0,0,0,.1);
}
.p-modal-table table {
  border-collapse: separate;
  border-spacing: 0;
}
table.p-modal-contents {
  white-space: nowrap;
  margin:0 auto;
}
table.p-modal-contents th,table.p-modal-contents td{
  vertical-align: middle;
  text-align: center;
}
table.p-modal-contents td:nth-child(2) {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
table.p-modal-contents td:nth-child(3),
table.p-modal-contents td:nth-child(4),
table.p-modal-contents td:nth-child(5) {
  text-align: left;
}
/*ナビゲーションメニュー*/
nav{
  position: relative;
  background: transparent;
}
.navbar_toggle{
  z-index:9999;
}
.navbar_toggle_icon {
  position: relative;
  display: block;
  height: 2px;
  width: 30px;
  background: #ffffff;
  -webkit-transition: ease .5s;
  transition: ease .5s;
}
.navbar_toggle_icon:nth-child(1) {
    top: 0;
}
.navbar_toggle_icon:nth-child(2) {
    margin: 8px 0;
}
.navbar_toggle_icon:nth-child(3) {
    top: 0;
}
.menu.open {
  -webkit-transform:translateX(0);
  transform:translateX(0);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.navbar_toggle.open .navbar_toggle_icon:nth-child(1) {
  top: 10px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.navbar_toggle.open .navbar_toggle_icon:nth-child(2) {
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  opacity: 0;
}
.navbar_toggle.open .navbar_toggle_icon:nth-child(3) {
  top: -10px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.menu{
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-transition:ease .5s;
  transition:ease .5s;
  z-index:1000;
}
/*規約モーダル*/
.agree_lead {
  width: 75%;
  margin: auto;
}
h2.large {
  font-size:2rem;
}
div.close-button {
  width: 15rem;
  margin: auto;
}
/*ハンバーガーメニューオープン時の背景色*/
div.overlay_black {
  position: fixed;
  z-index: 99;
  top: 90px;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: .5;
  transition: .3s ease-in-out;
}
ul.contents_q_wrapper {
  margin:1.5rem 0;
}
li.contents_q_element {
  margin-top:0.5rem;
}
/*apply*/
div.flex-space {
  display: flex;
  width: 48rem;
  margin: auto;
}
div.plan {
  border: 2px solid #007bff;
  border-radius: 4px;
  margin-right: 1rem;
}
div.unselected {
  border: 1px solid #f0f0f0;
}
.pointer {
  cursor:pointer;
}
.plan-year,.plan-month {
  width: 100%;
  height: 100%;
}
p.plan-checked {
  background-color: #007bff;
  padding: .375rem .75rem;
  color: #fff;
  text-align: center;
}
p.plan-checked::before {
  content: " \f058";
  position: relative;
  right: 7.5rem;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
p.unselected {
  background-color: #f0f0f0;
  color: #19448e;
}
p.plan-checked.unselected::before {
  content: " \f058";
  position: relative;
  right: 7.5rem;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #fff;
}
.hidden {
  display:none
}
div.plan-container {
  padding: 1.5rem;
}
span.plan-name {
  font-size:1.5rem
}
span.deal {
  font-size: 1rem;
  background-color: #f0f0f0;
  color: #4d4d4d;
}
span.price {
  font-size: 2.5rem;
  font-weight: bold;
  font-family: Roboto,sans-serif;
}
span.price::after {
  position: relative;
  content: '/\6708';
  font-size: 1rem;
}
.annotation {
  color:#d44950;
}
.block {
  display: block;
}
.green-style {
  color: #155724;
}
.cap_style {
  color: #666;
  font-size: 0.9rem;
}
span.annotation {
  font-size: 0.8rem;
}
.main-margin {
  margin: 0 0 2rem 0;
  display:inline-block;
}
p.annotation {
  font-size: 1rem;
}
li.check-mark {
  margin-top: 1rem;
  color: #155724;
  list-style-type: none;
}
li.check-mark::before {
  content: " \f00c";
  position: relative;
  right: 0.5rem;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #155724;
}
.caution {
  max-width: 34rem;
  margin: auto;
  margin-top: 3rem;
  padding: 1rem;
  color: #495057;
}
.caution-lead {
  color:#d44950;
}
.terms-wrapper {
  padding-left:0;
}
.terms-list {
  list-style-type: none;
}
.inline {
  display:inline;
}
h2.apply-lead {
  font-size: 1.2rem;
  width: 65%;
}
div.apply {
  width: 32rem;
  margin: 0 auto;
}
/*form*/
div.form-container {
  width: 45%;
  margin: 0 auto;
}
p.form-text {
  margin:0;
}
.label-group {
  width: 95%;
  max-width: 25rem;
  min-width: 15rem;
}
.msg-style {
  color:#d44950;
}
/*マイページ*/
div.form-section {
  border: 1px solid #343a40;
  border-radius: 3px;
  padding: 1rem;
  min-width: 365px;
  margin-bottom: 0.5rem;
}
p.cancel-alert {
  color:#d44950;
}
/*bootstrapの調整*/
input.form-control-lg::placeholder {
  color: #aab7c4;
  font-size:1rem;
}
/* IE */
input.form-control-lg:-ms-input-placeholder {
  color: #aab7c4;
  font-size:1rem;
}
/* Edge */
input.form-control-lg::-ms-input-placeholder {
  color: #aab7c4;
  font-size:1rem;
}
/*stripe*/
/**
 * The CSS shown here will not be introduced in the Quickstart guide, but shows
 * how you can use CSS to style your Element's container.
 */
.StripeElement {
  box-sizing: border-box;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px 0 #e6ebf1;
  -webkit-transition: box-shadow 150ms ease;
  transition: box-shadow 150ms ease;
}
.StripeElement--focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
}
.StripeElement--invalid {
  border-color: #fa755a;
}
.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}
.stripe-input {
  width: 95%;
  max-width: 25rem;
  min-width: 15rem;
  padding: 0.5rem;
  margin-bottom: 5px;
  border: 1px solid #ced4da;
  border-radius: .3rem;
}
#cancel-btn,.cancel-btn-control label {
  cursor:pointer;
}
/*ログアウト*/
h2.logout-title {
  width: 40%;
  margin: 0 auto;
}
div.logout-page {
  width: 25%;
  margin: 0 auto;
}
/*パスワードリセット*/
div.code-msg {
  display:none;
  max-width: 25rem;
}
dl.code-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  justify-content: center;
  width: 100%;
  height: 5rem;
  background: #ced4da;
  border-radius: 10px;
}
dd.code-text {
  font-size: 1.5rem;
  color: #007bff;
  font-weight: 600;
}
/*フッター*/
#page_top{
  width: 3.2rem;
  height: 3.2rem;
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  background: #870101;
  opacity: .6;
  border-radius: 50%;
  transition-duration: .7s;
  display: none;
  z-index: 100;
}
#page_top:hover{
  opacity: 1;
}
#page_top a{
  position: relative;
  display: inline-block;
  width: 3.2rem;
  height: 3.2rem;
  text-decoration: none;
}
#page_top::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f106';
  font-size: 1.6rem;
  color: #fff;
  position: absolute;
  width: 1.6rem;
  bottom: 0.5rem;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
/*FAQ start*/
tbody.legal th,tbody.faq th {
  background: #19448e;
  color: #fff;
  border-color: #19448e !important;
  text-align: left;
}
tbody.faq th::before {
  content: 'Q.';
  font-size: 1.6rem;
  font-weight: 600;
}
tbody.faq td::before {
  content: 'A.';
  font-size: 1.6rem;
  font-weight: 600;
  color: #19448e;
}
.table-bordered.faq td, .table-bordered.faq th,.table-bordered.legal td, .table-bordered.legal th {
  border: 1px solid #19448e;
}
h2.faq_title {
  font-size: 1.6rem;
  border-bottom: 3px solid #19448e;
  padding: 0 0 0.5rem 0;
  margin: 2rem 0 1.5rem 0;
}
ul.anc {
  display: flex;
  justify-content: space-around;
}
ul.anc li a {
  background: rgba(33,37,41,0.7);
  color: #fff;
  display: inline-block;
  text-decoration: none;
  padding: 1.2rem;
  width: 13rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid;
  position: relative;
  transition: 0.3s ease-out;
}
ul.anc li a:hover {
  background:#fff;
  color: #19448e;
}
ul.anc li a::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 0px;
  border-bottom: solid 2px #fff;
  border-right: solid 2px #fff;
  transform: rotate(45deg);
  bottom: 8px;
  left: 50%;
  transition: 0.3s ease-out;
}
ul.anc li a:hover:after {
  border-bottom: solid 2px #19448e;
  border-right: solid 2px #19448e;
}
/*FAQ end*/
/*table figure start*/
table.figure {
  width: auto;
  margin: 0;
}
table.figure th {
  background: rgba(33,37,41,1);
  color: #fff;
}
/*table figure end*/
/*contact start*/
h1.contact {
  text-align: center !important;
  display: inline-block;
  width: 100%;
}
section.common {
    margin: 6rem 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
div.form-container.apply-form.contact {
  width: initial;
}
div.content {
  max-width: 600px;
  min-width: 300px;
  width: 80%;
}
label.label-group.contact {
  width: 100%;
  max-width: initial;
  min-width: initial;
}
p.form-text.contact {
  font-size: 1.2rem;
  font-weight: 600;
}
p.privacy-po {
  font-weight: 600;
}
p.contact-alert, p.msg-style {
  color: #dc3545;
}
.required::after {
    content: "必須";
    background-color: rgb(220, 53, 69);
    color: rgb(255, 255, 255);
    position: relative;
    left: 1rem;
    font-size: 1rem;
    padding: 0.2rem;
    border-radius: 0.3rem;
}
textarea.form-control {
  max-height: 300px;
}
input.privacy {
  height: 1.5rem;
  width: 1.5rem;
  display: inline-block;
  margin: 0 1rem 0 0;
}
button.contact {
  width: 100%;
}
section.contact-contents {
  margin: 1rem 0 0 0;
}
p.contact-text {
  text-align: center;
  font-size: 1.2rem;
}
/*contact end*/
/*サンプル問題下部の参照先文言のスタイルstart*/
ul.chapter_link {
  padding: 0;
  margin: 1rem 0 1rem 0;
}
/*サンプル問題下部の参照先文言のスタイルend*/
/*chapterページのスタイルstart*/
blockquote {
  margin: 0 0 1rem;
  border-left: 4px solid #ccc;
  padding: 0px 0px 0px 16px;
  color: #666;
  font-style: italic;
}
cite {
  display: block;
  font-size: 0.9rem;
  color: #333;
}
.important-categories {
  margin: 20px 0;
  padding: 15px;
  background-color: #f0f0f5;
  border-left: 5px solid #007bff;
  border-radius: 5px;
}
.category-list {
  list-style-type: none;
  padding-left: 0;
}
.category-list li {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: bold;
  color: #007bff;
}
.category-gray {
  border-left: 5px solid #666;
}
.category-list-gray li {
  color: #666;;
}
.flex_center {
  display: flex;
  justify-content: center;
}
.video_type {
  max-width: 300px;
}
/* 実行プレビュー用（他と干渉しないようにスコープを絞る） start*/
.live-demo { margin: 12px 0 24px; }
.live-frame {
  width: 100%;
  max-width: 820px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
/* 2-1 = 42pxナビ、2-2 = 58pxバナー。他は少し余裕を持たせる end*/
/*chapterページのスタイルend*/
/*実技問題コーディングエディタ領域のスタイルstart*/
h3.editor-lead {
  font-size: 1rem;
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0px 12px;
}
.editor-panel { display: grid; gap: 12px; }
.editor-fields { display: grid; gap: 12px; }
.editor-field label { display:block; margin: 4px 0; font-weight:600; }
.editor-reset {
  margin: 8px 0px 12px;
}
.code-input{
  width:100%; min-height:180px; resize:vertical;
  font:13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space:pre; /* 改行・空白をそのまま保持 */
}
.live-frame{ width:100%; border:1px solid #ddd; border-radius:6px; }
.preview-placeholder{
  display:flex; align-items:center; justify-content:center;
  height: 200px; border:1px dashed #ccc; border-radius:6px; color:#666;
  background:#fafafa;
}
/* 伸縮させるので縦リサイズは無効、横は100%に */
.code-input{
  width: 100%;
  overflow: hidden;   /* スクロールバーを出さない */
  resize: none;       /* ユーザーの手動リサイズを無効 */
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  min-height: 140px;  /* 最低高さはお好みで */
  max-height: 60vh;   /* 長文でページが暴れないよう上限（任意） */
}
.code-input{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;          /* iOS自動ズーム防止 */
  line-height: 1.5;
  padding: 12px;
  border-radius: 6px;
  min-height: 30dvh;        /* モバイルでの見通しを確保 */
  max-height: 60dvh;
  overflow: auto;           /* 必要以上のレイアウトシフトを防ぐ */
  -webkit-text-size-adjust: 100%;
}
/* キーボード出現中はプレビューを無効化（誤タップ防止） */
.kbd-open .live-frame{ pointer-events: none; }
/* 入力周辺の慣性スクロールを抑制 */
.editor-panel{ overscroll-behavior: contain; }
/*実技問題コーディングエディタ領域のスタイルend*/
/* スイッチっぽい見た目（簡易） */
.ap-switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.ap-switch input { inline-size: 18px; block-size: 18px; }
/* テキストエリアの操作性向上（横スクロール/フォーカス時のガタつき対策） */
.code-input {
  overflow: auto;
  white-space: pre;
  overscroll-behavior: contain;
  touch-action: manipulation;
}
.preview-controls{
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0 24px;
}
.preview-controls .btn.preview-update:disabled{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
}
/* リサイズ可能なビューポート */
.preview-viewport{
  resize: horizontal;           /* ← これで横方向にドラッグ可能 */
  overflow: auto;               /* resizeを効かせる必須条件 */
  min-width: 320px;             /* 最小はSP相当 */
  max-width: 100%;              /* 親幅を超えない */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
/* 中のiframeはビューポートの幅に追従 */
.live-frame{
  display: block;
  width: 100%;
  border: 0;
}
/* iOS風スイッチ（既にあるなら流用でOK） */
.ios-switch { display:inline-flex; align-items:center; gap:.5rem; user-select:none; }
.ios-switch .track { width:48px; height:28px; border-radius:999px; background:#d1d5db; position:relative; transition:.2s; cursor: pointer;}
.ios-switch input:checked + .track { background:#22c55e; }
.ios-switch .thumb {
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.2);
  transition:.2s;
}
.ios-switch input:checked + .track .thumb {
  transform:translateX(20px);
}

/* ダークは editor-panel の中だけ */
.editor-panel.is-dark .code-input {
  background:#0f172a; color:#e5e7eb; border-color:#334155;
}
.editor-panel.is-dark label { color:#e5e7eb; }
/* 既存のハイライトや枠色など、必要に応じてこのスコープ内で上書き */
/* ネイティブのチェックボックスを視覚的に非表示（アクセシブルに） */
.ios-switch > input[type="checkbox"]{
  position: absolute;
  /* SR-only パターン（完全に非表示だがフォーカス可能） */
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
}

/* フォーカスリングはトラック側に表示 */
.ios-switch > input[type="checkbox"]:focus-visible + .track{
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
/*ダークモードでも例外的に変更しないstart*/
.editor-field label,.ap-switch > span {
  color: #212529 !important;
}
/*ダークモードでも例外的に変更しないend*/
/* 前の解答ボタンの強制表示クラス */
.reuse-prev-group.reuse-visible .btn {
  display: inline-block !important;
}
.reuse-prev-group {
  margin: 0px 0px 16px 0px;
}
/*Bootstrap上書き対応start*/
/* --------------------------------------------
  Editor Buttons (Bootstrap不要)
  スコープ: .preview-editor（なるべく局所化）
-------------------------------------------- */
.preview-editor {
  --btn-radius: 10px;
  --btn-shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);
  --focus-ring: 0 0 0 3px rgba(59,130,246,.35);

  /* ライトモード既定 */
  --btn-bg: #ffffff;
  --btn-text: #1f2937;         /* slate-800 */
  --btn-border: #cbd5e1;       /* slate-300 */
  --btn-bg-hover: #f8fafc;     /* slate-50 */
  --btn-border-hover: #94a3b8; /* slate-400 */

  /* アウトライン(secondary)の色 */
  --btn-ol-text: #334155;        /* slate-700 */
  --btn-ol-border: #cbd5e1;
  --btn-ol-hover-bg: #eff6ff;    /* blue-50 */
  --btn-ol-hover-border: #60a5fa;/* blue-400 */
  --btn-ol-hover-text: #1d4ed8;  /* blue-700 */

  /* プライマリ（必要なら） */
  --btn-pri-bg: #2563eb;         /* blue-600 */
  --btn-pri-text: #fff;
  --btn-pri-hover-bg: #1d4ed8;   /* blue-700 */
}

/* ダークモード（エディタ内部のみ） */
.editor-panel.is-dark .preview-editor,
.preview-editor .editor-panel.is-dark {
  --btn-bg: #0f172a;            /* slate-950 */
  --btn-text: #e5e7eb;          /* slate-200 */
  --btn-border: #334155;        /* slate-700 */
  --btn-bg-hover: #0b1220;      /* slightly lighter dark */
  --btn-border-hover: #475569;  /* slate-600 */

  --btn-ol-text: #e2e8f0;       /* slate-200 */
  --btn-ol-border: #475569;     /* slate-600 */
  --btn-ol-hover-bg: #0b1220;
  --btn-ol-hover-border: #60a5fa;
  --btn-ol-hover-text: #93c5fd; /* blue-300 */

  --btn-pri-bg: #3b82f6;        /* blue-500 */
  --btn-pri-text: #fff;
  --btn-pri-hover-bg: #60a5fa;  /* blue-400 */
}

/* ツールバーの並び（念のため） */
.preview-editor .editor-toolbar,
.preview-editor.preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ベースボタン */
.preview-editor .btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--btn-radius);
  padding: .56rem .9rem;
  font: 600 .95rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .02s ease, box-shadow .18s ease;
  user-select: none;
  white-space: nowrap;
}
.preview-editor .btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  transform: translateY(-1px);
}
.preview-editor .btn:active {
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.preview-editor .btn:focus-visible {
  outline: none;
  box-shadow: var(--btn-shadow), var(--focus-ring);
}
.preview-editor .btn:disabled,
.preview-editor .btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.console-panel {
  margin-top: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.editor-panel.is-dark .console-panel {
  background: #0f172a; color: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  margin: 0px 0px 24px 0px;
}
.console-toolbar {
  display:flex;
  gap:6px;
  align-items:center;
  margin-bottom:6px;
  font-size:12px;
  flex-wrap: wrap;
}
.console-output {
  max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px;
  padding: 8px; border-radius: 6px; background: rgba(0,0,0,.04);
}
.editor-panel.is-dark .console-output {
  background: rgba(255,255,255,.06);
  color: #ffffff;
}
textarea.code-input { overflow-anchor: none; }
.console-toolbar label{ user-select:none; font-size:12px; margin-right:8px; }
.console-output{ line-height:1.4; }
/* 穴埋めマーカー共通 */
.code_wrap .hole-marker{
  display:inline-block; padding:0 .25em;
  border-radius:6px; background:#fff3cd; color:#d32f2f; font-weight:700;
  line-height:1; box-decoration-break:clone; user-select:text;
}
/* 小さめサイズ（bootstrapの .btn-sm 互換） */
.preview-editor .btn-sm {
  padding: .38rem .7rem;
  font-size: .875rem;
  border-radius: 8px;
}

/* アウトライン・セカンダリ（bootstrapの .btn-outline-secondary 互換） */
.preview-editor .btn-outline-secondary {
  background: transparent;
  color: var(--btn-ol-text);
  border-color: var(--btn-ol-border);
}
.preview-editor .btn-outline-secondary:hover {
  background: var(--btn-ol-hover-bg);
  border-color: var(--btn-ol-hover-border);
  color: var(--btn-ol-hover-text);
}
.preview-editor .btn-outline-secondary:active {
  background: var(--btn-ol-hover-bg);
}

/* 参考: プライマリ（使う場合） */
.preview-editor .btn-primary {
  background: var(--btn-pri-bg);
  color: var(--btn-pri-text);
  border-color: transparent;
}
.preview-editor .btn-primary:hover {
  background: var(--btn-pri-hover-bg);
}

/* 角丸＆影を統一（カードっぽく） */
.preview-editor .btn,
.preview-editor .btn-outline-secondary,
.preview-editor .btn-primary {
  border-radius: 10px;
}

/* ホバー不可環境での不要な浮き上がりを抑制 */
@media (hover: none) {
  .preview-editor .btn:hover { transform: none; }
}

/* 余白の調整（上下の詰まりを避ける） */
.preview-editor .editor-toolbar { margin: 8px 0 12px; }
/*Bootstrap上書き対応end*/
@media screen and (max-width: 767px) {
  h1 {
    font-size: 1.5rem;
  }
  h1.faq-lead {
    font-size: 2.2rem;
  }
  h2.top {
    margin:1rem 0 2rem 0;
    font-size: 1.5rem;
  }
  #mainlead {
    margin-top:0.2rem;
  }
  div.main_lead_bg.top {
    height:17rem;
  }
  div.main_lead_bg.contents {
    background-position: right;
    height: 10rem;
  }
  div.contents>.container {
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
  }
  /*コンポーネント*/
  div.component_wrapper {
    margin: 0 auto;
    width: 15rem;
  }
  button.settle-style {
    width:18rem;
  }
  .settlement {
    width: 18rem;
    margin: auto;
    margin-top: 1rem;
  }
  .back-button {
    width: 15rem;
  }
  .textAdj {
    line-height: 3rem;
  }
  .indent::before {
    content: "\A";
    white-space: pre;
  }
  p#sub_lead {
    font-size:0.8rem;
    margin: 0;
  }
  p.lead_copy {
    font-size:1rem;
    font-weight:300;
  }
  div.drawer{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 70px;
    padding: 0 1em;
  }
  /*#navbarNavは、スマホ画面最適PC・タブレットは別に指定すること*/
  #navbarNav {
    position: absolute;
    left: 0;
    z-index: 9999;
    background-color: #fff;
    transition: .3s ease-in-out;
    width: 85%;
    top: 105%;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav {
    flex-direction: column;
  }
  #navbarNav .nav,
  #navbarNav .nav > li,
  #navbarNav .nav-item {
    display: block !important;
    width: 100%;
  }
  #navbarNav .dropdown-menu {
    position: static !important;   /* ← absolute / fixed をやめる */
    transform: none !important;    /* Bootstrapの translate を無効化 */
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;       /* 青い板の上にそのまま並べたい場合 */
  }
  #navbarNav .dropdown-menu > li > a {
    display: block;
    padding: 2rem 1.5rem;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
  }
  div.menu ul li{
    border-bottom: 1px solid #CCC;
    background-color: #19448e;
  }
  /*グロナビhover時の装飾*/
  ul.nav li > a {
    display: block;
    padding: 2rem 1.5rem;
    width: 100%;
  }
  ul.nav li > a:hover {
    text-decoration:none;
  }
  .dropdown-menu {
    background-color:transparent;
    width:100%;
    padding:0;
  }
  div.content_bg {
    padding-bottom: 10vw;
  }
  .svg-common {
    height: 15rem;
    width: 22rem;
  }
  /*indexのfigare内レイアウト調整*/
  .fig_wrap {
    max-width: 768px;
  }
  /*indexのカテゴリーなどの画像キャプションスタイル調整*/
  .cap_style_top {
    padding: 0 15px 0;
  }
  /*ハンバーガーメニューを開くときの調整*/
  /* nav.navbar {
    max-width: 390px;
  } */
  div.img {
    height: 15rem;
  }
  div.img8 {
    height: 15rem;
    background-repeat: no-repeat;
    margin: 0 auto;
    width: 26rem;
  }
  .img_lg {
      /*長めのアニメーション画像用*/
    height: 43rem !important;
  }
  /*スマホの選択肢の文字列が長いときにはみ出ないように折り返す*/
  ul.contents_q_wrapper > li.contents_q_element > label.form-check-label {
    display: block;
    word-wrap: break-word;
  }
  /*スマホ解答詳細ページモーダル*/
  div.p-modal-table {
    width: 90%;
    overflow-x: scroll;
    position: absolute;
    left: 2rem;
    overscroll-behavior: none;
    /* 旧来の 100vh をまず書き、のちに svh/dvh で上書き（対応ブラウザで有効） */
    max-height: calc(100vh - 220px);     /* フォールバック */
    max-height: calc(100svh - 220px);    /* iOS/Chromium 新仕様 */
    max-height: calc(100dvh - 220px);    /* 安定した物理ビューポート */

    /* 下部のホームバー/バウンス対策に“見えない”余白を確保 */
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  /* 2つめのth以降の幅を調整*/
  div.p-modal-table > table th:nth-child(n+2),
  div.p-modal-table > table td:nth-child(n+2) {
      width: auto;
      max-width: none;
      white-space: normal;
      min-width: 250px;
      word-break: break-all;
      overflow-wrap: break-word;
  }
  table.p-modal-contents {
    white-space: nowrap;
    overscroll-behavior: contain;
  }
  .fas.fa-times {
    position: relative;
    right: 1rem;
    display: flex;
    justify-content: flex-end;
    top: -2.5rem;
  }
  /*スマホ詳細ボタン絡む落ち防止の調整*/
  span.accuracy_rate {
    margin-left: 1rem;
  }
  /*スマホ詳細ボタン絡む落ち防止の調整*/
  .alert {
    padding: 10px 8px;
  }
  .fa-fw {
    width: 22px;
  }
  /*改行*/
  .br-sp::before {
    content: "\A" ;
    white-space: pre ;
  }
  /*問題のテーブル*/
  div.figure-table-wrapper {
    width: 100%;
    overflow-x: scroll;
  }
  table.contents_q th,table.contents_q td,table.contents_q_3 th,
  table.contents_q_3 td,table.contents_q_6 th,table.contents_q_6 td
  {
    white-space: nowrap;
  }
  table.contents_l tr
  {
    white-space: wrap;
  }
  /*apply*/
  div.plans {
    width: 90%;
    margin: auto;
  }
  div.plan {
    background-color: #007bff;
    margin: 0 0 0.5rem 0;
  }
  div.unselected {
    background-color: #f0f0f0;
  }
  p.plan-checked {
    margin:0;
    padding: 0.8rem;
    text-align: left;
  }
  p.plan-checked::before {
    right: 0.5rem;
  }
  p.plan-checked.unselected::before {
    right: 0.5rem;
  }
  p.year::after {
    content: '¥5,500/月';
    position: relative;
    left: 5rem;
  }
  p.month::after {
    content: '¥6,600/月';
    position: relative;
    left: 5rem;
  }
  label.sp {
    width:100%;
    margin:0;
  }
  .caution {
    max-width: 18rem;
  }
  /*form*/
  div.form-container {
    width: 70%;
    margin: 0 auto;
  }
  div.apply-form {
    width: 95%;
  }
  div.mail-form {
    width: 90%;
  }
  div.resistered-form {
    width: 85%;
  }
  div.resistered-form-section {
    min-width: 315px;
  }
  div.form-wrapper,div.button-wrapper {
    width: 92%;
    margin: 0 auto;
  }
  div.apply {
    width: 68%;
  }
  div.mail-button {
    width:72%;
  }
  .label-input {
    width:100%;
  }
  .mail-input {
    font-size:1rem;
  }
  /*stripe*/
  .stripe-register {
    width: 100%;
  }
  /*ログアウト*/
  h2.logout-title {
    width: 60%;
  }
  div.logout-page {
    width: 65%;
    margin: 0 auto;
  }
  /*プライバシーポリシーstart*/
  section.policy {
    padding:1rem;
    margin: 1rem 0 0 0;
  }
  ul.list-contain {
    position: relative;
    right: 1rem;
  }
  /*プライバシーポリシーend*/
  /*footer start*/
  section.inner-top,div.bottomo-rules ul {
    flex-direction: column;
  }
  ul.footer-list {
    padding: 0;
    margin: 0;
  }
  ul.footer-list li {
    padding: 1rem 0 0 0 !important;
    position: relative;
  }
  section.inner-top ul.footer-list :not(.list-heading,h3,a) {
    display: none;
  }
  section.inner-top ul.footer-list.open :not(.list-heading,h3,a) {
    display: block !important;
    background: #284d8c;
  }
  ul.footer-list li.list-heading {
    cursor: pointer;
    border-bottom: 2px solid #fff;
  }
  ul.footer-list li.list-heading h3 {
    font-size: 1rem;
  }
  ul.footer-list li.list-heading::after {
    position: absolute;
    color: #fff;
    right: 1rem;
    top: 1rem;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f067";
  }
  ul.footer-list li.list-heading.open::after {
    content: "\f068";
  }
  ul.footer-list li a::after {
    position: absolute;
    color: #fff;
    right: 1rem;
    top: 1rem;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f105";
  }
  div.footer-logo {
    margin: 1rem 0 0 0;
  }
  section.inner-bottom {
    margin: 2.5rem 0 0 0;
  }
  li.size-change {
      font-size: 0.8rem;
  }
  /*footer end*/
  /*ぱんくず start*/
  .bread_crumb_wrap ul {
    font-size: 12px;
    display: block;
  }
  /*ぱんくず end*/
  /*FAQ start*/
  ul.anc {
    margin: 0;
    padding: 0;
  }
  ul.anc li a {
    padding: 1rem;
    width: 7rem;
    font-size: 0.8rem;
  }
  /*FAQ end*/
  /*コードプレビューiframe更新ボタン調整start*/
  .preview-controls{
    position: sticky;     /* ページ下辺に張り付く */
    bottom: 0;
    background: #fff;
    padding: 10px 12px;
    box-shadow: 0 -6px 14px rgba(0,0,0,.08);
    z-index: 30;
    margin: 16px -8px 0;   /* 端まで広げたい場合は調整 */
  }
  .preview-controls .btn.preview-update{
    flex: 1;              /* ボタンを大きめに */
  }
  /*コードプレビューiframe更新ボタン調整end*/
}
@media screen and (max-width: 400px) {
  h1.top {
    font-size: 1.3rem;
  }
  h1.contents {
    font-size: 1.2rem;
  }
  p.header_logo a {
    font-size: 0.9rem;
  }
}
@media (min-width: 576px){
  .container {
      max-width: 100% !important;
  }
}
@media screen and (min-width: 768px) {
  main.main_lead {
    min-height: 700px;
  }
  /*コンポーネント*/
  div.component_wrapper {
    display: flex;
    justify-content: center;
    gap: 24px;
  }
  div.drawer {
    display:none;
  }
  div.main_lead_bg.top {
    height:40rem;
  }
  div.container.lead.top > div {
    display: flex;
    flex-direction: column;
  }
  .container {
    max-width: 760px !important;
  }
  h1 {
    font-size: 2.3rem;
  }
  /* h1.top {
    min-width: 800px;
  } */
  h1>span.mainlead_title {
    font-size: 1.8rem;
  }
  h1.contents,section.contents {
    top: 8rem;
    text-shadow: 3px 3px 3px #000;
  }
  .textAdj {
    line-height: 4rem;
  }
  .indent::before {
    content: "\A";
    white-space: pre;
  }
  p.lead_copy {
    font-size:1.25rem;
    font-weight:300;
  }
  div.img.others,div.main_lead_bg.top.others {
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  div.main_lead_bg.contents {
    background-attachment: fixed;
    background-position: center;
    height: 22rem;
  }
  div.img8 {
    height: 33rem;
    background-repeat: no-repeat;
    margin: 0 auto;
    width: 55rem;
  }
  /*ハンバーガーメニューを非表示でグロナビを表示*/
  nav{
    display: flex;
    flex-direction: row;
  }
  div#nav-content {
    margin-right: -2.5rem;
  }
  .navbar_toggle{
    display: none;
  }
  .menu{
    width: 100%;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    position: relative;
  }
  .menu ul{
    height: 70px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }
  ul.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none !important;
    float: left;
    min-width: 10rem;
    padding: .5rem 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #19448e;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
  }
  ul.dropdown-menu.show {
    display: block !important;
    width: 511px;
    height: 400px;
    line-height: 2rem;
    background-color: #19448e;
    overflow: scroll;
  }
  div.menu ul.dropdown-menu li{
    border-bottom: 1px solid #CCC;
  }
  /*グロナビhover時の装飾*/
  ul.nav li > a {
    display: block;
    padding: 1rem 1.45rem;
    width: 100%;
  }
  ul.nav li > a:hover {
    text-decoration:none;
    background-color:#ffffff;
    color:#19448e;
  }
  div.content_bg {
    padding-bottom: 5vw;
  }
  div.error-contents {
    width: 50%;
    margin: 0 auto;
  }
  /*PC解答詳細ページモーダル*/
  .fas.fa-times {
    display: flex;
    justify-content: flex-end;
    position: relative;
    top: -2.5rem;
    right: 1rem;
  }
  /* テーブルセル内の長い内容を適切に改行 */
  div.p-modal-table > table th, div.p-modal-table > table td {
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
  }
  /* モーダル内のテーブルで2列目以降を幅200px以上にする */
  div.p-modal-table > table th:nth-child(n+2),
  div.p-modal-table > table td:nth-child(n+2) {
    min-width: 300px;
  }
  /*改行*/
  .br-pc::before {
    content: "\A" ;
    white-space: pre ;
  }
  /*プライバシーポリシーstart*/
  section.privacy {
    max-width: 720px;
    min-width: 300px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  section.policy {
    margin: 2rem 0 0 0;
  }
  /*プライバシーポリシーend*/
  /*indexのカテゴリーなどの画像キャプションスタイル調整*/
  .cap_style_top {
    width: 45rem;
  }
}
@media screen and (min-width: 768px) and (max-width: 958px) {
  ul.nav li > a, p.header_logo a {
    font-size: 11px;
  }
}
@media (min-width: 992px) {
  #question-num {
    margin-top: .5rem!important;
  }
}
