p.muted{
  display:none;
}

/* styles.css */
:root{
  --bg:#ffffff;
  --bg-soft:#F8FAFC;
  --ink:#111827;
  --muted:#6B7280;
  --line:#E5E7EB;
  --brand:#1E3A8A;
  --brand-2:#0F2566;
  --danger:#DC2626;
  --success:#16A34A;
  --card:#ffffff;
  --shadow:0 2px 10px rgba(0,0,0,.06);
  --radius:12px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}

.container{max-width:var(--max);margin:0 auto;padding:0 16px}
.muted{color:var(--muted)}
.small{font-size:12px}

/* =========================
   Header (2段ヘッダー)
   ========================= */
.header{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid var(--line);
}

/* 1段目 */
.header-top{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header-top-inner{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0; /* 長い団体名で崩れない */
}
.logo{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}
.logo.small{
  width:34px;
  height:34px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
  min-width:0;
}
.brand-text .branch{
  font-size:18px;
  font-weight:800;
  white-space:normal;
}

.header-top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

/* 教室を探す（ヘッダー内で崩れにくく） */
.header-cta{
  white-space:nowrap;
  height:40px;
  padding:0 12px;
  line-height:1;
}

/* ハンバーガー（1段目に置く） */
.burger{
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  display:none; /* PCでは隠す */
  place-items:center;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:var(--ink);
  margin:3px auto;
  border-radius:2px;
}

/* 2段目（PCグロナビ） */
.header-nav{
  background:var(--brand);
}
.gnav{
  height:52px;
  display:flex;
  align-items:stretch;
  width:100%;
}
.gnav a{
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  color:#fff;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;

  padding:0 8px;
  border-right:1px solid rgba(255,255,255,.28);
}
.gnav a:first-child{
  border-left:1px solid rgba(255,255,255,.28);
}
.gnav a:hover{
  background:rgba(255,255,255,.12);
}

/* Mobile nav */
.mobile-nav{
  display:none;
  background:#fff;
  border-top:1px solid var(--line);
}
.mobile-nav.is-open{display:block}
.mobile-nav .container{
  padding:12px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mobile-nav a{
  padding:10px 12px;
  border-radius:10px;
}
.mobile-nav a:hover{background:var(--bg-soft)}

/* =========================
   Buttons
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:all .2s ease;
}
.btn-lg{padding:12px 18px;font-size:15px}
.btn-primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.btn-primary:hover{background:var(--brand-2);border-color:var(--brand-2)}
.btn-secondary{
  background:#fff;
  border-color:rgba(30,58,138,.25);
  color:var(--brand);
}
.btn-secondary:hover{border-color:rgba(30,58,138,.45)}
.btn-invert{
  background:#fff;
  color:var(--brand);
  border-color:#fff;
}
.btn-link{
  border:none;
  padding:0;
  background:transparent;
  color:var(--brand);
  font-weight:700;
}

.btn-secondary:hover{
  background:#E8EEF9;
  border-color:#E8EEF9;
}

/* =========================
   Hero
   ========================= */
.hero{
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(1200px 500px at 20% 10%, rgba(30,58,138,.10), transparent 55%),
    radial-gradient(900px 400px at 90% 30%, rgba(39,71,179,.10), transparent 60%),
    #fff;
}
.hero-inner{
  padding:48px 0;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.eyebrow{
  margin:0 0 10px;
  color:var(--brand);
  font-weight:800;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hero h1{
  margin:0 0 12px;
  font-size:44px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  max-width:44ch;
}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.hero-media{
  border-radius:20px;
  min-height:360px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=70") center/cover no-repeat;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
  position:relative;
  overflow:hidden;
}
.hero-media-overlay{
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  padding:12px 14px;
}
.hero-media-overlay p{margin:0}
.hero-media-overlay .muted{font-size:12px}

.hero-sub{
  margin-top:12px;
  font-size:14px;
}
.hero-sub a{
  color:var(--brand);
  font-weight:600;
}

/* =========================
   Sections / Cards
   ========================= */
.section{padding:56px 0}
.section-soft{
  background:var(--bg-soft);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-head{margin-bottom:18px}
.section-head h2{margin:0 0 6px;font-size:26px}
.section-head p{margin:0}
.mt16{margin-top:16px}

.cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
  cursor:pointer;
}
.card:hover{
  background:#F1F5F9;
  transform:translateY(-2px);
  transition:0.2s;
}


.cards-2{grid-template-columns:repeat(2, 1fr)}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  position:relative;
}
.card-icon{font-size:22px;margin-bottom:10px}
.card h3{margin:0 0 8px;font-size:18px}
.card p{margin:0 0 12px}
.card-link{color:var(--brand);font-weight:800}

.card-icon{
  font-size:36px;
  text-align:center;
  margin-bottom:14px;
}

.cards .card{
  text-align:center;
}

.card-link{
  position:absolute;
  inset:0;
  z-index:1;
  text-indent:-9999px;
}

/* Highlight card (Recruit) */
.card.highlight{
  border-color:rgba(30,58,138,.25);
  background:
    linear-gradient(0deg, rgba(30,58,138,.03), rgba(30,58,138,.03)),
    #fff;
}

/* Two-column */
.two-col{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  align-items:start;
}

#about .two-col{
  grid-template-columns:1fr;
  justify-items:center;
}

#contact{
  max-width:520px;
  width:100%;
}

/* Right column stacked cards */
.stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* =========================
   News
   ========================= */
.news-block{margin:0 0 18px}
.news-title{margin:0 0 10px;font-size:16px}
.news-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.news-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}
.news-item time{
  font-variant-numeric:tabular-nums;
  color:var(--muted);
  font-size:13px;
}
.news-item a{font-weight:650}
.news-item.important{
  border-color:rgba(220,38,38,.22);
  background:rgba(220,38,38,.04);
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid var(--line);
}
.badge-danger{
  background:rgba(220,38,38,.10);
  color:var(--danger);
  border-color:rgba(220,38,38,.18);
}

/* =========================
   Side card
   ========================= */
.side-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow);
}
.side-card h3{margin:0 0 10px}
.side-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.kv{margin:0}
.kv div{display:flex;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line)}
.kv div:last-child{border-bottom:none}
.kv dt{width:80px;color:var(--muted);font-weight:700}
.kv dd{margin:0;font-weight:650}

/* =========================
   Activities
   ========================= */
.media-box{
  border-radius:20px;
  min-height:320px;
  background:
    url("https://images.unsplash.com/photo-1555963966-b7ae5404b6ed?auto=format&fit=crop&w=1200&q=70") center/cover no-repeat;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.bullets{margin:0 0 14px;padding-left:18px}
.bullets li{margin:6px 0}

/* =========================
   CTA band
   ========================= */
.cta-band{
  background:var(--brand);
  color:#fff;
  padding:36px 0;
}
.cta-band-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.cta-band h2{margin:0 0 6px;font-size:24px}
.cta-band p{margin:0;opacity:.9}

/* =========================
   Footer
   ========================= */
.footer{
  background:#111827;
  color:#D1D5DB;
  padding:28px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  margin-top:30px;
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.footer-brand{
  display:flex;
  gap:12px;
  align-items:flex-start;
  max-width:520px;
}
.footer-org-block{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.footer-org-row{
  display:flex;
  align-items:center;
  gap:12px;
}
.footer-nav{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 18px;
  font-size:14px;
}
.footer-nav a{color:#D1D5DB;white-space:nowrap}
.footer-nav a:hover{color:#fff}
.footer-bottom{
  border-top:1px solid rgba(229,231,235,.15);
  margin-top:16px;
  padding-top:12px;
  opacity:.85;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  /* 2段目のグロナビは消して、1段目にハンバーガー */
  .header-nav{display:none}
  .burger{display:grid}

  .two-col{grid-template-columns:1fr}
  .hero-inner{grid-template-columns:1fr}
  .hero h1{font-size:38px}
  .cards{grid-template-columns:1fr}
  .cards-2{grid-template-columns:1fr}
  .cta-band-inner{flex-direction:column;align-items:flex-start}
}

@media (max-width: 520px){
  .header-top-inner{height:60px}
  .btn{padding:10px 12px}

  .hero-inner{padding:34px 0}
  .hero h1{
    font-size:32px;
    line-height:1.2;
    max-width:18ch;
  }
  .hero-media{min-height:260px}
  .hero .container{padding-left:20px;padding-right:20px}
  .hero-copy{padding-left:2px}
  .lead{max-width:52ch}

  .footer-inner{flex-direction:column;gap:16px}
  .footer-nav{gap:10px 16px}
}

/* かなり狭い端末ではCTAを少し小さく（任意） */
@media (max-width: 420px){
  .header-cta{font-size:13px;padding:0 10px}
}
@media (max-width: 360px){
  .header-cta{display:none}
}

/* PCでhero左側が寄りすぎるのを緩和（任意） */
@media (min-width: 981px){
  .hero-copy{padding-left:28px}
}


.footer-contact{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:14px;
}

.footer-contact a{
  color:#D1D5DB;
}

.footer-contact a:hover{
  color:#fff;
}

/* search.html の <style> 内に追加 */
.area-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto; /* スマホで横に流せるように */
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.area-selector::-webkit-scrollbar {
  display: none; /* スクロールバーを隠す（任意） */
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap; /* 改行させない */
  flex-shrink: 0;
}

/* ================================
   Soroban page style
   ================================ */

.hero#learn {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
}

.hero#learn h1 {
  font-size: 2.4rem;
  line-height: 1.4;
}

.hero#learn .lead {
  font-size: 1.05rem;
  color: #444;
}

.hero-media {
  background-image: url("../img/soroban-hero.jpg");
  background-size: cover;
  background-position: center;
  min-height: 320px;
  border-radius: 12px;
  position: relative;
}

.hero-media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  border-radius: 0 0 12px 12px;
}

.hero-media-overlay strong {
  font-size: 1.1rem;
}

/* ================================
   section adjustments
   ================================ */

.section-head h2 {
  font-size: 1.9rem;
  letter-spacing: 0.03em;
}

.section-head p {
  max-width: 640px;
  margin: auto;
}

.two-col {
  gap: 50px;
}

/* ================================
   card improvements
   ================================ */

.cards {
  margin-top: 30px;
}

.card {
  border-radius: 14px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

/* ================================
   side card
   ================================ */

.side-card {
  border-radius: 14px;
  padding: 26px;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.side-card h3 {
  margin-bottom: 12px;
}

.bullets li {
  margin-bottom: 6px;
}

/* ================================
   media box
   ================================ */

.media-box {
  background-image: url("../img/soroban-learning.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  min-height: 320px;
}

/* ================================
   CTA band
   ================================ */

.cta-band {
  background: linear-gradient(135deg,#1f4fd8,#3575ff);
  color: #fff;
}

.cta-band h2 {
  font-size: 1.7rem;
}

.cta-band p {
  opacity: .9;
}

/* ================================
   FAQ card spacing
   ================================ */

#faq .card h3 {
  font-size: 1.1rem;
}

#faq .card {
  background: #fff;
}

/* ================================
   responsive
   ================================ */

@media (max-width: 900px) {

.hero#learn h1 {
  font-size: 1.9rem;
}

.hero-media {
  min-height: 220px;
}

.section-head h2 {
  font-size: 1.6rem;
}

.card {
  padding: 22px;
}

.cta-band h2 {
  font-size: 1.5rem;
}

}

/* ================================
   Event page style
   ================================ */

.hero#tournament {
  background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
}

.hero#tournament h1 {
  font-size: 2.4rem;
  line-height: 1.4;
}

.hero#tournament .lead {
  font-size: 1.05rem;
  color: #444;
}

.hero#tournament .hero-media {
  background-image: url("../img/event-hero.jpg");
  background-size: cover;
  background-position: center;
  min-height: 320px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.hero#tournament .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-media-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  color: #fff;
  border-radius: 0 0 12px 12px;
}

.hero-media-overlay strong {
  font-size: 1.1rem;
}

.hero-media-overlay .muted {
  color: rgba(255, 255, 255, 0.9);
}

/* ================================
   section adjustments
   ================================ */

.section-head h2 {
  font-size: 1.9rem;
  letter-spacing: 0.03em;
}

.section-head p {
  max-width: 720px;
  margin: 0 auto;
}

.two-col {
  gap: 50px;
  align-items: start;
}

/* ================================
   cards
   ================================ */

.cards {
  margin-top: 30px;
}

.cards.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  border-radius: 14px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.card p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #444;
}

/* .card .btn {
  margin-top: 14px;
} */

.card-icon {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1;
}

/* ================================
   side card
   ================================ */

.side-card {
  border-radius: 14px;
  padding: 26px;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.side-card h3 {
  margin-bottom: 12px;
}

.side-card .btn {
  margin-top: 12px;
}

/* ================================
   bullets
   ================================ */

.bullets {
  margin: 0;
  padding-left: 1.2em;
}

.bullets li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ================================
   media box
   ================================ */

.media-box {
  background-image: url("../img/event-report.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  min-height: 320px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ================================
   schedule block emphasis
   ================================ */

#schedule .card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

#schedule .card h3 {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(31, 79, 216, 0.12);
}

#schedule .bullets li {
  position: relative;
}

/* ================================
   report / related links
   ================================ */

#report .hero-cta,
.cta-band .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#report .btn,
.cta-band .btn {
  white-space: nowrap;
}

/* ================================
   CTA band
   ================================ */

.cta-band {
  background: linear-gradient(135deg, #1f4fd8, #3575ff);
  color: #fff;
}

.cta-band h2 {
  font-size: 1.7rem;
  line-height: 1.5;
}

.cta-band p {
  opacity: 0.92;
}

.cta-band .btn-invert {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* ================================
   subtle page-specific accents
   ================================ */

#main-events .card:nth-child(1) .card-icon,
#main-events .card:nth-child(2) .card-icon,
#main-events .card:nth-child(3) .card-icon,
#main-events .card:nth-child(4) .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #eef4ff;
}

.section.section-soft {
  background: #f8fbff;
}

/* ================================
   responsive
   ================================ */

@media (max-width: 900px) {
  .hero#tournament h1 {
    font-size: 1.9rem;
  }

  .hero#tournament .hero-media,
  .media-box {
    min-height: 220px;
  }

  .section-head h2 {
    font-size: 1.6rem;
  }

  .cards.cards-2 {
    grid-template-columns: 1fr;
  }

  .card,
  .side-card {
    padding: 22px;
  }

  .cta-band h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 640px) {
  .hero-media-overlay {
    padding: 18px;
  }

  .card h3 {
    font-size: 1.06rem;
  }

  .card p,
  .bullets li {
    font-size: 0.94rem;
  }
}

.contact-form{
max-width:600px;
margin:auto;
}

.form-group{
margin-bottom:20px;
}

.form-group label{
display:block;
margin-bottom:6px;
font-weight:600;
}

.form-group input,
.form-group textarea,
.form-group select{
width:100%;
padding:12px;
border-radius:8px;
border:1px solid #ccc;
font-size:16px;
}

/* ================================
   Contact form
   ================================ */

.contact-form{
  max-width:100%;
}

.form-group{
  margin-bottom:18px;
}

.form-group label{
  display:block;
  margin-bottom:6px;
  font-weight:700;
  color:var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:16px;
  color:var(--ink);
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  border-color:rgba(30,58,138,.45);
  box-shadow:0 0 0 4px rgba(30,58,138,.08);
}

.form-group textarea{
  resize:vertical;
  min-height:160px;
}

#contact-form .side-card{
  height:100%;
}


/* デザインのポイント：余白とカードの立体感 */
.detail-container {
  padding: 60px 0;
  background-color: #f8f9fa; /* 薄いグレーの背景でカードを際立たせる */
}

.shadow {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 30px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.25rem;
  color: var(--brand); /* 支部のブランドカラー */
  border-bottom: 2px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.info-item {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.info-item dt {
  font-weight: bold;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}

.info-item dd {
  font-size: 1.1rem;
  margin-left: 0;
}

.message-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  position: relative;
}

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
  padding: 15px;
  font-weight: bold;
}

/* 投稿カード */
.post-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  padding:16px;
  margin-bottom:16px;
}

/* ヘッダー */
.post-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
}

/* 日付 */
.date{
  font-size:12px;
  color:#666;
}

/* ファイル */
.file-row{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
  border-bottom:1px dashed #eee;
}

/* 追加フォーム */
.file-add{
  margin-top:10px;
}

/* 危険ボタン */
.danger{
  color:#DC2626;
}

/* ===== 管理画面改善CSS ===== */

/* 投稿カード */
.post-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  padding:16px;
  margin-bottom:16px;
}

/* ヘッダー */
.post-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
}

/* 日付 */
.date{
  font-size:12px;
  color:#6B7280;
}

/* 投稿タイトル */
.post-card strong{
  font-size:16px;
}

/* 投稿一覧余白 */
#postList{
  margin-top:16px;
}

/* ===== ファイル行（重要修正） ===== */
.file-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 0;
  border-bottom:1px dashed #eee;
}

/* ★ 修正ポイント：幅制限解除 */
.file-row span{
  flex:1;               /* ← これが重要 */
  font-size:13px;
  color:#374151;
  word-break:break-all; /* 長い名前でも折り返し */
}

/* ボタン */
.btn.small{
  font-size:12px;
  padding:6px 10px;
  border-radius:8px;
  white-space:nowrap;
}

/* 削除ボタン強化 */
.btn.danger{
  color:#fff;
  background:#DC2626;
  border-color:#DC2626;
}

.btn.danger:hover{
  background:#b91c1c;
}

/* 画像 */
.post-card img{
  width:100%;
  border-radius:8px;
  margin-top:10px;
  max-height:220px;
  object-fit:cover;
}

/* ファイル追加フォーム */
.file-add{
  margin-top:10px;
}

/* フォーム整理 */
.side-card form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ログアウト位置 */
#loginInfo{
  margin-bottom:10px;
}

#loginInfo + .btn{
  margin-bottom:20px;
}

/* ボタン横並び */
.file-actions{
  display:flex;
  gap:8px;
  flex-shrink:0;
}

/* 改行させない */
.file-actions .btn{
  white-space:nowrap;
}

/* 全体レイアウト安定 */
/* 全体 */
/* 強制的に効かせる */
.card .file-item{
  display:flex !important;
  align-items:center !important;
  gap:8px;
  margin: 10px;
}

/* ボタン */
.card .file-actions{
  display:flex !important;
  align-items:center !important;
  gap:6px;
}

/* ボタンサイズ統一 */
.card .file-actions .btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center;

  height:32px !important;
  padding:0 10px !important;
  line-height:1;
}

/* ファイル名 */
.card .file-info{
  display:flex !important;
  align-items:center !important;
  gap:6px;
}

.card .file-name{
  line-height:1;
}

.btn-margin-top0{
  margin-top: 0px !important;
}

/* ブランド全体 */
.brand{
  display:flex;
  align-items:center;
  gap:8px;
}

/* テキスト */
.brand-text{
  display:block;
  white-space:nowrap;       /* ←改行禁止 */
  overflow:hidden;
  text-overflow:ellipsis;   /* ←はみ出たら… */
}

/* 長い正式名称 */
.branch{
  display:block;
  font-size:14px;
  line-height:1.2;
}

/* スマホ対応 */
@media(max-width:600px){

  .branch{
    font-size:12px;         /* 小さくする */
  }

}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
}

.branch{
  font-size:14px;
  line-height:1.2;
}

@media(max-width:600px){
  .branch{
    font-size:12px;
  }
}

.header-top-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
  min-width:0;
}

.brand-text{
  overflow:hidden;
}

.branch{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.header-top-actions{
  flex-shrink:0;
}

/* ===== ヘッダー強制修正 ===== */

.header-top-inner{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px;
}

/* 左（ロゴ＋テキスト） */
.brand{
  display:flex !important;
  align-items:center !important;
  gap:6px;

  flex:1 !important;
  min-width:0 !important;
}

/* テキスト */
.brand-text{
  overflow:hidden !important;
}

/* 長い名前 */
.branch{
  display:block;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:13px;
}

/* 右側（ボタン） */
.header-top-actions{
  flex-shrink:0 !important;
}

#training-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.schedule-date {
  min-width: 140px;
  font-weight: bold;
}

.schedule-text {
  flex: 1;
}
.schedule-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.schedule-date {
  width: 120px;   /* ←ここで幅を狭くする */
  font-weight: bold;
}

.schedule-text {
  flex: 1;
}

.schedule-row {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

/* ★交互に色をつける */
.schedule-row:nth-child(odd) {
  background: #f8fafc;
}

.schedule-row:nth-child(even) {
  background: #ffffff;
}

/* ホバーで強調（任意） */
.schedule-row:hover {
  background: #e8eef9;
}

.schedule-type {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: #e5e7eb;
}
.schedule-type[data-type="検定"] { background:#dbeafe; color:#1e40af; }
.schedule-type[data-type="競技"] { background:#fee2e2; color:#991b1b; }
.schedule-type[data-type="講習会"] { background:#dcfce7; color:#166534; }
.schedule-type[data-type="その他"] { background:#f3f4f6; color:#374151; }

#report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.report-date {
  width: 110px;
  font-weight: bold;
}

.report-title {
  flex: 1;
}

.report-files {
  display: flex;
  gap: 6px;
  align-items: center;
}

.file-name {
  font-size: 13px;
  color: #555;
}
/* PC基本 */
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* 上段 */
.report-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.report-date {
  font-weight: bold;
  min-width: 100px;
}

.report-title {
  font-size: 14px;
}

/* ファイル */
.report-files {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ===== スマホ ===== */
@media (max-width: 600px){

  .report-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .report-top {
    width: 100%;
  }

  .report-files {
    width: 100%;
    flex-wrap: wrap;
  }

}

/* ===== 上段（重要＋新着） ===== */
.news-row {
  display: flex;
  gap: 20px;
}

.news-col {
  flex: 1;
}

/* ===== 下段（3つ横並び） ===== */
.info-row {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.info-row .side-card {
  flex: 1;
}

/* ===== スマホ ===== */
@media (max-width: 768px){

  .news-row {
    flex-direction: column;
  }

  .info-row {
    flex-direction: column;
  }

}

/* PCのみ表示 */
.pc-only {
  display: inline-block;
}

/* スマホでは非表示 */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

/* デフォルト（PC） */
.branch .line1,
.branch .line2 {
  display: inline;
}

/* スマホだけ改行 */
@media (max-width: 768px) {

  .branch {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .branch .line1,
  .branch .line2 {
    display: block;
  }

  .branch {
    font-size: 0.9em;
  }
}

.hero-media {
  background-image: url("../images/image1.png"); /* ←画像パス */
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  position: relative;
}
@media (max-width: 768px) {
  .hero-media {
    aspect-ratio: 4 / 3;  /* スマホ用に少し縦長に */
  }
}

.badge {
  display:inline-block;
  background:#eee;
  padding:3px 8px;
  margin-right:8px;
  border-radius:6px;
  font-size:12px;
}

.post-form-card{
  padding:24px;
}

.post-form{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.form-block{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-label{
  font-weight:bold;
  font-size:14px;
  color:#555;
}

.post-form input[type="text"],
.post-form input[type="date"],
.post-form textarea{

  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:15px;
  box-sizing:border-box;
}

.post-form textarea{
  min-height:140px;
  resize:vertical;
}

.post-form-bottom{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  flex-wrap:wrap;
}

.date-block{
  width:220px;
}

.post-submit-btn{
  min-width:160px;
  height:48px;
  font-size:16px;
  font-weight:bold;
}

.post-form select{

  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:15px;
  box-sizing:border-box;
  background:#fff;
}

.post-form-card{
  padding:24px;
  border-radius:14px;
}

.post-form{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.form-block{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-label{
  font-size:14px;
  font-weight:bold;
  color:#555;
}

.post-form input,
.post-form textarea,
.post-form select{

  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:15px;
  box-sizing:border-box;
  background:#fff;
}

.post-form textarea{
  min-height:120px;
  resize:vertical;
}

.post-form-bottom{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  align-items:flex-end;
}

.date-block{
  width:220px;
}

.post-submit-btn{
  min-width:160px;
  height:48px;
  font-size:16px;
  font-weight:bold;
}

/* =========================
   モバイルメニュー
========================= */

.mobile-nav{
  display:none;
  background:#fff;
  border-top:1px solid #ddd;
}

.mobile-nav.open{
  display:block;
}

.mobile-nav .container{
  display:flex;
  flex-direction:column;
  padding:12px 0;
}

.mobile-nav a{
  padding:12px 16px;
  border-bottom:1px solid #eee;
  text-decoration:none;
  color:#333;
}

/* =========================
   スマホ時
========================= */

@media (max-width: 768px){

  .header-nav{
    display:none;
  }

  .burger{
    display:flex;
    flex-direction:column;
    gap:4px;
    background:none;
    border:none;
    cursor:pointer;
  }

  .burger span{
    width:24px;
    height:2px;
    background:#333;
    display:block;
  }

}

/* =========================
   スマホ時
========================= */

@media (max-width:768px){

  /* 上部ボタン非表示 */
  .header-top-actions .header-cta{
    display:none;
  }

}

/* =========================
   トップ画像（ページ別）
========================= */

.hero#home-hero .hero-media,
.hero#learn .hero-media,
.hero#tournament .hero-media {
  background-image: url("../images/top1.jpg");
}

.section#branch-thoughts .media-box {
  background-image: url("../images/image_about.png");
}

.section#why-now .media-box {
  background-image: url("../images/4f4c8473-3af5-4885-a477-2d7a21ea6eff.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  aspect-ratio: 3 / 2;
  min-height: 0;
}

.section#report .media-box {
  background-image: url("../images/kyogi.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
}

.hero#recruit-pro .hero-media {
  background-image: url("../images/image_recuruit.png");
}

/* =========================
   神奈川県珠算連合会 併記
========================= */
.header-top-inner{
  height:auto;
  min-height:64px;
  padding:8px 0;
}
@media (max-width:520px){
  .header-top-inner{
    height:auto;
    min-height:60px;
  }
}
.brand-rows{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.brand-row{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.line3{
  font-size:18px;
  font-weight:800;
  white-space:normal;
}
.logo-mini{
  width:40px;
  height:40px;
  object-fit:contain;
  flex-shrink:0;
}
