/* =============================================
   chylim_mockup — ページ固有スタイル
   @import 'style.css' を別途読み込むこと
============================================= */

/* ===== HERO ===== */
  .hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--green-dark);
  }

  /* スライドショーコンテナ */
  .hero-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  /* 各スライド */
  .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* クロスフェード + ケンバーンズ */
    animation: slideShow var(--slide-total, 24s) infinite;
  }

  /* スライドのdelay・background-imageはJSが動的に設定 */

  /* フェードイン → 表示 → フェードアウト → 待機 の1サイクル(24s中6s表示) */
  /* @keyframes slideShow はJSが枚数に応じて動的に生成・注入 */

  /* グラデーションオーバーレイ（共通） */
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(26,58,42,0.85) 0%,
      rgba(45,106,79,0.55) 50%,
      rgba(26,58,42,0.72) 100%
    );
    z-index: 1;
  }

  /* インジケーター */
  .hero-indicators {
    position: absolute;
    bottom: 96px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
  }
  .hero-indicator {
    width: 3px;
    height: 32px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s;
  }
  .hero-indicator.active { background: rgba(255,255,255,0.4); }
  .hero-indicator-fill {
    width: 100%;
    height: 0%;
    background: var(--green-light);
    border-radius: 2px;
    transition: height 0.1s linear;
  }
  .hero-indicator.active .hero-indicator-fill {
    animation: indicatorFill 6s linear forwards;
  }
  @keyframes indicatorFill {
    from { height: 0%; }
    to   { height: 100%; }
  }

  /* 地形ライン装飾 */
  .hero-lines {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(116,198,157,1) 60px,
      rgba(116,198,157,1) 62px
    );
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(116,198,157,0.2);
    border: 1px solid var(--green-light);
    color: var(--green-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease both;
  }

  .hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green-light);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:0.5; transform:scale(1.4); }
  }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(64px, 12vw, 130px);
    color: var(--white);
    line-height: 0.9;
    letter-spacing: 6px;
    animation: fadeInUp 0.7s 0.1s ease both;
  }

  .hero-title span {
    display: block;
    color: var(--green-light);
  }

  .hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,0.8);
    margin-top: 20px;
    font-weight: 400;
    line-height: 1.7;
    max-width: 460px;
    animation: fadeInUp 0.8s 0.2s ease both;
  }

  .hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s 0.3s ease both;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(244,162,97,0.4);
  }
  .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(244,162,97,0.5);
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s;
  }
  .btn-outline:hover {
    border-color: var(--green-light);
    background: rgba(116,198,157,0.15);
  }

  .hero-stats {
    position: absolute;
    bottom: 48px;
    left: 32px;
    right: 32px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    animation: fadeInUp 1s 0.5s ease both;
    z-index: 2;
  }

  .hero-stat {
    text-align: left;
  }

  .hero-stat-num {
    font-family: var(--font-display);
    font-size: 38px;
    color: var(--green-light);
    line-height: 1;
    letter-spacing: 2px;
  }

  .hero-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    margin-top: 4px;
  }

  .hero-scroll {
    position: absolute;
    bottom: 28px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    letter-spacing: 2px;
    z-index: 2;
  }
  .hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(116,198,157,0.8), transparent);
    animation: scrollLine 2s infinite;
  }
  @keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ===== NEWS TICKER ===== */
  .news-bar {
    background: var(--green-mid);
    padding: 10px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
  }

  .news-label {
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
  }

  .news-ticker-wrap {
    overflow: hidden;
    flex: 1;
  }

  .news-ticker {
    display: flex;
    gap: 60px;
    animation: ticker 22s linear infinite;
    white-space: nowrap;
    padding-left: 32px;
  }

  .news-ticker a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
  }
  .news-ticker a:hover { color: var(--green-pale); }

  .news-all-link {
    flex-shrink: 0;
    white-space: nowrap;
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 4px 16px 4px 12px;
    border-left: 1px solid rgba(255,255,255,0.25);
    transition: color 0.2s;
  }
  .news-all-link:hover { color: var(--green-pale); }

  @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

/* ===== EVENT CARDS ===== */
  .events-section {
    background: var(--gray-light);
    padding: 80px 24px;
  }

  .events-inner {
    max-width: 1100px;
    margin: 0 auto;
  }

  .events-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
  }

  .filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 2px solid var(--green-main);
    background: transparent;
    color: var(--green-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
  }
  .filter-btn.active,
  .filter-btn:hover {
    background: var(--green-main);
    color: white;
  }

  .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    /* フィルター用 */
    transform-origin: top center;
    animation: cardIn 0.35s ease both;
  }

  @keyframes cardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
  }

  .event-card.is-hidden {
    display: none;
  }

  .event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(45,106,79,0.18);
  }

  .event-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1;
  }
  .event-card-badge {
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
  }
  
  .event-card-badge-tag {
	background: rgba(26, 58, 42, 0.65) !important;
	border: 1px solid rgba(116, 198, 157, 0.4);
　　}

  .event-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: linear-gradient(135deg, var(--green-mid), var(--green-main));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
  }

  .event-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    min-height: 160px;
  }

  /* 写真背景 */
  .event-card-img-placeholder .card-photo {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
  }
  .event-card:hover .card-photo { transform: scale(1.07); }

  /* グラデーションオーバーレイ */
  .event-card-img-placeholder .card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.08) 0%,
      rgba(26,58,42,0.55) 70%,
      rgba(26,58,42,0.82) 100%
    );
  }

  /* カード内タイトルラベル */
  .event-card-img-placeholder .img-label {
    position: absolute;
    bottom: 14px; left: 16px;
    font-family: var(--font-display);
    font-size: 22px;
    color: rgba(255,255,255,0.92);
    letter-spacing: 3px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 1;
  }

  /* 各カードの写真URL */
  .img-p1 .card-photo { background-image: url('https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?w=800&q=80'); }
  .img-p2 .card-photo { background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&q=80'); }
  .img-p3 .card-photo { background-image: url('https://images.unsplash.com/photo-1522383225653-ed111181a951?w=800&q=80'); }

  .event-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .event-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--green-main);
    font-weight: 600;
    margin-bottom: 8px;
  }

  .event-card-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--green-dark);
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .event-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .event-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-mid);
  }

  .event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
  }

  .event-difficulty {
    display: flex;
    gap: 3px;
  }

  .diff-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
  }
  .diff-dot.filled { background: var(--green-main); }

  .event-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-dark);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
  }
  .event-link:hover { background: var(--green-main); }

  .events-more {
    text-align: center;
    margin-top: 44px;
  }

  /* ===== VOLUNTEER ===== */
  .volunteer-section {
    background: var(--green-dark);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
  }

  .volunteer-section::before {
    content: 'VOLUNTEER';
    position: absolute;
    font-family: var(--font-display);
    font-size: 180px;
    color: rgba(255,255,255,0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    letter-spacing: 10px;
    pointer-events: none;
  }

  .volunteer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .volunteer-label {
    font-family: var(--font-sub);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--green-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
  }

  .volunteer-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 60px);
    color: white;
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }

  .volunteer-text {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 32px;
  }

  .volunteer-img {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-light) 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
  }

  .volunteer-img-inner {
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=800&q=80') center/cover;
    opacity: 0.8;
  }

  .volunteer-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,106,79,0.4), transparent);
  }

  /* ===== MEMBER ===== */
  .member-section {
    background: var(--green-pale);
    padding: 80px 24px;
  }

  .member-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: center;
  }

  .member-card-visual {
    background: var(--green-dark);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
  }

  .member-card-visual::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(116,198,157,0.15);
  }

  .member-card-chip {
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 20px;
  }

  .member-card-num {
    font-family: var(--font-display);
    font-size: 52px;
    color: white;
    letter-spacing: 6px;
    margin-bottom: 8px;
  }

  .member-card-name {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 24px;
  }

  .member-card-points {
    display: flex;
    gap: 6px;
    align-items: baseline;
    margin-bottom: 24px;
  }

  .member-card-points span:first-child {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--green-light);
  }

  .member-card-points span:last-child {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
  }

  .member-card-bar {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
  }

  .member-card-bar-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(to right, var(--green-light), var(--accent));
    border-radius: 2px;
  }

  .member-benefits {
    margin-top: 24px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .member-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .benefit-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 2px;
  }

  .benefit-content p {
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.6;
  }

/* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .volunteer-inner { grid-template-columns: 1fr; }
    .volunteer-img { display: none; }
    .member-inner { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 600px) {
    .events-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 28px; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-outline { justify-content: center; }
    .member-inner { gap: 32px; }
  }

  /* SWELL CSS注記 */
  .swell-note {
    background: #fffbf0;
    border-left: 4px solid var(--accent);
    padding: 14px 20px;
    font-size: 12px;
    color: #888;
    line-height: 1.7;
    max-width: 1100px;
    margin: 0 auto 0;
    padding: 16px 32px;
  }


  @media (max-width: 480px) {
    .event-cards { grid-template-columns: 1fr !important; }
    .filter-btns { gap: 6px; }
    .filter-btn { font-size: 11px; padding: 6px 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
  }


  /* Twemoji SVG画像スタイル */
  img.emoji {
    height: 1.1em;
    width: 1.1em;
    vertical-align: -0.15em;
    display: inline-block;
  }
