﻿@charset "utf-8";
/* CSS Document */

body {
  font-family: "Yu Gothic", sans-serif;
  margin: 0;
  padding: 20px;
  background: #f5f5f5;
  color: #333;
}

.form-wrapper {
  background: #fff;
  max-width: 850px;
  margin: 2% auto;
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

h2 {
  font-size: 2em;
    color: #006AC1;
    font-weight: bold;
    border-bottom: 6px solid #006AC1;
    padding-left: 0.6em;
    margin-bottom: 1.5em;
}

.form-section label {
  display: block;
  margin-bottom: 1.2rem;
  font-weight: bold;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section input[type="number"],
.form-section textarea,
.form-section select {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  resize: vertical;
}

.required {
  color: red;
  margin-left: 4px;
}

.flex-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* ラベル間の余白 */
  margin-top: 0.5em;
}


.flex-rows span {
  display: flex;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
}

.group-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
  }

.inline-input {
  width: 5em;
}

.inline-suffix {
  /* 不要ならこれ削除でもOK */
}


.date-range input {
  width: 80px;
  display: inline-block;
  margin-right: 0.3rem;
}
.privacy textarea {
  width: 100%;
  height: 140px;
  margin-bottom: 0.5rem;
}

.submit-box {
  text-align: center;
  margin-top: 2rem;
}

.inline-input {
  display: inline-block;
  width: 5em !important;
  margin-right: 0.3em;
  vertical-align: middle;
}
.inline-suffix {
  margin-right: 1em;
}


button {
  background-color: #0078d7;
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #005bb5;
}

.note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 2rem;
}

.date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.date-range input {
  width: 5.5em;
}



/* スマホ対応（画面幅が狭いと縦並び） */
@media (max-width: 600px) {
  .flex-rows {
    flex-direction: column;
    gap: 0.5em;
  }

  .flex-rows span {
    justify-content: flex-start;
  }
  
  .group-row {
    flex-wrap: wrap;  /* 横並び解除して縦に折り返す */
  }

	.date-range {
    flex-direction: column;
    align-items: flex-start;
  }
}
