/* =====================================================
   グリーンシード バドミントンラボ - style.css
   ===================================================== */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2c3e50;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ===== Variables ===== */
:root {
  --green:         #3aab5a;
  --green-dark:    #268042;
  --green-light:   #e8f7ec;
  --primary:       #1a7ed4;
  --primary-dark:  #0f5fa8;
  --primary-light: #e6f2fb;
  --accent:        #ff6b35;
  --accent-light:  #fff0eb;
  --text:          #2c3e50;
  --text-muted:    #6c7a8a;
  --bg:            #fff;
  --bg-sub:        #f7f9fc;
  --border:        #e2e8f0;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
}

/* ===== Layout ===== */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Section 共通 ===== */
.section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.section-footer {
  margin-top: 32px;
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn:hover        { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active       { transform: translateY(0); }
.btn-primary      { background: var(--green); color: #fff; }
.btn-primary:hover{ background: var(--green-dark); }
.btn-outline      { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover{ background: var(--green-light); }
.btn-white        { background: #fff; color: var(--green); font-weight: 800; }
.btn-white:hover  { background: #f0fbf4; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-main {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.2;
}
.logo-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

/* グローバルナビ */
.global-nav { display: flex; align-items: center; gap: 2px; }
.global-nav a {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.global-nav a:hover,
.global-nav a.is-active   { color: var(--green); background: var(--green-light); }
.global-nav a.nav-cta     { background: var(--green); color: #fff; padding: 7px 14px; }
.global-nav a.nav-cta:hover { background: var(--green-dark); box-shadow: var(--shadow-sm); }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;

  width: 40px; height: 40px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #e8f7ec 0%, #d4f0dc 50%, #e6f2fb 100%);
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.85;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual   { width: 300px; flex-shrink: 0; }
.hero-img-placeholder {
  width: 300px; height: 240px;
  background: rgba(255,255,255,.7);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(58,171,90,.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

/* ===== Quick Nav ===== */
.quick-nav { padding: 40px 0; border-bottom: 1px solid var(--border); }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  gap: 8px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
}
.quick-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.quick-icon  { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.quick-label { font-size: 13px; font-weight: 900; color: var(--text); line-height: 1.3; }
.quick-desc  { font-size: 11px; color: var(--text-muted); }

/* ===== Characters ===== */
.characters { background: var(--bg-sub); padding: 64px 0; }
.chara-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.chara-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow .15s, transform .15s;
  text-decoration: none;
  color: var(--text);
}
.chara-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.chara-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
  overflow: hidden;
}
.chara-icon img { width: 100%; height: 100%; object-fit: cover; }
.chara-info { display: flex; flex-direction: column; gap: 4px; }
.chara-name { font-size: 16px; font-weight: 900; }
.chara-role { font-size: 11px; font-weight: 700; }
.chara-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== News ===== */
.news-section { padding: 64px 0; }
.news-list    { display: flex; flex-direction: column; gap: 0; }
.news-item a  {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background .1s;
}
.news-item a:hover { background: var(--bg-sub); padding-left: 8px; border-radius: var(--radius-sm); }
.news-date  { font-size: 13px; color: var(--text-muted); font-weight: 700; flex-shrink: 0; width: 96px; }
.news-tag   { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.tag-news   { background: var(--primary-light); color: var(--primary-dark); }
.tag-event  { background: #fff8e6; color: #b36b00; }
.tag-update { background: var(--green-light); color: var(--green-dark); }
.news-title { font-size: 14px; font-weight: 700; flex: 1; }
.news-empty { color: var(--text-muted); font-size: 14px; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, #268042 0%, #1a7ed4 100%);
  padding: 64px 0;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-sub   { color: rgba(255,255,255,.75); }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cta-card {
  background: rgba(255,255,255,.13);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .15s;
}
.cta-card:hover  { background: rgba(255,255,255,.2); }
.cta-icon        { font-size: 36px; }
.cta-title       { font-size: 17px; font-weight: 900; color: #fff; }
.cta-desc        { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.65; flex: 1; }

/* ===== Footer ===== */
.site-footer { background: #1c2b3a; color: rgba(255,255,255,.7); padding: 48px 0 24px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-logo  { font-size: 17px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-catch { font-size: 13px; }
.footer-nav-title { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-nav-list  { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-list a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-nav-list a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
}
.copyright { font-size: 12px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .global-nav { display: none; }
  .global-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1.5px solid var(--border);
    padding: 12px 20px 20px;
    z-index: 99;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .global-nav.is-open a { padding: 10px 14px; border-radius: var(--radius-sm); }
  .hamburger { display: flex; }
  .hero-inner { flex-direction: column; }
  .hero-visual, .hero-img-placeholder { width: 100%; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .chara-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid   { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .chara-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
}


/* =====================================================
   Stock Page
   ===================================================== */

.stock-list-section {
  padding: 64px 0;
}

.stock-search-form {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.stock-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 14px;
  align-items: end;
}

.stock-search-field {
  display: grid;
  gap: 6px;
}

.stock-search-field label {
  font-size: 13px;
  font-weight: 900;
  color: var(--green-dark);
}

.stock-search-field select,
.stock-search-field input {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

.stock-search-field select:focus,
.stock-search-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58,171,90,.14);
}

.stock-search-button {
  display: flex;
  align-items: end;
}

.stock-search-button .btn {
  min-height: 44px;
  white-space: nowrap;
}

.stock-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.stock-result-head p {
  font-size: 14px;
  color: var(--text-muted);
}

.stock-reset-link {
  font-size: 13px;
  font-weight: 900;
  color: var(--green);
}

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

.stock-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stock-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.stock-table th,
.stock-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.stock-table th {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.stock-table tr:last-child td {
  border-bottom: none;
}

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

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

.stock-product-code {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.stock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px 4px 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.stock-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--green-dark);
  white-space: nowrap;
}

.stock-tax-label {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.stock-muted {
  font-size: 13px;
  color: var(--text-muted);
}

.stock-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.stock-status.is-available {
  background: var(--green-light);
  color: var(--green-dark);
}

.stock-status.is-none {
  background: #fff8e6;
  color: #b36b00;
}

.stock-status.is-check {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.stock-qty {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.stock-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Stock Responsive ===== */
@media (max-width: 900px) {
  .stock-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stock-search-keyword,
  .stock-search-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .stock-list-section {
    padding: 44px 0;
  }

  .stock-search-grid {
    grid-template-columns: 1fr;
  }

  .stock-search-keyword,
  .stock-search-button {
    grid-column: auto;
  }

  .stock-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-table {
    min-width: 860px;
  }

  .stock-table th,
  .stock-table td {
    padding: 13px 14px;
  }
}
