#mid_box {
	width:1000px;
	margin:30px auto;
}

h2 { margin-top:0px;margin-bottom:0px;}

h2.title {
  display: inline-flex;
  align-items: center;
  gap: .5em; /* 画像と文字の間隔 */
  line-height: 1.2;
}

/* 先頭にロゴを挿入 */
h2.title::before {
  content: "";
  display: inline-block;
  width: 40px;           /* 必要に応じて調整 */
  height: 40px;          /* 必要に応じて調整 */
  background-image: url("../images/logo_maru.png");
  background-repeat: no-repeat;
  background-size: contain; /* 画像を枠に収める */
  background-position: center;
}



h3 {
	margin-top:50px;
	margin-left:20px;
	background-color:#2381b7;
	padding:4px 20px;
	color:#fff;
	border-radius:5px;
	border:5px solid #eee;

}

#c_box {
	width:800px;
	margin:5px auto;
	padding:10px;
}

#c_box p {
	line-height:2.0em;
	margin-left:40px;
	margin-right:35px;
	margin-bottom:100px;
}

.profile {
  width:650px;
  margin:auto;
}

.profile .row {
  display: grid;
  grid-template-columns: 10.5em 1fr;
  margin-bottom:4px; /* 行間 */
}

.profile dt, 
.profile dd {
  margin:0;
  padding:10px;
  border:none; /* ← 個別の枠は消す */
  border-bottom:1px solid #555;
}

.profile dt {
	background-color:#eee;
}

/* セクション内の補助行（ラベル付きの2段構成など） */
.sub{
  display: block;
  padding:0;
  margin:0;
}

.note{
  color: var(--muted);
}

.ddu {
	padding:0px;
}
dd ul {
	padding-top:0;
	margin-top:0;
}

#ms0 { margin-top:2.5em;}
#msg {
	float:right;
	padding:20px 5px 0px 10px;
}

/* フォーム全体のカード化 */
form[action="confirm.php"] {
  --brand: #2381b7;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;

  max-width: 720px;
  margin: 24px auto 80px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  box-shadow:
	0 10px 25px rgba(0, 0, 0, 0.08),
	inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid #eef2f7;
  color: var(--ink);
  width:650px;
  margin:auto;
}

/* 各フィールド（pタグをフィールドコンテナとして扱う） */
form[action="confirm.php"] p {
  margin: 18px 0 0;
  padding: 0;
  position: relative;
}

/* ラベル */
form[action="confirm.php"] label {
  display: inline-block;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0 0 8px;
  color: #0f172a;
}

/* テキスト入力・メール・テキストエリア・セレクト */
form[action="confirm.php"] input[type="text"],
form[action="confirm.php"] input[type="email"],
form[action="confirm.php"] textarea,
form[action="confirm.php"] select {
  display: block;
  width: 95%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background: var(--bg);
  form[action="confirm.php"] input[type="text"],
  form[action="confirm.php"] input[type="email"],
  form[action="confirm.php"] textarea,
  form[action="confirm.php"] select {
	border-color: #b0b0b0;   /* 例：濃すぎず薄すぎず */
  }
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

/* プレースホルダー色 */
form[action="confirm.php"] input::placeholder,
form[action="confirm.php"] textarea::placeholder {
  color: #9ca3af;
}

/* フォーカス時 */
form[action="confirm.php"] input[type="text"]:focus,
form[action="confirm.php"] input[type="email"]:focus,
form[action="confirm.php"] textarea:focus,
form[action="confirm.php"] select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(35, 129, 183, .15), 0 1px 0 rgba(0,0,0,.04);
  background: #fff;
}

/* テキストエリア調整 */
form[action="confirm.php"] textarea {
  min-height: 160px;
  resize: vertical;
}

/* セレクトボックスの矢印をカスタム（見た目のみ） */
form[action="confirm.php"] select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
	linear-gradient(45deg, transparent 50%, #6b7280 50%),
	linear-gradient(135deg, #6b7280 50%, transparent 50%),
	linear-gradient(to right, #d1d5db, #d1d5db);
  background-position:
	calc(100% - 20px) calc(50% - 4px),
	calc(100% - 14px) calc(50% - 4px),
	calc(100% - 36px) 50%;
  background-size:
	6px 6px,
	6px 6px,
	1px 60%;
  background-repeat: no-repeat;
  padding-right: 44px;
}

/* ラジオボタン行 */
form[action="confirm.php"] p:nth-of-type(4) {
  margin-top: 24px;
}

/* ラジオボタン（ネイティブを活かしつつブランド色に） */
form[action="confirm.php"] input[type="radio"] {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -2px;
  accent-color: var(--brand);
  margin-right: 6px;
}

/* ラジオのラベル間隔 */
form[action="confirm.php"] label input[type="radio"] {
  margin-right: 6px;
}
form[action="confirm.php"] label + label {
  margin-left: 18px;
}

/* 補助説明テキスト用（必要時に .note を付与するだけで薄色表示） */
form[action="confirm.php"] .note {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ボタン行 */
form[action="confirm.php"] p:last-of-type {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}

/* 送信ボタン */
form[action="confirm.php"] input[type="submit"] {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #2aa0dc, #2381b7);
  color: #fff;
  box-shadow:
	0 8px 16px rgba(35,129,183,.25),
	inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
  font-size:16px;
}
form[action="confirm.php"] input[type="submit"]:hover {
  filter: brightness(1.03);
  box-shadow:
	0 10px 20px rgba(35,129,183,.3),
	inset 0 1px 0 rgba(255,255,255,.5);
	font-size:16px;
}
form[action="confirm.php"] input[type="submit"]:active {
  transform: translateY(1px);
  font-size:16px;
}

/* リセットボタン（アウトライン・セカンダリ） */
form[action="confirm.php"] input[type="reset"] {
  appearance: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #d1e5f3;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  font-size:16px;
}
form[action="confirm.php"] input[type="reset"]:hover {
  background: #f5fbff;
  border-color: #b9d9ec;
  font-size:16px;
}

/* エラー時の見た目（HTMLのrequired/invalidに反応） */
form[action="confirm.php"] input:invalid,
form[action="confirm.php"] textarea:invalid,
form[action="confirm.php"] select:invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}

/* 見出しとの距離感微調整 */
#c_box h3 + form[action="confirm.php"] {
  margin-top: 12px;
}



#kug {
	margin-top:50px;
	margin-bottom:50px;
}

.form-wrapper {
  margin: 0 auto;   /* 左右中央寄せ */
  padding: 20px;
  border-radius: 8px;
  background: #fff;
}

/* === profile：ペア表示のフェードイン（全デバイス共通） === */
.profile .fade-pair {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.profile .fade-pair.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .profile .fade-pair {
	transition: none;
	transform: none;
	opacity: 1;
  }
}


/* フォーム内だけ段落の縦余白を小さくする */
#c_box .form-wrapper form[action="confirm.php"] p {
  margin: 8px 0; /* 例：上8px 下8px に調整 */
}

/* ラベルの下の余白も少しだけ詰めたい場合（任意） */
#c_box .form-wrapper form[action="confirm.php"] label {
  margin: 0 0 4px;
}

#omsg {
	text-align:center !important;
	margin-bottom:0px !important;
}