/* ============================================
   岡崎西高校同窓会 — style.css
   Design System: Quiet Nostalgia
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@700;900&family=Noto+Sans+JP:wght@300;400&family=Shippori+Mincho&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #FAFAF7;
  --bg-secondary: #EDEEF0;
  --text-primary: #1E2D42;
  --text-secondary: #5A6270;
  --navy: #1A3358;
  --navy-light: #2B4A7A;
  --accent-warm: #B56B3A;
  --accent-warm-soft: #C89068;
  --line: #D0D2D4;
  --line-green: #06C755;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--navy-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
}

h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 1.8rem; margin-bottom: 24px; }
h3 { font-size: 1.3rem; margin-bottom: 16px; }

p {
  margin-bottom: 1em;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--navy);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo {
  height: 36px;
  width: auto;
  display: inline-block;
}

.site-name:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-list a {
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.nav-list a:hover {
  opacity: 0.85;
  text-decoration: none;
}

.nav-list a.current {
  border-bottom: 2px solid var(--accent-warm);
  padding-bottom: 2px;
}

/* Hamburger (CSS-only) */
.hamburger-toggle {
  display: none;
}

.hamburger-label {
  display: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 110;
}

.hamburger-label span,
.hamburger-label span::before,
.hamburger-label span::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 22px;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger-label span {
  left: 13px;
  top: 22px;
}

.hamburger-label span::before,
.hamburger-label span::after {
  left: 0;
}

.hamburger-label span::before {
  content: '';
  top: -8px;
}

.hamburger-label span::after {
  content: '';
  top: 8px;
}

/* Hamburger open state */
.hamburger-toggle:checked ~ .hamburger-label span {
  background: transparent;
}

.hamburger-toggle:checked ~ .hamburger-label span::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger-toggle:checked ~ .hamburger-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

.hamburger-toggle:checked ~ nav {
  transform: translateX(0);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 24px;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner .footer-name {
  color: #fff;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-inner a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-inner .copyright {
  margin-top: 16px;
  font-size: 0.8rem;
}

/* ============================================
   Content Area
   ============================================ */
.content-area {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main {
  flex: 1;
}

/* ============================================
   Page Header (content pages)
   ============================================ */
.page-header {
  background: var(--bg-secondary);
  padding: 64px 0 48px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header .page-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   Section
   ============================================ */
.section {
  padding: 80px 0;
}

.section--secondary {
  background: var(--bg-secondary);
}

.section-title-wrapper {
  margin-bottom: 40px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
  line-height: 1.5;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent-warm);
  color: #fff;
}

.btn--secondary {
  background: var(--navy);
  color: #fff;
}

.btn--line {
  background: #06C755;
  color: #fff;
  font-weight: 400;
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

/* ============================================
   Text Link
   ============================================ */
.text-link {
  color: var(--navy-light);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.text-link:hover {
  text-decoration: underline;
}

.section-more {
  margin-top: 32px;
  text-align: right;
}

/* ============================================
   Blockquote
   ============================================ */
blockquote {
  border-left: 3px solid var(--accent-warm);
  padding-left: 24px;
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-primary);
  margin: 24px 0;
}

blockquote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: normal;
}

/* ============================================
   News List
   ============================================ */
.news-list {
  border-top: 1px solid var(--line);
}

.news-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

a.news-item:hover {
  text-decoration: none;
}

a.news-item:hover .news-item__title {
  color: var(--navy-light);
}

.news-item__date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.news-item__title {
  font-weight: 400;
  color: var(--text-primary);
  transition: color 0.2s;
}

/* ============================================
   Event Block
   ============================================ */
.event-block {
  border-left: 3px solid var(--navy);
  padding: 24px;
  margin-bottom: 32px;
}

.event-block--past {
  border-left-color: var(--line);
}

.event-block__title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.event-block__meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.event-block__desc {
  margin-bottom: 16px;
}

/* ============================================
   Definition List (Organization Info)
   ============================================ */
.dl-table {
  border-top: 1px solid var(--line);
}

.dl-table dt {
  font-weight: 400;
  color: var(--text-secondary);
  padding-top: 16px;
  font-size: 0.9rem;
}

.dl-table dd {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* ============================================
   Timeline (History)
   ============================================ */
.timeline-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item__year {
  color: var(--text-secondary);
  font-weight: 400;
  min-width: 80px;
  flex-shrink: 0;
}

.timeline-item__content {
  color: var(--text-primary);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 300;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--navy-light);
}

.breadcrumb .separator {
  margin: 0 8px;
}

.breadcrumb .current {
  color: var(--text-primary);
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.form-input,
.form-select {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--navy-light);
  outline: none;
}

.form-select {
  appearance: auto;
}

/* ============================================
   Calculator Result
   ============================================ */
.calc-result {
  text-align: center;
  padding: 32px;
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.calc-result.is-active {
  color: var(--navy);
}

.calc-result__number {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--navy);
  display: inline;
}

.calc-result__cta {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.calc-result__btn {
  margin-top: 12px;
  display: inline-block;
}

/* ============================================
   LINE Registration Section
   ============================================ */
.line-section {
  text-align: center;
}

.line-steps {
  text-align: left;
  display: inline-block;
  margin: 24px auto;
}

.line-steps li {
  padding: 4px 0;
  position: relative;
  padding-left: 28px;
}

.line-steps li::before {
  position: absolute;
  left: 0;
  font-weight: 400;
}

.line-steps li:first-child::before { content: '\2460'; }
.line-steps li:nth-child(2)::before { content: '\2461'; }
.line-steps li:nth-child(3)::before { content: '\2462'; }

.qr-code {
  width: 180px;
  height: auto;
  margin: 24px auto;
}

/* ============================================
   Hero Section (Top Page)
   ============================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../assets/hero-school.jpg') center / cover no-repeat;
  overflow: hidden;
}

/* Dark overlay for readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 45, 66, 0.65);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}

.hero-catchcopy {
  font-family: 'Shippori Mincho', serif;
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
}

.hero-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Staggered reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-reveal {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.stagger-reveal:nth-child(1) { animation-delay: 0.1s; }
.stagger-reveal:nth-child(2) { animation-delay: 0.2s; }
.stagger-reveal:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   Article (News Detail)
   ============================================ */
.article-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  line-height: 2;
}

.article-body h2 {
  margin-top: 40px;
}

.article-body p {
  margin-bottom: 1.5em;
}

.back-link {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* ============================================
   Responsive — Tablet (481px - 840px)
   ============================================ */
@media (max-width: 840px) {
  h1 { font-size: 2.2rem; }

  .section {
    padding: 56px 0;
  }

  .hero-catchcopy {
    font-size: 2.6rem;
  }
}

/* ============================================
   Responsive — Mobile (480px and below)
   ============================================ */
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .content-area {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-catchcopy {
    font-size: 1.6rem;
  }

  /* Hamburger visible */
  .hamburger-label {
    display: block;
    margin-left: auto;
  }

  /* nav要素をfixedにしてflex layoutから外す */
  .site-header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--navy);
    z-index: 105;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .nav-list {
    flex-direction: column;
    padding: 80px 24px 40px;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 48px;
  }

  .page-header {
    padding: 40px 0 32px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 4px;
  }

  .dl-table dt {
    padding-top: 12px;
  }

  .dl-table dd {
    padding-bottom: 12px;
  }

  .calc-result__number {
    font-size: 2.4rem;
  }
}

/* ============================================
   Overlay for hamburger menu
   ============================================ */
.nav-overlay {
  display: none;
}

@media (max-width: 480px) {
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 102;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .hamburger-toggle:checked ~ .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================
   SEO: Footer supplementary text
   ============================================ */
.footer-seo {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
