/* ==========================================================================
   函館ラ・サール中学校ラグビー部 — 応援・寄付サイト
   Implementation of "Rugby Club HP.dc.html" (Claude Design canvas)
   ========================================================================== */

:root {
  --red:        #B71C24;
  --red-dark:   #8E1219;
  --red-bright: #C0242C;
  --red-mid:    #A3161E;
  --red-pale:   #FBEAEA;
  --red-tint:   #F0A9AD;
  --sand:       #F4F1EA;
  --sand-deep:  #EDE8DF;
  --ink:        #23252B;
  --text:       #222;
  --text-soft:  #444;
  --text-mute:  #555;
  --footer-link:#C9CBD2;
  --shell:      1120px;
  --sans: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color .18s, background-color .18s; }
a:hover { color: var(--red-dark); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; }

.shell { max-width: var(--shell); margin: 0 auto; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #fff; color: var(--red); font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 6px 6px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* --- Section heading (red rule under the title) ------------------------- */
.sec-title { font-size: 32px; font-weight: 900; letter-spacing: .06em; color: var(--red); }
.sec-rule  { width: 44px; height: 4px; background: var(--red); margin: 16px 0 28px; }
.sec-title--center { text-align: center; }
.sec-rule--center  { margin-left: auto; margin-right: auto; }
.on-red .sec-title { color: #fff; }
.on-red .sec-rule  { background: #fff; }

/* --- Photo slots -------------------------------------------------------- */
/* Each slot renders its image when the file exists; otherwise the caption
   below stays visible so the slot reads as "photo goes here". */
.photo { position: absolute; inset: 0; overflow: hidden; background: #3A3F38; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo img[hidden] { display: none; }
.photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #4A4F47 0%, #33372F 100%);
}
.photo.is-filled::before, .photo.is-filled .photo__hint { display: none; }
.photo__hint {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 16px 20px; text-align: right;
  color: rgba(255,255,255,.6); font-size: 12px; font-weight: 500; line-height: 1.8;
}
.photo--rounded { border-radius: 6px; }

/* --- アイコン（Material Symbols） --------------------------------------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  /* フォント未読込時に名前が見えてしまうのを防ぐ */
  font-family: 'Material Symbols Outlined', monospace;
}
.mi {
  display: block; margin: 0 auto;
  color: var(--red); line-height: 1;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  user-select: none;
}
.mi--lg { font-size: 72px; }
.mi--md { font-size: 56px; }
.mi--sm { font-size: 40px; margin: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch;
  height: 72px;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; min-width: 0;
  padding: 0 52px 0 24px;
  background: var(--red); color: #fff;
  font-weight: 900; font-size: 16px; line-height: 1.35;
  clip-path: polygon(0 0, 100% 0, calc(100% - 36px) 100%, 0 100%);
}
.brand:hover { color: #fff; }

/* ヘッダー・フッター共通の紋章 */
.brand__mark {
  flex-shrink: 0;
  width: 40px; height: 40px;
  object-fit: contain;
}
.brand__mark--sm { width: 36px; height: 36px; }

.site-nav {
  display: flex; align-items: center; gap: 18px;
  margin-left: auto; padding: 0 16px;
  font-size: 14px; font-weight: 500;
}
.site-nav a { color: #fff; white-space: nowrap; }
.site-nav a:hover { color: var(--red-tint); }

.header-cta { display: flex; align-items: center; padding: 0 20px 0 4px; flex-shrink: 0; }

.btn-donate {
  display: inline-block;
  background: var(--red); color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: 6px; white-space: nowrap;
}
.btn-donate:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 60px; border: 0; background: none; color: #fff;
  font-size: 22px; cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: 640px; overflow: hidden; background: #3A3F38; }
.hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    rgba(140,10,18,.92) 0%, rgba(155,17,25,.82) 30%,
    rgba(155,17,25,.35) 48%, rgba(0,0,0,0) 62%);
}
.hero__wedge {
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%;
  pointer-events: none; opacity: .55;
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red-dark) 100%);
  clip-path: polygon(0 0, 72% 0, 100% 100%, 0 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--shell); margin: 0 auto;
  padding: 72px 40px 0;
  pointer-events: none;
}
.hero__badge {
  display: inline-block;
  background: #fff; color: var(--red);
  font-weight: 900; font-size: 22px; letter-spacing: .04em;
  padding: 9px 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.hero__title {
  margin-top: 28px;
  color: #fff; font-family: var(--serif); font-weight: 800;
  font-size: 72px; line-height: 1.32; letter-spacing: .05em;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.hero__meta {
  margin-top: 30px;
  color: #fff; font-size: 20px; font-weight: 700; line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero__brush { margin-top: 22px; display: block; }

/* ==========================================================================
   Shared two-column section layout
   ========================================================================== */
.section { padding: 88px 40px; }
.section--sand { background: var(--sand); }

.split {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px;
  align-items: start;
}
.split--wide  { grid-template-columns: 380px 1fr; align-items: center; }
.lead { font-size: 15px; line-height: 2.1; color: #333; }
.on-red .lead { color: var(--red-pale); }

/* --- 私たちの想い : three value cards ----------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: #fff; padding: 40px 26px; text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.value-card svg, .value-card .mi { display: block; margin: 0 auto; }
.value-card h3 { margin: 22px 0 14px; color: var(--red); font-size: 17px; font-weight: 900; }
.value-card p  { font-size: 14px; line-height: 1.9; color: var(--text-soft); }

/* ==========================================================================
   応援・寄付のお願い
   ========================================================================== */
.section--donate {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--red-bright) 0%, var(--red-mid) 55%, var(--red-dark) 100%);
}
.section--donate .split { position: relative; }
.donate-diamond {
  position: absolute; top: -60px; right: -80px;
  width: 420px; height: 420px; pointer-events: none;
  background: rgba(255,255,255,.05);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.btn-donate-lg {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; color: var(--red);
  font-weight: 900; font-size: 17px;
  padding: 20px 28px; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btn-donate-lg:hover { background: var(--red-pale); color: var(--red-dark); }

.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.use-card {
  background: #fff; border-radius: 8px; padding: 30px 18px; text-align: center;
}
.use-card svg, .use-card .mi { display: block; margin: 0 auto; }
.use-card h3 { margin: 16px 0 10px; color: var(--red); font-size: 15px; font-weight: 900; }
.use-card p  { font-size: 12.5px; line-height: 1.8; color: var(--text-soft); }
.use-note { margin-top: 22px; color: var(--red-pale); font-size: 13px; }

/* ==========================================================================
   ご寄付の方法
   ========================================================================== */
.pay-intro {
  margin-bottom: 44px; text-align: center;
  font-size: 15px; line-height: 2.1; color: var(--text-soft);
}

.pay-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  align-items: stretch;
}

.pay-card {
  display: flex; flex-direction: column;
  background: #fff; padding: 40px 34px;
  border-top: 4px solid #D8D2C6;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.pay-card--primary { border-top-color: var(--red); }

.pay-card__label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: #9A958B;
}
.pay-card--primary .pay-card__label { color: var(--red); }

.pay-card__title {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 0 18px;
  color: var(--red); font-size: 21px; font-weight: 900; letter-spacing: .02em;
}
.pay-card__title svg, .pay-card__title .mi { flex-shrink: 0; color: inherit; }

.pay-card__body { font-size: 14px; line-height: 2; color: var(--text-soft); }

.pay-card__note {
  margin-top: 14px;
  font-size: 12px; line-height: 1.8; color: #8A857C;
}

.btn-square {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: auto; padding: 20px 28px;
  background: var(--red); color: #fff;
  font-weight: 900; font-size: 17px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(183,28,36,.3);
}
.btn-square:hover { background: var(--red-dark); color: #fff; }
.pay-card--primary .pay-card__body { margin-bottom: 28px; }

/* --- Bank account table ------------------------------------------------- */
.bank {
  margin: 20px 0 0;
  border-top: 1px solid #EDE8DF;
  font-size: 14px;
}
.bank__row {
  display: grid; grid-template-columns: 116px 1fr; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #EDE8DF;
}
.bank dt { color: var(--text-mute); font-size: 12.5px; font-weight: 700; padding-top: 2px; }
.bank dd { margin: 0; font-weight: 700; line-height: 1.7; }
.bank__number { font-size: 17px; letter-spacing: .06em; }

.btn-copy {
  align-self: flex-start; margin-top: 20px;
  padding: 11px 20px;
  background: none; border: 2px solid var(--red); border-radius: 6px;
  color: var(--red); font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.btn-copy:hover { background: var(--red); color: #fff; }
.btn-copy.is-copied { background: var(--red); color: #fff; border-color: var(--red); }

.pay-outro {
  margin-top: 28px; text-align: center;
  font-size: 13px; color: var(--text-mute);
}

.pay-receipt {
  margin-top: 10px; text-align: center;
  font-size: 13px; color: var(--text-mute);
}
.pay-receipt a { font-weight: 700; border-bottom: 1px solid currentColor; }

/* ==========================================================================
   全国大会について
   ========================================================================== */
.event-name { margin-bottom: 24px; font-size: 17px; font-weight: 700; line-height: 1.9; }
.event-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.event-row:last-of-type { margin-bottom: 24px; }
.event-label {
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700; padding: 6px 14px; white-space: nowrap;
}
.event-value { font-size: 15px; font-weight: 700; line-height: 1.7; }
.event-value small { display: block; font-size: 14px; font-weight: 500; color: var(--text-mute); }
.event-body { margin-bottom: 20px; font-size: 14px; line-height: 2; color: var(--text-soft); }
.link-ext {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--red);
  border-bottom: 2px solid var(--red); padding-bottom: 3px;
}
.link-ext:hover { color: var(--red-dark); border-bottom-color: var(--red-dark); }

.event-photo { position: relative; height: 340px; }
/* キャプションを読みやすくするための、下方向のかげ */
.event-photo .photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top,
    rgba(0,0,0,.8) 0%, rgba(0,0,0,.62) 26%, rgba(0,0,0,.3) 52%, rgba(0,0,0,0) 82%);
}
.event-photo__caption {
  position: absolute; left: 36px; bottom: 44px; pointer-events: none;
  color: #fff; font-family: var(--serif); font-weight: 800;
  font-size: 30px; line-height: 1.7; letter-spacing: .08em;
  text-shadow: 0 3px 16px rgba(0,0,0,.6);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { background: var(--sand-deep); position: relative; overflow: hidden; }
.cta__grid {
  display: grid; grid-template-columns: 300px 1fr 300px;
  align-items: stretch; min-height: 320px;
}
.cta__side { position: relative; }
.cta__clip { position: absolute; inset: 0; }
.cta__clip--left  { clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%); }
.cta__clip--right { clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); }
.cta__body {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 56px 24px; text-align: center;
}
.cta__body h2 { font-size: 30px; font-weight: 900; letter-spacing: .04em; }
.cta__body p  { font-size: 14px; color: var(--text-mute); }
.btn-donate-xl {
  display: inline-flex; align-items: center; gap: 40px; margin-top: 10px;
  background: var(--red); color: #fff;
  font-weight: 900; font-size: 17px;
  padding: 18px 44px; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(183,28,36,.35);
}
.btn-donate-xl:hover { background: var(--red-dark); color: #fff; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-shell { max-width: 840px; margin: 0 auto; }
.faq-shell .sec-title { text-align: center; }
.faq-shell .sec-rule  { margin: 16px auto 40px; }

.faq-item { background: #fff; margin-bottom: 14px; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.faq-q {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 22px 26px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 15.5px; font-weight: 700; color: var(--text);
}
.faq-q__marker { color: var(--red); font-weight: 900; font-size: 18px; }
.faq-q__text   { flex: 1; }
.faq-q__sign   { color: var(--red); font-size: 20px; font-weight: 400; }
.faq-a[hidden] { display: none; }
.faq-a {
  display: flex; gap: 16px;
  padding: 0 26px 24px;
  border-top: 1px solid #F0EBE2;
}
.faq-a__marker { color: #8A8A8A; font-weight: 900; font-size: 18px; padding-top: 16px; }
.faq-a p { padding-top: 18px; font-size: 14px; line-height: 2; color: var(--text-soft); flex: 1; }

/* ==========================================================================
   フォーム（領収書の発行依頼）
   ========================================================================== */
.form-shell { max-width: 720px; margin: 0 auto; }

.crumb {
  margin-bottom: 32px;
  font-size: 12.5px; color: var(--text-mute);
}
.crumb span { margin: 0 8px; color: #B5AFA3; }

.form {
  margin-top: 8px;
  background: #fff; padding: 40px 38px;
  border-top: 4px solid var(--red);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.field { margin-bottom: 26px; }
.field--set { border: 0; padding: 0; margin-inline: 0; }

.field__label {
  display: block; margin-bottom: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
}
.req {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 3px;
}

.field__input {
  display: block; width: 100%;
  padding: 13px 14px;
  background: #FBFAF7;
  border: 1px solid #DDD7CB; border-radius: 5px;
  font-family: inherit; font-size: 15px; color: var(--text);
  transition: border-color .18s, background-color .18s;
}
.field__input:hover { border-color: #C6BFB0; }
.field__input:focus {
  outline: none; background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(183,28,36,.12);
}
textarea.field__input { resize: vertical; line-height: 1.8; }

.field__help { margin-top: 7px; font-size: 12px; line-height: 1.7; color: #8A857C; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-row .field { margin-bottom: 26px; }

.radio {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid #DDD7CB; border-radius: 5px;
  font-size: 14.5px; cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.radio:hover { border-color: var(--red); background: #FDF7F7; }
.radio input { accent-color: var(--red); width: 18px; height: 18px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--red); background: #FDF7F7; }

.btn-submit {
  display: block; width: 100%; margin-top: 34px;
  padding: 19px 28px;
  background: var(--red); color: #fff;
  border: 0; border-radius: 8px;
  font-family: inherit; font-size: 17px; font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(183,28,36,.3);
  transition: background-color .18s;
}
.btn-submit:hover { background: var(--red-dark); }

.form-note { margin-top: 18px; font-size: 12px; line-height: 1.8; color: #8A857C; text-align: center; }

/* ハニーポット：人には見せない */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-errors {
  margin-bottom: 24px; padding: 20px 24px;
  background: #FDECEC; border-left: 4px solid var(--red);
  border-radius: 0 5px 5px 0;
}
.form-errors__title { font-size: 14px; font-weight: 900; color: var(--red); margin-bottom: 8px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li { font-size: 13.5px; line-height: 1.9; color: #7A2226; }

.form-done {
  background: #fff; padding: 48px 38px; text-align: center;
  border-top: 4px solid var(--red);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.form-done p { font-size: 15px; line-height: 2.1; color: var(--text-soft); }
.form-done__note { margin-top: 16px; font-size: 12.5px; color: #8A857C; }
.form-done .btn-square { display: inline-flex; margin-top: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #fff; padding: 48px 40px 32px; }
.site-footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 15px; line-height: 1.4; }
.site-footer__brand .brand__mark { width: 36px; height: 36px; }
.site-footer nav { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.site-footer nav a { color: var(--footer-link); }
.site-footer nav a:hover { color: #fff; }
.site-footer__copy {
  max-width: var(--shell); margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; color: #8B8E97; text-align: center;
}

/* ==========================================================================
   Responsive — the canvas is a 1080px desktop comp; these steps carry the
   same layout down to phones.
   ========================================================================== */
@media (max-width: 1240px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .site-nav {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0; margin: 0;
    background: var(--ink);
    box-shadow: 0 10px 20px rgba(0,0,0,.3);
  }
  .site-header.is-open .site-nav a { padding: 14px 24px; }
  .header-cta { display: none; }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 64px 24px; }
  .split, .split--wide { grid-template-columns: 1fr; gap: 36px; }
  .value-grid { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 520px; }
  .hero__inner { padding: 56px 24px 64px; }
  .hero__title { font-size: 46px; }
  .hero__badge { font-size: 17px; }
  .hero__meta { font-size: 17px; }
  .cta__grid { grid-template-columns: 1fr; }
  .cta__side { height: 180px; }
  .cta__clip--left, .cta__clip--right { clip-path: none; }
  .cta__body h2 { font-size: 23px; }
  .pay-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand { min-width: 0; padding: 0 40px 0 16px; font-size: 13px; }
  .brand__mark { width: 32px; height: 32px; }
  .hero__title { font-size: 34px; }
  .hero__badge { font-size: 15px; padding: 8px 16px; }
  .sec-title { font-size: 25px; }
  .use-grid { grid-template-columns: 1fr; }
  .mi--lg { font-size: 60px; }
  .mi--sm { font-size: 34px; }
  .event-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .event-photo { height: 240px; }
  .event-photo__caption { left: 20px; bottom: 24px; font-size: 21px; }
  .form { padding: 28px 20px; }
  .form-done { padding: 36px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .pay-card { padding: 30px 20px; }
  .pay-card__title { font-size: 18px; gap: 10px; }
  .bank__row { grid-template-columns: 1fr; gap: 4px; }
  .faq-q { padding: 18px 16px; font-size: 14.5px; gap: 10px; }
  .faq-a { padding: 0 16px 20px; }
  .site-footer { padding: 36px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
