/* =============================================
   SCCH Hiroshima — Modern CSS
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #222;
  background: #fff;
}

a {
  color: #222;
  text-decoration: none;
}

a:hover {
  color: #FF9933;
  text-decoration: underline;
}

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

/* =============================================
   Hero split (index only)
   ============================================= */

.hero-split {
  display: flex;
  min-height: 460px;
  background: #111;
}

.hero-image {
  flex: 0 0 60%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-info {
  flex: 0 0 40%;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px;
  color: #fff;
}

.hero-event-label {
  font-size: 16px;
  letter-spacing: 0.15em;
  color: #FF9933;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-year {
  font-size: 108px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
}

.hero-date {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.hero-date span {
  font-size: 16px;
  font-weight: normal;
  color: #aaa;
}

.hero-venue {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-result-link {
  display: inline-block;
  font-size: 14px;
  color: #FF9933;
  border: 1px solid #FF9933;
  padding: 8px 18px;
  border-radius: 3px;
  transition: all 0.15s;
  align-self: flex-start;
}

.hero-result-link:hover {
  background: #FF9933;
  color: #fff;
  text-decoration: none;
}

/* =============================================
   Header (inner pages)
   ============================================= */

.site-header {
  background: #111;
}

.site-header img {
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .hero-split {
    flex-direction: column;
    min-height: auto;
  }

  .hero-image {
    flex: none;
    height: 200px;
  }

  .hero-info {
    flex: none;
    padding: 20px;
  }

  .hero-year {
    font-size: 48px;
  }
}

/* =============================================
   Navigation
   ============================================= */

nav {
  background: #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
}

nav ul li a {
  display: block;
  padding: 11px 16px;
  color: #bbb;
  font-size: 13.5px;
  transition: color 0.15s, background 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #FF9933;
  background: rgba(255, 153, 51, 0.1);
  text-decoration: none;
}

/* =============================================
   Main layout
   ============================================= */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* =============================================
   Home: top section
   ============================================= */

.home-top {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
}

.home-top .photos {
  flex: 0 0 210px;
}

.home-top .photos img {
  width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.home-top .news {
  flex: 1;
  min-width: 0;
}

/* =============================================
   Notice / Alert
   ============================================= */

.notice {
  background: #fff8f0;
  border-left: 4px solid #FF9933;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: bold;
}

/* =============================================
   Results block
   ============================================= */

.results {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 2;
}

.results h3 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #444;
}

.results .rank-1 {
  font-weight: bold;
  font-size: 16px;
  color: #c00;
}

/* =============================================
   News list (small gray text)
   ============================================= */

.news-log {
  list-style: none;
  font-size: 13.5px;
  color: #777;
  margin-bottom: 20px;
  border-top: 1px solid #f0f0f0;
}

.news-log li {
  padding: 6px 0 6px 14px;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.news-log li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #ccc;
}

/* =============================================
   Meta (since / counter / last update)
   ============================================= */

.meta-bar {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

.mail-note {
  font-size: 13px;
  color: #cc0000;
  margin-bottom: 12px;
  line-height: 1.7;
}

.mail-note a {
  color: #7733aa;
  font-weight: bold;
  font-size: 15px;
}

.mail-note a:hover {
  color: #FF9933;
}

/* =============================================
   Section headings
   ============================================= */

.section-title {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  border-bottom: 2px solid #FF9933;
  padding-bottom: 6px;
  margin-bottom: 18px;
  margin-top: 36px;
}

/* =============================================
   Year navigation
   ============================================= */

.year-nav {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 8px;
}

.year-nav a {
  display: inline-block;
  padding: 4px 11px;
  margin: 3px 2px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
  color: #444;
  transition: all 0.15s;
}

.year-nav a:hover {
  background: #FF9933;
  border-color: #FF9933;
  color: #fff;
  text-decoration: none;
}

/* =============================================
   Document links
   ============================================= */

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  margin-top: 12px;
}

.doc-links a {
  display: inline-block;
  padding: 5px 13px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  color: #444;
  transition: all 0.15s;
}

.doc-links a:hover {
  background: #FF9933;
  border-color: #FF9933;
  color: #fff;
  text-decoration: none;
}

/* =============================================
   Activity page
   ============================================= */

.activity-list {
  list-style: none;
  margin-bottom: 36px;
}

.activity-list li {
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.activity-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #FF9933;
  font-size: 10px;
  top: 17px;
}

.address-box {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 14px;
  color: #555;
}

/* =============================================
   History page
   ============================================= */

.history-list {
  list-style: none;
}

.history-list li {
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  position: relative;
  line-height: 1.6;
}

.history-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #ccc;
}

.history-list a {
  color: #1a5299;
}

.history-list a:hover {
  color: #FF9933;
}

/* =============================================
   Mail page
   ============================================= */

.mail-wrapper {
  max-width: 580px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.mail-desc {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.8;
}

/* =============================================
   Footer
   ============================================= */

footer {
  background: #1a1a2e;
  color: #777;
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
}

footer img {
  margin: 0 auto 14px;
  opacity: 0.7;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 640px) {
  .home-top {
    flex-direction: column;
  }

  .home-top .photos {
    flex: none;
    display: flex;
    gap: 10px;
  }

  .home-top .photos img {
    flex: 1;
    margin-bottom: 0;
  }

  nav ul li a {
    padding: 9px 11px;
    font-size: 13px;
  }

  .notice {
    font-size: 14px;
  }
}
