@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* class list */

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

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.gap-1em {
  gap: 1em;
}

.gap-2em {
  gap: 2em;
}

.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.en {
  font-family: "Bungee", "Chango", sans-serif;
}

.a {
  text-decoration: none;
}


/* variable list */

:root {
  --main_color: #5f7f6e;
  --sub_color: #f0f4f3;
  --font_normal: #181F1B;
  --font_attention: #b81a3e;
}

#contents-wrap {
  max-width: 1240px;
  margin: 0 auto;
  color: var(--font_normal);
  font-family: 'M PLUS 2', 'Meiryo UI','ヒラギノ丸ゴ ProN','Hiragino Maru Gothic ProN','ヒラギノ角ゴシック','Hiragino Sans',sans-serif;

}

/* ##   ##  #######    ##     #####    #######  ######   ******************************************************
/* ##   ##   ##   #   ####     ## ##    ##   #   ##  ##  ******************************************************
/* ##   ##   ## #    ##  ##    ##  ##   ## #     ##  ##  ******************************************************
/* #######   ####    ##  ##    ##  ##   ####     #####   ******************************************************
/* ##   ##   ## #    ######    ##  ##   ## #     ## ##   ******************************************************
/* ##   ##   ##   #  ##  ##    ## ##    ##   #   ##  ##  ******************************************************
/* ##   ##  #######  ##  ##   #####    #######  #### ##  *****************************************************/


#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--font_normal);
}


header {
  padding: 0 10%;
  height: 120px;
  background: var(--main_color);
}

header a {
  color: var(--sub_color);
  text-decoration: none;
}

header a:hover {
  text-decoration: dotted;
}

.logo {
  font-size: 36px;
}

nav a {
  font-size: 32px;
  display: inline-block;
  position: relative;
}

nav a::after {
  background: var(--sub_color);
  bottom: -4px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  transform: scale( 0, 1 );
  transform-origin: righ top;
  transition: transform .3s;
  width: 100%;
}

nav a:hover::after {
  transform-origin: left top;
  transform: scale( 1, 1 );
}

nav ul {
  list-style: none;
}

header .material-symbols-outlined {
  display: none;
  color: var(--main_color);
  background: var(--sub_color);
  border-radius: 10px;
  padding: 6px;
  font-size: 24px;
  z-index: 1000;
}



/* ##   ##    ##      ####    ##   ##   ************************************************************************
/* ### ###   ####      ##     ###  ##   ************************************************************************
/* #######  ##  ##     ##     #### ##   ************************************************************************
/* #######  ##  ##     ##     ## ####   ************************************************************************
// ## # ##  ######     ##     ##  ###   ************************************************************************
// ##   ##  ##  ##     ##     ##   ##   ************************************************************************
// ##   ##  ##  ##    ####    ##   ##   ***********************************************************************/

main {
  margin: 0 auto;  
}

h1 {
  font-size: 36px;
  margin: 80px 0 50px;
}

#contents-wrapper {
  margin: 80px 20px 0 20px;
}

h2 {
  font-size: 24px;
  margin-bottom: 40px;
}

main dt,
main dd {
  font-size: 20px;
}

#h-ston,
#pilina {
  position: relative;
}

.button {
  position: absolute;
  bottom: 0;
  right: 50px;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  color: var(--font_normal);
}

.button:hover {
  font-size: 30px;
  color: var(--main_color);
  text-decoration: underline;
}

section {
  margin-bottom: 100px;
  gap: 50px;
}

section > div {
  align-self: flex-start;
  width: 100%;
  height: auto;
}

section div:first-child {
  max-width: fit-content;
}

section:nth-child(5) {
  margin-bottom: 100px;
}

aside {
  width: 40%;
  margin-bottom: auto;
  margin-top: 173px;
  color: var(--sub_color);
}

aside h3 {
  color: var(--sub_color);
  margin: 0 0 26px; 
  font-size: 24px; 
  text-align: center;
}

aside div {
  width: 250px;
  background: var(--main_color);
  margin: 0 20px;
  padding: 20px 23px;
  border-radius: 10px;
}

aside ul {
  list-style: decimal-leading-zero inside;
}

aside li::marker {
  color: var(--sub_color);
  font-size: 24px;
  font-family: bungee;
}

aside a {
  text-decoration: none;
  color: var(--sub_color);
  font-size: 18px;
  line-height: 40px;
}

aside a:hover {
  text-decoration: underline;
  font-weight: bold;
}


/* page top */
#page_top span {
  font-size: 90px;
  color: #f0f4f3;
  background-color: #5f7f6e;
  border-radius: 10px;
  position: fixed;
  bottom: 80px;
  right: 20px;
}



 /*#######   #####    #####   ######   #######  ######   *******************************************************
 /* ##   #  ##   ##  ##   ##  # ## #    ##   #   ##  ##  *******************************************************
 /* ## #    ##   ##  ##   ##    ##      ## #     ##  ##  *******************************************************
 /* ####    ##   ##  ##   ##    ##      ####     #####   *******************************************************
 /* ## #    ##   ##  ##   ##    ##      ## #     ## ##   *******************************************************
 /* ##      ##   ##  ##   ##    ##      ##   #   ##  ##  *******************************************************
 /*####      #####    #####    ####    #######  #### ##  ******************************************************/


footer {
  background: var(--main_color);
  color: var(--sub_color);
  padding: 1em;
}

small {
  font-size: 19px;
}



/* ######     ##     ######   ####     #######  ######  ***************************************************
// # ## #    ####     ##  ##   ##       ##   #  # ## #  ***************************************************
//   ##     ##  ##    ##  ##   ##       ## #      ##    ***************************************************
//   ##     ##  ##    #####    ##       ####      ##    ***************************************************
//   ##     ######    ##  ##   ##   #   ## #      ##    ***************************************************
//   ##     ##  ##    ##  ##   ##  ##   ##   #    ##    ***************************************************
//  ####    ##  ##   ######   #######  #######   ####   **************************************************/


@media screen and (width <= 990px) {
  #menu {
    display: inline-block;
  }

  nav {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    transition: top .25s ease-out; 
  }
  nav.active {
    top:0;
  }

  nav ul {
    flex-direction: column;
    background: #5f7f6e;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 1em 0;
  }

  main {
    width: 90%;
    margin: 0 auto;
  }

  main .flex {
    flex-direction: column;
    flex-wrap: wrap;
  }

  main div img {
    width: 100%;
    max-width: 420px;
    height: auto;
  }

  section div:first-child {
    align-self: center;
  }

  p:has(.button) {
    text-align: right;
  }

  .button {
    position: static;
    right: 0;
  }

  h1 {
    margin-left: 35px;
  }

  aside {
    display: none;
  }
}
  











 /*##   ##   #####   ######    ####    ####     #######  **************************************************
 //### ###  ##   ##   ##  ##    ##      ##       ##   #  **************************************************
 //#######  ##   ##   ##  ##    ##      ##       ## #    **************************************************
 //#######  ##   ##   #####     ##      ##       ####    **************************************************
 //## # ##  ##   ##   ##  ##    ##      ##   #   ## #    **************************************************
 //##   ##  ##   ##   ##  ##    ##      ##  ##   ##   #  **************************************************
 //##   ##   #####   ######    ####    #######  #######  *************************************************/

@media screen and ( width <= 450px) {

  header {
    height: 66px;
  }

  #top {
    padding: 0 18px;
  }

  .logo {
    font-size: 24px;
    text-align: left;
  }
  
  #page_top span {
  font-size: 2.5rem;
  position: fixed;
  bottom: 70px;
  right: 10px;
  }

  h1 {
    margin-left: 0;
  }

  section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  section {
    gap: 20px;
  }

  section dt,
  section dd {
    font-size: 16px;
  }

  .button {
    position: static;
    margin: 30px 0 60px;
    font-size: 20px;
    text-decoration: underline;
  }
}






