/* consult.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f5f7fa;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #2d3748;
  color: white;
  padding: 15px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}


.consult-main {
  flex: 1;
  padding: 20px;
  max-width: 480px;
  margin: 10px auto 30px auto; /* 上10px、右自動、下30px、左自動 */
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
  color: #ff6600;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: 600;
  color: #333;
}

.required {
  color: red;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #ff6600;
  outline: none;
}

textarea {
  min-height: 120px;
}

button.submit-button {
  background-color:#ffb84d;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center;
  width: 100%;
  max-width: 200px;
}

button.submit-button:hover {
  background-color:rgba(0, 191, 255, 0.1);
}

.back-link {
  margin-top: 20px;
  text-align: center;
}

.back-link a {
  color: #ff6600;
  text-decoration: none;
  font-weight: 700;
}

.back-link a:hover {
  color: #00bfff;
}

.consult-title {
      color: #fff;
}

.consult-title a {
  color: #f7931e; /* オレンジ系（ロゴと統一） */
  text-decoration: none;
  font-weight: bold;
  font-size: 30px;  /* 小見出し程度に調整 */
  text-align: center;
  margin: 20px 0;
  
}

.consult-title a:hover {
  color: #66ccff; /* 明るい水色にホバーで変化 */
  text-decoration: underline;
}

@media screen and (max-width: 480px) {
  h1 {
    white-space: nowrap; /* 改行させずに1行表示 */
    overflow: hidden; /* はみ出し部分を隠す */
    text-overflow: ellipsis; /* はみ出したら「…」表示 */
  }
}

/* iPhone14対応：h1を1行に抑える */
@media screen and (max-width: 390px) {
  h1 {
    font-size: 1.1rem;
    letter-spacing: -0.03em; /* 少し詰める */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* はみ出し防止：フォーム要素の幅調整 */
input[type="text"],
input[type="email"],
textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* mainが画面からはみ出さないように */
.consult-main {
  width: 90%;
  max-width: 480px;
  box-sizing: border-box;
}