/* =========================================================
   main-comment-form 調整済み完成CSS
   風神（緑）× 雷神（黄）
========================================================= */

/* ---------- body ---------- */
body {
  background-color: #fffaf5;
}

/* ---------- フォント ---------- */
.mincho {
  font-family: "Noto Serif JP", sans-serif;
  font-weight: 300;
}
.mincho2 {
  font-family: "Noto Serif JP", sans-serif;
  font-weight: 500;
}
.mincho3 {
  font-family: "Noto Serif JP", sans-serif;
  font-weight: 700;
}
.mincho4 {
  font-family: "Noto Serif JP", sans-serif;
  font-weight: 900;
}

.gothic1 {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 300;
}
.gothic2 {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
}
.gothic3 {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 700;
}
.gothic4 {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 800;
}

/* =========================================================
   メイン枠（ここが舞台）
========================================================= */
.main-comment-form {
  position: relative;
  max-width: 920px;
  margin: 4rem auto;
  padding: 3rem 2rem 3.5rem;
  background-color: #fffef8;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

/* ---------- 雷神（左上・黄色） ---------- */
.main-comment-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 215, 0, 0.38) 0%,
    rgba(255, 215, 0, 0.25) 32%,
    transparent 33%
  );
  z-index: 0;
}

/* ---------- 風神（右下・緑） ---------- */
.main-comment-form::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    300deg,
    rgba(76, 175, 80, 0.35) 0%,
    rgba(76, 175, 80, 0.22) 32%,
    transparent 33%
  );
  z-index: 0;
}

/* ---------- 中身は必ず前面 ---------- */
.main-comment-form > * {
  position: relative;
  z-index: 1;
}

/* =========================================================
   見出し
========================================================= */
h2 {
  background: linear-gradient(135deg, #f5d000, #4caf50);
  color: #1a1a1a;
  padding: 1.5rem 1rem;
  margin: 0 auto 2.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
}

/* 下の象徴ライン */
.main-comm-title::after {
  content: "";
  display: block;
  width: 160px;
  height: 3px;
  margin: 1.4rem auto 0;
  background: linear-gradient(90deg, #f5d000, #4caf50);
}

/* =========================================================
   form（レイアウト安定）
========================================================= */
form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 0;
  background: transparent;
  box-shadow: none;
}

/* =========================================================
   入力タイトル
========================================================= */
.comm-form-title {
  color: #2e7d32;
  font-weight: 700;
  font-size: 22px;
}

/* =========================================================
   入力欄
========================================================= */
.mail-box {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 2px solid #4caf50;
  background-color: #ffffff;
  color: #1a1a1a;
  transition: 0.25s ease;
  font-size: 20px;
}

input[type="text"]:focus,
textarea:focus {
  border-color: #f5d000;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.65);
  outline: none;
}

/* コメント欄だけ少し柔らかく */
textarea {
  min-height: 180px;
  background: linear-gradient(135deg, #ffffff 0%, #f1fff1 100%);
}

/* =========================================================
   ボタン
========================================================= */
.button-005 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 360px;
  max-width: 90%;
  margin: 2.5rem auto 1rem;
  padding: 0.9em 2em;
  border: none;
  border-radius: 28px;
  background: linear-gradient(135deg, #f5d000, #ffea70);
  color: #1a1a1a;
  font-weight: 700;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    inset 0 -4px 0 rgba(0, 0, 0, 0.25);
  transition: 0.25s ease;
}

.button-005:hover {
  background: linear-gradient(135deg, #4caf50, #f5d000);
  box-shadow:
    0 0 22px rgba(76, 175, 80, 0.75),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

/* =========================================================
   SP
========================================================= */
@media screen and (max-width: 768px) {
  .main-comment-form {
    padding: 2rem 1rem 2.5rem;
    margin: 2.5rem auto;
  }

  h2 {
    margin-bottom: 2rem;
  }

  .mail-box {
    max-width: 100%;
  }

  .button-005 {
    width: 90%;
  }
}
