/* サイト全体のCSS。このファイルをCMSから丸ごと置き換えられます。
   主なクラス: site-header, site-logo, desktop-nav, mobile-navigation,
   page-content, content-card, page-title, section-title, primary-button,
   social-button, service-grid, service-card, site-footer, prose, muted */
:root { color-scheme: light; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; color: #26324a; background: #f7f8fb; line-height: 1.85; letter-spacing: .025em; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
::selection { color: white; background: #315aa8; }
a { color: #315aa8; text-underline-offset: .2em; }
a:hover { color: #203358; }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, ul { margin-top: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h2 { font-size: 1.25rem; }
h3 { margin: 1.25rem 0 .5rem; font-size: 1rem; }
p { margin-bottom: .8rem; }
ul { padding-left: 1.5rem; }
li + li { margin-top: .3rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .88); border-bottom: 1px solid #d3dbe8; box-shadow: 0 8px 30px rgb(38 50 74 / .05); backdrop-filter: blur(14px); }
.header-inner { max-width: 64rem; margin: auto; padding: 0 1.25rem; height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: bold; color: inherit; text-decoration: none; letter-spacing: .08em; }
.site-logo img { border: 1px solid #f1f5f9; border-radius: .375rem; object-fit: cover; }
.desktop-nav { display: flex; gap: 2rem; font-size: .875rem; }
.desktop-nav a { position: relative; padding: 1rem .15rem; text-decoration: none; color: inherit; }
.desktop-nav a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: #315aa8; font-weight: bold; }
.desktop-nav a::after { position: absolute; right: 50%; bottom: .45rem; left: 50%; height: 3px; content: ""; border-radius: 999px; background: #f0a23a; transition: right 180ms, left 180ms; }
.desktop-nav a:hover::after { right: 0; left: 0; }
.mobile-navigation { display: none; }
.page-content { flex: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: 3rem 1.25rem; }
.page-content > section, .content-card { position: relative; padding: clamp(1.35rem, 4vw, 2.25rem); border: 1px solid #d8dfea; border-radius: 1.25rem; background: rgb(255 255 255 / .94); box-shadow: 0 12px 38px rgb(43 57 84 / .07); margin-bottom: 2.5rem; overflow-wrap: anywhere; }
.page-content > section { border-left: 4px solid #7e9dd2; scroll-margin-top: 6rem; }
.page-title { padding-bottom: .75rem; color: #203358; letter-spacing: .07em; margin-bottom: 1.25rem; line-height: 1.5; }
.section-title { color: #203358; margin-bottom: 1.25rem; line-height: 1.6; }
.hero { text-align: center; padding-block: 3rem; }
.page-intro { text-align: center; margin-bottom: 2.5rem; }
.muted { color: #6f7889; }
.small { font-size: .875rem; }
.prose { white-space: pre-line; }
.primary-button, .social-button { display: inline-block; padding: .625rem 1.5rem; margin: .25rem 0 1rem; border-radius: .75rem; color: white; font-weight: bold; text-decoration: none; background: #526d9f; transition: background 160ms; }
.primary-button:hover { background: #455f8e; color: white; }
.social-button { background: #020617; }
.social-button:hover { background: #26324a; color: white; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: .5rem .75rem; border: 1px solid #dce2ec; }
thead th { color: #203358; background: #eef3fb; }
tbody th { width: 5rem; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f9fafb; }
tbody tr:hover { background: #fff8e9; }
.portal-content { max-width: 48rem; margin: auto; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.service-card { display: flex; flex-direction: column; align-items: center; padding: 2rem 1.25rem; border: 1px solid #dce2ec; border-radius: .75rem; background: white; color: inherit; text-align: center; text-decoration: none; transition: transform 200ms, box-shadow 200ms; }
.service-card:hover { transform: translateY(-.25rem); box-shadow: 0 8px 28px rgb(48 133 238 / .12); }
.service-icon { font-size: 2.25rem; line-height: 1; margin-bottom: .75rem; }
.page-note { text-align: center; font-size: .875rem; }
.error-page { max-width: 42rem; margin-inline: auto; text-align: center; }
.error-code { color: #315aa8; letter-spacing: .2em; font-weight: bold; }
.site-footer { padding: 1.5rem 1.25rem; border-top: 1px solid #dce2ec; background: rgb(255 255 255 / .62); color: #6f7889; text-align: center; font-size: .75rem; }
.site-footer p { margin: 0; }
@media (min-width: 640px) { .page-content { padding-block: 4rem; } .hero { padding-block: 4rem; } }
@media (max-width: 639px) {
  .desktop-nav { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation summary { cursor: pointer; font-size: 1.5rem; padding: .25rem .5rem; list-style: none; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-menu { position: absolute; inset: 4rem 0 auto; display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1.25rem; border-top: 1px solid #dce2ec; background: white; box-shadow: 0 8px 15px #26324a15; }
  .mobile-menu a { text-decoration: none; }
  .page-content > section, .content-card { border-radius: 1rem; }
  .service-grid { grid-template-columns: 1fr; }
}

/* ページの本文（Markdown。manken-website-data の pages/*.md）
   - 本文の最初（最初の ## より前）は、ホームでは .hero、活動内容では .page-intro の箱に入る。## ごとに section の枠になる。
   - 段落にリンクだけを書くと、Discord と X へのリンクはボタンの見た目になる。
   - 表の最初の列（年間予定の月）は見出しのように太字にする。 */
.hero p, .page-intro p, .error-page p:not(.error-code) { color: #6f7889; }
.page-content p > a:only-child:is([href^="https://discord.gg/"], [href^="https://discord.com/"], [href^="https://x.com/"]) { display: inline-block; padding: .625rem 1.5rem; margin: .25rem 0 1rem; border-radius: .75rem; color: white; font-weight: bold; text-decoration: none; background: #526d9f; transition: background 160ms; }
.page-content p > a:only-child:is([href^="https://discord.gg/"], [href^="https://discord.com/"]):hover { background: #455f8e; color: white; }
.page-content p > a:only-child[href^="https://x.com/"] { background: #020617; }
.page-content p > a:only-child[href^="https://x.com/"]:hover { background: #26324a; color: white; }
.page-content tbody td:first-child { width: 5rem; white-space: nowrap; font-weight: bold; }
/* ボタンだけの段落は余白を足さない。Discord のボタンのすぐ下の箇条書き（注意書き）は小さく薄くする。 */
.page-content p:has(> a:only-child:is([href^="https://discord.gg/"], [href^="https://discord.com/"], [href^="https://x.com/"])) { margin-bottom: 0; }
.page-content p:has(> a:only-child:is([href^="https://discord.gg/"], [href^="https://discord.com/"])) + ul { color: #6f7889; font-size: .875rem; }

/* 部内ポータルのカード。本文の「リンクで始まる箇条書き」が ul.service-grid > li.service-card になる（manken-astro の cms/markdown.mjs）。 */
ul.service-grid { margin-top: 0; padding: 0; list-style: none; }
li.service-card { position: relative; margin: 0; }
li.service-card > a { display: flex; flex-direction: column; align-items: center; color: inherit; font-weight: 700; text-decoration: none; }
li.service-card > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
