/* ===== AGRIX AI ポータル ― ダーク高級テーマ ===== */
:root {
  --bg:        #090c0a;
  --bg-2:      #0d120f;
  --panel:     #121a15;
  --panel-2:   #16201a;
  --ink:       #eef3ef;
  --muted:     #9bb0a3;
  --green:     #36d399;
  --green-dk:  #1f9e72;
  --gold:      #e2b65c;
  --gold-dk:   #c1933a;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.06);
  --shadow:    0 16px 40px rgba(0,0,0,.45);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.6);
  --radius:    18px;
  --maxw:      1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.pc-only { display: inline; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,12,10,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green), var(--green-dk));
  color: #052016; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 19px;
}
.brand-name { font-family: "Outfit", sans-serif; letter-spacing: .5px; font-size: 19px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: #052016 !important;
  padding: 9px 16px; border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: #46e6a8; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(55% 55% at 78% 8%, rgba(54,211,153,.18), transparent 70%),
    radial-gradient(50% 50% at 12% 95%, rgba(226,182,92,.12), transparent 70%),
    linear-gradient(180deg, #0c1410, var(--bg));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000, transparent 75%);
          mask-image: radial-gradient(60% 60% at 50% 35%, #000, transparent 75%);
  opacity: .6;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow {
  font-family: "Outfit", sans-serif; letter-spacing: 3px; font-weight: 700;
  color: var(--green); font-size: 13px; margin-bottom: 18px;
}
.hero-title { font-size: clamp(30px, 5.5vw, 56px); font-weight: 900; line-height: 1.34; letter-spacing: -.5px; }
.hero-title .accent {
  background: linear-gradient(120deg, var(--green), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin: 26px auto 0; max-width: 690px; color: var(--muted); font-size: clamp(15px,2vw,17px); }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-stats {
  list-style: none; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 60px;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-family: "Outfit", sans-serif; font-size: 26px; color: var(--green); }
.hero-stats span { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; cursor: pointer; border: 0;
}
.btn-primary { background: linear-gradient(120deg, var(--green), var(--green-dk)); color: #052016; box-shadow: 0 10px 30px rgba(54,211,153,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(54,211,153,.38); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); transform: translateY(-2px); }
.btn-lg { padding: 16px 42px; font-size: 16px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-dark { background: linear-gradient(180deg, var(--bg-2), #0a110d); border-block: 1px solid var(--line-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker { font-family: "Outfit", sans-serif; letter-spacing: 3px; font-weight: 700; font-size: 12.5px; color: var(--gold); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; letter-spacing: -.5px; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ===== Series & Cards ===== */
.series-block { margin-bottom: 72px; }
.series-block:last-child { margin-bottom: 0; }
.series-head { border-left: 3px solid var(--green); padding-left: 16px; margin-bottom: 30px; }
.series-title { font-size: 22px; font-weight: 800; }
.series-sub { font-size: 14px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 26px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(54,211,153,.5); }

.card-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0f0c; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-visual img { transform: scale(1.04); }
.card-visual--placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(54,211,153,.14), transparent 70%),
    linear-gradient(160deg, #14201a, #0c130f);
}
.card-visual-logo { width: auto !important; height: 54% !important; max-width: 70%; object-fit: contain !important; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.card:hover .card-visual-logo { transform: none; }
.card-visual-icon { font-size: 56px; }
.card-visual .badge { position: absolute; top: 12px; right: 12px; }

.badge { font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.badge-live { background: rgba(54,211,153,.92); color: #052016; }
.badge-coming { background: rgba(226,182,92,.92); color: #2a1d04; }

.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-size: 20px; font-weight: 800; }
.card-tagline { color: var(--green); font-weight: 700; font-size: 13.5px; margin: 5px 0 12px; }
.card-desc { color: var(--muted); font-size: 14px; }
.card-price { margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--gold); }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 18px; }
.tag { font-size: 11.5px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); padding: 3px 10px; border-radius: 999px; }
.card-visual-link { display: block; }
.card-name a { color: inherit; transition: color .2s; }
.card-name a:hover { color: var(--green); }
.card-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 4px 0 16px; font-weight: 700; font-size: 13.5px; color: var(--green); transition: gap .2s, color .2s; }
.card-more span { transition: transform .2s; }
.card-more:hover { color: #46e6a8; }
.card-more:hover span { transform: translateX(4px); }
.card-stores { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.store-btn { font-size: 12.5px; font-weight: 700; padding: 9px 15px; border-radius: 10px; background: var(--green); color: #052016; }
.store-btn:hover { background: #46e6a8; }
.store-soon { font-size: 12px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px dashed var(--line); padding: 9px 15px; border-radius: 10px; }

/* ===== SNS ===== */
.sns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; }
.sns-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; transition: background .2s, transform .15s, border-color .2s;
}
.sns-btn:hover { background: var(--panel-2); border-color: var(--green); transform: translateY(-2px); }
.sns-icon { width: 24px; height: 24px; color: var(--ink); flex-shrink: 0; }
.sns-icon svg { width: 100%; height: 100%; }
.sns-name { font-weight: 600; font-size: 14px; }
.sns-empty { text-align: center; color: var(--muted); font-size: 14px; max-width: 520px; margin: 0 auto; }

/* ===== 詳細ページ ===== */
.detail-wrap { padding: 48px 0 88px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.back-link:hover { color: var(--green); }
.detail-head { max-width: 760px; margin: 24px auto 0; text-align: center; }
.detail-logo { height: 56px; width: auto; margin: 0 auto 18px; object-fit: contain; }
.detail-name { font-size: clamp(26px, 5vw, 40px); font-weight: 900; letter-spacing: -.5px; display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.detail-name .badge { font-size: 13px; }
.detail-tagline { color: var(--green); font-weight: 700; font-size: 16px; margin-top: 10px; }
.detail-desc { color: var(--muted); font-size: 15px; margin-top: 14px; }
.detail-price { color: var(--gold); font-weight: 700; font-size: 17px; margin-top: 16px; }
.detail-tags { justify-content: center; margin: 18px 0 22px; }
.detail-head .card-stores { justify-content: center; }
.detail-media { max-width: 820px; margin: 44px auto 0; }
.lp-image { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.detail-foot { max-width: 820px; margin: 44px auto 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.detail-missing { text-align: center; color: var(--muted); padding: 80px 0; font-size: 16px; }
.detail-missing a { color: var(--green); font-weight: 700; }

/* ===== 法人向けチラシ一覧 ===== */
.flyers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.flyer { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.flyer:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(54,211,153,.4); }
.flyer-thumb { display: block; width: 100%; border: 0; padding: 0; margin: 0; background: #0a0f0c; cursor: zoom-in; position: relative; }
.flyer-thumb img { width: 100%; height: auto; display: block; }
.flyer-zoom { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.flyer:hover .flyer-zoom { opacity: 1; }
.flyer-meta { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.flyer-meta h3 { font-size: 17px; font-weight: 800; }
.flyer-meta p { color: var(--muted); font-size: 13.5px; margin-top: 4px; flex: 1; }
.flyer-actions { display: flex; gap: 10px; margin-top: 16px; }
.flyer-view { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 13px; cursor: pointer; transition: border-color .2s; }
.flyer-view:hover { border-color: var(--green); }
.flyer-dl { background: var(--green); color: #052016; border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: 13px; }
.flyer-dl:hover { background: #46e6a8; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; align-items: flex-start; justify-content: center; overflow: auto; padding: 48px 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(640px, 100%); height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid var(--line); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.22); }

/* 法人ページ */
.corp-cta { text-align: center; background: linear-gradient(160deg, #0e1a13, #0a130d); border: 1px solid var(--line); border-radius: 22px; padding: 52px 32px; margin-top: 56px; }
.corp-cta h2 { font-size: clamp(20px,4vw,28px); font-weight: 900; }
.corp-cta p { color: var(--muted); margin-top: 14px; font-size: 14.5px; }
.corp-cta .btn { margin-top: 26px; }

/* ===== Contact ===== */
.contact-inner { text-align: center; }

/* ===== Footer ===== */
.site-footer { background: #060908; border-top: 1px solid var(--line-2); padding: 56px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-brand p { font-size: 13px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer-nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--green); }
.copyright { font-size: 12.5px; color: #5e7268; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .pc-only { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 440px; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line-2); }
  .nav-cta { margin: 12px 20px; text-align: center; border-radius: 999px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
  .section { padding: 64px 0; }
}
