/* ==========================================================
   File: /common/css/base.css
   Project: Karuizawa Symphonic Chorus Website
   Revision: Rev.F (2025-10-29)
   Description:
     全ページ共通の基本デザイン。
     フォント・配色・リンク・段落・表など。
     normalize.css（reset.css）後に読み込む。
   ========================================================== */

/* ---- フォント・ベース ---- */
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  line-height: 1.8;
  color: #222;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ---- リンク ---- */
a {
  color: #006d5b;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover,
a:focus {
  color: #00a58b;
  opacity: 0.9;
}

/* ---- 見出し ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin: 1.2em 0 0.5em;
}
h1 small, h2 small, h3 small {
  font-weight: 400;
  color: #666;
}

/* ---- 段落・リスト ---- */
p {
  margin-bottom: 1em;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.4em;
}

/* ---- ボタン ---- */
.btn a {
  display: inline-block;
  padding: 0.5em 1.2em;
  border: 1px solid #007b65;
  border-radius: 4px;
  background-color: #00a58b;
  color: #fff;
  font-weight: 500;
  transition: background-color 0.25s, transform 0.25s;
}
.btn a:hover {
  background-color: #009178;
  transform: translateY(-1px);
}

/* ---- 画像 ---- */
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

/* ---- 表 ---- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
th, td {
  border: 1px solid #ccc;
  padding: 0.5em 0.8em;
}
th {
  background-color: #f5f5f5;
  font-weight: 600;
  text-align: left;
}

/* ---- コード／引用 ---- */
code, pre {
  background: #f2f2f2;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.95em;
}
blockquote {
  border-left: 4px solid #00a58b;
  padding-left: 1em;
  color: #555;
  font-style: italic;
}

/* ---- footer ---- */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  background: #f7f7f7;
  padding: 2em 1em;
}

/* ---- 上へ戻るボタン ---- */
.totop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
}
.totop img {
  width: 48px;
  height: 48px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.totop img:hover {
  opacity: 1;
}

/* ---- 小要素 ---- */
.smallnote {
  font-size: 0.9em;
  color: #777;
}
.highlight {
  color: #d02;
  font-weight: 600;
}
