@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');
html {
  font-size: 100%;
}
body {
  color: #24292e;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
}
li {
  list-style: none;
}
h1 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 50px;
}
h2 {
  font-size: 50px;
  text-align: center;
  margin-bottom: 120px;
}
section {
  max-width: 1300px;
  margin: 0 auto 200px auto;
  font-size: 0.9rem;
  padding: 0 4%;
}


/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
  max-width: none;
  left: 0;
  width: 100%;
  position: fixed;  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 150px;
  margin: 0 auto;
  padding: 0 4%;
  background-color: #fff;
}
#header ul {
  display: flex;
  padding: 10px 0;
}
#header li {
  font-size: 1.1rem;
  margin-left: 30px;
}
#header li a {
  color: #24292e;
}
#header li a:hover {
  opacity: 0.8;
}
/*-------------------------------------------
Mainvisual
-------------------------------------------*/
#mv {
  margin-bottom: 80px;
}
#mv img {
  width: 100%;
  max-width: 1920px;
  height: 420px;
  object-fit: cover;
  margin-top: 200px;
}

/*-------------------------------------------
Works
-------------------------------------------*/
#works ul {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  padding: inherit;
}

#works li {
  width: 100%;
  max-width: 300px;         
  aspect-ratio: 1 / 1;      
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#works li:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); 
}
#works li img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}
#works p{
  font-size: 1.2rem;
  color: #24292e;
  text-align: center;
}

/*-------------------------------------------
About
-------------------------------------------*/
#about{
  margin-top: 120px;
}
#about p {
  text-align: start;
  font-size: 45px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: bold; 

}
#about span{
  font-size: 18px;
  padding: 10px;
  font-weight: lighter;
}
#about th{
  text-align: start;
  font-weight: normal;
  font-family: "Noto Sans JP", sans-serif;
  padding: 20px 40px 20px 0px;
  font-size: 1.2rem;
}
#about td{
  width: 250px;
  height: 250px;
}
/*-------------------------------------------
Contact
-------------------------------------------*/
#contact {
  text-align: center;
}
#contact h2{
  font-size: 40px;
  text-align: center;
  margin-bottom: 0;
}
#contact div{
  padding-top: 50px;
}
#contact p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 22px;
  margin-top: 5px;
}


/* お問い合わせフォーム */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    margin: 0;
    padding: 0;
}
form {
    padding: 20px;
    width: 90%;
    max-width: 800px;
    height: 400px;
    margin: auto;
    border-radius: 10px;
    text-align: left;
}
label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
    font-size: 18px;
}
input, textarea {
    width: 100%; 
    height: 50px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
textarea {
    resize: vertical;
    height: 170px;
}
button {
    background-color: #24292e;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
button:hover {
    background-color: #858886;
}
.checkbox-wrapper {
    display: flex;
    align-items: center;
    padding: 0px;
    font-size: 16px;
}
.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}
.checkbox-wrapper label {
    cursor: pointer;
    color: #555;
}
.privacy-link {
    color: #000;
    text-decoration: underline;
}
.privacy-link:hover {
    color: #007bff;
}

/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
  background-color: #24292e;
  color: #fff;
  font-size: 0.7rem;
  padding: 16px 24px;
  text-align: center;
}
/*プライバシーポリシー*/
#privacy h2{
  padding-top: 250px;
  font-size: 30px;
  margin-bottom: 70px;
}
#privacy section {
  max-width: 940px;
  margin: 0 auto 20px auto;
  font-size: 1.1rem;
}
#privacy h3, p{
  text-align: left;
}
.a {
  margin-bottom: 150px;
}
/*スマホレスポンシブ対応*/

@media screen and (max-width: 768px) {
  #works ul {
    flex-direction: column;
    align-items: center;       /* 中央寄せしたい場合 */
    padding: 0;
  }

  #works li {
    max-width: 90%;            /* スマホでは幅を広げて見やすく */
    aspect-ratio: auto;        /* 高さの縛りを解除して中身に合わせる */
    flex-direction: column;
    justify-content: center;
  }
 #header {
    flex-direction: column;         /* 上下配置 */
    align-items: center;  
    text-align: center;      
    height: auto;
    padding: 20px;
  }

  #header ul {
    flex-direction: row;            /* ナビは横並び */
    flex-wrap: wrap;                /* 折り返し可能 */
    justify-content: center;        /* ★中央寄せ★ */
    width: 100%;
    margin-top: 20px;
    padding: 0;
  }

  #header li {
    margin-left: 0;
    margin-right: 20px;
    font-size: 1rem;
  }
  #about h2{
    margin-bottom: 100px
  }
  #about{
    margin-top: 100px;
  }
  #about p {
    font-size: 28px;
    text-align: center;
    display: flex;
    flex-direction: column; /* ↓下に並べる */
    align-items: center;
  }

  #about p span {
    font-size: 14px;
    font-weight: normal;
    padding: 5px;
  }

#about table {
    width: 100%;
    border-collapse: collapse;
  }

  #about tr {
    display: flex;
    flex-direction: column; /* ↓縦並びに */
    margin-bottom: 20px;
  }

  #about th,
  #about td {
    display: block;
    width: 100%;
    padding: 20px 0;
    text-align: left;
  }
  #about td {
    order: 1; /* tdを下に */
    max-width: 250px;
    max-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
  #about th {
    order: 2; /* thを上に */
  }

}

