:root {
  --main-margin-height: 20px;
}

/*
 * header
 */
header {
  width: 100%;
  margin: 0;
  padding: 10px 0 5px 0;
  text-align: center;
  background-color: var(--site-main-color);
}

header:hover {
  opacity: 0.7;
}

#header-content {
  margin: 0 auto;
  width: 320px;
}

#header-left {
  display: inline-block;
  vertical-align: middle;
  width: 180px;
  text-align: left;
}

#header-right {
  display: inline-block;
  vertical-align: middle;
  width: 132px;
  text-align: right;
}

header h3 {
  width: 100%;
  text-align: left;
}

header h3 img {
  width: 120px;
}

header h1 {
  width: 100%;
  margin-top: 3px;
  text-align: left;
}

header h1 img {
  width: 165px;
}

header h2 {
  width: 100%;
  margin-top: 8px;
  text-align: left;
}

header h2 #header-hitonochie-shingijutsu,
header h2 #header-minnade {
  display: block;
}

header h2 #header-hitonochie-shingijutsu img {
  width: 111px;
}

header h2 #header-minnade {
  margin-top: 3px;
}

header h2 #header-minnade img {
  width: 135px;
}

header #header-illust {
  width: 100%;
  margin-top: 8px;
  text-align: center;
}

header #header-illust img {
  width: 135px;
}

header a {
  text-decoration: none;
}

/*
 * gnav
 */
#gnav {
  width: calc(100% - 2em);
  margin: 0;
  padding: 0 1em;
  line-height: 1em;
  text-align: center;
  background-color: #47bbbe;
}

#gnav.fixed {
  position: fixed;
  opacity: 0.9;
  top: 0 !important;
  left: 0 !important;
  z-index: 2;
}

#gnav.fixed:hover {
  opacity: 1;
}

#gnav ul {
  width: 100%;
  margin: 0;
  padding: 0;
//  line-height: 1.2em;
  list-style-type: none;
  letter-spacing: -0.25em;
  text-align: left;
}

#gnav ul li {
  display: inline-block;
  vertical-align: top;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.7em 0 0.6em 0;
  width: calc(100%/3 - 0.1em);
  font-size: 0.75em;
  line-height: 1.2em;
  color: var(--site-white-color);
  letter-spacing: normal;
  text-align: center;
}

/*
#gnav ul li.long {
  width: calc(100%/2 - 0.5em);
}
*/

#gnav ul li:hover {
//  background-color: #61abae;
  background-color: #359497;
}

#gnav ul li.active {
//  background-color: #61abae;
  background-color: #359497;
}

#gnav ul li a {
  color: var(--site-white-color);
  text-decoration: none;
}

#gnav ul li#gnav-app {
  background-color: #ce6747;
}

#gnav .icon {
  height: 1em;
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: -0.1em;
}

/*
 * main
 */
main {
  background-color: var(--site-white-color);
}

main a {
  text-decoration: none;
}

main a:hover {
  color: #47bbbe;
}

#main-content {
  padding: 25px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

#main-title {
  display: inline-block;
  padding: 0.5em 1em 0.4em 1em;
  font-weight: normal;
  line-height: 1em;
  color: var(--site-black-color);
  border: solid 1px var(--site-black-color);
  border-radius: 0.2em; 
  background-color: var(--site-white-color);
}

/*
 * main-section
 */
.main-section {
  margin-top: var(--main-margin-height);
  width: 100%;
  line-height: 1.4em;
  text-align: left;
}

.main-section:first-of-type {
  margin-top: 10px;
}

.main-section-title {
  font-weight: normal;
  text-align: center;
//  margin-bottom: 0.5em;
  font-size: 1.2em;
  line-height: 1.4em;
}

.main-section-title .content {
  display: inline-block;
  border-bottom: solid 3px #47bbbe;
  padding: 0.3em 0.5em;
}

.main-section-title .content span {
  display: inline-block;
}

.main-section-text {
  margin-top: 0.5em;
}

.main-section-text p {
  margin: 0.5em 0;
}

.main-section-text ul,
.main-section-text ol {
  text-align: left;
  margin-left: 1.5em;
}

.main-section-text ul li,
.main-section-text ol li {
  text-align: left;
  line-height: 1.4em;
  margin: 0.5em 0;
}

.main-section-text ul li small,
.main-section-text ol li small {
  font-size: 0.8em;
}

.main-section-text ul li strong,
.main-section-text ol li strong {
  color: var(--site-red-color);
}

.main-section-text table {
  width: 100%;
  table-layout: fixed;
}

.main-section-text .table-container {
  width: 100%;
  overflow: scroll;
}

.main-section-text .table-container table {
  width: 200%;
}

.main-section-text table tr th,
.main-section-text table tr td {
  padding: 0.5em 1em;
  font-weight: normal;
  border: solid 1px #cccccc;
  vertical-align: top;
  text-align: left;
  font-size: 0.9em;
  line-height: 1.4em;
  vertical-align: middle;
}

.main-section-text table tr th {
  background-color: #efefef;
  font-weight: bold;
}

.main-section-text table tr th.num,
.main-section-text table tr td.num {
  text-align: right;
}

.main-section-text table tr th small,
.main-section-text table tr td small{
  font-size: 0.8em;
  line-height: 1.1em;
}

/*
.main-section-text .movie {
  text-align: center;
  margin: 0.5em auto;
  width: 300px;
  vertical-align: top;
  font-size: 0.9em;
}

.main-section-text .movie iframe {
  display: inline-block;
  width: 100%;
  aspect-ratio: 5/3;
  vertical-align: top;
}

.main-section-text .movie-caption {
  display: inline-block;
  margin: 0.5em 0;
}
*/

@media screen and (min-width: 480px), print{

/*
 * header
 */
#header-content {
  width: 480px;
}

#header-left {
  width: 320px;
}

#header-right {
  width: 153px;
}

header h1 img {
  width: 246px;
}

header h2 {
  margin-top: 5px;
}

header h2 #header-hitonochie-shingijutsu,
header h2 #header-minnade {
  display: inline-block;
}

header h2 #header-hitonochie-shingijutsu img {
  width: 138px;
}

header h2 #header-minnade {
  margin-top: 0px;
}

header h2 #header-minnade img {
  width: 168px;
  margin-left: 0.5em;
}

header #header-illust img {
  width: 150px;
}

/*
 * gnav
 */
#gnav ul {
  text-align: center;
}

#gnav ul li,
#gnav ul li.long {
  width: calc(100%/4 - 0.1em);
  font-size: 0.8em;
}

#gnav ul li.long {
  letter-spacing: -0.05em;
}

#gnav ul li.low-priority {
  display: none;
}

/*
 * main
 */
#main-content {
  padding-left: 30px;
  padding-right: 30px;
  width: calc(100% - 60px);
}
}

@media screen and (min-width: 960px), print{

/*
 * header
 */
#header-content {
  width: 900px;
}

#header-left {
  width: 600px;
}

#header-right {
  width: 290px;
}

header h3 img {
  width: 225px;
}

header h1 img {
  width: 462px;
}

header h2 {
  margin-top: 10px;
}
header h2 #header-hitonochie-shingijutsu img {
  width: 256px;
}

header h2 #header-minnade img {
  width: 315px;
}

header #header-illust img {
  width: 240px;
}

/*
 * gnav
 */
/*
#gnav ul {
  text-align: center;
}
*/

#gnav ul li,
#gnav ul li.long {
//  padding: 0.7em 0.8em;
  padding: 0.8em 0.8em 0.7em 0.8em;
  width: auto;
}

#gnav ul li.low-priority {
  display: inline-block;;
}

/*
 * main
 */
#main-content {
  padding: 30px 0;
  margin: 0 auto;
  width: 900px;
}

/*
.main-section-text .movie {
  width: 420px;
}
*/
}
