@charset "utf-8";

/* ------------------------------
   学年ボタン
------------------------------ */
.gradeButton {
  display: inline-block;
  padding: 12px 24px;
  background: #f8d9f0;          /* やさしいピンク */
  color: #751160;               /* サイトのアクセントカラー */
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #f4b6e7;    /* 薄いピンクの枠 */
  transition: 0.2s;
}

.gradeButton:hover {
  background: #f4b6e7;          /* 少し濃いピンク */
  color: #ffffff;
}

/* --- カード全体 --- */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  margin: 0 auto;
  max-width: 720px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* コード記述 */
.code-wrapper {
  display: flex;
  font-family: monospace;
  border: 1px solid black;
  background-color: black;
  color: white;
  max-width: 800px;
  max-height: 200px;
  margin: 10px;
}
.line-numbers {
  background-color: black;
  color: #2463b6;
  padding: 10px 5px;
  text-align: right;
  user-select: none;
  overflow-y: scroll;
}
.code-content {
  padding: 10px;
  white-space: pre;
  flex: 1;
  overflow: auto;
}
/* 同期スクロール */
.code-content::-webkit-scrollbar {
  width: 8px;
}
.line-numbers::-webkit-scrollbar {
  width: 8px;
}

/* VBA コメント色（緑） */
.comment {
  color: #198f62;
  font-weight: bold;
}

/* 章カード */
.month-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  margin: 0 auto 28px auto;
  max-width: 900px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* 章タイトル */
.month-title {
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #d8e6f5;
  font-size: 1.3rem;
  color: #334155;
}

/* サブタイトル（論文タイトル下） */
.subtitle {
  margin: 4px 0 12px 0;
  font-size: 1.1rem;
  color: #475569;
}

/* 著者名 */
.author {
  text-align: right;
  margin: 0 0 12px 0;
  color: #475569;
}

/* 本文 */
.text {
  font-size: 1rem;
  line-height: 1.9;
  color: #334155;
}

/* インデント用 */
.indentation1pt {
  display: block;
  margin-left: 1em;
}

/* 小見出し */
.subTitle {
  font-weight: bold;
  color: #1e3a8a;
  display: block;
  margin: 12px 0 3px 0;
}

/* ページ区切り（印刷時のみ） */
.page-break {
  page-break-before: always;
}

/* 全体レイアウト */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

/* 見出し */
.heading {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: #334155;
  border-left: 4px solid #f9a8d4;
  padding-left: 8px;
}

.subheading {
  font-size: 1.05rem;
  margin: 18px 0 8px;
  color: #475569;
  text-align: left;
}

/* セクションカード風 */
.section {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* 目次 */
.index {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  line-height: 1.8;
}

.index a {
  color: #2563eb;
  text-decoration: none;
}

.index a:hover {
  text-decoration: underline;
}

/* 本文テキスト */
.section p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #334155;
}

.space {
  margin-top: 16px;
}

/* リスト */
.list {
  padding-left: 1.2em;
  margin: 4px 0 12px;
}

.list li {
  margin-bottom: 4px;
}

/* リンク */
.link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* 画像（本文内） */
.section img {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 6px;
}

/* コードブロック */
.code-wrapper {
  position: relative;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0 20px;
  background: #0f172a;
  color: #e5e7eb;
  font-family: "Consolas", "SFMono-Regular", Menlo, Monaco, monospace;
  font-size: 0.85rem;
}

/* 行番号とコード本体を横並びに */
.line-numbers {
  padding: 10px 8px;
  margin: 0;
  text-align: right;
  color: #64748b;
  background: #020617;
  min-width: 2.5em;
}

.code-content {
  padding: 10px 12px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .month-card {
    padding: 18px;
  }
  
  .text {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .page {
    padding: 12px;
  }
  
  .section {
    padding: 16px;
  }

  .heading {
    font-size: 1.1rem;
  }

  .section p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .indentation1pt {
    padding-left: 0.5em;
  }

  table th:nth-child(1),
  table td:nth-child(1) {
    width: 20%;
  }

  table th:nth-child(2),
  table td:nth-child(2) {
    width: 40%;
  }

  table th:nth-child(3),
  table td:nth-child(3) {
    width: 40%;
  }
}

