/* 画面上の表示範囲 */

html {
  height: 100vh;
  padding: 0;
  margin: 0;
  font-size: 16px;
}

/* 色の指定 */

:root {
  --background: #f3f3f3;
  --font: #333132;
  --cerulean: #008db7;
  --saxe: #418b89;
  --grass: #fff;
}

@media (prefers-color-scheme: dark) {
  html {
    transition: .5s;
  }

  :root {
    --background: #252525;
    --font: #f7f7f7;
    --cerulean: #1cadd9;
    --saxe: #4ab0ad;
    --grass: #363636;
  }
}

/* Webフォントの設定 */

.zen-maru gothic-light {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 300;
  font-style: normal;
}

.zen-maru gothic-regular {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 400;
  font-style: normal;
}

.zen-maru gothic-medium {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 500;
  font-style: normal;
}

.zen-maru gothic-bold {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 700;
  font-style: normal;
}

.zen-maru gothic-black {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 900;
  font-style: normal;
}

/* 基本スタイル */

body {
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  font-family: "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", sans-serif;
  color: var(--font);
  background-color: var(--background);
}

.container {
  padding: 3rem;
}

h1 {
  font-family: "Zen Maru Gothic";
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  padding-bottom: 2px;
}

h2 {
  font-family: "Zen Maru Gothic";
  margin: 2rem auto 0.5rem 0;
  font-size: 2rem;
  font-weight: bold;
  color: var(--cerulean);
}

a {
  font-family: "Zen Maru Gothic";
  font-size: 1rem;
  color: var(--saxe);
  text-decoration: underline;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

ul {
  padding-left: 0;
}

li {
  list-style: none;
  font-size: 1rem;
  line-height: 1.6;
}

button {
  border: none;
  color: var(--font);
  background-color: var(--grass);
  border-radius: 50px;
  cursor: pointer;
}

.sitename button {
  cursor: default;
}

/* セクション範囲 */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  padding: 2rem 0;
  box-sizing: border-box;
  z-index: 1000;
}

main {
  max-width: 760px;
  height: auto;
  margin: 5rem auto 0 auto;
}

footer {
  display: inline-block;
  width: 100%;
  height: auto;
  padding: 2rem 0;
}

/* 個別のスタイル */

/* header */

.home-btn,
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: var(--background);
  width: 3rem;
  height: 3rem;
  border-radius: 50px;
  padding: 0;
}

.home-btn {
  margin-left: 2rem;
}

.sitename button {
  text-align: center;
  background-color: var(--grass);
  border-radius: 50px;
  margin: 0 1.25rem;
  width: 20rem;
  height: 3rem;
}

.nav-btn {
  margin-right: 2rem;
}

header button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon-rect {
  fill: var(--grass);
}

.icon-path {
  stroke: var(--font);
}

.icon-dot {
  fill: var(--font);
}

.main-nav {
  display: none;
}

.main-nav ul {
  position: absolute;
  top: 75%;
  right: 3%;
  background-color: var(--grass);
  padding: 1rem 1.25rem;
  border-radius: 7px;
  z-index: 10000;
  cursor: default;
}

.main-nav ul li a {
  font-family: "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", sans-serif;
  text-decoration: none;
  color: var(--font);
  cursor: pointer;
}

.main-nav ul li span,
.main-nav ul li a:hover {
  color: var(--saxe);
}

/* footer */

footer p {
  display: inline-block;
  font-size: 0.75rem;
}

.copyright {
  float: right;
}

/* レスポンシブ対応 */
/* モバイルデバイス用 */

@media (max-width: 476px) {

  html {
    font-size: 12px;
  }

  body,
  header {
    max-width: 476px;
  }

  .container {
    padding: 2rem;
  }

  .sitename button {
    width: 15rem;
  }

  main p,
  main a .main-nav li {
    font-size: 14px;
  }
}

@media (min-width: 476px) and (max-width: 767px) {
  html {
    font-size: 14px;
  }

  body,
  header {
    max-width: 767px;
  }
}


/* タブレット用 */
@media (min-width: 768px) and (max-width: 1023px) {
  html {
    font-size: 15px;
  }

  body,
  header {
    max-width: 1023px;
  }

  .menu-button img {
    width: 15rem;
  }

  .copyright p {
    font-size: 12px;
  }
}