@charset "UTF-8";

/* common */

body {
  margin: 0;
}

* {
  box-sizing: border-box;
  vertical-align: bottom;
  /* margin: 0; */
}

ul {
  list-style: none;
  list-style-position: inside;
  /* background-color: antiquewhite; */
  padding-left: 0;
  margin: 0 32px;
}

li {
  list-style-position: outside;
  /* background-color: aliceblue; */
}

a {
  color: #000;
  text-decoration: none;
}

h1 {
  font-size: 48px;
  /* background-color: aqua; */
  /* width: 400px; */
}

h1 a {
  color: green;
}

h2 {
  text-align: center;
  margin: 64px;
  /* background-color: antiquewhite; */
}

h3 {
  font-weight: normal;
  text-align: left;
  width: 600px;
  margin: 16px auto 0;
}

p {
  margin: 40px 64px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.8;
}

.container {
  max-width: 840px;
  margin: 0 auto;
  /* background-color: #ccc; */
  /* position: relative; */
}

/* header */

header {
  display: flex;
  /* background-color: azure; */
  justify-content: space-between;
  padding: 16px;
}

header ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

header li a {
  font-size: large;
}

.main {
  background-image: url(img/AdobeStock_508368687.jpeg);
}

/* mainvisual */

#mainvisual {
  position: relative;
}

#mainvisual img {
  height: 720px;
  object-fit: fill;
  background-color: #aaa;
}

#mainvisual p {
  position: absolute;
  top:36%;
  left:50%;
  transform: translate(-50%,-50%);
  font-size:24px;
  color: green;
  padding:0;
  margin:0;
}

/* About */

.about {
  width: 660px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  /* background-color: #aaa; */
}

.about p {
  font-size: 24px;
}

#about img {
  border-radius: 50%;
}

/* Works */

#works ul {
  /* background-color: aliceblue; */
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 840px;
  margin: 0 auto;
  /* background-color: #aaa; */
}

#works li {
  background-color: antiquewhite;
  /* background-image: url(img/AdobeStock_453403323.jpeg); */
  background-size: cover;
  width: 240px;
  height: 160px;
  border-radius: 8px;
  /* font-size: 48px;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center; */
}

#works li p {
  width: 160px;
  text-align: center;
  font-size: 36px;
  margin: 48px auto 0;
  color: #555;
  /* background-color: greenyellow; */
}

/* News */

dl {
  /* background-color: aliceblue; */
  margin: 0 32px;
  border-bottom: 1px solid #aaa;
  display: flex;
  flex-wrap: wrap;
}

dt {
  /* margin-top: 16px; */
  /* background-color: aqua; */
  border-top: 1px solid #aaa;
  width: 20%;
  padding: 12px 16px;
}

dd {
  width: 80%;
  /* background-color: aquamarine; */
  margin: 0;
  border-top: 1px solid #aaa;
  padding: 12px 16px;
}

button {
  padding: 8px 64px;
  border-radius: 4px;
  color: white;
  background-color: black;
  margin: 24px;
}

.button {
  text-align: center;
  /* background-color: antiquewhite; */
}

button:hover {
  background-color: white;
  color: black;
  cursor: pointer;
}

input {
  height: 48px;
  width: 100%;
}

textarea {
  width: 100%;
}

.contact dl {
  border: none;
}

.contact dt,
.contact dd {
  border: none;
  margin-bottom: 12px;
}

.contact dt {
  width: 18%;
  padding: 0 0 0 16px;
}

.contact dd {
  width: 75%;
  padding: 0;
}

footer {
  background-color: black;
  color: #fff;
  text-align: center;
  margin-top: 64px;
  padding: 12px;
}

/* sp */

@media (max-width: 600px) {
  header {
    display: block;
  }

  h1 {
    margin: 0;
    text-align: center;
  }
  ul {
    justify-content: center;
    margin-top: 16px;
  }
  #works ul {
    /* background-color: aliceblue; */
    flex-direction: column;
    gap: 24px;
    /* display: block; */
  }
  #works li {
    margin: 0 24px;
  }
  #works li img {
    width: 100%;
  }
  dl {
    flex-direction: column;
  }
  dt, dd {
    width: 100%;
    padding: 0;
  }
  dt {
    padding-top: 16px;
  }
  dd {
    border-top: none;
    padding-bottom: 16px;
  }
  .contact dt,
  .contact dd {
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .contact dd {
    margin-bottom: 12px;
  }
}