@charset "utf-8";

:root {
  --nav-font: "M PLUS Rounded 1c", sans-serif;
  --read-font: "Yusei Magic", sans-serif;
  --manken-black: #0f1419;
  --manken-whire: #FFFEFD;
  --base-color: #F9E8BE;
  --c1: #C4801C;
  --c2: #47A296;
  --c3: #D8759D;
  --c4: #B82A4C;
  --c5: #87BFC5;
  --c6: #406394;
  --ham-color: #87BFC5;
  --hamline-color: #406394;
  --shadow: rgba(105, 105, 105, 0.8);
}

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  box-sizing: border-box;
  font-size: 16px
}

ul,
ol {
  list-style: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1;
}


a {
  color: inherit;
  text-decoration: none;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

/* カスタム */
label {
  display: inline-block;
}

/* 共通部分 */
.header_in,
footer article {
  width: 1410px;
  max-width: 93%;
  margin: 0 auto;
}

/* ヘッダー */

.header_in {
  padding: 12px 0;
  font-family: var(--nav-font);
  font-weight: 700;
  --ham-w: 40px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--manken-whire);
}

header img {
  height: 80px;
  transition-duration: 0.1s;
}

header img:hover {
  opacity: 0.75;
}

.header_in>a {
  flex-shrink: 0;
}

header ul {
  display: flex;
  padding-top: 3px;
  column-gap: 18.1px;
  font-size: 20.1px;
}

header ul li a {
  position: relative;
  padding: 0 2px;
}


header ul li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  border-radius: 2px;
  height: 2px;
  background: var(--manken-black);
  transition: all .3s;
  transform: scale(0, 1);
  transform-origin: left top;
}

header ul li a:hover::after {
  transform: scale(1, 1);
}

/* ハンバーガー */

.openbtn {
  z-index: 10;
  display: none;
  cursor: pointer;
  width: var(--ham-w);
  height: var(--ham-w);
  border-radius: 5px;
  background: var(--ham-color);
}

.openbtn .openbtn-area {
  position: relative;
  transition: all .6s;
  width: var(--ham-w);
  height: var(--ham-w);
}

.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 3px;
  border-radius: 2px;
  width: 60%;
  background: var(--hamline-color);
}

.openbtn span:nth-of-type(1) {
  top: 33%;
}

.openbtn span:nth-of-type(2) {
  top: 50%;
}

.openbtn span:nth-of-type(3) {
  top: 67%;
}

.openbtn.active .openbtn-area {
  transform: rotate(360deg);
}

.openbtn.active span:nth-of-type(1) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 60%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 60%;
}

/* フッター */
footer {
  padding-top: 40px;
  padding-bottom: 2px;
  color: var(--manken-whire);
  background-color: var(--c5);
}

.logo {
  width: 280px;
  margin: 3rem auto 44px;
  transition-duration: 0.2s;
}

.logo:hover {
  opacity: 0.75;
}

footer nav ul {
  display: flex;
  font-family: var(--nav-font);
  font-weight: 700;
  column-gap: 22.1px;
  font-size: 20.1px;
  justify-content: center;
}

footer nav ul li {
  transition-duration: 0.1s;
}

footer nav ul li:hover {
  opacity: 0.8;
}

.okareco {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
  width: 800px;
  max-width: 93vw;
  margin-left: auto;
  margin-right: auto;
  font-size: small;
}

.okareco a:hover {
  opacity: 0.7;
}

@media (max-width: 800px) {
  header img {
    height: 42px;
    margin-left: 12px;
  }

  .header_in {
    position: fixed;
    z-index: 3;
    padding: 6px 0;
    display: flex;
    max-width: 100%;
    justify-content: space-between;
    box-shadow: 0 1px 3px var(--shadow);
  }

  .openbtn {
    display: block;
    margin-right: 12px;
  }

  #nav {
    position: absolute;
    z-index: 2;
    background-color: rgba(196, 129, 28, 0.95);
    top: -330px;
    left: 0;
    width: 100vw;
    height: fit-content;
    color: var(--manken-whire);
  }

  header ul {
    z-index: 3;
    display: grid;
    row-gap: 1em;
    padding: 2em 0;
    text-align: center;
  }

  .logo {
    width: 240px;
  }

  footer nav ul {
    display: grid;
    row-gap: 1em;
    text-align: center;
  }

  .okareco {
    display: block;
    text-align: center;
  }
}