html {
    height: 100%;
}

body {
    font-family: sans-serif;
    margin: 0;
    min-width: 1100px;
    height: 100%;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}

header {
    display: flex;
    align-items: center;
	background-color: #CEF2FF; /*教育ポータルと同じ色（#CEF2FF）　2025/3/10　YangHong*/
    /*background-color: #42a5f5;*/
    color: white;
    width: 100%;
    height: 58px;

    /* background: #1976d2;
    background: #1565c0;
    background: #bbdefb;
    background: #e3f2fd; */
}

header h1 {
    font-size: 1.1em;
    padding: 0;
    margin: 0 0 0 1em;
    min-width: 16em;
}

header h2 {
    font-size: 1.1em;
    padding: 0;
    margin: 0;
    min-width: 16em;
}

.search-form-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 0 3em 0 0;
}

.top-search-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 8em 0 0 0;
}

.search-form {
    display: flex;
    padding: 2px;
    margin: 0 0 1px 0
}

#search-edit {
    font-size: 0.8em;
    width: 340px;
    height: 28px;
    margin: 4px 8px 4px 4px;
    padding: 0px 8px 0px 8px;
}

#search-button {
    color: white;
    background-color:#0078C8;   /*#1976d2;*/ /*2025/3/10　YangHong*/
    width: 64px;
    font-size: 0.9em;
    border-radius: 0.4rem;
    margin: 4px;
}

#search-button:active {
    background-color: #1565c0;
}

footer {
    position: sticky;
    top: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.7em;
    height: 34px;
    border-top: 3px solid #42a5f5;
}

footer span {
    margin-right: 1em;
}

main {
    display: flex;
    align-items: start;
}

.content {
    min-width: calc(1000px - 300px);
    width: calc(100% - 350px);
    display: flex;
    flex-direction: column;
    margin-left: 6px;
}

.top-content {
    min-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar {
    overflow-y: scroll;
    overflow-x: auto;
    width: 280px;
    margin-right: 28px;
    padding: 20px 0 20px 0;
    /* height: calc(100vh - (34px + 3px) - 48px - 40px); */
}

.sidebar ul {
    list-style-type: none;
    text-align: left;
    padding-left: 0px;
    margin: 2px 0 3px 0;
}

.sidebar span {
    font-size: 0.9em;
    text-align: center;
    margin: auto 0;
}

.sidebar button {
    background: none;
    border: 0;
    margin: 0 0 0 auto;
    cursor: pointer;
}

.sidebar .sidebar-child-group {
    display: none;
}

.disclosure-triangle {
    position: relative;
    padding-left: 30px;
    /* transition: all 0.3s; */
}

  .disclosure-triangle::after {
    content: "";
    position: absolute;
    margin: auto;
    top: -1px;
    bottom: 0;
    left: 6px;
    width: 7px;
    height: 7px;
    border-top: 1px solid black;
    border-right: 1px solid black;
    transform: rotate(45deg);
    /* transition: all 0.3s; */
  }

 .open::after {
    top: -4px;
    left: 6px;
    transform: rotate(135deg);
    transform-origin: center;
  }

.sidebar-list-cell {
    display: flex;
    /* background: whitesmoke; */
    height: 1.8em;
    margin: 0 4px 0px 4px;
    padding-left: 1em;
    cursor: pointer;
}

.sidebar-list-cell:hover {
    background-color: #e3f2fd;
}

.sidebar-list-cell.select {
    background-color: #bbdefb;
}

.sidebar-list-child-cell {
    /* background: white; */
    padding-left: 2em;
}

.posts {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
}

.posts-relation {
    display: flex;
    flex-direction: column;
    line-height: 1.7em;
}

.posts a, .posts-relation a {
    margin: 6px 0 6px 0.4em;
    color: black;
    text-decoration: none;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

.posts a:before, .posts-relation a:before {
    content: '・';
    padding-right: 0.5em;
}

.posts a:hover, .posts-relation a:hover {
    color: #5094cc;
}

hr {
    height: 0;
    margin: 0 1px 0 1px;
    padding: 0;
    border: 0;
    border-top: 2px solid #bbdefb;
}

.post {
    margin-top: 4px;
    margin-bottom: 40px;
    min-height: 300px;
}

.breadcrumbs {
    display: flex;
    padding: 2px;
    margin: 24px 0 10px 0
}

.breadcrumbs a {
    margin: 0 4px 0 0
}

.arrow {
    position: relative;
    display: inline-block;
    padding: 0 0 0 16px;
    color: #000;
    vertical-align: middle;
    text-decoration: none;
    font-size: 0.9em;
}

.arrow::before,
.arrow::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    content: "";
    vertical-align: middle;
  }

  .breadcrumbs-arrow::before {
    left: 5px;
    box-sizing: border-box;
    width: 5px;
    height: 5px;
    border: 5px solid transparent;
    border-left: 5px solid darkgray;
}

.pager {
    display: flex;
    background: gainsboro;
    padding: 6px 8px 6px 8px;
    margin: 4px 0 8px 0;
    font-size: 0.9em;
}

#search-result {
    margin-left: 4px;
    margin-right: 10px;
}

.search-highlight {
    background-color: lemonchiffon;
}

.pager .page-numbers {
    margin: 0 2px 0 2px;
}

.pager .page-numbers.current {
    font-weight: bold;
    color: #1976d2;
}

.pager a {
    color: black;
    text-decoration: none;
}

.pager a:hover {
    text-decoration: underline;
}

.question-area {
    background-color: #42a5f5;
    font-size: 1.0em;
    padding: 2px;
    max-width: 1000px;
    margin: 0 auto 28px auto;
}

#question-faq-number {
    display: flex;
    justify-content: flex-end;
    background-color: white;
    padding-right: 1.2em;
    padding-bottom: 6px;
}

#question-area-content {
    display: flex;
    background-color: white;
    padding: 10px 2px 0px 2px;
}

#question-content-wrap {
    display: flex;
    align-items: center;
    padding-right: 1em;
    line-height: 1.7em;
}

.answer-area {
    display: flex;
    font-size: 1.0em;
    padding: 4px;
    max-width: 1000px;
    margin: 0 auto 0 auto;
}

.qa-icon-wrap {
    margin: 4px 10px 4px 12px;
}

#answer-content-wrap {
    width: 100%;
    margin-right: 65px;
    line-height: 1.7em;
}

#answer-content-wrap p {
    margin: 0;
}

#relation-faq-contents-area {
    font-size: 1.0em;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 0px auto;
}

#relation-faq-contents {
    margin: 0 70px 0 70px;
}

#relation-faq-contents h3 {
    margin-bottom: 8px;
}

.arrow-up {
    position: fixed;
    display: none;
    color: #fff;
    text-decoration:  none;
    background-color: #1565c0;
    border-radius: 5px;
    height: 40px;
    width: 40px;
    bottom: 48px;
    right: 20px;
}

.arrow-up::before {
    content:  '';
    width: 12px;
    height: 12px;
    display:  block;
    border-top: solid 3px;
    border-right: solid 3px;
    margin-top: 10px;
    margin-left: 12px;
    transform: rotate(-45deg);
}

.arrow-up::after {
    content:  '';
    width: 12px;
    height: 12px;
    display:  block;
    border-top: solid 3px;
    border-right: solid 3px;
    margin-top: -4px;
    margin-left: 12px;
    transform: rotate(-45deg);
}

.arrow-up:hover {
    text-decoration: none;
    opacity: .7;
}

#front-page-wrapper {
    display: flex;
    justify-content: center;
    width: calc(100% - (280px + 28px));
}

#top-posts {
    border: 2px solid #42a5f5;
    padding: 20px;
    margin: 100px;
}

#top-posts h3 {
    margin: 0 0 0.3em 1em;
}

#top-posts a {
    margin-left: 0.5em;
}

.row {
    display: flex;
    align-items: center;
}

.row p {
    margin: 0 1.0em 0 auto;
    min-width: 140px;
    text-align: right;
}

.topic_row {
    margin-left: 0.5em;
}

.cat-banner {
    border: 1px solid;
    font-size: 0.7em;
    padding: 2px 4px 0 4px;
    min-width: 80px;
    text-align: center;
    margin-right: 2px;
}

th,td {
    border: solid 1px !important;
    padding: 10px;
}

table {
    border-collapse: collapse;
}

#search-option {
    margin-right: 0;
    margin-left: auto;   
}

#result-limit-select {
    margin-right: 8px;
}
