/* ============================================
   山村書店 — 可読性強化スタイル
   お年寄りも読みやすい大きめ文字・グリーン基調
   ============================================ */

/* ベースフォントサイズを18pxに拡大 */
html {
  font-size: 18px;
}

/* 行間を広めにとって読みやすく */
body {
  line-height: 1.85;
}

/* 背景を淡いグリーンのクリーム色に */
.bg-soft {
  background-color: #F2F8F5 !important;
}

/* 電話番号リンクを太く */
a[href^="tel:"] {
  font-weight: 700;
}

/* テーブルセルを上揃え */
table td,
table th {
  vertical-align: top;
}

/* 外部リンクアイコン（本文内の target="_blank" リンクに自動付与）
   ・画像を含むリンク（LINEボタン等）は除外
   ・ヘッダー・フッターは除外                                        */
main a[target="_blank"]:not(:has(img))::after {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.25em;
  vertical-align: 0.05em;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* フォーカスリングをブランドカラー（グリーン）に */
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #233a33;
  outline-offset: 2px;
  border-color: #233a33 !important;
}

/* details/summary のアニメーション */
details > div {
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* レスポンシブテーブル：スマートフォンでは見出し→内容を縦積みに */
@media (max-width: 639px) {
  /* コンテナの角丸を外す（縦積み時に崩れて見えるため） */
  .resp-table-wrap {
    border-radius: 0 !important;
  }

  .resp-table tbody tr {
    display: block;
  }
  .resp-table th,
  .resp-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  .resp-table th {
    padding-top: 12px !important;
    padding-bottom: 2px !important;
    border-bottom: none !important;
  }
  .resp-table td {
    padding-top: 4px !important;
    padding-bottom: 14px !important;
  }
  .resp-table tbody tr:last-child td {
    padding-bottom: 16px !important;
  }
}

/* Googleマップ埋め込みをレスポンシブに */
.map-responsive {
  position: relative;
  padding-bottom: 50%;
  height: 0;
  overflow: hidden;
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
