/* ===== CSS変数 ===== */
:root {
  --bg:       #f5f3ee;
  --bg2:      #ffffff;
  --bg3:      #ede9e1;
  --border:   #d0c9bc;
  --ink:      #1a1714;
  --ink2:     #4a443c;
  --ink3:     #9a9188;
  --red:      #c0392b;
  --red2:     #e74c3c;
  --j1:       #c0392b;
  --j2:       #2471a3;
  --j3:       #1e8449;
  --national: #c09000;
  --jfl:      #6c3483;
  --radius:   4px;
  --font-head: 'Noto Serif JP', 'Georgia', serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-mono: 'Oswald', 'Impact', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.7; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.site-header { background: var(--ink); border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 56px; display: flex; align-items: center; gap: 2rem; }
.site-logo { display: flex; align-items: baseline; gap: .4rem; flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: .02em; }
.logo-sub { font-size: .82rem; color: var(--red2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--red2); padding: .1rem .3rem; margin-left: .3rem; }
.header-nav { display: flex; gap: 0; margin-left: auto; height: 100%; }
.nav-link { display: flex; align-items: center; padding: 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: #aaa; border-left: 1px solid #333; transition: color .15s, background .15s; white-space: nowrap; }
.nav-link:hover { color: #fff; background: #2a2a2a; }
.nav-link.active { color: #fff; background: var(--red); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

.page-wrap { min-height: calc(100vh - 56px); }

.hero { background: var(--ink); padding: 2.5rem 1.5rem 2rem; position: relative; overflow: hidden; }
.hero::after { content: 'SOCCER'; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 9rem; font-weight: 900; color: rgba(255,255,255,.04); pointer-events: none; line-height: 1; }
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--red2); margin-bottom: .4rem; }
.hero-title { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; color: #fff; line-height: 1.05; }
.hero-title span { color: var(--red2); }
.hero-desc { margin-top: .5rem; font-size: .82rem; color: #777; }

.top-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.top-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }

.section-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.tab { padding: .45rem 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ink2); border: 1px solid var(--border); border-bottom: none; background: var(--bg3); margin-right: 3px; transition: all .15s; cursor: pointer; }
.tab:hover { background: var(--bg2); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.category-block { margin-bottom: 2.5rem; }
.category-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.cat-badge { display: inline-block; font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; padding: .2rem .65rem; color: #fff; }
.cat-j1 { background: var(--j1); }
.cat-j2 { background: var(--j2); }
.cat-j3 { background: var(--j3); }
.cat-national { background: var(--national); }
.cat-jfl { background: var(--jfl); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.team-card { display: flex; justify-content: space-between; align-items: center; padding: .6rem .85rem; background: var(--bg2); transition: background .12s; gap: .5rem; }
.team-card:hover { background: #fff9f5; }
.team-card:hover .team-name { color: var(--red); }
.team-name { font-size: .8rem; font-weight: 700; line-height: 1.3; transition: color .12s; }
.team-count { font-size: .68rem; color: var(--ink3); white-space: nowrap; flex-shrink: 0; }

.recent-section { position: sticky; top: 72px; }
.aside-title { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: #fff; background: var(--ink); padding: .5rem .85rem; }
.recent-list { border: 1px solid var(--border); border-top: none; background: var(--bg2); }
.recent-item { padding: .7rem .85rem; border-bottom: 1px solid var(--border); }
.recent-item:last-child { border-bottom: none; }
.recent-team { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--red); margin-bottom: .15rem; }
.recent-name { font-size: .7rem; color: var(--ink3); margin-left: .35rem; }
.recent-msg { font-size: .78rem; color: var(--ink2); line-height: 1.5; }
.recent-time { display: block; font-size: .66rem; color: var(--ink3); margin-top: .15rem; }
.empty-msg { text-align: center; color: var(--ink3); padding: 3rem 1rem; font-size: .88rem; }

.team-hero { background: var(--ink); padding: 1.75rem 1.5rem 1.5rem; border-bottom: 4px solid var(--red); }
.team-hero-inner { max-width: 1200px; margin: 0 auto; }
.team-breadcrumb { font-size: .7rem; color: #666; margin-bottom: .5rem; }
.team-breadcrumb a { color: #888; }
.team-breadcrumb a:hover { color: #fff; }
.team-title { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 900; color: #fff; line-height: 1.1; }
.team-meta { margin-top: .35rem; font-size: .75rem; color: #777; }
.team-layout { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }

.post-form-section { position: sticky; top: 72px; }
.form-title { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: #fff; background: var(--ink); padding: .5rem .85rem; }
.post-form { border: 1px solid var(--border); border-top: none; background: var(--bg2); padding: 1rem; }
.form-row { margin-bottom: .8rem; }
.form-row label { display: block; font-size: .7rem; font-weight: 700; color: var(--ink2); margin-bottom: .28rem; letter-spacing: .04em; }
.required { background: var(--red); color: #fff; font-size: .6rem; padding: .08rem .28rem; margin-left: .3rem; }
.form-row input, .form-row textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--ink); font-family: var(--font-body); font-size: .85rem; padding: .5rem .7rem; transition: border-color .15s; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--ink); }
.char-count { display: block; text-align: right; font-size: .66rem; color: var(--ink3); margin-top: .22rem; }
.submit-btn { width: 100%; background: var(--red); color: #fff; border: none; font-family: var(--font-head); font-size: .92rem; font-weight: 900; letter-spacing: .06em; padding: .65rem; cursor: pointer; transition: background .15s; }
.submit-btn:hover { background: #a93226; }

.alert { padding: .6rem .85rem; font-size: .8rem; margin-bottom: .8rem; border-left: 3px solid; }
.alert-error { background: #fdf2f2; border-color: var(--red); color: #922b21; }
.alert-success { background: #f0faf0; border-color: #27ae60; color: #1e8449; }

.post-list { display: flex; flex-direction: column; }
.post-item { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.post-item:first-child { border-top: 1px solid var(--border); }
.post-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.post-num { font-family: var(--font-mono); font-size: .7rem; font-weight: 700; color: var(--red); min-width: 24px; }
.post-name { font-size: .76rem; font-weight: 700; color: var(--ink2); }
.post-time { font-size: .66rem; color: var(--ink3); margin-left: auto; }
.post-body { font-size: .88rem; line-height: 1.8; padding-left: 28px; color: var(--ink); word-break: break-word; }

.pagination { display: flex; gap: 3px; justify-content: center; padding: 2rem 0 0; flex-wrap: wrap; }
.page-btn { padding: .38rem .75rem; background: var(--bg2); border: 1px solid var(--border); font-size: .78rem; color: var(--ink2); transition: all .12s; }
.page-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }

.site-footer { background: var(--ink); border-top: 3px solid var(--red); padding: 2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo { font-family: var(--font-head); font-size: .95rem; font-weight: 900; color: #fff; margin-bottom: .4rem; }
.footer-note { font-size: .73rem; color: #666; margin-bottom: .4rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: .5rem 0; }
.footer-links a { font-size: .73rem; color: #666; text-decoration: underline; }
.footer-links a:hover { color: #aaa; }
.footer-copy { font-size: .68rem; color: #555; }

.static-page { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.static-title { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900; color: var(--ink); margin-bottom: .4rem; padding-bottom: .7rem; border-bottom: 3px solid var(--ink); }
.static-updated { font-size: .72rem; color: var(--ink3); margin-bottom: 2rem; }
.static-inner section { margin-bottom: 2rem; }
.static-inner h2 { font-family: var(--font-head); font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: .55rem; padding-left: .55rem; border-left: 3px solid var(--red); }
.static-inner p { font-size: .87rem; color: var(--ink2); line-height: 1.9; margin-bottom: .5rem; }
.static-inner ul { list-style: disc; padding-left: 1.5rem; margin-bottom: .5rem; }
.static-inner ul li { font-size: .84rem; color: var(--ink2); line-height: 1.8; }
.static-inner a { color: var(--red); text-decoration: underline; }
.contact-link { display: inline-block; font-size: .92rem; font-weight: 700; color: var(--ink) !important; text-decoration: none !important; background: var(--bg3); border: 1px solid var(--border); padding: .65rem 1.1rem; }
.notice-box { margin-top: 1.2rem; background: var(--bg3); border: 1px solid var(--border); padding: .8rem 1rem; }
.notice-box p { font-size: .78rem !important; color: var(--ink3) !important; margin-bottom: .22rem !important; }

@media (max-width: 900px) {
  .top-layout { grid-template-columns: 1fr; }
  .recent-section { position: static; }
  .team-layout { grid-template-columns: 1fr; }
  .post-form-section { position: static; }
}
@media (max-width: 640px) {
  .header-nav { display: none; }
  .header-nav.open { display: flex; flex-direction: column; position: fixed; top: 56px; left: 0; right: 0; background: var(--ink); border-top: 1px solid #333; padding: .5rem 0; z-index: 99; }
  .header-nav.open .nav-link { border-left: none; border-top: 1px solid #333; padding: .75rem 1.5rem; }
  .nav-toggle { display: block; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .hero::after { display: none; }
}

/* ===== Xシェアボタン ===== */
.team-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .35rem;
}
.x-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #000;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 20px;
  transition: opacity .15s;
  flex-shrink: 0;
}
.x-share-btn:hover { opacity: .8; }

/* ===== SNSシェアボタン ===== */
.share-btns {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: 3px;
  transition: opacity .15s;
  flex-shrink: 0;
  color: #fff;
}
.share-btn:hover { opacity: .82; }
.share-x    { background: #000; }
.share-line { background: #06C755; }
.share-fb   { background: #1877F2; }
.share-hb   { background: #00A4DE; }

/* ===== 投稿アクション（いいね・通報） ===== */
.post-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-left: 28px;
  margin-top: .4rem;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: none;
  border: 1px solid var(--border);
  padding: .2rem .6rem;
  font-size: .75rem;
  color: var(--ink2);
  cursor: pointer;
  border-radius: 20px;
  transition: all .15s;
}
.like-btn:hover { border-color: #e74c3c; color: #e74c3c; }
.like-btn.liked { border-color: #e74c3c; color: #e74c3c; background: #fdf2f2; }
.report-btn {
  background: none;
  border: none;
  font-size: .7rem;
  color: var(--ink3);
  cursor: pointer;
  padding: .2rem .4rem;
  transition: color .15s;
}
.report-btn:hover { color: var(--red); }
