/**
 * コラム（MOBILE ARCHI）用サイドバー CSS
 * 構成は通常コラムと同じ。見出し・日付の見せ方だけブランドトーンに合わせる。
 */

/* サイドバー全体のスタイル */
.sidebar .widget {
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.sidebar .widget:last-child {
  margin-bottom: 0;
}

/* セクションタイトル */
.sub-section-title {
    background: #000;
    color: #fff;
    font-family: "Jost", "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.16em;
    margin: 0;
    padding: 15px 10px !important;
    text-align: center;
}

/* ===== 会員情報セクション ===== */
.member-info-wrapper {
  padding: 20px 15px;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* ロゴ */
.company-logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.company-logo img {
  max-width: 150px;
  height: auto;
}

/* 電話番号セクション */
.phone-section {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
}

.phone-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.phone-number {
  margin-bottom: 6px;
}

.phone-number a {
    font-family: "Jost", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.12em;
}

.phone-hours {
  font-size: 13px;
  color: #888;
  line-height: 1.3;
}

/* お問い合わせ・会員募集ボタン */
.contact-button-section {
  margin-top: 15px;
}

.contact-button-wrapper {
  padding: 15px;
  text-align: center;
}

.contact-button-wrapper a {
  display: inline-block;
  width: 100%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-button-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 6px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.contact-button-wrapper a:hover img {
  transform: translateY(-2px);
  opacity: 0.9;
}

.contact-button {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.16em;
  transition: all 0.5s ease;
  border: 1px solid #000;
}

.contact-button:hover {
  background-color: #fff;
  color: #000;
  text-decoration: none;
}

/* 最新記事の横並びレイアウト */
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar h4.sub-section-title {
  font-size: 16px;
  background-color: #000;
  color: #fff;
  margin: 0;
}

.widget.widget_link_list {
  margin-bottom: 20px;
}

.recent-post-item {
  border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-link {
  display: flex !important;
  flex-direction: column;
  padding: 15px 10px !important;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}

.recent-post-link:hover {
  background-color: #f8f9fa;
  text-decoration: none;
  color: inherit;
}

.recent-post-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 14px;
}

.recent-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post-link:hover .recent-post-thumbnail img {
  transform: scale(1.05);
}

.recent-post-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-post-title {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1a1a1a;
}

.recent-post-date {
    font-family: "Jost", sans-serif;
    font-size: 12px;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.12em;
}

/* アーカイブリスト */
#archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#archive-list li {
  border-bottom: 1px solid #f0f0f0;
}

#archive-list li:last-child {
  border-bottom: none;
}

#archive-list a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#archive-list a:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

/* アコーディオン機能 */
#archive-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.4s ease,
    max-height 0.4s ease;
  display: none;
}

#archive-hidden.show {
  opacity: 1;
  max-height: 500px;
  display: block;
}

#archive-hidden li {
  border-bottom: 1px solid #f0f0f0;
}

#archive-hidden li:last-child {
  border-bottom: none;
}

#archive-hidden a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

#archive-hidden a:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

.archive-toggle-wrapper {
  padding: 10px 20px;
  text-align: center;
  background-color: #f8f9fa;
  border-top: 1px solid #f0f0f0;
}

.archive-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #000;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  border: 1px solid #000;
  cursor: pointer;
  transition: all 0.5s ease;
}

.archive-toggle-btn:hover {
  background-color: #fff;
  border-color: #000;
  color: #000;
}

.archive-toggle-btn .toggle-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.archive-toggle-btn.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .sidebar .widget {
    margin-bottom: 20px;
  }

  .sub-section-title {
    font-size: 14px;
    padding: 12px 15px;
  }

  .contact-button-wrapper {
    padding: 12px;
  }

  .contact-button-wrapper img {
    border-radius: 4px;
  }

  .recent-post-link {
    padding: 12px 15px;
  }

  .recent-post-title {
    font-size: 13px;
  }

  #archive-list a,
  #archive-hidden a {
    padding: 10px 15px;
    font-size: 13px;
  }

  .archive-toggle-wrapper {
    padding: 8px 15px;
  }
}

/* ===== イベントセクション ===== */
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-item {
  margin-bottom: 0;
  border-bottom: none;
}

.event-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  padding: 15px 10px !important;
  overflow: hidden;
}

.event-thumbnail {
  overflow: hidden;
  width: 100%;
  background-color: #f8f9fa;
}

.event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.event-link:hover .event-thumbnail img {
  transform: scale(1.05);
}

.event-content {
  padding: 8px;
}

.event-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #333;
}

.event-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

/* イベントがない場合のメッセージ */
.no-event {
  text-align: center;
  padding: 24px 16px;
  color: #666;
  font-size: 14px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  /* 会員情報セクション */
  .member-info-wrapper {
    padding: 15px 10px;
  }

  .company-logo img {
    max-width: 120px;
  }

  .phone-number a {
    font-size: 18px;
  }

  .contact-button {
    padding: 11px 14px;
    font-size: 13px;
  }

  /* イベントセクション */
  .event-thumbnail {
    height: 180px;
  }

  .event-content {
    padding: 14px;
  }

  .event-title {
    font-size: 15px;
  }

  .event-date {
    font-size: 13px;
  }
}

/* サイドバー固定解除（Lightningテーマ対応） */
.sub-section,
.sub-section .widget,
.sidebar,
.widget-area {
  position: static !important;
  top: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
}
