:root {
    color-scheme: light;
    --cream: #fff5df;
    --gold: #cba526;
    --brown: #725100;
    --ink: #242424;
    --line: #e9dfca;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #faf8f2; font: 16px/1.6 Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; }
.topline { height: 8px; background: var(--gold); }
.site-header { position: relative; z-index: 20; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { width: min(100%, 1600px); min-height: 92px; padding: 8px 20px; margin: auto; display: flex; align-items: center; gap: 16px; }
.brand { flex: 0 0 108px; display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; max-width: 100%; height: auto; max-height: 74px; object-fit: contain; }
.site-nav { flex: 1; min-width: 0; }
.nav-list, .submenu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(4px, .45vw, 8px); }
.nav-item { position: relative; flex: 0 0 auto; }
.nav-line { display: flex; align-items: center; }
.nav-line > a { position: relative; display: block; padding: 12px 0; color: var(--brown); text-decoration: none; white-space: nowrap; font-family: 'Roboto Slab', Georgia, serif; font-size: clamp(12.5px, .96vw, 15px); font-weight: 700; }
.nav-line > a:hover, .nav-line > a:focus-visible { color: #a37800; }
.nav-item.is-current .nav-line > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 2px; background: var(--brown); }
.submenu-toggle { display: none; }
.submenu { position: absolute; top: 100%; left: -14px; min-width: 200px; max-width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(35, 25, 0, .14); border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 8px 10px; border-radius: 5px; color: #523c00; text-decoration: none; white-space: nowrap; font-size: 14px; }
.submenu a:hover, .submenu a:focus-visible { background: var(--cream); }
.menu-toggle { display: none; }

.page-main { min-height: calc(100vh - 180px); }
.page-container { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 58px 0 86px; }
.page-intro { max-width: 850px; margin-bottom: 34px; }
.page-number, .section-number { color: #a67e0b; font-weight: 700; letter-spacing: .12em; }
.page-number { display: inline-block; margin-bottom: 10px; font-size: 13px; }
h1, h2 { font-family: 'Roboto Slab', Georgia, serif; }
.page-intro h1 { margin: 0 0 12px; color: #5c4200; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; }
.page-intro p { margin: 0; color: #5b574e; font-size: 18px; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.section-card { min-height: 210px; padding: 28px 30px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; box-shadow: 0 8px 24px rgba(55, 40, 0, .045); scroll-margin-top: 26px; }
.section-number { display: block; margin-bottom: 17px; font-size: 12px; }
.section-card h2 { margin: 0 0 12px; color: #533d06; font-size: clamp(20px, 2vw, 25px); line-height: 1.3; }
.section-card p { margin: 0; color: #77746f; }
.home-link { display: inline-block; margin-top: 25px; padding: 10px 18px; color: #fff; background: var(--brown); border-radius: 6px; text-decoration: none; }

.club-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.club-card { min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 30px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; text-decoration: none; box-shadow: 0 8px 24px rgba(55, 40, 0, .045); transition: transform .18s, box-shadow .18s; }
.club-card:hover, .club-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(55, 40, 0, .12); }
.club-card-number { color: #a67e0b; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.club-card h2 { margin: 17px 0 12px; color: #533d06; font-size: clamp(21px, 2vw, 27px); line-height: 1.35; }
.club-status { display: inline-block; padding: 5px 10px; border: 1px solid #e3d9c3; border-radius: 999px; color: #775b1a; background: #faf6e9; font-size: 13px; font-weight: 700; }
.club-status.is-launched { color: #225b38; background: #eaf6ee; border-color: #c7e3d0; }
.club-card-link { margin-top: auto; padding-top: 17px; color: var(--brown); font-size: 14px; font-weight: 700; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; color: #706b5d; font-size: 14px; }
.breadcrumb a { color: var(--brown); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.club-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 30px; margin-bottom: 30px; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.club-logo-placeholder { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 2px dashed #d6c69e; border-radius: 10px; background: #fcf8ed; color: #765d1c; text-align: center; }
.club-logo-placeholder span { font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: 19px; }
.club-logo-placeholder small { font-size: 12px; }
.club-hero h1 { margin: 13px 0 11px; color: #5c4200; font-family: 'Roboto Slab', Georgia, serif; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; }
.club-hero p { max-width: 650px; margin: 0; color: #5b574e; font-size: 17px; }
.club-quick-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 42px; }
.club-quick-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--brown); text-decoration: none; font-size: 13px; font-weight: 700; }
.club-quick-nav a:hover, .club-quick-nav a:focus-visible { background: var(--cream); }
.club-group { margin: 0 0 42px; scroll-margin-top: 24px; }
.club-group h2 { margin: 0 0 17px; padding-left: 15px; border-left: 4px solid var(--gold); color: #533d06; font-size: clamp(22px, 2.2vw, 29px); }
.club-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.club-detail-card { min-height: 126px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.club-detail-card h3 { margin: 0 0 10px; color: #554009; font-size: 17px; line-height: 1.35; }
.club-detail-card p { margin: 0; color: #77746f; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner { width: min(100% - 40px, 1180px); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #715c2a; font-size: 14px; }

@media (max-width: 1199px) {
    .header-inner { min-height: 78px; justify-content: space-between; }
    .brand { flex-basis: 95px; }
    .brand img { max-height: 62px; }
    .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
    .menu-toggle span { display: block; width: 25px; height: 2px; background: var(--brown); }
    .site-nav { display: none; position: absolute; top: 100%; right: 0; width: min(360px, 100vw); max-height: calc(100vh - 86px); overflow-y: auto; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
    .site-nav.is-open { display: block; }
    .nav-list { display: block; }
    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-line > a { flex: 1; padding: 13px 18px; font-size: 15px; white-space: normal; }
    .nav-item.is-current .nav-line > a::after { display: none; }
    .submenu-toggle { display: block; width: 42px; height: 42px; flex: 0 0 42px; border: 0; background: transparent; color: var(--brown); font-size: 22px; cursor: pointer; }
    .submenu { display: none; position: static; max-width: none; min-width: 0; padding: 0 12px 10px 24px; background: transparent; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .nav-item:hover .submenu, .nav-item:focus-within .submenu { display: none; }
    .nav-item.is-open .submenu, .nav-item.is-open:hover .submenu, .nav-item.is-open:focus-within .submenu { display: block; }
}
@media (max-width: 680px) {
    .page-container { width: min(100% - 32px, 1180px); padding-top: 42px; padding-bottom: 62px; }
    .page-intro p { font-size: 16px; }
    .section-grid, .club-grid, .club-detail-grid { grid-template-columns: 1fr; gap: 16px; }
    .section-card { min-height: 170px; padding: 22px 24px; }
    .club-card { min-height: 200px; padding: 22px 24px; }
    .club-hero { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .club-logo-placeholder { min-height: 145px; max-width: 170px; }
    .club-hero p { font-size: 16px; }
    .club-group { margin-bottom: 32px; }
    .footer-inner { width: min(100% - 32px, 1180px); }
}
@media (min-width: 681px) and (max-width: 900px) {
    .club-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
