/* ui_kits/website/kit.css — こそあつ Website UI Kit styles
   (colors / tokens come from ../../colors_and_type.css) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-fg2);
  background: var(--color-bg);
  line-height: var(--lh-base);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== Nav ===== */
.k-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,249,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--color-primary);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.k-nav-logo {
  font-family: var(--font-round);
  font-size: 1.3rem; font-weight: 900;
  color: var(--color-primary); letter-spacing: var(--letter-logo);
}
.k-nav-links { display: flex; gap: 24px; list-style: none; }
.k-nav-links a {
  font-size: 0.9rem; font-weight: 700; color: var(--color-fg5);
  transition: color var(--dur-fast); position: relative;
}
.k-nav-links a::after {
  content:''; position:absolute; bottom:-3px; left:0; right:0; height:2px;
  background: var(--color-primary); transform: scaleX(0);
  transition: transform var(--dur-fast);
}
.k-nav-links a:hover, .k-nav-links a.is-active { color: var(--color-primary); }
.k-nav-links a:hover::after, .k-nav-links a.is-active::after { transform: scaleX(1); }

/* ===== Buttons ===== */
.k-btn {
  display: inline-block; background: var(--color-primary); color: #fff;
  font-size: 1rem; font-weight: 700; padding: 14px 36px;
  border-radius: var(--r-pill); border: none; cursor: pointer;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: var(--sh-btn); font-family: inherit; text-align: center;
}
.k-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-btn-hover); }
.k-btn.is-outline {
  background: transparent; border: 2px solid var(--color-primary);
  color: var(--color-primary); box-shadow: none;
}
.k-btn.is-outline:hover { background: var(--color-primary-50); transform: none; box-shadow: none; }
.k-btn.is-green { background: var(--color-accent); box-shadow: var(--sh-btn-green); }
.k-btn.is-green:hover { box-shadow: var(--sh-btn-green-hover); }

/* ===== Section / layout ===== */
.k-section { padding: var(--sp-20) 24px; }
.k-container { max-width: var(--container-max); margin: 0 auto; }
.k-eyebrow {
  font-size: var(--fs-label); font-weight: var(--fw-bold);
  color: var(--color-primary); letter-spacing: var(--letter-label);
  text-transform: uppercase; text-align: center; margin-bottom: 8px;
}
.k-title {
  font-family: var(--font-round);
  font-size: var(--fs-h2); font-weight: var(--fw-heavy);
  text-align: center; color: var(--color-fg1); margin-bottom: 12px;
}
.k-divider-bar {
  width: 48px; height: 4px; background: var(--color-primary);
  border-radius: 2px; margin: 12px auto 32px;
}
.k-desc { text-align: center; color: var(--color-fg4); font-size: 1rem; max-width: 600px; margin: 0 auto 48px; }

/* ===== Hero ===== */
.k-hero {
  min-height: 80vh; background: var(--grad-hero);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px; position: relative; overflow: hidden;
}
.k-hero::before, .k-hero::after { content:''; position:absolute; border-radius:50%; opacity:.18; }
.k-hero::before { width: 500px; height: 500px; background: var(--color-primary); top: -150px; left: -150px; }
.k-hero::after { width: 350px; height: 350px; background: var(--color-accent); bottom: -100px; right: -80px; }
.k-hero-content { position: relative; z-index: 1; max-width: 720px; }
.k-hero-badge {
  display: inline-block; background: var(--color-primary); color: #fff;
  font-size: 0.8rem; font-weight: 700; padding: 4px 16px;
  border-radius: var(--r-pill); margin-bottom: 20px; letter-spacing: 0.08em;
}
.k-hero h1 {
  font-family: var(--font-round); font-weight: var(--fw-black);
  font-size: var(--fs-display); color: var(--color-primary);
  line-height: 1.15; margin-bottom: 12px;
}
.k-hero-sub { font-size: clamp(0.95rem, 2.5vw, 1.15rem); color: var(--color-fg5); margin-bottom: 8px; font-weight: 500; }
.k-hero-catch { font-size: clamp(1rem, 2.8vw, 1.25rem); color: var(--color-accent); font-weight: 700; margin-bottom: 36px; }
.k-hero-tags { display:flex; flex-wrap:wrap; gap: 10px; justify-content:center; margin-bottom: 36px; }

/* ===== Tags ===== */
.k-tag {
  background: #fff; border: 2px solid var(--color-primary);
  color: var(--color-primary); border-radius: var(--r-pill);
  padding: 6px 18px; font-size: 0.88rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}

/* ===== Value / card ===== */
.k-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.k-value {
  background: var(--color-bg); border: 2px solid var(--color-border);
  border-radius: var(--r-xl); padding: 28px 22px; text-align: center;
  transition: transform var(--dur-fast), border-color var(--dur-fast);
  cursor: default;
}
.k-value:hover { transform: translateY(-4px); border-color: var(--color-primary); }
.k-value .icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.k-value h3 { font-size: 1rem; font-weight: var(--fw-bold); color: var(--color-fg1); margin-bottom: 8px; }
.k-value p { font-size: 0.88rem; color: var(--color-fg4); line-height: 1.7; }

/* ===== Activity card ===== */
.k-activity {
  background: var(--grad-warm); border-radius: var(--r-xl);
  padding: 32px 24px; border-left: 5px solid var(--color-primary);
  transition: transform var(--dur-fast);
}
.k-activity:hover { transform: translateY(-4px); }
.k-activity h3 { font-size: 1.1rem; font-weight: var(--fw-heavy); color: var(--color-primary); margin-bottom: 10px; }
.k-activity p { font-size: 0.92rem; color: var(--color-fg3); line-height: 1.75; }

/* ===== For-who pill card ===== */
.k-forwho {
  background: #fff; border-radius: var(--r-lg); padding: 28px 20px;
  text-align: center; box-shadow: var(--sh-card);
}
.k-forwho .icon { font-size: 2.8rem; margin-bottom: 12px; display: block; }
.k-forwho p { font-size: 0.95rem; font-weight: 600; color: var(--color-fg2); }

/* ===== Event Box ===== */
.k-event {
  margin-top: 48px; background: var(--grad-green);
  border: 2px solid var(--color-accent); border-radius: var(--r-xl);
  padding: 32px 28px; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.k-event h3 { font-size: 1.1rem; font-weight: var(--fw-heavy); color: var(--color-accent-deep); margin-bottom: 8px; }
.k-event .meta { font-size: 0.92rem; color: var(--color-fg2); line-height: 1.9; }
.k-event .meta span { font-weight: 700; color: var(--color-accent-deep); }

/* ===== Representative ===== */
.k-rep-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.k-rep-avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--grad-avatar);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; flex-shrink: 0; border: 4px solid var(--color-primary);
}
.k-rep-body { flex: 1; min-width: 260px; }
.k-rep-name { font-family: var(--font-round); font-size: 2rem; font-weight: var(--fw-black); color: var(--color-fg1); margin-bottom: 4px; }
.k-rep-name small { font-size: 1rem; color: var(--color-fg4); font-weight: 500; margin-left: 8px; }
.k-rep-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.k-rep-role {
  background: var(--color-primary-100); color: var(--color-primary-deep);
  font-size: 0.82rem; font-weight: 700; padding: 4px 14px; border-radius: var(--r-pill);
}
.k-rep-body p { font-size: 0.97rem; color: var(--color-fg3); line-height: 1.85; margin-bottom: 16px; }
.k-rep-goal {
  background: var(--color-primary-50); border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 14px 18px;
  font-size: 0.95rem; font-weight: 700; color: var(--color-fg2);
}

/* ===== Contact ===== */
.k-contact-wrap { background: var(--grad-contact); }
.k-contact-box {
  background: #fff; border-radius: var(--r-2xl); padding: 48px 40px;
  max-width: 600px; margin: 0 auto; box-shadow: var(--sh-float); text-align: center;
}
.k-contact-email {
  display: inline-block; font-size: 1.05rem; font-weight: 700;
  color: var(--color-primary); background: var(--color-primary-50);
  padding: 12px 28px; border-radius: var(--r-pill); margin: 20px 0;
  border: 2px solid var(--color-primary); transition: background var(--dur-fast);
}
.k-contact-email:hover { background: var(--color-primary-100); }
.k-register {
  margin-top: 32px; background: var(--color-accent-50);
  border: 2px solid var(--color-accent); border-radius: var(--r-lg);
  padding: 22px 24px; text-align: left;
}
.k-register h3 { font-size: 1rem; font-weight: var(--fw-heavy); color: var(--color-accent-deep); margin-bottom: 10px; }
.k-register ol { padding-left: 20px; font-size: 0.9rem; color: var(--color-fg2); line-height: 1.9; }

/* ===== Form ===== */
.k-form { text-align: left; margin-top: 16px; }
.k-field { margin-bottom: 14px; }
.k-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--color-fg2); margin-bottom: 6px; }
.k-field input, .k-field textarea {
  width: 100%; padding: 12px 14px; font-size: 0.95rem;
  border: 2px solid var(--color-border); border-radius: var(--r-md);
  background: var(--color-bg); font-family: inherit; color: var(--color-fg1);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.k-field input:focus, .k-field textarea:focus {
  outline: none; border-color: var(--color-primary); background: #fff;
}

/* ===== Footer ===== */
.k-footer {
  background: var(--color-bg-dark); color: #d0d0d0; text-align: center;
  padding: 0 0 36px; font-size: 0.88rem;
}
.k-footer-logo {
  font-family: var(--font-round); font-size: 1.4rem; font-weight: var(--fw-black);
  color: var(--color-primary); margin-bottom: 8px;
}
.k-footer p { line-height: 2; color: #d0d0d0; }
.k-footer a { color: var(--color-primary); }

/* ===== Toast (fake confirmation) ===== */
.k-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--color-accent-deep); color: #fff;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(46,125,50,0.35);
  transition: transform var(--dur-med) var(--ease-out);
  z-index: 200; pointer-events: none;
}
.k-toast.is-show { transform: translateX(-50%) translateY(0); }

/* ===== Modal ===== */
.k-modal-backdrop {
  position: fixed; inset: 0; background: rgba(58,58,58,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 150; padding: 20px;
  backdrop-filter: blur(2px);
}
.k-modal {
  background: #fff; border-radius: var(--r-2xl); padding: 36px 32px;
  max-width: 460px; width: 100%; box-shadow: var(--sh-float);
  text-align: center;
}
.k-modal h3 { font-family: var(--font-round); font-size: 1.4rem; font-weight: var(--fw-heavy); color: var(--color-fg1); margin-bottom: 8px; }
.k-modal p { font-size: 0.95rem; color: var(--color-fg3); margin-bottom: 18px; line-height: 1.75; }
.k-modal .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Wide modal for embedded Google Form */
.k-modal-wide {
  max-width: 640px; position: relative;
  max-height: 88vh; overflow-y: auto;
}
.k-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--color-primary-50); color: var(--color-primary-deep);
  font-size: 0.95rem; font-weight: 700; line-height: 1;
  transition: background var(--dur-fast);
}
.k-modal-close:hover { background: var(--color-primary-100); }

/* Google Form iframe wrapper */
.k-form-embed {
  border-radius: var(--r-md); overflow: hidden;
  background: #fff; border: 2px solid var(--color-border);
}
.k-form-embed iframe { display: block; width: 100%; }



/* ============================================
   Mobile / Tablet responsive overrides
   ============================================ */

/* Tablet (~960px and below) */
@media (max-width: 960px) {
  /* Hero: 2-col → 1-col, recenter */
  .k-hero { min-height: auto; padding: 48px 20px 56px !important; }
  .k-hero-content {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
    max-width: 560px !important;
  }
  .k-hero-content > div:first-child {
    display: flex; flex-direction: column; align-items: center;
  }
  .k-hero-content h1, .k-hero-content .k-hero-sub,
  .k-hero-content .k-hero-catch { text-align: center !important; }
  .k-hero-content .k-hero-tags { justify-content: center !important; }
  .k-hero-content > div:last-child { order: -1; max-width: 480px; margin: 0 auto; }
  .k-hero-content img[alt="こそあつ"] { width: 96px !important; height: 96px !important; }

  /* About / Activities / Hiroba 2-col → 1-col */
  #about > div > div[style*="grid-template-columns"],
  #activities > div > div[style*="grid-template-columns"],
  #hiroba > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Representative: stack image + body */
  .k-rep-inner { flex-direction: column; gap: 24px !important; align-items: stretch; }
  .k-rep-inner > div:first-child { width: 100% !important; max-width: 320px; margin: 0 auto; }
  .k-rep-body { min-width: 0 !important; text-align: center; }
  .k-rep-roles { justify-content: center; }
}

/* Mobile (~600px and below) */
@media (max-width: 600px) {
  /* Nav: scrollable horizontal */
  .k-nav {
    height: auto !important;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 0 !important;
    gap: 4px;
  }
  .k-nav-logo {
    justify-content: center;
    padding: 0 16px 6px;
    font-size: 1.15rem !important;
  }
  .k-nav-logo img { width: 28px !important; height: 28px !important; }
  .k-nav-links {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    padding: 6px 16px 10px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--color-border);
  }
  .k-nav-links::-webkit-scrollbar { display: none; }
  .k-nav-links li { flex-shrink: 0; }
  .k-nav-links a {
    font-size: 0.82rem !important;
    white-space: nowrap;
    padding: 4px 0;
  }

  /* Hero typography & buttons */
  .k-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem) !important; }
  .k-hero-sub { font-size: 0.92rem !important; }
  .k-hero-catch { font-size: 1.05rem !important; margin-bottom: 24px !important; }
  .k-hero-tags { gap: 8px !important; margin-bottom: 24px !important; }
  .k-tag { font-size: 0.78rem !important; padding: 5px 14px !important; }
  .k-hero-content > div:first-child > div:last-child { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }
  .k-hero-content > div:first-child > div:last-child .k-btn { margin-left: 0 !important; width: 100%; padding: 12px 24px; font-size: 0.95rem; }

  /* Sections */
  .k-section { padding: 48px 16px !important; }
  .k-title { font-size: clamp(1.5rem, 6vw, 1.9rem) !important; }
  .k-eyebrow { font-size: 0.75rem; }

  /* Body text in About */
  #about p { font-size: 0.95rem !important; line-height: 1.8 !important; }

  /* Activities cards */
  .k-activity { padding: 22px 18px; }
  .k-activity h3 { font-size: 1rem; }
  .k-activity p { font-size: 0.88rem; }

  /* For-who grid */
  .k-grid-3 { gap: 14px; }
  .k-forwho { padding: 20px 14px; }
  .k-forwho .icon { font-size: 2.2rem; }
  .k-forwho p { font-size: 0.88rem; }

  /* Event box */
  .k-event { padding: 22px 18px; align-items: stretch; text-align: center; }
  .k-event h3 { font-size: 1rem; }
  .k-event .meta { font-size: 0.88rem; line-height: 1.85; text-align: left; }
  .k-event > div:last-child { width: 100%; }
  .k-event .k-btn { width: 100%; }

  /* Hiroba */
  #hiroba .k-btn { width: 100%; text-align: center; }

  /* Representative */
  .k-rep-inner > div:first-child { max-width: 240px !important; }
  .k-rep-name { font-size: 1.6rem; }

  /* Contact */
  .k-contact-box { padding: 28px 20px; }
  .k-contact-email { font-size: 0.95rem; padding: 10px 22px; }
  .k-register { padding: 18px 16px; }

  /* Footer */
  .k-footer { padding-bottom: 24px; font-size: 0.82rem; }
  .k-footer-logo { font-size: 1.2rem; }
  .k-footer p { font-size: 0.8rem; }

  /* Modal */
  .k-modal { padding: 28px 22px; }
  .k-modal h3 { font-size: 1.2rem; }
  .k-modal .row .k-btn { flex: 1; padding: 12px 18px; font-size: 0.92rem; }
}

/* Very narrow (iPhone SE etc, ~360px) */
@media (max-width: 380px) {
  .k-hero h1 { font-size: 2rem !important; }
  .k-tag { font-size: 0.75rem !important; }
  .k-flyer-list li { grid-template-columns: 1fr !important; gap: 2px !important; padding: 8px 0; }
  .k-flyer-list li span { font-size: 0.82rem; }
}
