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

html, body {
  height: 100%;
  font-family: 'Roboto', 'Noto Sans JP', 'メイリオ', 'Meiryo', 'ＭＳ Ｐゴシック', sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header,
.footer {
  background-color: #e6f0c8;
  padding: 20px;
  text-align: center;
  color:#333;
  font-weight:normal;
  font-size:90%;
}

.header {
  display: flex;
  justify-content: center;
  border-bottom:solid 1px #a0b742
}
.header-inner {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0px 30px;
}
.header-inner img{
    width:50px;
}
.header-inner div{
  text-align:left;
  display: flex;
  align-items: center; /* 上下中央揃え */
  gap: 8px;             /* 画像とテキストの間に余白 */
}
.header-inner div p{
  font-size:20px;
  color:#76832f;
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  background-color: #e8f4ff;
  background-color: #fff;
}

.main-inner {
  width: 100%;
  max-width: 960px;
  background-color: white;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
/*
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
*/
}

h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.ttl{
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: 24px;
  color: #333;
  border-bottom:solid 2px #a0b742;
}

span.required{
 margin-bottom:20px;
}

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

.form-row {
  display: flex;
  align-items: center;
  gap: 16px;

}

.form-row label {
  width: 180px;
  font-weight: bold;
  color: #444;

  padding: 10px;
  background-color: #f5fae3;
  border:1px solid #a0b742;

}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #0077cc;
  outline: none;
}

.form-row textarea#content{
  line-height:150%;
}

.form-actions {
  text-align:center;
  margin-top:30px;
}
.form-actions div{
 display:inline-block;
}
.button,
button {
  padding: 14px 100px;
  font-size: 16px;
  background-color: #0077cc;
  background-color: #e3b84d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.button:hover,
button:hover {
  opacity: 0.7;
}

.button{
    text-decoration:none;
}

div.message.error{
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
    padding: 1rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 1rem;
}
div.error-message {
    color: #cc1f1a;
    margin-left:200px;
}

span.required::before,
label.required::after {
    display: inline-block;
    line-height: 16px;
    text-indent: 0px;
    color: rgb(255, 255, 255);
    vertical-align: text-bottom;
    text-align: center;
    font-size: 0.625rem;
    font-weight: normal;
    content: "必";
    margin: 2px 5px 3px 3px;
    padding: 0px 5px;
    background: rgb(220, 1, 57);
    border-radius: 3px;
}

#content,
label[for="content"]{
  height:250px;
}

.form-privacy {
	margin-top: 30px;
	padding: 32px 32px 30px;
	border: solid 2px #b3cb51;
	border-radius: 4px;
}
.form-privacy .title {
	padding-bottom: 6px;
	color: #a0b742;
	font-size: 17px;
}
.form-privacy p {
	font-size: 15px;
}

.form-notice {
	margin-top: 30px;
	font-size: 16px;
	text-align: center;
}
.form-notice-s {
	margin-top: 30px;
	font-size: 13px;
	text-align: center;
}

/* ▼ 768px以下で縦並びに変更 */
@media (max-width: 768px) {

  .header-inner div p{
    font-size:18px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row label {
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
  }

  .form-actions {
    justify-content: center;
  }
  .form-actions div{
    margin-top:20px;
  }

    div.error-message {
        margin-left:0px;
    }

    label[for="content"]{
    height:auto;
    }

}
