/* 家恵ガーデンの読みもの。styles.css / brand.css の後に読み込みます。 */
.notes-index,
.notes-article {
  color: var(--ink, #173f2b);
  background: var(--paper, #f8f5ec);
  overflow-wrap: anywhere;
}

.notes-shell {
  width: min(1180px, calc(100% - 112px));
  min-width: 0;
  margin-inline: auto;
}

.notes-intro {
  padding-block: 36px 68px;
  border-bottom: 1px solid var(--line, #deddd0);
  background: linear-gradient(135deg, var(--white, #fffefa), var(--paper, #f8f5ec));
}

.notes-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  margin-bottom: 58px;
  color: var(--muted, #717568);
  font-size: 13px;
  line-height: 1.8;
}

.notes-breadcrumb a,
.notes-back {
  text-decoration: underline;
  text-decoration-color: var(--gold-light, #d8c698);
  text-underline-offset: 5px;
}

.notes-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: #806a34;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
}

.notes-eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 34px;
  height: 1px;
  background: var(--gold, #a68a48);
}

.notes-title {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .07em;
}

.notes-title-break { display: none; }

.notes-description {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted, #717568);
  font-size: 16px;
  line-height: 2.1;
}

.notes-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.notes-topics > li {
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--gold-light, #d8c698);
}

.notes-topic-number {
  display: block;
  margin-bottom: 12px;
  color: #806a34;
  font-family: var(--latin, serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.3;
}

.notes-topics h2 {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .04em;
}

.notes-topics p {
  margin: 14px 0 0;
  color: var(--muted, #717568);
  font-size: 16px;
  line-height: 1.95;
}

.notes-list {
  padding-block: 70px 92px;
}

.notes-list-header {
  margin-bottom: 32px;
}

.notes-list-header h2 {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .06em;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 26px;
  min-width: 0;
}

.notes-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line, #deddd0);
  border-radius: 9px;
  color: var(--ink, #173f2b);
  background: var(--white, #fffefa);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.notes-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold, #a68a48);
}

.notes-grid .notes-card figure {
  flex-shrink: 0;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 2;
  background: var(--sand, #eeecdf);
}

.notes-grid .notes-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notes-card-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
}

.notes-category {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #dcd3b5;
  border-radius: 3px;
  color: #75612f;
  background: #f6f1e2;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .03em;
}

.notes-card time {
  display: block;
  margin-top: 12px;
  color: var(--muted, #717568);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .05em;
}

.notes-card h2 {
  width: 100%;
  margin: 15px 0 0;
  font-family: var(--serif, serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .025em;
}

.notes-card h2 a { color: inherit; text-decoration: none; }

.notes-card p {
  width: 100%;
  margin: 15px 0 24px;
  color: var(--muted, #717568);
  font-size: 16px;
  line-height: 1.95;
}

.notes-card-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-block: 8px 4px;
  border-bottom: 1px solid var(--gold-light, #d8c698);
  color: var(--ink, #173f2b);
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
}

.notes-empty {
  display: none;
  padding: 64px 30px;
  border: 1px solid var(--line, #deddd0);
  border-radius: 9px;
  background: var(--white, #fffefa);
  text-align: center;
}

.notes-grid:empty + .notes-empty { display: block; }

@supports selector(:has(*)) {
  .notes-grid:not(:has(.notes-card)) + .notes-empty { display: block; }
  .notes-grid:has(.notes-card) + .notes-empty { display: none; }
}

.notes-empty::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 0 auto 25px;
  background: var(--gold, #a68a48);
}

.notes-empty h3 {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: clamp(23px, 2.5vw, 29px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .04em;
}

.notes-empty p {
  max-width: 600px;
  margin: 20px auto 0;
  color: var(--muted, #717568);
  font-size: 16px;
  line-height: 2;
}

.notes-consult {
  margin-top: 55px;
  padding-top: 28px;
  border-top: 1px solid var(--line, #deddd0);
  font-size: 16px;
  line-height: 2;
}

.notes-consult p { margin: 0 0 13px; }

.notes-consult a {
  display: inline-block;
  padding-block: 5px;
  text-decoration: underline;
  text-decoration-color: var(--gold, #a68a48);
  text-underline-offset: 6px;
}

.notes-article {
  padding-block: 42px 90px;
}

.notes-article-header {
  width: min(900px, calc(100% - 112px));
  min-width: 0;
  margin: 0 auto 38px;
}

.notes-article-header .notes-breadcrumb { margin-bottom: 44px; }

.notes-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 23px;
}

.notes-article-meta time {
  color: var(--muted, #717568);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .04em;
}

.notes-article-header h1 {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .04em;
}

.notes-article-header > p {
  margin: 23px 0 0;
  color: var(--muted, #717568);
  font-size: 16px;
  line-height: 2;
}

.notes-article-cover {
  width: min(1040px, calc(100% - 112px));
  margin: 0 auto 54px;
}

.notes-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.notes-article-cover figcaption {
  margin-top: 12px;
  color: var(--muted, #717568);
  font-size: 14px;
  line-height: 1.8;
}

.notes-prose {
  width: min(760px, calc(100% - 112px));
  min-width: 0;
  margin-inline: auto;
  color: #3e4d40;
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}

.notes-prose h2 {
  margin: 2.1em 0 .8em;
  padding-left: 18px;
  border-left: 3px solid var(--gold, #a68a48);
  color: var(--ink, #173f2b);
  font-family: var(--serif, serif);
  font-size: clamp(25px, 2.5vw, 31px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .035em;
}

.notes-prose h3 {
  margin: 1.9em 0 .65em;
  color: var(--ink, #173f2b);
  font-family: var(--serif, serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .025em;
}

.notes-prose p { margin: 0 0 1.35em; }
.notes-prose > :first-child { margin-top: 0; }

.notes-prose ul,
.notes-prose ol {
  margin: 1.2em 0 1.6em;
  padding-inline-start: 1.5em;
  list-style-position: outside;
}

.notes-prose ul { list-style-type: disc; }
.notes-prose ol { list-style-type: decimal; }
.notes-prose li + li { margin-top: .45em; }
.notes-prose li::marker { color: #92783d; }

.notes-prose blockquote {
  margin: 1.7em 0;
  padding: 22px 27px;
  border-left: 3px solid var(--gold, #a68a48);
  border-radius: 0 6px 6px 0;
  background: var(--sand, #eeecdf);
  color: #58654f;
}

.notes-prose blockquote > :last-child { margin-bottom: 0; }

.notes-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.8em auto;
  border-radius: 6px;
}

.notes-prose a {
  color: var(--ink, #173f2b);
  text-decoration: underline;
  text-decoration-color: var(--gold, #a68a48);
  text-underline-offset: 4px;
}

.notes-back {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  padding-block: 9px;
  color: var(--ink, #173f2b);
  font-size: 16px;
  line-height: 1.9;
}

.notes-article > .notes-back {
  display: flex;
  width: min(760px, calc(100% - 112px));
  margin: 42px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line, #deddd0);
}

.notes-card:focus-visible,
.notes-card-link:focus-visible,
.notes-back:focus-visible,
.notes-consult a:focus-visible,
.notes-breadcrumb a:focus-visible,
.notes-prose a:focus-visible {
  outline: 2px solid var(--ink, #173f2b);
  outline-offset: 5px;
}

@media (max-width: 1000px) {
  .notes-shell { width: calc(100% - 60px); }
  .notes-topics { gap: 24px; }
  .notes-topics h2 { font-size: 21px; }
  .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes-article-header,
  .notes-article-cover,
  .notes-prose,
  .notes-article > .notes-back { width: min(760px, calc(100% - 60px)); }
}

@media (max-width: 640px) {
  .notes-shell { width: calc(100% - 44px); }
  .notes-intro { padding-block: 25px 43px; }
  .notes-breadcrumb { gap: 7px 10px; margin-bottom: 37px; font-size: 12px; }
  .notes-eyebrow { gap: 10px; margin-bottom: 19px; font-size: 12px; letter-spacing: .06em; }
  .notes-eyebrow::before { width: 23px; }
  .notes-title { font-size: clamp(28px, 7.6vw, 37px); line-height: 1.75; letter-spacing: .04em; }
  .notes-title-break { display: initial; }
  .notes-description { margin-top: 22px; font-size: 16px; line-height: 2; }
  .notes-topics { grid-template-columns: 1fr; gap: 25px; margin-top: 36px; }
  .notes-topics > li { padding-top: 20px; }
  .notes-topic-number { margin-bottom: 9px; font-size: 16px; }
  .notes-topics h2 { font-size: 22px; }
  .notes-topics p { margin-top: 10px; font-size: 16px; line-height: 1.9; }
  .notes-list { padding-block: 43px 60px; }
  .notes-list-header { margin-bottom: 25px; }
  .notes-list-header h2 { font-size: 25px; }
  .notes-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .notes-card-copy { padding: 23px; }
  .notes-card h2 { font-size: 23px; }
  .notes-card p { font-size: 16px; line-height: 1.95; }
  .notes-card-link { font-size: 15px; }
  .notes-empty { padding: 43px 22px; }
  .notes-empty h3 { font-size: 24px; }
  .notes-empty p { margin-top: 18px; font-size: 16px; line-height: 1.95; }
  .notes-consult { margin-top: 36px; padding-top: 25px; font-size: 16px; }
  .notes-article { padding-block: 27px 60px; }
  .notes-article-header,
  .notes-article-cover,
  .notes-prose,
  .notes-article > .notes-back { width: calc(100% - 44px); }
  .notes-article-header { margin-bottom: 28px; }
  .notes-article-header .notes-breadcrumb { margin-bottom: 31px; }
  .notes-article-meta { gap: 11px 14px; margin-bottom: 21px; }
  .notes-article-header h1 { font-size: clamp(28px, 7.7vw, 36px); line-height: 1.65; letter-spacing: .025em; }
  .notes-article-header > p { margin-top: 20px; font-size: 16px; }
  .notes-article-cover { margin-bottom: 36px; }
  .notes-prose { font-size: 16px; line-height: 2.05; letter-spacing: .015em; }
  .notes-prose h2 { margin-top: 1.9em; padding-left: 14px; font-size: 25px; }
  .notes-prose h3 { font-size: 22px; }
  .notes-prose blockquote { padding: 19px 20px; }
  .notes-article > .notes-back { margin-top: 33px; padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .notes-card { transition: none; }
  .notes-card:hover { transform: none; }
}

/* トップページから読みものへ */
.notes-home{background:#f1f0e5}.notes-home .section-top{margin-bottom:40px}.notes-home-empty{padding:38px 0;border-top:1px solid var(--gold-light);border-bottom:1px solid var(--gold-light)}.notes-home-empty p{font-family:var(--serif);font-size:25px;line-height:1.8}.notes-home-empty span{display:block;margin-top:12px;font-size:14px;line-height:2;color:var(--muted)}.notes-home-more{display:flex;width:max-content;max-width:100%;margin:30px 0 0 auto;gap:34px}.article-admin-link{font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
@media(max-width:640px){.notes-home-empty p{font-size:23px}.notes-home-empty span{font-size:16px}.notes-home-more{font-size:14px}.notes-home .section-top h2{font-size:29px}.notes-home .section-aside{font-size:14px}}
