/* donation.css */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.donation-content {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.donation-content .book_img{
 margin-bottom: 30px;
}

h1 {
  text-align: center;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 15px;
  margin-bottom: 5px;
  color: #555;
}

input,
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  margin-top: 20px !important;
  padding: 12px !important;
  background-color: #ea5209 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px;
  font-weight: bold !important;
  font-size: 1.5rem !important;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; /* ←これでフェード */
}

button:hover {
  background-color: #f0a481f6 !important;
}

.title_blue {
  background-color: #162556;

  padding: 30px 0;
}

.title_orange {
  background-color: #ea5209;
  padding: 30px 0;
}

.title_blue h1 {
  color: #fff;
  font-weight: bold;
  font-size: 2.5rem;
  font-family: "Noto Serif JP", serif;
}

.title_orange h1 {
  color: #fff;
  font-weight: bold;
  font-size: 2.5rem;
  font-family: "Noto Serif JP", serif;
}

.title_orange h2{
  color: #fff;
  font-size: 1.6rem;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  padding-top: 5px;
}

.donation_notice {
  margin: 30px 0;
  line-height: 1.4;
}

.contents_title {
  padding: 25px;
  border: 1px solid #ccc;
  margin-bottom: 30px;
}

.mr-2 {
  margin: 6px 10px 0 0;
  font-size: 0.6rem;
}

.flex {
  display: flex;
  margin-bottom: 10px;
}

.flex span {
  line-height: 1.4;
}

.lh14 {
  line-height: 1.4;
}

.link {
  text-decoration-line: underline;
  color: #155dfc;
}

.bg-gray {
  background: #f6f3f4;
}

.pd25 {
  padding: 25px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-30 {
  margin-bottom: 30px;
}

.sp20 {
  height: 20px;
}

.input-text {
  margin-top: 10px;
  padding-block: 10px;
  padding-inline: 10px;
  border: solid 1px #d1d1d1;
  box-shadow: 0 1px 3px 0 rgb(205 205 205);
}

.input-select {
  margin-top: 10px;
  padding-block: 10px;
  padding-inline: 10px;
  border: solid 1px #d1d1d1;
  box-shadow: 0 1px 3px 0 rgb(205 205 205);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em;
}

.wh-100 {
  width: 100%;
}

.input-wrapper {
  margin-bottom: 30px;
}

.mt-10 {
  margin-top: 10px;
}

/* button {
  padding: 15px;
  background: #005844;
  font-weight: bold;
  font-size: 1.5rem;
} */

.notice {
  border: 1px solid #f12f36;
  background: rgb(255, 184, 185);
  display: none;
  margin-top: 20px;
  padding: 15px;
  color: #e5121a;
  border-radius: 0.5rem;
  line-height: 1.5;
}

.notice strong {
  color: #e5121a;
}

button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  transition: all 0.3s ease;
}

#subscriptionModal {
  display: none;
  /* â† åˆæœŸçŠ¶æ…‹ã¯å¿…ãš none ã« */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#subscriptionModal .modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.switch-label {
  font-weight: bold;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #2196f3;
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

.mr-20 {
  margin-right: 20px !important;
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #040000; /* メイン色 */
}

.radio-label .amount {
  text-align: right;
  flex-grow: 1;
  font-size: 1.7rem;
}

.req {
  background: orange;
  color: #fff;
  padding: 0px 4px 0px 4px;
  font-size: 1.1rem;
  margin-left: 7px;
}

.wh-94 {
  width: 94%;
}

.mordal-price {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* 横幅そろえる */
  gap: 10px;
  width: 100%;
  max-width: 220px; /* 入力欄や送信ボタンと同じ幅 */
  margin: 0 auto;
}

.mordal-price .radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;

  /* ボタンっぽく背景で表現 */
  background-color: #f8f8f8;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mordal-price .radio-label:hover {
  background-color: #ffe6d9; /* hoverでほんのり */
}

.mordal-price .radio-label input {
  margin: 0;
}

.mordal-price .radio-label .amount {
  white-space: nowrap;
}

/* 選択中（checked）のスタイル */
.mordal-price .radio-label:has(input[type="radio"]:checked) {
  background-color: #ea5209; /* メイン色 */
  color: #fff; /* 文字は白に */
}

.input-modal {
  margin: 10px auto;
  padding-block: 10px;
  padding-inline: 10px;
  border: solid 1px #d1d1d1d1;
  color: #3d3d3d79;
}

.modal-cancel {
  /* margin: 20px 0 !important; */
  padding: 12px 0 !important;
  background-color: #fff !important;
  /* border-radius: 4px; */
  font-weight: bold !important;
  font-size: 1.5rem !important;
  cursor: pointer;
  text-align: center;
}

.modal-cancel a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ea5209;
  /* border-radius: 4px; */
  color: #ea5209 !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-wrapper {
  text-align: center;
  margin: 80px 0 0 0;
}

a.btn-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ea5209; /* ボタンの色（） */
  color: #fff; /* 文字色（白） */
  text-decoration: none; /* 下線を消す */
  border-radius: 6px; /* 角丸 */
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

a.btn-link:hover {
  background-color: #e78151ff; /* ホバー時 */
}

.modal-cancel a:hover {
  color: #f0a481f6 !important;
  border-color: #f0a481f6 !important;
}

.radio-label {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  background: #f8f8f8;
  padding: 10px 80px;
  border-radius: 4px;
  font-size: 1rem;
}

.radio-label input[type="radio"] {
  flex-shrink: 0;
  margin-right: 10px; /* å·¦ç«¯ã«é…ç½® */
}

.radio-label .amount {
  text-align: right;
  flex-grow: 1;
}

.mr-6 {
  margin-right: 6px;
}
.req {
  background: orange;
  color: #fff;
  padding: 0px 4px 0px 4px;
  font-size: 1.1rem;
  margin-left: 7px;
}

.donation-options {
  display: flex;
}
.donation-option {
  width: 50%;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.donation-option input[type="radio"] {
  margin-right: 6px;
}

.fade-toggle {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.fade-toggle.show {
  max-height: 100px;
  opacity: 1;
}



/* ========= 特商法テーブル / ページ共通強化 ========= */
.about { max-width: 980px; margin: 0 auto; }

/* 見出し */
.headLine01{
  margin: 48px 0 24px;
  text-align: center;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: .06em;
  color: #e06420; /* オレンジのアクセント */
  position: relative;
}
.headLine01::after{
  content:"";
  display:block;
  width: 72px;
  height: 2px;
  background: currentColor;
  margin: 14px auto 0;
  opacity: .5;
}

/* パンくず */
.pagePath{
  max-width: 980px;
  margin: 12px auto 0;
  padding: 8px 8px 0;
  color: #7a8594;
  font-size: 13px;
  margin-bottom: 30px;
}
.pagePath a{ color: inherit; text-decoration: none; }
.pagePath a:hover{ text-decoration: underline; }

/* テーブル本体 */
.law-table{
  width: 100%;
  max-width: 920px;
  margin: 12px auto 56px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  overflow: hidden;          /* 角丸の内側も丸める */
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.law-table th,
.law-table td{
  padding: 16px 20px;
  vertical-align: top;
  line-height: 1.9;
  border-bottom: 1px solid #eef2f7;
}
.law-table tr:last-child th,
.law-table tr:last-child td{ border-bottom: none; }

.law-table th{
  width: 240px;
  background: #f7f9fc;
  color: #2b3a42;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.law-table td{
  color: #2d3643;
  word-break: break-word;
}

/* 情報の中のリンク */
.law-table td a{
  color: #1a73e8;
  text-decoration: none;
}
.law-table td a:hover{ text-decoration: underline; }

/* 備考など小さめの注記 */
.law-note{ font-size: 13px; color:#6b7280; margin-top: 6px; }

/* 印刷最適化 */
@media print{
  .pagePath{ display:none; }
  .law-table{ box-shadow:none; border-radius:0; }
}

/* ====== スマホ対応（2カラム→段組み） ====== */
@media (max-width: 768px){
  .law-table{ border-radius: 10px; margin: 8px auto 40px; }
  .law-table tr{ display: block; padding: 12px 12px 10px; }
  .law-table th,
  .law-table td{
    display: block;
    width: 100%;
    border: 0;
    padding: 2px 6px;
  }
  .law-table th{
    background: transparent;
    color: #6b7280;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
  }
  .law-table td{ padding-bottom: 12px; }
  .headLine01{ margin: 28px 0 12px; }
}


/* --- ã‚¹ãƒžãƒ›ï¼ˆå¹…768pxä»¥ä¸‹ï¼‰ç”¨ã‚¹ã‚¿ã‚¤ãƒ« --- */
@media screen and (max-width: 768px) {
  .donation-option {
    font-size: 11px;
  }
}

.cancel-bk, .thanks-bk{
  margin-top: 30px;
}

.law-table th, .law-table td {
  padding-bottom: 10px;
}