/* ==========================================================================
   Blog Page Styles - やすらぎの里
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --color-text: #352304;
  --color-cream: #fffbf1;
  --color-white: #ffffff;
  --color-orange: #d67c3d;
  --font-mincho: 'Shippori Mincho B1', 'YuMincho', 'Yu Mincho', serif;
  --font-gothic: 'YuGothic', 'Yu Gothic', 'Hiragino Sans', sans-serif;
}

/* --------------------------------------------------------------------------
   Reset / Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-gothic);
  color: var(--color-text);
  background: #FFFBF1;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.blog-hero {
  position: relative;
  width: 100%;
  height: 449px;
  margin-top: clamp(60px, 5.56vw, 80px);
  overflow: hidden;
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
}

.blog-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(164, 164, 164, 0.6);
}

/* --------------------------------------------------------------------------
   Slider
   -------------------------------------------------------------------------- */
.blog-slider {
  position: absolute;
  top: 132px;
  left: 0;
  right: 0;
  z-index: 10;
}

.blog-slider__track {
  display: flex;
  gap: 25px;
  justify-content: center;
  padding: 0 40px;
}

.blog-slider__item {
  display: block;
  width: 325px;
  flex-shrink: 0;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.blog-slider__thumb {
  width: 325px;
  height: 199px;
  overflow: hidden;
}

.blog-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-slider__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(102,102,102,0) 0%, rgba(0,0,0,1) 71.6%);
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.blog-slider__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 18px 16px;
  z-index: 1;
}

.blog-slider__title {
  font-family: var(--font-gothic);
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

.blog-slider__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #352304;
  padding: 3px 8px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.blog-slider__cat-icon {
  width: 14px;
  height: 11px;
  flex-shrink: 0;
}

.blog-slider__category {
  font-family: var(--font-gothic);
  font-size: 10px;
  font-weight: 500;
  color: #fff;
}

.blog-slider__date {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.blog-slider__date span {
  font-family: var(--font-gothic);
  font-size: 10px;
  font-weight: 400;
  color: #fff;
}

.blog-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 33px;
}

.blog-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(246, 243, 233, 1);
}

.blog-slider__dot--active {
  background: rgba(235, 193, 101, 1);
}

/* --------------------------------------------------------------------------
   Main Content Layout
   -------------------------------------------------------------------------- */
.blog-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  padding: 40px 130px 80px;
}

.blog-main {
  flex: 1;
  max-width: 834px;
  background: #fff;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.25);
  padding: 50px;
}

.blog-sidebar {
  width: 316px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.blog-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
}

.blog-tabs__item {
  width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  font-family: var(--font-gothic);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #352304;
  text-decoration: none;
}

.blog-tabs__item--active {
  background: #352304;
  color: #fff;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   Article Cards
   -------------------------------------------------------------------------- */
.blog-articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-card {
  display: flex;
  gap: 50px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(156, 156, 156, 1);
  padding-bottom: 70px;
  padding-top: 70px;
}

.blog-card:first-child {
  padding-top: 0;
}

.blog-card:last-child {
  border-bottom: 1px solid rgba(156, 156, 156, 1);
}

.blog-card:nth-child(even) {
  flex-direction: row-reverse;
}

.blog-card__thumb {
  width: 280px;
  height: 172px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #e8e0d4;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0 0 8px;
}

.blog-card__excerpt {
  font-family: var(--font-mincho);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 10px;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
}

.blog-card__date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-gothic);
  font-size: 10px;
  font-weight: 500;
  color: rgba(156, 156, 156, 1);
}

.blog-card__date svg {
  color: rgba(156, 156, 156, 1);
}

.blog-card__readmore {
  font-family: var(--font-mincho);
  font-size: 10px;
  font-weight: 400;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(214, 124, 61, 1);
  border: 0.5px solid rgba(214, 124, 61, 1);
  padding: 7px 20px;
  text-decoration: none;
}

.blog-card__arrow {
  font-size: 10px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.blog-pagination__item {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
  border-radius: 50%;
}

.blog-pagination__item--active {
  background: var(--color-orange);
  color: #fff;
  border-color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   Sidebar - Author
   -------------------------------------------------------------------------- */
.blog-sidebar__author {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.25);
}

.blog-sidebar__author-visual {
  position: relative;
  height: 220px;
}

.blog-sidebar__author-cover {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #e8e0d4;
}

.blog-sidebar__author-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-sidebar__author-avatar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  background: #e8e0d4;
}

.blog-sidebar__author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-sidebar__author-info {
  padding: 10px 40px 24px;
  text-align: left;
}

.blog-sidebar__author-name {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 12px;
}

.blog-sidebar__author-desc {
  font-family: var(--font-gothic);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
  text-align: left;
  margin: 0 0 16px;
}

.blog-sidebar__author-sns {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.blog-sidebar__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-sidebar__sns-link img {
  width: 21px;
  height: auto;
}

/* --------------------------------------------------------------------------
   Sidebar - Sections (人気記事 / カテゴリー)
   -------------------------------------------------------------------------- */
.blog-sidebar__section {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.25);
}

.blog-sidebar__heading {
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 700;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Popular Articles */
.blog-sidebar__popular {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-sidebar__popular-item {
  display: flex;
  flex-direction: column;
  padding: 25px 15px;
  position: relative;
}

.blog-sidebar__popular-thumb {
  position: relative;
  width: 100%;
  height: 183px;
  overflow: hidden;
  background: #e8e0d4;
}

.blog-sidebar__popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-sidebar__popular-rank {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  width: 30px;
  height: 40px;
  color: #fff;
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-sidebar__popular-rank--gold {
  background: linear-gradient(135deg, rgba(239,199,14,1) 0%, rgba(250,233,64,1) 25%, rgba(177,152,4,1) 50%, rgba(248,212,3,1) 75%, rgba(251,230,116,1) 85%, rgba(247,197,24,1) 100%);
}

.blog-sidebar__popular-rank--silver {
  background: linear-gradient(135deg, rgba(165,165,165,1) 0%, rgba(228,228,228,1) 25%, rgba(127,127,127,1) 50%, rgba(171,159,159,1) 75%, rgba(224,223,223,1) 85%, rgba(175,175,175,1) 100%);
}

.blog-sidebar__popular-rank--bronze {
  background: linear-gradient(135deg, rgba(191,107,40,1) 0%, rgba(230,175,120,1) 25%, rgba(132,77,24,1) 50%, rgba(201,114,30,1) 75%, rgba(228,170,115,1) 85%, rgba(207,124,62,1) 100%);
}

.blog-sidebar__popular-info {
  padding: 12px 0 0;
}

.blog-sidebar__popular-title {
  font-family: var(--font-mincho);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 5px;
}

.blog-sidebar__popular-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-gothic);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text);
}

.blog-sidebar__popular-cat svg {
  width: 15px;
  height: 12px;
}

/* Categories */
.blog-sidebar__categories {
  padding: 25px 25px 20px;
  list-style: none;
  margin: 0;
}

.blog-sidebar__categories li {
  border-bottom: 1px solid rgba(156, 156, 156, 1);
  padding: 5px 0;
}

.blog-sidebar__categories a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-gothic);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  line-height: 36px;
}

.blog-sidebar__categories a svg {
  flex-shrink: 0;
}

/* Tab Content */
.blog-tab-content {
  display: none;
}
.blog-tab-content--active {
  display: block;
}
.blog-articles__empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 15px;
}
