/* NPO法人 防災レジリエンス二輪協会 — STUDIO 版の見た目に合わせた静的サイト */
:root {
  --ink: #1e1e1e;
  --text: #333;
  --bg: #f7f7f7;
  --card: #fff;
  --rail: #1e1e1e;
  --accent: #f25f5f;
  --navy: #1a5999;
  --sage: #b9c9bc;
  --rail-w: 40px;
  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mincho: "Zen Antique", "Yu Mincho", serif;
  --num: "Rubik", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* 左右の黒い帯と縦書きの文字 */
.rail {
  position: fixed; top: 0; bottom: 0; width: var(--rail-w);
  background: var(--rail); z-index: 20;
  display: flex; align-items: center; justify-content: center;
}
.rail--left { left: 0; }
.rail--right { right: 0; }
.rail p {
  margin: 0; color: #fff; font-family: var(--mincho); font-size: 16px;
  letter-spacing: 0.15em; writing-mode: vertical-rl;
}
.page { margin: 0 var(--rail-w); }

/* ヘッダー */
.header { background: var(--card); padding: 22px 24px 0; text-align: center; }
.header__logo { width: 300px; margin: 0 auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; padding: 32px 0 30px; }
.nav a { font-size: 16px; font-weight: 500; letter-spacing: 0.1em; }
.nav a:hover { color: var(--accent); }

.hero { background: var(--card); padding: 0 40px; }
.hero img { width: 100%; height: 864px; object-fit: cover; }

/* 各節 */
.section { background: var(--bg); padding: 70px 24px; }
.section--white { background: var(--card); }
.inner { position: relative; max-width: 900px; margin: 0 auto; }
.card { background: var(--card); max-width: 900px; margin: 0 auto; padding: 60px 0; position: relative; }
.label {
  position: absolute; left: 0; top: 0;
  writing-mode: vertical-rl; font-size: 16px; font-weight: 700; letter-spacing: 0.3em;
  padding-left: 10px; border-left: 2px solid var(--ink);
}
.card .label { left: 0; top: 60px; }
.body { margin-left: 125px; }
.body p { margin: 0; font-size: 16px; line-height: 1.9; }

/* ご挨拶 */
.body .message__sign { text-align: right; margin: 40px 0 60px; }
.message__sign small { font-size: 15px; letter-spacing: 0.19em; margin-right: 24px; }
.message__sign span { font-family: var(--mincho); font-size: 20px; letter-spacing: 0.4em; }
.message__photo { width: 775px; max-width: 100%; margin: 0 auto; }

.band { height: 416px; background: url(img/band.webp) center / cover no-repeat; }

/* 活動概要 */
.work { display: grid; grid-template-columns: 1fr 354px; gap: 40px; margin-top: 80px; }
.work__num { font-family: var(--num); font-size: 28px; font-weight: 500; color: var(--accent); line-height: 1.4; }
.work__title { font-size: 28px; font-weight: 500; letter-spacing: 0.1em; margin: 0 0 24px; line-height: 1.6; }
.work__text { font-size: 14px; line-height: 2; margin: 0; }
.work__photo { width: 100%; height: 420px; object-fit: cover; }
.btn {
  display: block; width: 220px; margin-top: 18px; padding: 8px 0; text-align: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; border-radius: 6px;
}
.btn:hover { opacity: 0.85; }
.work--wide { display: block; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 24px; }
.thumbs img { width: 100%; height: 160px; object-fit: cover; }

/* 図(地図・ライセンス) */
.figure { max-width: 900px; margin: 0 auto; }
.figure--small { max-width: 627px; margin-top: 30px; }

/* 実績・協定 */
.list { list-style: none; margin: 0; padding: 0; }
.list li { font-size: 15px; font-weight: 500; line-height: 1.9; margin-bottom: 26px; }
.note { font-size: 13px; margin: -10px 0 40px; }
.works-photos img { width: 559px; max-width: 100%; }
.works-photos img + img { width: 282px; }

/* NEWS */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ccc; }
.news li { border-bottom: 1px solid #ccc; }
.news a { display: grid; grid-template-columns: 230px 1fr; gap: 26px; padding: 32px 0; align-items: center; }
.news img { width: 230px; height: 121px; object-fit: cover; }
.news time { font-family: var(--num); font-size: 11px; letter-spacing: 0.1em; }
.news h3 { font-size: 17px; font-weight: 500; letter-spacing: 0.1em; margin: 4px 0 6px; }
.news p { font-size: 12px; margin: 0; line-height: 1.7; }
.more {
  display: block; width: 140px; margin: 40px auto 0; padding: 8px 0; text-align: center;
  border: 1px solid var(--ink); border-radius: 128px; font-family: var(--num);
}

/* 協会情報 */
.company { display: grid; grid-template-columns: 1fr 270px; gap: 40px; align-items: center; }
.company dl { margin: 0; }
.company div { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid #ddd; }
.company dt { font-size: 12px; font-weight: 500; }
.company dd { margin: 0; font-size: 14px; line-height: 1.7; }

/* お問い合わせ */
#contact { padding-bottom: 0; }
.contact { background: var(--sage); max-width: 1008px; margin: 0 auto; border-radius: 12px 12px 0 0; padding: 60px 24px 30px; }
.contact h2 { text-align: center; font-size: 32px; font-weight: 500; letter-spacing: 0.1em; margin: 0 0 30px; }
.form { max-width: 560px; margin: 0 auto; }
.form label { display: block; font-weight: 700; margin-top: 26px; }
.form .req { background: var(--navy); color: #fff; font-size: 12px; font-weight: 400; padding: 1px 6px; margin-left: 8px; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px; border: 0; background: #fff; font: inherit;
}
.form textarea { height: 280px; resize: vertical; }
.form__note { text-align: center; font-size: 12px; margin: 30px 0 16px; line-height: 1.8; }
.form button {
  display: block; width: 200px; margin: 0 auto; padding: 12px 0; border: 0; border-radius: 40px;
  background: var(--navy); color: #fff; font: 700 24px/1 var(--jp); letter-spacing: 0.1em; cursor: pointer;
}

.form button:disabled { opacity: 0.6; cursor: wait; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { text-align: center; font-size: 14px; font-weight: 700; min-height: 1.5em; margin: 16px 0 0; }
.form__status[data-state="error"] { color: #b3261e; }

.footer { background: #000; padding: 120px 24px; }
.footer img { width: 425px; margin: 0 auto; }

/* 下層ページ(災害時偵察とは・平常時調査とは) */
.detail { background: #fff; padding: 80px 40px 100px; min-height: 100vh; }
.detail__head { text-align: center; margin-bottom: 70px; }
.detail__head h1 { font-size: 48px; font-weight: 700; letter-spacing: 0.08em; margin: 0 0 24px; line-height: 1.4; }
.detail__head p { font-size: 20px; font-weight: 500; line-height: 1.75; margin: 0; }
.detail__grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 50px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; align-items: start; }
.dcard { background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12); padding: 24px 18px 18px; }
.dcard h2 { font-size: 20px; font-weight: 700; line-height: 1.5; margin: 0 0 8px; }
.dcard p { font-size: 12px; line-height: 1.4; margin: 0 0 14px; }
.dcard img { width: 100%; }
.dcard .photo { aspect-ratio: 3 / 2; object-fit: cover; }
.boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.boxes div {
  background: #e9535e; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.5; text-align: center;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1.6 / 1; padding: 4px;
}
.detail__text .quote { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Zen Antique", serif; font-size: 23px; font-weight: 700; line-height: 1.8; margin: 0 0 24px; }
.detail__text p { font-size: 15px; line-height: 1.75; margin: 0 0 24px; }
.detail__photo { width: 100%; aspect-ratio: 527 / 357; object-fit: cover; margin-top: 30px; }

/* お知らせ */
.article { background: var(--card); padding: 70px 24px 120px; }
.article__inner { max-width: 700px; margin: 0 auto; }
.article__label { text-align: center; font-size: 22px; letter-spacing: 0.05em; margin: 0; }
.article__date { display: block; text-align: center; font-family: var(--num); font-size: 12px; color: #686868; letter-spacing: 0.1em; margin-top: 8px; }
.article__thumb { width: 460px; max-width: 100%; margin: 50px auto 60px; }
.article h1 { font-size: 28px; font-weight: 900; letter-spacing: 0.08em; line-height: 1.6; margin: 0 0 50px; }
.article p { font-size: 15px; line-height: 1.9; margin: 0 0 16px; }
.article p a { color: var(--navy); text-decoration: underline; word-break: break-all; }
.back {
  display: block; width: 120px; margin: 60px auto 0; padding: 6px 0; text-align: center;
  border: 1px solid var(--ink); border-radius: 128px; font-family: var(--num);
}

/* スマホ */
@media (max-width: 768px) {
  :root { --rail-w: 22px; }
  .rail p { font-size: 11px; }
  .header__logo { width: 220px; }
  .nav { gap: 2px 18px; padding: 20px 0; }
  .nav a { font-size: 13px; }
  .section { padding: 50px 16px; }
  .card { padding: 40px 16px; }
  .label, .card .label { position: static; writing-mode: horizontal-tb; border-left: 0; border-bottom: 2px solid var(--ink); padding: 0 0 4px; display: inline-block; margin-bottom: 24px; }
  .body { margin-left: 0; }
  .hero { padding: 0; }
  .hero img { height: auto; }
  .band { height: 220px; }
  .work { grid-template-columns: 1fr; margin-top: 50px; }
  .work__title { font-size: 22px; }
  .work__photo { height: 260px; }
  .thumbs img { height: 90px; }
  .news a { grid-template-columns: 110px 1fr; gap: 14px; padding: 20px 0; }
  .news img { width: 110px; height: 58px; }
  .company { grid-template-columns: 1fr; }
  .company img { width: 160px; margin: 0 auto; }
  .contact h2 { font-size: 24px; }
  .footer { padding: 60px 16px; }
  .footer img { width: 220px; }
  .detail { padding: 50px 16px 70px; }
  .detail__head { margin-bottom: 40px; }
  .detail__head h1 { font-size: 30px; }
  .detail__head p { font-size: 15px; text-align: left; }
  .detail__head p br { display: none; }
  .detail__grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; gap: 24px; }
  .dcard p { font-size: 13px; }
  .boxes div { font-size: 12px; }
  .detail__text .quote { font-size: 19px; }
  .article { padding: 50px 16px 80px; }
  .article__thumb { width: 260px; margin: 30px auto 40px; }
  .article h1 { font-size: 21px; margin-bottom: 30px; }
}
