@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background: url(topbar.png);
    background-size: cover;
    margin-bottom: 30px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* iPhoneの自動文字拡大を無効化（全ページ共通がおすすめ） */
html { -webkit-text-size-adjust: 100%; }

/* ナビのコンテナをフレックス化して折り返し禁止に */
header .nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* 画像リンクのベースラインズレ対策 */
header .nav a { display: inline-flex; align-items: center; }
header .nav img,
.logo img { display: block; height: 50px; }  /* heightは今の指定に合わせてOK */


.nav a {
  margin-left: 10px;       /* ボタン間の間隔 */
  text-decoration: none;
}

.contact-container {
  max-width: 600px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(43, 39, 39, 0.1);
}

h1{
    text-align: center;
    font-family: Zen Maru Gothic;
    font-size: 22px;
    color: #7c6c78;
    margin-bottom: 5px;
}

h2{
    text-align: right;
    font-family: Zen Maru Gothic;
    font-size: 15px;
    color: #7c6c78;
    margin-bottom: 15px;
}

form{
    text-align: left;
    font-family: Zen Maru Gothic;
    font-size: 18px;
    color: #7c6c78;
    line-height: 1.5em;
}

label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
}

.required {
  color: #e97467;
  font-size: 0.5em;
  margin-left: 3px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #f39d8a;
  color: #fff;
  font-size: 1em;
  font-family: Zen Maru Gothic;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #e9cfbc;
}

footer {
    text-align: center;
    color: #7c6c78;
    font-size: 16px;
    font-family: Solway Medium;
    margin-top: 100px;
    margin-bottom: 100px;
}