@charset "UTF-8";
/* =======================================================
   Variables (カラー＆トーン・パーツ)
   ======================================================= */
:root {
  --color-bg: #fcfbf9;
  --color-text: #4a4a4a;
  --color-paper: #ffffff;
  --color-link: #6c88a4;
  --color-accent: #8b9d83;
  --color-border: #e8e6e1;
  --color-muted: #888888;
  --color-newbadge: #ff7800;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-badge: 8px;
  --framework-width: 1200px;
  --framework-gutter: 1rem;
  --framework-row-gap: 2.5rem;
  --aspect-raito-x: 16;
  --aspect-raito-y: 9;
}

/* =======================================================
   Reset & Base
   ======================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

html {
  font-size: 16px;
}

html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Meiryo", "メイリオ", "平成明朝", "Lucida Grande", Verdana, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "ＭＳ Ｐゴシック", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  scroll-behavior: smooth;
}

blockquote {
  border-left: 4px solid var(--color-accent);
  background-color: rgba(139, 157, 131, 0.08);
  padding: 1.5rem;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  margin: 2rem 0;
  color: var(--color-text);
}

/* =======================================================
   Layout (Framework)
   ======================================================= */
.wrap-contents {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.framework {
  row-gap: var(--framework-row-gap);
}
.framework > * {
  grid-column: normal;
}

@media screen and (min-width: 768px) {
  .framework {
    display: grid;
    padding: 0;
    grid-template-columns: [full-start] minmax(var(--framework-gutter), 1fr) [normal-start] minmax(0, var(--framework-width)) [normal-end] minmax(var(--framework-gutter), 1fr) [full-end];
  }
}
.cropper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: calc(var(--aspect-raito-y) / var(--aspect-raito-x) * 100%);
  overflow: hidden;
  border-radius: var(--radius-card);
}
.cropper img,
.cropper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* =======================================================
   Header (Page)
   ======================================================= */
#page-header {
  background-color: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
#page-header .header-contents {
  grid-column: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#page-header .header-contents__link-index img {
  max-height: 32px;
  width: auto;
}
#page-header .header-contents__link-top img {
  max-height: 40px;
  width: auto;
}

/* =======================================================
   Main Article Layout (2 Columns)
   ======================================================= */
.main-contents {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem 0 2rem;
  /* PC表示：左に記事、右にサイドバー(320px固定)の2カラム */
}
@media screen and (min-width: 768px) {
  .main-contents {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start; /* サイドバーの高さが伸びないようにする */
  }
}

.article {
  background-color: var(--color-paper);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  width: 100%;
}
@media screen and (min-width: 768px) {
  .article {
    padding: 1.5rem;
  }
}
.article__header {
  margin-bottom: 2.5rem;
}
.article__header__img {
  margin-bottom: 1.5rem;
}
.article__header__text__time {
  font-size: 0.9rem;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.article__header__text__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 1rem;
}
@media screen and (min-width: 768px) {
  .article__header__text__title {
    font-size: 2rem;
  }
}
.article__header__text__category {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.article__header__text__category a {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background-color: rgba(139, 157, 131, 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-badge);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.article__header__text__category a:hover {
  background-color: var(--color-accent);
  color: var(--color-paper);
}
.article__body p {
  margin-bottom: 1.5em;
}
.article__body img {
  border-radius: var(--radius-btn);
  margin: 2.5rem 0;
}
.article__ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
}
@media screen and (min-width: 768px) {
  .article__ad {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}
.article__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.article__footer__nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media screen and (min-width: 768px) {
  .article__footer__nav {
    flex-direction: row;
    justify-content: space-between;
  }
}
.article__footer__nav > div {
  flex: 1;
  min-width: 0;
}

.link-pagination {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background-color: var(--color-bg);
  height: 100%;
  transition: all 0.2s ease;
}
.link-pagination:hover {
  background-color: var(--color-paper);
  border-color: var(--color-link);
  opacity: 1;
}
.link-pagination p {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: bold;
  display: flex;
  align-items: center;
}
.link-pagination .text-prev::before {
  content: "<";
  margin-right: 0.5rem;
  font-family: monospace;
}
.link-pagination .text-next {
  flex-direction: row-reverse;
}
.link-pagination .text-next::before {
  content: ">";
  margin-left: 0.5rem;
  font-family: monospace;
}
.link-pagination figure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media screen and (min-width: 768px) {
  .link-pagination figure {
    flex-direction: row;
    align-items: center;
  }
}
.link-pagination figure .cropper {
  width: 120px; /* サムネイルを少し拡大 */
  height: auto; /* padding-bottomハックを上書き解除 */
  padding-bottom: 0;
  aspect-ratio: 16/9; /* 16:9の比率を固定 */
  flex-shrink: 0;
  border-radius: var(--radius-btn);
}
.link-pagination figure figcaption {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: bold;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* =======================================================
   Aside (Recommend / Archive)
   ======================================================= */
@media screen and (min-width: 768px) {
  aside {
    position: sticky;
    top: 2rem; /* 上からの余白 */
  }
}
.recommend {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  /* PC表示時にサイドバーをスクロール追従させる */
}
@media screen and (min-width: 768px) {
  .recommend {
    position: sticky;
    top: 2rem;
  }
}
.recommend h2 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: left;
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
  line-height: 1.2;
}
.recommend__ad {
  display: flex;
  justify-content: center;
}
.recommend .list-archive {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 95%;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .recommend .list-archive {
    width: 100%;
  }
}
.recommend .link-archive {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 0.75rem;
  height: 100%;
  transition: all 0.2s ease;
}
.recommend .link-archive:hover {
  opacity: 0.8;
  border-color: var(--color-link);
}
.recommend .link-archive__img.cropper {
  width: 120px; /* サムネイルを少し拡大 */
  height: auto; /* padding-bottomハックを上書き解除 */
  padding-bottom: 0;
  aspect-ratio: 16/9; /* 16:9の比率を固定 */
  flex-shrink: 0;
  border-radius: var(--radius-btn);
}
.recommend .link-archive__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.recommend .link-archive__text__title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.recommend .link-archive__text__date {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.recommend .link-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  background-color: var(--color-paper);
  color: var(--color-link);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-weight: bold;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  width: 95%;
  margin: 0.5rem auto;
}
.recommend .link-btn:hover {
  background-color: var(--color-bg);
  border-color: var(--color-link);
}

/* =======================================================
   Footer
   ======================================================= */
.footer {
  width: 100%;
  padding: 2.5rem 1rem;
  background-color: var(--color-paper);
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
}
.footer__breadcrumbs {
  margin-bottom: 2rem;
}
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media screen and (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.list-directory {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.list-directory a {
  display: block;
  text-align: center;
  color: var(--color-link);
  font-size: 0.95rem;
}
@media screen and (min-width: 768px) {
  .list-directory {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
  }
  .list-directory li {
    display: flex;
    align-items: center;
  }
  .list-directory li:not(:first-child)::before {
    content: ">";
    margin: 0 0.5rem;
    color: var(--color-muted);
  }
  .list-directory a {
    display: inline-block;
  }
}

.list-sns-btn {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.list-sns-btn a {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.7;
}
.list-sns-btn a img {
  border-radius: 50%;
}
.list-sns-btn a:hover {
  opacity: 1;
}

.text-copyright {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* =======================================================
   Back to Top Button
   ======================================================= */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--color-paper);
  color: var(--color-accent); /* セージグリーン */
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: var(--color-accent);
  color: var(--color-paper);
  opacity: 0.9;
}
@media screen and (min-width: 768px) {
  .back-to-top {
    bottom: 2.5rem;
    right: 2.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
  .back-to-top svg {
    width: 28px;
    height: 28px;
  }
}/*# sourceMappingURL=style_blog_article.css.map */