@charset "utf-8";

/* ゆとシートⅡ */

/* // Font
---------------------------------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Varela+Round&text=0123456789%25%23%40-%2B%3D');
@import url('https://fonts.googleapis.com/css?family=Raleway:500,700&text=ABCČĆDĐEFGHIJKLMNOPQRSŠTUVWXYZŽabcčćdđefghijklmnopqrsštuvwxyzž%26%20');
@import url('https://fonts.googleapis.com/css?family=Kosugi&text=%E2%80%9C%E2%80%9D');
@import url('https://fonts.googleapis.com/css?family=Noto+Serif+JP:400,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300..700,0..1,-25');
@font-face { font-family: "Arial"; src: local("Arial"); unicode-range: U+0020-0039,U+003F-007F; }

:root {
  --base-font-family-jp : "BIZ UDGothic", "Hiragino Sans","Kosugi","Meiryo",sans-serif;
  --base-font-family-pr : "BIZ UDPGothic","Hiragino Sans","Meiryo UI",sans-serif;
  --base-font-family-min: "Noto Serif JP","YuMincho","ヒラギノ明朝 ProN W3","Hiragino Mincho ProN",serif;
  --base-font-family-input: 'Arial',"BIZ UDPGothic","Hiragino Sans","Meiryo UI",sans-serif;
  --base-font-family-mono : "BIZ UDGothic", monospace;
}

body {
  font-family: "Varela Round","Raleway",var(--base-font-family-jp);
  --font-proportional: "Varela Round","Raleway",var(--base-font-family-pr);
}
header,
footer {
  font-family: var(--base-font-family-min);
}
header nav,
main nav {
  font-family: "ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","HiraKakuProN-W3","Meiryo",sans-serif;
}
input, select {
  font-family: var(--base-font-family-input);
}
textarea,tt {
  font-family: var(--base-font-family-mono);
  font-size: inherit;
}

.left   { text-align: left !important; }
.center { text-align: center !important; }
.right  { text-align: right !important; }
ruby {
  position: relative;
}
ruby rt {
  font-family: Arial,var(--base-font-family-jp);
  transform: translateY(0.2em);
}
ruby rp {
  position: absolute;
  display: inline;
  font-size: 0;
}
.bold {
  font-weight: bold;
}
.oblique {
  font-style: oblique;
}
.strike {
  text-decoration: line-through;
}
.underline {
  background: linear-gradient(to top, transparent 10%, rgba(255,100,0,0.5) 10%, rgba(255,100,0,0.5) 25%, transparent 25%);
}
.text-em {
  -webkit-text-emphasis: dot filled;
  text-emphasis: dot filled;
}
.d-dash {
  display: inline-block;
  font-family: "Meiryo","小塚明朝 Pro","Kozuka Mincho Pro","Kozuka Mincho Std",sans-serif;
  transform: scaleX(0.90);
}
.d-dash > span {
  display: inline-block;
  transform: scaleX(1.2);
}
.small {
  font-size: 85%;
}
.material-symbols-outlined {
  font-size: 1.2em;
  vertical-align: text-bottom;
}
.nowrap {
  white-space: nowrap;
}

/* // Base
---------------------------------------------------------------------------------------------------- */
:root {
  --bg-color: #fff;
  --text-color: #000;
  --input-bg-color: rgba(255,255,255,0.7);
}
.night {
  --text-color: #fff;
  --bg-color: #000;
  --input-bg-color: rgba(0,0,0,0.8);
}
*, *::before, *::after {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  height: 100vh;
}

body {
  font-size  : 1.4rem;
  line-height: 1.5;
  line-break: strict;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-print-color-adjust: exact;
}

hr {
  border-width: 1px 0 0;
  border-style: solid;
}
hr.dotted {
  border-style: dotted;
}
hr.dashed {
  border-style: dashed;
}

table, tr, th, td {
  border-width: 0;
  border-collapse: collapse;
}
td {
  empty-cells: show;
}

dt {
  font-weight: bold;
}

ul,ol {
  list-style-type: none;
}

a {
  text-decoration: none;
}

a:link    { color: #78d; }
a:visited { color: #678; }
a:hover   { color: #000; }
.night a:link    { color: #abf; }
.night a:visited { color: #abc; }
.night a:hover   { color: #fff; }
main p a {
  background: linear-gradient(to top, #cef .3rem, transparent .3rem, transparent);
}
.night main p a {
  background: linear-gradient(to top, #338 .3rem, transparent .3rem, transparent);
}
a[onclick] {
  cursor: pointer;
}

input,
textarea,
select {
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  background-color: var(--input-bg-color);
}
.night input,
.night textarea,
.night select {
  color: inherit;
  border-color: #234;
}

details > summary {
  transition: background-color 0.2s ease;
}
details:not([open]) > summary {
  overflow: hidden;
}
details > summary::marker,
details > summary::-webkit-details-marker {
  content: "";
  display: none;
}
details > summary::before {
  content: "\e5e1";
  display: inline-block;
  vertical-align: top;
  margin-right: .2rem;
  font-family: "Material Symbols Outlined";
  font-variation-settings: 'FILL' 1;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}
details[open] > summary::before {
  transform: rotate(90deg) translateX(-2px);
}

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(auto, 900px) minmax(0, 1fr);
  grid-template-rows: max-content auto max-content max-content;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-color);
  background-position: center, bottom right;
  background-repeat: repeat, no-repeat;
  background-attachment: scroll, fixed;
  color: var(--text-color);
}
.night body {
  background-blend-mode: hard-light, hard-light;
}

header {
  grid-column: 1 / 4;
  grid-row: 1 / 2;
  height: 4rem;
  position: relative;
  padding: 0px 10px;
  
  z-index: 100;
}
header, .header-back-name {
  border-bottom: 1px solid #aaa;
  background-image: url(../img/back-abstract.png);
  background-position: left center;
  background-repeat: no-repeat;
}

header h1 {
  position: relative;
  font-family: inherit;
  font-size: 2rem;
  line-height: 4rem;
  white-space: nowrap;
}
header a {
  position: relative;
  color: #fff !important;
  z-index: 101;
}

main {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  margin: 0;
  padding: 4rem 0 1rem;
  border-width: 0px 3px;
  border-style: double;
  border-color: #aaa;
}

article{
  max-width: 860px;
  margin: 0 auto;
}

nav + article {
  border-width: 0;
}
article h1 {
  font-size: 2.5rem;
}

footer {
  grid-column: 1 / 4;
  height: 6rem;
  margin-top: auto;
  padding: 15px 10px 20px;
  border-top: 1px solid #aaa;
  background-image: linear-gradient(to left, rgba(0,0,0,0.3), rgba(0,0,0,0) 35em), url(../img/back-abstract-reverse.png);
  background-position: right bottom;
  background-repeat: no-repeat;
  text-align: right;
  font-size: 1.6rem;
}
footer a {
  color: #ddf !important;
}

header,
.header-back-name,
footer {
  background-color: #fff;
  color: #fff;
  text-shadow: 0 0 3px #000, 0 0 3px #000,
               0 0 3px #000, 0 0 3px #000,
               0 0 3px #000, 0 0 3px #000,
               0 0 3px #000, 0 0 3px #000,
               0 0 3px #000, 0 0 3px #000;
  font-weight: bold;
}
.night header,
.night .header-back-name,
.night footer {
  background-color: #456;
  background-blend-mode: color-burn;
}
header a:hover,
footer a:hover {
  opacity: 0.7;
}
footer span {
  display: inline-block;
}
footer .copyright {
  margin-top: 0.5em;
}

* { border-color: #999; }
.night * { border-color: #556; }

@media print{
  header,
  .header-back-name,
  footer,
  #login-form,
  .back-button,
  .chat-palette {
    display: none;
  }
}

/* トグルボタン */
label.toggle-button input {
  display: none;
}
label.toggle-button {
  display: inline-block;
  position: relative;
  width: 4.5em;
  padding: 2px 1em;
  border: 1px solid var(--text-color);
  border-radius: 2em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
label.toggle-button:has(input:checked) {
  padding-left: 0;
}
label.toggle-button:has(input:not(:checked)) {
  padding-right: 0;
}
label.toggle-button::before {
  font-size: 85%;
  font-weight: bold;
  white-space: nowrap;
}
label.toggle-button:has(input:checked)::before {
  content: 'ON';
}
label.toggle-button:has(input:not(:checked))::before {
  content: 'OFF';
  color: #777;
}
label.toggle-button::after {
  content: '';
  position: absolute;
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 100%;
  transition: .2s;
}
label.toggle-button:has(input:checked)::after {
  right: 2px;
  background-color: var(--text-color);
}
label.toggle-button:has(input:not(:checked))::after {
  right: calc(3.5em - 4px);
  background-color: #777;
}

/* // Sidebar
---------------------------------------------------------------------------------------------------- */
aside#sidebar-left,
aside#sidebar-right {
  grid-row: 2 / 3;
  position: relative;
  overflow: hidden;
}
aside#sidebar-left {
  text-align: right;
}
aside#sidebar-left > p,
aside#sidebar-right > p {
  padding:5px;
}
aside#sidebar-top,
aside#sidebar-bottom {
  display: none;
  margin: 0;
  border-width: 0px 3px;
  border-style: double;
  border-color: #aaa;
  grid-column: 2 / 3;
  text-align: center;
}
.night aside#sidebar-top,
.night aside#sidebar-bottom {
  border-color: #556;
}
aside#sidebar-top {
  padding: 5rem 0 0rem;
}

aside#sidebar-bottom {
  padding: 5rem 0 1rem;
  border-top-width: 1px;
  border-top-style: solid;
}

/* // Nav
---------------------------------------------------------------------------------------------------- */
header nav {
  max-width: 900px;
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  margin: auto;
  pointer-events: none;
}
header nav ul  {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-right: 1rem;
}
header nav ul li  {
  position: relative;
  margin: 0;
  width: 6rem;
  height: 6rem;
  transform: rotate(45deg);
  
  background: linear-gradient(-45deg, #457, #abd);
  text-align: center;
  
  outline: 1px solid #000;
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  
  cursor: pointer;
  pointer-events: auto;
  
  z-index: 200;
}
.night header nav ul li  {
  outline-color: #78a;
}
header nav ul li :is(a,b) {
  display: grid;
  align-items: center;
  position: absolute;
  inset: -25%;
  transform: rotate(-45deg);
  
  text-decoration: none;
  color: #fff;
  text-shadow: 0px -1px 1px #000;
}
header nav ul li.mylist a {
  transform: rotate(-45deg) scaleX(0.95) translateY(.1rem);
}
header nav ul li.current {
  background: linear-gradient(-45deg, #eff, #bcd);
}
header nav ul li.current a {
  color: #000 !important;
  text-shadow: 0px 0px 2px #fff, 0px 0px 2px #fff, 0px 0px 2px #fff;
}
header nav ul li:hover {
  background: linear-gradient(-45deg, #478, #bef);
}
header nav ul li:hover a {
  opacity: 1;
}

header nav ul li.small  {
  width: 5rem;
  height: 5rem;
  font-size: 1.1rem;
}
header nav ul li.very-small {
  width: 3rem;
  height: 3rem;
  font-size: 1.1rem;
}

header nav ul li.head {
  margin-right: -.5rem;
  width: 5rem;
  height: 5rem;
  font-size: 1.4rem;
  color: #fff;
  background: #fff;
  outline-width: 1px;
  outline-style: solid;
}
header nav ul li.head b {
  color: #000;
  text-shadow: none;
}
.night header nav ul li.head {
  background: #235;
}
.night header nav ul li.head b {
  color: #fff;
}

header nav ul li:nth-last-child(even)  {
  top: 2rem;
}
header nav ul li:nth-last-child(odd)  {
  top: 0rem;
}
header nav ul li + li {
  margin-left: 1.7rem;
}
header nav ul li + li.small {
  margin-left: 1.4rem;
}
header nav ul li.small + li.small {
  margin-left: 1.2rem;
}
header nav ul li + li.very-small {
  margin-left: 0.8rem;
}
header nav ul li.small + li.very-small {
  margin-left: 0.8rem;
}

header nav .nightmode-icon::before {
  display: grid;
  align-items: center;
  position: absolute;
  inset: 0;
  font-size: 1.4em;
  transform: scale(1.3);
}
.nightmode-icon::before {
  content: "\e3a9";
  font-family: "Material Symbols Outlined";
  font-variation-settings: 'FILL' 1;
  font-weight: 100;
}
.night .nightmode-icon::before {
  content: "\e3ac";
}

/* // Main-Nav
---------------------------------------------------------------------------------------------------- */
main nav {
  margin: 1em 1em 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
main nav::before,
main nav::after {
  content: '';
  display: block;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: inherit;
  background: linear-gradient(to top, rgba(125,125,125,0.2), transparent 10px);
}
main nav ul {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0;
}
main nav ul li {
  display: flex;
  font-size: 100%;
}
main nav ul li::before,
main nav ul li::after {
  content: '';
  display: block;
  width: 5px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: inherit;
  background: linear-gradient(to top, rgba(125,125,125,0.2), transparent 10px);
}
.night main nav ul li  {
}
main nav ul li a {
  padding: .7em .8em;
  border-width: 1px;
  border-style: solid;
  border-radius: .5em .5em 0 0;
  background: linear-gradient(to top, rgba(125,125,125,0.2), transparent 10px);
  background-color: rgba(110,125,140,0.1);
  color: inherit !important;
  font-weight: bold;
}
.night main nav ul li a {
  background-color: rgba(100,105,170,0.3);
}
.night main nav ul li:not(.current) a {
  color: #ddf !important;
}
main nav ul li.current {
}
main nav ul li.current a {
  border-bottom-style: hidden;
  background: linear-gradient(to bottom, var(--bg-color), transparent);
}
.night main nav ul li.current a {
  background: linear-gradient(to bottom, #235, transparent);
}
main nav ul li a:hover {
  background-color: rgba(100,200,255,0.2);
}
@media screen and (max-width:735px){
  main nav  {
    margin-top: 4em;
  }
  main nav ul li {
    font-size: 100%;
  }
  main nav ul li::before,
  main nav ul li::after {
    width: 2px;
  }
  main nav ul li a {
    padding: .8em .8em;
  }
}

/* // Button
---------------------------------------------------------------------------------------------------- */
.back-button {
  margin: 5rem auto 3rem;
  width: 1.2em;
  height: 1.2em;
  transform: rotate(45deg);
  
  background: linear-gradient(-45deg, #679, #cdf);
  text-align: center;
  
  outline: 3px double #000;
  overflow: hidden;
  font-size: 2em;
  font-weight: bold;
}
.back-button a {
  display: block;
  width: 160%;
  height: 160%;
  margin: -60%;
  transform: rotate(-45deg);
  
  line-height: 3em;
  text-decoration: none;
  color: #fff !important;
  text-shadow: -1px -1px 1px #000, 0px 1px 1px #abc;
}
.back-button:hover {
  opacity: 0.8;
}

#page-top-button {
  width: 100px;
  height: 60px;
  position: fixed;
  right: 0;
  bottom: 6rem;
  background: #7799ff;
  opacity: 0.6;
  z-index: 200;
}
#page-top-button:hover {
  opacity: 0.8;
}
#page-top-button a{
  position: relative;
  display: block;
  width: 100px;
  height: 60px;
  text-decoration: none;
}
#page-top-button a::before{
  font-family: "FontAwesome";
  content: '▲';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -25px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
  transform: scaleY(0.8);
}
#page-top-button a::after{
  content: 'PAGE TOP';
  font-size: 13px;
  color: #fff;
  position: absolute;
  top: 30px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
