@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

/* ─── Design Tokens ─────────────────────────────── */
:root {
  --ink:        #1c1917;
  --ink-light:  #3c3632;
  --page:       #f9f6f1;
  --page-alt:   #f2ede5;
  --amber:      #c9860a;
  --amber-pale: #fdf3dc;
  --brick:      #a63d2f;
  --rule:       #d6cfc4;
  --white:      #ffffff;

  /* ─── Guild Brand Colors ─── */
  --guild-earth:   #9B6B3A;
  --guild-sky:     #99E6FE;
  --guild-mint:    #89FF9E;
  /* 横ボーダー用: 土→葉→空（左から右） */
  --guild-flame-h: linear-gradient(90deg, var(--guild-earth) 0%, var(--guild-mint) 55%, var(--guild-sky) 100%);
  /* 縦グラデーション用: 土→葉→空（下から上） */
  --guild-flame-v: linear-gradient(to top, var(--guild-earth) 0%, var(--guild-mint) 55%, var(--guild-sky) 100%);

  --serif: 'Noto Serif JP', 'Georgia', serif;
  --sans:  'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─────────────────────────────────────── */
.container {
  width: min(92%, 1080px);
  margin: 0 auto;
}
.narrow {
  width: min(92%, 780px);
  margin: 0 auto;
}

/* ─── Header ─────────────────────────────────────── */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid transparent;
  border-image: var(--guild-flame-h) 1;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.site-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav a:hover {
  color: var(--white);
  border-bottom-color: var(--amber);
}

/* ─── Page Hero (standard) ───────────────────────── */
.page-hero {
  padding: 96px 0 80px;
  text-align: center;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 炎の立ち上がり: 土(下)→葉緑(中)→空(上) */
    linear-gradient(to top,
      rgba(155,107,58,0.30) 0%,
      rgba(137,255,158,0.10) 45%,
      rgba(153,230,254,0.08) 100%),
    /* 中央の炎コア */
    radial-gradient(ellipse 50% 70% at 50% 110%, rgba(155,107,58,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
}
.page-hero h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--white);
}
.lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
}

/* ─── Index Hero (with background image) ─────────── */
.hero-bg {
  padding: 100px 0 80px;
  background-image:
    linear-gradient(
      to bottom,
      rgba(28,25,23,0.85) 0%,
      rgba(28,25,23,0.75) 50%,
      rgba(28,25,23,0.85) 100%
    ),
    url('../images/白米千米田.jpg');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}
.hero-bg::before { display: none; }

/* ─── Hero 2-column inner layout ─────────────────── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4%;
}
.hero-text { position: relative; z-index: 1; }
.hero-image { display: none; }

@media (min-width: 900px) {
  .hero-bg { padding: 120px 0 100px; }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 5%;
  }
  .hero-image {
    display: block;
  }
  .hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    opacity: 0.88;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  }
  .hero-text .lead { margin: 0; }
}

/* ─── About Hero ─────────────────────────────────── */
.hero-about {
  background-image:
    linear-gradient(
      to bottom,
      rgba(28,25,23,0.72) 0%,
      rgba(28,25,23,0.52) 50%,
      rgba(28,25,23,0.72) 100%
    ),
    url('../images/photos/IMG_4514.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero-about::before { display: none; }

.hero-bg .eyebrow { color: var(--amber); }

.hero-bg h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
}
.hero-bg .lead {
  color: rgba(255,255,255,0.8);
  font-size: 1.08rem;
}

/* ─── Sections ───────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--page-alt);
}
.section h2 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 3px solid transparent;
  border-image: var(--guild-flame-h) 1;
  display: inline-block;
}
.section h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

/* ─── Cards ──────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28,25,23,0.1);
}
.card p {
  margin-bottom: 0;
  color: var(--ink-light);
  font-size: 0.97rem;
  line-height: 1.85;
}

/* ─── Card Label ─────────────────────────────────── */
.card-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
  background: var(--amber-pale);
  border: 1px solid rgba(201,134,10,0.25);
  border-radius: 2px;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-top: 20px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  background: #a86e07;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

/* ─── Info Box ───────────────────────────────────── */
.info-box {
  background: var(--white);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  color: var(--ink-light);
}
.info-box p + p { margin-top: 14px; }

/* ─── Donate Box ─────────────────────────────────── */
.donate-box {
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 20px;
  background: var(--amber-pale);
  border: 1px solid rgba(201,134,10,0.3);
}
.note-box {
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-top: 16px;
  background: var(--page-alt);
  border: 1px solid var(--rule);
  color: var(--ink-light);
  font-size: 0.92rem;
}

/* ─── Info Table ─────────────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.97rem;
}
.info-table th,
.info-table td {
  border: 1px solid var(--rule);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 26%;
  background: var(--page-alt);
  font-weight: 700;
  color: var(--ink);
}
.info-table td { background: var(--white); }

/* ─── Damage Gallery ─────────────────────────────── */
.damage-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.damage-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.damage-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s var(--ease);
}
.damage-item:hover img { filter: grayscale(0%); }
.damage-item figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink-light);
  border-top: 1px solid var(--rule);
}

/* ─── Reports ────────────────────────────────────── */
.report-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.report-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
}
.report-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: var(--serif);
}
.report-date {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.04em;
}

/* ─── Misc ───────────────────────────────────────── */
.center { text-align: center; }
.section p + p { margin-top: 16px; }

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  padding: 36px 0;
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  border-top: 3px solid transparent;
  border-image: var(--guild-flame-h) 1;
}
.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ─── Page Load Animation ────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-hero .eyebrow { animation: fadeUp 0.6s var(--ease) both; }
.page-hero h1       { animation: fadeUp 0.6s 0.1s var(--ease) both; }
.page-hero .lead    { animation: fadeUp 0.6s 0.2s var(--ease) both; }
.page-hero .center  { animation: fadeUp 0.6s 0.3s var(--ease) both; }

/* ─── Hamburger Menu ─────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Accordion Card ─────────────────────────────── */
.card.accordion-card { cursor: pointer; position: relative; }
.accordion-card .card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}
.accordion-card.is-open .card-body {
  max-height: 400px;
  opacity: 1;
}
.accordion-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--amber);
  line-height: 1;
  pointer-events: none;
}

/* ─── CTA Section ────────────────────────────────── */
.section-cta {
  padding: 96px 0;
  background: var(--ink);
  text-align: center;
}
.section-cta h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  border-bottom: none;
  display: block;
  padding-bottom: 0;
  border-image: none;
}
.section-cta p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.9;
}
.section-cta .btn {
  margin-top: 32px;
  padding: 16px 44px;
  font-size: 1rem;
}

/* ─── Accordion: PC では常時展開 ─────────────────── */
@media (min-width: 769px) {
  .card.accordion-card { cursor: default; }
  .accordion-card .card-body {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
  .accordion-toggle { display: none; }
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
    min-height: auto;
  }
  .site-nav ul { flex-wrap: wrap; justify-content: center; }
  .card-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 0;
    min-height: 60px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 99;
    padding: 8px 0 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .site-nav a:hover { border-left-color: var(--amber); }
}
@media (max-width: 700px) {
  .damage-gallery { grid-template-columns: 1fr; }
  .damage-item img { height: auto; }
  .hero-bg { padding: 100px 0 80px; }
}
@media (max-width: 600px) {
  .page-hero { padding: 72px 0 60px; }
  .section   { padding: 56px 0; }
  .section-cta { padding: 72px 0; }
}
