@charset "utf-8";
/* ===============================================
   kingstone-project.jp/handtohand/  style.css
   =============================================== */

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; } /* 56px＝上のバーの高さ。ページ内リンクで見出しがバーに隠れない */
body {
  font-family: "Noto Sans JP", "游ゴシック体", YuGothic, "Yu Gothic", sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; vertical-align: top; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
.sp { display: inline; }
.pc { display: none; }
@media (min-width: 768px) { .sp { display: none; } .pc { display: inline; } } /* 768px＝これより広いとPC表示 */

/* ---------- ★スクロールで出てくる動き（全ページ共通） ---------- */
.ef {
  opacity: 0;
  transform: translateY(20px);                      /* 20px＝下からずれて出てくる距離 */
  transition: opacity .8s ease var(--d, 0s), transform .8s ease var(--d, 0s); /* .8s＝出てくる速さ。--d＝遅らせる時間 */
}
.ef.on { opacity: 1; transform: none; }

/* ---------- ★上のバー（全ページ共通） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px;                                     /* 56px＝バーの高さ */
  padding: 0 20px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid #e8e8e8;
}
.topbar-logo { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .04em; color: #f40d0d; white-space: nowrap; }
.topbar-nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.topbar-nav::-webkit-scrollbar { display: none; }
.topbar-nav a { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .05em; white-space: nowrap; }
.topbar a:hover { opacity: .6; }                    /* ★文字やボタン：少し薄く */
/* ---------- ★「内容をコピー」（メールのボタンの下） ---------- */
.copy_line { max-width: none !important; margin: 14px auto 0 !important; font-size: 13px !important; text-align: center !important; } /* !important＝囲みの段落（p）の文字の大きさ・幅・左寄せを受け継がないため */
.copy_btn { -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; font: inherit; color: inherit; text-decoration: underline; background: none; cursor: pointer; }
.copy_btn:hover { opacity: .7; }                     /* ★文字やボタン：少し薄く（ほかのボタンと同じ） */
.copy_toast { max-width: 640px; margin: 10px auto 0 !important; padding: 10px 14px; border-radius: 8px; font-size: 13px !important; line-height: 1.7; text-align: center !important; color: #555; background: #fff;; } /* コピーしたあとのお知らせ（6秒で消える。画面のどこかを押してもすぐ閉じる）。640px＝PCで1行に収まる幅 */
.copy_toast[hidden] { display: none; }
@media (max-width: 767px) {
  .copy_line { font-size: 12px !important; }     /* スマホ: 囲みの中が狭いので、1行に収まる大きさに */
}

@media (max-width: 767px) {
  .topbar { padding: 0 12px; gap: 12px; }
  .topbar-logo { font-size: 15px; }
  .topbar-nav { gap: 14px; }
  .topbar-nav a { font-size: 12px; }
}

/* ---------- このページの土台 ---------- */
html { scroll-padding-top: 110px; }                 /* 110px＝上のバー＋タブの高さ。移動先の見出しが隠れない */
main { max-width: 1100px; margin: 0 auto; padding: 0 20px; } /* 1100px＝中身の最大の幅 */
.btn { display: inline-block; padding: 14px 40px; color: #fff; background: #f40d0d; border-radius: 40px; font-weight: 700; transition: opacity .2s; }
.btn:hover { opacity: .7; }                          /* ★文字やボタン：少し薄く */

/* ---------- 大きな写真 ---------- */
.kv {
  display: flex; align-items: center; justify-content: center;
  min-height: 420px; padding: 60px 20px;            /* 420px＝写真の高さ（PC） */
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url(images/kv_bg.jpg) center / cover #333; /* 手の写真（東日本大震災支援・災害ボランティアの手引きと同じ）。.5＝写真を暗くする濃さ */
  color: #fff; text-align: center;
}
.kv-in > * { animation: up .9s ease both; }
.kv-in > :nth-child(2) { animation-delay: .2s; }
.kv-in > :nth-child(3) { animation-delay: .4s; }
@keyframes up { from { opacity: 0; transform: translateY(20px); } }
.kv-en { font-family: "Oswald", sans-serif; font-size: 20px; letter-spacing: .3em; color: #ffb3b3; }
.kv h1 { margin: 10px 0 18px; font-size: 38px; line-height: 1.4; } /* 38px＝ページ名の大きさ */
.kv-text { max-width: 640px; margin: 0 auto; font-size: 15px; }

/* ---------- ページ内タブ ---------- */
.tabs {
  position: sticky; top: 56px; z-index: 9;          /* 56px＝上のバーの高さ。そのすぐ下に止まる */
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 16px; overflow-x: auto; scrollbar-width: none;
  background: #fff; border-bottom: 1px solid #e8e8e8;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex-shrink: 0; padding: 6px 14px; border-radius: 20px; background: #f5f4f2; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.tabs a:hover, .tabs a:active, .tabs a.is-current { background: #f40d0d; color: #fff; }   /* マウスを置いた時・押した時・今いる場所（下の JavaScript が is-current を付ける） */

.notice { margin: 40px 0 0; padding: 14px 18px; background: #fff8e6; border-left: 4px solid #f0b400; font-size: 13px; }

/* ---------- 各ブロック ---------- */
.block { padding: 70px 0 10px; }                    /* 70px＝ブロックの上の余白 */
.block-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid #e8e8e8; }
.block-head .en { color: #f40d0d; font-family: "Oswald", sans-serif; font-size: 14px; letter-spacing: .15em; }
.block-head h2 { margin: 2px 0 10px; font-size: 26px; line-height: 1.4; }
.block-head p:last-child { font-size: 14px; color: #444; }
.block-head a { color: #f40d0d; text-decoration: underline; }
.sub { margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid #f40d0d; font-size: 18px; line-height: 1.4; }

/* リンクのカード */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; } /* 300px＝カードの最小の幅。小さくすると横に多く並ぶ */
.links a {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 14px 40px 14px 16px; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px;
  transition: border-color .2s;
}
.links a::after { content: "↗"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #f40d0d; }
.links .t { font-size: 14px; font-weight: 700; line-height: 1.5; text-underline-offset: 3px; }
.links .d { margin-top: 4px; font-size: 13px; color: #444; }
.links .u { margin-top: 4px; font-size: 11px; color: #999; word-break: break-all; }
.links a:hover { border-color: #f40d0d; }
.links a:hover .t { color: #f40d0d; text-decoration: underline; } /* ★名前：赤＋下線 */
.links.big { margin-bottom: 24px; }
.links .nolink { /* リンクを外したカード（ページが終了したものなど）。名前と内容だけ残す */
  display: flex; flex-direction: column; height: 100%;
  padding: 14px 16px; background: #f7f7f7; border: 1px solid #ececec; border-radius: 6px; color: #888;
}
.links .nolink .t { color: #666; }
.links .nolink .d { color: #888; }
.links .x { align-self: flex-start; margin-top: 6px; padding: 1px 8px; border: 1px solid #ddd; border-radius: 10px; background: #fff; font-size: 11px; color: #888; } /* 「リンクなし」の小さな札 */
.links.big a { background: #fdf3f3; border-color: #f6d0d0; }

/* 都道府県ごとのまとまり */
.pref-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px 10px; }
.pref h3 { margin-bottom: 6px; font-size: 14px; color: #f40d0d; }
.pref .links { grid-template-columns: 1fr; }

/* 社会福祉協議会：地方ごとの県ボタン */
.regions { display: grid; gap: 14px; }
.region { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: #f5f4f2; border-radius: 6px; }
.region h3 { width: 110px; flex-shrink: 0; padding-top: 6px; font-size: 15px; } /* 110px＝地方名の幅 */
.prefs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.prefs a { display: block; padding: 6px 14px; background: #fff; border: 1px solid #e0dcd6; border-radius: 4px; font-size: 14px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.prefs a:hover { background: #f40d0d; border-color: #f40d0d; color: #fff; }

/* 掲載について */
.about { margin: 70px 0 30px; padding: 36px 24px; background: #f5f4f2; border-radius: 6px; text-align: center; font-size: 14px; }
.about p { max-width: 720px; margin: 0 auto 20px; text-align: left; }

@media (max-width: 767px) {
  html { scroll-padding-top: 104px; }
  main { padding: 0 14px; }
  .kv { min-height: 340px; }
  .kv h1 { font-size: 24px; }
  .kv-text { font-size: 13px; text-align: left; }
  .tabs { justify-content: flex-start; }
  .block { padding-top: 50px; }
  .block-head h2 { font-size: 21px; }
  .links, .pref-list { grid-template-columns: 1fr; }
  /* 募金情報（スマホ）: アドレスの行を出さず、2列に。カード1つの高さは、元（1列）より高くしない */
  #donation .links { grid-template-columns: 1fr 1fr; gap: 8px; }
  #donation .links .u { display: none; }
  #donation .links a { padding: 12px 24px 12px 12px; }   /* 24px＝右の「↗」の場所 */
  #donation .links a::after { right: 9px; }
  #donation .links .nolink { padding: 12px; }
  #donation .links .t { font-size: 13px; }
  .region { flex-direction: column; gap: 8px; }
  .region h3 { width: auto; padding: 0; }
  .prefs a { padding: 6px 10px; font-size: 13px; }
}

/* ---------- ★フッター（全ページ共通） ---------- */
.footer { padding: 50px 20px; color: #fff; background: #333; font-size: 14px; text-align: center; line-height: 2; }
.footer a { text-decoration: underline; }
.footer a:hover { opacity: .6; }
@media (max-width: 767px) { .footer { padding: 6vw 20px; font-size: 12px; } }

/* ---------- 上のバー: スマホは右の4つのリンクを「≡」にまとめる（押すと、バーの下に白い一覧） ★全ページ共通 ---------- */
.topbar-menu { display: none; }
@media (max-width: 767px) {
  .topbar-nav { display: none; }
  .topbar-menu {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px;                      /* 44px＝押しやすい大きさ */
    margin-right: -8px; padding: 0 10px;
    border: 0; background: none; cursor: pointer;
  }
  .topbar-menu span { display: block; height: 2px; border-radius: 2px; background: #333; transition: transform .25s, opacity .25s; }
  .topbar.is-open .topbar-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }   /* ≡ → × */
  .topbar.is-open .topbar-menu span:nth-child(2) { opacity: 0; }
  .topbar.is-open .topbar-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar.is-open .topbar-nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 56px; left: 0; right: 0;   /* 56px＝バーの高さ（このすぐ下に出す） */
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }
  .topbar.is-open .topbar-nav a { padding: 16px 20px; font-size: 16px; border-top: 1px solid #f0f0f0; }
  .topbar.is-open::after {                          /* 後ろのページを薄暗く（押すと閉じる） */
    content: ""; position: fixed; top: 56px; right: 0; bottom: 0; left: 0; z-index: -1;
    background: rgba(0,0,0,.35);
  }
}

/* 「別のアドレスへ送る」の下に、小さく「内容をコピー」（2026-10-25） */
.copy_small { display: block; margin-top: 2px; font-size: .82em; }   /* .82em＝「別のアドレスへ送る」の約8割の大きさ */

/* ---------- 一番下のバナー（kingstone-project.jp の全ページでそろえる。2026-10-25） ----------
   1つの幅は 600px（2つ並ぶと 600px×2＋すき間20px＝1220px）。スマホは画面の幅いっぱい */
.bnrs { display: flex; justify-content: center; gap: 20px; max-width: 1220px; margin: 30px auto 0; padding: 0 0 80px; } /* 30px＝上とのすき間 ／ 20px＝バナーとバナーのすき間 */
.bnr { flex: 0 1 600px; margin: 0; }   /* 600px＝バナー1つの幅（2026-10-25 tonozuka.net とそろえる） */
.bnr a { display: block; overflow: hidden; }
.bnr img { width: 100%; height: auto; transition: transform .4s ease; }
.bnr a:hover img { transform: scale(1.04); }      /* ★写真：1.04倍（ほかのページのバナーと同じ） */
@media (max-width: 767px) {
  .bnrs { flex-direction: column; gap: 12px; }
  .bnr { flex: none; }
}
/* 本文の幅が狭いページでも、バナーはほかのページと同じ大きさ（1つ 600px）にする（PCだけ。スマホは今のまま）
   並び全体を 1220px（画面が狭いときは 画面の幅−40px）にして、本文の真ん中にそろえる */
@media (min-width: 768px) {
  .bnrs { width: min(1220px, calc(100vw - 40px)); max-width: none; margin-left: calc(50% - min(610px, 50vw - 20px)); margin-right: 0; } /* 610px＝1220px の半分 ／ 20px＝左右の余白 */
}
