/* @font-face {
  font-family: "Voto Serif GX";
  src: url("VotoSerifGX.ttf") format("truetype-variations");
  font-weight: 28 194;
  font-stretch: 50% 130%;
  font-optical-sizing: auto;
  font-style: normal;
  font-display: swap;
} */

/* font */
@font-face {
  font-family: 'Shippori Mincho', serif;
  font-optical-sizing: auto;
  /* src: url("VotoSerifGX.ttf") */
}

html {
  box-sizing: border-box;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  /* font: 1.2em "Voto Serif GX", serif;
  font-variation-settings: "wght" 100, "wdth" 80, "opsz" 50; */
  font: 29px "Shippori Mincho", serif;
  font-variation-settings: "wght" 100, "wdth" 80, "opsz" 50;
  margin: 0px;
  padding: 0px;
}

ul {
  padding: 0;
}

li {
  list-style: none;
}

a {
  display: inline-block;
  text-decoration: none;
  color: dimgray;
}

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

/* HEAD */
header {
  container: header / inline-size;
  position: absolute;
  top: -50px;
  margin: 50px auto 0;
  width: 100%;
  height: 50px;
  font-size: 60%;
  line-height: 50px;
  z-index: 999;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

header a {
  color: #000;
}

/* Fixed */
header.fixed {
  position: fixed;
  top: 0;
  height: 50px;
  line-height: 50px;
  margin-top: 0;
  padding-top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  transition: top 0.65s ease-in;
  -webkit-transition: top 0.65s ease-in;
  -moz-transition: top 0.65s ease-in;
}

header.fixed #mobile-head {
  height: 50px;
}

#mobile-head {
  width: 100%;
  height: 50px;
  position: relative;
}

header.fixed .brand img {
  max-width: 50px;
}

.brand {
  padding-left: 50px;
}

.brand img {
  max-width: 50px;
}

#nav-toggle {
  display: block;
  position: absolute;
  right: 8px;
  top: 16px;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 101;
}

#nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #666;
  left: 0;
  -webkit-transition: 0.35s ease-in-out;
  -moz-transition: 0.35s ease-in-out;
  transition: 0.35s ease-in-out;
}

#nav-toggle span:nth-child(1) {
  top: 0;
}

#nav-toggle span:nth-child(2) {
  top: 8px;
}

#nav-toggle span:nth-child(3) {
  top: 16px;
}

/* #nav-toggle 切り替えアニメーション */
.open #nav-toggle span:nth-child(1) {
  top: 10px;
  -webkit-transform: rotate(315deg);
  -moz-transform: rotate(315deg);
  transform: rotate(315deg);
}

.open #nav-toggle span:nth-child(2) {
  width: 0;
  left: 50%;
}

.open #nav-toggle span:nth-child(3) {
  top: 10px;
  -webkit-transform: rotate(-315deg);
  -moz-transform: rotate(-315deg);
  transform: rotate(-315deg);
}

#global-nav,
#headerSNS {
  display: none;
  position: absolute;
}

/* #global-nav スライドアニメーション */
.open #global-nav,
.open #headerSNS {
  display: block;
  position: relative;
  width: 100%;
  inset: auto;
  background-color: #333;
  color: whitesmoke;
  text-align: center;
}

#global-nav {
  inset: 0;
  margin: auto;
}

#global-nav ul {
  margin: 0;
}

#headerSNS {
  inset: 0 0 0 auto;
}

#global-nav ul li a,
#headerSNS a {
  color: whitesmoke;
}

#headerSNS a {
  padding: 0 8px;
}

/* MAIN */
main {
  container: main / inline-size;
  margin: 0 auto;
  margin: 50px 0 0 0;
  background-color: whitesmoke;
}

#home::before,
#about::before,
#project::before,
#contact::before,
#koromo::before,
#syoku::before,
#sumai::before,
#yousei::before,
#bunka::before {
  content: " ";
  margin-top: -50px;
  height: 50px;
  display: block;
  visibility: hidden;
}

#home {
  background: url(images/kv.png) no-repeat center center;
  background-size: cover;
  width: 100%;
  height: 0;
  padding-top: 40%;
}

#project p {
  padding: 5rem 0 7rem;
}

.contents {
  width: 90%;
  margin: 0 auto;
  font-size: medium;
}

.contents h3 {
  font-size: x-large;
}

.centerText {
  text-align: center;
}

.centerText h2 {
  font-size: 3rem;
  padding: 6rem 0 4rem;
  margin: 0;
}

.centerText h3 {
  text-align: center;
  color: #fff;
  background-color: #232822;
  padding: 5px 15px;
}

.centerText p:nth-of-type(2) {
  padding-bottom: 3rem;
}

.centerText p:nth-of-type(6),
.centerText p:nth-of-type(10),
.centerText p:nth-of-type(13) {
  padding-bottom: 2rem;
}

.listTitle {
  padding-top: 3rem;
}

.listItem a {
  width: 60%;
  border-radius: 100px;
  line-height: 2rem;
  font-size: x-small;
  border: solid 1px #555;
  color: #555;
  margin-top: 1rem;
  background-color: whitesmoke;
}

.card,
.listItem {
  display: grid;
  gap: 1rem;
  place-items: center;
}

.card {
  grid-template-columns: 1fr;
}

.listItem {
  grid-template-columns: 1fr 1fr;
  background-color: #d4d9d5;
  padding: 1rem;
}

.card img {
  height: 230px;
  width: 280px;
  background-color: white;
}

/*レスポンシブで狭くしたときに一つずつの配置にしたい！
/* .i{
  height: 500px;
  width: 250px;
} */

.listItem img {
  height: 180px;
  width: 130px;
  background-color: white;
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr;
}

.submit {
  display: block;
  position: relative;
  margin: 2rem auto 4rem;
  width: 120px;
  border-radius: 100px;
  line-height: 2rem;
  font-size: x-small;
  border: solid 3px lightgray;
  color: whitesmoke;
  background-color: gray;
  cursor: pointer;
}

.submit::before {
  content: "";
  display: block;
  position: absolute;
  background-color: whitesmoke;
  height: 1px;
  width: 80px;
  margin: auto;
  inset: 0 0 -20px;
}

.submit::after {
  content: "";
  display: block;
  position: absolute;
  width: 15px;
  transform: rotate(-150deg);
  right: 3px;
  background-color: whitesmoke;
  height: 1px;
  transform-origin: 0% 0%;
  bottom: 6px;
}

.letterGrid {
  display: grid;
  grid-template-columns: 1fr;
  background-color: white;
  border: solid 1px #555;
  padding: 1rem;
  margin-bottom: 3rem;
  font-size: small;
}

.letterMail {
  width: 400px;
  margin: 0 auto;
}

.letterMail p:nth-of-type(1) {
  font-weight: bold;
  margin-bottom: 0;
}
.letterMail p:nth-of-type(2) {
  font-style: italic;
  margin-bottom: 0;
}

.letterMail p:nth-of-type(3) {
  font-size: x-small;
  margin-top: 10px;
}


.letterMail p:nth-of-type(4) {
  font-size: x-small;
  margin-top: 10px;
}

.letterMail span:nth-of-type(1) {
  display: block;
  height: 1px;
  background-color: #999;
  position: relative;
  top: 0;
}

.letterMail span:nth-of-type(2) {
  display: block;
  height: 1px;
  background-color: #999;
  position: relative;
  top: 3px;
}

.letterSNS {
  margin: 0 auto;
}

.letterSNS a {
  font-size: 1rem;
}

.letterGrid .fa-brands {
  font-size: 1rem;
  margin-right: 10px;
}

.inputEmail {
  width: 80%;
  margin-top: 10px;
  background-color: #fff;
  border: 1px solid #999;

}
.letterMail .submitButtom{
  width: 40px;
  height: 25px;
  font-size:80%;
  padding: auto;
  margin-top: 5px;
}


/* ↓これってどこのことを指している？ */
#content {
  width: 100%;
  height: 200px;
}

#details .text p {
  line-height: 150%;
}

.datail h2 {
  position: relative;
}

.datail h2::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  background-color: dimgray;
  height: 1px;
  width: 100%;
}

.datail h2::after {
  content: "";
  display: block;
  position: absolute;
  width: 30px;
  transform: rotate(-150deg);
  right: -30px;
  background-color: dimgray;
  height: 1px;
  transform-origin: 0% 0%;
  bottom: -1px;
}

.datailGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  place-items: center;
}

.datailGrid .image img {
  height: 180px;
  width: 280px;
  background-color: white;
}

/* FOOTER*/
footer {
  container: footer / inline-size;
}

.footerGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: start center;
  padding: 1rem 0;
}

.footerGrid div:nth-child(2) {
  grid-column: 1 / 3;
  grid-row: 2;
}

.footerGrid img {
  max-width: 100px;
  margin: auto;
}

@media screen and (min-width: 800px) {
  header {
    top: -100px;
    margin: 100px auto 0;
    height: 100px;
    line-height: 100px;
  }

  main {
    margin: 100px 0 0 0;
  }
}

@container header (min-width: 800px) {
  .brand img {
    max-width: 100px;
  }

  /* Toggle Button */
  #nav-toggle {
    display: none;
  }

  #global-nav,
  #headerSNS {
    display: block;
    width: fit-content;
  }

  #global-nav ul li {
    display: inline-block;
    padding: 0 2rem;
  }

  #global-nav ul li a,
  #headerSNS a {
    color: #000;
  }

  #global-nav ul li a:hover {
    color: #696969;
    font-weight: bold;
  }

  #headerSNS {
    padding-right: 50px;
  }
}

@container main (min-width: 600px) {
  .contents {
    max-width: 600px;
  }

  .card,
  .listItem {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card img {
    height: 110px;
    width: 160px;
  }

  .formGrid {
    grid-template-columns: 1fr 2fr;
  }

  .letterGrid {
    grid-template-columns: 1fr 2fr;
  }

  #spearly-list-body a {
    display: grid;
    grid-template-columns: 1fr 2fr;
  }
}

@container main (min-width: 800px) {
  #home::before {
    margin-top: -100px;
    height: 100px;
  }

  .contents {
    max-width: 800px;
  }

  .card img {
    height: 130px;
    width: 180px;
  }

  .listItem {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }

  .datailGrid {
    grid-template-columns: 1fr 1fr;
  }

  .contents section:nth-child(2n) .datailGrid .image {
    grid-column: 2;
    grid-row: 1;
  }
}

@container footer (min-width: 600px) {
  .contents {
    max-width: 600px;
  }

  .footerGrid {
    grid-template-columns: 1fr auto 1fr;
    place-items: end center;
  }

  .footerGrid div:nth-child(2) {
    grid-column: initial;
    grid-row: initial;
  }
}

@container footer (min-width: 800px) {
  .contents {
    max-width: 800px;
  }
}