@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&display=swap');

/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --link-color: #f5dde9;
  --content-background-color: #ffffff;
  --sidebar-background-color: #ffffff;
  --Transparent-background-color: #ffffff00;
  --background-color: #f8ebf0;

  /* Text Colors: */
  --text-color: #888888;
  --sidebar-text-color: #888888;
  --link-color: #f0b1d2;
  --link-color-hover: #f0dde6;

  /* Text: */
  --font: "M PLUS Rounded 1c", sans-serif;
  --heading-font: "M PLUS Rounded 1c", sans-serif;
  --font-size: 13px;

  /* Other Settings: */
  --margin: 10px;
  --padding: 20px;
  --border: none;
  --round-borders: 30px;
  --sidebar-width: 200px;
  --color1: #f0f0f0;
  --color2: #eecad8;
  --color3: #a3a3a3;
  --color4: #f0f0f0;/* ダークモードだと暗くなります */
  --ffffff: #ffffff;
}
/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  /* background: var(--background-color); */
  background-image: url("../img/background3.png");
}

::selection {
  /* (Text highlighted by the user) */
  background: rgba(0, 0, 0, 0.2);
}

mark {
  /* Text highlighted by using the <mark> element */
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

/* Links: */
a {
  text-decoration: underline;
}

a,
a:visited {
  color: var(--color3);
}

a:hover,
a:focus {
  color: var(--color1);
  text-decoration: none;
}

/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.race-box {
  border-image: url(../img/sozai-race3.png) 18 round;
  border-width: 30px;
  border-style: solid;
  border-image-outset: 0px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.layout {
  width: 800px;
  grid-gap: var(--margin);
  grid-template: "header header header" auto "leftSidebar main rightSidebar" auto "footer footer footer" auto / var(--sidebar-width) auto var(--sidebar-width);
  /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  background-color: var(--content-background-color);

}

main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
}

/* -------------------------------------------------------- */
/* MOBILE RESPONSIVE */
/* -------------------------------------------------------- */

/* CSS Code for devices < 800px */
@media (max-width: 800px) {



  body {
    font-size: 15px;
  }

  .layout-home {
    width: 100%;
    grid-template: "header" auto  "leftSidebar" auto "main" auto "rightSidebar" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  }

  .layout {
    width: 100%;
    grid-template: "header" auto  "leftSidebar" auto "main" auto "rightSidebar" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
    height:auto;}

  .left-sidebar{
    height: 200px;
    overflow-y: scroll;
  }

  .right-sidebar{
    height: 400px;
    overflow-y: scroll;
  }

  aside {
    border-bottom: 1px solid;
    font-size: 0.9em;
  }

  nav {
    padding: 0;
  }

  nav > ul {
    padding-top: 0.5em;
  }

  nav > ul li > a,
  nav > ul li > details summary,
  nav > ul li > strong {
    padding: 0.5em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }

  /* 追加　モバイル版 */
  .uiteru-box {display:none;}
  .race-box{margin-top: 30px; max-width: 99%;}

}

/* -------------------------------------------------------- */

/* カラム */
.container1 { 
    display: flex; flex-wrap: wrap; justify-content: space-between;
    padding: 20px;
}
  .column1-1 {width: 31%; display: flex;}
  .column1-2 {width: 65%; display: flex;}
@media (max-width: 700px) {
  .column1-1 {width: 100%; ;}
  .column1-2 {width: 100%; margin-top: 20px;}
}

.container2 { 
    display: flex; flex-wrap: wrap; justify-content: space-between;
    padding: 20px;
}
  .column2-1 {width: 36%;}
  .column2-2 {width: 60%;}
@media (max-width: 700px) {
  .column2-1 {width: 100%; ;}
  .column2-2 {width: 100%; margin-top: 20px;}
}

/* -------------------------------------------------------- */
/* 追加 */
/* -------------------------------------------------------- */

/* 画面フィルター追加 */
html::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0, 0, 0, 0.1) 50%);
  background-size: auto;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  z-index: 999999999;
}

hr {
  border: none;
  border-top: 2px dashed var(--color1);
  margin-top: 30px;
  margin-bottom: 30px;
}

.i{
    margin-top:0px;
    margin-bottom:-4px;
    width: 20px
}

.mini-button{
  /* background:url(img/background3.png); */
  background-color: var(--ffffff);
  padding: 6px 10px;
  border: 2px solid var(--ffffff);
  outline: 1px solid var(--color3);
  border-radius: 15px;
  font-size: 14px;
  background: linear-gradient(var(--ffffff), var(--ffffff), var(--ffffff), var(--ffffff), var(--color1));
  text-decoration: none;
  display: block;
  width: fit-content;
  margin: 20px auto;
  margin-top: 40px;
}

.race-box-2 {
  border-image: url(../img/sozai-race4.png) 4 fill round;
  grid-area: leftSidebar;
  padding: 18px;
  border-width: 7px;
  border-style: solid;
  outline: 2px dashed var(--color1);
  outline-offset: -9px;
  border-radius: 10px;
  width: 100%;
}

.profile-1 {
  background-color: var(--ffffff);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  line-height: 1.6;
  text-align: center;
}
.icon {
    margin: 0px 20px 0px 20px;
    max-width: 100%;
    aspect-ratio: 281 / 281;
    border-radius: 100px;
    border:  2px solid var(--ffffff);
    outline: 2px solid var(--color1);
}
.name {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--ffffff);
    text-shadow: var(--color3) 2px 0px, var(--color3) 0px 2px, var(--color3) -2px 0px, var(--color3) 0px -2px;
    margin-top: 5px;
}

.profile-2 {
  background-color: var(--ffffff);
  border-radius: 20px;
  padding: 20px;
  flex-direction: column;
  line-height: 1.5;
  overflow-y: scroll;
  max-height: 240px; /* 文章の高さ */
}


.profile-3 {
  background-color: var(--ffffff);
  border-radius: 20px;
  padding: 10px;
  gap: 10px;
  flex-direction: column;
  line-height: 1.6;
  overflow-y: scroll;
  height: 162px; /* 文章の高さ */
}

.profile-4 {
  background-color: var(--ffffff);
  border-radius: 20px;
  padding: 10px;
  gap: 10px;
  flex-direction: column;
  line-height: 1.6;
  /* text-align: center; */
  height: 162px; /* 文章の高さ */
  overflow-y: scroll;
}

h2 {
    margin: 0;
    margin-bottom: 20px;
    color: var(--ffffff);
    text-shadow: var(--color3) 2px 0px, var(--color3) 0px 2px, var(--color3) -2px 0px, var(--color3) 0px -2px;
}