/* \\\\\\\\\\\\\\\\\\\スマートフォン\\\\\\\\\\\\\\\\\\\ */
@media screen and (max-width: 1000px) {
  html,
  body {
    /* display: flex; */
    width: 100%;
    height: 100%;
    font-size: 100%;
    font-family: "Armata", sans-serif;
    background: #f0f2f2;
  }

  body {
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  body.fade-in {
    opacity: 1;
  }
  a {
    text-decoration: none;
  }
  :root {
    --myblack: #595959;
  }

  .wrap {
    width: 90%;
    margin: 0 auto;
  }
  /* ^^^^^hamburger^^^^^ */
  #hamburger {
    position: fixed;
    width: 40px;
    height: 30px;
    top: 16px;
    right: 30px;
    z-index: 1000;
  }
  .line_item {
    position: absolute;
    background: #595959;
    height: 2px;
    transition: 0.3s;
    display: block;
    width: 40px;
  }

  #l_1 {
    top: 0;
  }
  #l_2 {
    top: 14px;
  }
  #l_3 {
    bottom: 0;
  }

  .l1 {
    top: 0;
    transform: rotate(-45deg);
    margin-top: 14px;
  }
  .l2 {
    opacity: 0;
  }
  .l3 {
    bottom: 0;
    transform: rotate(45deg);
    margin-bottom: 14px;
  }

  h1 {
    margin-top: 2rem;
    letter-spacing: 2px;
  }
  #h_top a {
    color: #595959;
  }

  .my_job {
    font-size: 0.75rem;
    line-height: 2.5;
    letter-spacing: 1px;
  }

  .my_name {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
  #main_nav {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f0f2f2;
    opacity: 0;
    visibility: collapse;
    transition: 0.3s;
    z-index: 100;
  }
  #nav ul {
    width: 84%;
    margin: 0 auto;
    margin-top: 5rem;
  }
  #nav li {
    display: block;
    text-align: center;

    padding: 0.5rem 0;
    transition: 0.3s;
  }
  .nav_item {
    display: block;
    padding: 0 1rem;
    color: var(--myblack);
  }
  .in {
    visibility: visible;
    opacity: 1;
    z-index: 100;
  }
  .nav_item {
    position: relative;
    font-size: 1rem;
    z-index: 1;
    transition: 0.3s;
    letter-spacing: 1px;
    line-height: 2;
    color: #595959;
  }
  a[aria-current="page"] {
    color: #9bb8c3;
    text-decoration: underline;
  }

  .nav_item:hover {
    color: #9bb8c3;
    transition: 0.3s;
  }
/* ______________________main_______________________________ */
#contact {
  max-width: 600px;
  width: 90%;
  margin: 0 auto;
  /* padding-top: 5rem; ヘッダーとコンテンツが重ならないように調整 */
  color: #595959;
}
#contact h1 {
  margin-bottom:1rem;
  font-size: 1.5rem;
  font-weight: bold;
  padding-top: 1rem;
}
.underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px; /* テキストとの距離 */
}

.underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 130px; /* 下線の長さ */
  height: 2px;  /* 下線の太さ */
  background: #9bb8c3;
}
.text {
  padding-bottom: 1rem;
  font-size: 1rem;
}
form {
  width: 100%; /* 親要素(#contact)の幅に合わせる */
  margin: 0 auto;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem; /* 各フォーム要素間の余白 */
}
.form-container {


  p{
    margin-bottom: 20px;
  }
}
.required-mark {
  color: rgb(196, 90, 90);
  margin-left: 0.25rem;
}
label {
  margin-bottom: 6px;
  font-weight: bold;
}

/* ▼▼▼ 修正・追記箇所 ▼▼▼ */

/* Contact Form 7が生成するspanタグに対応 */
.wpcf7-form-control-wrap {
  display: block; /* ブロック要素にして幅を指定できるようにする */
  width: 100%;
  margin-top: 5px;
}

/* inputとtextareaのスタイルを共通化 */
input[type="text"],
input[type="email"],
textarea {
  margin-bottom: 0; /* .form-groupに余白を設定したため、こちらは0に */
  padding: 10px;
  width: 100%;
  box-sizing: border-box; /* paddingを含めて幅100%にする */
  border: 1px solid #ccc; /* 境界線を追加 */

  &::placeholder {
    color: #ccc;
  }
}

/* ▲▲▲ 修正・追記箇所 ▲▲▲ */

.button-wraper {
  text-align: center;
  padding-top: 2rem;
}
.button-wraper [type="submit"] {
  width: 100%; /* モバイルでは少し幅を広げる */
  max-width: 200px; /* 最大幅を指定 */
  padding: 12px;
  background-color: #9bb8c3;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button-wraper .my-btn:hover { /* セレクタを簡潔に */
  background-color: #77949e;
}

  /* ______________________copy_____________________________ */
  footer{
    width: 100%;
    position: fixed;
    bottom: 0;       /* 画面の下に固定 */
    justify-content: center;
  }
  .copyright {
    width: 90%;
    font-size: 0.75rem;
    margin-bottom: 2rem;
    text-align: end;
    color: #595959;
    
  }
}
/* \\\\\\\\\\\\\\\\\\\\\\\PC\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
@media screen and (min-width: 1000px) {
  html,
  body {
    /* display: flex; */
    width: 100%;
    height: 100%;
    font-size: 100%;
    font-family: "Armata", sans-serif;
    background: #f0f2f2;
  }
  body {
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  body.fade-in {
    opacity: 1;
  }
  a {
    text-decoration: none;
  }
  :root {
    --myblack: #595959;
  }

  .wrap {
    width: 90%;
    margin: 0 auto;
  }

  /* ______________________header_____________________________ */
  header {
    width: 25%;
    position: fixed;
    top: 3rem;
    border-right: 1px solid #cccccc;
    padding-bottom: 70vh;

    h1{
      margin-left: 1.5rem;
      margin-bottom: 3rem;
    }
  }

  #h_top a {
    color: #595959;
  }

  .my_job {
    font-size: 0.75rem;
    line-height: 2.5;
    letter-spacing: 1px;
  }

  .my_name {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
  /* ______________________nav____________________________ */
  .nav {
    display: flex;
  }
  .nav_item {
    position: relative;
    padding-left: 2rem;

    font-size: 1rem;
    z-index: 1;
    transition: 0.3s;
    letter-spacing: 1px;
    line-height: 2;
    color: #595959;
  }
  a[aria-current="page"] {
    color: #9bb8c3;
    text-decoration: underline;
  }

  .nav_item:hover {
    color: #9bb8c3;
    transition: 0.3s;
  }
/* ______________________main_______________________________ */
#contact {
  padding-left: 25%;
  padding-top: 5rem;
  color: #595959;
}
#contact h1 {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  letter-spacing: 2px;
}
.underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px; /* テキストとの距離 */
}

.underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 130px; /* 下線の長さ */
  height: 2px;  /* 下線の太さ */
  background: #9bb8c3;
}

.form-container {
  max-width: 600px;
  margin-left: 2rem;

  p{
    margin-bottom: 20px;
  }
}
.text {
  padding-left: 1.5rem;
  padding-bottom: 2rem;
  font-size: 1rem;
}

/* ▼▼▼ 修正箇所 ▼▼▼ */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem; /* 各フォームグループの下に余白を設定 */
  
}
.form-group label {
  font-weight: bold;
  color: #595959;
  margin-bottom: 10px; /* ラベルと入力欄の間に余白を追加 */
}
.required-mark {
  color: rgb(196, 90, 90);
  margin-left: 0.25rem;
}

/* Contact Form 7が生成するspanタグに対応 */
.wpcf7-form-control-wrap {
  display: block; /* インライン要素からブロック要素に変更 */
  width: 100%;
  margin-top: 5px;
}

/* inputとtextareaのスタイルを共通化 */
input[type="text"],
input[type="email"],
textarea {
  padding: 10px;
  width: 100%; /* inline-sizeからwidthに変更 */
  box-sizing: border-box; /* paddingを含めて幅100%にする */
  border: 1px solid #ccc; /* 境界線がなかったので追加 */

  &::placeholder {
    color: #ccc;
  }
}
/* ▲▲▲ 修正箇所 ▲▲▲ */

.button-wraper {
  text-align: center;
  padding-top: 2rem;
}


.button-wraper [type="submit"] {
  width: 50%; /* ボタンの幅を具体的に指定する例 */
  padding: 15px;
  background-color: #9bb8c3;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.button-wraper .my-btn:hover { /* セレクタを .my-btn に合わせる方がより確実です */
  background-color: #77949e;
}

  /* ______________________copy_____________________________ */
  footer{
    width: 100%;
    position: fixed;
    bottom: 0;       /* 画面の下に固定 */
    justify-content: center;
  }
  .copyright {
    width: 90%;
    font-size: 0.75rem;
    margin-bottom: 2rem;
    text-align: end;
    color: #595959;
    
  }
}
/* レイアウト崩れ対策 */
span.wpcf7-spinner {
  display: none;
}
