/* ============================
   Layout / Common
   ============================ */
#mid_box {
  width:100%;
  margin:30px auto;
}

h2.title {
  display: flex;
  align-items: center;
  gap: .5em;
  line-height: 1.2;
  margin-left: 0;   /* 左端から開始 */
  padding-left: 0;  /* 内側余白もゼロ */
}

/* 先頭にロゴを挿入 */
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:auto;
  margin-right:auto;
  background-color:#2381b7;
  padding:4px 20px;
  color:#fff;
  border-radius:5px;
  width:5em;
  text-align:center;
}

h4 {
	color:#114;
	margin-left:10px;
	border-bottom:1px solid #aaa;
	width:10em;
}


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

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

.profile {
  width:95%;
  margin:auto;
}

.profile .row {
  display:grid;
  grid-template-columns:7em 1fr; /* 列幅は7em + 可変 */
  margin-bottom:4px; /* 行間 */
}

.profile dt,
.profile dd {
  margin:0;
  padding:10px;
  border:none;
  border-bottom:1px solid #555;
}

.profile dt {
  background-color:#eee;
  width:auto; /* 列幅にフィット */
}

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

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

.ddu { padding:0; }

dd ul { padding-top:0; margin-top:0; margin-left:-1.5em; }

dd ul li { margin-bottom:2em;margin-left:0px; }

.ms0 { 
	margin-top:1.5em;
	text-align:center !important;
	border-bottom:dashed #000 1px;
	display:block;
	padding-bottom:10px;
}

#msg {
	float:right;
	padding:20px 5px 0px 10px;
}

/* ============================
   Mail Form (Card)
   ============================ */
form[action="confirm.php"] {
  --brand:#2381b7;
  --ink:#1a1a1a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#ffffff;

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

/* 各フィールド（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:100%;            /* 最終仕様：カード内は全幅 */
  box-sizing:border-box;
  margin:0;
  padding:10px;
  font-size:16px;
  line-height:1.6;
  color:#111827;
  background:var(--bg);
  border:1px solid var(--line);
  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; }

/* 補助説明テキスト */
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);
}

form[action="confirm.php"] input[type="submit"]:active {
  transform:translateY(1px);
}

/* リセットボタン（アウトライン） */
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;
}

form[action="confirm.php"] input[type="reset"]:active {
  transform:translateY(1px);
}

/* エラー時の見た目 */
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; }

/* ============================
   Divider / Wrapper
   ============================ */

/* 区切り線（#kug） */
#kug {
  display:block;
  height:1px;
  border:0;
  background:#e5e7eb;
  margin:20px 0;
}

/* ラッパー */
.form-wrapper {
  margin:0 auto;
  padding:0;          /* 最終仕様：通常時は0。SPで上書き */
  border-radius:8px;
  background:#aa8;
  width:90%;
}

/* ============================
   プライバシーポリシー
   ============================ */

/* 見出し */
#privacy-policy h4 {
  margin:0 0 10px;
  font-size:18px;
  font-weight:700;
  color:#0f172a;
}

/* 本文スクロールボックス */
#privacy-policy .privacy-box {
  max-height:220px;
  overflow:auto;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:12px 14px;
  background:#fff;
  line-height:1.8;
  font-size:14px;
  color:#111827;
  -webkit-overflow-scrolling:touch;
}

/* 箇条書き */
#privacy-policy ol { margin:0 0 12px 1.2em; padding:0; }
#privacy-policy ol li { margin:0 0 8px; }

/* 制定日注釈 */
#privacy-policy .privacy-note {
  margin:12px 0 0;
  font-size:13px;
  color:#6b7280;
}

/* 同意チェック */
#privacy-policy .privacy-check { margin-top:12px; }

#privacy-policy .privacy-check label {
  font-size:14px;
  color:#0f172a;
  display:flex;
  align-items:center;
  gap:8px;
}

#privacy-policy .privacy-check input[type="checkbox"] {
  width:20px;
  height:20px;
}

/* アンカー位置のずれ対策 */
#privacy-policy,
#kug { scroll-margin-top:72px; }

/* 余白微調整（下部） */
.form-wrapper form > p:last-of-type { margin-bottom:10px; }

/* ============================
   Mail Form (Smartphone ≤605px)
   ============================ */
@media (max-width:605px){
  .form-wrapper{
	max-width:100%;
	padding:12px;    /* 通常時0 → SP時に余白付与 */
  }

  form[action="confirm.php"]{
	padding:16px;    /* カード内余白をSPで増量 */
  }

  /* ラベルと入力UI（iOSズーム防止など） */
  .form-wrapper label {
	display:inline-block;
	margin-bottom:6px;
	font-size:16px;
	line-height:1.4;
	color:#0f172a;
  }

  .form-wrapper input[type="text"],
  .form-wrapper input[type="email"],
  .form-wrapper textarea,
  .form-wrapper select {
	width:80%;
	box-sizing:border-box;
	padding:12px 14px;
	font-size:16px;
	line-height:1.6;
	border:1px solid #cbd5e1;
	border-radius:8px;
	background:#ffffff;
	color:#111827;
	outline:none;
	-webkit-appearance:none;
	appearance:none;
  }

  .form-wrapper textarea { min-height:140px; resize:vertical; }

  /* フォーカス表示（アクセシビリティ） */
  .form-wrapper input[type="text"]:focus,
  .form-wrapper input[type="email"]:focus,
  .form-wrapper textarea:focus,
  .form-wrapper select:focus {
	border-color:#3b82f6;
	box-shadow:0 0 0 3px rgba(59,130,246,0.15);
  }

  /* 送信/リセットボタン（縦並び・全幅） */
  .form-wrapper input[type="submit"],
  .form-wrapper input[type="reset"] {
	display:block;
	width:100%;
	box-sizing:border-box;
	padding:14px 16px;
	font-size:16px;
	line-height:1.2;
	border-radius:10px;
	border:1px solid transparent;
	cursor:pointer;
  }

  .form-wrapper input[type="submit"] {
	background:#0ea5e9;
	color:#ffffff;
	margin:18px 0 10px;
  }

  .form-wrapper input[type="reset"] {
	background:#e5e7eb;
	color:#0f172a;
  }

  .form-wrapper input[type="submit"]:active,
  .form-wrapper input[type="reset"]:active {
	transform:translateY(1px);
  }

  /* セレクト（カテゴリ） */
  .form-wrapper select {
	background-image:
	  linear-gradient(45deg, transparent 50%, #64748b 50%),
	  linear-gradient(135deg, #64748b 50%, transparent 50%),
	  linear-gradient(to right, #cbd5e1, #cbd5e1);
	background-position:
	  calc(100% - 18px) 50%,
	  calc(100% - 12px) 50%,
	  calc(100% - 2.25em) 50%;
	background-size:6px 6px, 6px 6px, 1px 1.8em;
	background-repeat:no-repeat;
	padding-right:2.6em;
  }
}



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

/* === profile：ペア表示のフェードイン（全デバイス共通） === */
.profile .fade-pair {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 5s ease, transform 5s 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;
  }
}

/* ▼スマホだけフェードを5秒にする（幅605px以下） */
@media screen and (max-width: 605px) {
  .profile .fade-pair {
	transition: opacity 3s ease, transform 3s ease;
  }
}

/* ▼PCやそれ以外の画面サイズは従来の速さ */
@media screen and (min-width: 606px) {
  .profile .fade-pair {
	transition: opacity 0.6s ease, transform 0.6s ease; /* ←元の値など */
  }
}

/* フォーム内だけ段落の縦余白を小さくする */
#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;
}

/* 入力欄のボーダーを濃くする上書き */
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;   /* 例：少し濃くする */
}

#sky {
	margin:0px auto 50px auto;
	width:240px;
	display:block;

}

#logo_msg {
	margin:auto;
	display:block;
}