/* ============================================================
   blog.css — ブログ・お知らせ
   ============================================================ */

.blog-page {
  background-color: var(--color-white);
}

.blog-hero {
  padding-block: 0;
  background-color: var(--color-brand);
  color: var(--color-white);
}

.blog-hero__inner {
  padding-block: clamp(1.5rem, 3vw, 3rem);
}

.blog-hero__panel {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  border-radius: var(--radius-xl);
  background-color: var(--color-brand);
  box-shadow: 0 22px 56px rgb(0 0 0 / 0.18);
}

.blog-hero__content {
  display: grid;
  gap: var(--space-4);
  align-content: center;
  justify-items: start;
  text-align: left;
}

.blog-hero__visual {
  min-width: 0;
}

.blog-hero__figure {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background-color: rgb(255 255 255 / 0.12);
  box-shadow: var(--shadow-image);
}

.blog-hero__figure picture,
.blog-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-hero__figure img {
  object-fit: cover;
  object-position: center center;
}

.blog-hero__eyebrow {
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.16);
}

.blog-hero__title {
  max-width: 11em;
  margin-block-end: 0;
  font-size: clamp(1.6rem, calc(0.8rem + 4vw), 2.8rem);
  font-weight: 900;
  line-height: 1.16;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.18);
}

.blog-hero__lead {
  max-width: 44rem;
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.9;
  color: rgb(255 255 255 / 0.95);
}

.blog-section__stack {
  display: grid;
  gap: var(--space-5);
}

.blog-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.75rem;
}

.blog-tab {
  display: grid;
  gap: 0.35rem;
  min-height: 5.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(var(--color-brand-rgb) / 0.12);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
  color: var(--color-brand);
}

.blog-tab__label {
  font-weight: 900;
  line-height: 1.4;
}

.blog-tab__desc {
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--color-ink);
}

.blog-tab.is-active {
  background-color: var(--color-brand);
  color: var(--color-white);
}

.blog-tab.is-active .blog-tab__desc {
  color: rgb(255 255 255 / 0.82);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.blog-main {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.blog-card {
  height: 100%;
  border: 1px solid rgb(var(--color-brand-rgb) / 0.08);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.blog-card__link {
  display: grid;
  height: 100%;
  color: inherit;
}

.blog-card__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(var(--color-brand-rgb) / 0.08) 0%, rgb(var(--color-brand-rgb) / 0.02) 100%);
}

.blog-card__figure picture,
.blog-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card__figure img {
  object-fit: cover;
  object-position: center center;
}

.blog-card__figure.is-empty {
  display: grid;
  place-items: center;
}

.blog-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.blog-card__placeholder img {
  width: 3.25rem;
  height: 3.25rem;
  opacity: 0.35;
}

.blog-card__body {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.1rem, 1.5vw, 1.5rem);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand-mid);
}

.blog-card__date {
  white-space: nowrap;
}

.blog-card__category {
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background-color: rgb(var(--color-brand-rgb) / 0.08);
  color: var(--color-brand);
}

.blog-card__title {
  margin: 0;
  color: var(--color-brand);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.5;
}

.blog-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  line-height: 1.8;
}

.blog-pagination {
  display: flex;
  justify-content: center;
}

.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.8rem;
  border: 1px solid rgb(var(--color-brand-rgb) / 0.12);
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
  color: var(--color-brand);
  font-weight: 700;
}

.blog-pagination .page-numbers.current {
  background-color: var(--color-brand);
  color: var(--color-white);
}

.blog-sidebar {
  display: grid;
  gap: 1rem;
}

.blog-sidebar__panel {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 1.5vw, 1.5rem);
  border: 1px solid rgb(var(--color-brand-rgb) / 0.08);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.blog-sidebar__eyebrow {
  width: fit-content;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: rgb(var(--color-brand-rgb) / 0.08);
  color: var(--color-brand);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.blog-sidebar__title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-block-end: 0;
  padding-inline-start: 0.9rem;
  color: var(--color-brand);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.5;
}

.blog-sidebar__title::before {
  content: "";
  position: absolute;
  inset-block-start: 0.25em;
  inset-inline-start: 0;
  width: 4px;
  height: 1.1em;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-mid);
}

.blog-sidebar__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-sidebar__list a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-brand);
  font-weight: 700;
  line-height: 1.6;
}

.blog-sidebar__post-title {
  display: block;
  flex: 1 1 0;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-sidebar__list time {
  flex-shrink: 0;
  color: var(--color-brand-mid);
  font-size: var(--text-xs);
  font-weight: 900;
}

.blog-sidebar__category-link.is-active {
  font-weight: 900;
}

.blog-sidebar__count {
  flex-shrink: 0;
  color: var(--color-brand-mid);
  font-size: var(--text-xs);
  font-weight: 900;
}

.blog-sidebar__archive-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-sidebar__archive-list a {
  color: var(--color-brand);
  font-weight: 700;
  line-height: 1.6;
}

.blog-sidebar__tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-sidebar__tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: rgb(var(--color-brand-rgb) / 0.08);
  color: var(--color-brand);
  font-size: var(--text-xs);
  font-weight: 700;
}

.blog-sidebar__cta {
  display: grid;
  gap: 0.75rem;
}

.blog-sidebar__cta-note {
  margin: 0;
  line-height: 1.8;
}

.blog-sidebar__cta-actions {
  display: grid;
  gap: 0.75rem;
}

.blog-sidebar__cta-actions .btn {
  width: 100%;
}

.blog-single__hero {
  padding-block: 0;
  background-color: var(--color-brand);
  color: var(--color-white);
}

.blog-single__hero-inner {
  padding-block: clamp(1.5rem, 3vw, 3rem);
}

.blog-single__panel {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  border-radius: var(--radius-xl);
  background-color: var(--color-brand);
  box-shadow: 0 22px 56px rgb(0 0 0 / 0.18);
}

.blog-single__eyebrow {
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.16);
}

.blog-single__title {
  margin-block-end: 0;
  font-size: clamp(1.6rem, calc(0.8rem + 4vw), 2.8rem);
  font-weight: 900;
  line-height: 1.16;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.18);
}

.blog-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.5;
}

.blog-single__meta time {
  color: rgb(255 255 255 / 0.85);
}

.blog-single__meta-category {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.26);
  border-radius: var(--radius-full);
  color: var(--color-white);
}

.blog-single__body {
  display: grid;
  gap: var(--space-5);
}

.blog-article {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.blog-article__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg-light);
  box-shadow: var(--shadow-card);
}

.blog-article__figure picture,
.blog-article__figure img {
  display: block;
  width: 100%;
}

.blog-article__figure img {
  height: auto;
}

.blog-article__content {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 1.8vw, 2rem);
  border: 1px solid rgb(var(--color-brand-rgb) / 0.08);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.blog-article__content > * {
  min-width: 0;
}

.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-block-end: 0;
  padding-inline-start: 0.9rem;
  color: var(--color-brand);
  font-weight: 900;
  line-height: 1.5;
}

.blog-article__content h2::before,
.blog-article__content h3::before,
.blog-article__content h4::before {
  content: "";
  position: absolute;
  inset-block-start: 0.25em;
  inset-inline-start: 0;
  width: 4px;
  height: 1.1em;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-mid);
}

.blog-article__content h2 {
  margin-block-start: var(--space-7);
  font-size: var(--text-2xl);
}

.blog-article__content h3 {
  font-size: var(--text-xl);
}

.blog-article__content h4 {
  font-size: var(--text-lg);
}

.blog-article__content p,
.blog-article__content li {
  line-height: 1.9;
}

.blog-article__content a {
  color: var(--color-brand);
  text-decoration: underline;
}

.blog-article__content ul,
.blog-article__content ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-inline-start: 1.25rem;
}

.blog-article__content blockquote {
  margin: 0;
  padding: 1rem 1.1rem;
  border-inline-start: 4px solid var(--color-brand-mid);
  border-radius: var(--radius-md);
  background-color: rgb(var(--color-brand-rgb) / 0.05);
}

.blog-article__content .sa-clinic-faq {
  display: grid;
  gap: 0.75rem;
  margin-block: var(--space-5);
}

.blog-article__content .sa-clinic-faq .wp-block-details {
  padding: 1rem 1.1rem;
  border: 1px solid rgb(var(--color-brand-rgb) / 0.12);
  border-radius: var(--radius-md);
  background-color: rgb(var(--color-brand-rgb) / 0.045);
}

.blog-article__content .sa-clinic-faq summary {
  cursor: pointer;
  color: var(--color-brand);
  font-weight: 900;
  line-height: 1.7;
}

.blog-article__content .sa-clinic-faq .wp-block-details > :not(summary) {
  margin-block-start: 0.85rem;
}

.blog-article__content .sa-clinic-contact-cta {
  margin-block: var(--space-5);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgb(var(--color-brand-rgb) / 0.14);
  border-radius: var(--radius-lg);
  background-color: rgb(var(--color-brand-rgb) / 0.045);
}

.blog-article__content .sa-clinic-contact-cta > * {
  margin: 0;
}

.blog-article__content .sa-clinic-contact-cta .sa-clinic-contact-cta__link {
  margin-block-start: var(--space-5);
}

.blog-article__content .sa-clinic-contact-cta :is(.philosophy-text-link, .wp-block-button__link) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  background-color: rgb(var(--color-brand-rgb) / 0.08);
  color: var(--color-brand);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.blog-article__content .sa-clinic-contact-cta :is(.philosophy-text-link, .wp-block-button__link)::after {
  content: "";
  width: 1.15em;
  height: 1.15em;
  background: url("../images/icons/icon__arrow--right.svg") center / contain no-repeat;
}

.blog-article__content .sa-clinic-contact-cta .wp-block-buttons {
  margin-block-start: var(--space-5);
}

.blog-article__content :is(.sa-clinic-references .wp-block-list, ul.wp-block-list.sa-clinic-references) {
  display: block;
  margin-block: 1rem 0;
  padding-inline-start: 1.5rem;
  list-style: disc;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.blog-article__content :is(.sa-clinic-references .wp-block-list, ul.wp-block-list.sa-clinic-references) > li {
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 400;
  line-height: 1.75;
}

.blog-article__content :is(.sa-clinic-references .wp-block-list, ul.wp-block-list.sa-clinic-references) > li + li {
  margin-block-start: 0.35rem;
}

.blog-article__content :is(.sa-clinic-references .wp-block-list, ul.wp-block-list.sa-clinic-references) > li::before,
.blog-article__content :is(.sa-clinic-references .wp-block-list, ul.wp-block-list.sa-clinic-references) > li::after {
  content: none;
}

.blog-article__content figure {
  margin: 0;
}

.blog-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.blog-article__content table {
  width: 100%;
  border-collapse: collapse;
}

.blog-article__content th,
.blog-article__content td {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(var(--color-brand-rgb) / 0.12);
}

.blog-article__content th {
  background-color: rgb(var(--color-brand-rgb) / 0.05);
  color: var(--color-brand);
  font-weight: 900;
}

.blog-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-article__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: rgb(var(--color-brand-rgb) / 0.08);
  color: var(--color-brand);
  font-size: var(--text-xs);
  font-weight: 700;
}

.blog-layout--single .blog-sidebar {
  align-self: start;
}

.blog-empty {
  padding: clamp(1.25rem, 1.8vw, 2rem);
  border: 1px solid rgb(var(--color-brand-rgb) / 0.08);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
  line-height: 1.9;
}

@media print, screen and (width < 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media print, screen and (width >= 768px) {
  .blog-hero__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    align-items: stretch;
  }

  .blog-hero__content {
    padding-block-end: 0.25rem;
  }
}

@media print, screen and (width < 768px) {
  .blog-hero__title,
  .blog-single__title {
    max-width: 100%;
    font-size: 1.6rem;
  }

  .blog-hero__visual {
    margin-block-start: 0.25rem;
  }

  .blog-tabs {
    grid-template-columns: 1fr;
  }

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

  .blog-card__title {
    font-size: var(--text-lg);
  }
}
