/* 全体の基本スタイル */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  line-height: 1.5;
  color: #4b1900;
  background-color: #015551;
  margin: 0;
}
a {
  text-decoration: none;
  color: #4b1900;
}

/* ----- header ----- */

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-header {
  position: sticky;
  top: 0;
  padding: .5rem 1rem;
  background-color: #FDFBEE;
}
.logo {
  width: 115px;
  padding-top: 10px;
}
.main-nav {
  display: flex;
  gap: 1rem;
  list-style: none;
}
.main-nav a {
  color: #560d04;
}
.main-nav a:hover {
  color: #5f3830;
}


/* フォーム全体のレイアウト */
.contact-form {
  max-width: 350px;
  margin: 20px .8rem;
  padding: 20px;
  background: #FDFBEE;
  border-radius: 20px;/*角の丸さ*/
}

/* 見出しと説明文 */
.contact-form h3 {
  text-align: center;
  font-size: 25px;
  margin-bottom: 20px;
  color: #603A03;

}

.contact-form p {
  text-align: center;
  margin-bottom: 20px;
  color: #603A03;
}

/* 各フォーム項目の余白と配置 */
.item {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* それぞれのスタイル */
.item label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #603A03;
}

/* 入力欄のスタイル */
.item input,
.item textarea {
  padding: 15px;
  border: 1px solid #603A03;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

/* テキストエリアの高さ調整 */
.item textarea {
  resize: vertical;
  min-height: 80px;
}

/* 送信ボタンのスタイル */
.button {
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FDFBEE;
  box-shadow: 0 4px 8px rgb(0 0 0 / 65%);
  width: 100px;
  height: 45px;
  font-size: 1rem;
  background-color: #015551;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  
}
  
.button:hover {
  background-color: #013e3c;
}

/* 戻るボタン */
.back {
  position: relative;
  display: inline-block;
  padding-left: 15px;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 1.2rem;
  color: #560d04;
  margin-bottom: 1.2rem;
}
.back::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 0;
  border-top: solid 2px #560d04;
  border-left: solid 2px #560d04;
  transform: rotate(-45deg);
  position: absolute;
  top: 10px;
  left: 0;
  bottom: 0;
}
.back:hover {
  color: #5f3830;
}
.back::before:hover {
  color: #5f3830;
}

/* ----- footer ----- */

.page-footer {
  background-color: #FDFBEE;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ---------- デスクトップ版 ---------- */

@media (min-width: 450px) {
  body {
      max-width: 375px;
      margin: 0 auto;
      position: relative;
      background-image: url(../img/main_visual.png);
      background-position: center;
      background-size: cover;
      background-attachment: fixed;
      background-color: rgba(255,255,255,0.3);
      background-blend-mode: lighten;
  }
  .dt-bgc {
      position: fixed;
      width: 375px;
      height: 100%;
      margin: 0 auto;
      top: 0;
      background-color: #015551;
      z-index: -1;
  }
}