ul.sub-menu.mega-inner {
    display: block;
    position: absolute;
    width: max-content;
    left: 0px!important;
    transform: translateX(0px);
    -webkit-transform: translateX(0%);
    -ms-transform: translateX(0%);
    width: 400px!important;
	height:auto;
}

.main-navigation .primary-menu > li {
    position: relative;
}

.mega-wrap {
	opacity:0;
}

ul.sub-menu.mega-inner li a {
    text-align: left;
    padding: 0 20px;
}

.second-layer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 980px;
    margin: 0 auto 30px;
}

.second-layer-menu a {
    background-color: #50a1f2;
    color: #fff;
    width: 130px;
    text-align: center;
    font-size: 11pt;
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0 15px;
    padding: 10px 0;
	line-height:1.2;
}
div#panel-2-0-0-1 {
    width: 102%;
    margin-left: -1%;
}
.pickup_flex_box article {
    width: 48%;
}

.entry-content #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
    width: 100%;
}

.entry-content #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post img.jp-relatedposts-post-img {
    max-width: 30%;
}


h3.step_heading {
    margin: 0 0 0.5em 0;
    font-size: 14pt;
}

.gosoudan_flex {
    display: flex;
	flex-wrap:wrap;
    gap: 30px;
    justify-content: center;
    text-align: center;
}

.gosoudan_flex > div {
    padding: 25px 10px;
    width: 270px;
}

.gakkounokata {
    background-color: #E9F4FF;
    border: 2px solid #59A6F6;
}

.gyouseinokata {
    background-color: #F6FBEB;
    border: 2px solid #83bf00;
}

.qanda .question {
    font-size: 13pt;
    background-color: #efefef;
    margin-bottom: 1em;
    padding: 5px 20px;
    font-weight: bold;
}

.qanda .answer {
    font-size: 13pt;
    background-color: #ffd7d7;
    margin-bottom: 3em;
    padding: 5px 20px;
}

.textwidget h1.line-rl {
    position: relative;
    display: table;
    padding: 0 55px;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", "sans-serif";
    font-weight: bold;
    border: none;
    background: none;
    font-size: 24px;
    margin-right: auto;
    margin-left: auto;
}

h1.line-rl:before, h1.line-rl:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 45px;
    height: 1px;
    background-color: black;
}

h1.line-rl:before {
    left: 0;
}

h1.line-rl:after {
    right: 0;
}
@media (max-width: 640px) {
div#panel-2-0-0-1 {
    width: 100%;
    margin-left: 0;
}
.pickup_flex_box article {
    width: 100%;
}
}
.small-table {
       font-size: 0.7em;
     }

/* 黄色いハイライトを引く */
span.yellowmarker-under {
 background-image: linear-gradient(transparent 60%, #f7f78b 0%);
}

/* 青いハイライトを引く */
span.bluemarker-under {
 background-image: linear-gradient(transparent 60%, #b8dee6 0%);
}

/* ピンクのハイライトを引く */
span.pinkmarker-under {
 background-image: linear-gradient(transparent 60%, pink 0%);
}

.deco {
    background: #d6e5f0;
    border: 2px dotted #558fd2;
    padding: 15px;
}

.deco2 {
    background: #fffdd2;
    border: 2px dotted #d29d55;
    padding: 15px;
}

.green-box {
  background-color: #b8dee6; 
  color: 006a80; /* Dark green text */
  border: 1px solid #c3e6cb; /* Green border */
  padding: 15px; /* Spacing inside the box */
  margin-bottom: 20px; /* Spacing below the box */
  border-radius: 5px; /* Rounded corners */
}

#box {
  width: 300px;
  height: 170px;
  padding: 20px;
  border: 1px solid gray;
  background-color: rgb(210, 232, 247);
  box-sizing: border-box;
}
#box li {
  margin-top: 2px;
  margin-left: 50px;
}

.newyear-message {
  background: #f9fbfc;
  padding: 2.5em 2em;
  border-radius: 10px;
  color: #333;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

.newyear-message h2 {
  color: #1f4e79;
  font-size: 1.7em;
  margin-bottom: 1.8em;
  padding-bottom: 0.6em;
  border-bottom: 2px solid #c9d9e6;
}

.message-block {
  margin-bottom: 2.2em;
  line-height: 1.9;
}

.message-block:nth-of-type(even) {
  background: #eef4f8;
  padding: 1.4em 1.6em;
  border-left: 4px solid #7aa6c2;
  border-radius: 6px;
}

@media screen and (max-width: 768px) {
  .newyear-message {
    padding: 1.8em 1.2em;
  }

  .message-block:nth-of-type(even) {
    padding: 1.1em 1.1em;
  }
}