@charset "UTF-8";

/* ===================================
   サイドバーレイアウト
   デスクトップのみ：main + sidebar 横並び
   モバイル：サイドバー非表示
   =================================== */

/* サイドバーレイアウト時は container の横 padding をリセット（content-wrapper が管理） */
.container:has(> .content-wrapper) {
  padding-left: 0;
  padding-right: 0;
}

/* パンくずを content-wrapper と同じ横位置に揃える */
.container:has(> .content-wrapper) > .breadcrumb {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* コンテナをFlexboxに（サイドバーがあるページ用） */
.content-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* メインコンテンツ：サイドバーがある場合 */
.content-wrapper main {
  flex: 1;
  min-width: 0; /* flexアイテムのオーバーフロー防止 */
  max-width: none;
}

/* サイドバー（336px固定） */
.sidebar {
  flex: 0 0 336px;
  align-self: flex-start;
}

.sidebar-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f0f0f0;
}

/* 天気ウィジェット */
.weather-widget {
  background: linear-gradient(135deg, #f8fafd 0%, #edf2f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.weather-widget-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.weather-widget-icon {
  font-size: 2.8rem;
  color: #4a6fa5;
  text-shadow: 1px 2px 3px rgba(0,0,0,0.1);
}

.weather-widget-icon .fa-sun              { color: #FC913A; }
.weather-widget-icon .fa-cloud            { color: #B6B6B6; }
.weather-widget-icon .fa-snowflake        { color: #B2E2EC; }
.weather-widget-icon .fa-cloud-showers-heavy { color: #B2E2EC; }
.weather-widget-icon .fa-cloud-rain       { color: #516C9D; }
.weather-widget-icon .fa-smog             { color: #B0D7D5; }
.weather-widget-icon .fa-bolt             { color: #FCAA00; }

.weather-widget-temp-info {
  display: flex;
  flex-direction: column;
}

.weather-widget-condition {
  font-size: 0.95rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.1rem;
}

.weather-widget-temp {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.weather-widget-temp span {
  font-size: 1rem;
  font-weight: normal;
  color: #666;
  margin-left: 0.1rem;
}

.weather-widget-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}

.weather-detail-item {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  border: 1px solid #f0f4f8;
}

.weather-detail-label {
  font-size: 0.75rem;
  color: #8da0b3;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.weather-detail-value {
  font-size: 0.9rem;
  color: #34495e;
  font-weight: 600;
}

.weather-widget-footer {
  text-align: right;
  margin-top: 0.5rem;
}

.weather-widget-time {
  font-size: 0.75rem;
  color: #95a5a6;
}

.weather-widget-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8faff;
  color: #1a73e8;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  border: 1px solid #e8f0fe;
  transition: all 0.2s ease;
  text-decoration: none;
}

.weather-widget-link:hover {
  background-color: #1a73e8;
  color: white;
  box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
}

.weather-widget-link i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.weather-widget-link:hover i {
  transform: translateX(3px);
}

/* 為替ウィジェット */
.exchange-widget {
  background: linear-gradient(135deg, #fdfbf7 0%, #f6f0e3 100%);
  border: 1px solid #efe5cd;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.exchange-widget-main {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}

.exchange-widget-icon {
  font-size: 2.8rem;
  color: #BFA466;
  text-shadow: 1px 2px 3px rgba(0,0,0,0.1);
}

.exchange-widget-rates {
  display: flex;
  flex-direction: column;
}

.exchange-widget-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.1rem;
}

.exchange-widget-price {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.exchange-widget-price span {
  font-size: 1rem;
  font-weight: normal;
  color: #666;
  margin-left: 0.1rem;
}

.exchange-widget-footer {
  text-align: right;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.exchange-widget-time {
  font-size: 0.75rem;
  color: #999;
}

.exchange-widget-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fdfbf7;
  color: #BFA466;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  border: 1px solid #efe5cd;
  transition: all 0.2s ease;
  text-decoration: none;
}

.exchange-widget-link:hover {
  background-color: #BFA466;
  color: white;
  box-shadow: 0 4px 8px rgba(191, 164, 102, 0.2);
}

.exchange-widget-link i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.exchange-widget-link:hover i {
  transform: translateX(3px);
}

/* メニューリスト */
.sidebar-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-category-list li {
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-category-list li:last-child {
  border-bottom: none;
}

.sidebar-category-list li a {
  display: block;
  padding: 0.7rem 0;
  color: #0066cc;
  text-decoration: none;
  font-size: 1.0rem;
  transition: color 0.2s;
}

.sidebar-category-list li a:hover {
  color: #1557b0;
}

/* 書籍カード */
.sidebar-book-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}

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

.sidebar-book-inner {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.sidebar-book-img-link {
  flex-shrink: 0;
}

.sidebar-book-img-link img {
  display: block;
}

.sidebar-book-meta {
  flex: 1;
  min-width: 0;
}

.sidebar-book-title {
  display: block;
  font-size: 0.82rem;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.sidebar-book-title:hover {
  color: #0066cc;
}

.sidebar-book-price {
  font-size: 1.1rem;
  color: #F43E43;
  font-weight: bold;
}

.sidebar-book-buttons {
  display: flex;
  gap: 0.4rem;
}

.sidebar-book-buttons a {
  flex: 1;
  display: block;
  text-align: center;
  padding: 0.3rem 0;
  font-size: 0.78rem;
  text-decoration: none;
  border-radius: 3px;
  background-color: #BFA466;
  color: #fff;
  font-weight: bold;
}

.sidebar-book-buttons a:hover {
  opacity: 0.8;
}

/* チケットカード */
.sidebar-ticket-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

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

.sidebar-ticket-img img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.sidebar-ticket-name {
  font-size: 0.85rem;
  font-weight: bold;
  color: #333;
  padding: 0.5rem 0.7rem;
  line-height: 1.4;
}

.sidebar-ticket-buttons {
  display: flex;
  gap: 0.4rem;
  padding: 0 0.7rem 0.7rem;
}

.sidebar-ticket-btn {
  flex: 1;
  display: block;
  text-align: center;
  padding: 0.3rem 0;
  font-size: 0.78rem;
  text-decoration: none;
  border-radius: 3px;
  color: #fff;
  font-weight: bold;
}

.sidebar-ticket-btn:hover {
  opacity: 0.85;
}

.btn-kkday { background-color: #26bec9; }
.btn-klook { background-color: #4d40ca; }

/* ===================================
   レスポンシブ：モバイルではサイドバー非表示
   =================================== */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
    padding: 0;
  }

  .sidebar {
    flex: none;
    width: 100%;
  }

  .sidebar-section:not(.sidebar-section--tickets):not(.sidebar-section--agoda-search) {
    display: none;
  }

  .content-wrapper main {
    flex: none;
    max-width: none;
    padding: 1rem;
  }

  .container:has(> .content-wrapper) > .breadcrumb {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .content-wrapper main {
    padding: 2rem;
    margin: 0;
  }

  .container:has(> .content-wrapper) > .breadcrumb {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
