/* ============================================
   Metagri AI実践ラボ LP — styles.css
   ベース：AGRI VISION 2036 LP（agri-vision-2036.metagri-labo.com）のデザイン
   - 色・書体・ボタン・ヘッダー・お知らせ帯・FAQ・運営・フッターを踏襲
   - 暗い面（夜明け前の畑）＝ヒーロー・強調、明るい面（和紙）＝読む情報
   ============================================ */

:root {
  --night:      #0b1a16;
  --night-2:    #11261f;
  --night-3:    #183229;
  --line-dark:  rgba(233, 239, 231, 0.12);
  --ink:        #e9efe7;
  --ink-dim:    #a9b8b0;

  --gold:       #e3b448;
  --gold-soft:  #f3dca0;
  --gold-deep:  #a87a17;
  --signal:     #5fe0c4;
  --signal-dim: rgba(95, 224, 196, 0.16);

  --paper:      #f8f4ea;
  --paper-2:    #efe8d6;
  --card:       #ffffff;
  --text:       #1f2a26;
  --text-dim:   #5b6762;
  --line:       rgba(31, 42, 38, 0.12);
  --green:      #2f6b4f;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 6px 28px rgba(18, 38, 31, 0.08);
  --container:  1040px;

  --font-body:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-head:  'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-num:   'Space Grotesk', 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font-body); color: var(--text); background: var(--paper); line-height: 1.85; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
ul, ol { list-style: none; }
code { font-family: var(--font-num); background: var(--signal-dim); color: inherit; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.nowrap { display: inline-block; }

/* お知らせ帯・ヘッダー */
.notice-bar { background: var(--gold); color: var(--night); font-size: 0.85rem; font-weight: 700; text-align: center; padding: 7px 16px; line-height: 1.5; }
.notice-bar strong { font-family: var(--font-num); font-size: 1.05em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 26, 22, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.site-header__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; min-height: 60px; position: relative; }
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-logo img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.site-logo b { font-family: var(--font-head); font-weight: 900; font-size: 1rem; letter-spacing: .04em; }
.site-logo b span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink-dim); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.site-nav .nav-cta { background: var(--gold); color: var(--night); font-weight: 700; padding: 8px 16px; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--gold-soft); color: var(--night); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--line-dark); padding: 8px 16px 16px; display: none; }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 8px; font-size: 0.95rem; border-bottom: 1px solid var(--line-dark); }
  .site-nav .nav-cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; border: 1.5px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 8px 28px rgba(227,180,72,0.28); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { color: var(--ink); border-color: rgba(233,239,231,0.4); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.06); }
.btn-outline { color: var(--text); border-color: var(--line); background: var(--card); }
.btn-outline:hover { border-color: var(--text); }

/* セクション共通 */
.section { padding: 96px 0; position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--night); color: var(--ink); }
.section--dark a:not(.btn) { color: var(--signal); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-num); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.section--dark .eyebrow { color: var(--gold); }
.section-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.45; letter-spacing: 0.02em; margin-bottom: 20px; }
.section-lead { color: var(--text-dim); font-size: 1.02rem; max-width: 720px; margin-bottom: 40px; }
.section--dark .section-lead { color: var(--ink-dim); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::after { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.note { font-size: 0.82rem; color: var(--text-dim); line-height: 1.7; }
.section--dark .note { color: var(--ink-dim); }
p + p { margin-top: 12px; }

/* ヒーロー（暗い面） */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--ink); padding: 88px 0 80px; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(900px 420px at 88% -8%, rgba(95,224,196,0.18), transparent 60%),
  radial-gradient(700px 380px at -8% 108%, rgba(227,180,72,0.20), transparent 60%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: repeating-linear-gradient(170deg, transparent 0 18px, rgba(233,239,231,0.035) 18px 19px); }
.hero .container { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero__presents { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-dim); margin-bottom: 18px; }
.hero__name { font-family: var(--font-num); font-weight: 700; letter-spacing: .18em; font-size: .8rem; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.hero__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 6.4vw, 3.6rem); line-height: 1.32; color: #fff; margin-bottom: 18px; }
.hero__title em { font-style: normal; color: var(--gold); display: inline-block; }
.hero__lead { color: var(--ink-dim); font-size: 1.02rem; max-width: 560px; margin-bottom: 26px; }
.hero__lead strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__facts li { font-size: .85rem; padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255,255,255,0.04); }
.hero__facts li::before { content: '●'; color: var(--signal); font-size: 0.6em; margin-right: 8px; vertical-align: 2px; }
.hero__mascot { justify-self: center; width: min(320px, 66vw); background: #fff; border-radius: 50%; padding: 14px; box-shadow: 0 0 0 10px rgba(255,255,255,0.05), 0 24px 60px rgba(0,0,0,0.35); }
@media (min-width: 860px) { .hero .container { grid-template-columns: 1.35fr 1fr; } }

/* 信頼帯 */
.trust-strip { background: var(--night-2); color: var(--ink); border-top: 1px solid var(--line-dark); }
.trust-strip ul { max-width: var(--container); margin: 0 auto; padding: 22px 20px; display: grid; gap: 18px; }
.trust-strip li { display: flex; gap: 14px; align-items: center; }
.trust-strip__num { font-family: var(--font-num); font-weight: 700; font-size: 1.9rem; color: var(--gold); line-height: 1; min-width: 74px; }
.trust-strip__num small { font-size: 0.5em; margin-left: 2px; }
.trust-strip__text { font-size: 0.84rem; color: var(--ink-dim); line-height: 1.55; }
.trust-strip__text b { color: var(--ink); font-weight: 700; display: block; }
@media (min-width: 768px) { .trust-strip ul { grid-template-columns: repeat(3, 1fr); } }

/* カード・グリッド */
.grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.card__label { font-family: var(--font-num); font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--gold-deep); margin-bottom: 10px; }
.card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; line-height: 1.5; }
.card p { color: var(--text-dim); font-size: .94rem; }
.section--dark .card { background: var(--night-2); border-color: var(--line-dark); box-shadow: none; }
.section--dark .card p { color: var(--ink-dim); }
.section--dark .card__label { color: var(--signal); }

/* 悩みリスト */
.worries { display: grid; gap: 10px; margin-bottom: 28px; }
@media (min-width: 768px) { .worries { grid-template-columns: repeat(2, 1fr); } }
.worries li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 46px; position: relative; font-weight: 500; }
.worries li::before { content: ''; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); border-radius: 4px; border: 2px solid var(--gold-deep); }
.pullquote { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.25rem, 3.4vw, 1.7rem); text-align: center; color: var(--green); }

/* 投稿例 */
.posts { display: grid; gap: 12px; }
@media (min-width: 768px) { .posts { grid-template-columns: repeat(2, 1fr); } }
.post { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tag { font-size: .74rem; font-weight: 700; color: var(--night); background: var(--gold-soft); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.tag--share { background: var(--signal); }
.callout { margin-top: 20px; border-left: 4px solid var(--gold); background: #fff6dc; padding: 14px 18px; border-radius: 0 12px 12px 0; font-weight: 700; }

/* 利用イメージ（Discord 風のモック・実在の投稿ではない） */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.mock { background: #313338; color: #dbdee1; border-radius: 18px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); font-size: 14px; line-height: 1.65; }
.mock .ch { color: #949ba4; font-weight: 700; border-bottom: 1px solid #3f4147; padding-bottom: 10px; margin-bottom: 12px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; margin-bottom: 14px; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.who { font-weight: 700; color: #f2f3f5; }
.who span { font-weight: 400; color: #949ba4; font-size: 12px; margin-left: 6px; }
.shot { margin-top: 6px; border-radius: 8px; background: #2b2d31; border: 1px solid #3f4147; padding: 10px; color: #b5bac1; font-size: 13px; }
.react { display: inline-block; margin-top: 6px; background: #3b3d44; border-radius: 8px; padding: 1px 8px; font-size: 13px; }
.status { background: #2b2d31; border-left: 4px solid var(--signal); border-radius: 8px; padding: 12px 14px; }
.mock-label { text-align: center; margin-top: 10px; }

/* 継続ルール */
.rules { display: grid; gap: 16px; margin: 8px 0 22px; }
@media (min-width: 768px) { .rules { grid-template-columns: 1fr 1fr; } }
.rule { background: var(--night-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 24px; }
.rule__num { font-family: var(--font-num); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: 10px; }
.rule__num small { font-size: .45em; color: var(--ink-dim); margin-left: 6px; font-family: var(--font-body); }
.rule h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; margin-bottom: 6px; }
.rule p { color: var(--ink-dim); font-size: .92rem; }

/* 募集概要・ステップ */
.spec { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 30%; background: var(--paper-2); font-weight: 700; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.steps { counter-reset: step; display: grid; gap: 12px; margin: 28px 0; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 70px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 14px; font-family: var(--font-num); font-weight: 700; font-size: 1.4rem; color: var(--gold-deep); }
.center { text-align: center; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; position: relative; display: flex; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; font-family: var(--font-num); color: var(--gold-deep); font-weight: 700; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 22px 20px 48px; color: var(--text-dim); font-size: 0.94rem; }

/* 運営 */
.org { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.org__logo { background: #fff; border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.org__name { font-family: var(--font-head); font-weight: 900; font-size: 1.35rem; line-height: 1.5; }
.org__corp { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 12px; }
.org__text { font-size: 0.95rem; color: var(--text-dim); }
@media (max-width: 767px) { .org { grid-template-columns: 1fr; padding: 26px 22px; } .org__logo { width: 130px; } }

/* 最終CTA・フッター */
.final { text-align: center; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% 120%, rgba(227,180,72,0.22), transparent 65%); }
.final .container { position: relative; }
.final__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.5; margin-bottom: 16px; }
.final__text { color: var(--ink-dim); margin-bottom: 30px; }
.site-footer { background: #07120f; color: var(--ink-dim); font-size: 0.85rem; padding: 36px 0 40px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* 下層ページ */
.page-hero { background: var(--night); color: var(--ink); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(227,180,72,0.25), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 4.6vw, 2.4rem); line-height: 1.45; }
.page-hero__lead { color: var(--ink-dim); margin-top: 10px; }
.terms { max-width: 820px; margin: 0 auto; }
.terms h2 { font-family: var(--font-head); font-size: 1.15rem; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.terms p, .terms li { font-size: 0.95rem; }
.terms ul { padding-left: 1.3em; list-style: disc; }
.terms li { margin-bottom: 6px; }
.terms .spec { margin-top: 8px; }
.terms__meta { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-dim); }

/* 表示アニメーション（AGRI VISION と同じ） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .btn:hover { transform: none; } }
@media (max-width: 767px) { .section { padding: 72px 0; } .hero { padding: 56px 0 64px; } }
