/* ベース ----------------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    "YuGothic", "Yu Gothic", "Meiryo", sans-serif;

  font-size: 16px;
  line-height: 1.7;
  color: #2e2418; /* ダークブラウン */

  /* 高級感のあるブラウングラデーション背景 */
  background: radial-gradient(
      circle at top,
      rgba(255, 247, 235, 0.85) 0%,
      rgba(255, 247, 235, 0) 55%
    ),
    linear-gradient(135deg, #e7ded3 0%, #d8cabb 35%, #c9b8a5 100%);
  background-attachment: fixed;
}

.cen {
  text-align: center;
}

/* レイアウト ----------------------------------- */
#wrapper {
  max-width: 960px;
  margin: 20px auto 36px;
  padding: 20px 20px 44px;

  /* 象牙色の上質カード */
  background: rgba(255, 252, 246, 0.96);
  border-radius: 12px;
  border: 1px solid rgba(160, 140, 120, 0.25);

  /* ブラウンの柔らかい影 */
  box-shadow: 0 18px 40px rgba(60, 47, 30, 0.12),
    0 4px 10px rgba(60, 47, 30, 0.07);
}

/* ボックス共通 ----------------------------------- */
.box {
  background: rgba(255, 252, 246, 0.98);
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 10px;

  border: 1px solid rgba(170, 150, 130, 0.25);
  box-shadow: 0 1px 4px rgba(60, 47, 30, 0.06);
}

/* 見出し ----------------------------------- */
h2 {
  margin: 0 0 0.7em;
  font-size: 1.4rem;
  font-weight: bold;
  color: #3c2f1e; /* 深ブラウン */

  /* ゴールドブラウンの下線 */
  border-bottom: 2px solid rgba(150, 120, 90, 0.35);
  padding-bottom: 0.3em;
  letter-spacing: 0.03em;
}

h3 {
  margin: 1.1em 0 0.7em;
  font-size: 1.1rem;
  font-weight: bold;
  color: #4a3a26;

  /* 左線を金寄りブラウンに */
  border-left: 4px solid #8a6a45;
  padding-left: 0.6em;
}

/* 画像 */
.dt img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0.4em auto;
}

/*ロゴ画像*/
#logo_img {
  max-height: 100px;
  width: auto;
}

/* ボタン ----------------------------------- */
.mybutton,
input[type="submit"],
input[type="button"] {
  appearance: none;
  border: 1px solid #8b7760;
  background: linear-gradient(180deg, #f5efe8 0%, #e8ded1 100%);
  padding: 9px 18px;
  margin: 3px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  box-sizing: border-box;
  color: #3c2f1e;
  box-shadow: 0 1px 3px rgba(60, 47, 30, 0.06);
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.mybutton:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: linear-gradient(180deg, #efe6db 0%, #e5d9c9 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(60, 47, 30, 0.12);
}

.mybutton:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
  outline: 2px solid #b89b6b; /* 金寄りブラウン */
  outline-offset: 2px;
}

/*クレジットカードページ遷移ボタン*/
input[type="submit"].mybutton_credit,
input[type="button"].mybutton_credit,
.mybutton_credit {
  appearance: none;
  border: 1px solid #b63a3a; /* 深めの赤 */
  background: linear-gradient(180deg, #fbe3e3 0%, #f3b8b8 100%);
  color: #7a1d1d;
  padding: 10px 20px;
  margin: 3px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(122, 29, 29, 0.22);
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

/* hover: 赤系をやや濃くして注意喚起 */
.mybutton_credit:hover {
  background: linear-gradient(180deg, #f8d4d4 0%, #efaaaa 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(122, 29, 29, 0.28);
}

/* focus: 強調アウトライン（濃赤） */
.mybutton_credit:focus-visible {
  outline: 2px solid #c44141;
  outline-offset: 2px;
}

/* active: クリック時に少し沈む */
.mybutton_credit:active {
  transform: translateY(0);
  background: linear-gradient(180deg, #eaa2a2 0%, #e99595 100%);
}

/* active: クリック時 */
.mybutton_credit:active {
  transform: translateY(0);
  background: linear-gradient(180deg, #ecd1b0 0%, #e5c29b 100%);
}

.bigbtn {
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: bold;
}

/* フォーム ----------------------------------- */
input[type="text"],
textarea,
select {
  border: 1px solid #b8a796;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
  background: #fffefc;
  color: #3c2f1e;
  line-height: 1.55;
}

input[type="text"],
textarea {
  width: 100%;
}

input[type="text"]:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #b89b6b;
  border-color: #b89b6b;
}

textarea {
  resize: vertical;
  min-height: 3.2em;
}

/* テーブル ----------------------------------- */
table.coder {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

/* 上質ブラウン系のボーダー */
table.coder th,
table.coder td {
  border-top: 1px solid #c8b7a4;
  padding: 8px 7px;
  vertical-align: top;
  color: #3a2e21;
}

/* 交互行：若干濃いブラウン寄りベージュ */
/* table.coder tr:nth-child(even) td {
  background: #f4ede6;
} */

/* キー部分 */
th.w-key {
  width: 26%;
  background: #f2e9df;
  font-weight: 600;
  color: #3d2f1e;
}

/* 小計・合計 ----------------------------------- */
th.matome {
  background: #f0e6d6;
  font-weight: bold;
}

.sum {
  font-weight: bold;
  font-size: 1.18rem;
  color: #8a3b2f; /* 落ち着いた深ボルドー */
}

/* ラベル ----------------------------------- */
.req,
.opt {
  display: inline-block;
  padding: 0 0.45em;
  font-size: 0.8rem;
  border-radius: 3px;
  line-height: 1.5;
  margin-left: 0.4em;
}

.req {
  background: #8a3b2f; /* ボルドーブラウン */
  color: #fff;
}

.req a {
  color: #fff;
  text-decoration: underline;
}

.opt {
  background: #c9b8a5;
  color: #3c2f1e;
}

/* 電話・SSL案内 ----------------------------------- */
.tel,
.ssl_alert {
  max-width: 960px;
  margin: 0 auto 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  border-radius: 4px;
}

.tel {
  background: #fbf7f2;
  border: 1px solid #d6c8b8;
}

.ssl_alert {
  background: #f4ece2;
  border: 1px solid #d9cbb5;
}

.err-addr {
  font-weight: bold;
  color: #ff2200;
}

/* リンク */
a {
  color: #8a6a45;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* スマホ ----------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 14px;
    background-attachment: scroll;
  }

  #wrapper {
    margin: 10px 6px 20px;
    padding: 12px 10px 24px;
  }

  .box {
    padding: 10px 12px;
  }

  table.coder th,
  table.coder td {
    display: block;
    width: 100%;
  }
}
