/* =========================
   塾長ノート専用スタイル
   ========================= */

.note-page {
  background: #f7f3eb;
  color: #2f2f2f;
}

.note-page .site-header {
  background: rgba(247, 243, 235, 0.94);
  border-bottom: 1px solid #ddd5c9;
}

.note-page .nav a {
  color: #3d4650;
}

.note-page .nav a:hover {
  color: #596b7a;
}

.note-page .logo-main,
.note-page .logo-sub {
  color: #2f2f2f;
}

/* hero */
.note-hero {
  padding: 92px 0 78px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36) 0%, rgba(247,243,235,1) 100%);
}

.note-hero-inner {
  max-width: 820px;
}

.note-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ece5d9;
  color: #596b7a;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.note-title {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  color: #2f2f2f;
  letter-spacing: 0.02em;
}

.note-lead {
  margin: 0 0 14px;
  font-size: 1.14rem;
  line-height: 1.9;
  color: #3f3f3f;
}

.note-sublead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: #666055;
}

.note-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.note-page .btn-primary {
  background: #596b7a;
  border-color: #596b7a;
}

.note-page .btn-primary:hover {
  background: #4b5a67;
  border-color: #4b5a67;
}

.note-page .btn-secondary {
  background: transparent;
  border: 1px solid #bfb5a8;
  color: #4a433b;
}

.note-page .btn-secondary:hover {
  background: #efe7db;
  border-color: #a89d90;
}

/* intro */
.note-intro {
  padding-top: 10px;
}

.note-intro-box {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

.note-intro-text,
.note-mini-card,
.note-closing-box {
  background: rgba(255,255,255,0.55);
  border: 1px solid #ddd5c9;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(70, 60, 45, 0.05);
}

.note-intro-text {
  padding: 30px 28px;
}

.note-intro-text h2,
.note-closing-box h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
  color: #2f2f2f;
}

.note-intro-text p,
.note-mini-card li,
.note-closing-box p {
  font-size: 1rem;
  line-height: 1.9;
  color: #4f4942;
}

.note-mini-card {
  padding: 24px 22px;
}

.note-mini-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #596b7a;
}

.note-mini-card ul {
  margin: 0;
  padding-left: 1.2em;
}

/* section head */
.note-section-head {
  margin-bottom: 24px;
}

.note-section-label {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b7368;
}

.note-home-title {
  margin-bottom: 10px;
}

/* featured notes */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.note-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid #ddd5c9;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(70, 60, 45, 0.08);
  border-color: #cbbfb1;
}

.note-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.note-card-body {
  padding: 24px 22px;
}

.note-category {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #596b7a;
  background: #ece5d9;
  padding: 5px 10px;
  border-radius: 999px;
}

.note-card h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #2f2f2f;
}

.note-card p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.85;
  color: #55514a;
}

.note-readmore {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: #596b7a;
}

/* themes */
.note-theme-section {
  padding-top: 12px;
}

.note-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note-tag {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #efe7db;
  color: #4e463d;
  border: 1px solid #d8d1c7;
  font-size: 0.95rem;
  font-weight: 600;
}

/* closing */
.note-closing-box {
  padding: 34px 30px;
}

.note-closing-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.note-footer {
  background: #ede4d7;
  color: #433d36;
}

.note-footer .footer-links a {
  color: #433d36;
}

/* responsive */
@media (max-width: 920px) {
  .note-intro-box {
    grid-template-columns: 1fr;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .note-hero {
    padding: 74px 0 58px;
  }

  .note-title {
    font-size: 2.4rem;
  }

  .note-lead {
    font-size: 1rem;
  }

  .note-sublead {
    font-size: 0.95rem;
  }

  .note-intro-text,
  .note-mini-card,
  .note-closing-box,
  .note-card-body {
    padding: 22px 18px;
  }
}

/* =========================
   塾長ノート 記事ページ
   ========================= */

.note-article-page {
  padding: 48px 0 72px;
}

.note-article-wrap {
  max-width: 860px;
}

.note-article-header {
  margin-bottom: 26px;
}

.note-article-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ece5d9;
  color: #596b7a;
  font-size: 0.85rem;
  font-weight: 700;
}

.note-article-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.35;
  color: #2f2f2f;
}


.note-article-card {
  background: rgba(255,255,255,0.62);
  border: 1px solid #ddd5c9;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(70, 60, 45, 0.05);
  padding: 34px 30px;
}

.note-article-body {
  color: #403a34;
}

.note-article-body p {
  margin: 0 0 1.25em;
  font-size: 1.02rem;
  line-height: 2;
}

.note-article-body h2 {
  margin: 2.3em 0 0.8em;
  font-size: 1.45rem;
  line-height: 1.5;
  color: #2f2f2f;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd5c9;
}

.note-article-body blockquote {
  margin: 1.8em 0;
  padding: 16px 18px;
  border-left: 4px solid #596b7a;
  background: #f1ebe1;
  color: #3d3a36;
  font-size: 1rem;
  line-height: 1.9;
}

.note-article-body ul {
  margin: 0 0 1.4em 1.2em;
  padding: 0;
}

.note-article-body li {
  margin-bottom: 0.55em;
  line-height: 1.85;
  color: #4b463f;
}

.note-related-section {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #ddd5c9;
}

.note-related-section h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: #596b7a;
}

.note-related-list {
  margin: 0;
  padding-left: 1.2em;
}

.note-related-list li {
  margin-bottom: 0.7em;
}

.note-related-list a {
  color: #4d5f6f;
  text-decoration: none;
}

.note-related-list a:hover {
  text-decoration: underline;
}

.note-article-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .note-article-page {
    padding: 28px 0 56px;
  }

  .note-article-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .note-article-title {
    font-size: 2rem;
  }

  .note-article-body h2 {
    font-size: 1.28rem;
  }
}

/* =========================
   塾長ノート 一覧セクション
   ========================= */

.note-all-section {
  padding-top: 8px;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-list-item {
  background: rgba(255,255,255,0.64);
  border: 1px solid #ddd5c9;
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.note-list-item:hover {
  border-color: #cbbfb1;
  box-shadow: 0 10px 24px rgba(70, 60, 45, 0.06);
  transform: translateY(-2px);
}

.note-list-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  color: inherit;
  text-decoration: none;
}

.note-list-link {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 24px;
  align-items: center;
}

.note-list-meta {
  width: 108px;
  display: flex;
  justify-content: flex-start;
}

.note-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  white-space: nowrap;
}

.note-list-main h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2f2f2f;
}

.note-list-main p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.85;
  color: #5a544d;
}

.note-list-arrow {
  font-size: 1.25rem;
  color: #596b7a;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 720px) {
  .note-list-link {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px;
  }

  .note-list-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .note-list-link {
    display: block;
  }

  .note-list-meta {
    width: auto;
    margin-bottom: 10px;
  }

  .note-category {
    min-width: auto;
  }
}

/* =========================
   塾長ノート記事：共通記事構造
   ========================= */

.note-page .article-subtitle,
.note-article-subtitle {
  max-width: 760px;
  margin: 18px auto 0;
  color: #5d564d;
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: left;
}

@media (max-width: 640px) {
  .note-page .article-subtitle,
  .note-article-subtitle {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.8;
  }
}

.note-figure img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

/* =========================
   塾長ノート記事：数式・画像
   ========================= */

.math-inline-box {
  margin: 1.4rem 0;
  padding: 16px 18px;
  border-left: 4px solid #596b7a;
  background: #f1ebe1;
  color: #3d3a36;
  font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1rem;
  line-height: 1.9;
  white-space: nowrap;
  overflow-x: auto;
}

.note-figure {
  margin: 1.8rem 0;
  text-align: center;
}

.note-figure img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.note-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #6a6258;
}

.math-figure img {
  max-width: 720px;
  background: #fff;
  border: 1px solid #ddd5c9;
  box-shadow: 0 8px 20px rgba(70, 60, 45, 0.06);
}

@media (max-width: 640px) {
  .math-inline-box {
    font-size: 0.95rem;
    padding: 14px 16px;
  }

  .note-figure {
    margin: 1.5rem 0;
  }

  .note-figure figcaption {
    font-size: 0.86rem;
  }
}

/* =========================
   MathJax 数式表示
   ========================= */

.note-article-body mjx-container[jax="SVG"][display="true"] {
  margin: 1.6rem 0;
  padding: 0.35rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.note-article-body mjx-container {
  max-width: 100%;
}

@media (max-width: 640px) {
  .note-article-body mjx-container[jax="SVG"][display="true"] {
    margin: 1.35rem 0;
  }
}

/* =========================
   数学記事：数式ボックス
   ========================= */

.math-box {
  margin: 1.6rem 0;
  padding: 1.1rem 1.2rem;
  background: #f1ebe1;
  border-left: 4px solid #596b7a;
  border-radius: 0 12px 12px 0;
  color: #3d3a36;
  overflow-x: auto;
}

.math-box mjx-container[jax="SVG"][display="true"] {
  margin: 0.7rem 0;
  padding: 0.2rem 0;
}

.math-box mjx-container[jax="SVG"][display="true"]:first-child {
  margin-top: 0;
}

.math-box mjx-container[jax="SVG"][display="true"]:last-child {
  margin-bottom: 0;
}

.math-box-label {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #596b7a;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .math-box {
    padding: 1rem;
    margin: 1.4rem 0;
  }
}

/* =========================
   記事内画像・数学図版
   ========================= */

.note-figure {
  margin: 1.8rem 0;
  text-align: center;
}

.note-figure img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.note-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #6a6258;
}

.math-figure img {
  max-width: 720px;
  background: #fff;
  border: 1px solid #ddd5c9;
  box-shadow: 0 8px 20px rgba(70, 60, 45, 0.06);
}

@media (max-width: 640px) {
  .note-figure {
    margin: 1.5rem 0;
  }

  .note-figure figcaption {
    font-size: 0.86rem;
  }
}

/* =========================
   数学記事：グラフ図版
   ========================= */

.graph-box {
  margin: 1.8rem 0;
  padding: 1rem 1.1rem;
  background: #f8f4ee;
  border: 1px solid #e2d8cb;
  border-radius: 14px;
  overflow-x: auto;
}

.graph-box-label {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #596b7a;
  letter-spacing: 0.04em;
}

.graph-svg {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

.graph-caption {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #6a6258;
  text-align: center;
}

@media (max-width: 640px) {
  .graph-box {
    padding: 0.9rem;
    margin: 1.5rem 0;
  }

  .graph-caption {
    font-size: 0.86rem;
  }
}