/* ============================================================
   いいコネW活性化協議会 — Design System
   Inherited from: mimizuya.co.jp Corporate Design
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

/* ============================================================
   1. Design Tokens
   ============================================================ */
:root {
  --color-earth-deep:    #3D2E24;
  --color-earth-brown:   #6B5B4E;
  --color-earth-warm:    #9B8A70;
  --color-forest-deep:   #2A5C48;
  --color-forest:        #3D8B6E;
  --color-leaf:          #6BC4A0;
  --color-leaf-light:    #A8E0C8;
  --color-sky:           #A8D4E6;
  --color-sky-light:     #D4EBF3;
  --color-cream:         #FDFBF8;
  --color-cream-dark:    #F5F0E8;
  --color-white:         #FFFFFF;
  --color-black:         #1A1A1A;
  --color-text:          #3D3D3D;
  --color-text-light:    #6B7280;
  --color-text-muted:    #9CA3AF;
  --color-border:        #E8E2D9;
  --color-accent-gold:   #D4B87A;
  --color-accent-sunset: #D4956B;

  --font-heading: 'Noto Serif JP', serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --font-round:   'Zen Maru Gothic', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --container-max: 1000px;
  --container-narrow: 720px;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 3px rgba(61,46,36,0.05);
  --shadow-md:   0 4px 12px rgba(61,46,36,0.06);
  --shadow-lg:   0 10px 30px rgba(61,46,36,0.08);
  --shadow-card: 0 2px 16px rgba(61,46,36,0.05);
  --shadow-card-hover: 0 8px 32px rgba(61,46,36,0.1);

  --ease-out: cubic-bezier(0.25,0.46,0.45,0.94);
  --duration-fast:   200ms;
  --duration-normal: 400ms;
  --duration-slow:   600ms;

  --z-header: 100;
  --z-overlay: 200;
}


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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

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

a {
  color: var(--color-forest);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--color-leaf); }

ul,ol { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-earth-deep);
}


/* ============================================================
   3. Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-24) 0; }
.section--sm { padding: var(--space-16) 0; }
.section--cream { background-color: var(--color-cream); }
.section--white { background-color: var(--color-white); }
.section--forest {
  background-color: var(--color-forest-deep);
  color: var(--color-cream);
}
.section--forest h2,.section--forest h3 { color: var(--color-leaf-light); }


/* ============================================================
   4. Section Headers
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-block;
  font-family: var(--font-round);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-earth-warm);
  margin-bottom: var(--space-4);
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-sky);
  margin: var(--space-3) auto 0;
}

.section-title {
  font-family: var(--font-round);
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-family: var(--font-round);
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
}


/* ============================================================
   5. Header / Navigation
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  padding: var(--space-5) 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.header--transparent { background: transparent; }

/* Sub-pages: non-transparent header from start */
.header:not(.header--transparent) {
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.header:not(.header--transparent) .nav__link { color: var(--color-text); }
.header:not(.header--transparent) .nav__link:hover { color: var(--color-forest); }
.header:not(.header--transparent) .nav__cta {
  border-color: var(--color-forest);
  color: var(--color-forest);
}
.header:not(.header--transparent) .header__logo-img { filter: none; }
.header:not(.header--transparent) .menu-toggle__bar { background: var(--color-earth-deep); }

.header--scrolled {
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo { display: flex; align-items: center; text-decoration: none; }
.header__logo-img {
  height: 32px;
  width: auto;
  transition: filter var(--duration-normal) var(--ease-out);
}
/* Logo always shown as-is (no invert — logo has opaque background) */

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-round);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-leaf);
  transition: width var(--duration-normal) var(--ease-out);
}
.nav__link:hover::after { width: 100%; }

.header--scrolled .nav__link { color: var(--color-text); }
.header--scrolled .nav__link:hover { color: var(--color-forest); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-round);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-6);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-full);
  color: var(--color-white);
  transition: all var(--duration-fast) var(--ease-out);
}
.header--scrolled .nav__cta {
  border-color: var(--color-forest);
  color: var(--color-forest);
}
.nav__cta:hover {
  background: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: calc(var(--z-overlay) + 1);
}

.menu-toggle__bar {
  width: 24px; height: 2px;
  background: var(--color-white);
  transition: all var(--duration-normal) var(--ease-out);
  border-radius: 2px;
}
.header--scrolled .menu-toggle__bar { background: var(--color-earth-deep); }

.menu-toggle--active .menu-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle--active .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle--active .menu-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(44,24,16,0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.nav-overlay--visible { display: block; opacity: 1; }


/* ============================================================
   6. Hero Section (Top page)
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img { width:100%; height:100%; object-fit:cover; }

.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(42,92,72,0.35) 0%, rgba(61,46,36,0.55) 100%);
}

.hero__content {
  text-align: center;
  color: var(--color-white);
  max-width: 700px;
  padding: var(--space-8);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  opacity: 0.8;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-round);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-family: var(--font-round);
  font-size: var(--text-xl);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: var(--space-8);
}

.hero__desc {
  font-size: var(--text-base);
  line-height: 2;
  opacity: 0.85;
  font-weight: 300;
}


/* ============================================================
   7. Page Hero (Sub-pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--space-24) + 80px) 0 var(--space-20);
  background: linear-gradient(135deg, var(--color-forest-deep) 0%, var(--color-earth-brown) 80%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,0.1), transparent 70%);
}

.page-hero__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  color: var(--color-leaf-light);
  margin-bottom: var(--space-4);
}

.page-hero__title {
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}


/* ============================================================
   8. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-round);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}
.btn--primary:hover {
  background: var(--color-forest-deep);
  border-color: var(--color-forest-deep);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}
.btn--outline:hover {
  background: var(--color-forest);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-forest-deep);
  border-color: var(--color-white);
}
.btn--white:hover {
  background: transparent;
  color: var(--color-white);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}


/* ============================================================
   9. Content Components
   ============================================================ */

/* --- Article Block (image + text) --- */
.article-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.article-block--reverse .article-block__image { order: 2; }
.article-block--reverse .article-block__body  { order: 1; }

.article-block__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-block__body h3 {
  font-family: var(--font-round);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.article-block__body p {
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
  line-height: 2;
}

.article-block__body ul {
  margin-bottom: var(--space-6);
}

.article-block__body li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  color: var(--color-text);
}

.article-block__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-leaf);
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: var(--text-sm);
}

.info-table th {
  font-weight: 600;
  color: var(--color-earth-deep);
  width: 140px;
  white-space: nowrap;
  vertical-align: top;
}

.info-table td {
  color: var(--color-text);
}

.info-table td a {
  color: var(--color-forest);
}

/* --- News Table --- */
.news-table {
  width: 100%;
  border-collapse: collapse;
}

.news-table th,
.news-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.news-table th {
  font-weight: 600;
  color: var(--color-earth-deep);
  font-size: var(--text-sm);
  width: 160px;
  white-space: nowrap;
}

/* --- Card --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card__image { width:100%; height:200px; object-fit:cover; }
.card__body { padding: var(--space-6) var(--space-8); }
.card__title {
  font-family: var(--font-round);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.card__text {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}


/* --- Gallery Grid (report photos) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* --- Report Entry --- */
.report-entry {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}
.report-entry:last-child { border-bottom: none; }

.report-entry__date {
  font-family: var(--font-round);
  font-size: var(--text-sm);
  color: var(--color-earth-warm);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.report-entry__title {
  font-family: var(--font-round);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.report-entry__meta {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.report-entry__text {
  line-height: 2;
  margin-bottom: var(--space-6);
}

/* --- Report Category Header --- */
.report-category {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding: var(--space-4) var(--space-6);
  background: var(--color-cream-dark);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-forest);
}

.report-category__title {
  font-family: var(--font-round);
  font-size: var(--text-xl);
  font-weight: 700;
}


/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-20) 0;
  background: var(--color-forest-deep);
  color: var(--color-cream);
}

.cta-section h2 {
  font-family: var(--font-round);
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
}

.cta-section .btn { margin: 0 var(--space-2); }


/* ============================================================
   10. Footer
   ============================================================ */
.footer {
  background: var(--color-cream-dark);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__inner {
  text-align: center;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  margin: 0 auto var(--space-6);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.footer__links a {
  color: var(--color-text-light);
  padding: var(--space-1) var(--space-3);
}
.footer__links a:hover { color: var(--color-forest); }

.footer__separator { color: var(--color-border); }

.footer__org {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: var(--space-6);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.footer__legal {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
}

.footer__legal a {
  color: var(--color-text-muted);
}
.footer__legal a:hover { color: var(--color-forest); }


/* ============================================================
   11. Scroll Animations
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   12. Responsive
   ============================================================ */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: var(--color-white);
    padding: var(--space-24) var(--space-8) var(--space-8);
    box-shadow: var(--shadow-xl);
    z-index: calc(var(--z-overlay) + 1);
    transition: right var(--duration-normal) var(--ease-out);
    gap: var(--space-4);
  }
  .nav--open { right: 0; }

  .nav__link {
    color: var(--color-text);
    font-size: var(--text-base);
    padding: var(--space-3) 0;
  }

  .nav__cta {
    color: var(--color-forest);
    border-color: var(--color-forest);
    width: 100%;
    justify-content: center;
    padding: var(--space-3);
  }

  .hero__title { font-size: var(--text-3xl); }
  .hero__subtitle { font-size: var(--text-base); }
  .hero { min-height: 50vh; }

  .page-hero { padding: calc(var(--space-16) + 60px) 0 var(--space-12); }
  .page-hero__title { font-size: var(--text-3xl); }

  .section-title { font-size: var(--text-2xl); }
  .section { padding: var(--space-16) 0; }

  .article-block {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .article-block--reverse .article-block__image { order: 0; }
  .article-block--reverse .article-block__body  { order: 0; }

  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: var(--space-2) 0;
  }
  .info-table th { border-bottom: none; padding-bottom: 0; }

  .cta-section h2 { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  .hero__title { font-size: var(--text-2xl); }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .btn--lg { padding: var(--space-3) var(--space-6); font-size: var(--text-sm); }
}
